/* =========================================
   ベース設定
   ========================================= */
:root {
    --color-pink: #e06a80;   
    --color-navy: #1a2035;   
    --color-text-light: #f5f5f5;
    --color-text-dark: #333;
    --font-mincho: 'Zen Old Mincho', serif;
    --font-gothic: 'Noto Sans JP', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-mincho);
    color: var(--color-text-dark);
    line-height: 1.8;
    background-color: var(--color-pink);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =========================================
   共通クラス
   ========================================= */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
    font-family: var(--font-gothic);
}

/* PCのみ表示するクラス */
.pc-only {
    display: inline;
}

/* アニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   ヘッダー
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-navy);
    flex-shrink: 0; 
}

/* PC用メニュー */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-navy);
    font-family: var(--font-gothic);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-pink);
}

/* =========================================
   ハンバーガーメニュー (スマホ用)
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 25px;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-navy);
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); bottom: 11px; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu a {
    display: block;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    text-decoration: none;
}

.mobile-menu.active {
    right: 0;
}

/* =========================================
   メインコンテンツ
   ========================================= */

/* TOPセクション */
.top-section {
    background-color: var(--color-pink);
    color: var(--color-navy);
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-text {
    margin-bottom: 40px;
}

.catch-copy {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ★追加: メインロゴ画像用のスタイル */
.main-logo {
    width: 100%;          /* 横幅いっぱいを基準に */
    max-width: 400px;     /* PCでの最大幅を指定（適宜調整してください） */
    height: auto;         /* 高さは自動 */
    margin: 20px auto;    /* 上下に余白、左右は中央揃え */
    display: block;       /* ブロック要素にして中央揃えを効かせる */
    transform: rotate(-2deg); /* テキストにあった傾きを画像にも適用 */
}

.group-name {
    font-size: 1rem;
    font-family: var(--font-gothic);
    margin-bottom: 5px;
    margin-top: 20px; /* ロゴとの間隔を調整 */
}

.hero-date {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-gothic);
}

.flyer-wrapper img {
    max-width: 500px;
    width: 90%;
    height: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 2px;
    margin: 0 auto 40px;
    display: block;
}

.synopsis-box {
    text-align: left;
    background: rgba(255,255,255,0.3);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.synopsis-box h3 {
    text-align: center;
    font-family: var(--font-gothic);
    margin-top: 0;
    margin-bottom: 20px;
}

.synopsis-box p {
    margin-bottom: 1em;
}

.message {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
}

.schedule-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    max-width: 500px;
}

.schedule-table th, .schedule-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-navy);
}

.note-box {
    font-size: 0.85rem;
    margin-top: 20px;
    text-align: left;
    max-width: 500px;
    margin: 20px auto 0;
}

.note-box p {
    margin: 5px 0;
}

/* TICKETセクション */
.ticket-section {
    background-color: var(--color-navy);
    color: var(--color-text-light);
}

.section-title {
    color: var(--color-text-light);
}

