:root {
  --ink: #17231f;
  --muted: #56635e;
  --green-900: #0b4937;
  --green-700: #13654d;
  --green-100: #e7f2ee;
  --orange: #b94420;
  --orange-dark: #903116;
  --yellow: #fff7d8;
  --red: #9f2f25;
  --line: #d8e1dc;
  --surface: #f5f7f6;
  --white: #fff;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(11, 73, 55, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button, .mobile-cta a { min-height: 44px; }
:focus-visible { outline: 3px solid #f2a31f; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: -80px; padding: 10px 14px; color: #fff; background: #000; }
.skip-link:focus { top: 12px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 8px; color: var(--green-700); font-size: .83rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.source-note { font-size: .875rem; color: var(--muted); }
.source-note a { overflow-wrap: anywhere; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green-900); text-decoration: none; font-weight: 900; line-height: 1.25; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--green-900); border-radius: 5px; font-size: 1.15rem; }
.brand small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .06em; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.main-nav .nav-cta { padding-inline: 16px; color: #fff; background: var(--orange); border-radius: 4px; }
.nav-toggle { display: none; width: 46px; border: 1px solid var(--line); color: var(--green-900); background: #fff; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; color: #fff; background: #17352d; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,24,.93) 0%, rgba(4,30,24,.78) 45%, rgba(4,30,24,.25) 78%, rgba(4,30,24,.08)); }
.hero-content { position: relative; z-index: 1; width: min(680px, 100%); padding-block: 90px; }
.hero .eyebrow { color: #bce6d6; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.35rem, 6vw, 4.8rem); line-height: 1.12; letter-spacing: -.03em; }
.hero h1 .hero-title-main, .hero h1 strong { display: block; white-space: nowrap; font-size: .82em; }
.hero h1 strong { color: #ffd166; }
.hero h1 strong span { display: inline; }
.hero-lead { max-width: 640px; margin: 0 0 18px; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
.hero-note { max-width: 630px; margin: 0 0 26px; padding: 10px 12px; background: rgba(0,0,0,.38); border-left: 4px solid #ffd166; font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 2px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 900; cursor: pointer; }
.button-primary { color: #fff; background: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { color: var(--green-900); background: #fff; border-color: #fff; }
.button-outline { color: var(--green-900); background: transparent; border-color: var(--green-700); }
.hero-contact { margin-top: 20px; }
.hero-contact a { color: #fff; font-size: 1.35rem; font-weight: 900; }
.hero-contact span { display: block; font-size: .82rem; font-weight: 500; }

.section { padding-block: 78px; }
.section-soft { background: var(--surface); }
.section-green { color: #fff; background: var(--green-900); }
.section-title { margin: 0 0 14px; color: var(--green-900); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.3; letter-spacing: -.02em; }
.section-green .section-title { color: #fff; }
.section-green .eyebrow { color: #bce6d6; }
.section-lead { max-width: 760px; margin: 0 0 34px; color: var(--muted); font-size: 1.06rem; }
.section-green .section-lead { color: #d6e8e1; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green-700); }
.card h3 { margin: 0 0 10px; color: var(--green-900); font-size: 1.2rem; line-height: 1.4; }
.card p:last-child { margin-bottom: 0; }
.fact-card { text-align: center; }
.fact-number { display: block; color: var(--orange); font-size: 2rem; line-height: 1.2; font-weight: 900; }
.icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; color: #fff; background: var(--green-700); border-radius: 50%; font-size: 1.35rem; }
.notice { padding: 18px 20px; background: var(--yellow); border-left: 5px solid #d7a600; }
.notice-danger { background: #fff0ed; border-color: var(--red); }
.notice strong { display: block; margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.media-card { position: relative; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.image-label { position: absolute; right: 8px; bottom: 8px; margin: 0; padding: 4px 8px; color: #fff; background: rgba(0,0,0,.78); font-size: .875rem; }
.benefit-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; }
.benefit-list li { padding: 14px 14px 14px 42px; background: var(--surface); position: relative; font-weight: 700; }
.benefit-list li::before { content: "✓"; position: absolute; left: 15px; color: var(--green-700); font-weight: 900; }

.page-hero { padding: 64px 0 46px; background: linear-gradient(120deg, #e7f2ee, #f8faf9); border-bottom: 1px solid var(--line); }
.breadcrumbs { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #89948f; }
.page-hero h1 { margin: 0 0 12px; color: var(--green-900); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.08rem; }

.diagnosis, .calculator, .contact-form { padding: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.question { margin: 0 0 20px; padding: 18px; border: 0; background: var(--surface); }
.question legend { padding: 0 5px; color: var(--green-900); font-weight: 900; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; }
.choice input { width: 20px; height: 20px; accent-color: var(--green-700); }
.result-box { margin-top: 24px; padding: 22px; border: 2px solid var(--green-700); background: var(--green-100); }
.result-box[data-status="caution"] { border-color: #b07d00; background: var(--yellow); }
.result-box[data-status="unlikely"] { border-color: var(--red); background: #fff0ed; }
.result-box h3 { margin-top: 0; }

.calculator-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label, label.field { color: var(--green-900); font-weight: 800; }
.field input, .field select, .field textarea, label.field input, label.field select, label.field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #9daba4; border-radius: 3px;
}
.field textarea, label.field textarea { min-height: 150px; resize: vertical; }
.calc-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr .75fr auto; gap: 10px; align-items: end; padding: 16px 0; border-top: 1px solid var(--line); }
.calc-row:first-child { border-top: 0; }
.remove-row { min-width: 44px; min-height: 48px; color: var(--red); background: #fff; border: 1px solid #d7aaa4; cursor: pointer; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.calc-output { margin-top: 28px; }
.amount { color: var(--orange-dark); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1.2; }
.table-scroll { margin-top: 18px; overflow-x: auto; }
.breakdown { width: 100%; border-collapse: collapse; }
.breakdown th, .breakdown td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.breakdown th { background: var(--surface); }
.breakdown td:last-child { text-align: right; white-space: nowrap; }

.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; background: #fff; border-left: 6px solid var(--orange); }
.status-number { color: var(--orange-dark); font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; line-height: 1; white-space: nowrap; }
.status-meta { font-size: .85rem; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { position: relative; padding: 20px 20px 20px 78px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--green-700); border-radius: 50%; font-weight: 900; }
.step h3 { margin: 0 0 4px; color: var(--green-900); }
.step p { margin: 0; }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); }
.faq summary { min-height: 54px; padding: 14px 48px 14px 18px; cursor: pointer; color: var(--green-900); font-weight: 900; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 18px; font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-grid .full { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { margin-top: 18px; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; }
.privacy-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--green-700); }

.company-band { padding: 32px; color: #fff; background: var(--green-900); }
.company-band h2 { margin-top: 0; }
.company-band a { color: #fff; }
.link-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.link-card { display: block; padding: 18px; color: var(--ink) !important; background: #fff; text-decoration: none; border-left: 4px solid #e99aae; }
.link-card strong { display: block; color: var(--green-900); font-size: 1.12rem; }

.site-footer { padding: 48px 0 100px; color: #d9e6e1; background: #10231d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
.footer-grid h2, .footer-grid h3 { color: #fff; }
.footer-grid a { color: #fff; }
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 7px; }
.legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid #3a4b45; font-size: .875rem; }
.mobile-cta { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; inset: 72px 0 auto; display: none; padding: 14px 20px 22px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { padding: 11px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calc-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calc-row .remove-row { grid-column: 2; justify-self: end; }
}

@media (max-width: 720px) {
  .container, .narrow { width: min(100% - 28px, var(--max)); }
  .brand span:last-child { font-size: .9rem; }
  .hero { min-height: 620px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(4,30,24,.93), rgba(4,30,24,.64)); }
  .hero-content { padding-block: 68px 88px; }
  .hero h1 { font-size: 2.08rem; }
  .hero h1 .hero-title-main { font-size: .94em; }
  .hero h1 strong { margin-top: 8px; font-size: 1em; white-space: normal; }
  .hero h1 strong span { display: block; white-space: nowrap; }
  .button-row .button { width: 100%; }
  .section { padding-block: 58px; }
  .grid-2, .grid-3, .grid-4, .split, .footer-grid, .contact-grid, .link-cards { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .status-panel { align-items: flex-start; flex-direction: column; }
  .diagnosis, .calculator, .contact-form { padding: 18px; }
  .calc-row { grid-template-columns: 1fr; padding: 20px 0; }
  .calc-row .remove-row { grid-column: 1; justify-self: stretch; }
  .table-scroll { max-width: 100%; }
  .contact-grid .full { grid-column: auto; }
  .mobile-cta { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3,1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
  .mobile-cta a { display: grid; place-items: center; padding: 8px 4px; color: #fff; background: var(--green-700); border-right: 1px solid rgba(255,255,255,.25); text-align: center; text-decoration: none; font-size: .875rem; font-weight: 900; }
  .mobile-cta a:nth-child(2) { background: var(--orange); }
  .site-footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-cta, .button-row, .nav-toggle { display: none !important; }
  .section { padding-block: 24px; }
  a { color: inherit; }
}
