/* 東備自動車販売所 — 静的サイト（React参照版に準拠） */
:root {
  --brand-main: #6d5a41;
  --brand-base: #f2f0ed;
  --brand-sub: #322e2a;
  --brand-accent: #276224;
  --brand-highlight: #bea48d;
  --header-top: 3.5rem;
  --header-nav: 3rem;
  --header-h: calc(var(--header-top) + var(--header-nav));
  --max: 80rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--brand-sub);
  background: #fff;
  line-height: 1.6;
}

/* アクセシビリティ: キーボードフォーカス（マウスクリックでは二重枠を抑止） */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* メインコンテンツへスキップ（非フォーカス時は画面外＝緑の帯が見えないようにする） */
.skip-link {
  position: fixed;
  left: 0.75rem;
  top: -6rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

/* モバイル: タップしやすい最小領域（主要ナビ・モバイルメニュー） */
@media (pointer: coarse) {
  .site-header__mobile a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .site-header__burger {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

.site-header__top {
  background: #fff;
  border-bottom: 1px solid #e0d5c8;
}

.site-header__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-top);
}

.site-header__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: #826a53;
  white-space: nowrap;
}

.site-header__tel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: background 0.2s;
}

.site-header__tel:hover {
  background: var(--brand-sub);
}

@media (min-width: 1024px) {
  .site-header__tel {
    display: inline-flex;
  }
}

.site-header__burger {
  display: flex;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .site-header__burger {
    display: none;
  }
}

.site-header__burger-lines {
  width: 1.5rem;
  height: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header__burger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: #826a53;
  transition: transform 0.3s, opacity 0.3s;
}

.site-header__burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.site-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header__burger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.site-header__nav-wrap {
  display: none;
  background-image: url("../image/mokume_back.webp");
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .site-header__nav-wrap {
    display: block;
  }
}

.site-header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--header-nav);
}

.site-header__nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-base);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.site-header__nav a:hover {
  color: #fff;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}

.site-header__nav a:hover::after,
.site-header__nav a.is-active::after {
  width: 75%;
}

.site-header__nav a.is-active {
  color: #fff;
}

.site-header__mobile {
  display: none;
  border-top: 1px solid #7a6a54;
  background: #5a4a34;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

.site-header__mobile.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .site-header__mobile {
    display: none !important;
  }
}

.site-header__mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  color: var(--brand-base);
}

.site-header__mobile a.is-active {
  color: #fff;
  background: var(--brand-sub);
}

.site-header__mobile a:hover:not(.is-active) {
  color: #fff;
  background: #4b5945;
}

/* メインは上パディングなし（ヒーロー背景をヘッダー直下から表示） */
.page {
  min-height: 100vh;
  background: #fff;
}

.page__main {
  padding-top: 0;
}

/* ----- Typography / utils ----- */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-xl {
  font-size: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-white {
  color: #fff;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-brand-sub {
  color: var(--brand-sub);
}

.text-brand-accent {
  color: var(--brand-accent);
}

.text-red-600 {
  color: #dc2626;
}

.text-red-700 {
  color: #b91c1c;
}

.text-red-900 {
  color: #7f1d1d;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ----- Hero (home) ----- */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
}

.hero-home__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-home__bg .img-desktop {
  display: none;
}

@media (min-width: 768px) {
  .hero-home__bg .img-desktop {
    display: block;
  }
  .hero-home__bg .img-mobile {
    display: none;
  }
}

.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.4),
    rgb(0 0 0 / 0.3),
    rgb(0 0 0 / 0.4)
  );
}

.hero-home__inner {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  padding: calc(var(--header-top) + 2.5rem) 1rem 0;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero-home__inner {
    text-align: right;
    margin: 0 4rem 0 auto;
    padding-top: calc(var(--header-top) + 2rem);
  }
}

@media (min-width: 1024px) {
  .hero-home__inner {
    padding-top: calc(var(--header-h) + 1.5rem);
  }
}

