/* =============================================================
   株式会社ヤマダ コーポレートサイト
   共通スタイルシート（BEM設計 / モバイルファースト）
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #004a99;
  --blue-dark: #00366f;
  --blue-deep: #002f63;
  --blue-pale: #eaf1f8;
  --hero-navy: #10213a;
  --hero-pink: #ff939d;
  --red: #cc0000;
  --red-dark: #a30000;
  --white: #ffffff;
  --surface: #f4f7f9;
  --placeholder: #eef3f7;
  --placeholder-text: #8a97a3;
  --text: #333333;
  --muted: #666666;
  --line: #e2e8ee;

  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --max: 1200px;
  --gutter: 20px;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 10px 26px rgba(0, 45, 95, .10);
  --shadow-md: 0 24px 56px rgba(0, 45, 95, .18);
}

/* ---------- 2. Reset / Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0 0 0 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: .01em; font-weight: 800; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.site-shell { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.site-main { flex: 1; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.section { padding: 64px 0; }
.section--soft { background: var(--surface); }
.section--navy { color: var(--white); background: var(--blue-dark); }

/* 見出し（マニフェスト・タグ：フォームのステップ見出しなど補助的な用途） */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tag::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

/* フォームのステップ見出し（主要見出しの中央揃え対象外） */
.step-heading { margin-bottom: 30px; }
.step-heading__title { margin-bottom: 12px; font-size: clamp(1.3rem, 3.5vw, 1.7rem); }
.step-heading__lead { max-width: 700px; color: var(--muted); font-size: .98rem; }

/* セクション主要見出し（背景の大きな英単語＋英語ラベル＋日本語見出しの3層構造・中央揃え） */
.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  margin: 0 auto 48px;
  padding: 38px 20px 32px;
  overflow: hidden;
  text-align: center;
}
.section-heading__background {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100%;
  color: #f1f4f5;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: .04em;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transform: translate(-50%, -52%);
}
.section-heading__content {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
  animation: sectionHeadingEnter .55s ease both;
}
.section-heading__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #0057c8;
  font-size: clamp(.8rem, 1.2vw, 1rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.section-heading__title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #111827;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.section-heading__lead {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}
.section-heading__lead--left { margin: 0; text-align: left; }

.section-heading--dark .section-heading__background { color: rgba(255,255,255,.06); }
.section--soft .section-heading__background { color: #ffffff; }
.section-heading--dark .section-heading__eyebrow { color: var(--white); }
.section-heading--dark .section-heading__title { color: var(--white); }
.section-heading--dark .section-heading__lead { color: rgba(255,255,255,.76); }

@keyframes sectionHeadingEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 左右分割ボックス内の小見出し（主要見出しとは別の、セクションの価値を伝える見出し） */
.split-panel__title {
  position: relative;
  max-width: 580px;
  margin: 0 0 20px;
  color: #111827;
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: left;
}
.split-panel__title::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--red);
}

/* ---------- 3. 画像プレースホルダー ---------- */
.placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--placeholder);
}
.placeholder::after {
  content: attr(data-filename);
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--placeholder-text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
}

/* 実写真の差し込み用（position:relative な箱の中に絶対配置でカバー表示） */
.media-fill {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 4. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--blue);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 45, 95, .16);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn__arrow { font-family: var(--font-mono); transition: transform .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: var(--white); color: var(--blue); box-shadow: 0 12px 26px rgba(0,0,0,.14); }
.btn--white:hover { background: var(--blue-pale); }
.btn--outline { background: var(--white); color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn--outline:hover { background: var(--blue-pale); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--blue-pale); }
.btn--block { width: 100%; }

