/* 黒オーバーレイ（場面3用） */
.black-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* 30%透過の黒 */
    z-index: 4; /* 画像より前、テキストより後ろ */
    opacity: 0;
    visibility: hidden;
}

/* 場面3用のテキストスタイル（黒オーバーレイ上で白文字） */
#scene3 .main-text {
    color: #fff; /* 黒オーバーレイ上で白文字 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 黒シャドウで縁取り */
    font-weight: 500; /* Noto Sans JPに適したウェイト */
}

#scene3 .main-text.brand {
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    font-weight: 800;
}

#scene3 .main-text.subtitle {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

#scene3 .main-text.subtitle br {
    display: none;
}
@media (max-width: 480px) {
    #scene3 .main-text.subtitle br {
        display: inline;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

.scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

.text-container {
    text-align: center;
    z-index: 25; /* 白オーバーレイ(z-index: 15)より前面に変更 */
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    /* Flexboxを削除してシンプルなrelativeコンテナに */
}

.main-text {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    text-align: center;
    max-width: 90%;
    /* 個別に中央配置 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
}

.main-text.brand {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.main-text.large {
    font-size: 4rem;
    font-weight: 700;
}

.main-text.subtitle {
    font-size: 2rem;
    font-weight: 200;
}

.stats-text {
    opacity: 0;
    text-align: center;
    max-width: 90%;
    margin: 0;
    /* 個別に中央配置 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px); /* 中央配置 + 下から上エフェクト */
    width: 100%;
    z-index: 20; /* 白オーバーレイ(z-index: 15)より前面に変更 */
}

.stats-text p {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 1rem auto;
    text-shadow: none;
    text-align: center;
    color: #000;
    line-height: 1.4;
    span {
        font-size: 3rem;
    }
}

.feature-text {
    opacity: 0;
    margin: 0;
    font-size: 2rem;
    text-align: center;
    max-width: 90%;
    /* 個別に中央配置 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
}

.feature-text p {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin: 0.8rem auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* 場面2用のイメージコンテナ */
.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.background-image {
    position: absolute;
    object-fit: cover;
    opacity: 0;
    border: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
}

.background-image:hover {
    transform: scale(1.05);
}

/* ホワイトアウト */
.whiteout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 15; /* テキストコンテナ(z-index: 25)より後ろに設定 */
    opacity: 0;
    visibility: hidden;
}

/* 場面3, 4用の画像 */
.scene-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3; /* ホワイトアウトより前、テキストより後ろ */
}

.scene-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/*
 * 場面3用のスタイル（白背景用）
 */
#scene3 {
    background: #fff; /* 白背景 */
}

#scene3 .main-text {
    color: #fff;
}

/* 場面3のレスポンシブ画像 */
.scene3-image-pc {
    display: block;
}

.scene3-image-sp {
    display: none;
}

/* 場面4のレスポンシブ画像 */
.scene4-image-pc {
    display: block;
}

.scene4-image-sp {
    display: none;
}

@media (max-width: 768px) {
    .scene3-image-pc {
        display: none;
    }
    
    .scene3-image-sp {
        display: block;
    }
    
    .scene4-image-pc {
        display: none;
    }
    
    .scene4-image-sp {
        display: block;
    }
}

/* 場面6用の最終画像 */
.final-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.final-image {
    position: absolute;
    object-fit: cover;
    opacity: 0;
    border: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
}

.final-image:hover {
    transform: scale(1.05);
}

/* ロゴコンテナ */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 400px;
    max-height: 280px;
    width: auto;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
    object-fit: contain;
    margin-bottom: 20px;
}

.logo:hover {
    transform: scale(1.05);
}

/* イベント日程テキスト */
.caption {
    font-size: 1.4rem;
    font-weight: 400;
    color: #000;
    text-align: center;
    opacity: 0;
    letter-spacing: 0.1em;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);*/
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .main-text {
        font-size: 2.5rem;
    }
    
    .main-text.brand {
        font-size: 3.5rem;
    }
    
    .main-text.large {
        font-size: 3.5rem;
    }
    
    .main-text.subtitle {
        font-size: 2rem;
    }
    
    .stats-text p {
        font-size: 1.6rem;
        color: #000;
    }
    
    .feature-text p {
        font-size: 1.6rem;
    }
    
    .logo {
        max-width: 350px;
        max-height: 260px;
        margin-bottom: 15px;
    }
    
    .caption {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .main-text {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .main-text.brand {
        font-size: 2.8rem;
        letter-spacing: 0.15em;
    }
    
    .main-text.large {
        font-size: 2.8rem;
        letter-spacing: 0.2em;
    }
    
    .main-text.subtitle {
        font-size: 1.6rem;
    }
    
    .stats-text p {
        font-size: 1.5rem;
        margin: 0.8rem auto;
        color: #000;
    }
    
    .feature-text p {
        font-size: 1.5rem;
        margin: 0.6rem auto;
    }
    
    .text-container {
        padding: 0 15px;
    }
    
    .logo {
        max-width: 300px;
        max-height: 230px;
        margin-bottom: 12px;
    }
    
    .caption {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 1.4rem;
        letter-spacing: 0.05em;
    }
    
    .main-text.brand {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .main-text.large {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }
    
    .main-text.subtitle {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .stats-text p {
        font-size: 1.2rem;
        margin: 0.6rem auto;
        line-height: 1.3;
        color: #000;
    }

    .stats-text p span {
        font-size: 1.8rem;
    }
    
    .feature-text p {
        font-size: 1.3rem;
        margin: 0.5rem auto;
        line-height: 1.3;
    }
    
    .text-container {
        padding: 0 10px;
    }
    
    .logo {
        max-width: 250px;
        max-height: 200px;
        margin-bottom: 10px;
    }
    
    .caption {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .main-text {
        font-size: 1.2rem;
    }
    
    .main-text.brand {
        font-size: 1.6rem;
    }
    
    .main-text.large {
        font-size: 2rem;
    }
    
    .main-text.subtitle {
        font-size: 1rem;
    }
    
    .stats-text p {
        font-size: 1rem;
        color: #000;
    }
    
    .feature-text p {
        font-size: 1rem;
    }
    
    .logo {
        max-width: 200px;
        max-height: 180px;
        margin-bottom: 8px;
    }
    
    .caption {
        font-size: 0.9rem;
    }
}

/* ホワイトアウトオーバーレイ */
.whiteout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    z-index: 15;
    pointer-events: none;
}

/* 特定の場面用whiteoutの初期状態 */
#scene6-whiteout {
    opacity: 0;
    visibility: hidden;
}

/* 場面5用ロゴ画像 */
.scene5-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    text-align: center;
}

.scene5-logo {
    max-width: 600px;
    max-height: 300px;
    width: auto;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
    object-fit: contain;
}

/* 場面5ロゴのレスポンシブ対応 */
@media (max-width: 1024px) {
    .scene5-logo {
        max-width: 500px;
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .scene5-logo {
        max-width: 400px;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .scene5-logo {
        max-width: 320px;
        max-height: 160px;
    }
}

@media (max-width: 320px) {
    .scene5-logo {
        max-width: 280px;
        max-height: 140px;
    }
}
