:root {
  color-scheme: light;
  --navy: #142a3d;
  --navy-deep: #0e2030;
  --muted: #526170;
  --gold: #78591e;
  --paper: #f7f3ea;
  --line: #dedbd2;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.75;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure { margin: 0; }
p + p { margin-top: .8rem; }
a { color: inherit; text-underline-offset: .2em; }
a, button, select, summary, input { -webkit-tap-highlight-color: #b9985d44; }
:focus-visible { outline: 3px solid #9b691c; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .5rem; background: #fff; }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .85rem; }
.logo { display: inline-flex; gap: .65rem; align-items: center; font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.logo span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #c19c60; border-radius: 7px; background: var(--paper); color: var(--gold); }
.bar nav { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; }
.bar nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .88rem; font-weight: 650; text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .55rem; font-size: .85rem; color: var(--muted); }
.hero { background: var(--paper); border-block: 1px solid #e8dfce; }
.hero-grid { display: grid; gap: 1.8rem; align-items: center; padding-block: clamp(2.2rem, 6vw, 4.7rem); }
.eyebrow { color: var(--gold); font-size: .875rem; font-weight: 750; letter-spacing: .045em; }
h1, h2, h3, h4, h5 { line-height: 1.4; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 6vw, 3.5rem); margin-block: .35rem .8rem; letter-spacing: .025em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1rem; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; margin-bottom: 1.3rem; }
.sheet {
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  border: 1px solid #d4c6aa; border-top: 4px solid #b9975c;
  border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #33261410;
}
.sheet figcaption { font-weight: 800; font-size: 1.1rem; }
.sheet ul { padding: 0; margin: .55rem 0 0; list-style: none; }
.sheet li { display: flex; gap: .75rem; border-top: 1px solid var(--line); padding-block: .55rem; }
.sheet li::before { content: ""; flex: 0 0 .8rem; height: .8rem; margin-top: .48rem; border: 1px solid #ab8a50; border-radius: 3px; background: var(--paper); }
.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section-head { margin-bottom: 1.25rem; }
.section-head h2::after { display: block; width: 2.3rem; height: 2px; margin-top: .6rem; background: #b28f52; content: ""; }
.section-head p, .card > p:not(.eyebrow), .guide p, .page-title p { color: var(--muted); margin-top: .5rem; }
.diagnosis-grid, .guides { display: grid; gap: 1rem; }
.diagnosis-grid { align-items: start; }
.card, .guide {
  min-width: 0; border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.65rem); background: #fff;
}
.card { border-top: 3px solid var(--navy); box-shadow: 0 6px 18px #142a3d0a; }
.card h3, .guide h3 { margin-top: .25rem; }
form { display: grid; gap: .85rem; margin-top: 1rem; }
.field { display: grid; gap: .25rem; font-size: .95rem; font-weight: 700; }
select {
  appearance: none; width: 100%; min-height: 46px; padding: .55rem 2rem .55rem .7rem; color: var(--navy);
  line-height: 1.5; font-family: inherit; font-size: 1rem; font-weight: 400;
  border: 1px solid #b9bfc4; border-radius: 6px;
  background: linear-gradient(45deg, transparent 50%, var(--navy) 50%) calc(100% - 15px) center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--navy) 50%, transparent 50%) calc(100% - 10px) center / 5px 5px no-repeat #fff;
}
fieldset { min-width: 0; margin: 0; padding: .35rem .75rem .6rem; border: 1px solid var(--line); border-radius: 7px; }
legend { padding-inline: .3rem; font-weight: 700; }
legend span { font-weight: 400; margin-inline-start: .35rem; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .95rem; cursor: pointer; }
.check:has(input:disabled) { color: var(--muted); cursor: default; }
.check input { width: 1.1rem; height: 1.1rem; flex: none; margin: 0; accent-color: var(--navy); }
.small { color: var(--muted); font-size: .85rem; }
.button, .affiliate-cta > a {
  display: inline-grid; place-items: center; min-height: 46px;
  padding: .65rem 1rem; border: 1px solid var(--navy); border-radius: 7px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; text-align: center; cursor: pointer;
}
.button:hover, .affiliate-cta > a:hover { background: #28455b; }
.button:disabled { opacity: .55; cursor: default; }
.result { margin-top: 1.15rem; padding: clamp(.75rem, 2vw, 1.1rem); border: 1px solid #d8c5a2; border-radius: 8px; background: var(--paper); }
.result h4, .result h5, .result p + p { margin-block: .45rem; }
.result .button { margin-top: .4rem; }
.result ul { padding-inline-start: 1.15rem; margin-block: .4rem .8rem; }
.result li + li { margin-top: .35rem; }
.ad { margin-top: .65rem; }
.affiliate-cta > a {
  display: inline-block;
  max-width: 100%;
  margin-top: .4rem;
  overflow-wrap: anywhere;
}
.affiliate-cta > a img, [data-affiliate-inline] img { display: inline; }
.affiliate-intro { margin-top: 1.85rem; }
.affiliate-inline-disclosure { color: var(--muted); font-size: .85rem; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-block: .85rem .5rem; background: #fff; }
caption { text-align: left; font-weight: 700; margin-bottom: .25rem; }
th, td { padding: .4rem .25rem; font-size: .875rem; line-height: 1.5; text-align: left; vertical-align: top; border: 1px solid #ded7c7; overflow-wrap: anywhere; }
th { background: #ede7d8; }
.band { background: #f9f7f2; border-block: 1px solid #e8e2d4; }
.guide { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.guide:hover { border-color: #a88951; box-shadow: 0 6px 18px #142a3d10; }
.guide .read { margin-top: auto; padding-top: .85rem; color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.faq { max-width: 54rem; }
details { border-bottom: 1px solid var(--line); }
summary { padding: .85rem 0; cursor: pointer; font-weight: 700; }
details p { padding: 0 .5rem .85rem; color: var(--muted); }
.prose { max-width: 51rem; padding-block: 1rem 3.5rem; }
.page-title { padding: clamp(1rem, 4vw, 2rem); background: var(--paper); border-radius: 10px; }
.prose h1 { font-size: clamp(1.65rem, 4vw, 2.6rem); }
.prose section { margin-top: 1.85rem; }
.prose h2, .prose h3 { margin-bottom: .5rem; }
.prose h3 { margin-top: 1rem; }
.byline { color: var(--muted); margin-top: 1rem; }
dt { font-weight: 700; }
dd { margin: 0 0 .6rem; }
footer { background: var(--navy-deep); color: #fff; }
footer .bar { padding-block: 1.1rem; }
footer :focus-visible { outline-color: #e1bc7e; }
@media (min-width: 48rem) {
  .shell { width: min(100% - 3.5rem, 72rem); }
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .diagnosis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  th, td { padding: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide { transition: none; }
}
