/* DA17V 5AGS 解説サイト 共通スタイル（外部リソースなし・システムフォント） */
:root {
  --navy: #1b2f4e;
  --navy-deep: #12203a;
  --navy-soft: #2c4468;
  --green: #1f9d66;
  --green-strong: #157a4f;
  --green-pale: #e7f4ec;
  --ink: #26303d;
  --ink-sub: #4a5563;
  --line: #d5dce5;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --warn: #9a4a14;
  --warn-pale: #fbf1e8;
  --radius: 12px;
  --gutter: 16px;
  --content: 760px;
  --wide: 1080px;
  --img-col: 600px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green-strong); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

h1, h2, h3, .headline {
  word-break: auto-phrase;
  text-wrap: balance;
  line-break: strict;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

@supports not (word-break: auto-phrase) {
  h1, h2, h3, .headline { word-break: keep-all; }
}

p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; color: #fff; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--green);
}
.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; letter-spacing: 0.04em;
  min-height: 44px;
}
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { font-size: 15px; line-height: 1.3; }
.brand__text small { display: block; font-size: 11px; font-weight: 400; color: #b9c7d8; letter-spacing: 0.06em; }

.gnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px 4px;
}
.gnav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: #dfe7f1; text-decoration: none; font-size: 14px; border-radius: 8px;
}
.gnav a:hover { background: var(--navy-soft); color: #fff; }
.gnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }

@media (max-width: 640px) {
  .site-header__inner { padding: 6px var(--gutter) 0; }
  .gnav { width: 100%; }
  .gnav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .gnav a { justify-content: center; text-align: center; padding: 0 2px; font-size: 13px; line-height: 1.3; }
}

/* ---------- 共通レイアウト ---------- */
main { display: block; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: var(--wide); }

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--green-pale); }
.section--navy { background: var(--navy); color: #e6edf5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #9fe3c0; }

.eyebrow {
  display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--green-strong);
}
.section--navy .eyebrow { color: #8fdcb5; }

h2.sec-title { font-size: clamp(24px, 4.6vw, 32px); margin: 0 0 20px; }
h3 { font-size: 19px; margin: 0 0 8px; }

.lead { font-size: 17px; color: var(--ink); }
.note { font-size: 14px; color: var(--ink-sub); line-height: 1.75; }

/* 結論ボックス（見出し直下に答えを置く） */
.answer {
  border-left: 4px solid var(--green);
  background: var(--green-pale);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 24px;
}
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--navy); }

/* ページ見出し（下層ページ） */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e6edf5;
  padding: 48px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 46%;
  background: var(--navy-soft); transform: skewX(-18deg); opacity: 0.45; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 6vw, 42px); margin: 0 0 14px; }
.page-hero .eyebrow { color: #8fdcb5; }
.page-hero p { max-width: 640px; font-size: 16px; }
.breadcrumb { font-size: 13px; margin: 0 0 18px; color: #b9c7d8; }
.breadcrumb a { color: #cfe3f5; }

/* 画像セクション（トップ） */
.panel { background: var(--bg-soft); padding: 0; }
.panel__img { max-width: var(--img-col); margin: 0 auto; position: relative; }
.panel__img img { width: 100%; height: auto; }
.hotspot {
  position: absolute; display: block; border-radius: 10px;
}
.hotspot:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--green); }
.hotspot:hover { background: rgba(31, 157, 102, 0.10); }

/* カード */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green);
  border-radius: var(--radius); padding: 20px 18px;
}
.card h3 { font-size: 18px; }
.card p:last-child { margin-bottom: 0; }
.card__tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--navy); color: #fff; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.card__tag--green { background: var(--green-strong); }
.card--warn { border-top-color: var(--warn); }
.card--warn .card__tag { background: var(--warn); }

/* 注意書きの帯 */
.callout {
  background: var(--warn-pale); border: 1px solid #ecd2bd; border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; margin: 16px 0 0;
}
.callout strong { color: var(--warn); }

/* 表 */
.table-scroll { width: 100%; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
table.compare caption { text-align: left; font-size: 14px; color: var(--ink-sub); padding-bottom: 8px; }
table.compare th, table.compare td { border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: top; text-align: left; }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.compare thead th.is-focus { background: var(--green-strong); }
table.compare tbody th { color: var(--navy); width: 24%; background: var(--bg-soft); font-weight: 600; }
table.compare td.is-focus { background: var(--green-pale); }

@media (max-width: 640px) {
  table.compare, table.compare thead, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: 100%; }
  table.compare thead { display: none; }
  table.compare tbody tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
  table.compare tbody th { width: 100%; background: var(--navy); color: #fff; }
  table.compare td { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
  table.compare td::before { content: attr(data-label); font-weight: 600; color: var(--navy); font-size: 13px; }
  table.compare td.is-focus::before { color: var(--green-strong); }
}

/* 図 */
figure.fig { margin: 24px 0; }
figure.fig figcaption { font-size: 14px; color: var(--ink-sub); margin-top: 10px; line-height: 1.7; }
.fig-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }

@media (max-width: 640px) {
  .fig-box { padding: 6px; }
  .stepper { padding: 12px 10px; }
}

/* 用語リスト */
dl.terms { margin: 0; display: grid; gap: 12px; }
dl.terms div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
dl.terms dt { font-weight: 600; color: var(--navy); }
dl.terms dt .num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px;
  background: var(--green-strong); color: #fff; border-radius: 50%; font-size: 13px; vertical-align: 1px;
}
dl.terms dd { margin: 4px 0 0; font-size: 15px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 10px;
  background: var(--green-strong); color: #fff; text-decoration: none; font-weight: 600;
  border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* 次のページ */
.pager { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--navy); background: #fff;
}
.pager a:hover { border-color: var(--green); }
.pager small { display: block; color: var(--ink-sub); font-size: 12px; letter-spacing: 0.08em; }
.pager span { font-weight: 600; }
.pager .next { text-align: right; }
@media (min-width: 640px) { .pager .next:only-child { grid-column: 2; } }

