:root {
  color-scheme: light;
  --navy: #17324d;
  --navy-2: #0e263a;
  --teal: #0f766e;
  --teal-2: #0a5d58;
  --mint: #ddf3ef;
  --amber: #f59e0b;
  --cream: #fff4d6;
  --ink: #203040;
  --muted: #5d6b78;
  --line: #cbd5e1;
  --soft: #f5f7f9;
  --white: #ffffff;
  --danger: #b8423e;
  --shadow: 0 18px 55px rgba(23, 50, 77, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfcfd; font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: white; padding: 10px 15px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 0 5vw; background: rgba(255,255,255,.93); border-bottom: 1px solid rgba(203,213,225,.7); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 800; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 3px; padding: 5px; border-radius: 9px; background: var(--navy); }
.brand-mark span { display: block; border-radius: 2px 2px 0 0; background: #9edbd3; }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 14px; background: var(--amber); }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--teal); }

.planner-shell { display: grid; grid-template-columns: minmax(260px,.78fr) minmax(360px,1.22fr); gap: 28px; padding: 72px 5vw 88px; background: radial-gradient(circle at 13% 8%, #e9f7f4 0 16%, transparent 38%), linear-gradient(135deg,#f8fbfc,#eef4f7); }
.planner-intro { padding: 28px 12px 0 0; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; color: var(--navy); font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: 1.12; letter-spacing: -.045em; }
h1 span { color: var(--teal); }
.planner-intro > p:not(.eyebrow) { max-width: 34rem; color: var(--muted); font-size: 1.04rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.trust-row span { padding: 7px 11px; border: 1px solid #aedbd4; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--teal-2); font-size: .78rem; font-weight: 800; }

.planner-card, .results-card, .measure-layout { border: 1px solid rgba(203,213,225,.9); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.planner-card { padding: 30px; align-self: start; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; color: var(--navy); font-size: .84rem; font-weight: 800; }
.field input, .field select, .measure-form input { width: 100%; min-height: 49px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .measure-form input:focus { border-color: var(--teal); outline: 3px solid rgba(15,118,110,.14); }
.option-group { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 21px 0 22px; padding: 0; border: 0; }
.option-group legend { width: 100%; margin-bottom: 6px; color: var(--navy); font-size: .84rem; font-weight: 800; }
.option-group label, .switch-row { display: flex; align-items: center; gap: 7px; font-size: .83rem; color: var(--muted); cursor: pointer; }
input[type="checkbox"] { accent-color: var(--teal); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover:not(.disabled) { transform: translateY(-1px); }
.button.primary { background: var(--teal); color: white; box-shadow: 0 8px 25px rgba(15,118,110,.2); }
.button.primary:hover:not(.disabled) { background: var(--teal-2); }
.button.full { width: 100%; }
.button.ghost { min-height: 40px; padding: 8px 13px; border-color: var(--line); background: white; color: var(--navy); font-size: .78rem; }
.disabled { opacity: .57; cursor: not-allowed; }

.results-card { grid-column: 1 / -1; margin-top: 12px; padding: 34px; }
.result-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.result-head h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(1.7rem,3vw,2.4rem); }
.result-actions { display: flex; gap: 9px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 32px; }
.summary-grid > div { min-height: 93px; padding: 16px 18px; border-radius: 15px; background: var(--soft); }
.summary-grid span { display: block; color: var(--navy); font-size: 1.55rem; font-weight: 900; }
.summary-grid small { color: var(--muted); font-size: .73rem; font-weight: 800; }
.progress-cell i { display: block; width: 100%; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #dce3e9; }
.progress-cell b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }
.task-groups { display: grid; gap: 14px; }
.task-group { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.task-group h3 { display: flex; justify-content: space-between; margin: 0; padding: 13px 16px; background: var(--navy); color: white; font-size: .9rem; }
.task-group h3 small { color: #bcd4e5; font-weight: 700; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-item { display: grid; grid-template-columns: 30px 124px minmax(220px,1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid #e6ebef; }
.task-item:first-child { border-top: 0; }
.task-item:hover { background: #fbfdfd; }
.task-item.is-done .task-name { color: var(--muted); text-decoration: line-through; }
.task-item input { width: 18px; height: 18px; }
.task-date { color: var(--teal); font-size: .77rem; font-weight: 900; }
.task-date.is-past { color: var(--danger); }
.task-name { min-width: 0; font-weight: 750; }
.task-name small { display: block; color: var(--muted); font-size: .72rem; font-weight: 500; }
.official-link { color: var(--teal); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.result-note { margin: 22px 0 0; padding: 13px 15px; border-radius: 12px; background: var(--cream); color: #6f5209; font-size: .78rem; }

.section { padding: 96px 5vw; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.compact { max-width: 680px; }
.section-heading h2, .kit-copy h2, .notice-section h2 { margin-bottom: 16px; color: var(--navy); font-size: clamp(2rem,4vw,3.45rem); line-height: 1.14; letter-spacing: -.035em; }
.section-heading > p:not(.eyebrow), .kit-copy > p:not(.eyebrow):not(.price) { color: var(--muted); }

.measure-section { background: white; }
.measure-layout { display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; }
.measure-form { padding: 34px; }
.measure-block { margin-bottom: 26px; }
.measure-block h3 { margin-bottom: 12px; color: var(--navy); font-size: 1rem; }
.measure-block h3 small { color: var(--muted); font-weight: 500; }
.triple { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.triple label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.switch-row { width: fit-content; margin: -5px 0 24px; padding: 10px 13px; border-radius: 10px; background: var(--soft); }
.measure-result { padding: 42px; background: var(--navy); color: white; }
.measure-result .eyebrow { color: #9edbd3; }
.measure-result h3 { font-size: 1.65rem; line-height: 1.25; }
.measure-result p:not(.eyebrow), .measure-result li { color: #c9d7e2; font-size: .88rem; }
.measure-result ul { margin: 22px 0 0; padding-left: 1.2em; }
.measure-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 33px; border-radius: 18px; background: rgba(158,219,211,.15); color: #9edbd3; font-size: 2rem; font-weight: 900; }
.measure-result.pass { background: var(--teal-2); }
.measure-result.warn { background: #7d3c35; }
.is-hidden { display: none; }

.kit-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; background: linear-gradient(145deg,#f0f8f6,#f8fafc); }
.price { margin: 5px 0 20px; color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.price strong { font-size: 3.4rem; letter-spacing: -.04em; }
.price span { margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--cream); color: #7c5b08; font-size: .7rem; vertical-align: middle; }
.feature-list { display: grid; gap: 8px; margin: 24px 0 28px; padding: 0; list-style: none; }
.feature-list li::before { content: "✓"; margin-right: 9px; color: var(--teal); font-weight: 900; }
.kit-copy .button { width: 100%; }
.micro { margin: 10px 0 0; color: var(--muted); font-size: .72rem; }
.centered { text-align: center; }
.product-gallery { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; }
.product-gallery img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 14px 35px rgba(23,50,77,.09); }
.product-gallery img:first-child { grid-row: span 2; align-self: center; }

.action-section { background: white; }
.action-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.action-grid article { position: relative; min-height: 225px; padding: 26px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.action-num { color: #b4c1cc; font-size: .76rem; font-weight: 900; letter-spacing: .13em; }
.action-grid h3 { margin: 38px 0 8px; color: var(--navy); }
.action-grid p { color: var(--muted); font-size: .83rem; }
.text-link { position: absolute; bottom: 24px; color: var(--teal); font-size: .78rem; font-weight: 900; }

.guide-section { background: var(--navy); color: white; }
.guide-section .section-heading h2 { color: white; }
.guide-section .eyebrow { color: #9edbd3; }
.guide-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.guide-grid li { padding-top: 20px; border-top: 1px solid #476078; }
.guide-grid span { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 42px; border-radius: 999px; background: #9edbd3; color: var(--navy); font-weight: 900; }
.guide-grid h3 { margin-bottom: 8px; }
.guide-grid p { color: #bcd0df; font-size: .84rem; }

.sources-section { background: #f7f9fb; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-list a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--navy); font-size: .9rem; font-weight: 750; text-decoration: none; }
.source-list a:hover { border-color: var(--teal); }
.source-list span { display: block; margin-bottom: 3px; color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }

.notice-section { background: white; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice-grid > div { padding: 22px; border-radius: 15px; background: var(--soft); }
.notice-grid h3 { margin-bottom: 6px; color: var(--navy); font-size: .96rem; }
.notice-grid p { margin: 0; color: var(--muted); font-size: .8rem; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 50px 5vw 32px; background: var(--navy-2); color: white; }
.footer-brand { color: white; }
footer p { margin: 10px 0 0; color: #aebfcd; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: start; }
.footer-links a { color: #c8d5df; font-size: .78rem; text-decoration: none; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #2e465a; }

@media (max-width: 960px) {
  nav { display: none; }
  .planner-shell, .kit-section { grid-template-columns: 1fr; }
  .planner-intro { padding-top: 0; }
  .results-card { grid-column: auto; }
  .measure-layout { grid-template-columns: 1fr; }
  .action-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .product-gallery { max-width: 760px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 62px; }
  .planner-shell, .section { padding: 52px 20px; }
  .planner-card, .results-card, .measure-form, .measure-result { padding: 22px; }
  .field-grid, .triple, .action-grid, .guide-grid, .source-list, .notice-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .task-item { grid-template-columns: 25px 95px 1fr; }
  .official-link { grid-column: 3; }
  .result-head { align-items: start; flex-direction: column; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery img:first-child { grid-row: auto; }
  .guide-grid span { margin-bottom: 20px; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

@media print {
  .site-header, .planner-intro, .planner-card, .result-actions, .measure-section, .kit-section, .action-section, .guide-section, .sources-section, .notice-section, footer { display: none !important; }
  .planner-shell { display: block; padding: 0; background: white; }
  .results-card { border: 0; box-shadow: none; padding: 0; }
  .task-group { break-inside: avoid; }
  .task-item { padding: 8px; }
}

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