/* ── Custom Properties ─────────────────────────────────────────────────────── */
:root {
  --background: #F2E8D5;
  --foreground: #2A1810;
  --card: #FBF5E6;
  --primary: #3D2B1F;
  --primary-fg: #F2E8D5;
  --secondary: #EDE0C8;
  --muted: #D9CCAF;
  --muted-fg: #6E5A45;
  --accent: #C84B2A;
  --accent-fg: #F2E8D5;
  --border: rgba(42,24,16,0.15);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea, select, button {
  font-family: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Page switching ────────────────────────────────────────────────────────── */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.serif {
  font-family: 'Noto Serif JP', Georgia, serif;
}

.mono {
  font-family: 'DM Mono', 'Courier New', monospace;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(242,232,213,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
}

.nav__links {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

}

.nav__link {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(42,24,16,0.6);
  white-space: nowrap;
  transition: color .2s;
}

.nav__link:hover, .nav__link.active {
  color: var(--accent);
}

.nav__link.active {
  font-weight: 500;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--primary);
  transition: color .2s;
}

.nav__phone:hover {
  color: var(--accent);
}

.nav__phone svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 1024px) {
  .nav__phone {
    display: flex;
  }

}

.nav__burger {
  padding: 6px;
  color: rgba(42,24,16,0.6);
  transition: color .2s;
}

.nav__burger:hover {
  color: var(--accent);
}

@media (min-width: 1024px) {
  .nav__burger {
    display: none;
  }

}

.nav__mobile {
  background: var(--background);
  border-top: 1px solid var(--border);
  display: none;
}

.nav__mobile.open {
  display: block;
}

.nav__mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid rgba(42,24,16,0.08);
  color: rgba(42,24,16,0.7);
  transition: color .2s;
}

.nav__mobile-link:hover, .nav__mobile-link.active {
  color: var(--accent);
}

.nav__mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--primary);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
/*  background: linear-gradient(to top, rgba(42,24,16,.92) 0%, rgba(42,24,16,.4) 50%, rgba(42,24,16,.1) 100%);*/
    background: linear-gradient(to top, rgba(42,24,16,.52) 0%, rgba(42,24,16,.3) 50%, rgba(42,24,16,.1) 100%);
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: 80px;
  }

}

.hero__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(200,75,42,.9);
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(3rem,8vw,6rem);
  font-weight: 900;
  color: var(--primary-fg);
  line-height: 1.0;
  margin-bottom: 28px;
}

.hero__body {
  font-size: clamp(15px,2vw,18px);
  line-height: 1.9;
  color: rgba(242,232,213,.75);
  margin-bottom: 40px;
  max-width: 400px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background .2s;
}

.btn-accent:hover {
  background: rgba(200,75,42,.85);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(242,232,213,.35);
  color: var(--primary-fg);
  padding: 14px 28px;
  font-size: 14px;
  transition: border-color .2s;
}

.btn-ghost-light:hover {
  border-color: rgba(242,232,213,.7);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(61,43,31,.25);
  color: var(--primary);
  padding: 10px 24px;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: background .2s, color .2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-accent-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background .2s;
}

.btn-accent-sm:hover {
  background: rgba(200,75,42,.85);
}

/* ── Stats ─────────────────────────────────────────────────────────────────── */
.stats {
  background: var(--primary);
  color: var(--primary-fg);
}

.stats__grid {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
}

.stats__item {
  flex: 1 1 50%;
  padding: 20px 24px;
  border-right: 1px solid rgba(242,232,213,.1);
}

@media (min-width: 768px) {
  .stats__item {
    flex: 1 1 25%;
  }

}

.stats__label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,232,213,.4);
  margin-bottom: 6px;
}

.stats__value {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .stats__value {
    font-size: 16px;
  }

}

/* ── Section ───────────────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--secondary);
}

.section--dark {
  background: var(--primary);
  color: var(--primary-fg);
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }

}

.section__hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem,4vw,2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.section__more {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted-fg);
  transition: color .2s;
}

.section__more:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .section__more {
    display: inline-flex;
  }

}

.section__foot {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .section__foot {
    justify-content: flex-end;
  }

}

/* ── Car card ──────────────────────────────────────────────────────────────── */
.car-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.car-grid .car-card {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .car-grid .car-card {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

}

.car-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s;
}

