/* ===================================================================
   ざっこく。 — 共通スタイルシート
   色を変えたいときは、このファイル冒頭の :root だけ触れば全ページ変わります
   =================================================================== */

:root {
  /* --- 背景 --- */
  --bg:         #faf6f0;   /* ページ全体 */
  --bg-card:    #fffaf3;   /* カード */
  --bg-warm:    #f5ede0;   /* 一段濃い面 */
  --bg-dark:    #2d2418;   /* 反転ブロック */
  --accent-bg:  #fdf0e6;   /* アクセント薄面 */

  /* --- 文字（コントラストAA準拠に調整済み） --- */
  --text:       #3a3128;   /* 本文 */
  --text-soft:  #5f5346;   /* 補助文 */
  --text-light: #7a6b58;   /* ラベル・注記（旧 #9a8b7a はコントラスト不足のため濃くした） */
  --text-invert:#faf6f0;

  /* --- アクセント --- */
  --accent:      #b8683c;  /* 主役のオレンジ（旧 #c97b4f より少し濃くしてAA確保） */
  --accent-hover:#9c5630;
  --accent-soft: #e8c4a0;
  --green:       #5f7f53;

  /* --- 線・影・形 --- */
  --border:    #e5dccf;
  --shadow:    0 2px 12px rgba(58,49,40,.06);
  --shadow-lg: 0 8px 28px rgba(58,49,40,.12);
  --radius:    12px;
  --radius-lg: 16px;

  /* --- 寸法 --- */
  --max-width: 980px;
  --gutter:    24px;

  /* --- 書体 --- */
  --sans:  'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* 固定ナビの下に見出しが隠れないように */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: var(--accent); }
img, svg, iframe { max-width: 100%; }

/* ===== 共通レイアウト ============================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 60px 0;
}
section.tone-warm { background: var(--bg-warm); }
section.tone-soft { background: var(--accent-bg); }

.section-label {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}
.section-title::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}
.section-lead {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.95;
  margin: 18px 0 30px;
  max-width: 620px;
}
.center { text-align: center; }
.center .section-title::after { margin-left: auto; margin-right: auto; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== ボタン ==================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
  line-height: 1.4;
}
.btn-primary  { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(184,104,60,.28); }
.btn-primary:hover  { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline  { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover  { background: var(--accent); color: #fff; }
.btn-quiet    { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.btn-quiet:hover    { border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: var(--text-invert); }
.btn-ghost-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ===== ナビゲーション ============================================ */

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav.scrolled { box-shadow: 0 2px 18px rgba(58,49,40,.08); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--text); text-decoration: none; white-space: nowrap;
  margin-right: auto;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 18px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-soft);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: color .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--text); cursor: pointer; padding: 2px 6px;
}

/* ===== ヒーロー ================================================== */

.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-bg) 100%);
  padding: 62px 0 54px;
  text-align: center;
}
.hero-label {
  font-size: 12.5px; letter-spacing: .3em; color: var(--accent);
  font-weight: 600; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 40px; font-weight: 600; line-height: 1.45;
  letter-spacing: .01em;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 16px; color: var(--text-soft);
  margin-top: 18px; line-height: 1.95;
}
.hero-tagline {
  font-family: var(--serif); font-size: 17px; color: var(--text);
  margin-top: 22px;
}

/* プレイヤー */
.player-wrap {
  max-width: 660px; margin: 34px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.player-hint {
  font-size: 12.5px; color: var(--text-light);
  margin-bottom: 12px; letter-spacing: .04em;
}
.player-wrap iframe {
  display: block; width: 100%; border: 0;
  border-radius: 12px;
}
.player-alt {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 14px;
}

.hero-badges {
  margin-top: 30px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 9px;
}
.badge {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 15px;
  font-size: 12.5px; color: var(--text-soft); font-weight: 500;
  white-space: nowrap;
}
.badge strong { color: var(--accent); font-weight: 700; }

/* ===== 汎用カードグリッド ======================================== */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card.hoverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}
.card-icon  { font-size: 26px; line-height: 1; margin-bottom: 9px; }
.card-kicker{ font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 5px; }
.card-title { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.6; }
.card-desc  { font-size: 13px; color: var(--text-soft); line-height: 1.8; margin-top: 7px; }
.card-meta  { font-size: 11.5px; color: var(--text-light); margin-top: 8px; }
.card-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-bg);
  padding: 3px 11px; border-radius: 100px; margin-top: 9px;
}
.card.accent-top { border-top: 3px solid var(--accent); }

/* ラベルと値の行：ラベル直後に値を置き、無駄な空白を作らない */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.row:last-child { border-bottom: none; }
.row-label { color: var(--text-light); font-weight: 500; flex: 0 0 auto; min-width: 84px; }
.row-value { color: var(--text); font-weight: 500; }
.row-value a { text-decoration: none; }
.row-value a:hover { text-decoration: underline; }

/* ===== 数字サマリー ============================================== */

