:root {
    --autumntimecolor: #ffeeaa;
    --autumnmalecolor: #ddbb77;
    --autumnfemalecolor: #fbee88;
    --autumncolor: #ffbb99;
    --autumndarkcolor: #ffbb77;
    --schedule3dayboxshadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5dcc4 0%, #f5e6d3 100%) !important;
}

body {
    color: #503220;
    background: linear-gradient(135deg, #f5dcc4 0%, #f5e6d3 100%) !important;
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative;
    background-color: #EBE1A9;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(80, 50, 30, 0.15);
    overflow: hidden;
    /* SVGのはみ出しを防止 */
}

/* 背景SVG（どんぐり）の配置スタイル */
.header-bg-acorn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-20deg);
    width: 160px;
    height: 160px;
    opacity: 0.3;
    pointer-events: none;
}

header h1 {
    position: relative;
    z-index: 1;
    font-size: 32px;
    color: #503220;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    position: relative;
    z-index: 1;
    font-size: 16px;
    color: #8b6f47;
}

.current-time-display {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    color: #503220;
    font-weight: 600;
}

.timezone_toggle_switch {
    position: fixed;
    top: 20px;
    right: 150px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.timezone_toggle_switch input {
    display: none;
}

.timezone_switch_slider {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 34px;
    background: #888;
    border-radius: 17px;
    transition: background 0.3s ease;
}

.timezone_switch_label {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timezone_switch_slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.timezone_toggle_switch input:checked+.timezone_switch_slider {
    background: #3a7fc1;
}

.timezone_toggle_switch input:checked+.timezone_switch_slider::before {
    transform: translateX(88px);
}

.autumn_toggle_switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.autumn_toggle_switch input {
    display: none;
}

.autumn_switch_slider {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 34px;
    background: #ccc;
    border-radius: 17px;
    transition: background 0.3s ease;
}

.autumn_switch_label {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.autumn_switch_slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.autumn_toggle_switch input:checked+.autumn_switch_slider {
    background: #c4765d;
}

.autumn_toggle_switch input:checked+.autumn_switch_slider::before {
    transform: translateX(88px);
}

/* トグルスイッチ全体の外枠 */
.all_day_toggle_switch {
    position: relative;
    display: inline-block;
    width: 140px;
    /* スイッチの横幅（文字長さに応じて調整可） */
    height: 36px;
    /* スイッチの高さ */
    margin-left: auto;
    margin-right: 12px;
    cursor: pointer;
    user-select: none;
}

/* チェックボックス非表示 */
.all_day_toggle_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* カプセル背景（OFF時のスタイル：グレー） */
.all_day_toggle_slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #888888;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    overflow: hidden;
}

/* 内側テキスト共通 */
.all_day_toggle_text_off,
.all_day_toggle_text_on {
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* OFFテキスト（OFF時に右側に表示） */
.all_day_toggle_text_off {
    margin-left: auto;
    opacity: 1;
}

/* ONテキスト（ON時に左側に表示） */
.all_day_toggle_text_on {
    margin-right: auto;
    opacity: 0;
    display: none;
}

/* 丸いつまみ部分 */
.all_day_toggle_circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* --- ON状態（checked）のスタイル --- */

/* カプセル背景（ON時：ブラウンオレンジ） */
.all_day_toggle_switch input:checked+.all_day_toggle_slider {
    background-color: #c8755b;
}

/* 白丸つまみを右側に移動 */
.all_day_toggle_switch input:checked+.all_day_toggle_slider .all_day_toggle_circle {
    transform: translateX(104px);
    /* (スイッチ幅140px) - (つまみ幅30px) - (余白3px*2) */
}

/* テキスト表示切替 */
.all_day_toggle_switch input:checked+.all_day_toggle_slider .all_day_toggle_text_off {
    opacity: 0;
    display: none;
}

.all_day_toggle_switch input:checked+.all_day_toggle_slider .all_day_toggle_text_on {
    opacity: 1;
    display: block;
}

/* モーダルアコーディオン用スタイル（singrelay_ui.jsの生成クラスに対応） */
.performer-setlist .accordion-item {
    background-color: var(--autumncolor);
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    border-radius: 4px;
}

.accordion-header {
    cursor: pointer;
    padding: 12px;
    background-color: var(--autumncolor);
    font-weight: bold;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #ffaa77;
}

.accordion-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0;
}

.accordion-item.closed .accordion-content {
    max-height: 0;
    padding: 0;
}

.accordion-item.open .accordion-content {
    max-height: 1000px;
    padding: 12px;
}

/* ceremony */
.ceremony_header {
    font-size: 25px;
    line-height: 1.8;
    color: #653d2a;
}

/* 時差コントロールグループ */
.time-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-row label {
    width: 40px;
    color: #94a3b8;
    font-size: 12px;
    color: #503220;
}

.combo-box {
    flex: 1;
    padding: 6px 8px;
    background: rgba(196, 118, 93, 0.1);
    border: 0.5px solid rgba(196, 118, 93, 0.5);
    border-radius: 4px;
    color: #503220;
    font-size: 12px;
}

.combo-box option {
    background: #faf6f1;
    color: #503220;
}

.button-group {
    display: flex;
    gap: 8px;
}

.control-btn {
    flex: 1;
    padding: 8px 12px;
    border: 0.5px solid rgba(196, 118, 93, 0.5);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.set-btn {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border-color: rgba(76, 175, 80, 0.5);
}

.set-btn:hover {
    background: rgba(76, 175, 80, 0.4);
    box-shadow: 0 0 15px rgba(124, 179, 66, 0.5);
}

.clear-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border-color: rgba(244, 67, 54, 0.5);
}

.clear-btn:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.4);
    box-shadow: 0 0 15px rgba(239, 83, 80, 0.5);
}

.clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* メインコンテンツエリア */
main {
    flex: 1;
    padding: 30px 20px;
}

/* セクション親要素 */
.section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(80, 50, 30, 0.1);
    overflow: hidden;
}

/* セクションヘッダー */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

/* セクションヘッダーホバー状態 */
.section-header:hover {
    background-color: #f9f3eb;
}

/* セクションタイトル */
.section-header h2 {
    font-size: 22px;
    color: #503220;
    border-bottom: 3px solid #c4765d;
    padding-bottom: 10px;
    flex: 1;
    margin: 0;
    text-align: center;
}

/* セクション開閉トグルアイコン */
.section-toggle {
    font-size: 24px;
    color: #c4765d;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

/* セクション開状態のトグル回転 */
.section-toggle.open {
    transform: rotate(180deg);
}

/* セクションコンテンツ領域 */
.section-content {
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px 25px 20px;
}

/* セクション閉状態のコンテンツ */
.section-content.closed {
    max-height: 0;
    padding: 0 20px;
}

/* イベント説明文 */
.event-description {
    font-size: 15px;
    line-height: 1.8;
    color: #653d2a;
    text-align: center;
}

/* タイムテーブルラッパー */
.timetable-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: sticky;
    top: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
}

/* スライダーボタン */
.slider-btn {
    font-size: 28px;
    color: #c4765d;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

/* スライダーボタンホバー状態 */
.slider-btn:hover {
    color: #a85844;
    transform: scale(1.15);
}

/* スライダーボタンクリック状態 */
.slider-btn:active {
    transform: scale(0.95);
}

/* タイムテーブルコンテナ */
.timetable-container {
    flex: 1;
    overflow-x: auto;
    max-width: 900px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* タイムテーブル左スライドアウト */
.timetable-container.slide-out-left {
    transform: translateX(-30px);
    opacity: 0;
}

/* タイムテーブル右スライドアウト */
.timetable-container.slide-out-right {
    transform: translateX(30px);
    opacity: 0;
}

/* タイムテーブル */
.timetable {
    width: 100%;
    border-collapse: collapse;
    background: #faf6f1;
    padding: 20px;
}

.timetable thead tr {
    border-bottom: 2px solid #c4765d;
}

/* タイムテーブルヘッダーセル */
.timetable th {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #503220;
    font-weight: 700;
    background: white;
}

/* タイムテーブルデータセル */
.timetable td {
    padding: 15px;
    text-align: center;
    vertical-align: top;
    background: white;
    border-right: 1px solid #e0d5cc;
}

/* タイムテーブル最終列 */
.timetable td:last-child {
    border-right: none;
}

/* .performer-item：出演者情報カード基本スタイル */
.performer-item,
.performer-item-male,
.performer-item-female,
.performer-item-rest,
.performer-item-opening,
.performer-item-closing {
    /* border-left: 4px solid #c4765d;  */
    /* 左側のアクセントボーダー */
    border-radius: 6px;
    /* 下側マージン */
    text-align: center;
    /* テキスト中央揃え */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* ホバー時のアニメーション設定 */
    position: relative;
    /* 疑似要素の絶対位置指定の基準として機能 */
}

/*       */
.performer-item,
.performer-item-male,
.performer-item-female,
.performer-item-opening,
.performer-item-closing {
    /* 内部余白 */
    padding: 12px;
    /* 背景色 */
    background: #f5f0eb;
    /* 角丸 */
    margin-bottom: 10px;
}

/*       */
.performer-item-rest {
    /* 内部余白 */
    padding: 5px;
    width: 90%;
    /* 背景色 */
    background: yellowgreen;
    /* 角丸 */
    margin-bottom: 7px;
    /* 上下7px、左右auto で中央揃え */
    margin: 7px auto;
    /* ブロック要素として機能 */
    display: block;
}

/*       */
.performer-time {
    font-size: 13px;
    font-weight: 600;
    color: #503220;
    margin-bottom: 5px;
}

/*       */
.performer-name {
    font-size: 15px;
    font-weight: 600;
    color: #653d2a;
}

/*       */
.button-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    padding: 2px 0;
}

/*       */
.btn-details {
    padding: 1px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #c4765d 0%, #a85844 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(196, 118, 93, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
}

/*       */
.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 118, 93, 0.4);
    background: linear-gradient(135deg, #d9886d 0%, #c4765d 100%);
}

