@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #223322;
    --color-text: #F0F2F0;
    --color-accent: #C9B082;
    --font-serif: "Shippori Mincho", serif;
}

html,
body {
    height: 100dvh;
    width: 100%;
    background: transparent;
    /* 背景ビデオ露出のため */
    font-family: var(--font-serif);
    color: var(--color-text);
    overflow: hidden;
}

/* ビデオ背景 */
.global-video-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: #000;
}

.global-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* イントロ演出 */
#intro-screen {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
}

.intro-name {
    font-size: clamp(2.5rem, 10vw, 8rem);
    color: #fff;
    letter-spacing: 0.15em;
    transition: opacity 0.8s;
}

.intro-name .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: cfade 1.5s forwards;
}

@keyframes cfade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#intro-screen.fade-text .intro-name {
    opacity: 0;
}

body.loaded #intro-screen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.loaded #intro-screen .intro-name {
    display: none;
}

/* コンテナ設定 */
.snap-container {
    height: 100dvh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
    background: transparent;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

body.loaded .snap-container {
    opacity: 1;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

.snap-section {
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* スライド演出 */
.card-panel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
    transition: transform 1.3s cubic-bezier(0.66, 0, 0.33, 1), opacity 1s;
    opacity: 0;
    transform: translateY(100%) scale(0.6);
}

.snap-section.is-visible .card-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#home.is-visible .card-panel {
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.4s;
}

.snap-section.past .card-panel {
    transform: translateY(-100%) scale(0.6);
    opacity: 0;
}

/* 背景写真 */
.bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 2.5s;
    transform: scale(1.2);
    opacity: 1;
}

#home .bg-img img {
    object-position: 20% center;
}

#news .bg-img img {
    object-position: 85% center;
}

#profile .bg-img img {
    object-position: center 20%;
}

/* DANCEとSTAGEは元のまま */
#dance .bg-img img,
#stage .bg-img img {
    object-position: center 20% !important;
}

/* FILMセクションの背景調整 */
#film .bg-img img {
    object-position: 65% 20% !important;
    /* 数値を大きくして顔を中央へ寄せる */
    transform: scale(1.0) !important;
    /* ズームアウト（拡大なしの状態） */
}

