@charset "UTF-8";
/* ==========================================================================
   水卜麻美のしごとじゃないラジオ 公式サイト
   数値の正はデザインカンプ（PC 1440px / SP 390px）
   ベースは PC。SP は max-width で上書きする。
   ブレークポイント
     1023px 以下 … メインビジュアルだけ SP 型へ（画像内タイトルロゴとの重なり回避）
      767px 以下 … 全体を SP レイアウトへ
   ========================================================================== */

/* --------------------------------------------------------------------------
   デザイントークン
   -------------------------------------------------------------------------- */
:root {
  /* 色 */
  --olive:        #46503D;  /* PODCASTラベル・枠線ボタン・タグなど */
  --bar:          #657058;  /* ヘッダー・フッター・追従メニューボタンの帯 */
  --sage-mv:      #B4B59D;  /* おたより欄の背景＝MVの壁色 */
  --sage-base:    #B5BBA8;  /* MVの下地／SPのMVテキストブロック背景 */
  --sage-light:   #E3E6DA;  /* コメント欄背景・チップ */
  --bg:           #F5F4EE;  /* ページ背景 */
  --paper:        #FFFDF7;  /* 紙（カード・フォーム・吹き出し） */
  --rule:         #E6E2D3;  /* 紙の罫線 */
  --butter:       #F2DC8B;  /* タグ・マーカー・CTA・テープ */
  --accent:       #7A4320;  /* リンク・小見出しラベル */
  --accent-btn:   #9A5428;  /* 送信ボタン */
  --text:         #2B2D26;
  --text-soft:    #45473E;
  --text-soft2:   #3A3C33;
  --text-sub:     #5F6356;
  --line:         #D6D9CC;
  --dash:         #C9CDBE;
  --input-border: #8D9480;
  --footer-line:  #66705B;
  --footer-copy:  #D9DDCF;

  /* 書体 */
  --ff-base:  "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-round: "Zen Maru Gothic", var(--ff-base);
  --ff-hand:  "Klee One", serif;

  /* レイアウト */
  --maxw:   1280px;
  --gutter: clamp(20px, 4vw, 40px);
  /* 紙の罫線（PC 40px間隔／SP 36px間隔） */
  --paper-rules: repeating-linear-gradient(var(--paper) 0 39px, var(--rule) 39px 40px);

  /* 配信先バッジ 3 枚の「幅 ÷ 高さ」の合計。
     同じ高さで横一列に並べたときの必要幅 = この値 × 高さ。
     Apple 3.1528 ＋ Spotify 4.1111 ＋ Amazon 4.1111 = 11.375
     ※バッジを差し替えたら、新しい画像の 幅÷高さ を足し直してこの値を更新する。 */
  --bnr-sum: 11.375;
}

/* --------------------------------------------------------------------------
   ベース
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-base);
  -webkit-font-smoothing: antialiased;
  /* クライアント指示：文章を単語・文節の途中で改行させない */
  word-break: auto-phrase;
  line-break: strict;
}

/* display を持つ要素にも hidden 属性を効かせる（.mv__date は display: flex のため） */
[hidden] { display: none !important; }

img, picture, svg { display: block; }
/* HTML の width/height 属性は presentational hint として height を固定してしまい、
   aspect-ratio が効かなくなる。height: auto で打ち消す（属性自体はレイアウトずれ防止に必要）。 */
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--text); }

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.header :focus-visible,
.menu :focus-visible,
.footer :focus-visible { outline-color: var(--butter); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--paper); color: var(--text);
  font-size: 14px; font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* プレビュー表示の帯（?preview= 指定時のみ JS が挿入）。
   本番と見間違えないよう、サイトのパレットに無い色を使う。 */
.preview-banner {
  background: #7A1F1F; color: #FFFFFF;
  padding: 10px var(--gutter);
  font-family: var(--ff-base);
  font-size: 13px; font-weight: 700; line-height: 1.6;
  text-align: center; letter-spacing: .02em;
}

/* 旧 URL のプレビューを開いた人に出す案内（build_previews.py が差し込む）。
   帯の下に続けて出るので、帯と同系色にして地続きに見せる。 */
.preview-notice {
  margin: 0;
  background: #F0E4E4; color: #5A1818;
  padding: 12px var(--gutter);
  font-family: var(--ff-base);
  font-size: 13px; line-height: 1.9;
  text-align: center;
}
.preview-notice a { color: inherit; text-decoration: underline; }

/* PC / SP の出し分け（原稿が PC と SP で異なる箇所に使う）
   表示切替はレイアウト用のどの指定よりも優先されないと原稿が二重に出るため !important を付ける。 */
.only-sp { display: none !important; }

/* 共通パーツ */
/* 語の途中で折り返させたくないときに使う（受け渡し資料の改行ルール）。
   ★<br class="only-sp"> はスマホ幅でしか効かないので、その間の幅はこちらで守る。 */
.nowrap { white-space: nowrap; }
.hand { font-family: var(--ff-hand); font-weight: 600; }
.label { font-size: 18px; color: var(--accent); }

