/* 全ページ共通のスタイル(ヘッダー・フッター・radiko ボタンの共通部分は frame.css)。
   方針(2026-11-10 見直し): 「質素すぎる」との声を受け、カードに小さな角丸と薄い影、
   下層ページの見出しに色の帯を付けた。グラデーション・動き・飾りの多用はしない。
   色はロゴの青(リンク・強調)と赤(放送中・締切)が基本。 */
:root {
  --brand: #1c4e98;   /* ロゴの青 */
  --red: #c2321d;     /* 放送中(ロゴの赤を、文字で読めるよう少し濃く) */
  --fg: #1d232a;
  --muted: #6e645f;   /* ロゴのグレー */
  --line: #d9dde1;
  --bg-soft: #f4f6f8;
  --brand-soft: #eaf0f8;  /* 青の薄い面(見出しの帯など) */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 4px 14px rgba(16, 32, 64, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.75;
  color: var(--fg);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.35; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .card-meta { color: var(--muted); font-size: .9rem; }

/* ボタン */
.btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--brand); border-radius: 999px; color: var(--brand); font-weight: 700; text-decoration: none; line-height: 1.4; }
.btn:hover { background: var(--brand-soft); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #163f7c; border-color: #163f7c; }
.radiko-l img { height: 52px; }

/* トップ: 冒頭 */
.hero-inner { padding: 0; }  /* メインビジュアルを外したので余白なし(見出しは読み上げ用だけ) */
.hero h1 { font-size: 1.75rem; margin: 0 0 8px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }

/* セクション */
.section { padding-top: 32px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.section-head h2 { margin: 0 0 -2px; padding-bottom: 6px; border-bottom: 2px solid var(--brand); font-size: 1.3rem; }
.section-head a { font-size: .9rem; }

/* お知らせ */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: .9rem; }
.news-list li > a, .news-list li > span:last-child { flex-basis: 100%; }
@media (min-width: 640px) { .news-list li > a, .news-list li > span:last-child { flex-basis: auto; flex: 1; } }

.tag { font-size: .8rem; font-weight: 700; color: var(--muted); }

/* カード(枠で囲んだリンク) */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--fg); text-decoration: none; }
.card:hover { border-color: var(--brand); }
.card:hover strong, .card:hover { color: var(--brand); }
.card strong { font-size: 1.1rem; }

/* 下層ページ */
.page-head { background: var(--brand-soft); border-bottom: 3px solid var(--brand); }
.page-head .wrap { padding-top: 28px; padding-bottom: 24px; }
.page-title { font-size: 1.7rem; margin: 0; color: var(--brand); }
.page-lead { color: var(--fg); margin: 8px 0 0; max-width: 820px; font-size: .95rem; }
.page { padding-top: 32px; padding-bottom: 48px; }
.page .section:first-of-type { padding-top: 8px; }

/* 仮の内容の目印(TODO: 公開前に消す) */
.draft-note { margin: 0 0 24px; padding: 8px 12px; border-left: 4px solid var(--red); background: var(--bg-soft); font-size: .9rem; }

/* 番組・パーソナリティ(/programs/・/personalities/)用の指定は、ページを非表示にしたので削った
   (2026-11-02、commit 6bf3cab の site.css に .tabs / .program* / .person* / .avatar* がある)。
   src/site.ts の SHOW_PROGRAMS を true に戻すときは、あわせて書き直すこと。 */