.car-card:hover {
  border-color: rgba(200,75,42,.5);
}

.car-card__photo {
  position: relative;
  height: 224px;
  background: var(--muted);
  overflow: hidden;
}

.car-card--full .car-card__photo {
  height: 240px;
}

.car-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.car-card:hover .car-card__photo img {
  transform: scale(1.04);
}

.car-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.car-card__body {
  padding: 20px;
}

.car-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.car-card__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.car-card__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.car-card__price-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  text-align: right;
}

.car-card__price {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.car-card__specs {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 4px 16px;
  font-size: 11px;
  color: var(--muted-fg);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.car-card__spec-key {
  color: rgba(42,24,16,.35);
  margin-right: 6px;
}

.car-card__btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(61,43,31,.25);
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: background .2s, color .2s;
}

.car-card__btn:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

/* ── CTA banner ────────────────────────────────────────────────────────────── */
.cta-banner {
  margin-top: 32px;
  padding: 24px 32px;
  border: 1px solid rgba(200,75,42,.25);
  background: rgba(200,75,42,.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

}

.cta-banner__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.cta-banner__body {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ── Part grid ─────────────────────────────────────────────────────────────── */
.part-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.part-grid .part-card {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .part-grid .part-card {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

}

@media (min-width: 1024px) {
  .part-grid .part-card {
    flex: 1 1 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }

}

.part-grid--preview {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.part-grid--preview .part-prev {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .part-grid--preview .part-prev {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

}

@media (min-width: 1024px) {
  .part-grid--preview .part-prev {
    flex: 1 1 calc(25% - 12px);
    max-width: calc(25% - 12px);
  }

}

.part-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 20px;
  transition: border-color .2s;
}

.part-card:hover {
  border-color: rgba(200,75,42,.4);
}

.part-card[data-hidden="true"] {
  display: none;
}

.part-card__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  background: var(--secondary);
}

.badge--new {
  border-color: rgba(200,75,42,.25);
  background: rgba(200,75,42,.08);
  color: var(--accent);
}

.part-card__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.part-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.part-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-fg);
}

.part-card__meta-row svg {
  width: 12px;
  height: 12px;
  color: rgba(200,75,42,.6);
  flex-shrink: 0;
}

.part-card__meta-row .pn {
  font-family: 'DM Mono', monospace;
}

.part-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.part-card__price-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted-fg);
}

.part-card__price {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.part-card__btn {
  font-size: 12px;
  border: 1px solid rgba(61,43,31,.25);
  color: var(--primary);
  padding: 6px 12px;
  transition: background .2s, color .2s;
}

.part-card__btn:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.part-card__done {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}

/* Part preview */
.part-prev {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 16px;
  transition: border-color .2s;
}

.part-prev:hover {
  border-color: rgba(200,75,42,.4);
}

.part-prev__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 4px;
  line-height: 1.4;
}

.part-prev__compat {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
  margin-bottom: 12px;
}

.part-prev__price {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Parts photo cards (list page) ────────────────────────────────────────── */
.part-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.part-photo-grid .part-photo-card {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .part-photo-grid .part-photo-card {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

}

@media (min-width: 1024px) {
  .part-photo-grid .part-photo-card {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }

}

.part-photo-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s;
}

.part-photo-card:hover {
  border-color: rgba(200,75,42,.5);
}

.part-photo-card__photo {
  position: relative;
  height: 220px;
  background: var(--muted);
  overflow: hidden;
}

.part-photo-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.part-photo-card:hover .part-photo-card__photo img {
  transform: scale(1.04);
}

.part-photo-card__badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.part-photo-card__body {
  padding: 20px;
}

.part-photo-card__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.45;
}

.part-photo-card__desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-fg);
  margin-bottom: 10px;
}

.part-photo-card__compat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
  margin-bottom: 16px;
}