/*       */
.btn-details:active {
    transform: translateY(0);
}

/*       */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/*       */
.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/*       */
.modal-content {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}


/* 質問テキストh3表示設定 */
.modal-question-item {
    background-color: var(--autumncolor);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    min-height: 53px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modal-qa-text {
    margin: 0;
    padding: 0;
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
    width: 100%;
}

.modal-question-item[data-qa-state="title"] .modal-qa-text {
    font-size: 16px;
    font-weight: bold;
}

.modal-question-item[data-qa-state="answer"] .modal-qa-text {
    font-size: 14px;
    font-weight: normal;
}

/* dynamicContentの回答テキスト常時表示 */
#dynamicContent .modal-setlist .modal-question-item p {
    display: block;
}

/* ホバー時と選択時に回答テキスト表示 */
.modal-setlist .modal-question-item:hover p,
.modal-setlist .modal-question-item.is-active p {
    display: block !important;
}

/* 全体スケジュールモーダル背景 */

/* 各パフォーマー枠：アニメーション共通スタイル（因数分解） */
#all-schedule-modal.is-anime-on .all-schedule-performer-male,
#all-schedule-modal.is-anime-on .all-schedule-performer-female,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing {

    overflow: hidden;
    border-radius: 16px;
    font-size: 8pt;
    box-shadow:
        inset 0 4px 6px rgba(255, 255, 255, 0.6),
        inset 0 -4px 6px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    animation: gummyWave 2.5s infinite ease-in-out;
    animation-delay: var(--gummy-delay, 0s);
}

