:root {
  color-scheme: light;
  --navy: #0b2842; --ink: #102b43; --muted: #496379; --blue: #075a87;
  --sky: #dff3fd; --paper: #f3f8fb; --white: #fff; --border: #c5d6e2;
  --line: #00783e; --focus: #ae5000;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink); background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 10px; left: 10px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { background: #fff; border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; line-height: 1; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--navy); color: var(--sky); border-radius: 50%; }
.brand b { display: block; font-size: 1.23rem; letter-spacing: .08em; }
.brand small { font-size: .62rem; letter-spacing: .22em; font-weight: 800; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; font-weight: 750; color: var(--navy); }
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); min-height: 237px; }
.hero-copy { align-self: center; padding: 24px 10px 28px 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: .73rem; font-weight: 850; letter-spacing: .14em; }
.hero .eyebrow { color: #9ddbf9; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0 0 11px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.18; letter-spacing: -.025em; }
.hero p:last-child { margin: 0; max-width: 46ch; color: #dbeaf5; line-height: 1.55; font-size: .98rem; }
.hero-photo { position: relative; }
.hero-photo img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 31%); }
.workspace { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(0,1fr); align-items: start; gap: 24px; padding-block: 24px 40px; }
.form-card, .guide { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; background: #eaf3f9; border-bottom: 1px solid var(--border); }
.steps li { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 12px 5px; color: var(--muted); font-size: .83rem; font-weight: 750; text-align: center; }
.steps li[aria-current] { background: var(--sky); color: var(--navy); box-shadow: inset 0 -3px var(--blue); }
.steps span { color: var(--blue); font-weight: 900; font-variant-numeric: tabular-nums; }
.panel, .fallback { padding: clamp(18px, 4vw, 30px); }
.step-tag { margin: 0 0 5px; color: var(--blue); font-size: .74rem; font-weight: 850; letter-spacing: .1em; }
h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; }
.lead { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.pairs, .date-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.date-pair { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 8px; margin-bottom: 12px; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.pairs > fieldset { padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 12px; }
legend { padding: 0; font-weight: 820; margin-bottom: 8px; }
.pairs > fieldset legend { padding: 0 5px; margin-bottom: 0; }
label { display: grid; min-width: 0; gap: 6px; font-size: .87rem; font-weight: 720; }
input[type="date"], input[type="time"], select, textarea {
  min-width: 0; width: 100%; min-height: 46px; padding: 8px; border: 1px solid #a7bdcd;
  border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px;
}
input[type="date"], input[type="time"] { appearance: none; -webkit-appearance: none; }
input::-webkit-date-and-time-value { text-align: left; }
textarea { resize: vertical; }
.fee { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #eaf5fc; border-radius: 10px; }
.fee small, .facts span { display: block; margin-top: 3px; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.fee output { flex: none; font-size: 1.25rem; font-weight: 850; }
.error { background: #fff3ef; border-radius: 8px; padding: 9px 12px; color: #892b18; font-weight: 740; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; min-height: 50px; padding: 10px 16px; text-decoration: none; text-align: center; font-weight: 830; line-height: 1.35; }
.button.primary { color: white; background: var(--navy); }
.button.line { color: white; background: var(--line); }
.button.secondary { background: #fff; color: var(--ink); border-color: #a7bdcd; }
.button:hover { filter: brightness(.94); }
.cars { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.car { position: relative; display: block; padding: 7px 7px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.car img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; margin-bottom: 4px; }
.car span { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.car input { accent-color: var(--blue); margin: 0 0 3px; width: 18px; height: 18px; }
.car:has(input:checked) { border-color: var(--blue); background: #eaf5fc; box-shadow: 0 0 0 1px var(--blue); }
.no-car { display: flex; gap: 7px; align-items: center; grid-column: 1 / -1; min-height: 44px; }
.no-car input { margin: 0; }
.caption { color: var(--muted); font-size: .81rem; line-height: 1.6; }
.extras { border: 1px solid var(--border); border-radius: 10px; margin-top: 16px; padding: 0 12px; }
.extras summary { min-height: 46px; padding-block: 11px; font-weight: 780; }
.extras[open] { padding-bottom: 12px; }
.company, .equipment { margin-top: 14px; }
.check-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.check-list label { display: flex; align-items: center; min-height: 40px; }
.check-list input { accent-color: var(--blue); width: 17px; height: 17px; }
.notice { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--blue); background: #ebf5fb; border-radius: 6px; line-height: 1.55; font-size: .9rem; }
.notice p { margin: 4px 0 0; }
.review { margin: 0 0 15px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; }
.review div { display: grid; grid-template-columns: minmax(80px,1fr) minmax(0,2.2fr); gap: 9px; padding-block: 8px; }
.review div + div { border-top: 1px solid #e3edf3; }
.review dt { color: var(--muted); font-size: .85rem; font-weight: 750; }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.send-note { text-align: right; }
.copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.guide { padding: 20px; }
.guide h2 { font-size: 1.25rem; }
.facts { display: grid; gap: 10px; margin-block: 12px; }
.facts > div { background: #f0f7fb; padding: 11px; border-radius: 9px; }
.facts strong { font-size: 1.25rem; color: var(--blue); }
.guide-links { display: grid; }
.guide-links a { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: 44px; border-top: 1px solid #dfebf3; font-size: .88rem; font-weight: 740; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--border); padding: 18px 0; color: var(--muted); font-size: .79rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (min-width: 831px) and (max-width: 1020px) {
  .panel[data-step="0"] .pairs { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 830px) {
  .workspace { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 26px); }
  .top-inner { min-height: 58px; }
  .top nav { gap: 4px 10px; }
  .hero-inner { position: relative; display: block; min-height: 0; }
  .hero-copy { padding-block: 20px 22px; max-width: 92%; }
  .hero p:last-child { font-size: .88rem; }
  .hero-photo { position: absolute; inset: 0 -13px 0 44%; opacity: .42; }
  .hero-photo::after { background: linear-gradient(90deg,var(--navy), transparent 80%); }
  .workspace { gap: 16px; padding-block: 14px 24px; }
  .steps li { gap: 4px; font-size: .74rem; }
  .panel > .pairs { grid-template-columns: minmax(0,1fr); }
  .panel > .details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cars { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .actions .primary, .actions .line { flex: 1; }
}
