@font-face {
  font-family: "Noto Sans JP";
  src: url("./assets/NotoSansJP.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #F6F4ED; --brand: #47533B; --text: #30382E; --muted: #65695F;
  --line: #DCDED2; --panel: #FFFDF8; --soft: #ECE8DA; --focus: #855926;
  --radius: 14px; --shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", Meiryo, "Hiragino Kaku Gothic ProN", system-ui, sans-serif; font-size: 17px; line-height: 1.8; letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, h4, p, dd { overflow-wrap: anywhere; line-break: strict; }
h1, h2 { margin: 0; font-size: 28px; line-height: 1.5; font-weight: 500; }
h3 { margin: 0 0 16px; font-size: 22px; line-height: 1.6; font-weight: 500; }
h4 { margin: 0 0 16px; font-size: 18px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--brand); color: white; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner, main, .site-footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-height: 56px; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; flex: none; }
nav { display: flex; align-items: center; gap: 8px; font-size: 15px; }
nav a { display: inline-flex; min-height: 56px; align-items: center; padding: 0 16px; border-radius: 12px; text-decoration: none; }
nav a:hover { background: var(--soft); }
.nav-cta { background: var(--brand); color: white; }
.nav-cta:hover { background: var(--text); }
.mobile-label { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); grid-template-areas: "copy image" "actions image" "points image"; column-gap: 56px; row-gap: 16px; align-content: start; padding-top: 48px; }
.hero > * { min-width: 0; }
.hero-copy { grid-area: copy; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 14px; font-weight: 700; }
h1 span { display: block; }
.lead { margin: 16px 0 0; color: var(--muted); }
.age-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hero-image { grid-area: image; margin: 0; width: 100%; aspect-ratio: 4 / 3; align-self: end; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 57%; }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 10px 24px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: var(--text); }
.button.secondary { background: var(--panel); border-color: var(--line); color: var(--text); }
.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; font-size: 14px; text-underline-offset: 5px; }
.hero-points { grid-area: points; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.hero-points li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.hero-points span { color: var(--brand); font-size: 14px; font-weight: 700; }
.notice { margin: 72px 0 48px; padding: 22px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.notice p { margin: 0; }
.diagnosis-shell, .info-section { margin: 48px 0; scroll-margin-top: 104px; }
.section-heading { margin-bottom: 24px; }
.section-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); max-width: 48em; }
.question-panel { max-width: 840px; margin: 0 auto; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress-row { display: grid; grid-template-columns: auto minmax(120px, 1fr); align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.progress-track { height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--brand); transition: width .2s; }
fieldset { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-size: 24px; line-height: 1.5; font-weight: 500; }
.question-help { margin: 10px 0 0; color: var(--muted); }
.choices { display: grid; gap: 12px; margin-top: 20px; }
.choice { min-height: 72px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: #EEF1E7; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--brand); }
.choice-content { display: grid; gap: 4px; }
.choice-content strong { line-height: 1.6; font-weight: 500; }
.choice-content span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.form-error { margin: 14px 0 0; color: #8A3F2D; }
.form-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-actions { justify-content: space-between; }
.form-actions .button { min-width: 112px; }
.result-panel { max-width: 960px; margin-inline: auto; scroll-margin-top: 104px; }
.result-top { padding: 0 0 32px; }
.result-level { margin: 0 0 8px; color: var(--brand); font-size: 28px; font-weight: 700; line-height: 1.5; }
.result-top h2 { font-size: 26px; }
.result-top .lead { max-width: 48em; }
.result-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.partial-note { margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--brand); font-size: 15px; }
.result-section, .calculator { padding: 28px 0; border-top: 1px solid var(--line); }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li + li { margin-top: 6px; }
.care-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 0; padding: 0; list-style: none; counter-reset: care; }
.care-items li { display: flex; align-items: flex-start; gap: 14px; counter-increment: care; }
.care-items li::before { content: counter(care, decimal-leading-zero); font-size: 18px; color: var(--brand); font-weight: 700; line-height: 1.5; }
.care-area { display: block; font-size: 14px; color: var(--muted); }
.care-items p { margin: 2px 0 0; }
.summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.summary-heading h3 { margin: 0; }
.text-button { min-height: 56px; flex: none; border: 0; background: transparent; color: var(--brand); padding: 8px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.answer-summary { margin: 0; }
.summary-item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.summary-item:last-child { border-bottom: 0; }
.summary-item dt { font-size: 15px; color: var(--muted); }
.summary-item dd { margin: 0; }
.calculator-intro p { margin: 0; color: var(--muted); }
.calc-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.calc-card { min-width: 0; }
.input-list { display: grid; gap: 16px; }
.calc-row { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calc-row label { font-size: 15px; font-weight: 700; }
.calc-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.calc-fields input { min-height: 56px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--panel); color: var(--text); }
.calc-fields span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.calc-status { min-height: 1.8em; margin: 0; color: var(--muted); font-size: 14px; }
.total-box { margin-top: 18px; padding: 16px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; border-bottom: 2px solid var(--brand); }
.total-box span { color: var(--muted); font-size: 14px; }
.total-box strong { font-size: 20px; }
.calc-notes { margin-top: 24px; color: var(--muted); font-size: 14px; }
.calc-notes p { margin: 0 0 8px; }
.calc-mode { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.calc-mode button { flex: 1; min-height: 56px; padding: 8px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.calc-mode button[aria-pressed="true"] { border-bottom-color: var(--brand); color: var(--brand); font-weight: 700; }
.simple-field { margin-bottom: 16px; }
.simple-field label { display: block; margin-bottom: 8px; }
.unit-input { display: flex; align-items: center; gap: 12px; }
.unit-input input { width: 100%; min-width: 0; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: white; }
.simple-field .small-note { margin: 6px 0 0; }
.input-feedback { color: #9B352B; font-size: 14px; margin: 4px 0 0; }
.input-feedback:empty { display: none; }
.calc-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 16px; }
.calc-totals span, .calc-totals strong { display: block; }
.calc-totals span { font-size: 14px; color: var(--muted); }
.calc-totals strong { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
#sample-pdf-link { display: inline-flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.sample-page-preview { display: block; width: 100%; height: auto; }
.offer-contents { list-style: none; padding-left: 0; }
.offer-contents li { display: flex; align-items: center; gap: 10px; }
.offer-contents img { width: 24px; height: 24px; flex: none; }
#detail-calculator, .calculator { scroll-margin-top: 96px; }
.result-actions { border-top: 1px solid var(--line); padding-top: 24px; }
.related-guides > p { margin: 0 0 16px; color: var(--muted); }
.related-guides-list { display: grid; gap: 12px; }
.related-guides-list a { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 56px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; text-wrap: balance; }
.related-guides-list a:hover { border-color: var(--brand); background: #EEF1E7; }
.related-guides-list a span { font-size: 14px; font-weight: 400; color: var(--muted); }
.info-section { padding-top: 32px; border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.info-grid p { margin: 0; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; gap: 12px; }
.steps span { font-weight: 700; color: var(--brand); }
.site-footer { margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }
.print-report { display: none; }
.result-vet-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.next-steps > p { margin-top: 0; color: var(--muted); }
.next-steps, #paid-sample { scroll-margin-top: 104px; }
.next-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.next-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; }
.next-option::after { content: "+"; font-size: 22px; flex: none; width: 20px; text-align: center; }
.next-option[aria-expanded="true"] { border-color: var(--brand); background: #EEF1E7; }
.next-option[aria-expanded="true"]::after { content: "−"; }
.next-panel { border-top: 1px solid var(--line); padding-top: 24px; scroll-margin-top: 104px; }
.next-panel p { margin: 0 0 16px; }
.next-panel h4 { font-size: 22px; font-weight: 500; }
.small-note { font-size: 14px; color: var(--muted); line-height: 1.8; }
.memo-label { display: block; font-weight: 500; margin-bottom: 8px; }
#result-memo { width: 100%; min-height: 140px; resize: vertical; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.created-date { font-size: 14px; color: var(--muted); }
#free-print { margin: 4px 0 12px; }
.offer-name { font-weight: 700; }
.offer-contents { padding-left: 1.3em; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-block: 24px; }
details summary { min-height: 56px; padding: 12px 0; cursor: pointer; color: var(--brand); text-underline-offset: 5px; }
.sample-sheet { max-width: 660px; margin-block: 16px; background: white; padding: 24px; border: 1px solid var(--line); }
.sample-sheet h5, .affiliate-card h5 { margin: 0 0 16px; font-size: 20px; font-weight: 500; }
.blank-line { display: inline-block; width: 140px; border-bottom: 1px solid var(--line); }
.sample-fields { margin: 0; }
.sample-fields > div { margin-top: 16px; }
.sample-fields dt { font-size: 15px; font-weight: 500; }
.sample-fields dd { margin: 0; min-height: 64px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.affiliate-section { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--line); }
.ad-disclosure { padding: 16px; border-left: 3px solid #78644B; background: #EFEBE4; font-size: 14px; }
.affiliate-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.affiliate-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ad-label { font-size: 14px; font-weight: 700; color: #68533B; }
.affiliate-card .button { display: flex; flex-direction: column; gap: 4px; padding-inline: 12px; }
.new-window-label { font-size: 14px; font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { min-height: 56px; padding-inline: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin-bottom: 24px; }
.footer-group { display: flex; flex-direction: column; min-width: 0; }
.footer-group-title { margin: 0 0 4px; color: var(--text); font-size: 14px; font-weight: 700; }
.footer-group a { min-height: 56px; display: flex; align-items: center; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.footer-group a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.legal-page { max-width: 840px; padding-block: 40px 8px; scroll-margin-top: 104px; }
.legal-page h1 { margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; margin-bottom: 16px; }
.legal-page p, .legal-page li, .legal-page dd { overflow-wrap: anywhere; }
.legal-page section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-page section p:last-child { margin-bottom: 0; }
.legal-page a { text-underline-offset: 5px; }
.legal-page a[href^="mailto:"] { display: inline-block; min-height: 56px; padding-block: 8px; }
.operator-details { margin: 0; }
.operator-details > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.operator-details dt { color: var(--muted); }
.operator-details dd { margin: 0; min-width: 0; }
.policy-date { font-size: 14px; color: var(--muted); margin-top: 24px; }
.contact-address { display: block; min-height: 56px; margin-block: 16px; padding-block: 10px; font-size: 20px; color: var(--brand); user-select: all; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.contact-page .contact-actions .button { min-height: 56px; padding: 12px 20px; }
.copy-status { min-height: 26px; margin: 12px 0 8px; }
.contact-operator { font-size: 14px; color: var(--muted); }
.operator-details a { display: inline-block; min-height: 56px; padding-block: 10px; }
.footer-links [aria-current="page"] { font-weight: 700; }
@media (max-width: 600px) { .contact-actions { flex-direction: column; } .contact-address { font-size: 17px; } }
@media (max-width: 960px) {
  .header-inner { min-height: 72px; gap: 12px; }
  .desktop-nav, .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "image" "actions" "points"; gap: 20px; padding-top: 28px; }
  .hero-image { width: 100%; height: 320px; aspect-ratio: auto; }
  .hero-actions { gap: 16px; }
  .hero-points { gap: 8px 24px; }
  .notice { margin-top: 40px; }
  .info-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .next-options, .offer-contents, .affiliate-products { grid-template-columns: minmax(0, 1fr); }
  .next-panel { scroll-margin-top: 84px; }
  .next-steps, #paid-sample, .legal-page { scroll-margin-top: 84px; }
  .next-panel h4 { font-size: 20px; }
  .next-panel .button { width: 100%; }
  .sample-sheet { padding: 16px; }
  .footer-links { display: grid; grid-template-columns: 1fr; gap: 0; }
  .footer-groups { grid-template-columns: 1fr; gap: 20px; }
  .footer-group a.footer-article { display: none; }
  .legal-page { padding-top: 28px; }
  .legal-page h2 { font-size: 20px; }
  .operator-details > div { grid-template-columns: 1fr; gap: 4px; }
  .header-inner, main, .site-footer { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  nav { gap: 0; font-size: 14px; }
  nav a { padding-inline: 16px; }
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .hero { padding-top: 20px; row-gap: 16px; }
  .eyebrow { margin-bottom: 8px; }
  .lead { margin-top: 12px; }
  .age-note { margin-top: 8px; }
  .hero-image { height: 192px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-points { padding-top: 12px; gap: 8px 10px; }
  .hero-points li { gap: 6px; }
  .notice { margin: 32px 0; }
  .diagnosis-shell, .info-section { margin-block: 32px; scroll-margin-top: 84px; }
  .question-panel { padding: 18px; }
  legend { font-size: 22px; }
  .choice { padding: 14px; gap: 10px; }
  .result-panel { scroll-margin-top: 88px; }
  .result-top { padding-bottom: 24px; }
  .result-top h2 { font-size: 24px; }
  .result-level { font-size: 28px; }
  .result-section, .calculator { padding-block: 24px; }
  .care-items, .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-heading { gap: 8px; }
  .summary-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .result-actions { flex-direction: column; }
  .result-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-track span { transition: none; }
}