/*       */
#all-schedule-modal.is-anime-on .all-schedule-performer-male,
#all-schedule-modal.is-anime-on .all-schedule-performer-female,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing {
    font-size: 9pt;
    width: 100%;
    position: relative;

}

/*       */
#all-schedule-modal.is-anime-on .all-schedule-performer-rest {
    font-size: 7pt;
    width: 95%;
    position: center;
    background-color: yellowgreen;
}

/* 光ライン共通（因数分解） */
#all-schedule-modal.is-anime-on .all-schedule-performer-male::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-female::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 200%;
    background: linear-gradient(60deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.75) 50%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    animation: shineSweep 10s infinite linear;
    animation-delay: var(--shine-delay, 0s);
}

/* キーフレーム: 右から左へ移動する光ライン */
@keyframes shineSweep {
    0% {
        left: 150%;
        /* 右側の枠外スタート */
    }

    12% {
        left: -150%;
        /* 左側の枠外へ通過（約1.2秒で素早く走る） */
    }

    100% {
        left: -150%;
        /* 残り時間は待機状態 */
    }
}

/* ホバー時v1） */
#all-schedule-modal.is-anime-on .all-schedule-performer-male:hover,
#all-schedule-modal.is-anime-on .all-schedule-performer-female:hover,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening:hover,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest:hover,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing:hover {
    transform: scale(1.08);
    animation-play-state: paused;
}

/* ±10% の波打ちキーフレーム */
@keyframes gummyWave {

    0%,
    100% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.05);
    }
}

/*       */
.all-schedule-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
}

/* モーダルコンテンツ */
.all-schedule-modal-content {
    position: relative;
    background-color: var(--autumncolor);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: var(--schedule3dayboxshadow);
}

/* ヘッダー・閉じるボタン */
.all-schedule-modal-header {
    display: flex;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid brown;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.all-schedule-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

/* 3日間グリッド配置 */
.all-schedule-modal-body {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

/* アニメON時の動的アニメーション制御  */

/* イベント進行中（因数分解） */
#all-schedule-modal.is-anime-on.event-in-progress .all-schedule-performer-male,
#all-schedule-modal.is-anime-on.event-in-progress .all-schedule-performer-female,
#all-schedule-modal.is-anime-on.event-in-progress .all-schedule-performer-opening,
#all-schedule-modal.is-anime-on.event-in-progress .all-schedule-performer-rest,
#all-schedule-modal.is-anime-on.event-in-progress .all-schedule-performer-closing {
    animation-name: none;
    /* 拡縮ストップ */
}

/* ① 配信中v1） */
#all-schedule-modal.is-anime-on .all-schedule-performer-male.is-live,
#all-schedule-modal.is-anime-on .all-schedule-performer-female.is-live,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening.is-live,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest.is-live,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing.is-live {
    border: 3px solid #ff2222;
    background-color: #fffde7;
    animation: gummyWave 2.5s infinite ease-in-out;
    animation-delay: var(--gummy-delay, 0s);

}

#all-schedule-modal.is-anime-on .all-schedule-performer-male.is-live::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-female.is-live::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening.is-live::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest.is-live::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing.is-live::after {
    animation-duration: 5s;
    /* 光の周期を 10秒 → 5秒 へ半減 */
}

/* ② 実施済みv1） */
#all-schedule-modal.is-anime-on .all-schedule-performer-male.is-past,
#all-schedule-modal.is-anime-on .all-schedule-performer-female.is-past,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening.is-past,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest.is-past,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing.is-past {
    animation: none;
    background-color: #e2e8f0;
    color: #64748b;
    box-shadow: none;
}

#all-schedule-modal.is-anime-on .all-schedule-performer-male.is-past::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-female.is-past::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-opening.is-past::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-rest.is-past::after,
#all-schedule-modal.is-anime-on .all-schedule-performer-closing.is-past::after {
    display: none;
    /* 実施済み枠は光の走行も停止 */
}