.part-photo-card__compat svg {
  width: 11px;
  height: 11px;
  color: rgba(200,75,42,.6);
  flex-shrink: 0;
}

.part-photo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.part-photo-card__price-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted-fg);
}

.part-photo-card__price {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.part-photo-card__btn {
  font-size: 12px;
  border: 1px solid rgba(61,43,31,.25);
  color: var(--primary);
  padding: 8px 16px;
  transition: background .2s, color .2s;
}

.part-photo-card__btn:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.part-photo-card__done {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}

.part-photo-card__done svg {
  width: 14px;
  height: 14px;
}

/* ── Contact page (iframe area) ────────────────────────────────────────────── */
.contact-page-lead {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.contact-page-lead__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted-fg);
}

.contact-page-lead__text a {
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  transition: opacity .2s;
}

.contact-page-lead__text a:hover {
  opacity: .75;
}

.contact-iframe-wrap {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.contact-iframe-placeholder {
  width: 100%;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-iframe-placeholder__inner {
  text-align: center;
  padding: 40px;
}

.contact-iframe-placeholder__icon {
  width: 48px;
  height: 48px;
  color: rgba(42,24,16,.18);
  margin: 0 auto 20px;
  display: block;
}

.contact-iframe-placeholder__label {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(42,24,16,.25);
  margin-bottom: 10px;
}

.contact-iframe-placeholder__note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(42,24,16,.2);
}

@media (max-width: 767px) {
  .contact-iframe-wrap {
    min-height: 520px;
  }

  .contact-iframe-placeholder {
    min-height: 520px;
  }

}

/* ── Parts photos ──────────────────────────────────────────────────────────── */
.parts-mosaic {
  display: flex;
  gap: 3px;
  height: 220px;
  overflow: hidden;
  margin-bottom: 40px;
}

.parts-mosaic__item {
  flex: 1;
  overflow: hidden;
}

.parts-mosaic__item--wide {
  flex: 2;
}

.parts-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.parts-mosaic:hover .parts-mosaic__item img {
  transform: scale(1.04);
}

@media (max-width: 639px) {
  .parts-mosaic {
    height: 160px;
  }

  .parts-mosaic__item:nth-child(3) {
    display: none;
  }

}

.parts-page-photos {
  display: flex;
  height: 180px;
  gap: 3px;
  overflow: hidden;
}

.parts-page-photos__item {
  flex: 1;
  overflow: hidden;
}

.parts-page-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .parts-page-photos {
    height: 140px;
  }

  .parts-page-photos__item:nth-child(3) {
    display: none;
  }

}

/* ── Filter bar ────────────────────────────────────────────────────────────── */
.filter-bar {
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
  position: sticky;
  top: 64px;
  z-index: 40;
}

.filter-bar__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar__inner::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  transition: color .2s, background .2s;
}

.filter-btn:hover {
  color: var(--foreground);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
}

.filter-count {
  margin-left: auto;
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
}

/* ── Services ──────────────────────────────────────────────────────────────── */
.svc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
}

.svc-card {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .svc-card {
    flex: 1 1 calc(50% - 1px);
    max-width: calc(50% - 1px);
  }

}

.svc-card {
  background: var(--secondary);
  padding: 32px 40px;
  transition: background .2s;
}

.svc-card:hover {
  background: var(--card);
}

.svc-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200,75,42,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: border-color .2s, background .2s;
}

.svc-card:hover .svc-icon {
  border-color: var(--accent);
  background: rgba(200,75,42,.05);
}

