:root {
  color-scheme: light;
  --ink: #253b30;
  --muted: #58685f;
  --paper: #f6f8f5;
  --surface: #fff;
  --line: #dce4dd;
  --teal: #276449;
  --teal-dark: #1d4f39;
  --teal-soft: #eef5ef;
  --focus: #155e87;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 1rem; line-height: 1.8; -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; }
a { color: var(--teal); text-underline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.shell { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-symbol { display: block; width: 48px; height: 48px; flex-shrink: 0; }
.brand-name { font-size: 1.05rem; font-weight: 700; line-height: 1.4; letter-spacing: .04em; white-space: nowrap; }
.brand-accent { display: block; color: var(--teal); }
.header-link { font-size: .88rem; font-weight: 700; text-decoration-thickness: 1px; }
.intro { padding-block: 56px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 24px 48px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: .88rem; font-weight: 700; letter-spacing: .04em; }
h1 { max-width: 660px; margin: 0; font-size: clamp(2rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1.5; letter-spacing: .01em; text-wrap: pretty; }
.headline-tail { display: inline-block; }
.lead { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.trust-list { margin: 0; padding: 2px 0 2px 24px; border-left: 1px solid var(--line); list-style: none; display: grid; gap: 12px; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.trust-list li { position: relative; padding-left: 12px; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; background: var(--teal); border-radius: 50%; }
.pr-notice { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.selector { padding-block: 24px 48px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.step { margin: 0 0 8px; color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.section-heading.compact { margin-bottom: 24px; }
.condition-panel { padding: 28px 32px; background: var(--paper); border-radius: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.input-group { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
fieldset.input-group { display: block; }
.input-group[data-field="storage_need"] { grid-column: 1 / -1; }
.input-group legend, .input-label { display: block; padding: 0; margin-bottom: 12px; font-size: .94rem; font-weight: 700; }
.input-group legend > span, .input-label > span { display: inline-block; margin-right: 8px; color: var(--teal); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.input-group select { width: 100%; min-height: 48px; padding: 10px 36px 10px 12px; border: 1px solid #94a69a; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: .94rem; }
.input-group select:disabled { color: #637167; background: #eaf0e9; border-color: #c8d3ca; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.input-choice { position: relative; display: inline-flex; flex: 1 1 auto; }
.input-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.input-choice span { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid #94a69a; border-radius: 4px; background: var(--surface); cursor: pointer; font-size: .94rem; }
.input-choice span::before { content: ""; box-sizing: border-box; flex: 0 0 18px; height: 18px; border: 1px solid #768c7d; border-radius: 50%; background: white; }
.input-choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }
.input-choice input:checked + span::before { border: 5px solid var(--teal); }
.input-choice input:focus-visible + span, a:focus-visible, summary:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.input-help { margin: 10px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.condition-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.condition-summary { margin: 0; color: var(--muted); font-size: .88rem; }
.compare-button { flex-shrink: 0; min-height: 52px; padding: 12px 28px; border: 0; border-radius: 4px; background: var(--teal); color: white; font-weight: 700; cursor: pointer; }
.compare-button:hover { background: var(--teal-dark); }
.condition-error { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-left: 3px solid #a13e32; background: #fff5f2; color: #853025; font-size: .92rem; font-weight: 700; }
.condition-error:empty { display: none; }
.scope-limit { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.9; }
.results { padding-block: 32px 56px; }
.results-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.case-summary { max-width: 500px; margin: 0; color: var(--muted); font-size: .88rem; text-align: right; }
.ranking-note { margin: 24px 0 32px; padding: 4px 0 4px 16px; border-left: 2px solid var(--teal); color: var(--muted); font-size: .86rem; line-height: 1.9; }
.result-list { display: grid; gap: 28px; }
.result-card { min-width: 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.position { color: var(--muted); font-size: .78rem; letter-spacing: .03em; }
.eligibility { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 700; }
.eligibility::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.eligibility.is-ok { color: var(--teal); }
.eligibility.is-conditional { color: #7a571d; }
.eligibility.is-out { color: #853025; }
.eligibility.is-check { color: #59645d; }
.provider-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.provider-name { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
.plan-name { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.price-block { min-width: 0; display: grid; text-align: right; }
.price-label { color: var(--muted); font-size: .78rem; }
.price { color: var(--teal-dark); font-size: 1.9rem; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.price-note { margin: 18px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.9; }
.quick-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; padding-block: 16px; border-block: 1px solid var(--line); }
.quick-facts > div { display: grid; gap: 4px; }
.quick-facts span { color: var(--muted); font-size: .78rem; }
.quick-facts strong { font-size: .94rem; font-weight: 700; }
.axis-details { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
details { min-width: 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
details p { margin: 0 0 16px; color: var(--muted); font-size: .86rem; line-height: 1.9; }
summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; color: var(--teal); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex-shrink: 0; color: var(--muted); font-size: 1rem; }
details[open] summary::after { content: "−"; }
.final-check { margin-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; font-size: .85rem; line-height: 1.9; }
.final-check strong { font-weight: 700; }
.final-check span { color: var(--muted); }
.confidence { margin-top: 16px; color: var(--muted); font-size: .82rem; line-height: 1.9; }
.source-link { display: inline-block; margin-top: 12px; padding-block: 4px; font-size: .82rem; }
.official-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 20px; border-radius: 4px; background: var(--teal); color: white; font-size: .94rem; font-weight: 700; line-height: 1.8; text-decoration: none; }
.official-cta:hover { background: var(--teal-dark); }
.a8-cta { display: block; }
.a8-ad-label { display: block; font-size: .72rem; font-weight: 400; }
.a8-cta a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: white; text-underline-offset: 3px; }
.a8-cta a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.overview { padding-block: 32px 48px; border-top: 1px solid var(--line); }
.overview .section-heading h2 { font-size: 1.3rem; }
.overview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.overview-card { display: flex; flex-direction: column; min-width: 0; padding: 0; }
.overview-card h3 { margin: 0 0 10px; font-size: .96rem; font-weight: 700; }
.overview-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.9; }
.provider-overview-link { align-self: flex-start; margin-top: auto; padding-top: 16px; font-size: .78rem; line-height: 1.8; }
.notice { padding-block: 32px 48px; border-top: 1px solid var(--line); }
.notice h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.notice p { margin: 0; max-width: 900px; color: var(--muted); font-size: .84rem; line-height: 2; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 32px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; font-size: .82rem; }
.footer-brand { color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.footer-privacy h2 { margin: 0 0 12px; font-size: .9rem; font-weight: 700; }
.footer-privacy p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 2; }
.footer-privacy a { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .trust-list { border: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .condition-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .results-heading-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .case-summary { text-align: left; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-symbol { width: 40px; height: 40px; }
  .brand-name { font-size: .94rem; letter-spacing: .02em; }
  .header-link { font-size: .75rem; }
  .intro { padding-block: 32px 24px; gap: 20px; }
  .eyebrow { margin-bottom: 10px; font-size: .8rem; }
  h1 { font-size: 1.75rem; line-height: 1.55; letter-spacing: 0; }
  .lead { margin-top: 16px; font-size: .92rem; line-height: 1.9; }
  .trust-list { grid-template-columns: 1fr; gap: 5px; font-size: .78rem; line-height: 1.8; }
  .pr-notice { margin-top: 0; font-size: .73rem; line-height: 1.8; }
  .selector { padding-block: 16px 40px; }
  .section-heading h2 { font-size: 1.35rem; }
  .section-heading.compact { margin-bottom: 20px; }
  .condition-panel { padding: 24px 20px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .condition-actions, .condition-error, .scope-limit, .input-group[data-field="storage_need"] { grid-column: 1; }
  .input-group[data-field="storage_need"] .input-choice { flex-basis: 100%; }
  .choice-row { gap: 10px; }
  .input-choice span { padding-inline: 12px; font-size: .88rem; }
  .input-group legend, .input-label { font-size: .9rem; }
  .input-group select { font-size: .88rem; }
  .input-help { font-size: .78rem; }
  .condition-summary { font-size: .84rem; }
  .compare-button { width: 100%; font-size: .94rem; }
  .scope-limit { font-size: .76rem; }
  .results { padding-block: 24px 40px; }
  .ranking-note { margin: 20px 0 24px; font-size: .82rem; }
  .result-list { gap: 24px; }
  .result-card { padding: 22px 20px; }
  .result-topline { margin-bottom: 16px; }
  .position { font-size: .75rem; }
  .eligibility { font-size: .8rem; }
  .provider-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .provider-name { font-size: 1.35rem; }
  .plan-name { font-size: .86rem; }
  .price-block { text-align: left; }
  .price { font-size: 1.8rem; }
  .price-note { margin-top: 12px; font-size: .8rem; }
  .quick-facts { gap: 16px; margin-top: 20px; }
  .quick-facts strong { font-size: .86rem; }
  .axis-details { grid-template-columns: minmax(0, 1fr); }
  .final-check { grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: .82rem; }
  .confidence { font-size: .8rem; }
  .source-link { font-size: .78rem; }
  .official-cta { padding: 14px 16px; font-size: .9rem; }
  .overview { padding-block: 28px 32px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .overview-card { padding-block: 20px; border-bottom: 1px solid var(--line); }
  .overview-card:first-child { padding-top: 0; }
  .overview-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .provider-overview-link { padding-top: 12px; }
  .notice { padding-block: 28px 36px; }
  .footer-inner { padding-block: 28px; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
