/* ================================================================
   原田英語の超絶名曲コンサートホール — style.css
   昼の部（day＝マチネ）と夜の部（night＝ナイトコンサート）の2つのテーマ。色はすべて :root のトークン
   ================================================================ */
:root {
  --bg: #fbf6ec;
  --bg2: #f3eadb;
  --card: #fffdf8;
  --ink: #221726;
  --ink2: #3e3342;
  --muted: #74697a;
  --line: #e6d9c2;
  --gold: #b8892e;
  --gold2: #e9c879;
  --gold-ink: #8a6418;
  --wine: #8e1f3d;
  --wine2: #c2385c;
  --navy: #1f2a5c;
  --plum: #3b1c4a;
  --ok: #1e9b62;
  --ng: #d6334d;
  --hl: #fff0b3;
  --shadow: 0 1px 2px rgba(50, 20, 30, 0.06), 0 10px 30px -12px rgba(50, 20, 30, 0.28);
  --shadow-lg: 0 2px 6px rgba(50, 20, 30, 0.08), 0 30px 60px -20px rgba(50, 20, 30, 0.45);
  --r: 20px;
  --jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
  --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --en: 'Cormorant Garamond', Georgia, serif;
  --round: 'Zen Maru Gothic', var(--jp);
  --goldgrad: linear-gradient(135deg, #7a5313 0%, #e9c46a 20%, #a87a22 38%, #f7dc8f 52%, #9c6d1c 68%, #e2b955 84%, #6b470f 100%);
  --velvet: radial-gradient(120% 120% at 50% 0%, #6b1534 0%, #3a0c22 55%, #1b0612 100%);
  color-scheme: light;
}
:root[data-mode='night'] {
  --bg: #0c0812;
  --bg2: #150d1f;
  --card: #1a1226;
  --ink: #f4ecdf;
  --ink2: #dcd2c2;
  --muted: #a69bb0;
  --line: #34264a;
  --gold: #e6c069;
  --gold2: #ffe3a1;
  --gold-ink: #f3d389;
  --wine: #ff6f91;
  --wine2: #ff9ab2;
  --navy: #a9b8ff;
  --plum: #d7b6ff;
  --hl: #4a3d12;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px -12px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.85; overflow-x: hidden; transition: background 0.6s, color 0.6s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine2); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.sr { position: absolute; left: -9999px; }
.sr:focus { left: 8px; top: 8px; z-index: 999; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.en, [lang='en'] { font-family: var(--en); }
.kicker { font-family: var(--en); letter-spacing: 0.22em; font-size: 0.82rem; color: var(--gold-ink); font-weight: 700; text-transform: uppercase; margin: 0 0 0.3em; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

/* 言語・英語レベルの切りかえ */
:root[data-lang='ja'] .t-en { display: none !important; }
:root[data-lang='en'] .t-ja { display: none !important; }
:root[data-lv='easy'] .lv-std { display: none !important; }
:root[data-lv='std'] .lv-easy { display: none !important; }
.t-en { display: block; font-family: var(--en); font-size: 1.12em; line-height: 1.6; color: var(--ink2); margin-top: 0.2em; }
span.t-en { display: inline; }
:root[data-lang='both'] .t-en { border-left: 3px solid var(--gold2); padding-left: 0.7em; }
:root[data-lang='both'] span.t-en, :root[data-lang='both'] .t-en.inline { border: 0; padding: 0; margin-left: 0.4em; }

/* 背景の音符（ゆっくり浮かぶ） */
.notes-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; opacity: 0.5; }
.notes-bg img { position: absolute; bottom: -40px; animation: rise linear infinite; opacity: 0; filter: drop-shadow(0 0 6px rgba(233, 200, 121, 0.6)); }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.5; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }
main, .hd, .ft { position: relative; z-index: 1; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { width: 46px; height: 46px; transition: transform 0.4s; }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo b { display: block; font-family: var(--mincho); font-size: 1.02rem; line-height: 1.2; }
.logo small { display: block; font-family: var(--en); letter-spacing: 0.25em; font-size: 0.7rem; color: var(--gold-ink); font-weight: 700; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink2); font-weight: 700; font-size: 0.9rem; padding: 7px 10px; border-radius: 999px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--bg2); color: var(--wine); }
.nav a img { display: none; }
.nav-more { display: none; }
/* はじめに：横並びのメニューでも初心者マークを見せる。このサイトについては、たたんだメニューの中だけ */
.nav a.nav-guide img { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
.nav a.nav-about { display: none; }
/* メニューが横に並ぶいちばん狭い幅でも、昼の部ボタンが押し出されないように詰める */
@media (min-width: 1101px) and (max-width: 1280px) {
  .hd-in { gap: 8px; }
  .nav a { padding: 7px 7px; font-size: 0.86rem; }
  .logo b { font-size: 0.95rem; }
}
.search-btn, .mode-btn, .menu-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; box-shadow: var(--shadow); flex-shrink: 0; }
.search-btn { width: 42px; padding: 0; }
.search-btn img, .mode-btn img { width: 26px; height: 26px; }
.mode-btn span { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
:root[data-mode='day'] .mb-moon, :root[data-mode='night'] .mb-sun { display: none; }
.menu-btn { display: none; width: 42px; padding: 0; flex-direction: column; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; top: 68px; right: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: start; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 14px 22px; gap: 6px; transform: translateY(-120%); visibility: hidden; transition: transform 0.35s, visibility 0.35s; box-shadow: var(--shadow-lg); max-height: calc(100dvh - 68px); overflow-y: auto; overflow-x: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 0.95rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; white-space: normal; line-height: 1.3; }
  .nav a img { display: block; width: 28px; height: 28px; flex-shrink: 0; }
  .nav-more { display: contents; }
  .nav a.nav-guide img { width: 28px; height: 28px; margin: 0; }
  .nav a.nav-guide, .nav a.nav-about { display: flex; border-color: var(--gold); }
  .nav-more p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 0.78rem; font-weight: 900; color: var(--gold-ink); letter-spacing: 0.1em; }
  body.menu-open { overflow: hidden; }
  .mode-btn span { display: none; }
  .mode-btn { width: 42px; padding: 0; }
  .search-btn { margin-left: auto; }
}
@media (max-width: 520px) { .logo b { font-size: 0.86rem; } .logo small { font-size: 0.6rem; } .logo img { width: 38px; height: 38px; } }

/* パンくず */
.bc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: 0.82rem; color: var(--muted); }
.bc li + li::before { content: '›'; margin-right: 6px; }
.bc a { color: var(--muted); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 900; text-decoration: none; background: var(--wine); color: #fff; box-shadow: 0 8px 22px -10px var(--wine); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); color: #fff; background: var(--wine2); }
.btn img { width: 26px; height: 26px; }
.btn.gold { background: var(--goldgrad); color: #2a1a05; box-shadow: 0 8px 24px -10px #b8892e; }
.btn.gold:hover { color: #2a1a05; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: 0.88rem; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 0.82rem; font-weight: 700; color: var(--ink2); text-decoration: none; white-space: nowrap; }
a.chip:hover { border-color: var(--gold); color: var(--wine); }
.chip img { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- セクション ---------- */
.sec { padding: 72px 0; position: relative; }
.sec.alt { background: var(--bg2); }
.sec.velvet { background: var(--velvet); color: #f7ecd9; }
.sec.velvet .kicker { color: var(--gold2); }
.sec.velvet .muted { color: #d9c3b8; }
.sec-h { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.sec-h h2 { font-family: var(--mincho); font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: 0.3em; }
.sec-h h2 img { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -0.3em; margin-right: 0.2em; }
.sec-h p { color: var(--muted); }
.velvet .sec-h p { color: #e3cfc0; }
.more { text-align: center; margin-top: 28px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.g2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 520px) { .grid.g2, .grid.g3 { grid-template-columns: 1fr; } .sec { padding: 52px 0; } }

/* ---------- ヒーロー（トップ） ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kb 30s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 4, 14, 0.88) 0%, rgba(14, 4, 14, 0.55) 45%, rgba(14, 4, 14, 0.05) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 18%); }
.hero-in { padding: 80px 0 120px; max-width: 640px; }
.hero .badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 6px 14px; font-size: 0.86rem; backdrop-filter: blur(6px); }
.hero .badge b { background: var(--goldgrad); color: #2a1a05; border-radius: 999px; padding: 1px 10px; }
.hero h1 { font-family: var(--mincho); font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.18; margin: 18px 0 10px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero h1 em { font-style: normal; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .en-sub { font-family: var(--en); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--gold2); margin-bottom: 14px; }
.hero p.lead { font-size: 1.04rem; color: #f2e6e9; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn.ghost, .hero .btn.ghost:hover, .sec.velvet .btn.ghost, .sec.velvet .btn.ghost:hover, .phrase .btn.ghost, .player .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; max-width: 560px; }
.stats div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 10px 6px; text-align: center; backdrop-filter: blur(6px); }
.stats b { display: block; font-family: var(--en); font-size: 1.9rem; line-height: 1; color: var(--gold2); }
.stats span { font-size: 0.72rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } .hero::after { background: linear-gradient(0deg, rgba(14, 4, 14, 0.92) 30%, rgba(14, 4, 14, 0.35) 100%); } .hero { align-items: end; } }
.eq { position: absolute; right: 4%; bottom: 60px; display: flex; gap: 5px; align-items: end; height: 70px; opacity: 0.85; }
.eq i { width: 6px; background: var(--goldgrad); border-radius: 3px; animation: eq 1.1s ease-in-out infinite alternate; }
@keyframes eq { 0% { height: 10%; } 100% { height: 100%; } }

/* ---------- カード ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
a.card:hover, .card.hov:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.pc { padding: 16px 16px 14px; gap: 6px; }
.pc-top { display: flex; gap: 12px; align-items: center; padding-right: 48px; }
.pc-top > div:last-child { min-width: 0; }
.pc-face { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff5dc, #e8cf98); flex-shrink: 0; overflow: hidden; border: 2px solid var(--gold2); }
.pc-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.pc h3 { font-family: var(--mincho); font-size: 1.08rem; margin: 0; }
.pc .pc-en { font-family: var(--en); font-size: 0.98rem; color: var(--muted); line-height: 1.3; }
.pc .pc-cat { font-size: 0.86rem; color: var(--ink2); margin: 4px 0 0; }
.pc .pc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.pc .play { position: absolute; right: 12px; top: 12px; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--goldgrad); box-shadow: 0 6px 16px -6px #b8892e; display: grid; place-items: center; transition: transform 0.2s; }
.play::before { content: ''; border-left: 13px solid #3a2208; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.play.on::before { border: 0; width: 12px; height: 14px; margin: 0; background: linear-gradient(90deg, #3a2208 0 35%, transparent 35% 65%, #3a2208 65%); }
.play:hover { transform: scale(1.1); }
.play.yt-play { background: #e5262f; box-shadow: 0 6px 16px -6px #e5262f; }
.play.yt-play::before { border-left-color: #fff; }
.alt-rec { margin-top: 16px; }
.alt-rec summary { cursor: pointer; font-weight: 900; padding: 10px 14px; border-radius: 14px; background: var(--bg2); }
.alt-rec .player { margin-top: 10px; }

/* 作曲家カード */
.cc { text-align: center; padding: 0 0 16px; }
.cc-img { aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, #fff6dd 0%, #f0d9a6 55%, #c99a4a 100%); position: relative; overflow: hidden; }
:root[data-mode='night'] .cc-img { background: radial-gradient(circle at 50% 35%, #4a2c5c 0%, #2a1638 60%, #160b20 100%); }
.cc-img img { width: 92%; margin: 8% auto 0; transition: transform 0.5s; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25)); }
a.cc:hover .cc-img img { transform: scale(1.07) rotate(-2deg); }
.cc h3 { font-family: var(--mincho); font-size: 1.12rem; margin: 12px 8px 0; }
.cc .en { color: var(--muted); font-size: 0.98rem; }
.cc .life { font-size: 0.8rem; color: var(--gold-ink); font-weight: 700; }
.cc .title-ja { display: inline-block; margin-top: 6px; background: var(--bg2); border-radius: 999px; padding: 2px 12px; font-size: 0.8rem; font-weight: 700; }

/* シーンカード（絵＋文字） */
.sc { aspect-ratio: 16 / 10; justify-content: flex-end; color: #fff; isolation: isolate; border: 0; }
.sc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s; }
.sc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 6, 18, 0.85), rgba(20, 6, 18, 0.05) 60%); }
a.sc:hover img { transform: scale(1.08); }
.sc div { padding: 14px 16px; }
.sc h3 { font-family: var(--mincho); font-size: 1.15rem; margin: 0; color: #fff; }
.sc .en { color: var(--gold2); font-size: 0.95rem; }
.sc .n { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.45); border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700; }
a.sc, a.sc:hover { color: #fff; }

/* ゲームカード */
.gc .gc-img { aspect-ratio: 16 / 9; overflow: hidden; }
.gc .gc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
a.gc:hover .gc-img img { transform: scale(1.08); }
.gc div.gc-b { padding: 14px 16px 16px; }
.gc .en { font-size: 0.92rem; color: var(--gold-ink); letter-spacing: 0.06em; }
.gc h3 { font-family: var(--mincho); font-size: 1.15rem; margin: 2px 0 4px; }
.gc p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.tag-voice { position: absolute; top: 10px; left: 10px; background: var(--wine); color: #fff; font-size: 0.72rem; font-weight: 900; border-radius: 999px; padding: 2px 10px; }

/* 時代の帯 */
.era-card { aspect-ratio: 16 / 8; }

/* ---------- 曲ページ ---------- */
.ph { padding: 30px 0 10px; }
.ph-grid { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; }
.ph-face { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff6dd 0%, #f0d9a6 55%, #c99a4a 100%); box-shadow: var(--shadow-lg), inset 0 0 0 6px rgba(255, 255, 255, 0.5); overflow: hidden; }
:root[data-mode='night'] .ph-face { background: radial-gradient(circle at 50% 35%, #4a2c5c 0%, #2a1638 60%, #160b20 100%); }
.ph-face img { width: 94%; margin: 9% auto 0; }
.ph-face .ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed var(--gold2); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph h1 { font-family: var(--mincho); font-size: clamp(1.7rem, 4.4vw, 2.9rem); margin: 4px 0; }
.ph .h1-en { font-family: var(--en); font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--muted); font-style: italic; }
.ph .by { margin: 10px 0; font-weight: 700; }
.ph .by a { text-decoration: none; }
.ph .catch { font-size: 1.12rem; font-weight: 700; margin: 12px 0 0; }
@media (max-width: 760px) { .ph-grid { grid-template-columns: 1fr; text-align: center; } .ph-face { width: 200px; margin: 0 auto; } .ph .chips { justify-content: center; } }

/* プレーヤー */
.player { background: var(--velvet); color: #f8eee0; border-radius: 26px; padding: 22px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.player .pl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.player .pl-head .kicker { color: var(--gold2); margin: 0; }
.player .pl-badge { margin-left: auto; font-size: 0.78rem; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 3px 12px; }
.player .pl-badge b { color: var(--gold2); }
.pl-viz { width: 100%; height: 150px; display: block; margin: 10px 0 6px; }
.pl-main { display: flex; align-items: center; gap: 14px; }
.pl-big { width: 64px; height: 64px; flex-shrink: 0; }
.pl-big::before { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
.pl-big.on::before { width: 16px; height: 20px; }
.pl-now { flex: 1; min-width: 0; }
.pl-now b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; }
.pl-now small { color: #d8c2b8; }
.pl-bar { position: relative; height: 8px; background: rgba(255, 255, 255, 0.15); border-radius: 4px; margin: 12px 0 4px; cursor: pointer; }
.pl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--goldgrad); border-radius: 4px; width: 0; }
.pl-time { display: flex; justify-content: space-between; font-size: 0.78rem; color: #d8c2b8; font-variant-numeric: tabular-nums; }
.pl-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pl-ctl button, .pl-ctl select, .pl-ctl a { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.pl-ctl button[aria-pressed='true'] { background: var(--goldgrad); color: #2a1a05; }
.pl-ctl select option { color: #000; }
.pl-ctl a:hover { color: var(--gold2); }
.pl-list { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: t; max-height: 340px; overflow: auto; }
.pl-list li { counter-increment: t; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 0.92rem; }
.pl-list li::before { content: counter(t); width: 22px; text-align: center; color: var(--gold2); font-family: var(--en); font-weight: 700; }
.pl-list li:hover { background: rgba(255, 255, 255, 0.08); }
.pl-list li.on { background: rgba(233, 200, 121, 0.2); }
.pl-list li span { flex: 1; min-width: 0; }
.pl-list li small { color: #d8c2b8; font-variant-numeric: tabular-nums; }
.pl-list li a { color: var(--gold2); font-size: 0.78rem; }
.pl-credit { font-size: 0.8rem; color: #e1cbbf; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 10px; }
.pl-credit a { color: var(--gold2); }

/* YouTube（クリックで読みこむ） */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.yt button { position: absolute; inset: 0; border: 0; padding: 0; background: #000; }
.yt button img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.6s; }
.yt button:hover img { opacity: 1; transform: scale(1.04); }
.yt button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); border-radius: 16px; background: rgba(200, 20, 30, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 34px no-repeat; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.say { border: 0; background: var(--goldgrad); border-radius: 50%; width: 34px; height: 34px; display: inline-grid; place-items: center; vertical-align: middle; margin-left: 6px; box-shadow: 0 4px 10px -4px #b8892e; transition: transform 0.2s; }
.say:hover, .say.on { transform: scale(1.15); }
.say .emo { width: 20px; height: 20px; vertical-align: 0; }
.phrase .say { width: 38px; height: 38px; }
.yt-link { display: inline-block; font-size: 0.82rem; font-weight: 700; color: #e5262f; text-decoration: none; white-space: nowrap; }
.yt-link:hover { text-decoration: underline; color: #b31b22; }
.yt-cap { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.listen-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .listen-grid { grid-template-columns: 1fr; } }

/* 本文ブロック */
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.block h2 { font-family: var(--mincho); font-size: 1.45rem; display: flex; gap: 10px; align-items: center; }
.block h2 img { width: 40px; height: 40px; }
.story p { font-size: 1.02rem; }
.story p .t-en { margin-top: 6px; }
.owl-say { display: flex; gap: 14px; align-items: center; background: var(--bg2); border-radius: 18px; padding: 14px 18px; margin: 16px 0; }
.owl-say img { width: 64px; height: 64px; flex-shrink: 0; }
.owl-say p { margin: 0; font-weight: 700; }
.toggles { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 10px 0 20px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.86rem; color: var(--muted); }
.seg button[aria-pressed='true'] { background: var(--card); color: var(--wine); box-shadow: var(--shadow); }
.seg-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; }

/* えっ！？ネタ（タップすると下に開く。中でスクロールしない） */
.secrets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.secret { border-radius: 18px; border: 2px solid var(--gold2); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.secret-f { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--velvet); color: #fff; border: 0; padding: 14px 16px; cursor: pointer; }
.secret-f img { width: 46px; height: 46px; flex-shrink: 0; }
.secret-f .q { flex: 1; font-family: var(--mincho); font-size: 1.08rem; line-height: 1.45; }
.secret-f .q .t-en { color: var(--gold2); border: 0; padding: 0; font-size: 0.95em; margin-top: 2px; }
.secret-f .arrow { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--goldgrad); display: grid; place-items: center; transition: transform 0.35s; }
.secret-f .arrow::before { content: ''; width: 9px; height: 9px; border-right: 3px solid #2a1a05; border-bottom: 3px solid #2a1a05; transform: translateY(-2px) rotate(45deg); }
.secret.open .secret-f .arrow { transform: rotate(180deg); }
.secret-b { display: none; padding: 16px 18px 18px; font-size: 0.98rem; line-height: 1.9; }
.secret.open .secret-b { display: block; }
.secret-b p { margin: 0 0 0.6em; }
.secret-hint { text-align: center; font-size: 0.86rem; color: var(--muted); margin: -4px 0 12px; }

/* 英単語・フレーズ */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.word { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--bg); }
.word b { font-family: var(--en); font-size: 1.45rem; color: var(--navy); }
.word .pos { font-size: 0.72rem; background: var(--bg2); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.word .ja { font-weight: 700; }
.word .ex { font-family: var(--en); font-size: 1.05rem; margin-top: 6px; }
.word .exja { font-size: 0.84rem; color: var(--muted); }
.phrase { background: var(--velvet); color: #fff; border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.phrase .kicker { color: var(--gold2); }
.phrase .big { font-family: var(--en); font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; color: var(--gold2); margin: 4px 0; }
.phrase .ja { font-weight: 900; font-size: 1.1rem; }
.phrase .ex { font-family: var(--en); font-size: 1.25rem; margin-top: 12px; }
.phrase .note { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: 0.92rem; }

/* 聴きどころ */
.listen-points { counter-reset: lp; list-style: none; padding: 0; margin: 0; }
.listen-points li { counter-increment: lp; position: relative; padding: 12px 0 12px 54px; border-bottom: 1px dashed var(--line); }
.listen-points li::before { content: counter(lp); position: absolute; left: 0; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--goldgrad); display: grid; place-items: center; font-family: var(--en); font-weight: 700; font-size: 1.3rem; color: #2a1a05; }

/* クイズ（曲ページ・作曲家ページの小さいもの） */
.mq { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; background: var(--bg); }
.mq .q { font-weight: 900; margin-bottom: 10px; }
.mq .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mq .opts button { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 14px; font-weight: 700; transition: border-color 0.2s, transform 0.15s; }
.mq .opts button:hover { border-color: var(--gold); transform: translateY(-2px); }
.mq .opts button.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.mq .opts button.ng { border-color: var(--ng); background: color-mix(in srgb, var(--ng) 12%, var(--card)); }
.mq .ex { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); font-size: 0.92rem; }

/* 出典の箱 */
.credit { font-size: 0.86rem; background: var(--bg2); border-radius: 16px; padding: 16px 18px; }
.credit dt { font-weight: 900; }
.credit dd { margin: 0 0 8px; }

/* 作曲家ページ */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.facts li::before { content: '★'; color: var(--gold); font-size: 1.2rem; line-height: 1.5; }
.quote { text-align: center; padding: 40px 20px; }
.quote blockquote { font-family: var(--en); font-style: italic; font-size: clamp(1.4rem, 3.6vw, 2.2rem); line-height: 1.35; margin: 0 auto 12px; max-width: 820px; color: var(--gold2); }
.quote .ja { font-family: var(--mincho); font-size: 1.15rem; }
.quote cite { display: block; margin-top: 8px; font-size: 0.86rem; color: #d9c3b8; font-style: normal; }
.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: var(--goldgrad); }
.tl li { display: grid; grid-template-columns: 50px 1fr; gap: 26px; padding: 8px 0; position: relative; }
.tl li::after { content: ''; position: absolute; left: 56px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--gold); }
.tl b { font-family: var(--en); font-size: 1.2rem; color: var(--gold-ink); text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { font-size: 0.72rem; padding: 6px 8px; color: var(--muted); line-height: 1.4; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 3, 10, 0.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px #000; }
.lightbox p { color: #ddd; font-size: 0.86rem; text-align: center; max-width: 720px; margin-top: 10px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo figure { margin: 0; }
.duo figcaption { font-size: 0.78rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

/* フィルター */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.filters button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.86rem; }
.filters button[aria-pressed='true'] { background: var(--wine); color: #fff; border-color: var(--wine); }
.filter-search { display: flex; justify-content: center; margin-bottom: 14px; }
.filter-search input { width: min(520px, 100%); border: 2px solid var(--line); border-radius: 999px; padding: 12px 20px; font: inherit; background: var(--card); color: var(--ink); }
.count-line { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }

/* 真偽メーター */
.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 0.86rem; border-radius: 999px; padding: 3px 12px; color: #fff; }
.verdict.true { background: #16a34a; }
.verdict.mostly { background: #65a30d; }
.verdict.unclear { background: #d97706; }
.verdict.mostly-false { background: #dc5a26; }
.verdict.false { background: #be123c; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 8px 0; max-width: 320px; }
.meter i { height: 8px; border-radius: 4px; background: var(--line); }
.meter i.on { background: var(--gold); }
.lab-card { padding: 20px; }
.lab-card h3 { font-family: var(--mincho); font-size: 1.2rem; }
.lab-card .refs { font-size: 0.78rem; margin-top: 10px; }
.lab-card .refs a { word-break: break-all; }

/* バイノーラル */
.bb { background: radial-gradient(120% 120% at 50% 0%, #1d2a6b 0%, #0d1033 60%, #05061a 100%); color: #eef; border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg); }
.bb canvas { width: 100%; height: 180px; display: block; }
.bb .bands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.bb .bands button { border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 14px; padding: 10px; text-align: left; }
.bb .bands button b { display: block; font-family: var(--en); font-size: 1.2rem; }
.bb .bands button[aria-pressed='true'] { background: linear-gradient(135deg, #6d7cff, #b06dff); border-color: transparent; }
.bb label { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; font-size: 0.88rem; margin: 6px 0; }
.bb input[type='range'] { width: 100%; accent-color: #9aa6ff; }
.bb .warn { background: rgba(255, 200, 80, 0.12); border: 1px solid rgba(255, 200, 80, 0.4); border-radius: 12px; padding: 10px 14px; font-size: 0.86rem; margin-top: 12px; }
@media (max-width: 560px) { .bb label { grid-template-columns: 1fr 70px; } .bb label span:first-child { grid-column: 1 / -1; } }

/* 速さラボ */
.speed-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.speed-row button { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 10px; font-weight: 900; }
.speed-row button b { display: block; font-family: var(--en); font-size: 1.8rem; color: var(--wine); line-height: 1.1; }
.speed-row button.on { border-color: var(--gold); background: var(--hl); }

/* ラウンジ */
.lg-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.lg-tabs button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.86rem; }
.lg-tabs button[aria-pressed='true'] { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-mode='night'] .lg-tabs button[aria-pressed='true'] { color: #111; }
.vc .yt { border-radius: 0; box-shadow: none; }
.vc .vc-b { padding: 12px 14px 14px; }
.vc h3 { font-size: 0.95rem; margin: 0 0 4px; line-height: 1.45; }
.vc p { font-size: 0.86rem; color: var(--muted); margin: 0; }
/* 横スクロールの列（BGMラウンジ・作曲家の部屋）。.rail-sec.open で一覧（グリッド）に広がる */
.rail-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rail-h h2 { font-size: 1.15rem; margin: 0; }
.rail-h h2 small { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rail-link { border: 0; background: none; color: var(--gold-ink); font-weight: 700; font-size: 0.86rem; padding: 4px 0; white-space: nowrap; cursor: pointer; }
:root[data-mode='night'] .rail-link { color: var(--gold); }
.rail-link:hover { text-decoration: underline; }
.rail { position: relative; }
.rail-strip { --rail-w: 260px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 12px; scrollbar-width: thin; }
.rail-strip > * { flex: 0 0 var(--rail-w); scroll-snap-align: start; }
.rail-nav { position: absolute; top: 34%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-lg); cursor: pointer; }
.rail-nav.prev { left: -10px; }
.rail-nav.next { right: -10px; }
@media (hover: none) { .rail-nav { display: none; } }
.rail-sec.open .rail-nav { display: none; }
.rail-sec.open .rail-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--rail-w), 1fr)); gap: 18px; overflow: visible; padding: 4px 0 0; }
@media (max-width: 520px) { .rail-strip { --rail-w: 68%; } .rail-sec.open .rail-strip { grid-template-columns: 1fr; } }
.lg-row { margin: 0 0 26px; }
.lg-row .rail-strip .vc-b h3, .lg-row .rail-strip .vc-b > p:not(.small) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lg-one .lg-all { display: none; }
.lg-one .rail-strip .vc-b h3, .lg-one .rail-strip .vc-b > p:not(.small) { display: block; -webkit-line-clamp: none; }
.lg-more { text-align: center; margin: 18px 0 0; }
/* 作曲家の部屋：時代ごとの列 */
.cc-rail .rail-strip { --rail-w: 176px; }
.cc-rail .cc h3 { font-size: 1rem; }
.cc-rail .cc .en { font-size: 0.8rem; padding: 0 6px; }
.cc-rail.open .rail-strip { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .cc-rail .rail-strip { --rail-w: 42%; } .cc-rail.open .rail-strip { grid-template-columns: repeat(2, 1fr); } }
.era-banner { width: 100%; max-width: 980px; margin: 0 auto 22px; border-radius: 22px; aspect-ratio: 16 / 5; object-fit: cover; box-shadow: var(--shadow-lg); display: block; }
.vc .len { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.74rem; border-radius: 6px; padding: 1px 6px; pointer-events: none; }

/* ゲームの共通 */
.is-game main { min-height: 80vh; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 24px; position: relative; overflow: hidden; }
.game-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.game-top .score { margin-left: auto; font-family: var(--en); font-size: 1.4rem; font-weight: 700; }
.game h2 { font-family: var(--mincho); }
.g-start { text-align: center; padding: 20px 0; }
.g-start img.key { width: 100%; max-width: 640px; border-radius: 18px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.g-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.g-opts button { border: 2px solid var(--line); background: var(--bg); border-radius: 16px; padding: 14px; font-weight: 900; font-size: 1.02rem; text-align: left; display: flex; gap: 10px; align-items: center; transition: transform 0.15s, border-color 0.2s; }
.g-opts button img { width: 48px; height: 48px; border-radius: 50%; background: var(--bg2); object-fit: cover; }
.g-opts button:hover { transform: translateY(-2px); border-color: var(--gold); }
.g-opts button.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--bg)); }
.g-opts button.ng { border-color: var(--ng); background: color-mix(in srgb, var(--ng) 12%, var(--bg)); }
@media (max-width: 560px) { .g-opts { grid-template-columns: 1fr; } }
.g-bar { height: 10px; border-radius: 6px; background: var(--bg2); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 100%; background: var(--goldgrad); transform-origin: left; }
.g-res { text-align: center; padding: 20px 0; }
.g-res img { width: 160px; margin: 0 auto; }
.g-res .big { font-family: var(--en); font-size: 4rem; font-weight: 700; color: var(--wine); line-height: 1; }
.burst { position: fixed; pointer-events: none; z-index: 300; }
.emo { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; object-fit: contain; }
h1 .emo, h2 .emo { width: 1.1em; height: 1.1em; }

/* ---------- フッター ---------- */
.ft { background: #12060f; color: #e8d9cc; padding: 56px 0 120px; margin-top: 40px; }
.ft h3 { font-family: var(--mincho); color: var(--gold2); font-size: 1.05rem; }
.ft a { color: #f3d389; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin: 4px 0; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; font-size: 0.9rem; }
.ft-free b { background: var(--goldgrad); color: #2a1a05; border-radius: 999px; padding: 1px 10px; }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr; } }

/* マエストロふくろう */
.owl-guide { position: fixed; left: 14px; bottom: 14px; z-index: 60; }
.owl-btn { border: 0; background: none; padding: 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); transition: transform 0.3s; }
.owl-btn:hover { transform: scale(1.08) rotate(-4deg); }
.owl-btn img { width: 86px; height: 86px; }
.owl-bubble { position: absolute; left: 70px; bottom: 76px; width: min(330px, calc(100vw - 40px)); background: var(--card); color: var(--ink); border: 2px solid var(--gold2); border-radius: 20px 20px 20px 4px; padding: 14px 16px; font-size: 0.92rem; box-shadow: var(--shadow-lg); }
.owl-bubble .x { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 0.8rem; }
.owl-bubble a { font-weight: 700; }
@media (max-width: 560px) { .owl-btn img { width: 66px; height: 66px; } .owl-bubble { left: 0; bottom: 74px; } }
.owl-bubble .x { right: auto; left: auto; right: -10px; }

/* ミニプレーヤー（画面の下） */
.mini { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 70; width: min(720px, calc(100vw - 20px)); background: rgba(28, 10, 26, 0.94); color: #fff; border: 1px solid rgba(233, 200, 121, 0.45); border-radius: 22px; padding: 8px 12px 8px; backdrop-filter: blur(12px); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); }
.mini-row { display: flex; align-items: center; gap: 8px; }
.mini-prev, .mini-next { border: 0; background: transparent; color: #fff; font-size: 0.95rem; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.mini-prev:hover, .mini-next:hover { background: rgba(255, 255, 255, 0.12); }
.mini-dl { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; background: var(--goldgrad); color: #2a1a05; font-weight: 900; font-size: 0.8rem; border-radius: 999px; padding: 6px 11px; text-decoration: none; }
.mini-dl:hover { color: #2a1a05; filter: brightness(1.1); }
.vol { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.vol .vol-btn { border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 0.95rem; padding: 0; }
.pl-ctl .vol .vol-btn { width: auto; height: auto; border-radius: 999px; padding: 6px 10px; }
.vol .vol-range { width: 84px; accent-color: #f3d389; cursor: pointer; }
@media (max-width: 560px) { .mini .vol .vol-range { width: 56px; } }
.mini-seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 6px; font-size: 0.78rem; font-variant-numeric: tabular-nums; color: #e8d6cc; }
.mini-left { text-align: center; font-size: 0.72rem; color: #c9b2a8; line-height: 1.2; }
.seek { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.seek::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.seek i { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--goldgrad); width: 0; }
.seek b { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 0 3px rgba(255, 227, 154, 0.25); left: 0; }
.seek em { position: absolute; bottom: 20px; transform: translateX(-50%); background: #fff; color: #2a1a05; font-style: normal; font-weight: 900; font-size: 0.74rem; padding: 2px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.seek:hover::before, .seek:focus::before { height: 6px; top: 6px; }
.mini-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--goldgrad); display: grid; place-items: center; flex-shrink: 0; }
.mini-play::before { content: ''; border-left: 13px solid #3a2208; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.mini-play.on::before { border: 0; width: 12px; height: 14px; margin: 0; background: linear-gradient(90deg, #3a2208 0 35%, transparent 35% 65%, #3a2208 65%); }
.mini-txt { flex: 1; min-width: 0; line-height: 1.3; }
.mini-txt b, .mini-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-txt small { color: #d8c2b8; font-size: 0.76rem; }
.mini-viz { width: 120px; height: 34px; }
.mini-x { border: 0; background: rgba(255, 255, 255, 0.12); border-radius: 50%; width: 32px; height: 32px; color: #fff; }
@media (max-width: 560px) { .mini-viz, .mini-prev, .mini-dl span { display: none; } .mini { border-radius: 18px; } }
body.has-mini .to-top, body.has-mini .owl-guide { bottom: 112px; }
body.has-mini .ft { padding-bottom: 170px; }

/* 検索 */
.search-panel { position: fixed; inset: 0; z-index: 150; background: rgba(10, 4, 10, 0.6); backdrop-filter: blur(6px); padding: 70px 16px; }
.sp-in { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sp-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sp-bar input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink); outline: 0; }
.sp-x { border: 0; background: var(--bg2); border-radius: 50%; width: 34px; height: 34px; }
.sp-res { max-height: 60vh; overflow: auto; }
.sp-res a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sp-res a:hover { background: var(--bg2); }
.sp-res img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg2); }
.sp-res small { display: block; color: var(--muted); }

.to-top { position: fixed; right: 14px; bottom: 14px; z-index: 55; border: 0; background: var(--card); border-radius: 50%; width: 52px; height: 52px; box-shadow: var(--shadow); display: grid; place-items: center; }
.to-top img { width: 34px; height: 34px; }

/* 出てくる動き（JS が無いときは最初から見える） */
.js .rv { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } .notes-bg, .hero-bg img, .eq i, .ph-face .ring { animation: none !important; } }

/* 汎用 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.center { text-align: center; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.prose h2 { font-family: var(--mincho); font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-family: var(--mincho); font-size: 1.2rem; margin-top: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg2); }
/* スマホでは表を縦にならべる（横スクロールしない） */
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td, .prose th { display: block; width: 100%; }
  .prose tr:first-child:has(th) { display: none; }
  .prose tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; background: var(--card); }
  .prose td, .prose th { border: 0; padding: 4px 12px; }
}
main { overflow-wrap: anywhere; }
.callout { border-radius: 16px; padding: 16px 18px; background: var(--hl); color: #3b2c05; margin: 1em 0; }
:root[data-mode='night'] .callout { color: var(--ink); }
.page-h { text-align: center; padding: 34px 0 10px; }
.page-h h1 { font-family: var(--mincho); font-size: clamp(1.8rem, 4.6vw, 3rem); margin: 0 0 6px; }
.page-h .lead { color: var(--muted); max-width: 720px; margin: 0 auto; }
.page-h img.hero-img { width: 100%; max-width: 980px; border-radius: 24px; margin: 22px auto 0; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 7; object-fit: cover; }

/* ---------- 超絶コンテンツ（タイマー・手帳・講座・暦・相関図・地図・日本） ---------- */
.timer-face { position: relative; width: min(320px, 80vw); aspect-ratio: 1; margin: 0 auto 20px; }
.timer-face svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tf-bg { fill: var(--card); stroke: var(--bg2); stroke-width: 14; }
.tf-fg { fill: none; stroke: url(#g) var(--gold); stroke: var(--gold); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 0.5s linear; }
.tf-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tf-mode { font-weight: 900; color: var(--wine); }
.tf-time { font-family: var(--en); font-size: clamp(3rem, 14vw, 4.6rem); font-weight: 700; line-height: 1; }
.tf-now { max-width: 200px; margin: 6px auto 0; color: var(--muted); }
.tf-owl { position: absolute; right: -10%; bottom: -6%; width: 34%; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { text-align: center; border: 2px dashed var(--line); border-radius: 16px; padding: 12px 8px; opacity: 0.45; filter: grayscale(1); }
.badge.on { opacity: 1; filter: none; border: 2px solid var(--gold2); background: var(--hl); }
:root[data-mode='night'] .badge.on { background: rgba(233, 200, 121, 0.12); }
.badge img { width: 56px; height: 56px; margin: 0 auto 6px; }
.badge b { display: block; font-size: 0.86rem; }
.badge small { color: var(--muted); font-family: var(--en); }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.stamp { text-align: center; text-decoration: none; color: var(--muted); font-size: 0.74rem; opacity: 0.35; filter: grayscale(1); }
.stamp img { width: 76px; height: 76px; margin: 0 auto 4px; border-radius: 50%; object-fit: cover; background: var(--bg2); border: 3px solid var(--line); }
.stamp.on { opacity: 1; filter: none; color: var(--ink); }
.stamp.on img { border-color: var(--wine); box-shadow: 0 0 0 3px var(--gold2); transform: rotate(-6deg); }
.stamp-toast { position: fixed; right: 16px; top: 84px; z-index: 120; display: flex; gap: 10px; align-items: center; background: var(--card); border: 2px solid var(--gold2); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 0.86rem; max-width: min(320px, calc(100vw - 32px)); }
.mini-kb { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-width: 560px; margin: 0 auto 10px; }
.mini-kb button { border: 1px solid var(--line); background: #fffdf6; color: #222; border-radius: 0 0 10px 10px; padding: 40px 0 8px; display: flex; flex-direction: column; align-items: center; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.06); }
.mini-kb b { font-family: var(--en); font-size: 1.3rem; }
.mini-kb small { font-size: 0.72rem; color: #666; }
.tempo-box { background: var(--bg2); border-radius: 18px; padding: 16px; }
.tempo-big { text-align: center; }
.tempo-big span { display: inline-block; font-family: var(--en); font-style: italic; font-size: clamp(2.2rem, 8vw, 3.4rem); color: var(--wine); font-weight: 700; }
.tempo-big small { display: block; }
.orch-svg { width: 100%; max-width: 640px; display: block; margin: 0 auto; }
.orch { cursor: pointer; }
.orch path { stroke: #fff; stroke-width: 2; transition: filter 0.2s; }
.orch:hover path, .orch:focus path { filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
.orch text { font-size: 12px; font-weight: 700; fill: #2a1a2f; pointer-events: none; }
.orch text.en { font-size: 10px; font-weight: 400; font-style: italic; }
.cal-today { display: grid; gap: 12px; }
.cal-item { display: flex; gap: 14px; align-items: center; padding: 14px; }
.cal-item img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg2); }
.cal-item .date { font-family: var(--en); font-size: 1.1rem; color: var(--wine); font-weight: 700; }
.jp-line { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.jp-line b { font-family: var(--en); font-size: 1.15rem; color: var(--gold-ink); }
.jp-line .w { background: color-mix(in srgb, var(--wine) 8%, transparent); border-radius: 10px; padding: 6px 10px; }
.jp-line .j { background: color-mix(in srgb, var(--navy) 8%, transparent); border-radius: 10px; padding: 6px 10px; }
.jp-head { position: sticky; top: 68px; z-index: 5; background: var(--bg); display: grid; grid-template-columns: 70px 1fr 1fr; gap: 10px; font-weight: 900; padding: 8px 0; border-bottom: 2px solid var(--gold2); }
@media (max-width: 640px) { .jp-line, .jp-head { grid-template-columns: 52px 1fr 1fr; font-size: 0.82rem; } }
.era-band { margin: 18px 0 6px; padding: 6px 14px; border-radius: 999px; background: var(--goldgrad); color: #2a1a05; font-weight: 900; display: inline-block; }
.rel-wrap { position: relative; height: min(78vh, 760px); border-radius: 24px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #2a0f3a, #0b0612); }
.rel-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.rel-info { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(255, 255, 255, 0.95); color: #222; border-radius: 16px; padding: 12px 14px; font-size: 0.9rem; max-height: 40%; overflow: auto; }
.rel-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.rel-legend span { font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #fff; }
.map-wrap { border-radius: 24px; overflow: hidden; background: #cfe3f2; position: relative; }
:root[data-mode='night'] .map-wrap { background: #0d1a2e; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap .land { fill: #f4ead5; stroke: #c9b791; stroke-width: 0.5; }
:root[data-mode='night'] .map-wrap .land { fill: #2a2440; stroke: #4a3f6a; }
.pin { cursor: pointer; }
.pin circle { fill: var(--wine); stroke: #fff; stroke-width: 1.5; }
.pin image { clip-path: circle(50%); }
.term-card { padding: 16px; }
.term-card .t { font-family: var(--en); font-style: italic; font-size: 1.7rem; color: var(--wine); font-weight: 700; }
.term-card .say-it { font-size: 0.8rem; color: var(--muted); }
.term-card .kids { display: inline-block; background: var(--hl); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 900; color: #3b2c05; }
/* 肖像画の写真は縦長が多く、まん中で丸く切ると顔が切れる（2026-11-02 ユーザー「ボッケリーニ顔がみえない」）。上寄りで切る */
img[src*='/photo/'][src$='-s.webp'] { object-position: 50% 12%; }
/* ホームの「超絶楽器スタジオ」バナー */
.hs-studio { position: relative; overflow: hidden; color: #fff; background: #120818; padding: 70px 0; }
.hs-studio .hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hs-studio::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 6, 22, 0.95), rgba(14, 6, 22, 0.55) 60%, rgba(14, 6, 22, 0.2)); }
.hs-in { position: relative; z-index: 1; }
.hs-studio h2 { font-family: var(--mincho); font-size: clamp(2rem, 6vw, 3.4rem); margin: 6px 0 10px; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-studio .lead { max-width: 620px; color: #f3e9d8; }
.hs-studio .t-en { color: #d9c9a8; }
.hs-studio .kicker { color: var(--gold2); }
.tag-new { display: inline-block; background: var(--wine2); color: #fff; border-radius: 6px; padding: 1px 8px; margin-right: 6px; letter-spacing: 0.08em; }
.hs-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; max-width: 900px; }
.hs-cards a { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); color: #fff; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.hs-cards a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.16); }
.hs-cards b { font-size: 1rem; }
.hs-cards small { color: #d9c9a8; }
@media (max-width: 760px) { .hs-cards { grid-template-columns: 1fr 1fr; } .hs-studio::after { background: rgba(14, 6, 22, 0.78); } }
/* 埋め込みが止められている YouTube 動画：押すと YouTube で開く */
.yt-ext-tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: #c4302b; color: #fff; font-weight: 900; font-size: 0.82rem; border-radius: 999px; padding: 4px 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.yt-out { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.yt-out img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.yt-out span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 12px; }
.yt-out b { display: inline-block; justify-self: center; background: #c4302b; border-radius: 999px; padding: 8px 18px; font-size: 1rem; }
.yt-out small { font-size: 0.8rem; text-shadow: 0 1px 3px #000; }
.yt > div { position: absolute; inset: 0; }
.yt > div > iframe, .yt > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 一覧のカードで ▶ を押したときに出る「ヒミツの見出し」 */
.pc-tease { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #3b1c4a, #6b1534); color: #fff; text-decoration: none; box-shadow: 0 8px 20px -10px #3b1c4a; }
.pc-tease:hover { color: #fff; filter: brightness(1.1); }
.pc-tease img { width: 34px; height: 34px; flex: none; }
.pc-tease span { flex: 1 1 150px; min-width: 0; line-height: 1.35; }
.pc-tease small { display: block; font-size: 0.7rem; color: var(--gold2); font-weight: 900; letter-spacing: 0.04em; }
.pc-tease b { font-size: 0.9rem; }
.pc-tease em { flex: none; margin-left: auto; font-style: normal; font-weight: 900; font-size: 0.78rem; background: var(--goldgrad); color: #2a1a05; border-radius: 999px; padding: 5px 10px; }
.mini-txt { cursor: pointer; }
.mini-go { display: inline-block; margin-top: 2px; font-style: normal; font-size: 0.7rem; font-weight: 900; color: #2a1a05; background: var(--goldgrad); border-radius: 999px; padding: 1px 9px; }
/* ヘッダーの鉄板リンク：メニューがハンバーガーにしまわれる幅で、空いた所に入るぶんだけ並べる */
.qnav { display: none; }
@media (max-width: 1100px) and (min-width: 600px) {
  .qnav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: 1; min-width: 0; height: 36px; overflow: hidden; margin: 0 6px 0 auto; }
  .qnav a { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 900; font-size: 0.84rem; white-space: nowrap; transition: background 0.2s, color 0.2s; }
  .qnav a:hover, .qnav a[aria-current] { background: var(--bg2); color: var(--wine); }
  .qnav img { width: 22px; height: 22px; }
}

/* 名曲ドンカッ！の大きなカード（トップ・ゲーム一覧） */
.tk-feature { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; border-radius: 24px; overflow: hidden; background: #140814; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); margin-bottom: 18px; position: relative; }
.tk-feature:hover { color: #fff; }
.tk-feature .tkf-img { position: relative; min-height: 220px; overflow: hidden; }
.tk-feature .tkf-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.tk-feature:hover .tkf-img img { transform: scale(1.06); }
.tk-feature .tkf-b { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: radial-gradient(120% 120% at 0% 0%, #5a1430, #1b0612 70%); }
.tk-feature .kicker { color: var(--gold2); margin: 0; }
.tk-feature h3 { font-family: var(--mincho); font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin: 0; line-height: 1.15; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tk-feature p { margin: 0; color: #f0e2cf; font-size: 0.95rem; }
.tk-feature .tkf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-feature .tkf-tags span { font-size: 0.74rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.tk-feature .btn { align-self: flex-start; margin-top: 4px; }
.tk-feature .tkf-new { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--ng); color: #fff; font-weight: 900; font-size: 0.8rem; padding: 3px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px #000; }
@media (max-width: 720px) { .tk-feature { grid-template-columns: 1fr; } .tk-feature .tkf-img { min-height: 0; aspect-ratio: 16 / 9; } .tk-feature .tkf-b { padding: 18px 18px 22px; } }