.chip {
  display: inline-block; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  padding: 7px 16px;
}
.chip--olive { background: var(--olive); color: #FFFFFF; }

.marker { background: linear-gradient(transparent 60%, var(--butter) 60%); }

.tape { position: absolute; z-index: 1; }
.tape--butter { top: -12px; left: 36px; width: 110px; height: 26px; background: rgba(242, 220, 139, .9); transform: rotate(-4deg); }
.tape--sage   { top: -13px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: rgba(181, 187, 168, .85); transform: rotate(3deg); }

.paper {
  background-color: var(--paper);
  background-image: var(--paper-rules);
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--olive); border-radius: 999px;
  color: var(--olive); font-size: 15px; font-weight: 700;
  padding: 17px 42px; transition: background-color .18s ease, color .18s ease;
}
.btn-outline:hover { background: var(--olive); color: #FFFFFF; }

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.header { background: var(--bar); }

.header__inner {
  /* リファレンスは content-box。max-width がパディングの内側に効くことで、
     ロゴと CTA の端が他セクションの内容（左 80px / 右 1360px＠1440）と揃う。 */
  box-sizing: content-box;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}

.header__logo { line-height: 0; }
/* ロゴ画像は 40〜54px だが、リンクとして押せる範囲は 44px 確保する */
.header__logo a { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo img { height: 54px; width: auto; }

.header__nav {
  margin-left: auto;
  display: flex; flex-wrap: wrap; gap: 4px;
  font-size: 14px; font-weight: 700;
}
.header__nav a { padding: 12px 15px; color: #FFFFFF; }
.header__nav a:hover { color: var(--butter); }

/* ヘッダー右のおたよりボタン（2026-10-26 クライアント指示で復活）
   ★2026-10-27 クライアント指示：「メッセージ」の文字だと水卜さん本人からの
     メッセージに見えるため、封筒のマークだけにし、黄色の囲みも外した。
     帯（--bar #657058）に白で 5.23:1。ナビの文字と同じ白にそろえている。
   ★文字が無いので、押せる大きさ（44px 以上）を width / height で確保する。 */
.header__cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  color: #FFFFFF; border-radius: 50%;
  transition: background-color .18s ease;
}
.header__cta:hover { color: #FFFFFF; background: rgba(255, 255, 255, .16); }
.header__cta-icon { flex: none; }

/* ハンバーガーボタン（SP ヘッダー内／PC スクロール時の追従ボタン 共通） */
.menu-btn {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sage-base); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background-color .18s ease;
}
.menu-btn:hover { background: rgba(255, 255, 255, .12); }
.menu-btn__icon { position: relative; width: 19px; height: 2px; background: #FFFFFF; border-radius: 1px; }
.menu-btn__icon::before,
.menu-btn__icon::after {
  content: ""; position: absolute; left: 0;
  width: 19px; height: 2px; background: #FFFFFF; border-radius: 1px;
}
.menu-btn__icon::before { top: -6px; }
.menu-btn__icon::after  { top: 6px; }

.header__menu-btn { display: none; margin-left: auto; }

/* PC でスクロールしたときだけ右上に出る追従ボタン */
.menu-fab {
  position: fixed; top: 18px; right: 18px; z-index: 60;
  background: var(--bar);
  box-shadow: 0 6px 18px rgba(43, 45, 38, .22);
}
.menu-fab[hidden] { display: none; }

/* --------------------------------------------------------------------------
   メニュー（全画面オーバーレイ・デザイン未確定のため仮実装）
   -------------------------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(70, 80, 61, .97);
  opacity: 0; visibility: hidden;
  /* 開くときは visibility を即座に切り替える（遅れると focus() が効かない）。
     閉じるときはフェードが終わってから隠す。 */
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }

.menu__panel {
  width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  text-align: center;
}
.menu__close {
  align-self: flex-end; margin-bottom: 10px;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sage-base); border-radius: 50%;
  background: transparent; color: #FFFFFF; cursor: pointer;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  padding: 18px 8px; color: #FFFFFF;
  font-family: var(--ff-round); font-size: 19px; font-weight: 700;
  border-bottom: 1px solid var(--footer-line);
}
.menu__nav a:hover { color: var(--butter); }
.menu__cta {
  margin-top: 22px; padding: 18px 24px;
  background: var(--butter); color: var(--text); border-radius: 999px;
  font-family: var(--ff-round); font-size: 16px; font-weight: 700;
}
.menu__cta:hover { color: var(--text); filter: brightness(1.06); }

/* --------------------------------------------------------------------------
   メインビジュアル（#top）
   -------------------------------------------------------------------------- */
.mv { position: relative; overflow: hidden; background: var(--sage-base); }

.mv__picture { position: absolute; inset: 0; }
.mv__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: right bottom;
}

.mv__body {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  /* mv_pc.jpg は 4319×1710（約 2.526:1）。高さ 760px のままだと表示幅が 1920px を
     超えた時点で object-fit: cover が画像の上を切り落とし、2081px を超えると
     画像内のタイトルロゴが欠ける（ヘッダーに隠れたように見える）。
     画像と同じ比率まで高さを伸ばし、縦方向のトリミングを起こさせない。
     1920px 以下では従来どおり 760px。 */
  min-height: max(760px, calc(100vw * 1710 / 4319));
  padding: 72px var(--gutter) 120px;
  display: flex; align-items: center;
}
/* バナーの高さを「テキストブロックの実幅」から決めるためのコンテナ
   （最新話の .latest__content と同じ考え方）。幅は min(560px,100%) で確定しているので
   インラインサイズのコンテインメントを掛けても自身の幅は変わらない。 */
.mv__text { width: min(560px, 100%); container-type: inline-size;
            display: flex; flex-direction: column; gap: 22px; }

.mv__label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mv__label .hand { font-size: 17px; }