.svc-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.svc-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.svc-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted-fg);
}

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.about-photo-wrap, .about-grid > div:last-child {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .about-photo-wrap, .about-grid > div:last-child {
    flex: 1 1 calc(50% - 32px);
    max-width: calc(50% - 32px);
  }

  .about-grid {
    gap: 64px;
  }

}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  aspect-ratio: 4/3;
  background: var(--muted);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-year {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 20px;
  font-family: 'DM Mono', monospace;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.about-year__num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.about-year__lbl {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 6px;
}

.about__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.about__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem,4vw,2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.about__sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-fg);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.about__body {
  font-size: 14px;
  line-height: 2.0;
  color: var(--muted-fg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.about__quote {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about__quote cite {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-style: normal;
  display: block;
  margin-top: 4px;
}

.about__facts {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.about__facts > div {
  flex: 1 1 0;
}

.about__fact-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.about__fact-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.5;
}

.about__fact-note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
  margin-top: 2px;
}

/* ── News (list page) ──────────────────────────────────────────────────────── */
.news-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.news-list {
  flex: 1 1 100%;
}

.news-sidebar {
  flex: 1 1 100%;
}

@media (min-width: 1024px) {
  .news-list {
    flex: 1 1 0;
  }

  .news-sidebar {
    flex: 0 0 360px;
    width: 360px;
  }

}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.news-item {
  background: var(--background);
}

.news-item[data-hidden="true"] {
  display: none;
}

.news-item__btn {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  transition: background .2s;
}

.news-item__btn:hover {
  background: rgba(237,224,200,.6);
}

.news-item__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.news-item__date {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.news-item__mid {
  flex: 1;
  min-width: 0;
}

.news-item__cats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cat-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
}

.cat-tag--nyuuka {
  color: var(--accent);
  border-color: rgba(200,75,42,.4);
  background: rgba(200,75,42,.08);
}

.cat-tag--seibi {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.cat-tag--event {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.cat-tag--other {
  color: var(--muted-fg);
  border-color: var(--border);
  background: var(--secondary);
}

.news-item__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary);
  transition: color .2s;
  text-align: left;
}

.news-item__title.open {
  color: var(--accent);
}

.news-item__chev {
  flex-shrink: 0;
  color: var(--muted-fg);
  transition: transform .2s;
  padding-top: 2px;
}

.news-item__chev.open {
  transform: rotate(90deg);
}

.news-item__body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(42,24,16,.08);
  display: none;
}

.news-item__body.open {
  display: block;
}

.news-item__body p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted-fg);
  padding-top: 16px;
}

/* News sidebar */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-box {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 20px;
}

.sb-box__title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 16px;
}

.sb-cat-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(42,24,16,.08);
  border-top: none;
  border-left: none;
  border-right: none;
  color: var(--muted-fg);
  transition: color .2s;
  background: none;
}

.sb-cat-btn:last-child {
  border-bottom: none;
}

.sb-cat-btn:hover, .sb-cat-btn.active {
  color: var(--accent);
}

.sb-cat-btn.active {
  font-weight: 500;
}

.sb-cat-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-fg);
}

.sb-recent-item {
  margin-bottom: 12px;
  cursor: pointer;
}

.sb-recent-item:last-child {
  margin-bottom: 0;
}

.sb-recent-date {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted-fg);
  margin-bottom: 2px;
}

.sb-recent-title {
  font-size: 12px;
  color: rgba(42,24,16,.7);
  line-height: 1.5;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-recent-item:hover .sb-recent-title {
  color: var(--accent);
}

/* News preview (homepage) */
.news-prev-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.news-prev-item {
  background: var(--background);
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  text-align: left;
  border: none;
  transition: background .2s;
  cursor: pointer;
}

.news-prev-item:hover {
  background: rgba(237,224,200,.5);
}

.news-prev-date {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
  padding-top: 2px;
}

.news-prev-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.news-prev-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.5;
  transition: color .2s;
}

.news-prev-item:hover .news-prev-title {
  color: var(--accent);
}

.news-prev-chev {
  flex-shrink: 0;
  color: var(--muted-fg);
  padding-top: 2px;
}

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: stretch;
}

.contact-grid > * {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .contact-grid {
    gap: 64px;
  }

  .contact-grid > * {
    flex: 1 1 calc(50% - 32px);
    max-width: calc(50% - 32px);
  }

}

.contact__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem,4vw,2.5rem);
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(242,232,213,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-item__icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.contact-item__main {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--primary-fg);
}

.contact-item__sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(242,232,213,.4);
  margin-top: 2px;
}

