/* 咲耶のお茶の間ニュース 公式サイト v2「紙とインクの報道」
   正典: site/DESIGN.md v2。紙#F8F7F4×墨#1C1D21×紅#C7362A・明朝display×ゴシックbody */

:root {
  --paper: #F8F7F4;
  --surface: #FFFFFF;
  --ink: #1C1D21;
  --sub: #63656C;
  --hairline: #E7E5DF;
  --band: #131418;
  --band-text: #F4F2ED;
  --band-sub: #A2A5AD;
  --band-hairline: rgba(244, 242, 237, 0.14);
  --red: #C7362A;
  --c-news: #C7362A;
  --c-dayori: #33805A;
  --c-weather: #33689E;
  --c-market: #8A6D26;
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --shadow-card: 0 12px 32px rgba(19, 20, 24, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(28, 29, 33, 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}
a:hover { color: var(--red); text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.date, .today-meta, .archive-meta, .hero-card-meta {
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---- マストヘッド(紙・最小) ---- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.masthead-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.08em;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); display: inline-block;
}
.masthead-nav { display: flex; align-items: center; gap: 8px; }
.masthead-yt {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; color: var(--sub);
  border: 1px solid var(--hairline); border-radius: 4px; padding: 6px 14px;
}
.masthead-yt:hover { color: var(--red); border-color: var(--red); }

/* ---- ヒーロー(放送波canvas+実サムネカード) ---- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
#wave-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--sub);
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--red);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.16; letter-spacing: 0.01em;
  margin-top: 18px;
}
.h1-a { display: block; font-size: 0.44em; letter-spacing: 0.18em; margin-bottom: 0.35em; }
.h1-b { display: block; }
.hero .sub {
  color: var(--sub); margin-top: 22px; max-width: 32em; line-height: 1.9;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; font-size: 15px; font-weight: 700;
  border-radius: 4px; text-decoration: none;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 120ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.btn-primary:hover { background: #2E2F35; color: var(--paper); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: rgba(28, 29, 33, 0.05); color: var(--ink); }
/* App Store公式バッジ(SVG無改変)。枠・色・角丸を足さない */
.store-badge { display: inline-flex; align-items: center; }
.store-badge img { display: block; height: 44px; width: auto; }
.watch-list .store-badge { display: block; margin-top: 10px; }
.watch-list .store-badge img { height: 40px; }

.hero-card {
  display: block; background: var(--surface);
  border-radius: 10px; padding: 16px;
  box-shadow: var(--shadow-card), 0 1px 2px rgba(19, 20, 24, 0.08);
  text-decoration: none; color: var(--ink);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.hero-card:hover { color: var(--ink); transform: translateY(-3px); }
.onair {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.18em;
  color: var(--red);
}
.onair-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: onair-pulse 2.4s ease-out infinite;
}
@keyframes onair-pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 54, 42, 0.35); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(199, 54, 42, 0); }
}
.hero-thumb {
  display: block; margin-top: 12px;
  aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: var(--band);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.2em; color: var(--band-sub);
}
.hero-card-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.6;
}
.hero-card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; font-size: 13px; color: var(--sub);
}

/* ---- ティッカー帯(濃色・CSSマーキー) ---- */
.ticker {
  display: flex; align-items: center; gap: 0;
  background: var(--band); color: var(--band-text);
  height: 46px; overflow: hidden;
}
.tk-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 100%; padding: 0 18px 0 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--band-sub);
  border-right: 1px solid var(--band-hairline);
}
.tk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.tk-viewport { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.tk-track {
  display: inline-flex; white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk-half { display: inline-flex; }
.tk-item {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding-right: 48px; font-size: 14px; font-weight: 500;
  position: relative;
}
.tk-item::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; transform: rotate(45deg);
  background: var(--band-hairline);
}
.tk-tag { color: var(--band-sub); font-size: 12px; }
.tk-date { color: var(--band-sub); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ---- セクション共通(番号+明朝+hairline) ---- */
main .sec { padding: 96px 0 0; }
main .sec:last-of-type { padding-bottom: 96px; }
.sec-head {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; letter-spacing: 0.03em; line-height: 1.4;
  padding-bottom: 14px; margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.sec-num {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.1em; color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* ---- きょうの放送 ---- */
.today-meta, .archive-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--sub);
}
.edition-tag {
  font-size: 12px; font-weight: 500; color: var(--sub);
  border: 1px solid var(--hairline); border-radius: 4px;
  padding: 0 8px; line-height: 1.7;
}
.today-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.6; margin: 10px 0 20px;
}
.player {
  aspect-ratio: 16 / 9; background: var(--band);
  border-radius: 12px; overflow: hidden;
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.fallback { background: var(--surface); padding: 24px; border: 1px solid var(--hairline); border-radius: 10px; }

.topics { list-style: none; margin-top: 20px; }
.topics li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
}
.topic-copy { display: flex; flex-direction: column; gap: 3px; }
.topic-source { color: var(--sub); font-size: 12px; }
.tag {
  flex: none; font-size: 12px; font-weight: 700; color: var(--sub);
  border: 1px solid currentColor; border-radius: 4px;
  padding: 0 8px; line-height: 1.7; background: transparent;
}
.tag-news { color: var(--c-news); }
.tag-dayori { color: var(--c-dayori); }
.tag-weather { color: var(--c-weather); }
.tag-market { color: var(--c-market); }

/* ---- Alexa帯(濃色・大書きフレーズ) ---- */
.band {
  margin-top: 96px; padding: 96px 0;
  background: var(--band); color: var(--band-text);
}
.band .sec-head { color: var(--band-text); border-bottom-color: var(--band-hairline); }
.alexa-kicker {
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--band-sub);
}
.alexa-phrase {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.5;
  margin-top: 10px;
}
.alexa-phrase .seg { display: inline-block; }
.alexa-sub { color: var(--band-sub); margin-top: 14px; font-size: 15px; }
.alexa-intro { margin-top: 40px; }
.alexa-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.alexa-card {
  background: rgba(244, 242, 237, 0.045);
  border: 1px solid var(--band-hairline);
  border-radius: 10px; padding: 28px;
}
.alexa-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.alexa-card p { font-size: 15px; color: var(--band-text); }
.alexa-card .tag-live { color: var(--band-text); border-color: var(--band-hairline); }
.alexa-card .tag-live::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--red); margin-right: 6px;
  vertical-align: 1px;
}
.alexa-card .tag-soon { color: var(--band-sub); border-color: var(--band-hairline); }
.alexa-howto-note { margin-top: 12px; color: var(--band-sub) !important; font-size: 14px; }
.alexa-howto-note a { color: var(--band-text); text-decoration-color: var(--band-sub); }
.alexa-steps { margin-top: 20px; border: 1px solid var(--band-hairline); border-radius: 10px; padding: 28px; }
.alexa-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.alexa-steps ol { list-style: none; counter-reset: step; }
.alexa-steps li { counter-increment: step; padding: 8px 0 8px 38px; position: relative; }
.alexa-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 8px; line-height: 30px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--red); font-variant-numeric: tabular-nums;
}
.band a { color: var(--band-text); text-decoration-color: var(--band-sub); }
.band a:hover { color: var(--band-text); text-decoration-color: var(--red); }