.mv__date { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 20px; }
.mv__day {
  font-family: var(--ff-round); font-weight: 900;
  font-size: clamp(88px, 9vw, 128px); line-height: .9; letter-spacing: -.02em;
}
.mv__dayside { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.mv__time { font-family: var(--ff-round); font-weight: 900; font-size: 26px; letter-spacing: .06em; }
.mv__start {
  background: var(--butter); padding: 3px 12px;
  font-family: var(--ff-round); font-weight: 700; font-size: 18px;
  transform: rotate(-2deg);
}

.mv__catch {
  font-family: var(--ff-round); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.6; text-wrap: pretty;
}
.mv__lead { max-width: 30em; font-size: 15px; line-height: 2; font-weight: 500; }

/* 配信先バナー */
.listen { display: flex; flex-direction: column; gap: 10px; }
.listen__banners { display: flex; gap: 8px; }
.listen__banners a { transition: opacity .18s ease; }
.listen__banners a:hover { opacity: .82; }
.listen__banners img { height: 40px; width: auto; }
.listen--mv { margin-top: 4px; }

/* --------------------------------------------------------------------------
   番組紹介（#about）
   -------------------------------------------------------------------------- */
/* 下の余白は、コメント欄を外したことで「最新話」の上余白と直接足し算になる。
   そのぶん控えめにする（2026-10-26 クライアント指示） */
.about { padding: clamp(72px, 7vw, 120px) var(--gutter) clamp(44px, 4vw, 64px); }
.about__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 80px); align-items: center;
}
.about__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about__paras { display: flex; flex-direction: column; gap: 22px; }
.about__heading {
  font-family: var(--ff-round); font-weight: 900;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.55; text-wrap: pretty;
}
.about__p { font-size: 15px; line-height: 2.1; color: var(--text-soft); }

.about__figure { flex: 1 1 420px; min-width: 0; position: relative; }
.about__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.about__caption { margin-top: 12px; font-size: 15px; color: var(--text-sub); text-align: right; }

/* --------------------------------------------------------------------------
   水卜麻美コメント（#comment）
   ★2026-10-26：クライアント指示により、このブロックは HTML から外しています。
     「一旦削除」とのご指示なので、戻すときにそのまま使えるよう指定は残しています。
     外した HTML は removed/comment_section.html にあります。
   -------------------------------------------------------------------------- */
.comment { background: var(--sage-light); padding: clamp(72px, 7vw, 116px) var(--gutter); }
.comment__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px); align-items: center;
}

.polaroid {
  /* リファレンスは content-box。写真の表示幅がそのまま 340px になる（白フチは外側） */
  box-sizing: content-box;
  flex: 1 1 340px; min-width: 0; max-width: 420px;
  position: relative; transform: rotate(-2deg);
  background: #FFFFFF; padding: 14px 14px 20px;
  box-shadow: 0 12px 28px rgba(43, 45, 38, .14);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.polaroid__caption { margin-top: 12px; font-size: 16px; text-align: center; }

.comment__card {
  flex: 999 1 480px; min-width: 0;
  border-radius: 22px; padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 2px 0 rgba(43, 45, 38, .08);
}
.comment__heading {
  font-family: var(--ff-round); font-weight: 900;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.6; text-wrap: pretty;
}
.comment__body {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 15px; line-height: 2.25; color: var(--text-soft2);
}
.comment__sign { align-self: flex-end; font-size: 20px; }

/* --------------------------------------------------------------------------
   最新話（#latest）：中身は js/main.js が data/episodes.json から描画
   -------------------------------------------------------------------------- */
.latest { padding: clamp(44px, 4vw, 64px) var(--gutter) clamp(48px, 5vw, 72px); }
.latest__card {
  max-width: var(--maxw); margin: 0 auto;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(28px, 3.5vw, 52px);
  display: flex; flex-direction: column; gap: 30px;
}
.latest__fallback { font-size: 14px; line-height: 2; color: var(--text-sub); }

.latest__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.latest__heading { font-family: var(--ff-round); font-weight: 900; font-size: clamp(25px, 2.8vw, 34px); }
.latest__chip { background: var(--butter); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; }
.latest__countdown { margin-left: auto; font-family: var(--ff-hand); font-weight: 600; font-size: 16px; color: var(--text-sub); }

.latest__row { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); align-items: center; }
.latest__row > picture { flex: none; }
/* アートワークは角丸にしない（画像自体の白いギザギザ枠を活かすため） */
.latest__artwork { flex: none; width: 240px; height: 240px; object-fit: cover; }
.latest__content { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.latest__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 500; color: var(--text-sub); }
.latest__title { font-family: var(--ff-round); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.55; text-wrap: pretty; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  display: inline-block; background: var(--sage-light); color: var(--olive);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700;
}
.tags a:hover { background: var(--line); color: var(--olive); }

.listen--latest { margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--dash); }
.listen--latest .listen__banners { flex-wrap: nowrap; gap: 12px; }
.listen--latest .listen__banners img { height: 64px; }

/* 768px 以上ではアートワークと横並びになるため列が狭く、48px 固定だと 3 枚が入らず折り返す。
   列の実幅（100cqw）から高さを出して自動で縮める。
   ※コンテナ指定をこの幅に限定しているのは、767px 以下では .latest__row が縦積みになり、
     .latest__content が「列方向 flex の子」になるため。そこに container-type を付けると
     flex-basis(380px) と相互作用して高さが異常に膨らむ（実測 4209px）。 */
@media (min-width: 768px) {
  .latest__content { container-type: inline-size; }
  .listen--latest .listen__banners img { height: min(64px, calc((100cqw - 24px) / var(--bnr-sum))); }
}

/* --------------------------------------------------------------------------
   バックナンバー（#archive）：中身は js/main.js が描画
   -------------------------------------------------------------------------- */
.archive { padding: 0 var(--gutter) clamp(72px, 7vw, 112px); }
.archive__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.archive__head { display: flex; flex-direction: column; gap: 12px; }
.archive__heading { font-family: var(--ff-round); font-weight: 900; font-size: clamp(26px, 3vw, 38px); }