.hours-box {
  padding: 20px;
  border: 1px solid rgba(242,232,213,.1);
  background: rgba(242,232,213,.05);
  margin-bottom: 0;
}

.hours-box__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(242,232,213,.75);
  padding: 4px 0;
}

.hours-row--dim {
  font-size: 11px;
  color: rgba(242,232,213,.4);
  padding-top: 8px;
}

.hours-row span:last-child {
  font-family: 'DM Mono', monospace;
}

/* Contact CTA button */
.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background .2s;
}

.contact-cta-btn:hover {
  background: rgba(200,75,42,.85);
}

.contact-cta-btn svg {
  width: 16px;
  height: 16px;
}

/* Contact map */
.contact-map-col {
  display: flex;
  flex-direction: column;
}

.contact-map {
  width: 100%;
  flex: 1;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(242,232,213,.12);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--primary);
  border-top: 1px solid rgba(242,232,213,.08);
  padding: 32px 0;
}

.footer__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

}

.footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__info {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__info {
    text-align: right;
  }

}

.footer__addr {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(242,232,213,.7);
  letter-spacing: 0.05em;
}

.footer__copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(242,232,213,.7);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ── Page header (dark) ────────────────────────────────────────────────────── */
.page-section {
  padding-top: 64px;
}

.page-hd {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 90px 0 60px;
}

@media (min-width: 768px) {
  .page-hd {
    padding: 130px 0 80px;
  }

}

.page-hd__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hd__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.875rem,5vw,3rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-hd__body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242,232,213,.65);
  max-width: 480px;
}

/* ── Car detail ────────────────────────────────────────────────────────────── */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}

.breadcrumb__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted-fg);
}

.breadcrumb__btn {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted-fg);
  transition: color .2s;
}

.breadcrumb__btn:hover {
  color: var(--accent);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 32px;
  transition: color .2s;
}

.back-btn:hover {
  color: var(--accent);
}

.back-btn svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.detail-grid > *:first-child {
  flex: 1 1 100%;
}

.detail-grid > .d-panel {
  flex: 1 1 100%;
}

@media (min-width: 1024px) {
  .detail-grid > *:first-child {
    flex: 1 1 0;
  }

  .detail-grid > .d-panel {
    flex: 0 0 360px;
    width: 360px;
  }

  .detail-grid {
    gap: 56px;
  }

}

.gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: var(--primary);
  margin-bottom: 12px;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn .25s ease;
}

.gallery__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(61,43,31,.7);
  color: var(--primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.gallery__nav:hover {
  background: var(--primary);
}

.gallery__nav svg {
  width: 20px;
  height: 20px;
}

.gallery__nav--prev {
  left: 12px;
}

.gallery__nav--next {
  right: 12px;
}

.gallery__counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(242,232,213,.7);
  background: rgba(61,43,31,.6);
  padding: 2px 8px;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
}

.gallery__thumb {
  flex: 1 1 0;
}

.gallery__thumb {
  aspect-ratio: 4/3;
  background: var(--muted);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
  display: block;
  width: 100%;
  padding: 0;
}

.gallery__thumb.active {
  border-color: var(--accent);
}

.gallery__thumb:hover:not(.active) {
  border-color: var(--border);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-desc {
  margin-top: 40px;
}

.detail-desc__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.detail-desc__body {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted-fg);
}

.detail-feats {
  margin-top: 32px;
}

.detail-feats__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.detail-feats__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-feat {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .detail-feat {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
  }

}

.detail-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted-fg);
}

.detail-feat svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.d-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .d-panel {
    position: sticky;
    top: 88px;
    height: fit-content;
  }

}

.d-box {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 24px;
}

.d-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.d-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.25rem,3vw,1.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.d-price-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 20px;
}

.d-price-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.d-price {
  font-family: 'DM Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.d-price-note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-fg);
  margin-top: 4px;
}

.d-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.d-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.d-spec__k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-fg);
}

.d-spec__k svg {
  width: 14px;
  height: 14px;
  color: rgba(200,75,42,.7);
}