/* ---- アーカイブ ---- */
.archive-list { list-style: none; }
.archive-item { border-bottom: 1px solid var(--hairline); }
.archive-item a {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 18px 0; text-decoration: none;
}
.archive-item a:hover .archive-title { color: var(--red); }
.archive-item img {
  flex: none; width: 168px; height: 94.5px; object-fit: cover;
  border-radius: 8px; background: var(--hairline);
  box-shadow: 0 4px 14px rgba(19, 20, 24, 0.08);
}
.archive-title { font-weight: 700; line-height: 1.6; margin-top: 6px; transition: color 160ms ease-out; }

/* 7件目以降の折り畳み(native details・罫線1行の静かな導線) */
.archive-more summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 0; border-bottom: 1px solid var(--hairline);
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--sub);
  transition: color 160ms ease-out;
}
.archive-more summary::-webkit-details-marker { display: none; }
.archive-more summary:hover { color: var(--red); }
.archive-more summary::after {
  content: ''; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease-out;
}
.archive-more[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.archive-more .more-open { display: none; }
.archive-more[open] .more-closed { display: none; }
.archive-more[open] .more-open { display: inline; }

/* ---- 番組について・キャスター・視聴方法 ---- */
.policy { list-style: none; margin-top: 16px; }
.policy li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.caster-grid {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--surface); border-radius: 10px; padding: 32px;
  border: 1px solid var(--hairline);
}
.avatar {
  flex: none; display: block; width: 128px; height: 128px;
  border-radius: 50%; overflow: hidden;
  background: var(--paper); border: 1px solid var(--hairline);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; display: block; }
.caster-grid h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.watch-list { list-style: none; }
.watch-list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.contact-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 28px;
}
.contact-card h3 {
  font-family: var(--font-display); font-size: 19px; margin-bottom: 8px;
}
.contact-card dl { margin-top: 20px; }
.contact-card dl > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 12px 0; border-top: 1px solid var(--hairline);
}
.contact-card dt { color: var(--sub); font-size: 13px; font-weight: 700; }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* ---- フッター ---- */
.site-footer {
  margin-top: 96px; background: var(--band); color: var(--band-sub);
  padding: 40px 0; font-size: 14px;
}
.site-footer a { color: var(--band-text); text-decoration-color: var(--band-sub); }
.site-footer a:hover { color: var(--band-text); text-decoration-color: var(--red); }
.copyright { margin-top: 10px; letter-spacing: 0.04em; }

/* ---- スクロールreveal(JS有効時のみ) ---- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .reveal.is-on { opacity: 1; transform: none; }

/* ---- reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tk-track { animation: none; }
  .onair-dot { animation: none; }
  .btn:active { transform: none; }
  .hero-card:hover { transform: none; }
}

/* ---- レスポンシブ ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .hero-side { max-width: 480px; }
  .alexa-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  main .sec { padding-top: 64px; }
  main .sec:last-of-type { padding-bottom: 64px; }
  .band { margin-top: 64px; padding: 64px 0; }
  .site-footer { margin-top: 64px; }
  .sec-head { font-size: 22px; gap: 12px; margin-bottom: 24px; }
  .tk-label { padding: 0 14px 0 20px; }
  .archive-item img { width: 120px; height: 67.5px; }
  .caster-grid { flex-direction: column; align-items: center; padding: 24px; gap: 20px; }
  .caster-grid > div { text-align: left; }
  .avatar { width: 112px; height: 112px; }
  .contact-card { padding: 22px; }
  .contact-card dl > div { grid-template-columns: 1fr; gap: 3px; }
}
