/* 毎日マーケットラジオ｜トップページ（音声番組）
   相場まとめページ（/report/）と同じ配色：藍（夜明け前）＋朝日の金。上昇＝赤、下落＝緑（日本の慣習）。 */
:root {
  --ink: #1E2A5A; --ink-2: #2E3D78; --ink-soft: #C9D0EA; --sun: #F2B33D;
  --paper: #F3F4F8; --card: #FFFFFF; --chip: #E8EAF2; --text: #1A2032; --muted: #5A6380; --line: #DFE2EC;
  --up: #CF2840; --up-bg: #FDECEF; --down: #0C875C; --down-bg: #E4F4EC; --flat: #5A6380;
  --ny: #2F5AA8; --ny-bg: #E6EDF9; --jp: #B4532A; --jp-bg: #FBEDE4; --info: #6B5A12; --info-bg: #FFF3D6;
  --num: "Barlow Condensed", "Zen Kaku Gothic New", system-ui, sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1226; --card: #182041; --chip: #141B36; --text: #EBEEF8; --muted: #A4ACC8; --line: #2A335C;
    --up: #FF7486; --up-bg: #3C1B2B; --down: #3BCB91; --down-bg: #10352A; --flat: #A4ACC8;
    --ny: #8FB0F0; --ny-bg: #1C2745; --jp: #F0A27E; --jp-bg: #3A2418; --info: #FFC861; --info-bg: #3A2E12;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.tx-up { color: var(--up); } .tx-down { color: var(--down); } .tx-flat { color: var(--flat); }
[hidden] { display: none !important; }

/* ---------- 冒頭 ---------- */
.hero {
  color: #fff; padding: 34px 0 92px; position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 92% -10%, rgba(242,179,61,.38) 0, rgba(242,179,61,0) 55%),
    radial-gradient(60% 60% at 0% 110%, rgba(84,110,200,.35) 0, rgba(84,110,200,0) 60%),
    linear-gradient(180deg, var(--ink) 0, #151D45 100%);
}
/* 音の波（飾り） */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 2px, transparent 2px 9px);
  -webkit-mask: linear-gradient(0deg, #000 0, transparent 100%); mask: linear-gradient(0deg, #000 0, transparent 100%);
  clip-path: polygon(0 70%, 4% 40%, 8% 75%, 12% 30%, 16% 65%, 20% 45%, 24% 80%, 28% 35%, 32% 60%, 36% 20%, 40% 70%, 44% 50%, 48% 85%, 52% 40%, 56% 65%, 60% 25%, 64% 70%, 68% 45%, 72% 80%, 76% 30%, 80% 60%, 84% 40%, 88% 75%, 92% 35%, 96% 60%, 100% 50%, 100% 100%, 0 100%);
}
.hero-in { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.cover { width: 220px; height: auto; aspect-ratio: 1; border-radius: 22px; object-fit: cover; box-shadow: 0 24px 50px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.14); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; letter-spacing: .16em; color: var(--sun); font-weight: 700; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(242,179,61,.25); animation: onair 2.4s ease-in-out infinite; }
@keyframes onair { 50% { box-shadow: 0 0 0 8px rgba(242,179,61,0); } }
.hero h1 { margin: 6px 0 6px; font-size: clamp(2rem, 6.4vw, 3.2rem); line-height: 1.2; letter-spacing: .03em; }
.lead { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 32em; }
.sched { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.sched li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.sched b { font-family: var(--num); font-size: 17px; font-weight: 600; color: #fff; }
.sched i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn-sun { background: var(--sun); color: #1A2032; box-shadow: 0 10px 24px -12px rgba(242,179,61,.9); }
.btn-sun:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1A2032; color: var(--sun); font-size: 10px; padding-left: 2px; }
@media (max-width: 720px) {
  .hero { padding: 24px 0 84px; }
  .hero-in { grid-template-columns: 1fr; gap: 18px; }
  .cover { width: 96px; border-radius: 14px; }
  .sched li { font-size: 12px; }
  .cta .btn { flex: 1 1 auto; }
}

/* ---------- 最新回（主役） ---------- */
.main { margin-top: -64px; position: relative; z-index: 2; padding-bottom: 56px; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px;
  box-shadow: 0 24px 50px -30px rgba(20,28,70,.55);
}
.feature-play {
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--ink); color: var(--sun); font-size: 22px; box-shadow: 0 0 0 6px rgba(242,179,61,.28);
  transition: transform .15s ease;
}
.feature-play:hover { transform: scale(1.05); }
.feature-play .pi { padding-left: 4px; }
.is-playing .feature-play .pi { padding-left: 0; }
.feature-meta { min-width: 0; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13px; color: var(--muted); }
.kicker strong { color: var(--text); font-size: 12px; letter-spacing: .12em; }
.feature h2 { margin: 2px 0 2px; font-size: clamp(1.15rem, 3.4vw, 1.45rem); line-height: 1.45; }
.feature p.desc { margin: 0; color: var(--muted); font-size: 14px; }
.feature-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-family: var(--num); font-size: 15px; color: var(--muted); }
.feature-bar .track { flex: 1; }
@media (max-width: 520px) { .feature { gap: 14px; padding: 16px; align-items: start; } .feature-play { width: 56px; height: 56px; font-size: 18px; } }

.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 5px; letter-spacing: .04em; white-space: nowrap; }
.b-ny { color: var(--ny); background: var(--ny-bg); }
.b-jp { color: var(--jp); background: var(--jp-bg); }
.b-info { color: var(--info); background: var(--info-bg); }

