@charset "UTF-8";
/* =========================================================
   common.css  共通スタイル
   ハッピーカーズ清須店 / 全ページ共通（ヘッダー・フッター・
   ローダー・ボタン・車の走行演出・レスポンシブ基盤）
   カラー: メイン #f5f1e6 / サブ #e46374 / アクセント #c3e322
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  --cream: #f5f1e6;
  --cream-deep: #efe8d6;
  --pink: #e46374;
  --pink-deep: #d94f63;
  --lime: #c3e322;
  --lime-deep: #abc91a;
  --navy: #2c3a4b;
  --ink: #404a55;
  --muted: #7d8794;
  --white: #ffffff;
  --line-green: #06c755;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 4px 14px rgba(44, 58, 75, .08);
  --shadow-m: 0 12px 30px rgba(44, 58, 75, .12);
  --shadow-pink: 0 10px 24px rgba(228, 99, 116, .28);

  --maxw: 1120px;
  --gutter: clamp(18px, 5vw, 48px);

  --font-rounded: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --header-h: 76px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- アクセシビリティ ---------- */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 3000;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 0 0 12px 12px;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 汎用レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

/* マーカー風ハイライト（共通） ※「公式LINE」のみ別途LINE緑で上書き */
.mark {
  background: linear-gradient(transparent 60%, var(--pink) 60%);
  padding-inline: 3px;
}

/* セクション下部の導線 */
.section-more { text-align: center; margin-top: clamp(30px, 5vw, 44px); }
.section-more--left { text-align: left; margin-top: 26px; }

/* スマホ用改行制御 */
.sp-br { display: none; }
@media (max-width: 560px) { .sp-br { display: inline; } }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--deep { background: var(--cream-deep); }

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .en {
  display: inline-block;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .18em;
  color: var(--pink);
  margin-bottom: 8px;
}
.section-head .ja {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  line-height: 1.4;
}
.section-head .ja .mark {
  background: linear-gradient(transparent 62%, var(--pink) 62%);
  padding-inline: 2px;
}
.section-head .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: .98rem;
}

/* ---------- ロゴ ---------- */
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.logo-frame__img {
  display: block;
  width: auto;
  height: 44px;
}
.logo-frame[data-note]::after { content: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.btn__sub { font-size: .66rem; font-weight: 700; opacity: .9; display: block; }

.btn--line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 199, 85, .3);
}
.btn--line:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(6, 199, 85, .38); }

.btn--tel {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-s);
}
.btn--tel:hover { transform: translateY(-3px); background: var(--navy); color: #fff; }

.btn--pink {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn--pink:hover { transform: translateY(-3px); background: var(--pink-deep); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }

.btn--lg { font-size: 1.12rem; padding: 18px 38px; }
.btn--block { width: 100%; }

/* ---------- ローダー ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--cream);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__logo { transform: scale(1.05); }
.loader__logo .logo-frame__img { height: 58px; }
.loader__track {
  position: relative;
  width: min(74vw, 360px);
  height: 60px;
  overflow: hidden;
}
.loader__road {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 16px, transparent 16px 30px);
  opacity: .5;
}
.loader__car {
  position: absolute;
  bottom: 14px;
  left: -80px;
  width: 72px;
  animation: loader-drive 1.5s cubic-bezier(.5, 0, .3, 1) infinite;
}
.loader__text {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .14em;
  font-size: .9rem;
}
@keyframes loader-drive {
  0%   { left: -80px; }
  100% { left: calc(100% + 10px); }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 241, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44, 58, 75, .07);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-s); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo-frame__img { height: 38px; }

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; gap: 22px; }
.gnav__list a {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: .94rem;
  color: var(--navy);
  position: relative;
  padding-block: 6px;
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--pink);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.gnav__list a:hover::after,
.gnav__list a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: .9rem; }

/* ハンバーガー */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-s);
  position: relative;
  z-index: 1100;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--navy);
  color: #e7ecf1;
  padding-block: clamp(48px, 7vw, 72px) 0;
}
.site-footer a:hover { color: var(--lime); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-frame {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 10px 14px;
}
.footer-brand .logo-frame__img { height: 40px; }
.footer-brand p { margin-top: 18px; font-size: .9rem; color: #c4cdd6; line-height: 1.9; }
.footer-col h4 {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: .98rem;
  margin-bottom: 16px;
  color: #fff;
}
.footer-col ul li { margin-bottom: 10px; font-size: .92rem; }
.footer-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; }
.footer-info dt { color: var(--lime); font-weight: 700; }
.footer-info dd { margin: 0; color: #d3dae1; }
.footer-sns { margin-top: 18px; }
.footer-sns a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700;
}
.footer-sns svg { width: 22px; height: 22px; }
.footer-bottom {
  margin-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px;
  text-align: center;
  font-size: .8rem;
  color: #aab4bf;
}

/* ---------- 固定追従CTA（モバイル） ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -6px 20px rgba(44, 58, 75, .14);
}
.sticky-cta .btn { flex: 1; padding: 13px 10px; font-size: .92rem; }

/* ---------- ページトップへ戻る ---------- */
.pagetop {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 880;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--pink); }
.pagetop svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  /* モバイルは固定CTAバーと重ならないよう上に配置 */
  .pagetop { bottom: 84px; right: 16px; width: 44px; height: 44px; }
}

