/* ===== Webフォント ===== */
@font-face {
    font-family: "JF-Dot-K14";
    src: url("../fonts/JF-Dot-K14.ttf") format("truetype");
    font-display: swap;
}

/* ===== CSS変数 ===== */
:root {
    --bg-dark: #0d1117;
    --bg-medium: #161b22;
    --bg-light: #21262d;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-green: #7ee787;
    --accent-orange: #ffa657;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border-color: #30363d;
}

/* ===== 基本設定 ===== */
* {
    font-family: "JF-Dot-K14", serif;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding-top: 60px;
    line-height: 1.6;
}

/* ===== ヘッダー ===== */
.main-header {
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    padding: 60px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.event-title {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: bold;
}

/* ===== シンプルスライドショー ===== */
.slideshow {
    max-width: 800px;
    margin: 0 auto 30px;
}

.slides {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    touch-action: pan-y;
}

.header-image {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 16px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-image:hover {
    opacity: 0.9;
}

.header-image.active {
    display: block;
}

.dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--accent-blue);
    transform: scale(1.2);
}

.event-details {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: bold;
}

.detail-value {
    color: var(--text-primary);
}

.venue-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.venue-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.venue-link:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ===== メインコンテンツグリッド ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== ヘッドライナーサイドバー ===== */
.headliner-sidebar {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.headliner-title {
    color: var(--accent-orange);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 166, 87, 0.3);
}

.headliner-band {
    background: linear-gradient(135deg, rgba(255, 166, 87, 0.1) 0%, rgba(188, 140, 255, 0.1) 100%);
    border: 1px solid var(--accent-orange);
    border-radius: 16px;
    padding: 25px;
}

.headliner-band-name {
    color: var(--accent-orange);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ===== プログラムセクション ===== */
.main-program {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.day-container {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.programs-list {
    display: grid;
    gap: 20px;
}

.program-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.time-slot {
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.program-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    flex: 1;
}

.program-header {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.band-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.band-logo:hover {
    opacity: 0.8;
}

.band-info {
    display: flex;
    flex-direction: column;
}

.band-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.songs-compact {
    padding: 20px;
}

.song-compact {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.song-compact:last-child {
    border-bottom: none;
}

/* ===== 情報サイドバー ===== */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
}

.info-card.sticky {
    position: sticky;
    top: 20px;
}

.info-card-title {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== 統計セクション ===== */
.stats-grid {
    display: grid;
    gap: 12px;
}

.stat-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.stat-number {
    color: var(--accent-green);
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== フッター ===== */
.footer-grid {
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.credits {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.credits strong {
    color: var(--accent-blue);
}

.powered-by {
    color: var(--accent-orange);
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== 画像拡大モーダル ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
}

/* ===== スクロールバー ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ===== テキスト選択 ===== */
::selection {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

/* ===== レスポンシブデザイン ===== */

/* タブレット・デスクトップ境界 (1200px以下) */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .headliner-sidebar,
    .info-card.sticky {
        position: static;
    }

    .headliner-sidebar {
        order: 2;
    }

    .main-program {
        order: 3;
    }

    .info-sidebar {
        order: 4;
    }
}

/* タブレット (768px以下) */
@media (max-width: 768px) {
    .main-header {
        padding: 40px 20px;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .slideshow {
        margin-bottom: 20px;
    }

    .event-details {
        max-width: none;
        margin: 0;
    }

    .content-grid {
        padding: 0 15px;
        gap: 20px;
    }

    .headliner-sidebar,
    .day-container,
    .info-card {
        padding: 20px;
    }

    .day-header {
        font-size: 1.5rem;
    }

    .program-header {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        padding: 15px;
    }

    .band-logo {
        width: 80px;
        height: 80px;
    }

    .band-info {
        grid-column: 2;
        grid-row: 1;
    }

    .time-slot {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .band-name {
        font-size: 1.1rem;
    }

    .songs-compact {
        padding: 15px;
    }

    .song-compact {
        padding: 6px 0;
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマートフォン (480px以下) */
@media (max-width: 480px) {
    .program-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px;
        text-align: center;
    }

    .band-info {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    .band-logo {
        width: 140px;
        height: 140px;
        padding: 6px;
        justify-self: center;
        grid-column: 1;
        grid-row: 2;
    }

    .band-name {
        font-size: 1rem;
    }

    .fs-08 {
        font-size: 0.8rem;
    }

    .time-slot {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .songs-compact {
        padding: 12px;
    }

    .song-compact {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .day-header {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-item-text {
        font-size: 0.65rem;
    }
}