/* =====================================================================
 * トレカ買取ナビ — スタイルシート
 * ===================================================================== */

:root {
  --accent: #d9642c;
  --accent-dark: #b84f1e;
  --accent-soft: #fdf0e7;
  --bg: #f6f5f3;
  --panel: #ffffff;
  --line: #e4e1dc;
  --line-strong: #d2cec7;
  --text: #26221e;
  --text-sub: #6c655c;
  --text-mute: #948c81;
  --star: #f0a020;
  --star-empty: #dcd7cf;
  --good: #2e9e6b;
  --mid: #d9a022;
  --bad: #c8553d;
  --shadow: 0 1px 2px rgba(38, 34, 30, .06), 0 4px 14px rgba(38, 34, 30, .05);
  --radius: 10px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f08040;
    --accent-dark: #d9642c;
    --accent-soft: #3a2a20;
    --bg: #16150f;
    --panel: #201e19;
    --line: #35322b;
    --line-strong: #474339;
    --text: #ece8e1;
    --text-sub: #b3ab9f;
    --text-mute: #857d71;
    --star: #f5b342;
    --star-empty: #4a453c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* --- ヘッダー ------------------------------------------------------- */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transform: rotate(-6deg);
}
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;   /* 狭い画面で1文字ずつ折り返さないように */
  flex: 0 0 auto;
}
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.nav a.on { color: var(--accent-dark); background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { .nav a.on { color: var(--accent); } }

/* --- 汎用 ----------------------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section { margin: 28px 0; }
h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; letter-spacing: .01em; }
h2 { font-size: 19px; margin: 0 0 14px; letter-spacing: .01em; }
.h1-sub { font-size: .62em; font-weight: 600; color: var(--text-sub); margin-left: .35em; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
small, .small { font-size: 12.5px; color: var(--text-mute); line-height: 1.6; }

.lead { color: var(--text-sub); font-size: 14.5px; }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.7;
}
.notice strong { color: var(--text); }

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-sub);
  background: var(--panel);
  line-height: 1.7;
  white-space: nowrap;
}
.tag.solid { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
@media (prefers-color-scheme: dark) { .tag.solid { color: var(--accent); } }
.tag.warn { background: #fdece8; border-color: transparent; color: #b0432c; }
@media (prefers-color-scheme: dark) { .tag.warn { background: #43241c; color: #f0947c; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.5;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- 星 -------------------------------------------------------------- */
.stars {
  display: inline-block;
  position: relative;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
}
.stars .base { color: var(--star-empty); }
.stars .fill {
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  color: var(--star);
  white-space: nowrap;
}
.stars.lg { font-size: 21px; }
.stars.sm { font-size: 12px; }

.score-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.score-num.lg { font-size: 30px; line-height: 1.1; }
.score-num.xl { font-size: 40px; line-height: 1; }
.score-good { color: var(--good); }
.score-mid { color: var(--mid); }
.score-bad { color: var(--bad); }

/* --- ヒーロー -------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #2f2a24 0%, #55402f 100%);
  color: #fff;
  padding: 38px 0 32px;
  border-bottom: 3px solid var(--accent);
}
.hero h1 { color: #fff; font-size: 27px; margin-bottom: 10px; }
.hero p { color: rgba(255,255,255,.78); font-size: 14.5px; max-width: 720px; margin-bottom: 0; }
.hero .hero-sub { font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 10px; font-weight: 600; }
.hero-stats { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats div { line-height: 1.3; }
.hero-stats b { display: block; font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,.6); }

/* --- 絞り込み -------------------------------------------------------- */
.filters { padding: 16px 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-start; }
.filter-group { min-width: 0; }
.filter-group > .label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: .06em;
  display: block;
  margin-bottom: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text-sub);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.6;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.search-input, select.sel {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}
.search-input { width: 240px; }
.search-input:focus, select.sel:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.result-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}
.result-bar .count { font-size: 14px; color: var(--text-sub); }
.result-bar .count b { color: var(--text); font-size: 17px; font-weight: 700; }
.result-bar .spacer { margin-left: auto; }


/* --- 順位マーク --------------------------------------------------------
 * 上位ほど装飾を強くする。1位は王冠つきの金、2位は銀、3位は銅、
 * 10位までは枠つき、それ以降は素の丸。
 * ---------------------------------------------------------------------- */
.rank-mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -.02em;
}
.rank-mark .crown {
  position: absolute;
  top: -10px;
  width: 22px; height: 12px;
  fill: currentColor;
}
.rank-mark.lg { width: 48px; height: 48px; font-size: 19px; }
.rank-mark.lg .crown { top: -12px; width: 27px; height: 15px; }