/* ---------- 6. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 160px; height: auto; object-fit: contain; }

.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop__link {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: #3d4650;
  font-size: .84rem;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}
.nav-desktop__link:hover { color: var(--blue); background: var(--blue-pale); }
.nav-desktop__link.is-active { color: var(--white); background: var(--blue); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -12px 0 34px rgba(0,10,30,.18);
  transform: translateX(100%);
  transition: transform .32s ease;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile__header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
}
.nav-mobile__inner { padding: 8px 20px 24px; }
.nav-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.nav-mobile__link::after { content: "→"; color: var(--red); font-family: var(--font-mono); }
.nav-mobile__link.is-active { color: var(--blue); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(8,20,40,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.no-scroll { overflow: hidden; }

/* ---------- 7. サブヒーロー（下層ページ見出し） ---------- */
.subhero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(125deg, var(--blue-dark) 0%, var(--blue) 100%);
}
.subhero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.subhero__inner { position: relative; padding: 48px 0 56px; }
.subhero__route {
  margin-bottom: 16px;
  color: rgba(255,255,255,.6);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.subhero__route span { color: var(--white); }
.subhero__route a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 2px; }
.subhero__route a:hover { color: var(--white); }
.subhero__title { max-width: 820px; font-size: clamp(2rem, 6vw, 3.3rem); }

/* ---------- 8. ホーム：ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--hero-navy);
}

.hero__diagonal {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 48%;
  height: 270px;
  z-index: 1;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 45% 100%);
  background:
    radial-gradient(circle at 70% 20%, rgba(40,112,200,.5), transparent 45%),
    linear-gradient(135deg, #0058ad 0%, var(--blue) 50%, var(--blue-dark) 100%);
  pointer-events: none;
}

.hero__truck-wrap {
  display: none;
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 2%;
  width: 42%;
  pointer-events: none;
}
.hero__truck {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 18px rgba(0,31,82,.25))
    drop-shadow(0 8px 8px rgba(0,0,0,.12));
  animation: truckEnter .9s cubic-bezier(.2,.8,.2,1) both;
}

/* SP版：本文の流れの中に収まる丸角のトラック画像ボックス */
.hero__truck-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px -20px;
  padding: 18px;
  border-radius: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(40,112,200,.5), transparent 45%),
    linear-gradient(135deg, #0058ad 0%, var(--blue) 50%, var(--blue-dark) 100%);
}
.hero__truck-mobile-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 14px rgba(0,31,82,.28))
    drop-shadow(0 6px 6px rgba(0,0,0,.12));
  animation: truckEnter .9s cubic-bezier(.2,.8,.2,1) both;
}

.hero__copy { position: relative; z-index: 3; padding: 24px 20px 0; }
.hero__copy-inner { max-width: 620px; width: 100%; }

