/* ============================================================
   detail.css — 作ったもの / モデル の一覧・個別ページ共通スタイル
   トップページ(index.html)のデザインシステムを踏襲。
   新しいページを足すときは、このCSSを読み込むだけで体裁が揃う。
   ============================================================ */
:root {
  --bg: #F2F3F5;
  --card: #FFFFFF;
  --ink: #17191E;
  --ink-2: #5C636E;
  --ink-3: #9AA1AB;
  --line: #E6E8EC;
  --accent: #E04E2F;
  --accent-soft: #FCEDE8;
  --teal: #0E7490;
  --teal-soft: #E8F3F6;
  --r: 22px;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --en: "Inter", "Noto Sans JP", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ===== header ===== */
header { background: #FBFCFD; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { font-family: var(--en); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--en); font-size: 12px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 99px; transition: all .2s; white-space: nowrap;
}
.nav-links a img { width: 14px; height: 14px; object-fit: contain; }
.nav-links a:hover { border-color: var(--accent); color: var(--accent); }
.nav-links a.here { border-color: var(--ink); color: var(--ink); }

/* ===== breadcrumb ===== */
.crumb { display: flex; align-items: center; gap: 8px; font-family: var(--en); font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 22px 0 0; flex-wrap: wrap; }
.crumb a { color: var(--ink-3); transition: color .2s; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: .5; }
.crumb .cur { color: var(--ink); }

/* ===== 個別ページ hero ===== */
.subhero { padding: 26px 0 40px; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.subhero .kicker { font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; }
.subhero h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; letter-spacing: .01em; line-height: 1.3; }
.subhero h1 .en { font-family: var(--en); }
.subhero .lead { color: var(--ink-2); font-size: 15.5px; margin-top: 16px; max-width: 720px; }
.subhero .lead b { color: var(--ink); font-weight: 700; }

/* meta chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--en); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  padding: 6px 12px; border-radius: 99px;
}
.chip img { width: 13px; height: 13px; object-fit: contain; }
.chip.accent { background: var(--accent-soft); border-color: #F3D6CD; color: var(--accent); }
.chip.teal { background: var(--teal-soft); border-color: #CFE6EC; color: var(--teal); }
.chip.ink { background: var(--ink); border-color: var(--ink); color: #fff; }

/* CTA buttons */
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--en); font-size: 13px; font-weight: 700;
  padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); transition: all .2s;
}
.btn img { width: 15px; height: 15px; object-fit: contain; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(23,25,30,.4); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary img { filter: brightness(0) invert(1); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== stat row ===== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 34px 0 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px;
}
.stat .n { font-family: var(--en); font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.stat .n .u { font-size: 14px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.stat .l { font-size: 11.5px; color: var(--ink-2); font-weight: 500; margin-top: 7px; line-height: 1.55; }

/* ===== content sections ===== */
main section { padding: 52px 0 0; }
main section:last-of-type { padding-bottom: 8px; }
.sec-h { font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .28em; color: var(--accent); text-transform: uppercase; margin-bottom: 16px; }
.sec-t { font-size: 22px; font-weight: 900; letter-spacing: .01em; margin-bottom: 20px; }
.prose { color: var(--ink-2); font-size: 15px; max-width: 760px; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.prose a:hover { border-color: var(--accent); }
.prose ul { list-style: none; margin: 4px 0 18px; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ul li b { color: var(--ink); }

/* card wrapper for a section's body */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 34px; }

/* ===== figure ===== */
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.figure img { width: 100%; }
.figure.pad { padding: 26px; background: #FBFCFD; }
.figure.pad img { max-width: 620px; margin: 0 auto; }
.figure .cap { font-size: 12px; color: var(--ink-3); padding: 14px 22px; border-top: 1px solid var(--line); }
.figure.pad .cap { border-top: none; padding: 16px 0 0; text-align: center; }

/* ===== spec table ===== */
.specs { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.specs dt { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 15px 22px; background: #FAFBFC; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.specs dd { font-size: 13.5px; color: var(--ink); padding: 15px 22px; border-bottom: 1px solid var(--line); font-family: var(--en); }
.specs dd .sans { font-family: var(--sans); }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: none; }

/* ===== family / variants table ===== */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.tbl th { font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
table.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--en); color: var(--ink); vertical-align: middle; }
table.tbl td .sans { font-family: var(--sans); color: var(--ink-2); font-size: 12px; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: #FBFCFD; }
table.tbl .best { color: var(--accent); font-weight: 800; }
table.tbl a { color: var(--accent); font-weight: 700; }
table.tbl .mono { font-variant-numeric: tabular-nums; }

/* ===== code block ===== */
.code { background: #14161B; color: #E7E9EE; border-radius: 16px; padding: 20px 22px; overflow-x: auto; font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.8; }
.code .c { color: #7E8894; }
.code .k { color: #FF8A6B; }
.code .s { color: #8FD6B4; }

/* ===== index grid ===== */
.idx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.idx-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.idx-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -22px rgba(23,25,30,.28); }
.idx-card .thumb { aspect-ratio: 2.1; overflow: hidden; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.idx-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.idx-card:hover .thumb img { transform: scale(1.03); }
.idx-card .thumb.contain { display: grid; place-items: center; padding: 22px; }
.idx-card .thumb.contain img { width: auto; height: 100%; object-fit: contain; }
.idx-card .body { padding: 20px 24px 22px; flex: 1; display: flex; flex-direction: column; }
.idx-card .head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; flex-wrap: wrap; }
.idx-card .ico { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; object-fit: contain; }
.idx-card h3 { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.idx-card .tag { font-family: var(--en); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 8px; }
.idx-card .tag.g { background: #EFF1F3; color: var(--ink-3); }
.idx-card .tag.teal { background: var(--teal-soft); color: var(--teal); }
.idx-card p { font-size: 13px; color: var(--ink-2); flex: 1; margin-bottom: 0; }
/* card 下部の要点: トップの .wk .fact と同じ見せ方（太字の数値＋小さいラベル）。ホバーで矢印。 */
.idx-card .fact { margin-top: 15px; font-family: var(--en); font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; letter-spacing: .01em; }
.idx-card .fact small { font-family: var(--sans); font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.idx-card .fact .arw { margin-left: auto; align-self: center; color: var(--accent); font-size: 15px; opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.idx-card:hover .fact .arw { opacity: 1; transform: none; }

/* full-width feature card in index */
.idx-card.wide { grid-column: 1 / -1; flex-direction: row; }
.idx-card.wide .thumb { flex: 1.3; aspect-ratio: auto; border-bottom: none; border-right: 1px solid var(--line); min-height: 220px; }
.idx-card.wide .body { flex: 1; justify-content: center; }

/* section intro block on index pages */
.idx-intro { max-width: 720px; }
.idx-intro h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: .01em; line-height: 1.25; }
.idx-intro h1 .en { font-family: var(--en); color: var(--accent); }
.idx-intro p { color: var(--ink-2); font-size: 15.5px; margin-top: 18px; }
.idx-group { font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .26em; color: var(--ink-3); text-transform: uppercase; margin: 46px 0 18px; display: flex; align-items: center; gap: 14px; }
.idx-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== poster / inline-chart thumbnails ===== */
.thumb.chart { display: block; padding: 20px 22px; background: linear-gradient(135deg, #FBFCFD, #F1F5F6); }
.thumb.chart svg { width: 100%; height: 100%; display: block; }
.thumb.poster { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 26px; background: linear-gradient(140deg, #14161B, #23262E); color: #fff; }
.thumb.poster .pk { font-family: var(--en); font-size: 10px; font-weight: 700; letter-spacing: .2em; color: #FF8A6B; text-transform: uppercase; }
.thumb.poster .pt { font-family: var(--en); font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.thumb.poster .pd { font-size: 12px; color: #A9B0BA; font-weight: 500; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; }
.chart-card .ct { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.chart-card .cs { font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .cg { font-size: 11px; fill: var(--ink-3); font-family: var(--en); }
.chart-card .cl { stroke: var(--line); stroke-width: 1; }

/* ===== back link ===== */
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--en); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; transition: color .2s; }
.backlink:hover { color: var(--accent); }

/* ===== related / next ===== */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rel-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; transition: all .2s; }
.rel-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rel-card .k { font-family: var(--en); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.rel-card h4 { font-size: 15px; font-weight: 700; margin: 8px 0 5px; }
.rel-card p { font-size: 12px; color: var(--ink-2); }

/* ===== footer ===== */
footer { padding: 64px 0 44px; }
.foot { background: var(--ink); color: #fff; border-radius: var(--r); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .t { font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.foot .t small { display: block; font-family: var(--en); font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #8D949E; margin-top: 6px; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--en); font-size: 11.5px; font-weight: 600; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; padding: 8px 14px; transition: all .2s; }
.foot-links a img { width: 14px; height: 14px; object-fit: contain; filter: brightness(0) invert(1); transition: filter .2s; }
.foot-links a:hover { background: #fff; color: var(--ink); }
.foot-links a:hover img { filter: none; }
.cr { text-align: center; font-family: var(--en); font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; margin-top: 22px; }

/* ===== reveal ===== */
.rv { opacity: 0; transform: translate3d(0, 16px, 0); }
.rv.in { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1); transition-delay: var(--rd, 0s); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ===== responsive ===== */
@media (max-width: 860px) {
  .idx-grid { grid-template-columns: 1fr; }
  .idx-card.wide { flex-direction: column; }
  .idx-card.wide .thumb { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 2.1; min-height: 0; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-right: none; }
  .specs dd { border-bottom: 1px solid var(--line); }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .nav-links { gap: 5px; }
  .nav-links a { padding: 6px 10px; font-size: 11px; }
}
