:root {
  --ink: #17231f;
  --muted: #61706a;
  --paper: #f5f1e8;
  --paper-2: #ece6da;
  --white: #fffef9;
  --green: #1f6954;
  --green-dark: #103e33;
  --lime: #cfe66f;
  --gold: #d6a83f;
  --red: #a94b3d;
  --line: rgba(23, 35, 31, .14);
  --shadow: 0 24px 70px rgba(19, 39, 32, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: .02em;
}
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(16, 62, 51, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--green-dark); background: var(--lime); border-radius: 50%; font-size: 13px; font-weight: 900; }
nav { display: flex; gap: 28px; font-size: 13px; }
nav a { color: rgba(255,255,255,.76); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--white); }

.section, .hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 148px) 0;
}
.section-dark {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 78% 18%, rgba(207,230,111,.12), transparent 24%),
    linear-gradient(135deg, #0b2e27 0%, #164d3f 65%, #1f6954 100%);
  color: var(--white);
}
.hero { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: center; gap: clamp(42px, 8vw, 112px); }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.hero .eyebrow { color: var(--lime); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(42px, 6.2vw, 82px); line-height: 1.15; letter-spacing: -.045em; }
h1 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 720px; margin: 34px 0 0; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.8vw, 20px); }
.estimate-card { padding: 34px; color: var(--ink); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.estimate-card > span { display: block; color: var(--green); font-weight: 800; }
.estimate-card strong { display: block; margin: 10px 0 0; color: var(--green-dark); font-size: clamp(48px, 7vw, 72px); line-height: 1; letter-spacing: -.05em; }
.estimate-card strong small { font-size: .38em; letter-spacing: 0; }
.estimate-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.estimate-card hr { margin: 26px 0 18px; border: 0; border-top: 1px solid var(--line); }

.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.28; letter-spacing: -.035em; }
.section-heading > p:last-child:not(.kicker) { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.people-grid, .scope-grid, .days-grid, .plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.person-card { min-height: 330px; padding: clamp(28px, 4vw, 50px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 48px rgba(23,35,31,.06); }
.person-card .role { display: inline-block; margin: 0 0 48px; padding: 7px 14px; color: var(--green-dark); background: var(--lime); border-radius: 999px; font-size: 13px; font-weight: 800; }
.person-office .role { color: #704419; background: #f2d79b; }
.person-card h3 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 35px); line-height: 1.35; }
.person-card p:last-child { margin: 0; color: var(--muted); }

.section-flow { border-top: 1px solid var(--line); }
.compare-grid { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: stretch; gap: 20px; }
.flow-card { padding: 32px; border-radius: var(--radius); }
.flow-before { background: var(--paper-2); }
.flow-after { color: var(--white); background: var(--green-dark); }
.flow-label { margin: 0 0 25px; font-weight: 900; letter-spacing: .14em; }
.flow-before ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.flow-before li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.6); border-radius: 12px; }
.flow-before li span { color: var(--muted); font-size: 12px; font-weight: 900; }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--green); }
.flow-arrow span { font-size: 44px; line-height: 1; }
.flow-arrow small { writing-mode: vertical-rl; margin-top: 9px; font-weight: 800; letter-spacing: .12em; }
.single-input { padding: 22px; color: var(--green-dark); background: var(--lime); border-radius: 18px; text-align: center; }
.single-input strong, .single-input span { display: block; }
.single-input strong { font-size: 22px; }
.single-input span { margin-top: 4px; font-size: 12px; }
.stable-note { margin: 14px 0 0; color: var(--lime); font-size: 12px; font-weight: 800; text-align: center; }
.outputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.outputs span { display: grid; place-items: center; min-height: 52px; padding: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; }
.outputs span:last-child { grid-column: 1 / -1; }

