/* =========================================================
   奥多摩不動産案内所 — 共有スタイル
   方向性: 奥多摩の森と多摩川、和の落ち着いた真面目さ。
   署名要素: 地形図の等高線（GISレポート＝標高データを扱う商品と、山の町という土地の両方に由来）。
   ブランド色を既存サイトに合わせたい場合は :root のトークンだけ調整すれば全ページに反映されます。
   ========================================================= */

:root {
  --ink:      #22302a;   /* 本文（深い杉色の墨） */
  --ink-soft: #4b574f;
  --paper:    #f7f4ec;   /* 和紙のような温かい地色 */
  --paper-2:  #efeadd;
  --forest:   #2e5d4b;   /* 主色：杉の深緑 */
  --forest-d: #23483a;
  --river:    #35706e;   /* 多摩川のくすんだ青緑（リンク・見出しアクセント） */
  --ochre:    #b07a2e;   /* 奥多摩の紅葉に寄せたCTAの温かい山吹 */
  --ochre-d:  #97671f;
  --line:     #e2dccb;   /* 罫・境界 */
  --danger:   #a4472f;   /* 「注意」系 */
  --ok:       #3d6b4f;   /* 「強み」系 */

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --wrap: 960px;
  --header-wrap: 1180px;
  --measure: 40rem;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--forest-d); }

/* 等高線の署名モチーフ（薄い背景パターン） */
.contour {
  position: relative;
  background-image:
    repeating-radial-gradient(circle at 22% 30%,
      transparent 0 26px, rgba(46,93,75,.05) 26px 27px);
}

/* ---------- レイアウト ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--measure); }
section { padding: 56px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,244,236,.92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px;max-width: var(--header-wrap); }
.brand { font-family: var(--serif); font-weight: 600; color: var(--forest-d); text-decoration: none; font-size: 1.02rem; letter-spacing: .02em; }
.brand small { display:block; font-family:var(--sans); font-weight:400; font-size:.68rem; color:var(--ink-soft); letter-spacing:.12em; }
.nav { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .8rem; }
.nav a:hover { color: var(--forest); }
.nav .btn { font-size: .75rem; }
.nav-group { position: relative; }
.nav-group summary {
  display: flex; align-items: center; gap: 5px; padding: 8px 2px;
  color: var(--ink); font-size: .8rem; cursor: pointer; list-style: none;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "⌄"; color: var(--river); font-size: .72rem; line-height: 1; }
.nav-group[open] summary, .nav-group summary:hover { color: var(--forest); }
.nav-submenu {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 2;
  display: grid; width: max-content; min-width: 210px; max-width: 310px;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(247,244,236,.98); box-shadow: 0 12px 24px rgba(34,48,42,.14);
  transform: translateX(-50%);
}
.nav-submenu a { padding: 9px 10px; border-radius: 8px; line-height: 1.5; }
.nav-submenu a:hover { background: var(--paper-2); }
.nav-cta { flex: none; font-size: .75rem; }
.nav-toggle-control {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  color: var(--forest-d);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle-control:focus-visible + .nav-toggle {
  outline: 3px solid var(--river);
  outline-offset: 2px;
}
.nav-toggle-control:checked + .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-control:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-control:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--ochre); color: #fff; text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.btn:hover { background: var(--ochre-d); color:#fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest-d); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }

.btn.karte { flex: none; font-size: .75rem; color:#fff; background: var(--forest); }
.btn.karte:hover { background: var(--forest-d); }

/* ---------- ヒーロー ---------- */
.hero { padding: 68px 0 48px; }
.eyebrow { font-size: .76rem; letter-spacing: .22em; color: var(--river); font-weight: 600; text-transform: none; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.45; margin: .5em 0 .4em; letter-spacing: .01em;
}
.hero p.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: var(--measure); }
.hero .cta-row { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 見出し ---------- */
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem,3vw,1.7rem); color: var(--forest-d); margin: 0 0 .2em; letter-spacing:.01em; }
h2 .num { font-family: var(--sans); font-size: .8rem; color: var(--ochre); letter-spacing:.18em; display:block; margin-bottom:.3em; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; color: var(--ink); margin: 1.4em 0 .3em; }
.section-intro { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 1.6em; }