.hero__title {
  margin-bottom: 18px;
  color: var(--hero-navy);
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.8vw, 4.7rem);
  line-height: 1.25;
}
.hero__title em { color: var(--hero-pink); font-style: normal; }
.hero__lead { max-width: 580px; margin-bottom: 18px; color: #444444; font-size: 1.05rem; line-height: 1.8; }

.hero__actions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.hero__actions .btn { width: 100%; min-height: 58px; padding-inline: 30px; }
.hero .btn--red { background: #e60000; }
.hero .btn--red:hover { background: #c40000; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px 0 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}
.hero__stat:last-child { margin-right: 0; border-right: 0; padding-right: 0; }
.hero__stat-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.hero__stat-label { color: var(--muted); font-size: .78rem; white-space: nowrap; }


/* ---------- 9. 強みグリッド ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card__number {
  position: absolute;
  top: 10px;
  right: 18px;
  color: rgba(0, 74, 153, .09);
  font-family: var(--font-base);
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 1;
}
.feature-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-pale);
}
.feature-card h3 { position: relative; margin-bottom: 12px; font-size: 1.2rem; }
.feature-card p { position: relative; color: var(--muted); font-size: .94rem; }

/* ---------- 10. スプリットパネル ---------- */
.split-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.split-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 28px;
}
.split-panel__visual { position: relative; overflow: hidden; min-height: 220px; }
.split-panel__list { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin: 22px 0 26px; }
.check-item { display: flex; gap: 10px; color: var(--muted); font-size: .94rem; }
.check-item::before { content: "✓"; flex: 0 0 auto; color: var(--red); font-weight: 900; }

/* ---------- 11. 車両紹介プレビュー（4カラム） ---------- */
.vehicle-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vehicle-preview:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vehicle-preview__visual { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.vehicle-preview__body { padding: 18px 16px; }
.vehicle-preview__qty {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--red);
  background: #fdecec;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
}
.vehicle-preview h3 { margin-bottom: 4px; font-size: 1rem; }
.vehicle-preview p { color: var(--muted); font-size: .84rem; }

/* ---------- 12. お知らせ ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 4px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
a.news-item:hover { background: var(--surface); }
.news-date { color: var(--blue); font-family: var(--font-mono); font-size: .8rem; font-weight: 700; }
.news-title { font-weight: 700; transition: color .18s ease; }
a.news-item:hover .news-title { color: var(--blue); }

/* ---------- 13. CTA バンド ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 120%);
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; align-items: center; }
.cta-band h2 { margin-bottom: 8px; font-size: clamp(1.4rem, 4vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.82); }

/* ---------- 14. サービス詳細（画像＋テキスト） ---------- */
.detail-stack { display: grid; gap: 48px; }
.detail-block {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 24px;
  align-items: center;
}
.detail-block__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.detail-block__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.detail-block__index::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.detail-block h2 { margin-bottom: 12px; font-size: clamp(1.35rem, 4vw, 1.7rem); }
.detail-block p { color: var(--muted); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  padding: 8px 16px;
  border: 1px solid #c9dbec;
  border-radius: var(--radius-pill);
  color: var(--blue);
  background: var(--blue-pale);
  font-size: .82rem;
  font-weight: 700;
}

/* ---------- 15. フリート一覧 ---------- */
.fleet-grid { grid-template-columns: minmax(0,1fr); }
.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vehicle-card__visual { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-bottom: 3px solid var(--red); }
.vehicle-card__body { padding: 24px; }
.vehicle-card__qty {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--red);
  background: #fdecec;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
}
.vehicle-card h2 { margin-bottom: 8px; font-size: 1.15rem; }
.vehicle-card p { color: var(--muted); font-size: .92rem; }

/* ---------- 16. 対応エリア ---------- */
.area-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; align-items: stretch; }
.area-map { position: relative; overflow: hidden; min-height: 320px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.area-cards { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
.area-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card__tag { display: block; margin-bottom: 12px; color: var(--red); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.area-card h2 { margin-bottom: 12px; font-size: 1.35rem; }
.area-card p { color: var(--muted); }

/* ---------- 17. 会社概要（1カラム構成） ---------- */
.company-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.message-block { display: grid; grid-template-columns: minmax(0,1fr); gap: 30px; align-items: center; }
.message-block__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.message-block__content p { margin-bottom: 18px; color: var(--muted); }
.message-block__content p:last-child { margin-bottom: 0; }
.message-block__sign { color: var(--text) !important; font-weight: 700; }

.company-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.company-row { display: grid; grid-template-columns: minmax(0,1fr); border-bottom: 1px solid var(--line); }
.company-row:last-child { border-bottom: 0; }
.company-term { padding: 14px 20px 4px; color: var(--blue); background: var(--surface); font-family: var(--font-mono); font-size: .78rem; font-weight: 700; }
.company-desc { padding: 8px 20px 18px; }

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  box-shadow: var(--shadow-sm);
}
.stat-strip__item {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 6px 20px 6px 0;
  margin-right: 20px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.stat-strip__item:last-child { margin-right: 0; border-right: 0; }
.stat-strip__value { font-family: var(--font-mono); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1; }
.stat-strip__label { margin-top: 6px; color: rgba(255,255,255,.75); font-size: .78rem; }

/* ---------- 18. お問い合わせ（1カラム構成） ---------- */
.contact-stack { max-width: 800px; margin-inline: auto; }
.narrow-stack { max-width: 800px; margin-inline: auto; }
.article-meta { color: var(--blue); font-family: var(--font-mono); font-size: .82rem; font-weight: 700; }
.article-title { margin: 10px 0 30px; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.article-body p { margin-bottom: 20px; color: var(--muted); }
.article-body p:last-child { margin-bottom: 0; }
.contact-cards { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow-sm);
}
.contact-card--urgent { border-top-color: var(--red); }
.contact-card__label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.contact-card__phone { display: inline-block; color: var(--blue); font-family: var(--font-mono); font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 700; }
.contact-card--urgent .contact-card__phone { color: var(--red); }
.contact-card__hours { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; }

.form-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
.form-field label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: .86rem; font-weight: 700; }
.required { padding: 2px 8px; border-radius: var(--radius-pill); color: var(--white); background: var(--red); font-size: .64rem; font-weight: 700; }
.input, .textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cfdbe4;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #fbfdfe;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,74,153,.12);
}
.form-actions { margin-top: 22px; }

.confirm-list { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; margin: 20px 0; }
.confirm-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.confirm-row:last-child { border-bottom: 0; }
.confirm-row__label { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.confirm-row__value { white-space: pre-wrap; overflow-wrap: anywhere; }

.success-box { padding: 34px; border: 1px solid #b9dfc7; border-radius: var(--radius-lg); color: #1e6037; background: #edf9f1; text-align: center; }
.success-box__icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: #d5f1df; }

.step-panel { display: none; }
.step-panel.is-active { display: block; }

/* ---------- 19. フッター ---------- */
.site-footer { color: var(--white); background: var(--blue-deep); }
.site-footer__main { padding: 52px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 34px; }
.site-footer .logo {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
}
.site-footer .logo img { height: 26px; }
.site-footer__address { margin-top: 18px; color: rgba(255,255,255,.7); font-size: .86rem; }
.site-footer__cta { margin-top: 24px; }
.site-footer__nav-title { margin-bottom: 14px; color: rgba(255,255,255,.55); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; }
.site-footer__nav a { color: rgba(255,255,255,.78); font-size: .9rem; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-family: var(--font-mono); font-size: .7rem; text-align: center; }

/* ---------- 20. ユーティリティ ---------- */
.u-mt-26 { margin-top: 26px; }
.u-mt-32 { margin-top: 32px; }
.u-mb-30 { margin-bottom: 30px; }
.u-center { text-align: center; }

/* ---------- 21. アニメーション ---------- */
.page-enter { animation: pageIn .6s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes truckEnter {
  from { opacity: 0; transform: translate3d(60px, 20px, 0) scale(.93); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* ---------- 22. トップへ戻るボタン ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease, background .18s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- 23. オープニングアニメーション（初回訪問時のみ） ---------- */
html.intro-lock,
html.intro-lock body { overflow: hidden; }

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0058ad 0%, var(--blue) 50%, var(--blue-dark) 100%);
  pointer-events: none;
  animation: introExit 1.5s linear forwards;
}
.intro-logo {
  opacity: 0;
  transform: scale(.85);
  animation: introLogoIn 1.5s linear forwards;
}
.intro-logo-plate {
  display: inline-flex;
  padding: 18px 30px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,10,30,.35);
}
.intro-logo-plate img { display: block; height: 40px; width: auto; }

@keyframes introExit {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  55% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  100% { clip-path: polygon(110% 0, 210% 0, 210% 100%, 130% 100%); }
}
@keyframes introLogoIn {
  0% { opacity: 0; transform: scale(.85); animation-timing-function: cubic-bezier(.22,1,.36,1); }
  30% { opacity: 1; transform: scale(1); }
  55% { opacity: 1; transform: scale(1); }
  80% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
}

/* セクション主要見出し：768px未満の調整 */
@media (max-width: 767px) {
  .section-heading {
    min-height: 135px;
    margin-bottom: 28px;
    padding: 28px 12px 24px;
  }
  .section-heading__background {
    font-size: clamp(4rem, 23vw, 6.5rem);
    letter-spacing: .01em;
  }
  .section-heading__eyebrow {
    margin-bottom: 4px;
    font-size: .75rem;
  }
  .section-heading__title {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.4;
  }
  .section-heading__lead {
    margin-top: 12px;
    font-size: .92rem;
    line-height: 1.75;
  }
  .split-panel__title {
    margin-bottom: 16px;
    font-size: clamp(1.3rem, 6vw, 1.65rem);
    line-height: 1.5;
    text-align: left;
  }
  .split-panel__content { padding: 30px 24px 34px; }
}

/* ---------- 22. レスポンシブ ---------- */
@media (min-width: 700px) {
  .container { width: min(calc(100% - 56px), var(--max)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .news-item { grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
  .confirm-row { grid-template-columns: 150px 1fr; gap: 18px; }
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer__grid { grid-template-columns: 1.2fr .8fr; }
  .cta-band__inner { grid-template-columns: 1fr auto; }
  .company-row { grid-template-columns: 200px 1fr; }
  .company-term { padding: 18px 20px; }
  .company-desc { padding: 18px 20px; }
  .message-block { grid-template-columns: .8fr 1.2fr; }
  .logo img { width: 205px; }
  .hero__copy { padding: 60px 28px 0; }
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
}

@media (min-width: 960px) {
  .section { padding: 100px 0; }
  .nav-desktop { display: flex; }
  .nav-toggle, .nav-mobile { display: none; }
  .logo img { width: 235px; }

  .hero {
    margin-top: -80px;
    padding-top: 80px;
    padding-bottom: 0;
    min-height: 827px;
    max-height: 827px;
    display: flex;
    align-items: center;
  }
  .hero__diagonal {
    display: block;
    left: auto;
    top: 0;
    bottom: 0;
    width: 62%;
    height: auto;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 30% 100%);
  }
  .hero__copy {
    max-width: 52%;
    padding: 0 40px 0 clamp(28px, 4vw, 88px);
  }
  .hero__truck-mobile { display: none; }
  .hero__truck-wrap {
    display: block;
    top: 50%;
    right: -4%;
    bottom: auto;
    width: min(64vw, 1050px);
    transform: translateY(calc(-50% + 50px));
  }

  /* ヘッダーをFVの斜めブルー背景に重ねて透過表示 */
  [data-transparent-header] {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  [data-transparent-header] .site-header__inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-left: clamp(28px, 4vw, 88px);
    padding-right: 40px;
  }
  [data-transparent-header] .nav-desktop__link { color: var(--white); }
  [data-transparent-header] .nav-desktop__link:hover { background: rgba(255,255,255,.15); color: var(--white); }
  [data-transparent-header] .nav-desktop__link.is-active { background: transparent; color: var(--white); border: 1px solid var(--white); }
  [data-transparent-header].is-scrolled {
    background: rgba(255,255,255,.97);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  [data-transparent-header].is-scrolled .nav-desktop__link { color: #3d4650; border-color: transparent; }
  [data-transparent-header].is-scrolled .nav-desktop__link:hover { background: var(--blue-pale); color: var(--blue); }
  [data-transparent-header].is-scrolled .nav-desktop__link.is-active { background: var(--blue); color: var(--white); border-color: transparent; }

  .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .split-panel { grid-template-columns: 1.1fr .9fr; }
  .split-panel__content { padding: 54px; }
  .fleet-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .area-layout { grid-template-columns: 1.05fr .95fr; }
  .form-card { padding: 44px; }

  .detail-block { grid-template-columns: 1fr 1fr; gap: 56px; }
  .detail-block:nth-child(even) .detail-block__visual { order: 2; }
}

/* 1440px以上：文字・画像サイズの比率を固定し、それ以上は拡大させない */
@media (min-width: 1440px) {
  .hero__title { font-size: 4.32rem; }
  .hero__truck-wrap { width: 1050px; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .btn--block-mobile { width: 100%; }
  .site-footer__nav { grid-template-columns: 1fr; }
  .stat-strip { flex-direction: column; gap: 16px; }
  .stat-strip__item { border-right: 0; margin-right: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
