@charset "utf-8";

/* 全体 */
body {
    margin: 0;
    background-color: #0f0f0f;
    padding-top: 80px;
    color: #e0e0e0;
    font-family: "游ゴシック", YuGothic, sans-serif;
}



.slideshow {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 500px;
    margin: 120px auto 0;
    overflow: hidden;
    border-bottom: 2px solid #400000;
}

.slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    filter: brightness(85%);
}


/* フォーム */
form {
    width: 600px;
    margin: 60px auto;
    padding: 30px;
    background-color: #1a1a1a;
    border: 1px solid #333;
}

h2 {
    font-size: 16px;
    margin-top: 20px;
    color: #cfcfcf;
    letter-spacing: 1px;
}

/* 入力欄 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    background-color: #0f0f0f;
    color: #ffffff;
    border: 1px solid #444;
    box-sizing: border-box;
}

input::placeholder {
    color: #777;
}

/* ボタン */
button {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #400000;
    color: #ffffff;
    border: 1px solid #600000;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #600000;
}

/* エラーメッセージ */
.error {
    color: #ff4444;
    margin-top: 10px;
    font-size: 14px;
}


.back-to-top {
    background-color: rgb(240, 240, 240);
    border-width: 0;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 16px;
    width: 100%;
}
.back-to-top .label {
    display: block;
    height: 18px;
    margin:auto;
    overflow: hidden;
    width: 26px;
}
.back-to-top .label:before {
    content: url(../images/sprites.png);
    display: inline-block;
    font-size: 0;
    line-height: 0;
    margin-left: -40px;
}

.no-js .back-to-top {
    display: none;
}


.page-header {
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 960px;
    padding: 10px 0;
    z-index: 1000;

    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.page-header.sticky {
    position: fixed;
    top: 0;
}

.page-header > .inner {
    margin: auto;
    width: 960px;
}

.no-boxshadow .page-header {
    border-bottom: 1px solid rgb(204, 204, 204);
}

/* Logo */
.site-logo {
    float: left;
    margin-left: -20px;
    margin-top: 5px;
}

/* Primary nav */
.primary-nav {
    float: right;
    line-height: 60px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.primary-nav li {
    float: left;
}
.primary-nav a {
    display: block;
    padding: 0 1.36em;
}

.primary-nav a:hover {
    background-color: rgb(240, 240, 240);
}

.works {
    display: flex;
    width: 100%;
    height: 500px;
}

.work-item {
    position: relative;
    width: 25%;
    height: 100%;
    overflow: hidden;
}

.work-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.work-item.dark > img {
    object-position: 25% center;
}

.work-item.sekiro > img {
    object-position: 90% center;
}

/* hover時ズーム＆暗く */
.work-item:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ロゴサイズ */
.overlay img {
    width: 60%;
}

/* hoverロゴ表示 */
.work-item:hover .overlay {
    opacity: 1;
}

.work-detail {
    max-width: 960px;
    margin: 120px auto 80px;
    padding: 0 20px;
}

.hero {
    position: relative;
}

.hero img {
    width: 100%;
    display: block;
    filter: brightness(75%);
}

.work-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-size: 36px;
    letter-spacing: 2px;
}

.description,
.info {
    margin-top: 40px;
}

.description p {
    line-height: 1.8;
}

.info ul {
    list-style: none;
    padding: 0;
}

.info li {
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: #ccc;
    text-decoration: none;
}

.back-link:hover {
    color: #fff;
}
