/* =========================================================
 * 聞き耳アワーシリーズ 公式サイト 共通スタイル（v3 / 2026-10）
 *
 * デザイン参照: 02_サイト参考/MidjourneyDESIGN.md
 *   - 紫を含んだ深い闇（#06051d → #061434）の上に、等幅書体の静かな文字組み
 *   - 見出しも weight 400（太字にしない）
 *   - ボタンは 20% 透過のピル 3 色だけ。色は KV から採る
 *       ティール（ドレス）= チケット / アンバー（麦わら帽子）= 日程 / バイオレット（H）= アクセス
 *   - 蛍光マゼンタはタイトルロゴ専用。UI には使わない
 *   - 未確定情報は「（仮）」を文字で必ず残し、.tbd で控えめに表示する
 * ========================================================= */

:root {
    --color-void: #06051d;
    --gradient-void: linear-gradient(0deg, #06051d 30%, #061434);
    --color-abyss: #0f1c36;
    --color-steel: #1d293d;
    --color-slate: #314062;
    --color-mist: #cad5e2;
    --color-mist-dim: #8b97ab;
    --color-white: #ffffff;
    --color-link: #63b3ed;
    --color-line: rgba(229, 231, 235, 0.12);

    /* ピル 3 色（KV 由来） */
    --pill-teal-bg: rgba(0, 150, 160, 0.2);
    --pill-teal-fg: #5ee6e6;
    --pill-amber-bg: rgba(170, 110, 30, 0.22);
    --pill-amber-fg: #f6d58e;
    --pill-violet-bg: rgba(140, 80, 220, 0.2);
    --pill-violet-fg: #d4b8ff;

    --color-icon: #f0b100;
    --color-logo: #ff00f0;

    --font-mono: "JetBrains Mono", "M PLUS 1 Code", ui-monospace, Consolas, monospace;
    --font-body: "Noto Sans JP", "DM Sans", system-ui, sans-serif;

    --text-caption: 14px;
    --text-body: 16px;
    --text-heading: 30px;

    --page-max: 800px;
    --prose-max: 640px;
    --section-gap: 64px;
    --radius: 8px;
    --radius-full: 9999px;
    --shadow-pill: rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.1) 0 2px 4px -2px;

    /* 旧スタイル互換（ticket.css / admin が参照） */
    --color-primary-red: var(--pill-teal-fg);
    --font-mincho: var(--font-mono);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

html,
body {
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--color-void) var(--gradient-void) fixed;
    color: var(--color-mist);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid var(--pill-amber-fg);
    outline-offset: 3px;
}

.mono {
    font-family: var(--font-mono);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 未確定表示 ---------- */
.tbd {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--pill-amber-fg);
    opacity: 0.75;
    white-space: nowrap;
}

.tbd-note {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--color-mist-dim);
    border-left: 2px solid rgba(246, 213, 142, 0.5);
    padding: 2px 0 2px 12px;
    margin: 16px 0 0;
}

/* ---------- ナビゲーション ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 48px;
    background: rgba(29, 41, 61, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-line);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
}

.site-nav .brand {
    color: var(--color-white);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.site-nav .brand:hover {
    text-decoration: none;
}

.site-nav .nav-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav .nav-links::-webkit-scrollbar {
    display: none;
}

.site-nav .nav-links a {
    white-space: nowrap;
}

.site-nav .nav-pills {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ---------- ピルボタン ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-pill);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s;
}

.pill:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.28);
}

.pill-teal {
    background: var(--pill-teal-bg);
    color: var(--pill-teal-fg);
}

.pill-amber {
    background: var(--pill-amber-bg);
    color: var(--pill-amber-fg);
}

.pill-violet {
    background: var(--pill-violet-bg);
    color: var(--pill-violet-fg);
}

.pill-static {
    cursor: default;
}

.pill-static:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.pill .tbd {
    font-size: 0.9em;
}

/* 旧クラス互換（ticket.html のボタン） */
.btn-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--pill-teal-bg);
    color: var(--pill-teal-fg);
    font-family: var(--font-mono);
    font-size: var(--text-body);
    cursor: pointer;
    box-shadow: var(--shadow-pill);
}

.btn-ticket:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- ヒーロー ---------- */
.hero {
    position: relative;
    min-height: min(calc(100svh - 53px), 980px);
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: var(--gradient-void);
}

