@charset "UTF-8";

/* =========================================================
   住まい選びガイド — homebuying-guide.com
   Design system: 建築図面 (architectural drafting)
   ========================================================= */

:root {
  /* --- Color: drawn from Japanese drafting + housing materials --- */
  --ink:        #16324F;   /* 藍 — blueprint ink */
  --ink-mid:    #3D5B78;
  --ink-soft:   #62798F;
  --paper:      #FAF8F4;   /* drafting paper */
  --paper-alt:  #F2EFE8;
  --line:       #D5DDE4;   /* grid rule */
  --line-soft:  #E6EBEF;
  --hinoki:     #E8DCC8;   /* 檜 — warm timber */
  --hinoki-dp:  #CDB894;
  --seal:       #BE3A26;   /* 朱 — hanko vermilion */
  --seal-dk:    #982C1B;
  --seal-tint:  #FBEDEA;
  --white:      #FFFFFF;
  --ok:         #2F6B4F;

  /* --- Type --- */
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho",
             "YuMincho", "MS PMincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* --- Spacing / layout --- */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --gutter: 20px;
  --radius: 3px;

  --shadow-sm: 0 1px 2px rgba(22, 50, 79, .06);
  --shadow-md: 0 2px 14px rgba(22, 50, 79, .08);
  --shadow-lg: 0 8px 34px rgba(22, 50, 79, .12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--paper);
  /* Faint floor-plan grid — the drafting motif, at low opacity */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--seal); text-decoration-color: currentColor; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .4em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

.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;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--paper { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink a { color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.45; margin: 0 0 .6em; letter-spacing: .01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.section--ink .eyebrow { color: var(--hinoki-dp); }
.section--ink .eyebrow::after { background: rgba(255,255,255,.2); }

.h-xl { font-size: clamp(28px, 5.4vw, 46px); line-height: 1.38; }
.h-lg { font-size: clamp(23px, 3.4vw, 32px); }
.h-md { font-size: clamp(19px, 2.4vw, 23px); }

.lead { font-size: clamp(15px, 1.9vw, 17px); color: var(--ink-mid); line-height: 2; }
.small { font-size: 13px; color: var(--ink-soft); line-height: 1.85; }
.tiny { font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.num { font-family: var(--mono); font-weight: 500; font-feature-settings: "tnum" 1; }

/* ---------- Signature: drafting dimension line ---------- */
.dimline {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 26px; color: var(--ink-soft);
}
.dimline::before, .dimline::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.dimline span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  white-space: nowrap; padding-inline: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--ink); color: var(--white);
  font-size: 12px; line-height: 1.6;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding-block: 7px; flex-wrap: wrap;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--hinoki); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: .02em; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; color: var(--ink-soft); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 12px; border-radius: var(--radius); color: var(--ink);
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-alt); color: var(--seal); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer; line-height: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, color .15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--seal); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--seal-dk); color: var(--white); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); color: var(--ink); }
.btn--full { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: 60px 68px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(transparent 66%, var(--hinoki) 66%);
  padding-inline: 2px;
}
.hero-points { list-style: none; padding: 0; margin: 26px 0 30px; }
.hero-points li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  font-size: 14.5px; color: var(--ink-mid); line-height: 1.75;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 18px; height: 1px; background: var(--seal);
}
.hero-points li::after {
  content: ""; position: absolute; left: 14px; top: calc(.55em - 3px);
  border: 3.5px solid transparent; border-left-color: var(--seal);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-caption {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-soft); text-align: center; margin-top: 12px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
a.card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* Drafting corner tick — the signature detail */
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--seal); border-left: 2px solid var(--seal);
  opacity: 0; transition: opacity .18s;
}
a.card:hover::before { opacity: 1; }
.card-illo { width: 96px; height: 96px; flex-shrink: 0; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 0; line-height: 1.5; }
a.card:hover .card-title { color: var(--seal); }
.card-body { font-size: 13.5px; color: var(--ink-mid); margin: 0; line-height: 1.85; flex: 1; }
.card-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 12px;
}