.section-product { width: 100%; padding-inline: max(20px, calc((100vw - 1180px) / 2)); background: var(--white); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-grid article { position: relative; min-height: 290px; padding: 32px; background: var(--paper); border-radius: 22px; }
.route-number { position: absolute; top: 24px; right: 24px; color: #a4aea9; font-size: 12px; font-weight: 900; }
.route-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 48px; color: var(--green-dark); background: var(--lime); border-radius: 18px; font-size: 30px; font-weight: 900; }
.barcode { background: repeating-linear-gradient(90deg, var(--green-dark) 0 3px, var(--lime) 3px 7px); border: 14px solid var(--lime); }
.route-grid h3 { margin: 0 0 9px; font-size: 22px; }
.route-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.dashboard-shell { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dashboard-top { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.dashboard-top div { padding: 24px; border-right: 1px solid var(--line); }
.dashboard-top div:last-child { border: 0; }
.dashboard-top span, .dashboard-top strong { display: block; }
.dashboard-top span { color: var(--muted); font-size: 12px; }
.dashboard-top strong { margin-top: 4px; font-size: 28px; }
.dashboard-top .attention strong { color: var(--red); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #faf9f4; font-size: 12px; }
td { font-size: 14px; }
.status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.done { color: var(--green-dark); background: #dceadf; }
.status.waiting { color: #753d20; background: #f3d5b8; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px; }
.export-actions button { padding: 11px 15px; color: var(--green-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; cursor: default; }
.demo-note { color: var(--muted); font-size: 11px; text-align: right; }

.section-price { width: 100%; padding-inline: max(20px, calc((100vw - 1180px) / 2)); color: var(--white); background: var(--green-dark); }
.section-price .kicker { color: var(--lime); }
.price-journey { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.price-journey > div { min-height: 190px; padding: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; }
.price-journey span, .price-journey strong, .price-journey small { display: block; }
.price-journey span { color: var(--lime); font-size: 12px; font-weight: 900; }
.price-journey strong { margin-top: 35px; font-size: 20px; }
.price-journey small { margin-top: 8px; color: rgba(255,255,255,.63); }
.price-journey i { color: var(--lime); font-size: 24px; font-style: normal; }
.future-note { display: grid; grid-template-columns: 180px 1fr; gap: 25px; margin-top: 28px; padding: 25px 28px; color: var(--ink); background: var(--lime); border-radius: 18px; }
.future-note p { margin: 0; }

.scope-grid article { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); }
.scope-grid h3 { margin: 0 0 25px; font-size: 23px; }
.scope-grid h3 span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 8px; border-radius: 50%; }
.scope-grid ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.scope-grid li { position: relative; padding-left: 18px; }
.scope-grid li::before { content: ""; position: absolute; top: .72em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
.scope-in { color: var(--green-dark); background: #dfebdd; }
.scope-in h3 span { background: var(--lime); }
.scope-out { color: #675f54; background: var(--paper-2); }
.scope-out h3 span { background: #d9d1c3; }
.scope-note { margin: 22px 0 0; padding: 18px 22px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 14px; }

.section-together { width: 100%; padding-inline: max(20px, calc((100vw - 1180px) / 2)); background: var(--white); }
.days-grid article { min-height: 290px; padding: 38px; color: var(--white); background: var(--green); border-radius: var(--radius); }
.days-grid article:last-child { color: var(--ink); background: var(--lime); }
.days-grid span { display: inline-block; padding: 5px 11px; color: var(--green-dark); background: var(--white); border-radius: 999px; font-size: 12px; font-weight: 900; }
.days-grid h3 { margin: 50px 0 12px; font-size: 27px; }
.days-grid p { margin: 0; opacity: .8; }

.plan { padding: clamp(30px, 4vw, 48px); border-radius: var(--radius); }
.plan-tag { margin: 0 0 22px; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.plan h3 { margin: 0; font-size: 25px; }
.plan > strong { display: block; margin: 18px 0 25px; font-size: clamp(43px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }
.plan > strong small { font-size: .38em; letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 1.2em; }
.recommended { color: var(--white); background: var(--green-dark); box-shadow: var(--shadow); }
.recommended .plan-tag { color: var(--lime); }
.comparison { background: var(--paper-2); border: 1px solid var(--line); }
.comparison > p:last-child { color: var(--muted); }
.grant-note { display: grid; grid-template-columns: 180px 1fr; gap: 28px; margin-top: 24px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.grant-note p { margin: 0; color: var(--muted); }
.grant-assumption { margin-top: 16px !important; font-size: 12px; font-weight: 700; }
.grant-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.grant-courses span { padding: 14px; color: var(--green-dark); background: var(--paper); border-radius: 12px; font-size: 12px; }
.grant-courses b { display: block; margin-bottom: 3px; font-size: 14px; }
.grant-caution { margin-top: 12px !important; font-size: 11px; }

.section-questions { width: 100%; padding-inline: max(20px, calc((100vw - 960px) / 2)); color: var(--white); background: #13221d; }
.section-questions .kicker { color: var(--lime); }
.question-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.question-list li { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: clamp(16px, 2vw, 21px); }
.question-list span { color: var(--lime); font-size: 12px; font-weight: 900; }
.closing { margin: 45px 0 0; color: rgba(255,255,255,.67); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(20px, calc((100vw - 1180px) / 2)); color: var(--muted); background: var(--paper-2); font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .site-header { min-height: 62px; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .estimate-card { max-width: 430px; }
  .people-grid, .scope-grid, .days-grid, .plans-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .flow-arrow { min-height: 56px; transform: rotate(90deg); }
  .flow-arrow small { display: none; }
  .route-grid { grid-template-columns: 1fr; }
  .route-grid article { min-height: 220px; }
  .route-icon { margin-bottom: 28px; }
  .dashboard-top { grid-template-columns: repeat(2, 1fr); }
  .dashboard-top div:nth-child(2) { border-right: 0; }
  .dashboard-top div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .price-journey { grid-template-columns: 1fr; }
  .price-journey i { text-align: center; transform: rotate(90deg); }
  .future-note, .grant-note { grid-template-columns: 1fr; gap: 8px; }
  .grant-courses { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .section, .hero { width: min(100% - 28px, 1180px); padding-block: 76px; }
  .section-dark, .section-product, .section-price, .section-together, .section-questions { width: 100%; padding-inline: 18px; }
  h1 { font-size: 39px; }
  .hero-lead { font-size: 15px; }
  .estimate-card { padding: 26px; }
  .person-card { min-height: auto; }
  .person-card .role { margin-bottom: 34px; }
  .outputs { grid-template-columns: 1fr; }
  .outputs span:last-child { grid-column: auto; }
  .dashboard-top div { padding: 17px; }
  .export-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .export-actions button { font-size: 12px; }
  .question-list li { grid-template-columns: 38px 1fr; }
  footer { flex-direction: column; }
}

@media print {
  .site-header { display: none; }
  .hero { min-height: auto; }
  .section, .hero { padding-block: 46px; }
  body { background: white; }
  .person-card, .dashboard-shell, .plan { box-shadow: none; }
}