.hero-ascii {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-kv {
    position: absolute;
    inset: 0 0 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-kv picture,
.hero-kv img {
    width: 100%;
    height: 100%;
}

.hero-kv img {
    object-fit: contain;
    /* KV の純黒を背景の闇に溶かす（黒は lighten で消える） */
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 48%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 78% at 50% 48%, #000 62%, transparent 100%);
}

.hero-body {
    position: relative;
    z-index: 2;
    grid-row: 2;
    margin-top: -64px;
    padding: 48px 24px 40px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(6, 5, 29, 0.85) 38%);
}

.hero-kicker {
    margin: 0 0 8px;
    text-shadow: 0 0 14px #06051d, 0 0 6px #06051d, 0 0 2px #06051d;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    letter-spacing: 0.14em;
    color: var(--color-mist);
}

.hero-kicker .sep {
    margin: 0 0.6em;
    color: var(--color-mist-dim);
}

.hero-title {
    margin: 0;
    font-weight: 400;
}

.hero-title img {
    width: min(560px, 82vw);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(255, 0, 240, 0.28));
}

.hero-meta {
    margin: 12px 0 24px;
    font-family: var(--font-mono);
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--color-white);
}

.hero-meta small {
    display: block;
    color: var(--color-mist);
    font-size: var(--text-caption);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ---------- 本文レイアウト ---------- */
.container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 24px;
}

main.container > section {
    padding-top: var(--section-gap);
}

main.container > section:last-child {
    padding-bottom: var(--section-gap);
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 24px;
    font-family: var(--font-mono);
    font-size: var(--text-heading);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-white);
}

.section-title::before {
    content: attr(data-icon);
    font-size: 16px;
    color: var(--color-icon);
    transform: translateY(-4px);
}

.section-title .ja {
    font-size: var(--text-caption);
    color: var(--color-mist-dim);
    letter-spacing: 0.08em;
}

.sub-title {
    margin: 32px 0 12px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
}

.prose {
    max-width: var(--prose-max);
}

.prose p {
    margin: 0 0 16px;
}

.lead {
    font-family: var(--font-mono);
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-white);
    margin: 0 0 24px;
}

.caption {
    font-size: var(--text-caption);
    line-height: 1.63;
    color: var(--color-mist-dim);
}

/* ---------- NEWS ---------- */
.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
}

.news-list li,
.info-item {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.info-date {
    color: var(--color-mist-dim);
}

/* ---------- 定義リスト（公演概要・スタッフ） ---------- */
.spec {
    display: grid;
    grid-template-columns: 9em 1fr;
    margin: 0;
    border-top: 1px solid var(--color-line);
}

.spec dt,
.spec dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.spec dt {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--color-mist-dim);
    padding-right: 16px;
}

.spec dd {
    color: var(--color-white);
}

/* クレジット: 未定のカテゴリ・制作メンバー */
.spec.credit {
    grid-template-columns: 13em 1fr;
}

.spec dd.undecided {
    font-family: var(--font-mono);
    color: var(--color-mist-dim);
}

.credit-names {
    color: var(--color-mist);
    font-size: 15px;
    line-height: 1.8;
}

/* ---------- カード ---------- */
.card {
    background: rgba(15, 28, 54, 0.6);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 32px;
}

.story-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.story-card img {
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
}

.book-link {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-mist);
    font-size: var(--text-caption);
    line-height: 1.6;
}

.book-link img {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    flex: none;
}

.book-link strong {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--color-white);
}

/* ---------- タイムテーブル ---------- */
.timetable-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.timetable {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    text-align: center;
}

.timetable th,
.timetable td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--color-line);
    border-right: 1px solid var(--color-line);
    font-weight: 400;
}

.timetable tr > :last-child {
    border-right: 0;
}

.timetable tbody tr:last-child > * {
    border-bottom: 0;
}

.timetable thead th {
    background: rgba(29, 41, 61, 0.7);
    color: var(--color-white);
}

.timetable thead th small {
    display: block;
    color: var(--color-mist-dim);
}

.timetable tbody th {
    color: var(--color-mist-dim);
    background: rgba(15, 28, 54, 0.5);
    white-space: nowrap;
}

.timetable .on {
    color: var(--pill-amber-fg);
}

.timetable .on .slot-time {
    display: block;
    color: var(--color-white);
    font-size: 18px;
}

.timetable .off {
    color: rgba(202, 213, 226, 0.25);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-caption);
    color: var(--color-mist-dim);
}

/* ---------- アフタートーク ---------- */
.talk-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.talk-list li {
    background: rgba(15, 28, 54, 0.6);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    line-height: 1.6;
}

.talk-list .when {
    display: block;
    color: var(--color-mist-dim);
}