.card--row { flex-direction: row; align-items: flex-start; gap: 18px; }
.card--row .card-illo { width: 76px; height: 76px; }
.card--row .card-inner { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Simulator ---------- */
.sim {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.sim-head {
  background: var(--ink); color: var(--white);
  padding: 18px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.sim-head h3 { margin: 0; font-size: 17px; color: var(--white); }
.sim-head .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  border: 1px solid rgba(255,255,255,.35); padding: 4px 10px; border-radius: 2px;
}
.sim-body { display: grid; grid-template-columns: 1.05fr .95fr; }
.sim-controls { padding: 28px 26px; border-right: 1px solid var(--line); }
.sim-output { padding: 28px 26px; background: var(--paper-alt); }

.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.field-label { font-size: 13.5px; font-weight: 700; }
.field-value { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--seal); }
.field-value small { font-size: 11px; color: var(--ink-soft); margin-left: 2px; }

input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  background: transparent; cursor: pointer; margin: 0; padding: 6px 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: var(--line); border-radius: 2px;
}
input[type="range"]::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--seal); border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(22,50,79,.3); margin-top: -8px;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--seal); border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(22,50,79,.3);
}
.range-ends {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--ink-soft); margin-top: 3px;
}

.result-main { text-align: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.result-label { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; }
.result-figure {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(30px, 6vw, 42px); color: var(--seal); line-height: 1.2;
}
.result-figure small { font-size: 16px; margin-left: 3px; color: var(--ink); }
.result-rows { list-style: none; padding: 0; margin: 18px 0 0; }
.result-rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px;
}
.result-rows li:last-child { border-bottom: 0; }
.result-rows b { font-family: var(--mono); font-weight: 500; font-size: 15px; }

.disclaimer-box {
  background: var(--seal-tint); border-left: 3px solid var(--seal);
  padding: 14px 18px; margin-top: 20px; font-size: 12px;
  color: var(--ink-mid); line-height: 1.8; border-radius: 0 var(--radius) var(--radius) 0;
}
.note-box {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--ink); padding: 18px 22px;
  margin: 26px 0; font-size: 13.5px; line-height: 1.9;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note-box h4 { margin: 0 0 8px; font-size: 15px; }
.note-box p:last-child, .note-box ul:last-child { margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.tbl { background: var(--white); border: 1px solid var(--line); min-width: 560px; font-size: 14px; }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; line-height: 1.8; }
.tbl thead th { background: var(--ink); color: var(--white); font-family: var(--display); font-size: 14.5px; border-bottom: 0; }
.tbl tbody th { background: var(--paper-alt); font-weight: 700; width: 24%; font-size: 13.5px; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: step; }
.steps li {
  position: relative; padding-left: 62px; padding-bottom: 30px; margin: 0;
  border-left: 1px solid var(--line); margin-left: 19px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: -19px; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.steps h4 { margin: 6px 0 6px; font-size: 17px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-mid); line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 44px 20px 30px; cursor: pointer; position: relative;
  font-weight: 700; font-size: 15.5px; list-style: none; line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 0; top: 20px;
  font-family: var(--mono); color: var(--seal); font-size: 14px; font-weight: 500;
}
.faq summary::after {
  content: ""; position: absolute; right: 12px; top: 28px;
  width: 9px; height: 9px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--seal); }
.faq .answer { padding: 0 30px 24px; font-size: 14px; color: var(--ink-mid); line-height: 2; position: relative; }
.faq .answer::before {
  content: "A"; position: absolute; left: 0; top: 0;
  font-family: var(--mono); color: var(--ink-soft); font-size: 14px;
}