.rank-mark.tier-gold {
  background: linear-gradient(158deg, #ffeeb4 0%, #f7cd57 42%, #dd9f1e 100%);
  color: #6b4700;
  box-shadow: 0 0 0 2px rgba(247, 205, 87, .22), 0 3px 10px rgba(221, 159, 30, .38);
}
.rank-mark.tier-gold .crown { color: #f2c33f; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }

.rank-mark.tier-silver {
  background: linear-gradient(158deg, #f6f8fa 0%, #ccd3da 45%, #99a3ae 100%);
  color: #3b434d;
  box-shadow: 0 0 0 2px rgba(204, 211, 218, .2), 0 3px 9px rgba(120, 130, 141, .3);
}
.rank-mark.tier-silver .crown { color: #c3cbd4; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }

.rank-mark.tier-bronze {
  background: linear-gradient(158deg, #f6d4ae 0%, #d99a5f 45%, #a96a31 100%);
  color: #4d2d0d;
  box-shadow: 0 0 0 2px rgba(217, 154, 95, .2), 0 3px 9px rgba(169, 106, 49, .3);
}
.rank-mark.tier-bronze .crown { color: #d1935a; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }

.rank-mark.tier-top10 {
  background: var(--panel);
  border: 2px solid var(--accent);
  color: var(--accent-dark);
}
@media (prefers-color-scheme: dark) { .rank-mark.tier-top10 { color: var(--accent); } }

.rank-mark.tier-plain {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  font-weight: 700;
}

/* --- 業者カード ------------------------------------------------------ */
.shop-list { display: flex; flex-direction: column; gap: 12px; }

.shop-card {
  display: grid;
  grid-template-columns: 74px 1fr 168px;
  gap: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.shop-card:hover { border-color: var(--line-strong); }
.shop-card.unrated { border-style: dashed; background: color-mix(in srgb, var(--panel) 92%, var(--bg)); }

.list-divider {
  margin: 26px 0 4px;
  padding: 14px 16px;
  border-top: 2px solid var(--line-strong);
  border-radius: 0;
}
.list-divider b { display: block; font-size: 15px; margin-bottom: 3px; }
.list-divider span { font-size: 12.5px; color: var(--text-mute); line-height: 1.7; }

.rank-badge {
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rank-no {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  background: var(--bg);
  color: var(--text-sub);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.rank-no.gold { background: #f5c542; color: #4a3400; border-color: #e0ad24; }
.rank-no.silver { background: #cfd3d8; color: #3d444d; border-color: #b8bec5; }
.rank-no.bronze { background: #dda87a; color: #4e3115; border-color: #c8905e; }
.shop-avatar {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}

.shop-main { min-width: 0; }
.shop-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  display: inline-block;
}
.shop-name:hover { color: var(--accent-dark); text-decoration: none; }
.shop-catch { font-size: 13.5px; color: var(--text-sub); margin: 0 0 10px; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 2px 14px;
  font-size: 12.5px;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.spec-grid dt { color: var(--text-mute); font-size: 11.5px; }
.spec-grid dd { margin: 0 0 4px; color: var(--text); font-weight: 600; }

.shop-score {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-head { display: flex; align-items: baseline; gap: 7px; }
.score-head .of { font-size: 11.5px; color: var(--text-mute); }
.mini-axes { display: flex; flex-direction: column; gap: 3px; }
.mini-axis { display: grid; grid-template-columns: 62px 1fr 26px; align-items: center; gap: 7px; font-size: 11.5px; }
.mini-axis .n { color: var(--text-mute); }
.mini-axis .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-sub); font-weight: 600; }
.bar { height: 5px; background: var(--star-empty); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }

/* --- 詳細ページ ------------------------------------------------------ */
.shop-hero { padding: 24px; display: grid; grid-template-columns: 1fr 260px; gap: 28px; }
.shop-hero .avatar-lg {
  flex: 0 0 auto;
  width: 68px; height: 68px; border-radius: 15px;
  display: grid; place-items: center; color: #fff; font-size: 25px; font-weight: 700;
}
.hero-left { display: flex; gap: 18px; min-width: 0; }
.hero-marks { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 0 auto; }
.score-box { text-align: center; border-left: 1px solid var(--line); padding-left: 24px; }
.score-box .of { font-size: 12px; color: var(--text-mute); }

.axis-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.axis-table th, .axis-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.axis-table th { width: 128px; font-weight: 600; color: var(--text-sub); background: var(--bg); font-size: 13px; }
.axis-table .sc { width: 190px; }
.axis-table tr:last-child th, .axis-table tr:last-child td { border-bottom: none; }
.axis-basis { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }
.axis-flag {
  font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
  background: var(--bg); color: var(--text-mute); border: 1px solid var(--line); margin-left: 6px;
  white-space: nowrap;
}
.axis-flag.auto { background: #e7f3ec; color: #2b7a55; border-color: #c6e3d4; }
@media (prefers-color-scheme: dark) { .axis-flag.auto { background: #1e3a2c; color: #6dc99b; border-color: #2c5340; } }

.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv th, .kv td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kv th { width: 132px; color: var(--text-sub); font-weight: 600; background: var(--bg); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-list { margin: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.85; }
.pc-list li { margin-bottom: 3px; }
.pc-box { padding: 16px 18px; }
.pc-box h3 { display: flex; align-items: center; gap: 6px; }
.pc-box.pro h3 { color: var(--good); }
.pc-box.con h3 { color: var(--bad); }

.src-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.src-table th, .src-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.src-table th { color: var(--text-mute); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.src-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- レビュー -------------------------------------------------------- */
.review { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-head .who { font-weight: 700; font-size: 14px; }
.review-head .when { font-size: 12px; color: var(--text-mute); margin-left: auto; }
.review-title { font-weight: 700; font-size: 14.5px; margin: 0 0 4px; }
.review-body { font-size: 13.5px; color: var(--text-sub); line-height: 1.8; white-space: pre-wrap; margin: 0; }
.review-axes { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11.5px; color: var(--text-mute); }
.review-axes span b { color: var(--text-sub); font-variant-numeric: tabular-nums; }
.review-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; }

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}

/* --- 投稿フォーム ---------------------------------------------------- */
.form-grid { display: grid; gap: 16px; padding: 18px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.field input[type="text"], .field input[type="number"], .field textarea, .field select {
  font-family: inherit; font-size: 14px; padding: 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--panel); color: var(--text); width: 100%;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.rate-rows { display: grid; gap: 8px; }
.rate-row { display: grid; grid-template-columns: 112px auto 1fr; align-items: center; gap: 12px; }
.rate-row .rl { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.rate-row .rd { font-size: 11.5px; color: var(--text-mute); }
.starpick { display: inline-flex; gap: 2px; }
.starpick button {
  border: none; background: none; cursor: pointer; padding: 0 1px;
  font-size: 22px; line-height: 1; color: var(--star-empty); font-family: system-ui, sans-serif;
}
.starpick button.on { color: var(--star); }
.starpick button:hover { transform: scale(1.12); }

.form-error { color: var(--bad); font-size: 13px; font-weight: 600; }

/* --- 比較 ------------------------------------------------------------ */
.compare-scroll { overflow-x: auto; }
/* 横に長い表を、その枠の中だけでスクロールさせる（本文は横に流れない） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.compare-table th, .compare-table td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
  background: var(--panel);
}
.compare-table thead th { background: var(--bg); position: sticky; top: 0; z-index: 2; }
.compare-table tbody th {
  background: var(--bg); position: sticky; left: 0; z-index: 1;
  width: 132px; min-width: 132px; color: var(--text-sub); font-weight: 600;
}
.compare-table td { min-width: 190px; }
.compare-table td.best { background: #eef7f1; }
@media (prefers-color-scheme: dark) { .compare-table td.best { background: #1d3327; } }

.compare-bar {
  position: sticky; bottom: 0; z-index: 40;
  background: var(--panel); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -3px 14px rgba(0,0,0,.07);
  padding: 11px 0;
}
.compare-bar .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-bar .picked { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- フッター -------------------------------------------------------- */
.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 0 34px;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.85;
}
.site-footer a { color: var(--text-sub); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }

/* --- レスポンシブ ---------------------------------------------------- */
@media (max-width: 860px) {
  .shop-card { grid-template-columns: 54px 1fr; }
  .rank-badge { width: 54px; }
  .shop-avatar { width: 46px; height: 46px; font-size: 17px; }
  .shop-score { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 12px; }
  .shop-hero { grid-template-columns: 1fr; }
  .score-box { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .rate-row { grid-template-columns: 1fr; gap: 3px; }
  .search-input { width: 100%; }
}

/* ヘッダーは狭い画面ではロゴとナビを上下2段にし、ナビは横スクロールさせる */
@media (max-width: 700px) {
  .site-header .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .logo { font-size: 16px; width: 100%; }
  .nav {
    margin-left: -4px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 13px; }
}

/* --- 狭い画面でのテーブル ---------------------------------------------
 * 3列のテーブルは375px幅だと最後の列が数十pxまで潰れ、
 * 日本語が1文字ずつ縦に積まれてしまう。行ごとに縦積みへ切り替える。
 * ---------------------------------------------------------------------- */
@media (max-width: 700px) {
  .axis-table, .axis-table tbody, .axis-table tr, .axis-table th, .axis-table td {
    display: block;
    width: auto;
  }
  .axis-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }
  .axis-table tr:last-child { border-bottom: none; }
  .axis-table th {
    width: auto;
    background: none;
    padding: 0 0 6px;
    border-bottom: none;
    font-size: 14px;
    color: var(--text);
  }
  .axis-table td {
    padding: 0 0 6px;
    border-bottom: none;
  }
  .axis-table td:last-child { padding-bottom: 0; }
  .axis-table .sc { width: auto; }
  .axis-table .axis-basis { font-size: 13px; }

  /* 2列の定義リスト表は、見出し列を細くして本文に幅を回す */
  .kv th { width: 96px; font-size: 12.5px; padding: 9px 10px; }
  .kv td { padding: 9px 10px; }

  /* 出典表は横スクロールさせる */
  .src-table { min-width: 460px; }

  .review-axes { gap: 3px 10px; }
  .review-head .when { margin-left: 0; width: 100%; }
}

/* --- さらに狭い画面 ---------------------------------------------------- */
@media (max-width: 400px) {
  body { font-size: 14.5px; }
  h1 { font-size: 22px; }
  .h1-sub { display: block; margin-left: 0; font-size: .7em; }
  .hero h1 { font-size: 23px; }
  .score-num.xl { font-size: 34px; }
  .kv th { width: 84px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