.d-spec__k span {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.d-spec__v {
  font-weight: 500;
  color: var(--foreground);
  text-align: right;
  max-width: 55%;
}

.d-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.d-input, .d-textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  transition: border-color .2s;
}

.d-input::placeholder, .d-textarea::placeholder {
  color: rgba(110,90,69,.6);
}

.d-input:focus, .d-textarea:focus {
  border-color: var(--accent);
}

.d-textarea {
  resize: none;
}

.d-submit {
  width: 100%;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  transition: background .2s;
}

.d-submit:hover {
  background: rgba(200,75,42,.85);
}

.d-phone {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(61,43,31,.2);
  color: var(--primary);
  padding: 10px;
  font-size: 14px;
  transition: border-color .2s;
  text-decoration: none;
}

.d-phone:hover {
  border-color: rgba(61,43,31,.5);
}

.d-phone svg {
  width: 14px;
  height: 14px;
}

.d-sent {
  background: rgba(200,75,42,.08);
  border: 1px solid rgba(200,75,42,.2);
  padding: 16px;
  text-align: center;
}

.d-sent__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.d-sent__body {
  font-size: 12px;
  color: var(--muted-fg);
}

.d-note {
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 16px;
}

.d-note__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 8px;
}

.d-note__body {
  font-size: 12px;
  color: var(--muted-fg);
  line-height: 1.7;
}

.related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related__lbl {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.related__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.related-card {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .related-card {
    flex: 1 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }

}

.related-card {
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  text-align: left;
  width: 100%;
  transition: border-color .2s;
  cursor: pointer;
}

.related-card:hover {
  border-color: rgba(200,75,42,.4);
}

.related-card__photo {
  aspect-ratio: 4/3;
  background: var(--muted);
  overflow: hidden;
}

.related-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.related-card:hover .related-card__photo img {
  transform: scale(1.05);
}

.related-card__body {
  padding: 16px;
}

.related-card__yr {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
}

.related-card__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.related-card__price {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}

/* ==========================================================================
   Static multipage adjustments
   ========================================================================== */
.page-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

.nav__logo {
  text-decoration: none;
}

.car-card__price-wrap {
  flex-shrink: 0;
  text-align: right;
}

.car-card__btn, .part-photo-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.detail-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted-foreground);
  text-decoration: none;
}

.vehicle-detail {
  padding: 56px 0 88px;
}

.vehicle-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 56px;
  align-items: start;
}

.vehicle-detail__photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--secondary);
}

.vehicle-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-detail__title {
  margin: 8px 0 24px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}

.vehicle-detail__price-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-foreground);
}

.vehicle-detail__price {
  margin: 4px 0 28px;
  font-family: 'DM Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.detail-specs {
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
}

.detail-specs div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.detail-specs dt {
  font-size: 12px;
  color: var(--muted-foreground);
}

.detail-specs dd {
  margin: 0;
  font-size: 13px;
}

.vehicle-detail__desc {
  font-size: 14px;
  line-height: 2;
}

.part-detail {
  padding: 56px 0 88px;
}

.part-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 56px;
  align-items: start;
}

.part-detail__photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--secondary);
}

.part-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.part-detail__category {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

.part-detail__title {
  margin-bottom: 24px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.35;
}

.part-detail__price-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted-foreground);
}

.part-detail__price {
  margin: 4px 0 32px;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.part-detail__description {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 2;
}

.news-static-list {
  border-top: 1px solid var(--border);
}

.news-static-item {
  border-bottom: 1px solid var(--border);
}

.news-static-item__link {
  display: grid;
  grid-template-columns: 130px 90px minmax(0, 1fr) 32px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  color: inherit;
  text-decoration: none;
}

.news-static-item__date {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted-foreground);
}

.news-static-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.news-static-item__arrow {
  text-align: right;
}

.news-detail-static {
  padding: 56px 0 88px;
}

.news-detail-static .wrap {
  max-width: 920px;
}

.news-detail-static__header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.news-detail-static__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
}

.news-detail-static__title {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.5;
}

.news-detail-static__body {
  padding-top: 36px;
  font-size: 15px;
  line-height: 2.2;
}

