* {
    box-sizing: border-box;
}
html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth; /* スムーズスクロール */
}
body {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Zen Old Mincho", serif;
    background-image: url("background-red.jpg"); /* 赤い背景画像 */
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
}

/* 背景画像の設定 - 共通 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("background.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: transparent;
    z-index: -2; /* メインの背景の上に配置 */
}

/* スマホ版の背景画像スタイル */
body::after {
    background-size: 100% auto;
    background-position: center top;
}

/* PC版の背景画像スタイル */
@media (min-width: 768px) {
    body::after {
        background-size: auto 100%; /* 高さ100%に設定 */
        background-position: center center;
    }
}

/* 背景オーバーレイ（スクロール時に暗くなる） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

body.scrolled::before {
    background-color: rgba(0,0,0,0.8); /* スクロール時の暗さを増加（0.5→0.8） */
}

/* スプラッシュスクリーン */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#splash_box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#splash-title {
    opacity: 1; /* 最初は表示 */
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

#main-content {
    opacity: 0;
}

/* 初期画面（ロゴのみ表示） */
.initial-view {
    display: none;
}

/* コンテンツエリア（スクロール後に表示） */
.content {
    min-height: 100vh;
    margin-top: 100vh; /* 最初の画面の高さ分下げる */
    position: relative;
    z-index: 1;
}

/*------------------------------------------------------------*/

/*-------------------------------------------------------------*/

/* あらすじセクションを画面内に収める */
.story-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#unsextetimg {
    display: none;
    width: 100%;
    top: 0;
}

#headerimg {
    position: relative;
    z-index: 50;
    filter: invert(1) drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6));
    width: 50%;
    max-width: 500px;
}

.initial-view #headerimg {
    display: block;
}

/*-------------------------------------------------------------*/

/* ハンバーガーメニュー関連のスタイルを削除 */
.header {
    display: none;
}

/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
    display: none;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    display: none;
}

/* メニューのデザイン*/
.nav_content {
    display: none;
}

/*-------------------------------------------------------------*/

/* あらすじ部分を非表示に */
.story-inner {
    display: none;
}

.story {
    display: none;
}

.story-start,
.story-end {
    display: none;
}

.schedule-inner {
    width: 60%;
    margin: 0 0 80px auto;
    position: relative;
}

.schedule-start {
    position: absolute;
    top: 0;
    left: 0;
    width: 10%;
    filter: invert(1);
}
.schedule-end {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10%;
    filter: invert(1);
}

.schedule {
    color: white;
    font-size: 30px; /* 文字サイズを大きく */
    line-height: 3em;
    text-align: center;
    padding: 4em 3em 2em 3em;
    font-weight: 800; /* 太字に */
}

/* 公演情報のタイトル */
.schedule::after {
    position: absolute;
    content: '公演情報';
    font-size: 46px; /* タイトルも大きく */
    padding: 1em;
    top: 0;
    left: 0;
    color: #ff6b6b; /* 赤色に */
    font-weight: 900; /* 太字に（1200は無効なので900に変更） */
}

/* 時間を赤色に */
.schedule time {
    color: #ff6b6b; /* 赤色に */
    font-weight: bold; /* 太字に */
}

.schedule a {
    color: #fff !important;
    font-weight: bold; /* リンクも太字に */
    text-decoration: underline; /* 下線を追加 */
}

.member-inner {
    width: 100%;
    position: relative;
}

.member {
    font-size: 20px;
    line-height: 2.5em; /* 行間を広げる */
    text-align: center;
    width: 100%;
    color: white;
    padding: 120px 2em 3em 2em;
}

/* 偶数行のテキストを赤色に */
.member p:nth-child(even),
.member span:nth-child(even) {
    color: #ff6b6b; /* 赤色 */
}

.member br + br {
    content: "";
    display: block;
    margin-bottom: 1em; /* 行間をさらに広げる */
}

