/* 全体 */
body {
    margin: 0;
    font-family: "Helvetica", sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

/* ナビ */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 40px;
}

.nav-logo {
    margin-right: 40px;
    /*font-weight: 700;*/
    font-size: 18px;
}

.nav a {
    color: #1e293b;
    text-decoration: none;
    font-size: 17px;
    transition: opacity 0.3s ease;
}

    .nav a:hover {
        opacity: 0.6;
    }
.work-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

/* 写真は中央 */
.work-image img {
    height: 100%;
    max-height: 620px;
    height: auto;
    display: block;
    margin: 0 auto 60px; /* 写真の下に余白 */
}

/* ★ ページ左下に寄せるテキスト */
.work-text {
    max-width: 700px;
    margin: 0; /* 左に寄せるため margin: auto を使わない */
    text-align: left;
}

/* タイトル */
.work-title {
    font-size: 14px;
    font-weight: normal;
    /*margin-bottom: 2px;*/
    /* ★ 行間（上下の間隔） */
    line-height: 1.1; /* 1.0〜1.2 が写真家っぽい */
    /* ★ 文字間（左右の間隔） */
    letter-spacing: 0.15em; /* 0.03〜0.08em が自然 */
}

/* 説明文 */
.work-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.counter {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}




/*【開始】点滅するタップボタン*/
.work-image {
    position: relative;
}

.tap-btn {
    position: absolute;
    /*bottom: 100px;*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    /*background: #ffffff;*/
    background: rgba(255, 255, 255, 0.4);
    /*color: #000;*/
    color: gray;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    animation: blink 0.8s infinite;
    pointer-events: none;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
/*【終了】点滅するタップボタン*/



/* スマホ対応 */
@media (max-width: 768px) {
    html, body {
    overscroll-behavior: none;
    overflow: hidden;
    touch-action: none;
}

    .work-container {
        margin: 40px auto;
    }

    .work-title {
        font-size: 20px;
    }

    .work-description {
        font-size: 15px;
    }
    .nav {
        display: flex;
        flex-wrap: wrap; /* ← これがポイント */
        gap: 12px 20px; /* 上下12px、左右20px の余白 */
        padding: 20px;
    }

    .nav-logo {
        width: 100%; /* ← ロゴだけ1行目に固定 */
        margin-bottom: 10px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /*.work-image img {
        width: 100%;
        max-width: 620px;
        height: auto;
        display: block;
        margin: 0 auto 60px;*/ /* 写真の下に余白 */
    /*}*/

    .work-image img {
        width: 100%;
        max-width: 620px;
        height: 52vh; /* ← 高さを固定するのがポイント */
        object-fit: contain; /* または cover */
        object-position: center; /* ← 中央基準にする */
        display: block;
        margin: 0 auto 40px;
    }

    .work-title {
        font-size: 10px;
        font-weight: normal;
        /*margin-bottom: 2px;*/
        /* ★ 行間（上下の間隔） */
        line-height: 1.1; /* 1.0〜1.2 が写真家っぽい */
        /* ★ 文字間（左右の間隔） */
        letter-spacing: 0.15em; /* 0.03〜0.08em が自然 */
    }

    .nav-logo {
        margin-right: 40px;
        /*font-weight: 700;*/
        font-size: 17px;
    }

    .nav a {
        color: #1e293b;
        text-decoration: none;
        font-size: 14px;
        transition: opacity 0.3s ease;
    }

    .counter {
        font-size: 12px;
        color: #444;
        margin-bottom: 10px;
    }
}


