/* ==========================================================================
   中古車比較帖 — スタイルシート
   デザイン方向「比較帖」：生成りの紙色 × 墨紺 × 朱。罫線と数字で語る資料体。
   ========================================================================== */

:root {
  --paper: #f8f5ee;
  --surface: #ffffff;
  --ink: #1e2a3a;
  --ink-2: #5c6672;
  --ink-3: #8a8577;
  --line: #e3dbcb;
  --line-strong: #cfc4ac;
  --accent: #c2452d;
  --accent-dark: #9e3423;
  --navy: #1e2a3a;
  --r4: #2e6b4f;
  --r3: #4c8a62;
  --r2: #b07d2b;
  --r1: #7c828b;
  --serif: 'Shippori Mincho B1', 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --maxw: 1120px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.015em;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-logo {
  border-radius: 7px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current='page'] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle-bars i {
  width: 16px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 8px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.hero-lede {
  margin: 0 0 24px;
  max-width: 56ch;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}

.hero-stats li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-v {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.hs-l {
  font-size: 0.72rem;
  color: var(--ink-2);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(30, 42, 58, 0.1);
  display: block;
}

/* ---------- セクション ---------- */
.section {
  padding: 56px 0 48px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.sec-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 6px;
}

.sec-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sec-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.03em;
}

.sec-note {
  color: var(--ink-2);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.page-head {
  padding-top: 40px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  line-height: 1.45;
  margin: 12px 0 8px;
  letter-spacing: 0.03em;
}

.page-lede {
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 8px;
}

.car-maker {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 16px 0 0;
}

/* ---------- パンくず ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
}

.breadcrumb li {
  color: var(--ink-2);
}

.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--line-strong);
}

/* ---------- テーブル ---------- */
.tbl-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.tbl thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3eee2;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  font-size: 0.86rem;
}

.tbl thead th small {
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.75em;
  margin-left: 2px;
}

.tbl tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tbl tbody tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr:hover td {
  background: #fbf8f1;
}

.tbl .ta-right {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tbl-car {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.tbl-car:hover {
  color: var(--accent);
  text-decoration: underline;
}

.tbl-spec td:first-child,
.tbl-spec th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
  border-right: 1px solid var(--line);
  min-width: 150px;
}

.tbl-spec thead th:first-child {
  background: #f3eee2;
  z-index: 4;
}

.tbl-ratings td,
.tbl-ratings th {
  text-align: center;
}

.tbl-ratings td:first-child,
.tbl-ratings th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
  border-right: 1px solid var(--line);
  min-width: 150px;
}

.tbl-ratings thead th:first-child {
  background: #f3eee2;
  z-index: 4;
}

.tbl-kv th {
  width: 190px;
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  background: #faf7ef;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  font-size: 0.88rem;
}

.tbl-kv td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.tbl-kv tr:last-child th,
.tbl-kv tr:last-child td {
  border-bottom: none;
}

.tbl-spec tbody tr:hover td:first-child,
.tbl-ratings tbody tr:hover td:first-child {
  background: #fbf8f1;
}

/* ---------- チップ ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3em;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid transparent;
  font-family: var(--sans);
}

.chip-r4 {
  background: var(--r4);
  color: #fff;
}

.chip-r3 {
  background: var(--r3);
  color: #fff;
}

.chip-r25 {
  background: #e7f0e9;
  color: var(--r4);
  border-color: #c4dacb;
}

.chip-r2 {
  background: var(--r2);
  color: #fff;
}

.chip-r15 {
  background: #f6eedc;
  color: #8a6a1e;
  border-color: #e3d3ac;
}

.chip-r1 {
  background: var(--r1);
  color: #fff;
}

.legend-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--ink-2);
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- ノート・タグ ---------- */
.note-box {
  background: #fcf7ea;
  border: 1px solid #eadfc2;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 16px 0;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.06em;
}

.tag-add {
  background: #f3e2d8;
  color: var(--accent-dark);
  border: 1px solid #e2c3b2;
}

.tag-base {
  background: #e4e8ee;
  color: #40506a;
  border: 1px solid #c9d2de;
}

/* ---------- タイプ表・用途 ---------- */
.tbl-types td:first-child {
  white-space: nowrap;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 4px;
}

.usecase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.uc-label {
  font-size: 0.78rem;
  color: var(--ink-2);
  margin: 0 0 4px;
}

.uc-car {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.12rem;
  margin: 0 0 6px;
  line-height: 1.5;
}

.uc-desc {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.8;
}

/* ---------- ハイライト ---------- */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hl-block h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

/* ---------- ランキングリスト ---------- */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rk-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-bottom: 1px solid var(--line);
}

.rk-item:last-child {
  border-bottom: none;
}

.rk-no {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink-2);
}

