:root {
  --paper: #f5f0e7;
  --paper-deep: #ebe2d4;
  --ink: #172b25;
  --ink-soft: #506059;
  --green: #1f4337;
  --green-light: #dce5dc;
  --orange: #c65738;
  --orange-light: #f0d4c7;
  --line: rgba(23, 43, 37, 0.18);
  --white: #fffdfa;
  --shadow: 0 22px 60px rgba(43, 41, 31, 0.12);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #d9d1c3;
  font-family: var(--sans);
  line-height: 1.8;
}

a { color: inherit; text-underline-offset: 0.2em; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

.preview-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .45rem 1.2rem;
  color: #fff;
  background: var(--orange);
  font-size: .72rem;
  letter-spacing: .03em;
}

.preview-bar strong { letter-spacing: .14em; }

.site-frame {
  width: min(1500px, calc(100% - 32px));
  margin: 16px auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem clamp(2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--paper); background: var(--green); font-family: var(--serif); font-size: 1.35rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 1.04rem; letter-spacing: .05em; }
.brand small { margin-top: .08rem; color: var(--ink-soft); font-size: .59rem; letter-spacing: .16em; }

.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.site-header nav a { font-size: .8rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--orange); }

.hero { min-height: 700px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); padding-block: clamp(4.5rem, 9vw, 8rem); }
.hero-copy { max-width: 710px; }
.eyebrow { margin: 0 0 1.1rem; color: var(--orange); font-size: .7rem; font-weight: 700; letter-spacing: .22em; }
.hero h1, .page-hero h1, .section-heading h2, .tool-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.035em;
}
.hero h1 { font-size: clamp(2.55rem, 5.3vw, 5.2rem); }
.hero h1 span { display: block; }
.hero h1 span:first-child { font-size: .72em; }
.hero-lead { max-width: 620px; margin: 2rem 0 0; color: var(--ink-soft); font-size: clamp(.98rem, 1.4vw, 1.12rem); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .72rem 1.25rem; border: 0; cursor: pointer; font-size: .82rem; font-weight: 700; text-decoration: none; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: #163329; }
.button.light { color: var(--green); background: var(--white); }
.button.text { padding-inline: .4rem; color: var(--ink); background: transparent; }

.hero-board { padding: 1rem; color: white; background: var(--green); transform: rotate(1.2deg); box-shadow: 20px 24px 0 var(--orange-light); }
.board-head { display: flex; justify-content: space-between; padding: .3rem .25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.25); font-size: .66rem; letter-spacing: .14em; }
.board-stage { display: grid; grid-template-columns: 40px 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem .4rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.board-stage > span { color: #9fb5ac; font-size: .72rem; }
.board-stage strong, .board-stage small { display: block; }
.board-stage strong { font-family: var(--serif); font-size: .95rem; }
.board-stage small { margin-top: .25rem; color: #c7d2cd; font-size: .67rem; }
.board-stage b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--paper); }
.board-stage.active { color: var(--ink); background: #e9be83; margin-inline: -.4rem; padding-inline: .8rem; }
.board-stage.active > span, .board-stage.active small { color: rgba(23,43,37,.68); }
.hero-board > p { margin: 1rem .3rem .3rem; color: #d7e0dc; font-size: .72rem; }

.section { padding-block: clamp(5rem, 9vw, 8rem); }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.section-heading.split { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 4rem; }
.section-heading.split > p { max-width: 450px; margin: 0 0 .5rem; color: var(--ink-soft); }

.principles { border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 4rem; border: 1px solid var(--line); }
.principle-grid article { padding: clamp(1.6rem, 3.5vw, 3rem); }
.principle-grid article + article { border-left: 1px solid var(--line); }
.principle-grid span { color: var(--orange); font-size: .72rem; font-weight: 700; }
.principle-grid h3 { margin: 2rem 0 .8rem; font-family: var(--serif); font-size: 1.25rem; }
.principle-grid p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

.guide-section { background: var(--white); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.guide-card { min-height: 360px; display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(43, 41, 31, .1); }
.guide-type { color: var(--orange); font-size: .66rem; font-weight: 700; letter-spacing: .17em; }
.guide-card h3 { margin: 3rem 0 1rem; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.55; }
.guide-card h3 a { text-decoration: none; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.guide-card-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .72rem; }
.guide-card-footer a { color: var(--orange); font-weight: 700; text-decoration: none; }
.index-grid { margin-bottom: 4rem; }

.tool-cta { display: grid; grid-template-columns: 1fr .75fr; gap: 5rem; align-items: center; margin-block: 5rem; padding: clamp(3rem, 6vw, 5rem); color: white; background: var(--green); }
.tool-cta .eyebrow { color: #e9be83; }
.tool-cta h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
.tool-cta > div:last-child p { color: #d8e2dd; }

.page-main { padding-bottom: 7rem; }
.page-hero { max-width: 900px; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); }
.page-hero > p:last-child { max-width: 690px; margin: 2rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.editorial-box { padding: 1.4rem 1.6rem; border-left: 4px solid var(--green); background: var(--green-light); }
.editorial-box strong { font-family: var(--serif); }
.editorial-box p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .84rem; }
.editorial-box.warning { border-left-color: var(--orange); background: var(--orange-light); }

.article { padding-bottom: 8rem; }
.article-header { max-width: 1040px; padding: clamp(4rem, 8vw, 7rem) 0 3rem; }
.article-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.45; letter-spacing: -.04em; }
.article-lead { max-width: 810px; margin: 2rem 0 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.5rem; color: var(--ink-soft); font-size: .72rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.article-body { max-width: 780px; }
.article-body section { margin-top: 4.5rem; }
.article-body h2 { margin: 0 0 1.3rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.65; }
.article-body p { color: #34473f; }
.article-side { position: sticky; top: 2rem; }
.side-card { padding: 1.5rem; color: white; background: var(--green); }
.side-card > span { color: #e9be83; font-size: .63rem; font-weight: 700; letter-spacing: .15em; }
.side-card strong { display: block; margin-top: 1.2rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; }
.side-card p { color: #d1ddd7; font-size: .8rem; }
.side-card .button { width: 100%; margin-top: .6rem; color: var(--green); background: var(--paper); }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 2rem 0; }
.metric-row div { padding: 1rem; border: 1px solid var(--line); background: var(--white); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font-family: var(--serif); font-size: .88rem; }
.metric-row span { margin-top: .4rem; color: var(--ink-soft); font-size: .72rem; }

.check-steps { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.check-steps li { display: grid; grid-template-columns: minmax(130px, .45fr) 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); counter-increment: steps; }
.check-steps strong::before { content: counter(steps, decimal-leading-zero) " / "; color: var(--orange); font-size: .67rem; }
.check-steps span { color: var(--ink-soft); font-size: .84rem; }

.decision-table { border-top: 1px solid var(--ink); }
.decision-table > div { display: grid; grid-template-columns: .6fr 1fr; gap: 1.5rem; padding: 1rem .2rem; border-bottom: 1px solid var(--line); }
.decision-table span { color: var(--ink-soft); font-size: .83rem; }
.decision-table .table-head { color: var(--ink-soft); font-size: .67rem; font-weight: 700; letter-spacing: .1em; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { padding: .45rem 0; color: #34473f; }
.source-note { padding: 1.6rem; background: var(--white); }
.source-note h2 { font-size: 1.2rem; }
.source-note ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.source-note a { color: var(--green); font-size: .82rem; font-weight: 600; }

.tools-page { padding-bottom: 8rem; }
.interactive-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; margin-bottom: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); background: var(--white); }
.tool-intro > span { color: var(--orange); font-size: .66rem; font-weight: 700; letter-spacing: .16em; }
.tool-intro h2 { margin: 1rem 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); }
.tool-intro p { color: var(--ink-soft); font-size: .84rem; }
.tool-form fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
.tool-form legend { margin-bottom: .8rem; font-family: var(--serif); font-weight: 700; }
.tool-form label { display: inline-flex; margin: 0 .45rem .5rem 0; }
.tool-form input { position: absolute; opacity: 0; pointer-events: none; }
.tool-form label span { padding: .6rem .9rem; border: 1px solid var(--line); cursor: pointer; font-size: .78rem; }
.tool-form input:checked + span { color: white; border-color: var(--green); background: var(--green); }
.tool-form input:focus-visible + span { outline: 3px solid var(--orange-light); outline-offset: 2px; }
.tool-result { grid-column: 1 / -1; min-height: 90px; padding: 1.4rem; background: var(--paper); }
.tool-result h3 { margin: 0 0 1rem; font-family: var(--serif); }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.result-columns div { padding: 1rem; background: var(--white); }
.result-columns strong { display: block; margin-bottom: .5rem; color: var(--orange); font-size: .72rem; }
.result-columns ul { margin: 0; padding-left: 1.1rem; font-size: .82rem; }

.revenue-tool { grid-template-columns: .7fr 1.3fr; }
.number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.number-grid label span { display: block; margin-bottom: .35rem; color: var(--ink-soft); font-size: .72rem; }
.number-grid input { width: 100%; padding: .75rem; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.revenue-output { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: .5rem; background: var(--line); }
.revenue-output > div { padding: 1.2rem; background: var(--paper); }
.revenue-output span, .revenue-output strong { display: block; }
.revenue-output span { color: var(--ink-soft); font-size: .68rem; }
.revenue-output strong { margin-top: .3rem; font-size: 1.25rem; }
.revenue-output .highlight { color: white; background: var(--orange); }
.revenue-output .highlight span { color: #fbe9e1; }

.legal { max-width: 880px; }
.legal .page-hero { padding-bottom: 3rem; }
.legal > section { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--serif); font-size: 1.45rem; }
.legal p { color: #34473f; }
.disclosure-statement { padding: 2rem !important; border: 0 !important; background: var(--green-light); }
.disclosure-statement p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 6rem); color: #d8e2dd; background: #132d25; }
.footer-brand { margin: 0; color: white; font-family: var(--serif); font-size: 1.2rem; }
.site-footer p:not(.footer-brand) { max-width: 500px; margin: .5rem 0 0; font-size: .78rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .75rem; text-decoration: none; }
.site-footer > small { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); color: #8fa49b; font-size: .65rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-board { max-width: 600px; }
  .section-heading.split, .tool-cta, .interactive-card, .revenue-tool { grid-template-columns: 1fr; gap: 2rem; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: 1fr; }
  .article-body { max-width: none; }
  .article-side { position: static; }
  .side-card { max-width: 500px; }
}

@media (max-width: 680px) {
  .preview-bar { align-items: flex-start; flex-direction: column; gap: 0; }
  .site-frame { width: 100%; margin: 0; }
  .shell { width: min(100% - 36px, 1180px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: 1rem 18px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .4rem; }
  .site-header nav a { font-size: .72rem; }
  .hero { padding-block: 4rem; gap: 3rem; }
  .hero h1 { font-size: clamp(2.3rem, 12vw, 3.3rem); }
  .hero-board { box-shadow: 8px 10px 0 var(--orange-light); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 320px; }
  .tool-cta { width: 100%; margin-block: 2rem; }
  .article-header h1 br, .page-hero h1 br { display: none; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .check-steps li, .decision-table > div { grid-template-columns: 1fr; gap: .4rem; }
  .number-grid, .revenue-output, .result-columns { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
