@charset "UTF-8";

/* ▼ 追加：Google Fonts（丸文字ゴシック）の読み込み ▼ */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;700;800&display=swap');

/* =========================================
   基本設定・変数
   ========================================= */
:root {
    /* 濃くシャープなネイビーと、鮮やかなブルーに変更しました */
    --primary-color: #001B4D; 
    --secondary-color: #0044CC;
    --accent-color: #E63946;
    --btn-color: #FFC400;
    --text-color: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f8fb;
    --bg-white: #ffffff;
    
    --font-base: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Meiryo", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* メニューが開いている時はスクロール禁止（JSで付与） */
body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* =========================================
   ヘッダー
   ========================================= */
.header {
    background-color: var(--primary-color);
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    /* 【修正】最前面に来るよう数値を大きく設定 */
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-logo h1 {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap; /* 改行させない */
}

/* スマホ表示時のヘッダー調整 */
@media (max-width: 767px) {
    .header {
        padding: 0 15px; /* 左右の余白を少し詰める */
    }
    .site-logo h1 {
        font-size: 1.1rem; /* 【修正】文字サイズを小さくして収まりよく */
        margin-right: 10px; /* 右側に少し余白 */
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* ハンバーガーアイコン */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    /* 【修正】ヘッダーよりさらに上に */
    z-index: 10001; 
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーのアニメーション */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   ナビゲーション
   ========================================= */
.nav {
    display: none; 
}

/* PCサイズ */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid #ddd;
        z-index: 9000; /* PCでもヘッダーの下、コンテンツの上 */
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .nav ul {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .nav a {
        font-weight: bold;
        font-size: 0.9rem;
        color: var(--primary-color);
        position: relative;
    }

    .nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--secondary-color);
        transition: width 0.3s;
    }

    .nav a:hover::after {
        width: 100%;
    }
    
    main {
        margin-top: 120px;
    }
}

/* スマホサイズ（メニュー展開時） */
@media (max-width: 767px) {
    main {
        margin-top: 70px;
    }
    
    .nav {
        /* デフォルトは非表示、activeクラスで表示 */
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 全画面 */
        background-color: rgba(0, 76, 140, 0.98); /* 背景を濃くして後ろを見えなくする */
        
        /* 【修正】ヘッダー(10000)より下だが、コンテンツ(通常1)よりはずっと上 */
        z-index: 9999; 
        
        transform: translateX(100%); /* 画面右外に隠しておく */
        transition: transform 0.3s ease-in-out;
        padding-top: 80px; /* ヘッダーの高さ分下げる */
    }
    
    .nav.active {
        transform: translateX(0); /* スライドイン */
    }
    
    .nav ul {
        padding: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .nav a {
        font-size: 1.3rem;
        font-weight: bold;
        color: var(--text-light);
        display: block;
        padding: 10px;
    }
}


/* =========================================
   メインコンテンツ：ヒーローセクション
   ========================================= */

.hero {
    position: relative; /* 子要素 (背景画像と中央画像) の位置決めの基準にする */
    width: 100%;
    height: 600px; /* ヒーローセクションの高さ。必要に応じて調整 */
    overflow: hidden; /* はみ出した要素を隠す */
    margin-bottom: 0px;
    text-indent: -9999px;
}

/* ヒーローセクションの背景画像 */
.hero-background-image {
    position: absolute; /* 親要素 (.hero-section) を基準に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 背景画像がセクション全体を覆うように拡大・縮小 */
    z-index: 1; /* 他の要素より奥に表示 */
}
  
/* 中央に配置する画像のコンテナ */
.hero-center-image-container {
    position: absolute; /* 親要素 (.hero-section) を基準に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex; /* Flexboxを使って子要素を中央に配置 */
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    
    z-index: 2; /* 背景画像より手前に表示 */
    opacity: 80%;
}
  
/* 中央に配置する画像自体 */
.hero-center-image {
    max-width: 70%; /* 親コンテナ (hero-center-image-container) の幅の80%まで */
    max-height: 70%; /* 親コンテナの高さの80%まで */
    width: auto; /* 縦横比を維持 */
    height: auto; /* 縦横比を維持 */
    display: block; /* 画像の下の余白を消す */
}

@media (max-width: 768px) {
    .hero {
        display: flex; 
        min-height: 100vh;
        height: auto;
    }
    
    /* ヒーローセクションの中央に配置した画像がある場合 */
    .hero-center-image {
        /* 画像が大きすぎないように調整 */
        max-width: 70%; 
    }
}

/* =========================================
   各セクション共通
   ========================================= */
.content-section {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 50px 20px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .content-section {
        padding: 80px 60px;
        margin-bottom: 100px;
    }
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.info-content {
    font-size: 1.1rem;
    color: #4a4a4a;
}

/* =========================================
   Story セクションのスタイル
   ========================================= */

.story-content {
    text-align: left;
    display: inline-block;
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    line-height: 2;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .story-content p {
        font-size: 0.8rem;
    }
}

/* =========================================
   Notice セクション（重要なお知らせ）
   ========================================= */
   #notice.content-section {
    border: 2px solid var(--accent-color); /* 赤のボーダーで重要性を強調 */
    background-color: #fffdfd; /* 真っ白ではなく、ごくわずかに赤みがかった背景色 */
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.15); /* シャドウも少し赤みを帯びさせる */
    margin-top: 60px;
}

/* タイトルの色を赤に変更し、深刻さを出す */
#notice h2 {
    color: var(--accent-color);
    margin-bottom: 30px;
}

#notice h2::after {
    background-color: var(--accent-color);
}