.archive__grid {
  display: grid;
  /* auto-fit だと件数が少ないときにカードが横いっぱいへ伸びてサムネが巨大になる。
     auto-fill は空の列を残すので、1 件でも列幅が保たれる。 */
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.ep-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  min-width: 0;   /* grid の既定（min-width:auto）だと中身の最小幅で列からはみ出す */
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* 正方形のサムネイル */
.ep-card__thumb { display: block; border-radius: 14px; overflow: hidden; background: var(--sage-light); }
.ep-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ep-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 45, 38, .08); }
.ep-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--text-sub); }
.ep-card__no { background: var(--sage-light); color: var(--text); border-radius: 999px; padding: 5px 12px; }
.ep-card__no--latest { background: var(--butter); }
.ep-card__time { margin-left: auto; }
.ep-card__title { font-family: var(--ff-round); font-weight: 700; font-size: 18px; line-height: 1.65; }
.ep-card__tags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ep-card__tag { font-size: 13px; color: var(--accent); font-weight: 700; }
.ep-card__new {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 4px 9px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
/* --------------------------------------------------------------------------
   バックナンバー一覧の並び替え・ページ送り
   -------------------------------------------------------------------------- */
.archive-search { display: flex; flex-direction: column; gap: 14px; }
.archive-search__field { display: flex; flex-direction: column; gap: 6px; }
.archive-search__label { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.archive-search__input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--paper); border: 1px solid var(--input-border);
  border-radius: 14px; padding: 13px 16px;
}
.archive-search__input::placeholder { color: var(--text-sub); opacity: .75; }
.archive-search__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.archive-search__tagbox { display: flex; flex-direction: column; gap: 8px; }
.archive-search__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-tag {
  font-family: inherit; font-size: 13px; font-weight: 700;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--text-sub); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.archive-tag:hover { border-color: var(--olive); color: var(--text); }
