/* リセットCSS */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 🎨 カラーパレットと基本設定 */
:root {
    /* Colors */
    --primary-color: #98b7fc;
    --word-color: #582285;
    --secondary-color: #92bea3;
    --thirdary-color: #f0efc9;
    --card-bg: rgba(255, 255, 255, 0.6);

    /* 基準となるタイポグラフィスケール */
    --step--1: 0.8rem;   /* 12.8px */
    --step-0: 1rem;      /* 16px (基準) */
    --step-1: 1.25rem;   /* 20px */
    --step-2: 1.563rem;  /* 25px */
    --step-3: 1.953rem;  /* 31px */
    --step-4: 2.441rem;  /* 39px */

    /* リンク用の色を追加 */
    --link-color: #0056b3;       /* 視認性の高い青色 */
    --link-hover-color: #8a2be2; /* ホバー時の明るい紫色 */
}

/* スムーズスクロールと基本フォントサイズ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 全体的なスタイル */
body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: var(--word-color);
    background: linear-gradient(135deg, var(--thirdary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}
a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px; /* 下線と文字の間に少し隙間を作る */
    transition: color 0.2s ease-in-out; /* 色の変化を滑らかに */
}
a:hover { color: var(--link-hover-color); }
ul { list-style: none; }

/* --- 見出しの相対的サイズ設定 --- */
h1, h2, h3 {
    line-height: 1.2; /* 見出しの行間を詰める */
    margin-bottom: 1rem;
}
h1 {
    font-size: clamp(var(--step-3), 6vw, var(--step-4));
}
h2 {
    font-size: clamp(var(--step-2), 5vw, var(--step-3));
}
h3 {
    font-size: clamp(var(--step-1), 4vw, var(--step-2));
}


/* ---------------
 * ヘッダー
 * --------------- */
header {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
/* ヘッダー内のh1はロゴとして扱うため、少し小さくする */
header .logo {
    font-size: var(--step-1);
}
nav ul { display: flex; gap: 1.5rem; }


/* ---------------
 * フッター
 * --------------- */
footer {
    background-color: var(--primary-color);
    color: var(--word-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}


/* ---------------
 * 丸みのあるコンテンツデザイン
 * --------------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}
main section {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 100px;
    max-width: 900px;
    text-align: center;
}
main img {
    max-width: 50%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 16px;
}
.news-list li {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}


/* ---------------
 * タブ切り替えコンテンツ
 * --------------- */
.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tab-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--word-color);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.tab-button.active, .tab-button:hover {
    background: var(--primary-color);
    color: var(--word-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(88, 34, 133, 0.2);
}
.tab-content {
    display: none;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: left;
    line-height: 1.8;
}
.tab-content.active { display: block; }
.tab-content ul { list-style-type: none; padding-left: 0; }
.tab-content li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(88, 34, 133, 0.2);
}
.tab-content li:last-child { border-bottom: none; }


/* ---------------
 * トップへ戻るボタン
 * --------------- */
.back-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--word-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 20;
}
.back-to-top-button:hover { transform: scale(1.1); }
.back-to-top-button.is-visible { opacity: 1; visibility: visible; }


/* 📱 スマホ向けレイアウト調整 (画面幅が768px以下の場合に適用) */
/* --------------------------------------------------------- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        gap: 1rem;
    }
    main section {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    main img {
        max-width: 80%;
    }
    .tab-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    .tab-content {
        padding: 1rem;
    }
}

/* ================================== */
/* 注意事項セクションのスタイル     */
/* ================================== */

/* セクション全体に適用 */
#precautions .container {
    /* この中のテキストは、デフォルトで左揃えになります */
    text-align: left;
}

/* h2, h3などの見出しに適用 */
#precautions h2,
#precautions h3 {
    /* 見出しを中央揃えにする */
    text-align: center;
    /* 見出しの上に20pxの余白を追加 */
    margin-top: 20px;
}

/* ================================== */
/* タイムテーブルセクションのスタイル     */
/* ================================== */

/* h2, h3などの見出しに適用 */
#timetable h2,
#timetable h3 {
    /* 見出しを中央揃えにする */
    text-align: center;
    /* 見出しの上に20pxの余白を追加 */
    margin-top: 20px;
    margin: 5%;
}

/* ================================== */
/* クレジットセクションのスタイル     */
/* ================================== */

/* セクション全体に適用 */
#credits .container {
    /* この中のテキストは、デフォルトで左揃えになります */
    text-align: left;
}

/* h2, h3などの見出しに適用 */
#credits h2,
#credits h3 {
    /* 見出しを中央揃えにする */
    text-align: center;
    /* 見出しの上に20pxの余白を追加 */
    margin-top: 20px;
}

#credits p {
    margin-left: 15%;
}

/* ================================== */
/* アクセスセクションのルート案内     */
/* ================================== */
.route-list {
    list-style-type: decimal; /* 番号付きリストにする */
    list-style-position: inside;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.route-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(88, 34, 133, 0.2);
}

.route-list li:last-child {
    border-bottom: none;
}

#access h3 {
    margin-top: 50px;
}

/* ================================== */
/* セットリストページ用スタイル         */
/* ================================== */
.setlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.setlist-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.setlist-card h2 {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.setlist-card ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 0.5rem;
}

.setlist-card li {
    text-align: left;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(88, 34, 133, 0.2);
}

.setlist-card li:last-child {
    border-bottom: none;
}