/* アニメOFF時v1） */
.all-schedule-modal.is-anime-off .all-schedule-performer-male,
.all-schedule-modal.is-anime-off .all-schedule-performer-female,
.all-schedule-modal.is-anime-off .all-schedule-performer-opening,
.all-schedule-modal.is-anime-off .all-schedule-performer-rest,
.all-schedule-modal.is-anime-off .all-schedule-performer-closing {
    animation: none;
    transition: none;
}

.all-schedule-modal.is-anime-off .all-schedule-performer-rest {
    text-align: center;
    background-color: yellowgreen;
    width: 95%;
    /* 上下3px、左右auto で中央揃え */
    margin: 3px auto;
    /* ブロック要素として機能 */
    display: block;
}

.all-schedule-modal.is-anime-off .all-schedule-performer-male::before,
.all-schedule-modal.is-anime-off .all-schedule-performer-female::before,
.all-schedule-modal.is-anime-off .all-schedule-performer-opening::before,
.all-schedule-modal.is-anime-off .all-schedule-performer-rest::before,
.all-schedule-modal.is-anime-off .all-schedule-performer-closing::before,
.all-schedule-modal.is-anime-off .all-schedule-performer-male::after,
.all-schedule-modal.is-anime-off .all-schedule-performer-female::after,
.all-schedule-modal.is-anime-off .all-schedule-performer-opening::after,
.all-schedule-modal.is-anime-off .all-schedule-performer-rest::after,
.all-schedule-modal.is-anime-off .all-schedule-performer-closing::after {
    animation: none;
    display: none;
}

/* アニメOFF時：実施済みv1） */
.all-schedule-modal.is-anime-off .all-schedule-performer-male.is-past,
.all-schedule-modal.is-anime-off .all-schedule-performer-female.is-past,
.all-schedule-modal.is-anime-off .all-schedule-performer-opening.is-past,
.all-schedule-modal.is-anime-off .all-schedule-performer-rest.is-past,
.all-schedule-modal.is-anime-off .all-schedule-performer-closing.is-past {
    background: #dcdcdc;
    /* グラデーションを解除し、プレーンな薄グレーへ */
    color: #888888;
    /* 文字色を落ち着いたグレーへ */
    box-shadow: none;
    /* 立体感・陰影・光沢を削除 */
    border-color: #b0b0b0;
    /* 枠線を地味なトーンへ統一 */
    opacity: 0.8;
}

@media (max-width: 768px) {
    .maintenance_btn {
        top: 10px;
        left: 0;
        /* right: 210px;*/
        font-size: 7px;
        padding: 4px 10px;
    }

    /* 全体スケジュールモーダルの基本スタイル */
    .all-schedule-modal-content {
        position: relative;
        background-color: var(--autumncolor);
        margin: 2% auto;
        padding: 12px;
        width: 96%;
        /* 画面幅いっぱいに使う */
        max-width: 900px;
        border-radius: 8px;
        box-shadow: var(--schedule3dayboxshadow);
    }


    /* 3日間列表示：スマホでも強制的に3列横並びにする */
    .all-schedule-modal-body {
        display: flex;
        flex-direction: row;
        /* 常時横並び */
        gap: 4px;
        /* 列間の隙間を極力詰める */
        justify-content: space-between;
        width: 100%;
    }

    /* 各日付の列 */
    .all-schedule-day {
        flex: 1;
        /* 3列を均等幅にする */
        min-width: 0;
        /* Flex子要素の幅溢れを防止 */
        background-color: var(--autumndarkcolor);
        padding: 6px 4px;
        /* 左右余白を削減 */
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }

    /* 日付ヘッダー */
    .all-schedule-date {
        margin: 0 0 6px 0;
        padding-bottom: 4px;
        text-align: center;
        border-bottom: 1px solid #ccc;
        font-size: 0.75rem;
        /* 画面幅に合わせて少し小さく */
        font-weight: bold;
        white-space: nowrap;
        /* 日付の改行を防ぐ */
    }

    /* 各パフォーマー枠（時間＋名前） */
    .all-schedule-performer {
        display: flex;
        flex-direction: row;
        /* 時間と名前を1行に横並び */
        align-items: center;
        gap: 2px;
        /* 時間と名前の間隔を詰める */
        padding: 4px 2px;
        margin-bottom: 4px;

        border-radius: 3px;
        font-size: 0.65rem;
        /* 携帯ビューで収めるための文字サイズ調整 */
        line-height: 1.2;
        white-space: nowrap;
        /* 枠内での折り返しを防止 */
        overflow: hidden;
    }

    .all-schedule-performer {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        padding: 4px 6px;
        margin-bottom: 4px;
        border-radius: 6px;
        font-size: 0.65rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
    }


    /* 時間表示部分 */
    .all-schedule-performer .time {
        color: #666;
        flex-shrink: 0;
        /* 時間表示の形が崩れないよう固定 */
        font-size: 0.4rem;
    }

    /* 名前表示部分 */
    .all-schedule-performer .name {
        font-weight: bold;
        overflow: hidden;
        text-overflow: ellipsis;
        /* 枠からはみ出る長い名前は「...」で省略表示 */
    }

    .all-schedule-date {
        font-size: 0.6em;
    }
}