.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  flex: 1 1 140px; min-width: 130px;
}
.stat-num {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--accent); line-height: 1.15;
}
.stat-label { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.stat-note  { font-size: 11px; color: var(--text-light); margin-top: 4px; line-height: 1.6; }

/* ===== 反転（濃色）ブロック ====================================== */

.panel-dark {
  background: var(--bg-dark);
  color: var(--text-invert);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.panel-dark h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 12px; color: #fff; }
.panel-dark p  { font-size: 14px; color: #cbbba8; line-height: 1.95; }
.panel-dark .section-label { color: var(--accent-soft); }
.panel-dark .quote-lg {
  font-family: var(--serif); font-size: 21px; line-height: 1.75; color: #fff;
}
.panel-dark .quote-src { font-size: 12.5px; color: var(--accent-soft); margin-top: 10px; }

.panel-soft {
  background: linear-gradient(135deg, var(--accent-bg) 0%, var(--bg-warm) 100%);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
}

/* ===== 引用・短歌 ================================================ */

.quote-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px 18px;
  position: relative;
}
.quote-card p {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.95; color: var(--text);
}
.quote-card .src { font-size: 12px; color: var(--text-light); margin-top: 10px; }

.tanka-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .28s, box-shadow .28s;
}
.tanka-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tanka-rank {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 12px;
  border-radius: 100px; margin-bottom: 14px;
}
.tanka-text {
  font-family: var(--serif); font-size: 17px; line-height: 2.25;
  color: var(--text); letter-spacing: .04em;
}
.tanka-note { font-size: 12.5px; color: var(--text-soft); line-height: 1.75; margin-top: 13px; }
.tanka-src  { font-size: 11.5px; color: var(--text-light); margin-top: 9px; }

/* ===== フロー（矢印でつなぐ小チップ） ============================ */

.flow { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.flow-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.flow-arrow { color: var(--accent); font-weight: 700; }

/* ===== アコーディオン ============================================ */

.accordion-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.accordion-header {
  width: 100%; text-align: left; padding: 15px 22px;
  background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background .25s;
}
.accordion-header:hover { background: var(--bg-warm); }
.accordion-icon { color: var(--accent); font-size: 15px; transition: transform .3s; flex: 0 0 auto; }
.accordion-item.open .accordion-icon { transform: rotate(90deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-inner { padding: 4px 22px 22px; }

/* ===== テーブル ================================================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; line-height: 1.8;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
th {
  background: var(--bg-warm); color: var(--accent);
  text-align: left; font-weight: 700; font-size: 12.5px;
  padding: 11px 14px; white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.em { font-weight: 600; white-space: nowrap; }
td.muted { color: var(--text-soft); }

/* ===== タイムライン（縦1本・左寄せ／スマホでも崩れない） ========= */

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--border));
}
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.tl-item.future::before { background: var(--text-light); }
.tl-date  { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--accent); }
.tl-event { font-size: 14px; color: var(--text); line-height: 1.7; }
.tl-item.future .tl-date { color: var(--text-light); }

/* ===== スコアバー ================================================ */

.score-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.score-name { color: var(--text-light); flex: 0 0 86px; }
.score-stars { color: var(--accent); font-weight: 700; letter-spacing: 1px; }

/* ===== フッター ================================================== */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 34px;
  text-align: center;
  margin-top: 20px;
}
.footer-logo { font-family: var(--serif); font-size: 19px; color: var(--text); }
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 18px; margin-top: 16px;
}
.footer-links a { font-size: 13px; color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-tagline { font-family: var(--serif); font-size: 13.5px; color: var(--text-soft); margin-top: 20px; }
.footer-press {
  margin-top: 18px; font-size: 12.5px; color: var(--text-light);
}
.footer-press a { color: var(--text-light); }
.footer-copy { font-size: 11.5px; color: var(--text-light); margin-top: 16px; }

/* ===== 進捗バー／トップへ戻る ==================================== */

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200; transition: width .1s linear;
}
.back-to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .25s;
  z-index: 200; box-shadow: 0 4px 14px rgba(184,104,60,.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-hover); }

/* ===== スクロール演出 ============================================
   注意：セクション全体には掛けない。背の高い要素は交差率が閾値に
   届かず、永久に非表示になるため。カード単位のみ。 */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== 注記 ====================================================== */

.note-small {
  font-size: 12px; color: var(--text-light); line-height: 1.8;
  margin-top: 14px;
}
.divider { text-align: center; color: var(--accent-soft); letter-spacing: .8em; padding: 6px 0; user-select: none; }

/* ===== レスポンシブ ============================================== */

