/* ジムニー病 — 共通スタイル
   パレット: 深緑 #1d2420 / #33523f、地 #f6f3ec、差し色の金 #e8a33d・#f2c063、沼の橙 #b4552d */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #20241f;
  --bg: #f6f3ec;
  --panel-dark: #1d2420;
  --panel-numa: #232b26;
  --green: #33523f;
  --line: #ddd6c6;
  --gold: #e8a33d;
  --gold-lt: #f2c063;
  --numa: #b4552d;
  --sub: #59615a;
  --sub-lt: #b9c4bb;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
img { max-width: 100%; }

/* ヘッダー */
.site-header {
  background: var(--panel-dark);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 36px;
  flex-wrap: wrap;
}
.site-header .brand { font-size: 24px; font-weight: 900; letter-spacing: .14em; }
.site-header .brand a { color: var(--bg); text-decoration: none; }
.site-header .brand small {
  font-size: 11px; font-weight: 400; letter-spacing: .08em;
  color: var(--sub-lt); margin-left: 10px;
}
.site-header nav { font-size: 14px; display: flex; flex-wrap: wrap; }
.site-header nav a { color: #dfe5df; text-decoration: none; margin-left: 26px; }
.site-header nav a:first-child { margin-left: 0; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }
.site-header nav a.numa { color: var(--gold); font-weight: 700; }

/* ヒーロー（トップ） */
.hero { position: relative; height: min(660px, 92vh); min-height: 480px; overflow: hidden; background: var(--panel-dark); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,20,17,.38) 0%, rgba(16,20,17,0) 34%, rgba(16,20,17,0) 55%, rgba(16,20,17,.55) 100%);
}
.hero .title-block { position: absolute; left: 48px; top: 64px; color: #fff; }
.hero .kicker { font-size: 14px; letter-spacing: .3em; font-weight: 700; color: var(--gold-lt); margin-bottom: 10px; }
.hero h1 {
  font-size: clamp(56px, 9vw, 104px); font-weight: 900; letter-spacing: .06em;
  line-height: 1.05; text-shadow: 0 3px 22px rgba(0,0,0,.45);
}
.hero .tagline {
  margin-top: 16px; font-size: clamp(16px, 2.2vw, 21px); font-weight: 700;
  letter-spacing: .05em; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero .note {
  position: absolute; left: 48px; bottom: 118px; color: #eef1ee;
  font-size: 12.5px; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.numbers {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex;
  background: rgba(20,26,22,.88); color: var(--bg);
}
.numbers .cell { flex: 1; padding: 16px 28px 14px; border-right: 1px solid rgba(246,243,236,.18); }
.numbers .cell:last-child { border-right: none; }
.numbers .label { font-size: 12px; color: #c8d2c9; letter-spacing: .12em; margin-bottom: 5px; }
.numbers .value { font-size: 23px; font-weight: 900; letter-spacing: .03em; line-height: 1.4; }
.numbers .value small { font-size: 12.5px; font-weight: 400; color: #c8d2c9; margin-left: 8px; }

/* ページ見出し（下層ページ） */
.page-head { background: var(--panel-dark); color: var(--bg); padding: 40px 36px 34px; }
.page-head .inner { max-width: 1180px; margin: 0 auto; }
.page-head .kicker { font-size: 12px; letter-spacing: .26em; font-weight: 700; color: var(--gold-lt); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 900; letter-spacing: .05em; line-height: 1.35; }
.page-head .lead { margin-top: 10px; font-size: 15px; color: #dfe5df; max-width: 46em; }
.crumbs { max-width: 1180px; margin: 0 auto; padding: 14px 36px 0; font-size: 12.5px; color: var(--sub); }
.crumbs a { color: var(--sub); }

/* 本文レイアウト */
main { max-width: 1180px; margin: 0 auto; padding: 44px 36px 10px; }
main.narrow { max-width: 880px; }
h2.sec {
  font-size: 24px; font-weight: 900; letter-spacing: .08em; margin-bottom: 6px;
}
h2.sec .en { font-size: 12px; color: #7a837a; letter-spacing: .22em; font-weight: 700; margin-left: 12px; }
.sec-sub { font-size: 14px; color: var(--sub); margin-bottom: 22px; }
.prose h2 {
  font-size: 21px; font-weight: 900; letter-spacing: .05em;
  margin: 38px 0 12px; padding-top: 6px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15.5px; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 1.3em; font-size: 15.5px; }
.prose li { margin-bottom: 6px; }
.prose .src { font-size: 12.5px; color: var(--sub); margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; }

/* モデルカード */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 46px; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green);
  padding: 18px 18px 16px; display: block; text-decoration: none; color: var(--ink);
}
a.card:hover { border-color: var(--green); }
.card .model { font-size: 19px; font-weight: 900; }
.card .code { font-size: 12px; color: #8a7a4d; font-weight: 700; letter-spacing: .14em; margin: 3px 0 9px; }
.card .desc { font-size: 13.5px; line-height: 1.75; color: #3c423d; }
.card .price { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--green); }

/* 沼セクション */
.numa-sec { background: var(--panel-numa); color: #f0eee6; padding: 34px 38px 30px; margin-bottom: 46px; }
.numa-sec h2.sec { color: #f0eee6; }
.numa-sec h2.sec .en { color: #9fb3a2; }
.numa-sec .sec-sub { color: var(--sub-lt); }
.numa-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.numa-item { border: 1px solid #46534a; padding: 16px 14px 13px; display: block; text-decoration: none; }
.numa-item .t { font-size: 16px; font-weight: 900; color: var(--gold-lt); margin-bottom: 7px; }
.numa-item .d { font-size: 12.5px; line-height: 1.7; color: #ccd5cd; }
a.numa-item:hover { border-color: var(--gold); }

/* 記事リスト */
.articles { margin-bottom: 40px; }
.article-row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
}
.article-row:first-of-type { border-top: 1px solid var(--line); }
.tag {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 2px; color: #fff; background: var(--green);
}
.tag.numa { background: var(--numa); }
.tag.prep { background: #8a8f8a; }
.article-row .ttl { font-family: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif; font-size: 18.5px; font-weight: 700; }
.article-row .st { margin-left: auto; flex: none; font-size: 12.5px; color: #8a8f8a; }

/* 状況表・データ表 */
table.spec {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); font-size: 14.5px; margin-bottom: 18px;
}
table.spec th, table.spec td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
table.spec th { width: 11em; background: #efece2; font-weight: 700; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: none; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 14.5px; margin-bottom: 18px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.data thead th { background: var(--green); color: #fff; font-weight: 700; }

/* 目的ブロック（ハブ） */
.purposes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 46px; }
.purpose { background: #fff; border: 1px solid var(--line); padding: 18px; }
.purpose h3 { font-size: 16.5px; font-weight: 900; margin-bottom: 6px; }
.purpose h3 a { color: var(--ink); text-decoration: none; }
.purpose h3 a:hover { color: var(--green); text-decoration: underline; }
.purpose p { font-size: 13.5px; line-height: 1.75; color: #3c423d; }
.purpose .soon { margin-top: 8px; font-size: 12px; color: #8a8f8a; }

/* 固定ページの注記ボックス */
.notice-box { border: 1px solid var(--line); background: #fff; padding: 18px 20px; margin-bottom: 20px; }
.notice-box .t { font-weight: 900; margin-bottom: 6px; }
.notice-box p { font-size: 14px; margin-bottom: 8px; }
.notice-box p:last-child { margin-bottom: 0; }

/* フッター */
.site-footer { background: var(--panel-dark); color: var(--sub-lt); padding: 30px 36px 34px; font-size: 12.5px; line-height: 1.9; margin-top: 40px; }
.site-footer .inner { max-width: 1180px; margin: 0 auto; }
.site-footer .fbrand { color: var(--bg); font-size: 17px; font-weight: 900; letter-spacing: .14em; margin-bottom: 6px; }
.site-footer nav { margin: 10px 0 4px; font-size: 13px; }
.site-footer nav a { color: #dfe5df; text-decoration: none; margin-right: 22px; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { color: #8b968c; }

/* 記事 */
.article-meta {
  max-width: 880px; margin: 0 auto; padding: 16px 36px 0;
  font-size: 12.5px; color: var(--sub);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.article-meta .tag { align-self: center; }
.prose h3 { font-size: 17px; font-weight: 900; margin: 26px 0 8px; }
.prose table.spec, .prose table.data { margin-top: 6px; }
.prose .fig { margin: 18px 0; }
.prose .fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.prose .fig figcaption { font-size: 12.5px; color: var(--sub); margin-top: 6px; }
.related { border-top: 2px solid var(--green); margin-top: 40px; padding-top: 16px; }
.related .t { font-weight: 900; font-size: 15px; margin-bottom: 10px; }
.related ul { list-style: none; margin: 0; }
.related li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.related li:last-child { border-bottom: none; }
.stance-note {
  border-left: 4px solid var(--gold); background: #fff;
  padding: 12px 16px; font-size: 13.5px; margin: 18px 0;
}
/* 計算ツール */
.tool-box { background: #fff; border: 1px solid var(--line); padding: 20px; margin: 18px 0; }
.tool-box label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tool-box select, .tool-box input {
  font-size: 16px; padding: 8px 10px; border: 1px solid #b9beb4;
  border-radius: 3px; width: 100%; margin-bottom: 14px; background: #fff;
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.tool-result { background: var(--panel-numa); color: #f0eee6; padding: 16px 20px; margin-top: 6px; }
.tool-result .r { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; border-bottom: 1px solid #46534a; }
.tool-result .r:last-child { border-bottom: none; }
.tool-result .r b { color: var(--gold-lt); font-size: 17px; }
@media (max-width: 900px) {
  .article-meta { padding: 14px 20px 0; }
  .tool-grid { grid-template-columns: 1fr; }
}

/* レスポンシブ */
@media (max-width: 900px) {
  .models { grid-template-columns: repeat(2, 1fr); }
  .numa-grid { grid-template-columns: repeat(2, 1fr); }
  .purposes { grid-template-columns: 1fr; }
  .numbers { flex-direction: column; position: static; }
  .hero { height: auto; min-height: 0; }
  .hero img { height: 340px; }
  .hero .title-block { left: 22px; top: 30px; }
  .hero .note {
    position: static; background: var(--panel-dark);
    padding: 10px 22px 4px; text-shadow: none;
  }
  .numbers .cell { border-right: none; border-bottom: 1px solid rgba(246,243,236,.18); }
  .numbers .cell:last-child { border-bottom: none; }
  .site-header { padding: 12px 20px; }
  .site-header nav a { margin-left: 16px; }
  main { padding: 32px 20px 6px; }
  .crumbs { padding: 12px 20px 0; }
  .page-head { padding: 30px 20px 26px; }
  .numa-sec { padding: 26px 20px 22px; }
  table.spec th { width: 8.5em; }
}
@media (max-width: 520px) {
  .models { grid-template-columns: 1fr; }
  .numa-grid { grid-template-columns: 1fr; }
  .article-row { flex-wrap: wrap; gap: 8px; }
  .article-row .st { margin-left: 0; }
}