/*   */
.all-schedule-day {
    flex: 1;
    background-color: var(--autumndarkcolor);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/*   */
.all-schedule-date {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    text-align: center;
    border-bottom: 1px solid #c4765d;
    font-size: 0.8em;
}

/* 各パフォーマー枠：共通ベーススタイル */
.all-schedule-performer-male,
.all-schedule-performer-female,
.all-schedule-performer-opening,
.all-schedule-performer-rest,
.all-schedule-performer-closing {
    display: flex;
    flex-direction: row;
    /* 横並び */
    align-items: center;
    /* 上下中央揃え */
    gap: 8px;
    /* 時間と名前の余白 */
    padding: 4px 8px;
    margin-bottom: 3px;
    border-radius: 3px;
    font-size: 0.6em;
    white-space: nowrap;
}

/* male（男性等）の場合の背景色 */
.all-schedule-performer-male {
    background-color: var(--autumnmalecolor);
    /* 淡いブルー */
    border-left: 3px solid #3182ce;
    /* 左端にアクセント線を入れる場合 */
}

/* female（女性等）の場合の背景色 */
.all-schedule-performer-female {
    background-color: var(--autumnfemalecolor);
    /* 淡いピンク */
    border-left: 3px solid #e53e3e;
    /* 左端にアクセント線を入れる場合 */
}

/*   */
.all-schedule-performer-opening,
.all-schedule-performer-rest,
.all-schedule-performer-closing {
    background-color: #fff9c4;
    border-left: 3px solid #fdd835;
}

/*   */
.all-schedule-performer .time {
    font-size: 0.5em;
    color: #666;
    flex-shrink: 0;
    /* 時間部分の幅が潰れないように固定 */
}

/*   */
.all-schedule-performer .name {
    font-weight: bold;
    font-size: 0.75em;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 名前が長すぎる場合は「...」表示 */
}

/*   */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* メンテするボタンのスタイリング */
.maintenance_btn {
    position: fixed;
    top: 20px;
    /* right: 300px; */
    /* 時差機能トグルの左側に配置 */
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background-color: #503220;
    /* シックなブラウン系カラー */
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.maintenance_btn:hover {
    background-color: #8c4417;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/*   */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5dcc4;
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 24px;
    color: #503220;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    color: #503220;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #c4765d;
}

.modal-setlist {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* staticContent：静的イベント概要コンテンツの表示スタイル */
#staticContent.modal-setlist {
    display: block;
}

/* dynamicContent：動的出演者情報コンテンツの表示スタイル */
#dynamicContent.modal-setlist {
    display: none;
}

/*   */
.performer-setlist {
    border: 1px solid #e0d5cc;
    padding: 15px;
    border-radius: 8px;
    background: #faf6f1;
}

/*   */
.performer-setlist h3 {
    font-size: 18px;
    color: #503220;
    margin-bottom: 10px;
    border-bottom: 2px solid #c4765d;
    padding-bottom: 8px;
}

.song-list {
    list-style: none;
    margin-left: 10px;
}

.song-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #653d2a;
    border-bottom: 1px solid #e8dfd8;
}