/* ---------- Glossary ---------- */
.glossary-search { margin-bottom: 28px; }
.glossary-item {
  background: var(--white); border: 1px solid var(--line);
  padding: 20px 22px; margin-bottom: 12px; border-radius: var(--radius);
}
.glossary-item h3 { margin: 0 0 6px; font-size: 16.5px; }
.glossary-item .reading { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .08em; }
.glossary-item p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-mid); line-height: 1.9; }
.glossary-empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); font-size: 14px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.req, .opt {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  padding: 2px 7px; border-radius: 2px; margin-left: 8px; vertical-align: 2px;
}
.req { background: var(--seal); color: var(--white); }
.opt { background: var(--paper-alt); color: var(--ink-soft); }

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); font-size: 15px; line-height: 1.6;
  transition: border-color .15s, background .15s;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--ink); background: var(--white); outline-offset: 1px;
}
.form-row .hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.7; }
.error-msg { display: none; color: var(--seal); font-size: 12px; margin-top: 5px; font-weight: 700; }
.form-row.is-error input, .form-row.is-error select, .form-row.is-error textarea { border-color: var(--seal); background: var(--seal-tint); }
.form-row.is-error .error-msg { display: block; }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.8; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; accent-color: var(--seal); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success {
  display: none; background: #EDF6F1; border-left: 3px solid var(--ok);
  padding: 18px 22px; font-size: 14px; line-height: 1.9; border-radius: 0 var(--radius) var(--radius) 0;
}
.form-success.is-visible { display: block; }

/* ---------- Contact strip ---------- */
.contact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.contact-strip > div { background: var(--white); padding: 24px 22px; }
.contact-strip dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 7px; }
.contact-strip dd { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.6; word-break: break-word; }
.contact-strip dd a { text-decoration: none; }

/* ---------- Article ---------- */
.article-body { font-size: 15.5px; line-height: 2.05; }
.article-body h2 {
  font-size: clamp(21px, 3vw, 26px); margin-top: 52px; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink); position: relative;
}
.article-body h2::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 68px; height: 2px; background: var(--seal);
}
.article-body h3 {
  font-size: clamp(17px, 2.2vw, 20px); margin-top: 36px;
  padding-left: 14px; border-left: 3px solid var(--hinoki-dp);
}
.article-body p { margin: 0 0 1.4em; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; }
.article-body li { margin-bottom: .55em; }
.article-body > :first-child { margin-top: 0; }

.toc {
  background: var(--white); border: 1px solid var(--line);
  padding: 24px 26px; margin: 32px 0 44px; border-radius: var(--radius);
}
.toc h2 { font-size: 15px !important; margin: 0 0 12px !important; border: 0 !important; padding: 0 !important; }
.toc h2::after { display: none !important; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 14px; }
.toc li { margin-bottom: .45em; }
.toc a { text-decoration: none; color: var(--ink-mid); }
.toc a:hover { color: var(--seal); text-decoration: underline; }

.breadcrumb { font-size: 12px; color: var(--ink-soft); padding-block: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li::after { content: "／"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--seal); }

.page-head { border-bottom: 1px solid var(--line); padding-bottom: 34px; margin-bottom: 42px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { margin: 0; }
.updated { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .1em; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding-block: 56px 26px; font-size: 13.5px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--hinoki); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { color: var(--white); font-size: 13.5px; margin: 0 0 14px; letter-spacing: .06em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(255,255,255,.55); }
.footer-note {
  margin-top: 20px; font-size: 12px; line-height: 1.9;
  color: rgba(255,255,255,.6); max-width: 34em;
}
.footer-bottom {
  margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: rgba(255,255,255,.55);
}
.footer-bottom .num { letter-spacing: .08em; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--white); border: 1px solid var(--ink);
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
  padding: 20px 22px; max-width: 620px; margin-inline: auto;
  display: none;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar p { margin: 0 0 14px; font-size: 13px; line-height: 1.85; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { order: -1; max-width: 460px; margin-inline: auto; }
  .sim-body { grid-template-columns: 1fr; }
  .sim-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 14px 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .site-header { position: relative; }
  html { scroll-padding-top: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.85; background-size: 36px 36px, 36px 36px; }
  .section { padding-block: 52px; }
  .section--tight { padding-block: 36px; }
  .hero { padding-block: 40px 50px; }
  .topbar .wrap { justify-content: center; text-align: center; font-size: 11px; }
  .card { padding: 22px 20px; }
  .card--row { flex-direction: column; }
  .card--row .card-illo { width: 84px; height: 84px; }
  .form-card { padding: 24px 20px; }
  .sim-controls, .sim-output { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .faq summary { font-size: 14.5px; padding-right: 38px; }
  .steps li { padding-left: 52px; }
  .article-body { font-size: 15px; }
}

/* ---------- Print / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, a.card:hover { transform: none; }
}