.snap-section.is-visible .bg-img img {
    transform: scale(1.05);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.home-clear {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* 配置 */
.content-wrapper {
    position: absolute;
    z-index: 10;
    width: 85%;
    opacity: 0;
    transition: 2s 1.7s;
    bottom: 6dvh;
}

.snap-section.is-visible .content-wrapper {
    opacity: 1;
}

.align-right-bottom {
    right: 7.5%;
    text-align: right;
}

.align-left-bottom {
    left: 7.5%;
    text-align: left;
}

.align-center-bottom {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* 経歴ボード共通 */
.info-board-compact {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    padding: 15px 20px;
    text-align: left;
    border-left: 2px solid var(--color-accent);
}

.board-title-small {
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.intro-text-small {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
    opacity: 0.8;
}

.work-list-mini {
    list-style: none;
    padding: 0;
}

.work-list-mini li {
    font-size: 0.75rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.work-list-mini span {
    color: var(--color-accent);
    margin-right: 12px;
    font-weight: bold;
}

/* セクション個別 */
.dance-wrapper,
.stage-wrapper,
.film-wrapper {
    bottom: 4dvh;
    max-width: 900px;
}

.dance-content-grid,
.film-content-grid,
.stage-content-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ビデオコンテナ */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
}


/* Profile / 汎用 */
.name-jp {
    font-size: 2.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 3px;
}

.name-en {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin-bottom: 12px;
    opacity: 0.8;
}

.details {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.profile-sns-icons {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 5px;
}

.profile-sns-icons a {
    color: var(--color-text);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.hero-en-label {
    font-size: clamp(0.8rem, 2.2vw, 1.1rem);
    letter-spacing: 0.5em;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(2.8rem, 11vw, 6.5rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.latest-info-board {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 30px;
    max-width: 450px;
    text-align: left;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 2 / 3;
    /* 縦長に強制固定 */
    object-fit: cover;
    cursor: pointer;
    /* 最初は隠しておく（1秒後の演出用） */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s, opacity 0.8s ease, transform 0.8s ease;
}

/* JavaScriptで1秒後に付与されるクラス */
.gallery-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.btn-contact {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 0.2em;
    margin-top: 15px;
    font-size: 0.85rem;
}

.site-footer {
    padding-top: 25px;
    font-size: 0.65rem;
    opacity: 0.5;
}

/* ハンバーガー */
.menu-toggle {
    position: fixed;
    top: 35px;
    right: 35px;
    z-index: 200000;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--color-accent);
    margin: 4px 0;
}

/* 背景色をモスグリーンに変更 */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 150000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s;
}

/* メニューの「・」を消去 */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

.nav-menu a {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 22px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 35px;
    background: #fff;
    margin: 6px auto 0;
}

/* デスクトップ用横並び設定 */
@media (min-width: 1024px) {

    .dance-content-grid,
    .film-content-grid,
    .stage-content-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .video-container {
        flex: 1.1;
    }

    .info-board-compact {
        flex: 1;
    }

    /* CONTACTセクション：背景色を写真と完全に同化させる設定 */
    #contact .bg-img {
        /* 写真の「左の白」と「右のグレー」に合わせたグラデーションで埋める */
        background: linear-gradient(to right, #fcfcfc 0%, #e2e2e2 100%) !important;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    /* 以前のぼかし演出（::before）は不要なので無効化するか、このコードで上書き */
    #contact .bg-img::before {
        display: none;
        /* 暗いボカシを消してスッキリさせる */
    }

    /* メインの安井さんの写真 */
    #contact .bg-img img {
        object-fit: contain !important;
        position: relative;
        z-index: 1;
        width: auto !important;
        height: 100% !important;
        /* 画面いっぱいに高さを出す */
        object-position: center 10% !important;
        /* 頭の位置をさらに上へ */
        transform: translateY(-20px) !important;
        /* 物理的に少し上に突き抜けさせる */
        filter: none !important;
        /* 余計な影を消して同化させる */
    }

    /* 文字の視認性を上げるための調整 */
    #contact .contact-stylish-wrapper {
        bottom: 10dvh;
        z-index: 10;
        /* 背景が明るくなるので、文字が読みやすいよう少しだけ影を落とす */
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    /* 漢字名：右端を完璧に揃える */
    .hero-title {
        font-size: 8rem !important;
        letter-spacing: 0.4em !important;
        /* 字間の 0.4em 分だけ右側にマイナスの余白を作って引き戻す */
        margin-right: -0.4em !important;
        line-height: 1.2;
        text-align: right;
    }

    /* ローマ字名：右端を完璧に揃える */
    .hero-en-label {
        font-size: 1.2rem !important;
        letter-spacing: 0.6em !important;
        /* 字間の 0.6em 分だけ右側にマイナスの余白を作って引き戻す */
        margin-right: -0.6em !important;
        margin-bottom: 12px;
        text-align: right;
        display: block;
        /* 右揃えを確実にするため */
    }
}

/* スマホ調整 */
@media (max-width: 768px) {
    #home .bg-img img {
        object-position: 5% center !important;
    }

    /* GALLERYセクション：画像をさらに小さく調整 */
    #gallery .vertical-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 50%;
        /* さらに幅を絞る（70% → 50%） */
        max-width: 180px;
        /* 最大サイズを制限（260px → 180px） */
        margin: 0 auto;
        gap: 6px;
        /* 隙間も少しコンパクトに */
    }

    /* --- ここまで追記 --- */
}


#news .bg-img img {
    object-position: 85% center !important;
}

#profile .bg-img img {
    object-position: center 15% !important;
}

#dance .bg-img img,
#stage .bg-img img,
#film .bg-img img {
    object-position: center 10% !important;
}

.content-wrapper {
    bottom: 6dvh;
    width: 92%;
    left: 4% !important;
    right: auto !important;
    transform: none !important;
}

#home .content-wrapper {
    text-align: right;
}

#news .content-wrapper {
    text-align: left;
}

#profile .content-wrapper,
#dance .content-wrapper,
#stage .content-wrapper,
#film .content-wrapper,
#gallery .content-wrapper,
#contact .content-wrapper {
    text-align: center;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.dance-wrapper,
.stage-wrapper,
.film-wrapper {
    bottom: 2dvh;
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

.video-container {
    width: 90%;
    margin: 0 auto 5px auto;
}


.info-board-compact {
    padding: 12px 15px;
    width: 92%;
    margin: 0 auto;
}

.board-title-small {
    font-size: 0.85rem;
}

.intro-text-small {
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.work-list-mini li {
    font-size: 0.65rem !important;
    margin-bottom: 3px !important;
}

.hero-title {
    font-size: 2.4rem;
    letter-spacing: 0.15em;
}

.latest-info-board {
    padding: 20px;
    width: 100%;
}

.menu-toggle {
    top: 25px;
    right: 25px;
}

.name-jp {
    font-size: 1.7rem;
}


/* 背景画像の位置調整（お好みで数値を変えてください） */
#gallery .bg-img img {
    object-position: center center !important;
}

/* 縦長画像用のグリッド（PC:3列、スマホ:2列） */
.vertical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 2 / 3;
    /* 縦長を維持 */
    object-fit: cover;
    cursor: pointer;
    /* 最初は隠しておく設定 */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s, opacity 0.8s ease, transform 0.8s ease;
}