/* フッター */
.site-footer { background: var(--navy-deep); color: #c3cfdd; padding: 40px 0 32px; font-size: 14px; }
.site-footer a { color: #e6edf5; }
.site-footer nav ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.site-footer p { margin: 0 0 8px; line-height: 1.75; }

/* ---------- トップ：画像と本文の2段組（PC） ---------- */
.duo--soft { background: var(--bg-soft); }
.duo--soft > .section { background: transparent; }
@media (min-width: 1024px) {
  .duo {
    max-width: var(--wide); margin: 0 auto; padding: 56px var(--gutter);
    display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 56px; align-items: start;
  }
  .duo + .duo { border-top: 1px solid var(--line); }
  .duo--soft { max-width: none; padding-left: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); }
  .duo > .panel { background: transparent; position: sticky; top: 24px; }
  .duo > .panel .panel__img { max-width: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(18, 32, 58, 0.12); }
  .duo > .section { padding: 8px 0 0; border-top: 0; }
  .duo > .section .wrap { padding: 0; max-width: none; }
  .duo--top { padding-top: 40px; }
}

/* ---------- トップ ---------- */
.summary-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.summary-list li {
  counter-increment: s; position: relative; padding: 16px 16px 16px 60px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.summary-list li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: 50%; font-weight: 600; font-size: 15px; line-height: 1;
}

.qa-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.qa-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.qa-list .q { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font-size: 18px; }
.qa-list .q b { color: var(--green-strong); font-weight: 600; flex: none; }
.qa-list p { margin-bottom: 0.4em; }
.qa-list p:last-child { margin-bottom: 0; }
.more { margin: 4px 0 0; font-size: 15px; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- 仕組み：変速ステップ ---------- */
.stepper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stepper__controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stepper__controls .btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.step-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.step-btns .btn { padding: 6px 4px; font-size: 14px; background: #fff; color: var(--navy); border: 2px solid var(--line); }
.step-btns .btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.stepper__text { min-height: 7.5em; margin-top: 12px; }
.stepper__text h3 { margin-bottom: 4px; }
.stepper__text p { margin: 0; }

.shift-svg .clutch-gap { transition: transform 0.45s ease; }
.shift-svg .flow { transition: opacity 0.35s ease; }
.shift-svg .sleeve { transition: transform 0.5s ease; }

/* 年表 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--navy);
}
.timeline li.is-key::before { border-color: var(--green); background: var(--green); }
.timeline li.is-recall::before { border-color: var(--warn); }
.timeline time { display: block; font-weight: 600; color: var(--navy); font-size: 17px; letter-spacing: 0.04em; }
.timeline h3 { font-size: 17px; margin: 2px 0 4px; }
.timeline p { margin: 0; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; color: var(--navy); }
.chips li.is-main { background: var(--navy); color: #fff; border-color: var(--navy); }

/* FAQ（答えは常に表示） */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.faq__q { font-size: 17px; margin: 0 0 6px; padding-left: 2em; text-indent: -2em; }
.faq__q::before { content: "Q."; color: var(--green-strong); display: inline-block; width: 2em; text-indent: 0; }
.faq__a { font-size: 15px; }
.faq__a p:last-child { margin-bottom: 0; }

/* チェックリスト */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist label {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer; min-height: 44px;
}
.checklist input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--green-strong); flex: none; }
.checklist b { color: var(--navy); display: block; }
.checklist small { display: block; color: var(--ink-sub); font-size: 14px; line-height: 1.7; }

/* 重さ比較バー */
.weight { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.weight li { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 10px; }
.weight .bar { height: 26px; border-radius: 6px; background: var(--line); position: relative; }
.weight .bar i { display: block; height: 100%; border-radius: 6px; background: var(--navy-soft); }
.weight .is-focus .bar i { background: var(--green-strong); }
.weight b { color: var(--navy); font-size: 15px; }

.pc { display: inline; }
@media (max-width: 640px) { .pc { display: none; } }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