/* キャスト情報のスタイリング */
.cast-line {
    display: block;
    margin-bottom: 0.5em;
}

.cast-line:nth-child(even) {
    color: #ff8c8c; /* より明るい赤色 */
    margin-top: 0.5em; /* 上の行との間隔をさらに広げる */
    margin-bottom: 0.5em; /* 下の行との間隔をさらに広げる */
}

.title {
    font-size: 80px;
    line-height: 1.5em;
    margin-bottom: 0.5em;
    display: block;
}

.nemokano {
    font-size: 55px;
    line-height: 2.5em;
    display: block;
    color: #7a0000; /* より濃い赤色 */
    font-weight: 700; /* 太字に *
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* テキストシャドウを追加 */
}

.actor, .nemokano-sub {
    font-size: 30px;
    line-height: 2.5em;
    display: block;
    margin-bottom: 1em;
}

.footer {
    color: #808080;
    width: 100%;
    text-align: center;
    padding: 30px;
}

.footer .copyright {
    margin: 0;
    padding: 20px 0 0 0;
}

/* タイピングテキスト */
#typing-text {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-size: 26px; /* SP版は大きめに */
    line-height: 1.8;
    text-align: left;
    max-width: 90%;
    max-height: 80%;
    z-index: 10;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    writing-mode: vertical-rl; /* 縦書き、右から左 */
    white-space: pre; /* 改行と空白を保持 */
    letter-spacing: 0.1em; /* 文字の間隔 */
    font-family: "Zen Old Mincho", serif;
}

/* 2つ目のタイピングテキスト */
#typing-text-2 {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%); /* 縦方向に中央揃え */
    color: white;
    font-size: 22px; /* SP版は大きめに */
    line-height: 1.8;
    text-align: left;
    max-width: 90%;
    max-height: 80%;
    z-index: 10;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    writing-mode: vertical-rl; /* 縦書き、右から左 */
    white-space: pre; /* 改行と空白を保持 */
    letter-spacing: 0.1em; /* 文字の間隔 */
    font-family: "Zen Old Mincho", serif;
    opacity: 0.8; /* やや透明に */
}

/* 3つ目のタイピングテキスト */
#typing-text-3 {
    position: absolute;
    bottom: 10%;
    left: 40px; /* やや中央寄り */
    color: white;
    font-size: 30px; /* SP版は大きめに */
    line-height: 1.8;
    text-align: left;
    max-width: 90%;
    max-height: 80%;
    z-index: 10;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    writing-mode: vertical-rl; /* 縦書き、右から左 */
    white-space: pre; /* 改行と空白を保持 */
    letter-spacing: 0.1em; /* 文字の間隔 */
    font-family: "Zen Old Mincho", serif;
    opacity: 0.9; /* やや濃い目 */
}

/* 4つ目のタイピングテキスト */
#typing-text-4 {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%); /* 縦方向に中央揃え */
    color: white;
    font-size: 36px; /* SP版は大きめに */
    line-height: 1.8;
    text-align: left;
    max-width: 50%;
    max-height: 90%;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    writing-mode: vertical-rl; /* 縦書き、右から左 */
    white-space: pre; /* 改行と空白を保持 */
    letter-spacing: 0.1em; /* 文字の間隔 */
    font-family: "Zen Old Mincho", serif;
    opacity: 1.0; /* 完全に不透明 */
    font-weight: 500; /* やや太め */
}

/* PC版でのフォントサイズ調整 */
@media (min-width: 768px) {
    #typing-text {
        font-size: 13px; /* 26pxの半分 */
    }
    
    #typing-text-2 {
        font-size: 11px; /* 22pxの半分 */
    }
    
    #typing-text-3 {
        font-size: 15px; /* 30pxの半分 */
    }
    
    #typing-text-4 {
        font-size: 18px; /* 36pxの半分 */
    }
}

/* 劇団ロゴ */
#theater-logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 200px;
    height: auto;
    opacity: 0; /* 最初は非表示 */
    z-index: 20;
    filter: invert(1) drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6));
}