/* 639px以下のみ：ヒーロー文言ブロックを縦中央よりやや下（顔との重なりを避けつつ、下端に寄せすぎない） */
@media (max-width: 639.98px) {
  .hero-home {
    align-items: center;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .hero-home__inner {
    padding: calc(var(--header-top) + 1rem) 1rem 1rem;
    margin-top: 0;
    width: 100%;
    max-width: none;
    transform: translateY(
      calc(clamp(0.75rem, 4.5vh, 2.5rem) + min(7rem, 26vh))
    );
  }
}

@media (max-width: 639.98px) and (prefers-reduced-motion: reduce) {
  .hero-home__inner {
    transform: none;
    margin-top: calc(clamp(0.75rem, 4.5vh, 2.5rem) + min(7rem, 26vh));
  }
}

@media (min-width: 640px) {
  .hero-home {
    align-items: center;
    padding-bottom: 0;
  }
}

.hero-home__title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero-home__title-line {
  display: block;
}

@media (min-width: 640px) {
  .hero-home__title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-home__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-home__title {
    font-size: 3.75rem;
  }
}

.hero-home__lead {
  font-size: 0.875rem;
  color: #f3f4f6;
  margin: 0 0 1.5rem;
  white-space: nowrap;
}

@media (max-width: 639.98px) {
  /* 320px幅付近：見出しを2行（各行1行）に収め、リードは折り返しで切れないようにする */
  .hero-home__title {
    font-size: clamp(1.25rem, calc(0.5rem + 4.25vw), 1.75rem);
    line-height: 1.2;
    word-break: keep-all;
  }

  .hero-home__title-line {
    white-space: nowrap;
  }

  .hero-home__lead {
    white-space: normal;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.75rem, calc(0.35rem + 2.2vw), 0.875rem);
    line-height: 1.55;
    padding: 0 0.125rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

@media (min-width: 640px) {
  .hero-home__lead {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-home__lead {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-home__lead {
    font-size: 1.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12);
  white-space: nowrap;
}

.btn--accent {
  background: var(--brand-accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--brand-sub);
}

.btn--white {
  background: #fff;
  color: var(--brand-accent);
}

.btn--white:hover {
  background: #f9fafb;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn [class^="ri-"] {
  margin-right: 0.5rem;
}

.btn .ri--after {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* ----- Sections ----- */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-sub);
  margin: 0 0 0.75rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-lead {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
}

@media (min-width: 640px) {
  .section-lead {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .section-lead {
    font-size: 1.125rem;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 4rem;
  }
}

/* features bg */
.section-features {
  padding: 3rem 0;
  background-image: url("../image/mokume_30_back.webp");
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .section-features {
    padding: 5rem 0;
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  transition: box-shadow 0.3s;
}

@media (min-width: 640px) {
  .card {
    padding: 2rem;
  }
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12);
}

/* 個別にホバー影を無効化したいカード用 */
.card--no-hover {
  transition: none;
}

.card--no-hover:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

.card--gray {
  background: #f9fafb;
}

/* 保険3カード: 見出し上のデフォルト余白を除去 */
.card--insurance h4 {
  margin-top: 0;
}

/* 車検整備: 主な点検項目カードを中央揃え */
.inspection-card {
  text-align: center;
}

.inspection-card .card__icon-wrap {
  margin: 0 auto 1rem !important;
}

.card__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: var(--brand-base);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .card__icon-wrap {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
  }
}

.card__icon-wrap [class^="ri-"] {
  font-size: 1.5rem;
  color: var(--brand-accent);
}

@media (min-width: 640px) {
  .card__icon-wrap [class^="ri-"] {
    font-size: 1.875rem;
  }
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--brand-sub);
}

@media (min-width: 640px) {
  .card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.card__text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 640px) {
  .card__text {
    font-size: 1rem;
  }
}

.section-actions {
  text-align: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .section-actions {
    margin-top: 3rem;
  }
}

.btn-outline-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn-outline-nav {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.btn-outline-nav:hover {
  background: var(--brand-sub);
}

/* news */
.section-white {
  background: #fff;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section-white {
    padding: 5rem 0;
  }
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background: #f9fafb;
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  transition: box-shadow 0.3s;
}

.news-item:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

.news-item__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .news-item__row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-item__date {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .news-item__date {
    font-size: 0.875rem;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge--brand {
  background: var(--brand-base);
  color: var(--brand-accent);
}

.badge--orange {
  background: #ffedd5;
  color: #c2410c;
}

.news-item__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-sub);
  margin: 0;
}

@media (min-width: 640px) {
  .news-item__text {
    font-size: 1rem;
  }
}

/* repair cards home */
.repair-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .repair-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.repair-card {
  background: #f9fafb;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  transition: box-shadow 0.3s;
}

.repair-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12);
}

.repair-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.repair-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.repair-card__body {
  padding: 1rem 1.5rem;
}

@media (min-width: 640px) {
  .repair-card__body {
    padding: 1.5rem;
  }
}

.repair-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.repair-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--brand-sub);
}