.archive-tag[aria-pressed="true"] { background: var(--butter); color: var(--text); border-color: transparent; }
.archive-tag:disabled { opacity: .35; cursor: default; }
.archive-tag:disabled:hover { border-color: var(--line); color: var(--text-sub); }
.archive-tag__count { font-weight: 400; opacity: .8; }
.archive-empty { text-align: center; padding: 8px 0 4px; }
/* スマホはヘッダーが固定なので、送り先の上端をヘッダーのぶんだけ空ける */
.archive-tools, .archive__grid { scroll-margin-top: 84px; }
/* 目には見せず、スクリーンリーダーにだけ渡したい文字 */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* ② 0 件で行き止まりにならないよう、条件を一度に外せるようにする */
.archive-reset {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 13px; font-weight: 700;
  min-height: 44px; padding: 0 20px; margin: 4px auto 0;
  border: 1px solid var(--olive); border-radius: 999px;
  background: var(--paper); color: var(--text); cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.archive-reset:hover { background: var(--olive); color: #fff; }
.archive-reset__wrap { display: flex; justify-content: center; }

.archive-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding-bottom: 4px;
}
.archive-tools__count { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.archive-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.archive-sort__label { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.archive-sort__btn {
  font-family: inherit; font-size: 13px; font-weight: 700;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--text-sub); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.archive-sort__btn:hover { border-color: var(--olive); color: var(--text); }
.archive-sort__btn[aria-pressed="true"] {
  background: var(--olive); color: #fff; border-color: transparent;
}

.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin-top: 8px;
}
.pager__btn {
  font-family: inherit; font-size: 14px; font-weight: 700;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--text-sub); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pager__btn:hover:not(:disabled):not([aria-current]) { border-color: var(--olive); color: var(--text); }
.pager__btn[aria-current="page"] { background: var(--olive); color: #fff; border-color: transparent; }
.pager__btn:disabled { opacity: .35; cursor: default; }
.pager__gap { padding: 0 4px; color: var(--text-sub); font-weight: 700; }

/* カードにフォーカスを移したとき（ページ送り直後）に枠が出ないようにする */
.ep-card[tabindex="-1"]:focus { outline: none; }
.ep-card[tabindex="-1"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.archive__more { align-self: center; }

/* --------------------------------------------------------------------------
   おたより募集（#otayori）
   -------------------------------------------------------------------------- */
/* 背景は写真の背景色と同じ。写真の四角い枠が見えないようにする。
   WebP 版は背景を透過させてあるので、この色がそのまま写真の背景になる。 */
.otayori { background: var(--sage-mv); padding: clamp(72px, 7vw, 112px) var(--gutter) 0; }
.otayori__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px);
  align-items: flex-end;   /* 写真の下端をセクションの下端に付ける */
  justify-content: center;
}
.otayori__lead { flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* 写真は「アイコン」として小さく添える。主役はボタン（2026-10-26 クライアント指示）。
   ★以前はボタンを写真に重ねていたが、写真が大きすぎるとのご指摘で作りを変えた。 */
/* ★2026-10-27 クライアント指示：ボタンが挙げた手の指先の位置に来るようにする。
   指先は写真の右上の角にあるので、写真とボタンを上端でそろえてから、
   ボタンを自分の高さの半分だけ持ち上げる（＝ボタンの中心が指先の高さ）。
   transform で動かすので、写真の下端がセクションの下端に付く作りは変わらない。 */
.otayori__figure { margin: 0; display: flex; align-items: flex-start; }
.otayori__figure picture { flex: none; }
.otayori__photo { width: clamp(132px, 13vw, 188px); height: auto; }
/* 「メッセージはこちら」バナー（押すとフォームが開く） */
/* 写真の右に置く。★写真の手が、そのままボタンを指す向きになる */
.otayori__action { margin: 0; display: flex; align-items: center; transform: translateY(-50%); }
.btn-message {
  display: inline-flex; align-items: center; gap: 14px;
  /* ★2026-10-27 クライアント指示：茶色をやめ、ほかで使っている黄色（--butter）に。
     ★黄色に白文字だと 1.36:1 で読めないので、文字色も本文色に変えている（10.22:1）。 */
  background: var(--butter); color: var(--text);
  /* 写真に重なるので、縁が無いとスカートの濃い部分と明度が近くなって溶ける。
     紙の色で縁取って切り離す */
  border: 4px solid var(--paper); border-radius: 999px;
  padding: 24px 52px;
  font-family: var(--ff-round); font-weight: 700; font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: .02em; cursor: pointer;
  /* 絶対配置では「left:50% から右端まで」が使える幅の上限になり、半分の幅で折り返す。
     1 行に保つ */
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(43, 45, 38, .26);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-message:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43, 45, 38, .22); }

/* ★いちばん狭い画面（320px）では、写真とボタンが横に並びきらず 3px はみ出す。
   縮めると文字が読めなくなるので、ボタンを上・写真を下にして縦に積む。
   手は上を向いているので、ボタンを指す向きはそのまま保たれる。 */
@media (max-width: 359px) {
  .otayori__figure { flex-direction: column-reverse; align-items: center; gap: 6px; }
  .otayori__action { transform: none; }
}
.btn-message__icon { flex: none; }
.btn-message[hidden] { display: none; }

/* ─────────────────────────────────────────────
   ★案B：画面の右下に追従する「メッセージはこちら」
   <html data-msg="fab"> のときだけ有効になる。
   チャットの問い合わせボタンのような置き方。
   ───────────────────────────────────────────── */
[data-msg="fab"] .otayori__inner { display: none; }   /* おたより欄の写真とボタンは出さない */
[data-msg="fab"] .otayori { padding-bottom: clamp(40px, 4vw, 64px); }
/* ★追従ボタンがフッターの文字に重なるので、そのぶん下を空ける。
   ★「©日本テレビ」は中央揃えでフッターの最下部にあるため、
     ボタンの高さ＋画面下端からの距離より大きく取る必要がある。
   ★実測（2026-10-26）：PC 1440px で高さ 219px ＋ 下端から 24px ＝ 243px。
     SP 390px で高さ 174px ＋ 下端から 12px ＝ 186px。
     1440 / 1024 / 768 / 430 / 390 / 360 / 320 の 7 幅で、フッターの文字と重ならないことを確認。 */
[data-msg="fab"] .footer { padding-bottom: clamp(205px, 20vw, 250px); }

.msg-fab {
  position: fixed; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 24px);
  z-index: 70;
  /* ★バナーが上・写真が下。右端で揃えると、写真の左側で挙げている手が
     ちょうどバナーの真下に来る（写真はバナーより狭いため）。 */
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
  pointer-events: none;   /* 写真は押せなくてよい。ボタンだけ受け取る */
}
.msg-fab__photo {
  width: clamp(96px, 9vw, 124px); height: auto;
  margin: -2px 12px 0 0;  /* 挙げた手がバナーの真下に来るよう、少し左へ寄せる */
  filter: drop-shadow(0 6px 14px rgba(43, 45, 38, .18));
}
.msg-fab .btn-message {
  pointer-events: auto;
  padding: 14px 24px; font-size: clamp(15px, 1.2vw, 17px);
  border-width: 3px; gap: 8px;
  box-shadow: 0 8px 22px rgba(43, 45, 38, .3);
}
.msg-fab .btn-message__icon { width: 20px; height: 20px; }
.msg-fab[hidden] { display: none; }

/* 画面が狭いときは写真を小さく。文字は折り返さない */
@media (max-width: 767px) {
  .msg-fab__photo { width: 86px; margin-right: 8px; }
  .msg-fab .btn-message { padding: 12px 18px; font-size: 14px; }
}

/* おたよりフォームのモーダル */
.otayori-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0; border: none; background: transparent;
  overflow: visible;
}
.otayori-modal::backdrop { background: rgba(43, 45, 38, .55); }
.otayori-modal__panel { position: relative; max-height: calc(100vh - 48px); overflow: auto; border-radius: 26px; }
.otayori-modal__panel .form { margin-bottom: 0; flex: none; width: 100%; }
.otayori-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--sage-light); color: var(--text);
}
.otayori-modal__close:hover { background: var(--line); }

/* ボット対策の隠し欄。
   ★display:none ではなく、位置を画面外へ出して隠す。
     送信内容に含める必要があるため、要素としては生かしておく。 */
.form__trap {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* フォーム */
.form {
  flex: 999 1 460px; min-width: 0;
  margin-bottom: clamp(72px, 7vw, 112px);
  border-radius: 26px; padding: clamp(30px, 3.5vw, 52px);
  display: flex; flex-direction: column; gap: 22px;
}
.form__row { display: flex; flex-direction: column; gap: 9px; }
.form__label { font-size: 14px; font-weight: 700; }
.form__req,
.form__opt {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  vertical-align: 2px;
}
.form__req { background: var(--butter); color: var(--text); }
/* 任意は必須より目立たせない（枠線だけ）。
   ★2026-10-27 のクライアント指示で 3 項目とも必須になったため、いまは出番がない。
     任意の項目を足すときに使う（消すと .form__req と共有している指定も崩れる）。 */
.form__opt { border: 1px solid var(--input-border); color: var(--text-sub); }
.form__input {
  border: 1px solid var(--input-border); border-radius: 12px;
  background: #FFFFFF; color: var(--text);
  font-family: inherit; font-size: 16px; padding: 15px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
/* 枠線の色替え＋リング。18% では薄すぎたので濃くした。 */
.form__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122, 67, 32, .45); }
.form__textarea { line-height: 1.9; resize: vertical; }
.form__input[aria-invalid="true"] { border-color: var(--accent-btn); }
.form__error { font-size: 12px; font-weight: 700; color: var(--accent-btn); }