.rk-1 .rk-no {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.rk-2 .rk-no {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.rk-3 .rk-no {
  background: var(--r2);
  color: #fff;
  border-color: var(--r2);
}

.rk-body {
  min-width: 0;
}

.rk-name {
  font-weight: 700;
}

.rk-name a {
  color: var(--ink);
  text-decoration: none;
}

.rk-name a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.rk-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.rk-value {
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 価格チャート ---------- */
.price-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 8px;
}

.pc-row {
  display: grid;
  grid-template-columns: 150px 1fr 130px;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
}

.pc-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-label:hover {
  color: var(--accent);
  text-decoration: underline;
}

.pc-track {
  position: relative;
  height: 24px;
  background: #f1ebdd;
  border-radius: 6px;
}

.pc-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: var(--accent);
  opacity: 0.88;
  border-radius: 5px;
}

.pc-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 0;
  border-left: 2px dashed var(--accent-dark);
}

.pc-value {
  font-family: var(--mono);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.pc-value small {
  font-size: 0.72em;
  margin-left: 2px;
}

.pc-axis {
  padding-top: 0;
  align-items: start;
}

.pc-ticks {
  height: 26px;
  background: none;
  border-top: 1px solid var(--line-strong);
  position: relative;
  margin-top: 2px;
}

.pc-tick {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}

.pc-tick-unit {
  transform: none;
}

/* ---------- サイズチャート ---------- */
.size-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
}

.size-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.size-chart .sz-name {
  font-family: var(--sans);
  font-weight: 700;
}

.size-chart .sz-dims,
.size-chart .sz-note {
  font-family: var(--mono);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.lg-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lg-item i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  display: inline-block;
}

.lg-baseline i {
  background: #fff;
  border: 2px dashed var(--ink-3);
}

.chart-note {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 10px;
}

/* ---------- 車種カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.model-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(30, 42, 58, 0.08);
  transform: translateY(-2px);
}

.mc-head {
  margin-bottom: 12px;
}

.mc-maker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 2px;
}

.mc-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.32rem;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.mc-type {
  font-size: 0.8rem;
  color: var(--ink-2);
  margin: 0;
}

.mc-tags {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.mc-specs {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}

.mc-specs div {
  display: flex;
  flex-direction: column;
}

.mc-specs dt {
  font-size: 0.72rem;
  color: var(--ink-2);
}

.mc-specs dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.mc-cta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.mc-cta span {
  margin-left: 4px;
}

/* ---------- 条件カード ---------- */
.cond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.cond-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.cond-title {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 2px;
}

.cond-car {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.cond-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--ink-2);
}

.cond-list li {
  padding-left: 1em;
  position: relative;
}

.cond-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.base-search {
  margin-top: 20px;
  background: var(--navy);
  color: #f0ecdf;
  border-radius: var(--radius);
  padding: 22px 24px;
}

.bs-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.bs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 10px;
}

