/* AUTO BASE JAPAN brand-specific additions */
:root {
  --ink: #142f67;
  --paper: #f7f8fb;
  --lime: #ef172f;
  --muted: #657086;
  --line: #d7ddea;
}

body { background: var(--paper); }
.topline, footer { background: #0d2453; }
.header { background: #fff; border-bottom-color: #dbe1ec; }
.header nav a:hover { color: #ef172f; }
.contact-btn, .detail, .modal-contact { background: #ef172f; }
.hero { background-image: linear-gradient(90deg,rgba(5,22,55,.92) 0%,rgba(5,22,55,.72) 43%,rgba(5,22,55,.12) 75%),url('assets/og-auto-base-japan.png'); background-position:center; background-size:cover; }
.reason { background: #0d2453; }
.search-panel button, .hero-tag, .badge, .fav.on, .modal-price { background: #ef172f; color: #fff; }
.quick-types button.active, .quick-types button:hover { background: #142f67; }
.service-grid span { color: #ef172f; }
.cta { background: linear-gradient(135deg,#173f85,#0d2453); color: white; }
.cta .eyebrow { color: #ff7c8b; }
.brand-logo {
  display: block;
  width: 185px;
  height: 64px;
  overflow: hidden;
  flex: 0 0 auto;
  background: white;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}
.quick-types { grid-template-columns: repeat(5, 1fr); }
.quick-types.stock-types { grid-template-columns: repeat(2, 1fr); }

.line-ready {
  background: #142f67;
  color: white;
  padding: 18px 22px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.line-ready b {
  font-size: 9px;
  background: #ffffff2b;
  padding: 6px 8px;
}

.footer-brand {
  height: 74px;
  background: white;
}

footer strong {
  color: white;
}

.purchase-flow { padding: 100px 7vw; background: #0d2453; color: white; }
.flow-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px 8vw; align-items: end; margin-bottom: 55px; }
.flow-heading .eyebrow { grid-column: 1/-1; margin-bottom: 0; }
.flow-heading h2 { margin: 0; font-size: clamp(38px,5vw,65px); line-height: 1.2; letter-spacing: -.06em; }
.flow-heading > p:last-child { color: #b8c4d9; line-height: 1.9; max-width: 520px; }
.flow-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flow-route { background: #fff; color: var(--ink); padding: 35px; }
.flow-title { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid #e4e8f0; padding-bottom: 25px; }
.flow-title > span { width: 50px; height: 50px; display: grid; place-items: center; background: #ef172f; color: white; font-weight: 800; }
.flow-title small { color: #ef172f; font-size: 9px; letter-spacing: .2em; font-weight: 800; }
.flow-title h3 { margin: 4px 0 0; font-size: 21px; }
.flow-route ol { list-style: none; padding: 0; margin: 15px 0 0; }
.flow-route li { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid #e4e8f0; }
.flow-route li:last-child { border-bottom: 0; }
.flow-route li > b { color: #ef172f; font-size: 11px; padding-top: 3px; }
.flow-route strong { font-size: 14px; }
.flow-route li p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.flow-notice { margin-top: 20px; padding: 25px 30px; border: 1px solid #48659c; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.flow-notice strong { margin-right: 12px; }
.flow-notice span { background: #ffffff12; padding: 8px 12px; font-size: 10px; }
.mail-action strong { font-size: 15px; }
.media-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-actions a { background: white !important; color: #142f67 !important; font-weight: 800; text-align: center; padding: 16px 10px !important; }
.finance-info { margin: 0 7vw 100px; padding: 55px; background: #eef1f7; border-top: 5px solid #ef172f; }
.finance-info > div:first-child { display: flex; align-items: end; gap: 30px; flex-wrap: wrap; }
.finance-info > div:first-child .eyebrow { width: 100%; margin-bottom: 0; }
.finance-info h2 { margin: 0; font-size: 42px; }
.finance-info > div:first-child > p:last-child { color: var(--muted); font-size: 12px; }
.finance-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #cdd5e3; margin-top: 35px; }
.finance-methods article { background: white; padding: 26px; display: grid; gap: 8px; }
.finance-methods small { color: #ef172f; font-weight: 800; }.finance-methods strong { font-size: 18px; }.finance-methods span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.finance-methods .loan-card { background: #142f67; color: white; }.finance-methods .loan-card span { color: #c8d4e8; font-size: 11px; }
.finance-partner { margin-top: 16px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }.finance-partner span { font-size: 10px; color: var(--muted); }.finance-partner strong { font-size: 14px; }.finance-partner strong a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }.finance-partner small { width: 100%; color: var(--muted); font-size: 9px; }
.access-section { padding: 90px 7vw; display: grid; grid-template-columns: .72fr 1.28fr; gap: 6vw; background: #fff; }
.access-info h2 { margin: 0 0 30px; font-size: clamp(35px,4vw,52px); }
.access-name { font-weight: 800; font-size: 16px; }.access-info address { font-style: normal; color: var(--muted); line-height: 1.9; font-size: 13px; }
.access-info dl { margin: 25px 0; border-top: 1px solid var(--line); }.access-info dl div { display: grid; grid-template-columns: 85px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }.access-info dt { color: var(--muted); }.access-info dd { margin: 0; font-weight: 600; }
.access-notice { background: #f3f5f9; border-left: 4px solid #ef172f; padding: 14px; font-size: 11px; line-height: 1.7; }
.map-link { display: inline-block; background: #142f67; color: #fff; padding: 14px 18px; margin-top: 10px; font-size: 11px; font-weight: 800; }
.map-frame { min-height: 500px; background: #e8ebf1; }.map-frame iframe { width: 100%; height: 100%; min-height: 500px; border: 0; display: block; }
.representative { margin: -15px 0 18px; color: var(--muted); font-size: 11px; }
.shop-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.shop-gallery figure { overflow: hidden; margin: 0; border: 1px solid var(--line); background: #fff; }
.shop-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shop-gallery figcaption { padding: 10px 12px; color: var(--ink); font-size: 10px; font-weight: 700; }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .brand-logo { width: 145px; height: 56px; }
  .service-grid { grid-template-columns: 1fr; }
  .quick-types { grid-template-columns: 1fr 1fr; }
  .line-ready { gap: 14px; }
}

.detail { border: 0; cursor: pointer; font: inherit; }
.photo-link { position: absolute; inset: 0; z-index: 1; }
.car-photo .badge, .car-photo .fav { z-index: 2; }
.modal-open { overflow: hidden; }
.car-modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; opacity: 0; transition: .25s; }
.car-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: #080908d9; backdrop-filter: blur(8px); }
.modal-panel { position: absolute; inset: 4vh 4vw; background: #f5f3ec; display: grid; grid-template-columns: 1.25fr .75fr; overflow: auto; box-shadow: 0 24px 80px #0008; }
.modal-close { position: fixed; top: calc(4vh + 15px); right: calc(4vw + 15px); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #111; color: white; font-size: 25px; cursor: pointer; }
.modal-gallery { background: #161816; padding: 30px; min-width: 0; }
.modal-gallery > img { width: 100%; height: min(64vh,650px); object-fit: contain; display: block; }
.modal-thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 14px; }
.modal-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .65; }
.modal-thumbs button.active { border-color: var(--lime); opacity: 1; }
.modal-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.modal-info { padding: 65px 45px 45px; }
.modal-info h2 { font-size: clamp(25px,3vw,42px); line-height: 1.3; letter-spacing: -.05em; margin: 0; }
.modal-code { color: var(--muted); font-size: 12px; margin: 14px 0 25px; }
.modal-price { background: var(--lime); padding: 18px 22px; margin-bottom: 25px; }
.modal-price small { display: block; font-size: 10px; }
.modal-price strong { font-size: 38px; margin-right: 4px; }
.modal-info dl { margin: 0; border-top: 1px solid var(--line); }
.modal-info dl div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 11px; }
.modal-info dt { color: var(--muted); }.modal-info dd { margin: 0; font-weight: 600; }
.modal-note { font-size: 12px; line-height: 1.9; margin: 22px 0; }
.modal-contact { display: block; background: var(--ink); color: white; padding: 17px; text-align: center; font-size: 12px; font-weight: 800; }
@media (max-width: 850px) { .modal-panel { grid-template-columns: 1fr; inset: 2vh 3vw; }.modal-close { top: calc(2vh + 10px); right: calc(3vw + 10px); }.modal-gallery { padding: 14px; }.modal-gallery > img { height: 43vh; }.modal-info { padding: 35px 22px; }.modal-thumbs { grid-template-columns: repeat(5,1fr); } }
@media (max-width: 850px) { .flow-heading, .flow-content { grid-template-columns: 1fr; }.flow-heading .eyebrow { grid-column: auto; }.purchase-flow { padding: 75px 5vw; } }
@media (max-width: 850px) { .access-section { grid-template-columns: 1fr; padding: 70px 5vw; }.map-frame,.map-frame iframe { min-height: 400px; }.shop-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .finance-info { margin: 0; padding: 55px 5vw; }.finance-methods { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .flow-route { padding: 25px 20px; }.flow-notice { padding: 22px 18px; }.media-actions { grid-template-columns: 1fr; }.shop-gallery { grid-template-columns: 1fr; } }