.price-list {
    max-width: 600px;
    margin: 0 auto 30px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-row dt {
    color: var(--color-pink);
    font-weight: 900;
    font-size: 1.2rem;
    font-family: var(--font-gothic);
}

.price-row dd {
    font-weight: bold;
    font-size: 1.2rem;
}

.small-caption {
    font-size: 0.7em;
    font-weight: normal;
    color: rgba(255,255,255,0.8);
}

.price-note {
    font-size: 0.85rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ticket-btn-area {
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-pink);
    color: var(--color-navy);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s, background 0.2s;
    font-family: var(--font-gothic);
}

.btn:hover {
    background-color: white;
    transform: scale(1.05);
}

.btn-navy {
    background-color: var(--color-navy);
    color: white;
}

.btn-navy:hover {
    background-color: var(--color-pink);
    color: white;
}

.ticket-details {
    background-color: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.ticket-details h3 {
    text-align: center;
    margin-top: 0;
    border-bottom: 1px solid var(--color-pink);
    padding-bottom: 10px;
    display: inline-block;
}

.detail-content h4 {
    color: var(--color-pink);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-content ul {
    margin: 0;
    padding-left: 20px;
}

.detail-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* CASTセクション */
.cast-section {
    background-color: var(--color-pink);
    color: var(--color-navy);
}

.cast-section .section-title {
    color: var(--color-navy);
}

.main-cast {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cast-card {
    background: rgba(255,255,255,0.4);
    padding: 15px 25px;
    border-radius: 4px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cast-card .role {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-family: var(--font-gothic);
    opacity: 0.8;
}

.cast-card .name {
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap; 
}

.ensemble-area h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-gothic);
}

.ensemble-names {
    line-height: 2;
    font-size: 1.1rem;
}

/* STAFFセクション */
.staff-section {
    background-color: var(--color-navy);
    color: var(--color-text-light);
}

.staff-grid {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.staff-grid dl {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.staff-grid dt {
    padding: 15px 10px;
    color: var(--color-pink);
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-self: center;
}

.staff-grid dd {
    margin: 0;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    word-break: keep-all; 
    overflow-wrap: normal;
}

/* GOODSセクション */
.goods-section {
    background-color: var(--color-pink);
    color: var(--color-navy);
}

.goods-section .section-title {
    color: var(--color-navy);
}

.coming-soon {
    border: 2px dashed var(--color-navy);
    padding: 40px;
    display: inline-block;
}

/* ACCESSセクション */
.access-section {
    background-color: #fff;
    color: var(--color-navy);
}

.access-section .section-title {
    color: var(--color-navy);
}

.venue-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.map-area {
    margin: 20px 0;
}

.access-note {
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 15px;
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: left;
}

/* ABOUTセクション */
.about-section {
    background-color: #f9f9f9;
    color: var(--color-navy);
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about-link-area {
    margin-top: 30px;
}

/* フッター */
footer {
    background-color: var(--color-navy);
    color: white;
    padding: 50px 20px 100px;
    text-align: center;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-pink);
}

.sns-links a {
    color: white;
    margin: 0 10px;
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.sns-links a:hover {
    border-bottom: 1px solid white;
}

.hashtags {
    margin: 20px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #888;
}

/* =========================================
   追従チケットボタン (PC/共通)
   ========================================= */
.floating-ticket-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-navy);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--color-pink);
    animation: floatBtn 3s ease-in-out infinite;
    transition: transform 0.3s;
}

.floating-ticket-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-pink);
}

.btn-text {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
    font-family: var(--font-gothic);
}

.btn-icon {
    font-size: 1.5rem;
}

@keyframes floatBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* =========================================
   追加演出用CSS
   ========================================= */

/* ① ローディング画面 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-navy);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    padding: 20px;
}

.loading-logo {
    color: white;
    font-family: var(--font-mincho);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 2;
    text-align: center;
    width: 100%;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ② マウスストーカー (PCのみ) */
#cursor-stalker {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(224, 106, 128, 0.6);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: overlay;
}

body.hovering #cursor-stalker {
    width: 70px;
    height: 70px;
    background: rgba(224, 106, 128, 0.6);
}

/* =========================================
   スマホ対応 (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    
    /* 重要: PCメニューを強制非表示 */
    .nav-menu { 
        display: none !important; 
    }
    
    .hamburger { 
        display: block; 
    }
    
    /* PC限定改行を非表示 */
    .pc-only { 
        display: none; 
    }

    /* マウスストーカー非表示 */
    #cursor-stalker {
        display: none !important;
    }

    /* ローディング文字をスマホ用に小さく */
    .loading-logo {
        font-size: 1.1rem;
        width: 90%;
    }

    /* ヘッダーロゴの調整 */
    .logo {
        font-size: 0.8rem;
        line-height: 1.4;
        max-width: 80%;
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* コンテナ */
    .container { padding: 60px 20px; }

    /* タイトル */
    h2.section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* ★追加: ロゴのスマホ調整 */
    .main-logo {
        max-width: 85%; /* スマホでは少し小さめに */
        margin: 20px auto 30px; /* マージン調整 */
    }

    /* 冒頭のメッセージを大きく調整 */
    .catch-copy {
        font-size: 1.3rem;
        line-height: 1.8;
        margin-bottom: 30px;
        font-weight: bold;
    }

    /* アンサンブル名: 改行対策 */
    .ensemble-names {
        word-break: keep-all; 
        overflow-wrap: normal;
        line-height: 2.5; 
    }

    /* STAFFリスト */
    .staff-grid dl { grid-template-columns: 1fr; gap: 0; }
    
    .staff-grid dt {
        border-bottom: none;
        padding-bottom: 0;
        padding-top: 15px;
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    .staff-grid dd {
        padding-top: 0;
        font-size: 1.1rem;
        word-break: keep-all;
    }

    /* キャストカード */
    .cast-card { width: 100%; margin-bottom: 10px; }

    /* あらすじ */
    .synopsis-box { padding: 25px; text-align: justify; }

    /* チケット料金 */
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .price-row dd {
        margin-left: 0;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .ticket-details { padding: 20px; }
    
    /* SNSリンク */
    .sns-links a {
        display: block;
        margin: 10px 0;
        font-size: 1.1rem;
    }

    /* スマホでのチケットボタン位置 */
    .floating-ticket-btn {
        right: 20px;
        bottom: 20px;
        width: auto;
        min-width: auto;
        padding: 12px 20px;
        justify-content: center;
        animation: floatBtnMobile 3s ease-in-out infinite;
    }

    /* 浮遊アニメーション */
    @keyframes floatBtnMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }
}