:root {
  color-scheme: dark;
  --navy: #081b2d;
  --navy-raised: #0c2940;
  --navy-soft: #103651;
  --line: #25475e;
  --warm: #efe8db;
  --warm-muted: #b9bdba;
  --red: #a94842;
  --red-active: #ca625a;
  --radius: 14px;
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; background: var(--navy); }
body { margin: 0; overflow-x: hidden; background: var(--navy); color: var(--warm); }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--red-active); outline-offset: 3px; }

.page-shell { width: min(100%, 680px); min-height: 100dvh; margin: 0 auto; padding: 0 18px 116px; }
.hero { position: relative; padding: 0 0 34px; }
.hero-topbar { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px 18px 12px 0; }
.brand-lockup { width: min(40vw, 168px); height: auto; opacity: .93; }
.consult-link { min-height: 40px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--red); color: var(--warm); text-decoration: none; }
.hero-visual { width: calc(100% + 36px); margin: 0 0 -66px -18px; }
.hero-image-frame { position: relative; display: grid; min-height: clamp(330px, 88vw, 490px); overflow: hidden; background: var(--navy-soft); }
.hero-image-frame > * { grid-area: 1 / 1; width: 100%; height: 100%; }
.hero-image-frame::after { content: ""; grid-area: 1 / 1; z-index: 1; background: linear-gradient(180deg, rgb(4 20 33 / .45) 0%, rgb(4 20 33 / .06) 40%, var(--navy) 100%); pointer-events: none; }
.hero-image-frame img { object-fit: cover; object-position: 58% center; }
.hero-image-fallback { display: grid; margin: 0; place-items: center; padding: 20px; color: var(--warm-muted); text-align: center; background: var(--navy-soft); }
.hero-copy { position: relative; z-index: 1; padding: 0 2px; }
.eyebrow { margin: 0 0 10px; color: var(--warm); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-family: var(--font-ui); font-size: clamp(40px, 10.5vw, 56px); font-weight: 650; line-height: 1.16; letter-spacing: -.045em; }
h1 span { display: block; }
h2 { margin-bottom: 0; font-family: var(--font-ui); font-size: 26px; font-weight: 500; letter-spacing: -.015em; }
.hero-summary { max-width: 340px; margin-bottom: 14px; color: var(--warm); font-size: 15px; letter-spacing: .02em; line-height: 1.6; }
.hero-link, .category-button { min-height: 40px; display: inline-flex; align-items: center; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: var(--warm); text-decoration: none; transition: color .18s ease, transform .18s ease; }
.hero-link::after, .category-button::after { content: "→"; padding-left: 9px; color: var(--red-active); }
.hero-link:active, .category-button:active, .detail-button:active { transform: translateY(1px) scale(.98); }

.selection, .seat-categories, .vehicles, .notice { padding: 30px 0; border-top: 1px solid var(--line); }