/* テキストアニメーショングループ */
#text-animation-group {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0; /* 最初は非表示 */
    z-index: 10;
}

/* 最終テキスト（中央） */
#typing-text-final {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 36px; /* SP版は大きめに */
    line-height: 1.8;
    text-align: center;
    max-width: 70%;
    max-height: 90%;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    writing-mode: vertical-rl; /* 縦書き、右から左 */
    white-space: pre; /* 改行と空白を保持 */
    letter-spacing: 0.1em; /* 文字の間隔 */
    font-family: "Zen Old Mincho", serif;
    opacity: 0; /* 最初は非表示 */
    font-weight: 600; /* 太め */
}

/* PC版でのフォントサイズ調整 */
@media (min-width: 768px) {
    #typing-text {
        font-size: 13px; /* 26pxの半分 */
    }
    
    #typing-text-2 {
        font-size: 11px; /* 22pxの半分 */
    }
    
    #typing-text-3 {
        font-size: 15px; /* 30pxの半分 */
    }
    
    #typing-text-4 {
        font-size: 18px; /* 36pxの半分 */
    }
    
    #typing-text-final {
        font-size: 18px; /* 36pxの半分 */
    }
}

/* スキップボタン */
#skip-button {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-family: 'Noto Serif JP', sans-serif;
    cursor: pointer;
    z-index: 10000;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

#skip-button:hover {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 脚本・演出 根本花音 のスタイリングを強化 */
.member .nemokano {
    color: #ff3333 ;
    font-weight: bold ;
    font-size: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* スマートフォン版での表示 */
@media (max-width: 767px) {
    .schedule-inner {
        width: 90%; /* 横幅を広げる */
        margin: 0 auto 80px auto; /* 左右のマージンを自動に設定して中央揃え */
        position: relative;
    }
    
    .schedule {
        text-align: center; /* 中央揃え */
        padding: 5em 1em 2em 1em; /* 上部のパディングを増やし、左右を縮小 */
        font-size: 20px; /* SPでは文字サイズを小さく */
    }
    
    .schedule::after {
        left: 50%; /* 中央配置の基準点 */
        transform: translateX(-50%); /* 中央揃え */
        font-size: 26px; /* タイトルも小さく */
    }
    
    /* 本文部分の文字サイズを小さく */
    .member {
        font-size: 16px;
        padding: 100px 1em 2em 1em;
    }
    
    .title {
        font-size: 40px;
    }
    
    .nemokano {
        font-size: 30px;
    }

    .member .nemokano {
        font-size: 30px;
    }
    
    .actor, .nemokano-sub {
        font-size: 24px;
    }
    
    .cast-line {
        font-size: 16px;
        line-height: 2em;
    }
    
    /* スケジュール内のリンクボタン */
    .schedule a {
        padding: 2px 8px;
        margin-left: 5px;
    }
}

/* フッターのCTAボタン */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6b6b;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #ff3333;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.cta-button.reservation {
    background-color: #ff6b6b;
}

.cta-button.streaming {
    background-color: #8c52ff;
}

/* スマートフォン版でのCTAボタン調整 */
@media (max-width: 767px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        width: 80%;
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .footer {
        padding: 20px 10px;
    }
}

/* 固定CTAボタン */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: none; /* 初期状態では非表示 */
    justify-content: center;
    gap: 20px;
    z-index: 9998; /* スプラッシュの下、他のコンテンツの上 */
    padding: 0 10px;
    box-sizing: border-box;
}

/* PC版では常に非表示 */
@media (min-width: 768px) {
    .fixed-cta {
        display: none !important;
    }
}

.fixed-cta .cta-button {
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* より控えめな影 */
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 30px;
}

/* スマートフォン版での固定CTAボタン調整 */
@media (max-width: 767px) {
    .fixed-cta {
        gap: 10px;
    }
    
    .fixed-cta .cta-button {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 12px;
    }
}