:root {
  color-scheme: light;
  --canvas: #f3f0e8;
  --paper: #fffdf8;
  --ink: #17201b;
  --muted: #59625c;
  --line: #c9cec5;
  --signal: #0b6b4f;
  --signal-dark: #064c39;
  --signal-soft: #dcebe2;
  --amber: #b26a13;
  --danger: #9a382e;
  --max: 1180px;
  --shadow: 0 18px 48px rgba(23, 32, 27, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #e09b43;
  outline-offset: 3px;
}
.os-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .95);
  backdrop-filter: blur(12px);
}
.os-nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.os-brand {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
}
.os-nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.os-nav-links a { color: var(--muted); text-decoration: none; }
.os-nav-links a:hover { color: var(--signal); }
.os-main { overflow: clip; }
.os-hero, .os-section, .os-article, .os-footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.os-hero {
  min-height: 660px;
  padding: clamp(64px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}
.os-kicker, .os-label {
  margin: 0 0 14px;
  color: var(--signal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { margin: 0; font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -.035em; }
h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.025em; }
h3 { margin: 0 0 8px; font-size: 21px; }
.os-lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.os-note { color: var(--muted); font-size: 14px; }
.os-proof-line { margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.os-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.os-button {
  min-height: 50px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--signal);
  border-radius: 2px;
  background: var(--signal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.os-button:hover { background: var(--signal-dark); }
.os-button.secondary { background: transparent; color: var(--signal); }
.os-button[disabled], .os-button[aria-disabled="true"] {
  border-color: var(--line);
  background: #e3e3dd;
  color: #777e78;
  cursor: not-allowed;
}
.os-status { min-height: 24px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.checkout-confirmation { margin: 1.35rem 0 1rem; padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.52); }
.checkout-confirmation strong { display: block; margin-bottom: .55rem; font-family: var(--font-serif); }
.checkout-confirmation p, .checkout-confirmation label { font-size: .82rem; line-height: 1.7; }
.checkout-confirmation label { display: flex; align-items: flex-start; gap: .55rem; margin-top: .75rem; cursor: pointer; }
.checkout-confirmation input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.boundary-rail {
  position: relative;
  padding: 24px 24px 24px 46px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.boundary-rail::before {
  content: "";
  position: absolute;
  inset: 24px auto 24px 22px;
  width: 2px;
  background: linear-gradient(var(--signal) 0 33%, var(--amber) 33% 66%, var(--danger) 66%);
}
.boundary-item { position: relative; padding: 4px 0 24px; }
.boundary-item:last-child { padding-bottom: 4px; }
.boundary-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 12px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}
.boundary-item:nth-child(2)::before { background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.boundary-item:nth-child(3)::before { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.boundary-item strong { display: block; font-size: 15px; }
.boundary-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.os-band { border-top: 1px solid var(--line); background: var(--paper); }
.os-band.muted { background: transparent; }
.os-section { padding: clamp(58px, 8vw, 100px) 0; }
.os-section-head { max-width: 780px; margin-bottom: 34px; }
.os-section-head p:last-child { color: var(--muted); }
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.os-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.os-card p { color: var(--muted); }
.os-card a { color: var(--signal); font-weight: 800; text-underline-offset: 4px; }
.os-price { margin: 12px 0; font-family: "Yu Mincho", serif; font-size: 36px; font-weight: 900; }
.os-price small { font-family: inherit; font-size: 14px; color: var(--muted); }
.os-list { margin: 18px 0 0; padding: 0; list-style: none; }
.os-list li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); }
.os-list li::before { content: "→"; position: absolute; left: 0; color: var(--signal); }
.os-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.os-step { counter-increment: step; min-height: 190px; padding: 24px; background: var(--paper); }
.os-step + .os-step { border-left: 1px solid var(--line); }
.os-step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 32px;
  color: var(--signal);
  font-family: ui-monospace, monospace;
  font-weight: 900;
}
.os-step p { color: var(--muted); }
.os-form {
  display: grid;
  gap: 18px;
  max-width: 820px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.os-form fieldset { margin: 0; padding: 0; border: 0; }
.os-form legend, .os-form label { display: block; margin-bottom: 8px; font-weight: 800; }
.os-form select, .os-form input, .os-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #aeb6ae;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.os-form textarea { min-height: 130px; resize: vertical; }
.diagnosis-result {
  padding: 24px;
  border-left: 4px solid var(--signal);
  background: var(--signal-soft);
}
.diagnosis-result[hidden] { display: none; }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); background: var(--paper); }
.legal-grid dt, .legal-grid dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.legal-grid dt { font-weight: 800; background: #eef0ea; }
.legal-grid dd { border-left: 1px solid var(--line); }
.legal-grid dt:last-of-type, .legal-grid dd:last-of-type { border-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: var(--paper); }
.faq summary { padding: 18px 0; font-weight: 800; cursor: pointer; }
.faq details p { max-width: 820px; margin: 0; padding: 0 0 20px; color: var(--muted); }
.os-article { max-width: 840px; padding: clamp(56px, 8vw, 100px) 0; }
.os-article header { margin-bottom: 52px; }
.os-article h1 { font-size: clamp(36px, 6vw, 64px); }
.os-article h2 { margin-top: 52px; font-size: clamp(26px, 4vw, 38px); }
.os-article p, .os-article li { color: #39433d; }
.os-article .article-callout { margin: 30px 0; padding: 22px; border-left: 4px solid var(--signal); background: var(--signal-soft); }
.article-meta { color: var(--muted); font-size: 13px; }
.os-footer { border-top: 1px solid var(--line); background: #202821; color: #eef3ee; }
.os-footer-inner { padding: 34px 0; display: flex; justify-content: space-between; gap: 24px; }
.os-footer a { color: #d9e6dc; }
@media (max-width: 860px) {
  .os-nav-links a:not(.os-nav-cta) { display: none; }
  .os-hero { min-height: auto; grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: 1fr; }
  .os-steps { grid-template-columns: 1fr 1fr; }
  .os-step + .os-step { border-left: 0; }
  .os-step:nth-child(even) { border-left: 1px solid var(--line); }
  .os-step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .os-nav, .os-hero, .os-section, .os-article, .os-footer-inner { width: min(100% - 24px, var(--max)); }
  .os-hero { padding: 52px 0 64px; gap: 34px; }
  h1 { font-size: clamp(36px, 12vw, 50px); }
  .os-actions { display: grid; }
  .os-button { width: 100%; }
  .os-steps { grid-template-columns: 1fr; }
  .os-step:nth-child(even) { border-left: 0; }
  .os-step + .os-step { border-top: 1px solid var(--line); }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-grid dd { border-left: 0; }
  .legal-grid dt { border-bottom: 0; padding-bottom: 4px; }
  .os-footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