.song-list li:last-child {
    border-bottom: none;
}

/* フッター */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(80, 50, 30, 0.9);
    color: #f5dcc4;
    text-align: center;
    padding: 25px 20px;
    font-size: 14px;
}

/*   */
footer p {
    margin: 8px 0;
}

/*   */
footer strong {
    color: #f5cc99;
    font-weight: 700;
}

/*   */
footer a {
    color: #f5dcc4;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

/*   */
footer a:hover {
    color: #c4765d;
}

/* アコーディオン開閉マーク（▲/▼）の表示スタイル */
.accordion-toggle-mark {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

/*   */
.shine-text {
    position: relative;
    display: inline-block;
    color: #333;
    overflow: hidden;
}

/*   */
.shine-text::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(150deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 230, 0, 0.8) 50%,
            transparent 60%,
            transparent 100%);
    animation: shine-animation 3s infinite;
    pointer-events: none;
}

/*   */
.timetable-date-sticky {
    position: relative;
    width: 75%;
    /* 中央配置 */
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #503220;
    padding: 15px 0;
    background: white;
    border-bottom: 3px solid #c4765d;
    z-index: 99;
    display: none;
}

/*   */
.timetable-date-sticky.sticky-active {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

@keyframes shine-animation {
    0% {
        left: -150%;
    }

    30% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* 秋の落葉アニメーション関連スタイル */
.autumn_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 900;
}

/*   */
.autumn_container>span {
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/*   */
.autumn_container>span>span {
    display: block;
    width: 100%;
    height: 100%;
}

/*   */
.autumn_container>span>span>span {
    display: block;
    width: 100%;
    height: 100%;
}

/*   */
.autumn_container .autumn_petal_svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes autumn_sway1 {
    0% {
        transform: rotate(0deg) rotateY(0deg);
    }

    50% {
        transform: rotate(180deg) rotateY(180deg);
    }

    100% {
        transform: rotate(360deg) rotateY(360deg);
    }
}

@keyframes autumn_sway2 {
    0% {
        transform: rotate(0deg) rotateX(0deg);
    }

    50% {
        transform: rotate(-180deg) rotateX(180deg);
    }

    100% {
        transform: rotate(-360deg) rotateX(360deg);
    }
}

/* todayIndicatorボタンスタイル */
.btn_warp {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ここまで */

.btn_warp:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ここまで */

.btn_warp:active {
    transform: translateY(0);
}

/* ここまで */

/* マーキーテキストオーバーレイ用アニメーション（Method1：CSS疑似要素） */
@keyframes marquee-right-to-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.performer-item-active::before {
    content: "現在歌枠中";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: yellow;
    opacity: 0.7;
    animation: marquee-right-to-left 7s linear infinite;
    pointer-events: none;
    z-index: 5;
}

/* ▲ ここまで */

@media (max-width: 1000px) {

    .timetable th,
    .timetable td {
        padding: 12px;
        font-size: 14px;
    }

    .performer-item {
        padding: 10px;
        margin-bottom: 8px;
    }

    .slider-btn {
        font-size: 24px;
        padding: 8px 12px;
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    .section-header {
        padding: 10px 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-content {
        padding: 0 15px 20px 15px;
    }

    .section-content.closed {
        padding: 0 15px;
    }

    .timetable th,
    .timetable td {
        padding: 10px;
        font-size: 12px;
    }

    .performer-item {
        padding: 8px;
        margin-bottom: 6px;
    }

    .performer-time {
        font-size: 11px;
    }

    .performer-name {
        font-size: 13px;
    }

    .slider-btn {
        font-size: 20px;
        padding: 8px 10px;
    }

    .timetable-container {
        max-width: 100%;
    }

    .btn-details {
        padding: 7px 20px;
        font-size: 10px;
        min-width: 80px;
    }

    .event-description {
        font-size: 14px;
    }

    main {
        padding: 20px 15px;
    }

    .modal-content {
        padding: 20px 15px;
        width: 95%;
    }

    footer {
        font-size: 12px;
    }

    footer a {
        margin: 0 5px;
    }
}


/* 音符エフェクト用グラデーション色定義（10パターン） */
:root {
    --gradient-1: linear-gradient(45deg, #FF6B9D, #FFC75F);
    --gradient-2: linear-gradient(45deg, #845EC2, #D65DB1);
    --gradient-3: linear-gradient(45deg, #0093E9, #80D0C7);
    --gradient-4: linear-gradient(45deg, #FF8C00, #FFD700);
    --gradient-5: linear-gradient(45deg, #FF4757, #FFB038);
    --gradient-6: linear-gradient(45deg, #667BC6, #DA7297);
    --gradient-7: linear-gradient(45deg, #00D2D3, #928DAB);
    --gradient-8: linear-gradient(45deg, #FF6B6B, #FFA500);
    --gradient-9: linear-gradient(45deg, #4ECDC4, #44A08D);
    --gradient-10: linear-gradient(45deg, #F38181, #EAFFD0);
}

/* 音符エフェクト：コンテナスタイル */
.music-note-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* 音符エフェクト：音符SVGスタイル */
.music-note {
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* 音符エフェクト：上昇浮遊アニメーション */
@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* 音符エフェクト：上昇左方向アニメーション */
@keyframes float-up-left {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(-40px, -100px) scale(1);
    }
}

/* 音符エフェクト：上昇右方向アニメーション */
@keyframes float-up-right {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(40px, -100px) scale(1);
    }
}

/* 音符エフェクト：ふわふわ揺らぎアニメーション */
@keyframes float-sway {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-15px);
    }

    75% {
        transform: translateX(15px);
    }
}

/* 背景色パルスアニメーション（金色←→桃色、sin周期） */
@keyframes background-pulse-gold-pink {
    0% {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    }

    25% {
        background: linear-gradient(135deg, #FFE066 0%, #FFB84D 100%);
    }

    50% {
        background: linear-gradient(135deg, #FFB6D9 0%, #FF69B4 100%);
    }

    75% {
        background: linear-gradient(135deg, #FFE066 0%, #FFB84D 100%);
    }

    100% {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    }
}

/* 出演者アクティブ状態スタイル（背景色アニメーション適用） */
/* 出演者アクティブ状態スタイル（背景色アニメーション適用） */
.performer-item-active {
    animation: background-pulse-gold-pink 2s ease-in-out infinite !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 105, 180, 0.2);
}

/* ===== 確認ウィンドウ関連CSS定義（style.cssから引用） ===== */

.confirm-hidden {
    display: none !important;
}

#confirm-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;

    height: 55%;
    width: 50%;
    max-width: 700px;
    min-width: 420px;
    height: auto;
    max-height: 80vh;

    background: rgba(185, 242, 255, 0.98);
    border: 2px solid #333;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);

    display: flex;
    flex-direction: column;
}

.confirm-header {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: #536aff;
    font-size: 18px;
}

.confirm-title {
    font-weight: 700;
    font-size: 18px;
}

.confirm-close-x {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.confirm-body {
    padding: 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    overflow-y: auto;
}

.confirm-footer {
    padding: 18px;
    display: flex;
    justify-content: center;
    gap: 35px;
}

.confirm-button {
    padding: 10px 32px;
    border: 1px solid #777;
    background: #fafafa;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

/*    */
.confirm-agree-label {
    /* これで自動改行 */
    display: block;

    margin-top: 15px;
}