.bs-list li {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.bs-note {
  margin: 0;
  font-size: 0.86rem;
  color: #cfc9b8;
}

/* ---------- チェックリスト ---------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.check-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.check-h {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.check-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

/* ---------- 修正点・方針 ---------- */
.corr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.corr-list li {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 14px;
  margin-bottom: 14px;
}

.corr-title {
  font-weight: 700;
  margin: 0 0 2px;
}

.corr-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.corr-list-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.policy-list li {
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 6px;
}

.policy-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.about-h {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ---------- 用語 ---------- */
.term-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.term {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}

.term-t {
  font-weight: 700;
  margin: 0 0 4px;
}

.term-d {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* ---------- 車種詳細 ---------- */
.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ra-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ra-label {
  font-size: 0.8rem;
  color: var(--ink-2);
  margin: 0;
}

.ra-value {
  margin: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.tl-period {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 2px;
  color: var(--accent-dark);
}

.tl-text {
  margin: 0;
}

.price-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.ps-range {
  margin: 0 0 6px;
}

.ps-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.ps-value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.35rem;
}

.ps-note {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.ps-under {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.mini-h {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 800;
  margin: 14px 0 6px;
}

.example-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.target-dl {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.target-dl > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.target-dl > div:last-child {
  border-bottom: none;
}

.target-dl dt {
  color: var(--ink-2);
  font-size: 0.86rem;
}

.target-dl dd {
  margin: 0;
  font-weight: 600;
}

.pro-list,
.con-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pro-list li,
.con-list li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 8px;
}

.pro-list li::before {
  content: '＋';
  position: absolute;
  left: 0;
  color: var(--r4);
  font-weight: 700;
}

.con-list li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.source-list li {
  margin-bottom: 6px;
  padding-left: 1.2em;
  position: relative;
}

.source-list li::before {
  content: '↗';
  position: absolute;
  left: 0;
  color: var(--ink-3);
  font-size: 0.8em;
  top: 0.2em;
}

.sources-empty {
  color: var(--ink-3);
  font-size: 0.86rem;
}

.car-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.car-nav-link {
  flex: 1;
  max-width: 48%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transition: border-color 0.15s ease;
}

.car-nav-link:hover {
  border-color: var(--accent);
}

.car-nav-link span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-2);
  font-weight: 400;
  font-family: var(--mono);
}

.car-nav-link.next {
  text-align: right;
  margin-left: auto;
}

/* ---------- その他 ---------- */
.more-link {
  margin-top: 18px;
  font-weight: 700;
}

.more-link a {
  text-decoration: none;
}

.more-link a:hover {
  text-decoration: underline;
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 64px;
  background: var(--navy);
  color: #e9e4d8;
  padding: 40px 0 20px;
  font-size: 0.86rem;
}

.site-footer a {
  color: #f0e9da;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.3fr;
  gap: 32px;
  padding-bottom: 24px;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.footer-text {
  color: #c9c3b2;
  font-size: 0.8rem;
  line-height: 1.8;
  margin: 0 0 6px;
}

.footer-head {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: #a89f88;
  margin: 0 0 8px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.74rem;
  color: #a89f88;
}

.footer-bottom p {
  margin: 0;
}

.footer-copy {
  white-space: nowrap;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hl-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .check-grid,
  .corr-list-wide,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 14px 24px rgba(30, 42, 58, 0.12);
    padding: 8px 16px 14px;
  }

  .nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current='page'] {
    border-bottom-color: var(--accent);
  }

  .pc-row {
    grid-template-columns: 110px 1fr 92px;
    gap: 8px;
  }

  .brand-tagline {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0 34px;
  }

  .tbl {
    font-size: 0.86rem;
  }

  .tbl tbody td,
  .tbl thead th {
    padding: 10px;
  }

  .rk-item {
    grid-template-columns: 44px 1fr;
  }

  .rk-value {
    grid-column: 2;
    justify-self: start;
    font-size: 0.86rem;
  }

  .hero {
    padding: 36px 0 30px;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .target-dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .car-nav-link {
    max-width: 50%;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .more-link {
    display: none;
  }

  body {
    background: #fff;
  }
}