@media (min-width: 640px) {
  .repair-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
}

.repair-card__vehicle {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0 0 0.75rem;
}

@media (min-width: 640px) {
  .repair-card__vehicle {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

.repair-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .repair-card__foot {
    font-size: 0.875rem;
  }
}

/* CTA band */
.cta-section {
  position: relative;
  padding: 3rem 0;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 5rem 0;
  }
}

.cta-section__bg {
  position: absolute;
  inset: 0;
}

.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.6),
    rgb(0 0 0 / 0.5),
    rgb(0 0 0 / 0.6)
  );
}

.cta-section__inner {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.cta-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .cta-section__title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .cta-section__title {
    font-size: 2.25rem;
  }
}

.cta-section__text {
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
  .cta-section__text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .cta-section__text {
    font-size: 1.25rem;
  }
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* ----- Footer ----- */
.site-footer {
  color: #fff;
  background-image: url("../image/mokume_back.webp");
  background-size: cover;
  background-position: center;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.site-footer__text {
  font-size: 0.875rem;
  line-height: 1.8;
}

.site-footer__text p {
  margin: 0.25rem 0;
}

.site-footer__text a:hover {
  opacity: 0.9;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.site-footer__nav a {
  font-size: 0.875rem;
  color: #fff;
}

.site-footer__nav a:hover {
  opacity: 0.9;
}

.site-footer__copy {
  padding-top: 1.5rem;
  border-top: 1px solid #4a4440;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
}

.site-footer__copy p {
  margin: 0;
}

/* ----- Inner pages hero ----- */
.page-hero {
  position: relative;
  height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 固定ヘッダー下にテキストが入るよう上だけ空け、残り領域内で見出し＋リードを縦センター */
  padding-top: calc(var(--header-top) + 0.75rem);
  padding-bottom: 0.75rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .page-hero {
    height: 20rem;
  }
}

@media (min-width: 768px) {
  .page-hero {
    height: 24rem;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: calc(var(--header-h) + 0.75rem);
  }
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.5),
    rgb(0 0 0 / 0.3),
    rgb(0 0 0 / 0.5)
  );
}

.page-hero__inner {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  box-sizing: border-box;
  /* 縦センターに対し、写真上のバランスでわずかに下げる */
  margin-top: clamp(0.35rem, 1.2vw, 0.65rem);
}

.page-hero__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
  .page-hero__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: 3rem;
  }
}

.page-hero__lead {
  font-size: 1rem;
  margin: 0;
}

@media (min-width: 640px) {
  .page-hero__lead {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .page-hero__lead {
    font-size: 1.25rem;
  }
}

/* ----- Reasons / content grids ----- */
.section-block {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section-block {
    padding: 5rem 0;
  }
}

.section-gray {
  background: #f9fafb;
}

.two-col {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
  }
}

/* モバイルでは画像を上に（参照: order-1 / order-2） */
.order-mob-media-first .two-col__media {
  order: -1;
}

@media (min-width: 1024px) {
  .order-mob-media-first .two-col__media {
    order: 0;
  }
}

.pill-label {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--brand-base);
  color: var(--brand-accent);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .pill-label {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
}

.reason-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-sub);
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .reason-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .reason-title {
    font-size: 2.25rem;
  }
}

.prose {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .prose {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .prose {
    font-size: 1.125rem;
  }
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .icon-list {
    gap: 1rem;
  }
}

/* 左：アイコン / 右：見出し＋説明の2カラム（行ごとに縦ラインが揃う） */
.icon-list__item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

@media (min-width: 640px) {
  .icon-list__item {
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1rem;
  }
}

.icon-list__item > div:not(.icon-list__icon) {
  min-width: 0;
}

.icon-list__item h3 {
  margin-top: 0;
  line-height: 1.45;
}

.icon-list__item p {
  line-height: 1.7;
}

.icon-list__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: var(--brand-base);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .icon-list__icon {
    width: 3rem;
    height: 3rem;
  }
}

.icon-list__icon [class^="ri-"] {
  font-size: 1.125rem;
  color: var(--brand-accent);
  line-height: 1;
  display: block;
}

@media (min-width: 640px) {
  .icon-list__icon [class^="ri-"] {
    font-size: 1.25rem;
  }
}