.talk-list .guest {
    display: block;
    margin-top: 8px;
    color: var(--color-white);
}

/* ---------- 人物（キャスト・音楽・プロデューサー） ---------- */
.people {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.people-3 {
    grid-template-columns: repeat(3, 1fr);
}

.people-6 {
    grid-template-columns: repeat(6, 1fr);
}

.person {
    margin: 0;
}

.person .portrait {
    aspect-ratio: 1;
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
    background: radial-gradient(circle at 50% 42%, rgba(49, 64, 98, 0.9), rgba(15, 28, 54, 0.9) 70%);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 40px;
    color: rgba(202, 213, 226, 0.28);
}

.person .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person figcaption {
    padding-top: 8px;
    font-size: var(--text-caption);
    line-height: 1.6;
}

.person .role {
    display: block;
    font-family: var(--font-mono);
    color: var(--color-mist-dim);
}

.person .name {
    display: block;
    color: var(--color-white);
}

/* 出演者（写真・読み・事務所・プロフィール） */
.person .portrait picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cast-list {
    gap: 24px;
}

.cast-list .person figcaption {
    padding-top: 12px;
}

.cast-list .name {
    font-family: var(--font-mono);
    font-size: 18px;
}

.cast-list .kana,
.cast-list .agency {
    display: block;
    font-size: 12px;
    color: var(--color-mist-dim);
}

.cast-list .agency {
    margin-top: 4px;
    color: var(--color-mist);
}

.cast-list .bio {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--color-mist);
}

.profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.profile img {
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
    filter: grayscale(0.25);
}

.profile h3 {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-white);
}

/* ---------- チケット ---------- */
.price-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
}

.price-list .label {
    font-family: var(--font-mono);
}

.price-list .label small {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-caption);
    color: var(--color-mist-dim);
}

.price-list .price {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--color-white);
    white-space: nowrap;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

/* ---------- 会場 ---------- */
.map-container {
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-line);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
    filter: invert(0.9) hue-rotate(200deg) saturate(0.6) brightness(0.9);
}

/* ---------- 注意事項 ---------- */
.notice-list {
    margin: 0;
    padding-left: 1.2em;
}

.notice-list li {
    margin-bottom: 8px;
}

.rating {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--pill-violet-bg);
    color: var(--pill-violet-fg);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
}

/* ---------- フッター ---------- */
.site-footer {
    margin-top: var(--section-gap);
    padding: 48px 24px 64px;
    border-top: 1px solid var(--color-line);
    background: rgba(6, 5, 29, 0.6);
    font-size: var(--text-caption);
    line-height: 1.8;
    color: var(--color-mist-dim);
}

.site-footer .inner {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.site-footer .brand {
    font-family: var(--font-mono);
    color: var(--color-white);
    font-size: var(--text-body);
}

.site-footer p {
    margin: 0;
}

.copyright {
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
    .site-nav {
        padding: 8px 16px;
        gap: 16px;
    }

    .site-nav .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --text-heading: 24px;
        --section-gap: 56px;
    }

    .site-nav {
        padding: 8px 12px;
        gap: 8px;
    }

    .site-nav .brand {
        font-size: 12px;
        letter-spacing: 0.02em;
    }

    .site-nav .nav-pills {
        gap: 6px;
    }

    .site-nav .nav-pills .pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .site-nav .nav-pills .pill-violet {
        display: none;
    }

    .hero {
        min-height: auto;
        grid-template-rows: auto auto;
    }

    .hero-kv {
        position: relative;
        inset: auto;
        grid-row: 1;
        aspect-ratio: 9 / 13;
    }

    .hero-kv img {
        object-fit: cover;
        object-position: 50% 30%;
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
        mask-image: linear-gradient(180deg, #000 70%, transparent);
    }

    .hero-body {
        margin-top: -96px;
        padding-bottom: 40px;
    }

    .hero-pills {
        gap: 8px;
    }

    .hero-kicker .sep {
        display: block;
        height: 0;
        overflow: hidden;
    }

    .story-card,
    .profile {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-card img,
    .profile img {
        max-width: 240px;
    }

    .card {
        padding: 24px 20px;
    }

    .spec,
    .spec.credit {
        grid-template-columns: 1fr;
    }

    .spec dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

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

    .people-3,
    .people-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .people-3.cast-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

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

    .timetable {
        min-width: 0;
        font-size: 12px;
    }

    .timetable th,
    .timetable td {
        padding: 10px 4px;
    }

    .timetable .on .slot-time {
        font-size: 16px;
    }

    .news-list li,
    .info-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