/* ---------- スクロールリビール ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- 走る車（背景演出・帯／奥行き・左右両方向） ---------- */
.driveband {
  position: relative;
  height: 128px;
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream-deep) 55%, #e7dfcc 100%);
  overflow: hidden;
}
/* 奥の道路（薄く・高い位置） */
.driveband::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 88px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 14px, transparent 14px 30px);
  opacity: .16;
}
/* 手前の道路 */
.driveband__road {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 22px, transparent 22px 42px);
  opacity: .4;
}
.dband-car {
  position: absolute;
  left: 0;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.dband-car__inner { display: block; }
.dband-car svg { width: 100%; height: auto; display: block; }
@keyframes drive-rtl {
  from { transform: translateX(-160px); }
  to   { transform: translateX(calc(100vw + 160px)); }
}
@keyframes drive-ltr {
  from { transform: translateX(calc(100vw + 160px)); }
  to   { transform: translateX(-160px); }
}
@media (prefers-reduced-motion: reduce) {
  .dband-car, .loader__car { animation: none !important; }
}

/* ---------- 写真ギャラリー（共通） ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery--trio { grid-template-columns: repeat(3, 1fr); }
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  background: var(--cream-deep);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 10px;
  font-size: .76rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(44, 58, 75, .78));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-within .gallery__cap { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .gallery, .gallery--trio { grid-template-columns: repeat(2, 1fr); }
}
/* SP（スマホ）は1列に縦並び。画像は切り取らず自然な比率で大きく表示 */
@media (max-width: 600px) {
  .gallery, .gallery--trio { grid-template-columns: 1fr; gap: 18px; }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item img { height: auto; }
  .gallery__cap { opacity: 1; transform: none; font-size: .85rem; padding: 22px 16px 12px; }
}

/* ---------- 最終CTA（共通） ---------- */
.final-cta { position: relative; background: var(--cream-deep); }
.final-cta__inner {
  text-align: center;
  padding-block: clamp(46px, 7vw, 76px);
}
.final-cta h2 {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.5rem, 4.6vw, 2.2rem);
  line-height: 1.45;
}
.final-cta p { margin-top: 16px; color: var(--ink); }
.final-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.final-cta .driveband { background: transparent; }
@media (max-width: 560px) {
  .final-cta__btns .btn { width: 100%; }
}

/* ---------- ページ見出しヒーロー（下層共通） ---------- */
.page-hero {
  margin-top: var(--header-h);
  padding-block: clamp(48px, 7vw, 80px);
  background:
    radial-gradient(120% 120% at 100% 0, rgba(195, 227, 34, .25), transparent 55%),
    radial-gradient(110% 110% at 0 100%, rgba(228, 99, 116, .16), transparent 55%),
    var(--cream-deep);
  text-align: center;
}
.page-hero .en {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--pink);
  letter-spacing: .2em;
  font-size: .82rem;
}
.page-hero h1 {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.8rem, 5.4vw, 2.8rem);
  margin-top: 10px;
}
.breadcrumb {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { margin-inline: 6px; }

main { display: block; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  /* backdrop-filter は position:fixed の包含ブロックを生成し、
     ドロワー(.gnav)が全画面表示できなくなるためモバイルでは無効化 */
  .site-header { backdrop-filter: none; background: rgba(245, 241, 230, .98); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .gnav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 24px) 28px 40px;
    background: var(--cream);
    box-shadow: -10px 0 40px rgba(44, 58, 75, .18);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .gnav.is-open { transform: none; }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list li { border-bottom: 1px solid rgba(44, 58, 75, .1); }
  .gnav__list a { display: block; padding: 16px 4px; font-size: 1rem; }
  .gnav__list a::after { display: none; }
  .gnav .header-cta {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    gap: 12px;
  }
  .gnav .header-cta .btn { width: 100%; padding: 15px; font-size: 1rem; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(44, 58, 75, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 74px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-head .ja { font-size: 1.5rem; }
}