/* ---------- チェックリスト ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--forest); font-weight: 700;
}

/* ---------- カード ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: 0 1px 2px rgba(34,48,42,.03);
}
.card h3 { margin-top: 0; }
.card .tag { font-size: .72rem; letter-spacing: .1em; color: var(--river); }

/* ---------- 比較テーブル ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; background:#fff; border-radius: var(--r); overflow:hidden; border:1px solid var(--line); }
table.compare th, table.compare td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
table.compare thead th { background: var(--forest); color: #fff; font-weight: 600; letter-spacing:.02em; }
table.compare tbody th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }

/* ---------- プロセス（本当に順序があるものだけ番号） ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 24px 46px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.steps li::after {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps li h3 { margin: .1em 0 .2em; }

/* ---------- コールアウト ---------- */
.callout { background: var(--paper-2); border-left: 4px solid var(--forest); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; color: var(--ink); }
.callout.warn { border-left-color: var(--danger); }
.note { font-size: .85rem; color: var(--ink-soft); }

/* ---------- CTA（無料AI診断） ---------- */
.cta {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-d) 100%);
  color: #fff; border-radius: 16px; padding: 34px 28px; text-align: center;
}
.cta .eyebrow { color: #cfe3d7; }
.cta h2 { color: #fff; }
.cta p { color: #e7efe8; max-width: 34rem; margin: .6em auto 1.2em; }
.cta ul.included { list-style:none; padding:0; margin: 0 auto 1.4em; max-width: 34rem; text-align:left; display:grid; gap:8px; }
.cta ul.included li { padding-left: 26px; position: relative; color:#eef4ef; }
.cta ul.included li::before { content:"✓"; position:absolute; left:0; color:#a9d3b6; font-weight:700; }
.cta .btn { background: var(--ochre); }
.cta .btn:hover { background: var(--ochre-d); }
.cta .fine { color:#bcd0c1; font-size:.78rem; margin-top:12px; }

/* ---------- ディレクトリ（3つの入口） ---------- */
.gateway { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gateway a {
  display: block; text-decoration: none; color: var(--ink); background:#fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .15s, transform .15s;
}
.gateway a:hover { border-color: var(--forest); transform: translateY(-2px); }
.gateway .who { font-size: .78rem; color: var(--river); letter-spacing:.08em; }
.gateway .to { font-family: var(--serif); font-weight:600; color: var(--forest-d); font-size: 1.08rem; margin:.3em 0; }
.gateway .arrow { color: var(--ochre); font-weight:700; }

/* ---------- ガイド記事カード（随時追加できる枠） ---------- */
.articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.articles .card time { font-size:.75rem; color: var(--ink-soft); }
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 8.5rem 6.5rem minmax(0, 1fr) auto;
  align-items: center; gap: 16px; padding: 15px 4px;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.news-item:hover { color: var(--forest); background: rgba(255,255,255,.35); }
.news-item time {
  justify-self: start; color: var(--ink-soft);
  font-size: .76rem; line-height: 1.55; font-weight: 500;
  letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.news-item .tag {
  justify-self: start; padding: 3px 9px; border: 1px solid rgba(53,112,110,.35);
  border-radius: 999px; color: var(--river); background: rgba(255,255,255,.45);
  font-size: .68rem; line-height: 1.55; letter-spacing: .08em; white-space: nowrap;
}
.news-title { font-weight: 500; }
.news-arrow {
  display: grid; place-items: center; width: 27px; height: 27px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ochre);
  background: rgba(255,255,255,.55); line-height: 1;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.news-item:hover .news-arrow { color: var(--forest); border-color: var(--forest); transform: translateX(3px); }
.prep { color: var(--ink-soft); background: var(--paper-2); border:1px dashed var(--line); border-radius: var(--r); padding: 28px; text-align:center; }

/* ---------- フッター ---------- */
.site-foot { background: var(--forest-d); color: #dfe8e1; padding: 40px 0; margin-top: 20px; }
.site-foot a { color: #cfe0d5; text-decoration: none; }
.site-foot a:hover { color:#fff; text-decoration: underline; }
.site-foot .links { display:flex; gap:18px; flex-wrap:wrap; font-size:.85rem; margin: 14px 0; }
.site-foot .copy { font-size:.78rem; color:#a9c1b2; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 760px) {
  .grid.cols-2, .grid.cols-3, .gateway, .articles { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: auto 1fr auto; gap: 5px 12px; padding: 14px 2px; }
  .news-item time { grid-column: 1; }
  .news-item .tag { grid-column: 2; }
  .news-title { grid-column: 1 / 3; }
  .news-arrow { grid-column: 3; grid-row: 1 / 3; }
  section { padding: 42px 0; }
  .site-head .wrap { min-height: 58px; position: relative; gap: 10px; }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; font-size: .96rem; }
  .brand small { font-size: .61rem; letter-spacing: .08em; }
  .nav-cta ,.btn.karte{
    order: 2;
    padding: 9px 11px;
    font-size: .76rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .nav-toggle { order: 3; display: flex; }
  .nav {
    order: 4;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 1px);
    display: none;
    margin-left: 0;
    padding: 10px;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(247,244,236,.98);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: 0 12px 24px rgba(34,48,42,.12);
  }
  .nav-toggle-control:checked ~ .nav { display: flex; }
  .nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .94rem;
  }
  .nav a:hover { background: var(--paper-2); }
  .nav a.hide-sp { display: none; }
  .nav-group { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-group summary {
    justify-content: space-between; padding: 11px 12px;
    color: var(--forest-d); font-size: .94rem; font-weight: 700;
  }
  .nav-group summary::after { content: "+"; font-size: 1.05rem; }
  .nav-group[open] summary::after { content: "−"; }
  .nav-submenu {
    position: static; width: auto; min-width: 0; max-width: none;
    padding: 0 0 8px 12px; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; transform: none;
  }
  .nav-submenu a { padding: 8px 12px; font-size: .9rem; }
}

/* ---------- レイアウト・ユーティリティ（追加） ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- パンくず ---------- */
.crumbs { font-size: .8rem; color: var(--ink-soft); margin: 0 0 20px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }

/* ---------- 強調 ---------- */
.accent { color: var(--forest); }
.mark { background: linear-gradient(transparent 62%, var(--paper-2) 62%); padding: 0 .05em; }

/* ---------- 区切りリスト（要件の列挙など） ---------- */
ul.clean { list-style: none; margin: 14px 0; padding: 0; }
ul.clean li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px dashed var(--line); }
ul.clean li:last-child { border-bottom: 0; }
ul.clean li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--river); }

/* ---------- コールアウトのラベル（.callout / .callout.warn の見出し行） ---------- */
.callout .lbl { display: block; font-weight: 700; color: var(--forest-d); font-size: .82rem; letter-spacing: .03em; margin-bottom: 4px; }
.callout.warn .lbl { color: var(--danger); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 目次 ---------- */
.toc { margin: 32px 0; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: 0 1px 2px rgba(34,48,42,.03); }
.toc h2 { font-size: .82rem; margin: 0 0 12px; color: var(--ink-soft); letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 1.25em; }
.toc li { margin: 7px 0; font-size: .93rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--forest); text-decoration: underline; }

/* ---------- 期限・重要数値を並べる2枠カード ---------- */
.clocks { margin: 30px 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(34,48,42,.03); overflow: hidden; }
.clocks-head { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--forest-d); }
.clocks-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); flex: none; box-shadow: 0 0 0 4px rgba(46,93,75,.13); }
.clocks-grid { display: grid; grid-template-columns: 1fr 1fr; }
.clock { padding: 18px; border-right: 1px solid var(--line); }
.clock:last-child { border-right: 0; }
.clock .when { font-weight: 700; font-size: 1.3rem; color: var(--forest); line-height: 1.3; }
.clock .when span { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.clock .what { font-size: .85rem; color: var(--ink-soft); margin-top: 5px; }
@media (max-width: 560px) {
  .clocks-grid { grid-template-columns: 1fr; }
  .clock { border-right: 0; border-bottom: 1px solid var(--line); }
  .clock:last-child { border-bottom: 0; }
}

/* ---------- 表内キャプション（.table-scroll table caption） ---------- */
.table-scroll caption { caption-side: top; text-align: left; font-size: .8rem; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- FAQ（アコーディオン） ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin: 12px 0; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 46px 16px 18px; position: relative; font-weight: 700; color: var(--forest-d); font-size: .96rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 18px; top: 15px; color: var(--river); font-weight: 700; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 18px 18px; color: var(--ink-soft); font-size: .93rem; }
.faq .ans p { margin: 0; }

/* ---------- 監修者クレジット ---------- */
.supervisor { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 2px rgba(34,48,42,.03); }
.supervisor .badge { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.supervisor .meta .role { font-size: .75rem; letter-spacing: .1em; color: var(--river); font-weight: 700; margin: 0 0 3px; }
.supervisor .meta .name { font-size: 1.08rem; font-weight: 700; color: var(--forest-d); margin: 0 0 4px; font-family: var(--serif); }
.supervisor .meta p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ---------- 免責事項ボックス ---------- */
.disclaimer { padding: 30px 0 8px; }
.disclaimer .box { font-size: .78rem; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; line-height: 1.85; }
.disclaimer .box strong { color: var(--forest-d); }
.disclaimer .updated { font-size: .76rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- スクロールで現れる演出（任意） ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 品質下限 ---------- */
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