@media (max-width: 767px) {
  .vehicle-detail__grid, .part-detail__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-static-item__link {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .news-static-item__date, .news-static-item__title {
    grid-column: 1;
  }

  .news-static-item__link .cat-tag, .news-static-item__arrow {
    grid-column: 2;
  }

}

.nav__logo img {
  display: block;
  width: 180px;
  height: auto;
}

@media (max-width: 767px) {
  .nav__logo img {
    width: 150px;
  }

}

.nav__mobile-phone svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Instagram
   ========================================================================== */
.nav__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: currentColor;
  text-decoration: none;
}

.nav__instagram svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav__mobile-instagram {
  display: none;
}

.footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: inherit;
  text-decoration: none;
}

.footer__instagram svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer__instagram span {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .nav__instagram {
    display: none;
  }

  .nav__mobile-instagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-top: 1px solid var(--border);
    color: inherit;
    font-size: 15px;
    text-decoration: none;
  }

}

/* ==========================================================================
   Mobile menu contact links
   ========================================================================== */
.nav__mobile-phone, .nav__mobile-instagram {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__mobile-link-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav__mobile-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__mobile-link-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__mobile-link-arrow {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

/* ==========================================================================
   Footer Instagram visibility
   ========================================================================== */
.footer__instagram {
  /*color: rgba(255, 255, 255, 0.88);*/
  color: rgba(242,232,213,.7);
}

.footer__instagram:hover {
  color: #fff;
}

@media (max-width: 767px) {
  .nav__mobile-phone, .nav__mobile-instagram {
    display: flex;
  }

}

/* ==========================================================================
   Mobile menu contact links v7
   ========================================================================== */
@media (max-width: 767px) {
  .nav__mobile-phone, .nav__mobile-instagram {
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    gap: 12px;
    align-items: center;
    padding-right: 40px;
    padding-left: 40px;
  }

  .nav__mobile-link-main {
    display: contents;
  }

  .nav__mobile-link-icon {
    grid-column: 1;
    width: 28px;
    justify-content: flex-start;
  }

  .nav__mobile-link-icon svg {
    width: 20px;
    height: 20px;
  }

  .nav__mobile-link-main > span:last-child {
    grid-column: 2;
    justify-self: start;
  }

  .nav__mobile-link-arrow {
    grid-column: 3;
    justify-self: end;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
  }

}

/* ==========================================================================
   Mobile menu arrow v8
   ========================================================================== */
@media (max-width: 767px) {
  .nav__mobile-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0;
  }

  .nav__mobile-link-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

}

/* ----------------------------------------
  Vehicle Gallery
---------------------------------------- */
.gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.gallery__main-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--primary);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery__thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition:     opacity 0.2s ease,     border-color 0.2s ease;
}

.gallery__thumb:hover, .gallery__thumb.is-active {
  opacity: 1;
}

.gallery__thumb.is-active {
  border-color: var(--accent);
}

.gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 24, 16, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery__nav--prev {
  left: 14px;
}

.gallery__nav--next {
  right: 14px;
}

.gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(42, 24, 16, 0.72);
  color: #fff;
  font-size: 13px;
}

@media (max-width: 767px) {
  .gallery__main {
    touch-action: pan-y;
  }

  .gallery__nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .gallery__thumbs {
    gap: 8px;
  }

}

[hidden] {
  display: none !important;
}

/* ----------------------------------------
  Gallery Image Fit
---------------------------------------- */
.gallery__main .gallery__main-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--primary);
}



/* ----------------------------------------
  Contact Form
---------------------------------------- */









/* =========================================================
   RESTART / HERO FADE SLIDER
   ========================================================= */

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* =========================================================
   RESTART / CAR CARD CLICKABLE
   ========================================================= */

.car-card {
  position: relative;
}

.car-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.car-card__btn {
  position: relative;
  z-index: 2;
}


/* =========================================================
   RESTART / PARTS CARD CLICKABLE
   ========================================================= */

.part-photo-card {
  position: relative;
}

.part-photo-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.part-photo-card__btn {
  position: relative;
  z-index: 2;
}