.vehicles-header { padding: 18px 0 0; }
.vehicles-header-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--warm); text-decoration: none; border-bottom: 1px solid var(--red); }
.back-link::before { content: "←"; color: var(--red-active); }
.vehicles-logo { width: min(34vw, 128px); height: auto; opacity: .93; }
.vehicles-title { margin: 20px 0 6px; font-family: var(--font-ui); font-size: clamp(30px, 8vw, 40px); font-weight: 650; letter-spacing: -.035em; }
.vehicles-sub { margin: 0; color: var(--warm-muted); font-size: 14px; letter-spacing: .02em; }
.vehicles-page .selection { border-top: 0; padding-top: 22px; }
.filter-group { margin-top: 22px; }
.filter-options { display: grid; }
#use-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
#seat-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.filter-button { min-width: 0; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; color: var(--warm-muted); font-size: 14px; }
#use-filters .filter-button[aria-pressed="true"] { color: var(--warm); box-shadow: inset 0 -2px 0 var(--red); }
#seat-filters .filter-button + .filter-button { border-left: 1px solid var(--line); }
#seat-filters .filter-button[aria-pressed="true"] { color: var(--warm); background: rgb(169 72 66 / .17); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.section-heading > p:last-child { max-width: 195px; margin: 0; color: var(--warm-muted); font-size: 12px; line-height: 1.5; text-align: right; }
.category-list { display: grid; gap: 14px; }
.category-card { --card-min: 184px; position: relative; display: block; min-height: var(--card-min); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-raised); color: var(--warm); text-decoration: none; isolation: isolate; box-shadow: inset 0 0 38px rgb(4 22 37 / .52); transition: transform .18s ease; }
.category-card:nth-child(1) { --card-min: 248px; }
.category-card:nth-child(2) { --card-min: 196px; }
.category-card:nth-child(3) { --card-min: 228px; }
.category-card:active { transform: translateY(1px) scale(.985); }
.category-image, .category-card-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-image { object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.04) brightness(.78); transition: transform .5s ease; }
.category-card:nth-child(1) .category-image { object-position: 50% 40%; }
.category-card:nth-child(2) .category-image { object-position: 50% 62%; }
.category-card:nth-child(3) .category-image { object-position: 50% 46%; }
.category-card:hover .category-image, .category-card:focus-visible .category-image { transform: scale(1.03); }
.category-card-shade { z-index: 1; background: linear-gradient(90deg, rgb(4 22 37 / .92) 2%, rgb(4 22 37 / .68) 47%, rgb(4 22 37 / .16) 100%), linear-gradient(0deg, rgb(4 22 37 / .64), transparent 55%); }
.category-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; min-height: var(--card-min); padding: 22px; }
.category-card-meta { margin: 0 0 7px; color: var(--warm-muted); font-size: 14px; }
.category-card h3 { margin-bottom: 12px; font-family: var(--font-ui); font-size: 27px; font-weight: 550; letter-spacing: -.025em; }
.category-button { font-size: 14px; }
.vehicle-grid { display: grid; gap: 12px; }
.vehicle-card, .empty-state { border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-raised); }
.vehicle-card-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 18px; }
.vehicle-card-meta { grid-column: 1 / -1; margin: 0; color: var(--warm-muted); font-size: 13px; }
.vehicle-card h3 { margin: 0; font-size: 19px; font-weight: 550; }
.vehicle-card-price { margin: 0; color: var(--warm); font-size: 15px; }
.detail-button { grid-column: 2; grid-row: 2 / span 2; min-height: 38px; padding: 0; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: var(--warm); font-size: 14px; transition: transform .18s ease; }
.empty-state { padding: 26px 0; border-width: 1px 0; border-radius: 0; background: transparent; }
.empty-state p { margin-bottom: 7px; font-weight: 500; }
.empty-state span { color: var(--warm-muted); font-size: 14px; }
.notice { padding-bottom: 4px; }
.notice h2 { margin-bottom: 10px; font-size: 20px; }
.notice p { margin-bottom: 0; color: var(--warm-muted); line-height: 1.65; }
.site-footer { padding: 24px 0 8px; border-top: 1px solid var(--line); text-align: center; }
.service-scope { margin: 0 0 8px; color: var(--warm-muted); font-size: 12px; line-height: 1.6; }
.icp-filing { min-height: 28px; display: inline-flex; align-items: center; color: var(--warm-muted); font-size: 12px; text-decoration-color: var(--red); text-underline-offset: 3px; }

.contact-bar { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 9px max(18px, calc((100vw - 644px) / 2)) calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(8 27 45 / .96); backdrop-filter: blur(12px); }
.contact-status { grid-column: 1 / -1; margin: 0 0 3px; color: var(--warm-muted); font-size: 11px; letter-spacing: .05em; text-align: center; }
.contact-bar button { min-height: 46px; border: 0; background: transparent; color: var(--warm); font-size: 15px; }
.contact-bar button + button { border-left: 1px solid var(--line); }
.contact-bar button:disabled { cursor: not-allowed; color: var(--warm-muted); opacity: .82; }