@media (max-width: 900px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  section { padding: 44px 0; }
  .section-title { font-size: 23px; }

  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .panel-dark, .panel-soft { padding: 28px 22px; }
  .player-wrap { padding: 14px; }

  .nav-toggle { display: block; order: 2; }
  .nav-links {
    display: none; order: 3; flex-direction: column;
    align-items: flex-start; width: 100%; gap: 2px;
    padding: 10px 0 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14.5px; padding: 8px 0; display: block; width: 100%; }
  .nav-links .btn { margin-top: 6px; }

  .row { flex-wrap: wrap; gap: 2px 10px; }
  .row-label { min-width: 0; flex: 0 0 100%; font-size: 12px; }

  table { font-size: 12.5px; }
  th, td { padding: 9px 11px; }
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ===================================================================
   回復図鑑（zukan.html）専用
   =================================================================== */

.zukan-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-bg) 100%);
  padding: 54px 0 46px;
  text-align: center;
}
.zukan-q {
  font-family: var(--serif);
  font-size: 30px; font-weight: 600; line-height: 1.55;
  margin-top: 14px;
}
.zukan-q .hp { color: var(--accent); }
.zukan-sub { font-size: 15px; color: var(--text-soft); margin-top: 16px; line-height: 1.9; }

/* --- 投稿フォーム --- */
.post-box {
  max-width: 620px; margin: 30px auto 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg); text-align: left;
}
.post-box label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-light); margin-bottom: 7px; letter-spacing: .04em;
}
.post-box textarea, .post-box input[type="text"] {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; line-height: 1.8; resize: vertical;
  transition: border-color .2s;
}
.post-box textarea:focus, .post-box input[type="text"]:focus {
  outline: none; border-color: var(--accent);
}
.post-box textarea { min-height: 92px; }
.post-count { font-size: 11.5px; color: var(--text-light); text-align: right; margin-top: 5px; }
.post-count.over { color: #b4432c; font-weight: 600; }

.cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 15px;
  font-size: 13px; color: var(--text-soft); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  user-select: none;
}
.cat-chip:hover { border-color: var(--accent-soft); }
.cat-picker input:checked + .cat-chip {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.cat-picker input:focus-visible + .cat-chip { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 0; }
.hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.post-status { font-size: 13px; margin-top: 12px; line-height: 1.7; }
.post-status.err { color: #b4432c; }
.post-status.ok  { color: var(--green); }

/* --- めくれたカード --- */
.flip-stage { max-width: 620px; margin: 0 auto; text-align: center; }
.thanks {
  font-family: var(--serif); font-size: 19px; color: var(--text);
  line-height: 1.8; margin-bottom: 6px;
}
.thanks-sub { font-size: 13.5px; color: var(--text-soft); margin-bottom: 26px; line-height: 1.8; }

.gift-label {
  font-size: 12.5px; letter-spacing: .22em; color: var(--accent);
  font-weight: 700; margin-bottom: 12px;
}
.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: giftIn .5s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes giftIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.gift-no {
  font-family: var(--serif); font-size: 12.5px; font-weight: 700;
  color: var(--accent); letter-spacing: .12em; margin-bottom: 14px;
}
.gift-text {
  font-family: var(--serif); font-size: 21px; line-height: 1.95; color: var(--text);
}
.gift-meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: 18px;
  font-size: 12.5px; color: var(--text-light);
}
.gift-cat {
  background: var(--accent-bg); color: var(--accent);
  font-weight: 600; padding: 3px 11px; border-radius: 100px;
}
@media (prefers-reduced-motion: reduce) { .gift-card { animation: none; } }

/* --- 図鑑一覧 --- */
.zukan-count {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 20px;
}
.zukan-count b {
  font-family: var(--serif); font-size: 25px; color: var(--accent); font-weight: 700; line-height: 1;
}
.zukan-count span { font-size: 12.5px; color: var(--text-soft); }

.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 24px; }
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 15px;
  font-size: 12.5px; color: var(--text-soft); cursor: pointer;
  font-family: var(--sans); transition: background .2s, border-color .2s, color .2s;
}
.filter-btn:hover { border-color: var(--accent-soft); }
.filter-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.zukan-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}
.zk-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 15px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.zk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }
.zk-no {
  font-family: var(--serif); font-size: 11.5px; font-weight: 700;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 8px;
}
.zk-text {
  font-family: var(--serif); font-size: 15px; line-height: 1.9; color: var(--text);
  flex: 1 1 auto;
}
.zk-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 13px; font-size: 11.5px; color: var(--text-light);
}
.zk-cat {
  background: var(--accent-bg); color: var(--accent);
  font-weight: 600; padding: 2px 10px; border-radius: 100px;
}
.zukan-empty {
  text-align: center; color: var(--text-soft); font-size: 14px;
  padding: 40px 0; line-height: 1.9;
}

@media (max-width: 768px) {
  .zukan-q { font-size: 23px; }
  .post-box { padding: 20px 17px; }
  .gift-card { padding: 26px 20px; }
  .gift-text { font-size: 18px; }
  .zukan-grid { grid-template-columns: 1fr; }
}

/* スマホでだけ改行したいとき */
.only-sp { display: none; }
@media (max-width: 768px) { .only-sp { display: inline; } }