/* パーソナリティ(/personalities/)。1人ずつのプロフィール */
.avatar { display: grid; place-items: center; flex: none; object-fit: cover; object-position: 50% 20%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.avatar-l { width: 180px; aspect-ratio: 3 / 4; height: auto; border-radius: var(--radius); font-size: 3rem; }
.person-list { display: grid; gap: 0; }
.person { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.person-name { margin: 0 0 8px; font-size: 1.4rem; }
.person-programs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.person-program { padding: 2px 10px; border: 1px solid var(--brand); color: var(--brand); font-size: .85rem; font-weight: 700; }
.person-facts { display: grid; gap: 4px; margin: 0 0 14px; }
.person-facts div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; }
.person-facts dt { color: var(--muted); font-size: .9rem; }
.person-facts dd { margin: 0; }
.person-message { margin: 0 0 12px; padding: 12px 16px; background: var(--bg-soft); }
.person-links { display: flex; gap: 8px; margin: 0; }
.person-links a { font-size: .85rem; font-weight: 700; }
@media (max-width: 640px) {
  .person { flex-direction: column; gap: 16px; }
  .avatar-l { width: 140px; }
  .person-facts div { grid-template-columns: 1fr; gap: 0; }
}

/* 表 */
.table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { border-bottom-color: var(--fg); font-size: .9rem; }
.contact-big { margin: 0 0 4px; font-size: 1.4rem; font-weight: 700; }

/* 長い文章 */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.prose ul { padding-left: 1.5em; }
.prose h3 { font-size: 1rem; margin: 24px 0 4px; }
.prose-box { margin: 8px 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.prose-sign { text-align: right; }

/* SNS の公式アイコン */
.sns-icon { display: block; width: auto; height: 32px; }
/* YouTube の公式PNGは周りに余白を含むので、見た目をそろえるため大きめに出す(余白は削らない) */
.sns-icon-youtube { height: 50px; margin: -9px 0; }

/* オンエアリスト・リンクまとめ・公式SNS(トップ。PC は横5つ、スマホは文字の2つ + SNS の3つの2段) */
.follow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.follow > .card { grid-column: span 3; }
.follow-sns > li { grid-column: span 2; }
@media (min-width: 760px) {
  .follow { grid-template-columns: repeat(5, 1fr); }
  .follow > .card, .follow-sns > li { grid-column: auto; }
}
.follow-sns { display: contents; margin: 0; padding: 0; list-style: none; }
.follow .card { align-items: center; justify-content: center; text-align: center; font-weight: 700; }
.follow-onair span { font-weight: 400; font-size: .85rem; color: var(--muted); }

/* パワープレイ */
.pp-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .pp-list { grid-template-columns: 1fr 1fr; } }
.pp { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.pp-jacket { border-radius: 6px; }
a.pp:hover .pp-title { color: var(--brand); }
.pp-jacket { flex: none; width: 120px; height: 120px; object-fit: cover; }
.pp-jacket-empty { display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); font-size: 2.5rem; }
.pp-body { min-width: 0; }
.pp-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; }
.pp-title { margin: 0; font-size: 1.2rem; }
.pp-artist { margin: 0 0 8px; color: var(--muted); font-weight: 700; }
.pp-comment { margin: 0; font-size: .95rem; }
@media (max-width: 420px) { .pp-jacket { width: 88px; height: 88px; } }

/* パワープレイの曲ページ */
.pp-detail { display: grid; gap: 24px; padding-top: 8px; margin-bottom: 48px; }
@media (min-width: 760px) { .pp-detail { grid-template-columns: 360px 1fr; align-items: start; gap: 40px; } }
.pp-detail .pp-jacket { width: 100%; height: auto; aspect-ratio: 1; max-width: 480px; }
.pp-detail .pp-title { font-size: 1.8rem; line-height: 1.3; }
.pp-detail .pp-artist { font-size: 1.15rem; margin-bottom: 16px; }
.pp-detail .pp-comment { font-size: 1rem; }
.pp-detail-note { color: var(--muted); font-size: .9rem; }

