:root {
  color-scheme: light;
  --brand: #cc0000;
  --brand-dark: #a90000;
  --ink: #191919;
  --text: #292929;
  --muted: #686868;
  --line: #d8d8d8;
  --paper: #ffffff;
  --canvas: #f4f4f4;
  --soft-red: #fff2f1;
  --amber: #fff5df;
  --amber-line: #e5c36e;
  --green: #14532d;
  --font: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.75; }
button, input, select { font: inherit; }
a { color: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #ee7770; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 12px; top: -70px; padding: 8px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-note { background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; }
.header-note__inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; }
.header-note strong { color: #fff; }
.header-main { display: flex; align-items: center; min-height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; background: var(--brand); color: #fff; font-family: Georgia, serif; font-size: 29px; font-weight: 700; line-height: 1; }
.brand-text { display: grid; line-height: 1.3; }
.brand-text small { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.brand-text strong { color: var(--ink); font-size: 15px; }
.header-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-nav a { color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-nav a:hover, .text-link:hover { color: var(--brand); text-decoration: underline; }
.header-phone { display: grid; padding-left: 24px; border-left: 1px solid var(--line); color: var(--ink); line-height: 1.25; text-decoration: none; }
.header-phone small { color: var(--muted); font-size: 11px; }
.header-phone strong { font-size: 18px; font-variant-numeric: tabular-nums; }

.page-main { padding-bottom: 64px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; padding-block: 16px 12px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.intro { padding: 23px 0 30px; }
.eyebrow { margin: 0 0 5px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.4; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.intro h1 { margin: 0; color: var(--ink); font-size: 30px; line-height: 1.3; font-weight: 900; }
.intro-copy { max-width: 720px; margin: 10px 0 0; color: #444; font-size: 16px; }
.intro-note { margin: 14px 0 0; padding-left: 12px; border-left: 3px solid var(--brand); color: var(--muted); font-size: 13px; }

.app-shell { border: 1px solid #cfcfcf; border-top: 4px solid var(--brand); background: var(--paper); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 12px; }
.step-head h2, .results-head h2, .section-title h2, .contact-panel h2 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.35; font-weight: 900; }
.step-count { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 10px 26px 18px; list-style: none; }
.progress-list li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 2px solid var(--line); color: #858585; font-size: 12px; }
.progress-list li span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 800; }
.progress-list li.is-current { border-color: var(--brand); color: var(--brand); }
.progress-list li.is-done { border-color: #575757; color: #383838; }
.form-step { padding: 8px 26px 22px; }
.form-step h3 { margin: 0 0 16px; color: var(--ink); font-size: 18px; font-weight: 850; }
.section-help { margin: -8px 0 18px; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field > label, .fieldset > legend { color: var(--ink); font-size: 13px; font-weight: 800; }
.optional { color: var(--muted); font-size: 11px; font-weight: 500; }
select, input[type="text"] { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #bcbcbc; border-radius: 3px; background: #fff; color: var(--ink); }
.fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: grid; min-height: 44px; min-width: 86px; place-items: center; padding: 8px 12px; border: 1px solid #bcbcbc; border-radius: 3px; background: #fff; color: var(--text); font-size: 13px; font-weight: 750; }
.choice input:checked + span { border-color: var(--brand); background: var(--soft-red); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { outline: 3px solid #ee7770; outline-offset: 3px; }
.code-field { max-width: 390px; margin-top: 24px; }
.code-input-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0; }
.code-prefix { min-height: 46px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #bcbcbc; border-right: 0; background: #f1f1f1; color: var(--ink); font-weight: 800; }
.code-input-row input { border-top-left-radius: 0; border-bottom-left-radius: 0; font-variant-numeric: tabular-nums; }
.unknown-code { display: inline-flex; align-items: center; gap: 8px; color: #444; font-size: 12px; font-weight: 700; cursor: pointer; }
.unknown-code input { width: 17px; height: 17px; accent-color: var(--brand); }
.field-help { margin: 0; color: var(--muted); font-size: 12px; }
.notice { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--amber-line); background: var(--amber); color: #433514; font-size: 13px; line-height: 1.65; }
.notice--muted { border-color: var(--line); background: #f5f5f5; color: #565656; }
.field-error { margin-top: 14px; color: #a90000; font-size: 13px; font-weight: 800; }

.symptom-groups { display: grid; gap: 22px; }
.symptom-group h4 { margin: 0 0 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.symptom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.symptom-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.symptom-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.symptom-choice span { display: flex; align-items: flex-start; gap: 10px; min-height: 50px; padding: 12px; border: 1px solid #c9c9c9; border-radius: 3px; background: white; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.5; }
.symptom-choice span::before { content: ""; width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; border: 1px solid #888; border-radius: 2px; background: white; }
.symptom-choice input:checked + span { border-color: var(--brand); background: var(--soft-red); color: var(--brand-dark); }
.symptom-choice input:checked + span::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px white; }
.symptom-choice input:focus-visible + span { outline: 3px solid #ee7770; outline-offset: 2px; }

.step-actions { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 850; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button--primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button--primary:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.button--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.button--dark:hover { background: #363636; }
.button--quiet { border-color: #9d9d9d; background: #fff; color: var(--ink); }
.button--quiet:hover { border-color: var(--ink); background: #f4f4f4; }
.button--small { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.button--block { width: 100%; margin-top: auto; }

.results { margin-top: 30px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.results-head__actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.vehicle-result { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); background: #f8f8f8; }
.vehicle-result strong { display: block; color: var(--ink); font-size: 15px; }
.vehicle-result p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.status-label { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 9px; border: 1px solid #777; color: #3d3d3d; font-size: 11px; font-weight: 850; white-space: nowrap; }
.status-label--ok { border-color: #397348; background: #edf7ef; color: var(--green); }
.status-label--ng { border-color: var(--brand); background: var(--soft-red); color: var(--brand-dark); }
.result-list { display: grid; gap: 12px; }
.result-item { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: white; }
.result-item__head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 15px 17px 10px; }
.result-item h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.result-item__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 0 17px 16px; }
.result-item h4 { margin: 2px 0 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.result-item ul { margin: 0; padding-left: 1.2em; font-size: 13px; }
.result-item li + li { margin-top: 3px; }
.result-item p { margin: 0; font-size: 13px; }
.result-cost { color: var(--brand-dark); font-size: 15px !important; font-weight: 900; }
.result-meta { color: var(--muted); font-size: 11px !important; }
.result-source { display: inline-block; margin: 0 17px 14px; color: var(--brand-dark); font-size: 12px; font-weight: 750; }
.estimate-caution { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--amber-line); background: var(--amber); color: #3e3214; font-size: 13px; font-weight: 700; }
.tow-result { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); background: #f6f6f6; }
.tow-result h3 { margin: 0 0 4px; color: var(--ink); font-size: 14px; }
.tow-result p { margin: 0; font-size: 13px; }
.tow-result small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.choice-section { margin-top: 38px; }
.section-title { margin-bottom: 14px; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.option-panel { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--line); background: #fff; }
.option-panel--repair { border-top: 3px solid var(--brand); }
.option-panel--sell { border-top: 3px solid var(--ink); }
.option-label { margin: 0 0 2px; color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.option-panel h3 { margin: 0; color: var(--ink); font-size: 19px; }
.option-panel > p:not(.option-label) { margin: 8px 0 13px; color: #4f4f4f; font-size: 12px; line-height: 1.65; }
.text-link { display: inline-block; margin: 2px 0 13px; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.photo-list { margin: 0 0 14px; padding-left: 1.4em; color: #444; font-size: 12px; }
.small-note { margin: 10px 0 0 !important; color: var(--muted) !important; font-size: 11px !important; }
.stock-results { display: grid; gap: 8px; margin: 0 0 11px; }
.stock-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid #e3e3e3; }
.stock-card img { width: 84px; height: 66px; object-fit: cover; background: #eee; }
.stock-placeholder { display: grid; width: 84px; height: 66px; place-items: center; background: #ededed; color: #666; font-size: 11px; }
.stock-card__text { min-width: 0; }
.stock-card a { color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.45; text-decoration: none; }
.stock-card a:hover { color: var(--brand); text-decoration: underline; }
.stock-card strong { display: block; margin-top: 3px; color: var(--brand-dark); font-size: 13px; font-variant-numeric: tabular-nums; }
.stock-card small { display: block; color: var(--muted); font-size: 10px; }
.loading-note, .fees-note { margin: 0; color: var(--muted); font-size: 11px; }
.fees-note { padding-top: 8px; border-top: 1px dotted #bbb; }
.fees-note strong { display: block; color: #444; font-size: 10px; }
.fees-note ul { margin: 5px 0; padding-left: 1.3em; }
.fees-note li { margin: 2px 0; }
.fees-note small { display: block; line-height: 1.5; }

.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-top: 26px; padding: 18px; border: 1px solid var(--ink); background: #f7f7f7; }
.contact-panel h2 { font-size: 18px; }
.contact-panel p:not(.eyebrow) { margin: 4px 0 0; color: #555; font-size: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.contact-actions .button { min-height: 42px; font-size: 12px; }
.privacy-note { margin: 9px 0 0; color: var(--muted); font-size: 11px; }

.faq-section { margin-top: 45px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 15px 38px 15px 12px; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 12px; top: 12px; color: var(--brand); font-size: 20px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { margin: 0; padding: 0 14px 16px; color: #555; font-size: 13px; }
.source-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 27px; padding-top: 16px; border-top: 1px solid var(--line); }
.source-links a { color: var(--brand-dark); font-size: 12px; font-weight: 750; }
.site-footer { padding: 20px 0 12px; background: var(--ink); color: #eee; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand--footer .brand-text strong { color: white; }
.brand--footer .brand-mark { background: white; color: var(--brand); }
.footer-main p { margin: 0; color: #ccc; font-size: 12px; text-align: right; }
.footer-main a:not(.brand) { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 10px; border-top: 1px solid #444; color: #aaa; font-size: 10px; }
.footer-bottom a { color: #ddd; }
.toast { position: fixed; z-index: 10; right: 16px; bottom: 16px; max-width: min(400px, calc(100vw - 32px)); padding: 12px 16px; background: var(--ink); color: white; font-size: 13px; box-shadow: 0 4px 18px #0003; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .header-note__inner { display: grid; gap: 3px; font-size: 10px; }
  .header-main { min-height: 66px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 25px; }
  .brand-text small { font-size: 8px; }
  .brand-text strong { font-size: 13px; }
  .header-nav { display: none; }
  .header-phone { margin-left: auto; padding-left: 10px; }
  .header-phone small { font-size: 9px; }
  .header-phone strong { font-size: 14px; }
  .intro { padding: 19px 0 22px; }
  .intro h1 { font-size: 25px; }
  .intro-copy { font-size: 14px; }
  .step-head { padding: 18px 16px 9px; }
  .step-head h2, .results-head h2, .section-title h2 { font-size: 20px; }
  .progress-list { gap: 6px; padding: 8px 16px 14px; }
  .progress-list li { gap: 5px; font-size: 10px; }
  .progress-list li span { width: 21px; height: 21px; flex-basis: 21px; }
  .form-step { padding: 8px 16px 18px; }
  .form-step h3 { font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; gap: 17px; }
  .choice-row { gap: 6px; }
  .choice span { min-width: 74px; padding-inline: 9px; }
  .symptom-grid { grid-template-columns: 1fr; }
  .step-actions { padding: 11px 16px; }
  .button { min-height: 44px; padding: 9px 13px; font-size: 13px; }
  .vehicle-result { grid-template-columns: 1fr; gap: 8px; }
  .vehicle-result .status-label { justify-self: start; }
  .result-item__head { padding: 13px 13px 8px; }
  .result-item__body { grid-template-columns: 1fr; gap: 12px; padding: 0 13px 13px; }
  .result-source { margin-left: 13px; }
  .option-grid { grid-template-columns: 1fr; }
  .option-panel { padding: 15px; }
  .contact-panel { grid-template-columns: 1fr; gap: 14px; padding: 15px; }
  .contact-actions { justify-content: stretch; }
  .contact-actions > * { flex: 1 1 145px; }
  .footer-main { align-items: start; flex-direction: column; }
  .footer-main p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