/* ★2026-10-27 クライアント指示：個人情報の取り扱いをフォームの一番上に置く。
   入力欄より先に読むものなので、紙の中で一段落とした囲みにしている。 */
.form__privacy {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--bg);
  font-size: 12px; line-height: 1.9; color: var(--text-soft);
}
.form__privacy-title { font-weight: 700; color: var(--text); }
.form__privacy a { color: var(--accent); text-decoration: underline; }

.form__status {
  padding: 14px 16px; border-radius: 12px;
  font-size: 14px; line-height: 1.8; font-weight: 700;
}
.form__status--ok    { background: var(--sage-light); color: var(--olive); }
.form__status--error { background: #FBEDE4; color: var(--accent-btn); }

/* ★2026-10-27 クライアント指示：「おたよりを送る」→ 封筒 ＋「送信」。
   アイコンと文字を横に並べるため inline-flex にしている。 */
.btn-send {
  align-self: flex-end; border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent-btn); color: #FFFFFF; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 19px 44px; cursor: pointer;
  transition: filter .18s ease;
}
.btn-send:hover { filter: brightness(1.08); }
.btn-send:disabled { opacity: .6; cursor: default; filter: none; }
.btn-send__icon { flex: none; }

/* --------------------------------------------------------------------------
   お知らせ・公式SNS（#news）
   -------------------------------------------------------------------------- */
.news { padding: clamp(64px, 6vw, 100px) var(--gutter); }
.news__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(36px, 4vw, 72px); }
.news__main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.news__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.news__heading { font-family: var(--ff-round); font-weight: 900; font-size: 28px; }
.news__more { font-size: 14px; font-weight: 700; padding: 4px 0; }

.news__list { display: flex; flex-direction: column; }
.news__list li { border-top: 1px solid var(--line); }
.news__list li:last-child { border-bottom: 1px solid var(--line); }
.news__list a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  padding: 20px 4px; color: var(--text);
}
.news__list a:hover { color: var(--accent); }
.news__date  { flex: none; width: 96px; font-size: 13px; font-weight: 700; color: var(--text-sub); }
.news__title { flex: 1 1 260px; min-width: 0; font-size: 15px; }

.sns { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sns__desc { font-size: 14px; line-height: 2; color: var(--text-soft); }
/* ★ハッシュタグは「#」と文字の間で折り返さない（2026-10-31 実測で分断を確認）。
   ★「文章が単語や文節の途中で改行されないようにする」という確定事項に沿う。 */
.sns__desc [data-sns-hashtag] { white-space: nowrap; }
.sns__links { display: flex; flex-direction: column; gap: 10px; }
.sns__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #FFFFFF; border: 1px solid var(--sage-base); border-radius: 999px;
  color: var(--text); padding: 16px 24px; font-size: 15px; font-weight: 700;
  transition: background-color .18s ease;
}
.sns__btn:hover { background: var(--sage-light); color: var(--text); }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.footer { background: var(--bar); color: #FFFFFF; padding: clamp(52px, 5vw, 76px) var(--gutter) 32px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; }
.footer__logo { width: 240px; height: auto; }
.footer__nav { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: 13px; }
/* タップ領域を 24px 以上にする。足したパディング 8px ぶん gap を減らしてあるので、
   見た目の行間はリファレンスと同じ（14px）のまま。 */
.footer__nav a { color: #FFFFFF; padding: 4px 0; display: inline-flex; align-items: center; min-height: 44px; }
.footer__nav a:hover { color: var(--butter); }
/* ★2026-10-27 クライアント指示：フッターの「おたより」もヘッダーに揃えて封筒のマークに。 */
.footer__nav-icon { padding: 4px 0; }
.footer__icon { flex: none; }
/* 中央寄せはご指定による（カンプは左寄せ）。PC / SP 共通。 */
.footer__copy { padding-top: 22px; border-top: 1px solid var(--footer-line); font-size: 11px; color: var(--footer-copy); text-align: center; }

/* --------------------------------------------------------------------------
   下層ページ（バックナンバー一覧 / お知らせ一覧・詳細）
   トップのトーン（セージの帯・紙・カード）を流用した実装側デザイン
   -------------------------------------------------------------------------- */
.page__head { background: var(--sage-light); padding: clamp(36px, 4vw, 56px) var(--gutter) clamp(32px, 3.5vw, 48px); }
.page__head-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-sub); }
.breadcrumb [aria-current] { color: var(--text-sub); }
/* リンクの高さが文字ぶんしかないと指で押しづらいので、最低限の当たり判定をもたせる */
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }

.page__title { font-family: var(--ff-round); font-weight: 900; font-size: clamp(26px, 3vw, 38px); }

.page__body { padding: clamp(48px, 5vw, 80px) var(--gutter) clamp(64px, 6vw, 100px); }
.page__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.page__back { align-self: center; }
.page__fallback { font-size: 14px; line-height: 2; color: var(--text-sub); }