.contact-dialog { width: min(calc(100% - 28px), 430px); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--warm); background: var(--navy-raised); box-shadow: 0 22px 70px rgb(0 8 16 / .55); }
.contact-dialog::backdrop { background: rgb(0 9 18 / .76); backdrop-filter: blur(6px); }
.contact-dialog-panel { position: relative; padding: 25px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.contact-dialog-close { position: absolute; top: 16px; right: 16px; min-height: 34px; padding: 0 3px; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: var(--warm-muted); }
.contact-dialog-kicker { margin: 0 0 5px; color: var(--red-active); font-size: 12px; letter-spacing: .16em; }
.contact-dialog h2 { margin: 0 44px 18px; font-size: 24px; font-weight: 500; }
.contact-dialog img { display: block; width: min(100%, 330px); height: auto; margin: 0 auto; border-radius: 12px; background: #fff; }
.contact-dialog-note { margin: 14px 0 0; color: var(--warm-muted); font-size: 13px; line-height: 1.6; }

.vehicle-dialog { width: min(100%, 760px); max-width: none; max-height: 86dvh; margin: auto auto 0; padding: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; color: var(--warm); background: var(--navy-raised); }
.vehicle-dialog::backdrop { background: rgb(0 10 18 / .68); }
.dialog-panel { padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
.close-button { float: right; min-height: 36px; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: var(--warm); }
.dialog-title { padding-top: 23px; clear: both; font-size: 28px; }
.dialog-lead { color: var(--warm-muted); }
.dialog-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-block h3 { margin-bottom: 8px; font-size: 16px; }
.dialog-block p { margin-bottom: 0; color: var(--warm-muted); line-height: 1.65; }
.price-detail-list { list-style: none; margin: 0; padding: 0; }
.price-detail-list li { padding: 9px 0; color: var(--warm); line-height: 1.6; border-bottom: 1px solid var(--line); }
.price-detail-list li:last-child { border-bottom: 0; }
.price-item-note { display: block; margin-top: 2px; color: var(--warm-muted); font-size: 13px; line-height: 1.5; }

.vehicle-card { overflow: hidden; }
.vehicle-card-media-wrap { position: relative; }
.vehicle-card-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--navy-soft); filter: saturate(.78) contrast(1.03) brightness(.84); box-shadow: inset 0 0 26px rgb(4 22 37 / .38); }
.vehicle-card-media-badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border: 1px solid rgb(239 232 219 / .38); border-radius: 999px; background: rgb(8 27 45 / .82); color: var(--warm); font-size: 12px; line-height: 1.2; }
.vehicle-card-media-fallback { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: var(--navy-soft); color: var(--warm-muted); font-size: 14px; }
.dialog-block .dialog-media-note { margin: 4px 0 12px; color: var(--red-active); font-size: 13px; }
.vehicle-gallery { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
.vehicle-gallery figure { margin: 0; }
.vehicle-gallery img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--navy-soft); }
.vehicle-gallery figcaption { margin-top: 7px; color: var(--warm-muted); font-size: 13px; }
.vehicle-gallery .vehicle-media-attribution { margin: 5px 0 0; color: var(--warm-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.vehicle-media-attribution a { color: var(--warm); text-decoration-color: var(--red); text-underline-offset: 2px; }
.vehicle-media-fallback { display: grid; place-items: center; min-height: 140px; border-radius: 10px; background: var(--navy-soft); color: var(--warm-muted); text-align: center; padding: 16px; }
@media (min-width: 560px) { .vehicle-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 640px) { .page-shell { padding-right: 28px; padding-left: 28px; } .hero-topbar { padding-right: 28px; padding-left: 0; } .hero-visual { width: calc(100% + 56px); margin-left: -28px; } .category-card:nth-child(1) { --card-min: 276px; } .category-card:nth-child(2) { --card-min: 220px; } .category-card:nth-child(3) { --card-min: 252px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