.notice-content {
    /* お詫びや案内の文章なので、中央揃えではなく左揃えにしてフォーマルに */
    text-align: left; 
    display: inline-block;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.notice-content p {
    line-height: 2;
    font-size: 1.05rem;
    color: #333333;
    font-weight: 500;
}

/* 連絡先アドレスなどを少し目立たせるための装飾（必要に応じて） */
.notice-content p a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* スマホ向けの微調整 */
@media (max-width: 768px) {
    #notice.content-section {
        padding: 40px 20px;
    }
    
    .notice-content p {
        font-size: 0.8rem;
    }
}

/* =========================================
   Fluyer セクションとモーダル(拡大)機能
   ========================================= */
/* 画像を横並び（スマホでは縦並び）にするレイアウト */
.fluyer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.fluyer-img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時に少し浮き上がるエフェクト */
.fluyer-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* モーダル全体のスタイル */
.modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    z-index: 20000; /* ヘッダーよりさらに手前に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* 拡大される画像のスタイル */
.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* バツ(閉じる)ボタン */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-color);
}

/* =========================================
   Cast セクション（キャスト一覧の見た目）
   ========================================= */
   .cast-grid {
    display: grid;
    /* 画面幅に合わせて自動で列数を調整します */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    padding: 0;
    margin-top: 30px;
}

.member {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスを乗せた時に少しフワッと浮くエフェクト */
.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.member img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 画像を丸くする */
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--bg-white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.member h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member p {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

/* =========================================
   キャスト詳細用 オーバーレイ（モーダル）
   ========================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 27, 77, 0.85); /* ダークブルーの半透明背景 */
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.overlay-inner {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay.active .overlay-inner {
    transform: translateY(0);
}

#overlay-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

#overlay-actor {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

#overlay-role {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    text-align: left;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
}

#overlay-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 15px auto; /* 中央揃えして下に余白 */
    display: block;
    border: 3px solid var(--bg-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* オーバーレイの中のバツボタン（白背景用なので色を暗く） */
.overlay-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.overlay-close-btn:hover {
    color: var(--accent-color);
}

/* =========================================
   セクション個別設定
   ========================================= */

#date .info-content p {
    line-height: 2.2;
    font-weight: 500;
}

#theater .info-content p {
    margin-bottom: 30px;
}

#theater .info-content span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

iframe {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: none;
}

#ticket p {
    margin-bottom: 40px;
    line-height: 2;
}

#ticket p span {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.btn.ticket {
    display: inline-block;
    background-color: var(--btn-color);
    color: #000;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 196, 0, 0.4);
    transition: all 0.3s ease;
}

.btn.ticket:hover {
    background-color: #ffd54f;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 196, 0, 0.6);
    opacity: 1;
}

#contact p {
    line-height: 1.8;
}

#contact span {
    font-weight: bold;
    color: var(--primary-color);
}

footer {
    background-color: #0a1e40;
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
    margin-top: 60px;
}

.sozo-content h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.sozo-content p {
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.sozo-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}