.article { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.article__date { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.article__title { font-family: var(--ff-round); font-weight: 900; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.6; text-wrap: pretty; }
.article__body { display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 2.1; color: var(--text-soft); }
.article__notfound { font-size: 15px; line-height: 2; color: var(--text-sub); }

/* エピソード詳細（/episode/detail.html）★2026-10-30 新設 */
.episode__art { margin: 0; align-self: flex-start; }
.episode__art img {
  width: min(280px, 60vw); height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 16px; display: block;
}
.episode__listen { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.episode__listen-note { font-size: 14px; color: var(--text-sub); }
.episode__listen .listen__banners { justify-content: flex-start; }
.page__back-list { align-self: center; font-size: 14px; font-weight: 700; }

/* ==========================================================================
   1023px 以下：メインビジュアルだけ SP 型へ
   （PC レイアウトのままだと、左のテキストと画像内のタイトルロゴが重なるため）
   ========================================================================== */
@media (max-width: 1023px) {
  .mv__picture { position: static; }
  .mv__img { width: 100%; height: auto; object-fit: fill; }
  .mv__body {
    min-height: 0;
    padding: 28px clamp(18px, 3vw, 40px) 34px;
    display: block;
  }
  .mv__text { width: 100%; gap: 18px; }

  /* MV が全幅になるこの帯では、バナーも最新話と同じように列幅いっぱいに広げる。
     高さを固定するとテキストだけ全幅・バナーだけ左に寄って見えるため、
     列の実幅（100cqw）から高さを出し、上限 48px（最新話と同じ）で止める。 */
  .listen--mv .listen__banners {
    justify-content: space-between; gap: 6px;
    max-width: calc(48px * var(--bnr-sum) + 12px);
  }
  .listen--mv .listen__banners img { height: min(48px, calc((100cqw - 12px) / var(--bnr-sum))); }
}

/* ==========================================================================
   767px 以下：SP レイアウト
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --paper-rules: repeating-linear-gradient(var(--paper) 0 35px, var(--rule) 35px 36px);
  }

  .only-pc { display: none !important; }
  .only-sp { display: revert !important; }

  /* ヘッダー：SP は追従させる */
  .header { position: sticky; top: 0; z-index: 50; }
  .header__inner { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; }
  .header__logo img { height: 40px; }
  .header__nav, .header__cta { display: none; }
  .header__menu-btn { display: inline-flex; }
  .menu-fab { display: none !important; }

  /* 追従ヘッダー分、アンカー位置をずらす */
  main > section { scroll-margin-top: 70px; }

  .label { font-size: 15px; }

  /* メインビジュアル */
  .mv__body { padding: 28px 18px 34px; }
  .mv__label .chip { font-size: 11px; padding: 6px 14px; }
  .mv__label .hand { font-size: 15px; }
  .mv__date { flex-wrap: nowrap; gap: 14px; }
  .mv__day { font-size: 80px; }
  .mv__dayside { gap: 5px; padding-bottom: 4px; }
  .mv__time { font-size: 20px; }
  .mv__start { padding: 2px 10px; font-size: 15px; }
  .mv__catch { font-size: 20px; }
  .mv__lead { font-size: 14px; }
  /* 配信先バナーは「高さを揃えて幅は自動」。公式バッジは縦横比がサービスごとに違うので、
     幅を揃えると比率が崩れる。狭い画面でも 3 枚が横一列に収まるよう、高さを
     「1 枚あたりの持ち幅 × バッジの縦横比」で算出し、上限 27px で止める。
     ※ 比率は --bnr-sum（3 枚の合計）で持っている。 */

  /* 番組紹介 */
  .about { padding: 48px 18px 28px; }
  .about__inner { display: block; }
  .about__text { display: block; }
  .about__paras { display: block; }
  .about__heading { font-size: 24px; line-height: 1.55; margin-bottom: 18px; }
  .about__p { font-size: 14px; line-height: 2; margin-bottom: 14px; }
  .about__text > div > .about__p:last-child { margin-bottom: 26px; }
  .about__figure img { border-radius: 16px; }
  .tape--butter { top: -10px; left: 24px; width: 90px; height: 22px; }
  .about__caption { margin-top: 10px; font-size: 13px; }

  /* コメント */
  .comment { padding: 48px 18px; }
  .comment__inner { display: block; }
  .polaroid { max-width: none; width: 250px; margin: 0 auto 30px; padding: 10px 10px 14px; box-shadow: 0 10px 24px rgba(43, 45, 38, .14); }
  .latest__row > picture { flex: 0 0 auto; width: 100%; }
  .tape--sage { top: -11px; width: 96px; height: 22px; margin-left: -48px; }
  .polaroid__caption { margin-top: 10px; font-size: 14px; }
  .comment__card { border-radius: 20px; padding: 26px 20px; gap: 16px; }
  .comment__heading { font-size: 21px; }
  .comment__body { gap: 12px; font-size: 14px; line-height: 2.15; }
  .comment__sign { font-size: 18px; }

  /* 最新話 */
  .latest { padding: 28px 16px 28px; }
  .latest__card { border-radius: 26px; padding: 22px 20px; gap: 16px; }
  .latest__head { gap: 10px; }
  .latest__heading { font-size: 22px; }
  .latest__chip { padding: 5px 12px; font-size: 11px; }
  .latest__row { flex-direction: column; align-items: stretch; gap: 16px; }
  .latest__artwork { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  /* 縦積みでは flex-basis(380px) が「高さ」として効き、中身がそれより短いと
     バナーの下に空白が残る。SP では基準を内容量に戻す。 */
  .latest__content { flex: 0 0 auto; gap: 16px; }
  .latest__meta { gap: 12px; font-size: 12px; }
  .latest__title { font-size: 20px; line-height: 1.6; }
  .tags { gap: 6px; }
  .tags a { padding: 6px 12px; font-size: 12px; }
  .listen--latest { margin-top: 4px; padding-top: 14px; gap: 16px; }
  /* 最新話もメインビジュアルと同じ横一列に揃える。カードの内側ぶん有効幅が狭いので
     バナーは MV より少し小さくなる（上限は PC と同じ 48px）。 */
  .listen--latest .listen__banners {
    flex-direction: row; flex-wrap: nowrap;
    align-items: center; justify-content: space-between; gap: 6px;
    max-width: calc(48px * var(--bnr-sum) + 12px);   /* 同上 */
  }
  /* 有効幅 = 100vw − セクション 32px − カード 40px − 隙間 12px */
  .listen--latest .listen__banners img { height: min(48px, calc((100vw - 84px) / var(--bnr-sum))); }

  /* バックナンバー */
  .archive { padding: 20px 16px 48px; }
  .archive__inner { gap: 0; }
  .archive__head { gap: 8px; margin-bottom: 18px; }
  .archive__heading { font-size: 24px; }
  .archive__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  /* SP は 2 件のみ表示 */
  #archive .archive__grid .ep-card:nth-child(n + 3) { display: none; }
  .ep-card { border-radius: 18px; padding: 10px; gap: 8px; }
  .ep-card__thumb { border-radius: 12px; }
  .ep-card__meta { font-size: 11px; }
  .ep-card__no { padding: 4px 11px; }
  .ep-card__title { font-size: 16px; line-height: 1.6; }
  .ep-card__tag { font-size: 11px; }
  .archive-search { gap: 12px; }
  /* iOS は 16px 未満の入力欄で自動ズームする */
  .archive-search__input { font-size: 16px; padding: 12px 14px; }
  .archive-tag { font-size: 12px; min-height: 44px; padding: 0 14px; }
  .ep-card__new { font-size: 10px; padding: 3px 7px; }
  .archive-tools { flex-direction: column; align-items: flex-start; gap: 10px; }
  .archive-sort { width: 100%; }
  .archive-sort__btn { flex: 1; padding: 0 12px; }
  .pager__btn { min-width: 42px; padding: 0 8px; font-size: 13px; }
  .btn-outline { padding: 16px; font-size: 14px; }
  .archive__more { align-self: stretch; }

  /* おたより */
  .otayori { padding: 46px 16px 0; }
  /* 左にボタン、右に写真。写真の下端をセクションの下端に付ける */
  .otayori__inner { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
  /* タグは 1 行目いっぱいを占めつつ、黄色の帯は文字幅のまま。
     flex-basis:100% だと帯まで伸びてしまうので、grid で「行を占める」と
     「自身の幅」を分けて指定する。 */
  .otayori__lead {
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; row-gap: 0; column-gap: 8px;
  }
  /* 写真の下端をフォームの上端に付ける（フォームの後ろに立っている見せ方） */
  .otayori__figure { margin: 0; }
  .otayori__figure picture { min-width: 0; }
  .otayori__photo { width: min(116px, 30vw); }
  /* ★margin-bottom は、ボタンを写真の下端にそろえていたころの余白。
     いまは .otayori__action を translateY(-50%) で持ち上げているので、
     この余白が入ると ★ボタンの中心が指先より 7px 上にずれる（実測で判明）。 */
  .btn-message { padding: 16px 20px; font-size: 16px; gap: 8px; border-width: 3px; }
  .btn-message__icon { width: 22px; height: 22px; }
  .otayori-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); }
  .otayori-modal__panel { max-height: calc(100dvh - 32px); border-radius: 22px; }

  .form { margin-bottom: 0; border-radius: 22px; padding: 24px 18px; gap: 18px; }
  .form__row { gap: 8px; }
  .form__label { font-size: 13px; }
  /* ※15px だと iOS Safari がフォーカス時にページを自動拡大する（閾値 16px）。
     リファレンス（15px）から 1px だけ上げてあるのは、この拡大を防ぐため。
     maximum-scale で抑える方法はアクセシビリティを損なうので使わない。 */
  .form__input { font-size: 16px; padding: 14px; }
  /* リファレンス SP の textarea は rows="5" 相当（PC は rows="6"）。
     SP はフォントも行間もパディングも固定値なので、高さで指定して合わせる。 */
  .form__textarea { height: 173px; }
  .btn-send { align-self: stretch; padding: 18px; }

  /* お知らせ・SNS */
  .news { padding: 42px 16px; }
  .news__inner { display: block; }
  .news__main { display: block; }
  .news__head { margin-bottom: 12px; }
  .news__heading { font-size: 22px; }
  .news__more { font-size: 12px; }
  .news__list { margin-bottom: 32px; }
  /* SP は 2 件のみ表示 */
  #news .news__list li:nth-child(n + 3) { display: none; }
  #news .news__list li:nth-child(2) { border-bottom: 1px solid var(--line); }
  .news__list a { flex-direction: column; gap: 5px; padding: 16px 2px; }
  .news__date { width: auto; font-size: 11px; }
  .news__title { flex: none; font-size: 14px; line-height: 1.7; }
  .sns { display: block; }
  .sns .news__heading { margin-bottom: 12px; }
  .sns__desc { font-size: 13px; line-height: 1.9; margin-bottom: 14px; }
  .sns__links { gap: 9px; }
  .sns__btn { gap: 14px; padding: 15px 22px; font-size: 14px; }
  .sns__btn svg { width: 15px; height: 15px; }

  /* フッター */
  .footer { padding: 36px 18px 26px; }
  .footer__inner { gap: 22px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__logo { width: 200px; }
  .footer__nav { flex: none; gap: 4px 22px; font-size: 12px; }
  .footer__copy { padding-top: 18px; font-size: 10px; }

  /* 下層ページ */
  .page__head { padding: 28px 16px 24px; }
  .page__title { font-size: 24px; }
  .page__body { padding: 36px 16px 48px; }
  .page__inner { gap: 28px; }
  .article__body { font-size: 14px; line-height: 2; }
}

/* 360px 以下（小型端末）で 11.6 が窮屈にならないように */
@media (max-width: 374px) {
  .mv__day { font-size: 68px; }
  .mv__time { font-size: 18px; }
}

/* 404 ページの主要リンク（CloudFront のカスタムエラーレスポンスから表示される） */
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.notfound__links a { font-size: 15px; font-weight: 700; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { .notfound__links { gap: 10px 20px; } }