/* リクエスト(番組ごとのバナーとボタン) */
.req-list { display: grid; gap: 16px; }
@media (min-width: 560px) { .req-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .req-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .req-list { grid-template-columns: repeat(4, 1fr); } }
.req { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.req.is-onair { border-color: var(--red); }
.req-banner { aspect-ratio: 16 / 10; background: var(--bg-soft); }
.req-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.req-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.req-body > p:nth-last-child(2), .req-pending { margin-top: auto; }
/* 放送中の印。is-onair のときだけ出す(static/assets/onair.js) */
.req-onair { display: none; margin: 0; color: var(--red); font-size: .85rem; font-weight: 700; }
.req.is-onair .req-onair { display: block; }
.req-title { margin: 0; font-size: 1.1rem; }
.req-body .card-meta { margin: 0 0 12px; }
.req-body p { margin-bottom: 8px; }
.req-btn { display: block; text-align: center; padding-left: 6px; padding-right: 6px; font-size: .9rem; }
.req.is-onair .req-btn { background: var(--red); border-color: var(--red); }
.req-pending { margin: 0; padding: 8px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.req-addr { margin: 0; text-align: center; }
/* メールアプリが開かない人向け。押すと宛先をコピーする(static/assets/copy.js) */
/* 「送る」ボタンと同じ大きさにそろえる(色だけ控えめにする) */
.req-copy { display: block; width: 100%; padding: 9px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: .9rem; line-height: 1.4; text-align: center; cursor: pointer; }
.req-copy:hover { border-color: var(--muted); color: var(--fg); }
.req-copy[hidden] { display: none; } /* JS が動くまで出さない(上の display: block が hidden 属性に勝つため) */
.req-copy-fallback { display: block; margin-top: 4px; font-size: .85rem; user-select: all; word-break: break-all; }

/* トップの「エフエム佐賀へのお問い合わせ」。ボタン2つを横に並べる(狭い画面では縦) */
.info-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.info-actions .btn, .info-actions .req-copy { width: auto; min-width: 220px; text-align: center; }

/* トップの「最新のオンエア曲」(static/assets/nowplaying.js)。1行の帯。押すとオンエアリストを開く */
.nowplaying { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); background: #fff; color: var(--fg); text-decoration: none; }
.nowplaying[hidden] { display: none; }
.nowplaying:hover { border-color: var(--brand); border-left-color: var(--red); }
.np-label { flex: none; color: var(--red); font-size: .8rem; font-weight: 700; }
.np-title { font-size: 1.05rem; overflow-wrap: anywhere; }
.np-artist { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 520px) { .np-label { flex-basis: 100%; } }

/* トップからリクエストのページへ */
.req-cta strong { font-size: 1.2rem; }
.req-cta span { color: var(--muted); }

/* トップの告知画像(横長の1枚。文字入りなので幅いっぱいに出す) */
/* ブロック(data/pages/*.json。SPEC.md §3.4)。上に間をあけて縦に積む。見出しと画像の前は広くあける */
.blk { margin-top: 16px; }
.blk-heading { margin-top: 56px; }
.blk-image { margin-top: 32px; margin-bottom: 8px; }
.blk-divider { margin-top: 32px; }
.blk > :first-child { margin-top: 0; }
.blk > :last-child { margin-bottom: 0; }
.blk-heading .section-head { margin-bottom: 0; }
.blk-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.blk-list { margin: 0; padding-left: 1.4em; }
.blk-list li + li { margin-top: 6px; }
.table-info th { width: 1%; padding-right: 24px; white-space: nowrap; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
/* 下層ページの先頭のブロックは、ページの枠の余白だけにする(2つめはエディターの目印 data-block で包まれているとき) */
.page > .blk:first-child, .page > [data-block]:first-child > .blk { margin-top: 0; }
.page > .blk-heading:first-child, .page > [data-block]:first-child > .blk-heading { margin-top: 8px; }

/* スライドショー(data/slides.json。SPEC.md §3.6。2026-11-13)。告知画像を横一列に並べ、枠の幅ずつ横に送る(slides.js)。
   画像は幅いっぱい。縦横比の違う画像が混ざると、低いほうは上下に薄い地色が出る。下の線が何枚目かの印で、押すとその1枚を出す */
.blk-slides { margin-top: 32px; margin-bottom: 8px; }
.slides-view { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--bg-soft); }
.slides-view::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; display: grid; align-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img { display: block; width: 100%; height: auto; }
/* 何枚か並ぶときは、元の大きさより引き伸ばさず中央に置く(小さい画像を幅いっぱいにすると枠が高くなり、横長の画像の上下が大きくあく) */
.slides-view .slide { justify-items: center; }
.slides-view .slide img { width: auto; max-width: 100%; border-radius: 0; }
.slides-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.slides-dots[hidden] { display: none; }
.slides-dot { width: 32px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.slides-dot::before { content: ""; display: block; height: 4px; background: var(--line); }
.slides-dot[aria-current="true"]::before { background: var(--brand); }

/* トップのプレゼントへの入口(2026-11-09)。写真と文字を 1px の枠で囲む。スマホは写真が上、広い画面は写真が右 */
.present-banner { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.present-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 65%; }
.present-banner-text { display: grid; gap: 8px; justify-items: start; align-content: center; padding: 16px; }
.present-banner-text strong { font-size: 1.4rem; color: var(--brand); }
.present-banner-text span:not(.btn) { color: var(--muted); }
@media (min-width: 760px) {
  .present-banner { grid-template-columns: 1fr 1fr; }
  .present-banner img { order: 2; height: 100%; }
  .present-banner-text { padding: 24px; }
}

/* プレゼント(/present/)。カードを幅いっぱいに並べる(スマホは1列、タブレットは2列、広い画面は3列)。
   写真は上に中央寄せ、締切とボタンはカードの下端にそろえる */
.present-list { display: grid; gap: 24px; margin-bottom: 32px; }
@media (min-width: 640px) { .present-list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .present-list { grid-template-columns: repeat(3, 1fr); } }
.present { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.present-photo { display: grid; place-items: center; padding: 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.present-img { display: block; width: 100%; max-width: 420px; max-height: 220px; object-fit: contain; height: auto; }
.present-body { padding: 18px 18px 4px; }
.present-title { margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); font-size: 1.1rem; }
.present-body p { margin: 0 0 12px; font-size: .95rem; }
.present-foot { display: grid; gap: 8px; justify-items: center; margin-top: auto; padding: 8px 18px 18px; }
.present-foot p { margin: 0; text-align: center; }
.present-deadline { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; font-weight: 700; color: var(--red); }
.present-deadline span { padding: 1px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; }
.present-note { color: var(--muted); font-size: .9rem; }
.present-btn { display: block; width: 100%; max-width: 360px; text-align: center; }

/* お知らせ1件のページ(/news/<slug>/)とプレゼント1件のページ(/present/<slug>/)。2026-11-11 */
.news-article { max-width: 760px; }
.news-meta { display: flex; gap: 12px; align-items: baseline; margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.news-img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.back-link { margin-top: 32px; }
.present-title a { color: inherit; }
.present-single { max-width: 640px; margin-bottom: 24px; }
.present-single .present-img { max-height: 420px; }
.present-single .present-body { padding-top: 22px; }
.present-single .present-body p { font-size: 1rem; }
