/* 平面図PDF → JWW：全ページ共通のデザイン（白い図面用紙に、紺の線と赤入れの朱） */
@font-face { font-family: "Zen KG"; font-weight: 500; font-display: swap; src: url(zen-500.woff) format("woff"); }
@font-face { font-family: "Zen KG"; font-weight: 900; font-display: swap; src: url(zen-900.woff) format("woff"); }
:root {
  color-scheme: light;
  --navy: #18226b;
  --ink: #141a3c; --muted: #535b7d; --paper: #fff; --sheet: #fff; --line: #cdd4e8; --red: #d8321f; --red-d: #b62616; --ok: #1f7040;
  --sans: "Zen KG", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --plain: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  /* 間取り図の線の色（使う場所ごとに上書きする） */
  --p-wall: var(--ink); --p-fill: none; --p-open: var(--ink); --p-fix: var(--ink); --p-grid: #7a86b8; --p-dim: #7a86b8; --p-text: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.85 var(--sans); overflow-x: hidden; overflow-x: clip; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-weight: 900; line-height: 1.35; margin: 0; font-feature-settings: "palt"; text-wrap: balance; }
h2 { font-size: clamp(1.1rem, 5.6vw, 2.6rem); letter-spacing: .01em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }

/* ボタン */
.btn, button { display: inline-block; border: 0; border-radius: 4px; padding: 15px 30px; background: var(--red); color: #fff; font: 900 1rem/1.3 var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover, button:hover { background: var(--red-d); }
.btn:active, button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: default; }
button.text { background: none; color: var(--red); padding: 8px; text-decoration: underline; font-size: .92rem; }

/* ヘッダー＋受付 */
.hero { position: relative; padding-bottom: 88px; }
.axis { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.axis i { position: absolute; top: 128px; bottom: 0; width: 1px; background: repeating-linear-gradient(180deg, var(--line) 0 22px, transparent 22px 28px, var(--line) 28px 31px, transparent 31px 37px); }
.axis i::before { content: attr(data-n); position: absolute; top: -30px; left: -15px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--num); font-style: normal; color: var(--muted); }
.axis i:nth-child(1) { left: calc(50% - 628px); } .axis i:nth-child(2) { left: calc(50% + 628px); }
@media (max-width: 1320px) { .axis { display: none; } }
.hero > .wrap, .hero header { position: relative; }
header { border-bottom: 2px solid var(--ink); }
header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; color: var(--navy); }
nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
nav a { text-decoration: none; font-size: .93rem; white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: currentColor; }

/* フォーム・結果の白い紙 */
.panel { background: var(--sheet); color: var(--ink); border-radius: 4px; padding: 36px; max-width: 780px; margin: 40px auto 0; border: 2px solid var(--ink); }
.panel h2 { font-size: 1.55rem; margin-bottom: 18px; }
.notice { background: #fff3d6; color: #3d2c00; border-left: 4px solid #e0a400; padding: 12px 16px; font-size: .95rem; }
.err { color: #b3190b; font-weight: 900; }
.ok { color: var(--ok); }

/* 表題欄ふうのフッター */
footer { background: var(--sheet); border-top: 1px solid var(--line); padding: 56px 0 64px; }
.tblock { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border: 2px solid var(--ink); }
.tblock > div { padding: 16px 20px; border-left: 1px solid var(--ink); min-width: 0; overflow-wrap: anywhere; }
.tblock > div:first-child { border-left: 0; }
.tblock b { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.tblock a { display: inline-block; }
.tblock .name { font-weight: 900; font-size: 1.2rem; }
@media (max-width: 820px) {
  nav { gap: 18px; } nav a:not(.keep) { display: none; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div { border-left: 0; border-top: 1px solid var(--ink); }
  .tblock > div:nth-child(1) { grid-column: 1 / -1; border-top: 0; }
  .tblock > div:nth-child(2) { grid-column: 1 / -1; }
  .tblock > div:nth-child(4) { border-left: 1px solid var(--ink); }
  .panel { padding: 26px 20px; }
}
@media (max-width: 480px) { .logo { font-size: .95rem; gap: 8px; } .logo svg { width: 24px; height: 24px; } header .wrap { gap: 12px; min-height: 64px; } nav { gap: 14px; } nav a { font-size: .84rem; } .wrap { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 400px) { nav a[href="/#howto"] { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