/* ---------- 見出し ---------- */
.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 1.3rem; line-height: 1.35; display: flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--sun); }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; width: 100%; }
.more { font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .more { color: var(--sun); } }
.more:hover { text-decoration: underline; }

/* ---------- きょうの相場 ---------- */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .markets { grid-template-columns: 1fr; } }
.mk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-name { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mk-date { font-size: 12px; color: var(--muted); }
.mk-head { margin: 0; font-size: 15px; line-height: 1.65; font-weight: 500; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt { background: var(--chip); border-radius: 12px; padding: 8px clamp(6px, 2vw, 10px); min-width: 0; border-top: 3px solid var(--flat); }
.mt.is-up { border-top-color: var(--up); } .mt.is-down { border-top-color: var(--down); }
.mt-n { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-v { display: block; font-family: var(--num); font-size: clamp(15px, 4.2vw, 22px); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-c { display: block; font-family: var(--num); font-size: 15px; font-weight: 600; }
.mk-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.pill:hover { border-color: var(--ink-2); }
.pill-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .pill-solid { background: var(--sun); color: #1A2032; border-color: var(--sun); } }
.mk-empty { color: var(--muted); font-size: 14px; margin: 0; }
.skel { background: linear-gradient(90deg, var(--chip) 0, var(--line) 50%, var(--chip) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 8px; min-height: 1em; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- エピソード一覧 ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.flt { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 14px; min-height: 36px; font-size: 13px; cursor: pointer; color: var(--muted); }
.flt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
@media (prefers-color-scheme: dark) { .flt[aria-pressed="true"] { background: var(--sun); color: #1A2032; border-color: var(--sun); } }
.eps { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ep { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.ep:first-child { border-top: 0; }
.ep:target, .ep.is-current { background: linear-gradient(90deg, rgba(242,179,61,.14), transparent 70%); }
.ep-date { display: grid; justify-items: center; line-height: 1.1; padding: 6px 0; border-radius: 12px; background: var(--chip); }
.ep-md { font-family: var(--num); font-size: 22px; font-weight: 600; }
.ep-wd { font-size: 11px; color: var(--muted); }
.ep-main { min-width: 0; }
.ep-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.ep-title { margin: 2px 0 0; font-size: 15px; line-height: 1.55; font-weight: 700; }
.ep-desc { margin: 2px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep details { margin-top: 4px; font-size: 13px; color: var(--muted); }
.ep summary { cursor: pointer; color: var(--ink-2); font-weight: 700; font-size: 12px; list-style: none; display: inline-flex; gap: 4px; }
@media (prefers-color-scheme: dark) { .ep summary { color: var(--sun); } }
.ep summary::-webkit-details-marker { display: none; }
.ep summary::after { content: "＋"; }
.ep details[open] summary::after { content: "−"; }
.ep details p, .ep details li { margin: 6px 0 0; }
.ep details ul { padding-left: 1.2em; margin: 4px 0 0; }
.ep details a { word-break: break-all; }
.ep-play { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 14px; flex: none; }
.ep-play .pi { padding-left: 3px; }
.ep.is-playing .ep-play { background: var(--ink); color: var(--sun); }
.ep.is-playing .ep-play .pi { padding-left: 0; }
@media (prefers-color-scheme: dark) { .ep-play { border-color: var(--sun); color: var(--sun); } .ep.is-playing .ep-play { background: var(--sun); color: #1A2032; } }
.ep-dl { font-size: 12px; }
@media (max-width: 520px) { .ep { grid-template-columns: 50px 1fr 46px; gap: 10px; padding: 12px; } .ep-md { font-size: 19px; } }
.eps-empty { padding: 22px; color: var(--muted); text-align: center; }

/* ---------- 模擬運用マッチ ---------- */
.match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  border-radius: 20px; padding: 18px 20px; position: relative; overflow: hidden; isolation: isolate;
}
.match::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, #23458a 0 50%, #b0611a 50% 100%); }
.match::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(255,255,255,.05) 22px 23px); }
.match:hover { box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.pl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl.r { flex-direction: row-reverse; text-align: right; }
.pl img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.85); flex: none; }
.pl-name { display: block; font-weight: 900; font-size: 18px; }
.pl-tot { display: block; font-family: var(--num); font-size: clamp(22px, 4.6vw, 32px); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.pl-pct { display: block; font-family: var(--num); font-size: 15px; opacity: .9; }
.vs { font-family: var(--num); font-weight: 800; font-size: 34px; color: #F2C13D; text-shadow: 0 2px 0 rgba(0,0,0,.3); transform: rotate(-8deg); }
.match-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }
.match-foot b { color: #F2C13D; }
@media (max-width: 560px) {
  .match { grid-template-columns: 1fr 1fr; padding: 14px; row-gap: 8px; }
  .match .vs { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 26px; }
  .pl, .pl.r { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pl.r { align-items: flex-end; }
  .pl img { width: 48px; height: 48px; }
  .pl-name { font-size: 14px; }
  .pl-tot { font-size: 22px; }
}

/* ---------- 購読 ---------- */
.subs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
@media (max-width: 760px) { .subs { grid-template-columns: 1fr; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.box h3 { margin: 0 0 4px; font-size: 16px; }
.box p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--chip); color: var(--text); border-radius: 10px; padding: 8px 10px; font-family: var(--num); font-size: 15px; }
.copy button { border: 0; border-radius: 10px; background: var(--ink); color: #fff; padding: 0 16px; font-weight: 700; cursor: pointer; min-height: 42px; }
@media (prefers-color-scheme: dark) { .copy button { background: var(--sun); color: #1A2032; } }
.box-mag { background: linear-gradient(135deg, var(--card) 0, var(--card) 60%, rgba(242,179,61,.18) 100%); }
.note { margin-top: 26px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.note p { margin: 0 0 4px; }

/* 再生位置のバー（最新回カードと下のプレーヤーで共通） */
.track { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sun) var(--p, 0%), rgba(140,150,190,.35) var(--p, 0%)); cursor: pointer; margin: 0; }
.track::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.track::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; transition: .2s; background: #1A2032; color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; z-index: 70; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- 模擬運用マッチ（4人制・議席開票、2026-10-09） ---------- */
.match.m4 { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.match.m4::before { background: radial-gradient(120% 120% at 50% 100%, #1f2840 0, #141a2b 70%); }
.m4-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.m4-bar span { display: block; height: 100%; }
.m4-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.m4-list li { display: grid; grid-template-columns: auto 40px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 8px; align-items: center; background: rgba(255,255,255,.06); border-top: 4px solid var(--pc); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.m4-list .m4-load { display: block; border: 0; }
.m4-pos { font-family: var(--num); font-weight: 800; font-size: 18px; color: #F2C13D; grid-row: span 2; }
.m4-list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pc); grid-row: span 2; }
.m4-nm { font-weight: 900; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m4-nm small { font-size: 11px; opacity: .75; margin-left: 4px; font-weight: 700; }
.m4-v { font-family: var(--num); font-size: 13px; line-height: 1.15; }
.m4-v b { font-size: 22px; font-weight: 800; margin-right: 2px; }
.m4-v small { display: block; font-size: 12px; opacity: .85; }
@media (max-width: 760px) { .m4-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