.media-rounded {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}

.media-rounded img {
  width: 100%;
  display: block;
}

.features-box {
  background: #f9fafb;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .features-box {
    padding: 2rem 3rem;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767.98px) {
  .grid-4.grid-4--stack-sm {
    grid-template-columns: 1fr;
  }
}

.feature-mini {
  text-align: center;
}

.feature-mini__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  background: #fff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

.feature-mini__icon [class^="ri-"] {
  font-size: 1.25rem;
  color: var(--brand-accent);
}

.cta-section--simple .cta-section__overlay {
  background: rgb(0 0 0 / 0.5);
}

/* vehicles / maintenance tables */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
}

.table thead tr {
  background: #f9fafb;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-align: left;
}

@media (min-width: 640px) {
  .table th,
  .table td {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}

.table th {
  font-weight: 700;
  color: var(--brand-sub);
}

.table tbody tr {
  border-top: 1px solid #e5e7eb;
}

/* shop table */
.table-company td {
  vertical-align: top;
}

.table-company td:first-child {
  background: #f9fafb;
  font-weight: 700;
  width: 8rem;
}

/* 店舗案内・会社概要: 先頭行（会社名）の上だけ仕切り線を出さない */
.table-company tbody tr:first-child {
  border-top: none;
}

@media (max-width: 375px) {
  .table-company {
    min-width: 0;
    table-layout: fixed;
  }

  .table-company td,
  .table-company th {
    padding: 0.625rem 0.75rem;
    word-break: break-word;
  }

  .table-company td:first-child {
    width: 6.25rem;
  }
}

/* contact form */
.form-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem 3rem;
  }
}

.form-group {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-group {
    margin-bottom: 1.5rem;
  }
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-sub);
  margin-bottom: 0.375rem;
}

@media (min-width: 640px) {
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--brand-highlight);
  outline-offset: 0;
  border-color: transparent;
}

.form-textarea {
  resize: none;
}

.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.alert--success {
  background: var(--brand-base);
  border: 1px solid var(--brand-highlight);
}

.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.max-w-prose {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-form {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* accent banner vehicles */
.banner-accent {
  background: var(--brand-accent);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-accent__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.banner-accent [class^="ri-"] {
  font-size: 2.5rem;
  color: #fff;
}

@media (min-width: 640px) {
  .banner-accent [class^="ri-"] {
    font-size: 3rem;
  }
}

.banner-accent p {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .banner-accent p {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .banner-accent p {
    font-size: 1.875rem;
  }
}

/* repair cases detail grid */
.grid-inspection {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 1024px) {
  .grid-inspection {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.grid-cases {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cases {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

.case-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12);
}

.case-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.case-card:hover .case-card__img img {
  transform: scale(1.1);
}

/* 修理事例: 「修理・整備のご相談について」カードを2カラム化 */
.consult-card__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
}

.consult-card__content {
  min-width: 0;
}

.consult-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* map */
.map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  min-height: 300px;
}

.map-frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* file upload */
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px dashed #d1d5db;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
}

.file-btn:hover {
  border-color: var(--brand-highlight);
  color: var(--brand-accent);
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.attachments-meter {
  margin-top: 0.75rem;
}

.attachments-meter__track {
  width: 100%;
  height: 1.25rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  overflow: hidden;
}

.attachments-meter__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7dd3fc, #0ea5e9);
  transition: width 0.2s ease;
}

.attachments-meter__text {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #4b5563;
}

.thumb {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
  .thumb {
    width: 6rem;
    height: 6rem;
  }
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* utilities */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

.br-sm-only {
  display: none;
}

@media (min-width: 640px) {
  .br-sm-only {
    display: block;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* checkbox list vehicles */
.check-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.check-row--aligned {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: start;
}

.check-row--aligned > div {
  min-width: 0;
}

.check-row--aligned h4 {
  margin-top: 0;
  line-height: 1.25;
  margin-bottom: 0.2rem !important;
}

.check-row--aligned p {
  line-height: 1.5;
}

.check-row [class^="ri-"] {
  color: var(--brand-accent);
  font-size: 1.125rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* step circles */
.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--brand-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 0.75rem;
}

@media (min-width: 640px) {
  .step-num {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
  }
}

/* contact three cards */
.grid-contact-info {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .grid-contact-info {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
  }
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  text-align: center;
}

/* turnstile */
.turnstile-wrap {
  margin: 1rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