/* 1秒後に追加されるクラス */
.gallery-item.appear {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* モーダル表示のスタイル */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 300000;
    display: none;
    /* 初期は非表示 */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* スマホ調整 */
@media (max-width: 768px) {
    .vertical-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;

    }
}

/* =========================================
   Final Section: CONTACT スタイリッシュ設定
========================================= */

/* 背景画像の位置と雰囲気を調整 */
#contact .bg-img img {
    object-position: center center !important;
    filter: grayscale(20%) contrast(1.05);
    /* ほんの少しムーディーに */
}

/* コンテンツ全体の配置調整 */
.contact-stylish-wrapper {
    bottom: 12dvh;
    /* 少し高めの位置に設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* メインエリアの間隔 */
.contact-main-area {
    margin: 45px 0 70px;
    text-align: center;
}

/* 案内テキスト */
.contact-prompt {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    opacity: 0.7;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* メールアドレスのリンク装飾 */
.email-link-stylish {
    /* 画面幅に合わせて大きくなるレスポンシブフォント */
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    color: var(--color-accent);
    /* アクセントカラー（金色）を使用 */
    text-decoration: none;
    letter-spacing: 0.1em;
    font-family: var(--font-serif);
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.email-link-stylish:hover {
    opacity: 0.8;
}

/* ホバー時に伸びるアンダーラインの演出 */
.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* 最初は幅ゼロ */
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.email-link-stylish:hover .link-underline {
    width: 100%;
    /* ホバーでスッと伸びる */
}

/* 統合されたスタイリッシュなフッター */
.site-footer-stylish {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    opacity: 0.4;
    /* 上部にうっすらと金色のラインを引く */
    border-top: 1px solid rgba(201, 176, 130, 0.3);
    padding-top: 25px;
    width: fit-content;
    /* 文字数に合わせる */
    min-width: 200px;
}

/* CONTACTセクション専用のスマホ調整 */
@media (max-width: 768px) {
    .contact-stylish-wrapper {
        bottom: 15dvh;
        /* スマホでは少し上にあげる */
    }

    .contact-main-area {
        margin: 30px 0 50px;
        /* 間隔を少し詰める */
    }

    .email-link-stylish {
        font-size: 1.5rem;
        /* スマホでの最大サイズ調整 */
    }
}

/* --- CONTACTセクション：最下部固定のコピーライト --- */
.site-footer-bottom {
    position: absolute;
    bottom: 25px;
    /* 画面下端からの距離 */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
    /* 画像やコンテンツより確実に手前に出す */
    pointer-events: none;
}

.site-footer-bottom p {
    color: #fff !important;
    /* ジャケットの上で映える白 */
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
    margin: 0;
    /* 背景が明るい場所にはみ出しても読めるよう、影を落とす */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* スマホ用微調整 */
@media (max-width: 768px) {
    .site-footer-bottom {
        bottom: 15px;
    }

    .site-footer-bottom p {
        font-size: 0.55rem;
    }

    /* ▼▼▼ ここを追記 ▼▼▼ */
    /* スマホでSCROLLを左下に配置して名前との被りを防ぐ */
    .scroll-indicator {
        left: 40px !important;
        /* 左端からの距離 */
        transform: none !important;
        /* 中央寄せを解除 */
        text-align: left;
        /* テキストを左揃えに */
    }

    .scroll-line {
        margin: 6px 0 0 !important;
        /* 線も左側に寄せる */
    }
}

/* HOMEセクション：最初のスライドインを無効化 */
#home .card-panel {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* ただし！「ページをめくる（過去へ送る）」時はちゃんと動かす */
#home.past .card-panel {
    opacity: 0 !important;
    transform: translateY(-100%) scale(0.6) !important;
    transition: transform 1.3s cubic-bezier(0.66, 0, 0.33, 1), opacity 1s;
}

/* --- 背景動画の出し分け --- */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* スマホ（768px以下）の設定 */
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}