@charset "UTF-8";
/* 春日部三菱 TOPページ リニューアル — top.css（design/assets/css/style.css ベース） */

:root {
  --accent: #ec3013;
  --accent-dark: #ae1800;
  --ink: #201e1d;
  --ink-strong: #161313;
  --bg-dark: #111;
  --bg-section-dark: #1a1a1a;
  --bg-card-dark: #1b1b1b;
  --bg-light: #f3f2f2;
  --line-dark: rgba(255,255,255,.18);
  --header-h: 100px;
  --font-en: 'Archivo Expanded', 'Archivo', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-dark); color: #fff; font-family: 'Archivo', var(--font-jp); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
::selection { background: rgba(236,48,19,.28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ナビから飛んだときの停止位置＝固定ヘッダーの下端。--header-offset は top.js がヘッダーの実寸から設定
   （余白を足すと前のセクションの背景が隙間として見えるため、ヘッダー高さちょうどにする） */
section, footer { scroll-margin-top: var(--header-offset, 100px); }

/* ページ全体のスクロールバー（現行サイト style.css の赤白スクロールバーを継承。
   現行は *:: 指定だが、OUR NEWS 一覧の独自スクロールバーに影響しないよう html に限定） */
html::-webkit-scrollbar { width: 6px; background-color: #f8f9ff; }
/* モーダル表示中は remodal が html を overflow:hidden にしてスクロールバーが消えるため、
   top.js が測った実際のスクロールバー幅（--sbw）ぶん右側を補ってページのずれを防ぐ。
   remodal 自身の補正は通常のスクロールバー幅で測るため上の独自スクロールバーと合わず、上書きする */
body { padding-right: 0 !important; } /* remodal が開閉時に body へ直書きする padding-right を無効化（閉じた後に残って右端に帯が出るため） */
html.remodal-is-locked { padding-right: var(--sbw, 0px); }
html.remodal-is-locked .site-header { width: calc(100% - var(--sbw, 0px)); }
html.remodal-is-locked .float-banner { right: calc(20px + var(--sbw, 0px)); }
html.remodal-is-locked .scroll-top { right: calc(20px + var(--sbw, 0px)); }
html::-webkit-scrollbar-track { box-shadow: inset -5px -5px 8px -1px rgba(255,255,255,.7), 5px 5px 8px -1px rgba(0,0,0,.065); background-color: #f8f9ff; }
html::-webkit-scrollbar-button { background-color: #e80000; }
html::-webkit-scrollbar-thumb { background-color: #e80000; }

/* ---------- 共通 ---------- */
.container { margin: 0 auto; padding: 0 24px; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-title { font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: -.01em; line-height: .95; font-size: 60px; margin: 0; }
.sec-title .accent { color: var(--accent); }
.sec-sub { font-family: var(--font-jp); font-weight: 700; font-size: 16px; letter-spacing: .02em; margin-top: 12px; }

.btn-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-family: var(--font-jp); font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--accent); transition: all .5s; }
.btn-pill:hover { background: #fff; color: var(--accent); }
.btn-pill svg { width: 15px; height: 15px; }

/* ---------- HEADER ---------- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: #000; }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: clamp(10px,1.2vw,20px); max-width: 1600px; margin-inline: auto; padding: 8px clamp(10px,1.2vw,20px); }
.site-header__logo { flex-shrink: 0; display: flex; align-items: center; padding: 5px 0; }
.site-header__logo img { height: clamp(50px,4.8vw,66px); width: auto; display: block; }
.site-header__name { flex: 0 0 auto; color: #fff; font-family: var(--font-jp); font-weight: 700; font-size: clamp(13px,1.05vw,17px); white-space: nowrap; }
.site-header__name:hover { color: #fff; }
.site-header__navs { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 11px; min-width: 0; }
.site-header__util { display: flex; align-items: center; gap: 18px; }
.gnav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px clamp(13.5px,1.575vw,22.5px); min-width: 0; } /* 項目間は従来の 1.5 倍 */

.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; font-family: var(--font-jp); font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; transition: color .5s; }
.nav-link:hover { color: var(--accent); }
.nav-link--underline::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .5s; }
.nav-link--underline:hover::after { width: 100%; }
.nav-link svg { width: 16px; height: 16px; display: block; }

.btn-special { display: inline-flex; align-items: center; background: var(--accent); color: #fff; font-family: var(--font-jp); font-weight: 700; font-size: clamp(12px,0.95vw,14px); padding: 10px clamp(13px,1.4vw,20px); border-radius: 999px; white-space: nowrap; border: 1.5px solid var(--accent); transition: all .5s; }
.btn-special:hover { background: #fff; color: var(--accent); }

/* ---------- 表示アニメーション：[data-reveal] が画面に入ったら下から上へ（top.js で .is-visible を付与） ---------- */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s var(--ease-out); }
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
/* 現行サイト（AOS, duration 1200, easing ease）と同じ動き */
.has-reveal [data-reveal="fade-up"] { transform: translate3d(0,100px,0); transition: opacity 1.2s ease, transform 1.2s ease; }
.has-reveal [data-reveal="zoom-in"] { transform: scale(.6); transition: opacity 1.2s ease, transform 1.2s ease; }
.has-reveal .car-card[data-reveal="zoom-in"] { transition: opacity 1.2s ease, transform 1.2s ease, box-shadow .5s, border-color .5s; } /* ホバー時の影・枠線の変化を残す */
@media (prefers-reduced-motion: reduce) {
  .has-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- HEADER（SP：1199.98px 以下は現行サイトと同じ構成のハンバーガーメニュー） ----------
   値は現行サイトの SP ヘッダー実測値（375px 幅）に合わせる */
.site-header__toggle, .sp-menu { display: none; }
@media (max-width: 1199.98px) {
  :root { --header-h-sp: 108px; } /* 上下 25px + ロゴ 58px */
  .site-header__inner { min-height: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 0; padding: 25px 15px; }
  .site-header__logo { padding: 0; }
  .site-header__logo img { width: 60px; height: auto; }
  .site-header__name { margin-left: 5px; font-weight: 600; font-size: 18px; line-height: 21px; }
  .site-header__navs { display: none; }
  .site-header__toggle { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 0; border-radius: 4px; background: none; color: #fff; cursor: pointer; }
  .site-header__toggle svg { width: 22px; height: 22px; }
  /* 開閉は高さのアニメーション（現行の Bootstrap collapse と同じ 0.35s） */
  .sp-menu { display: block; height: 0; max-height: calc(100vh - var(--header-h-sp)); max-height: calc(100dvh - var(--header-h-sp)); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transition: height .35s ease, visibility .35s; }
  .sp-menu.is-open { visibility: visible; }
  .sp-menu__inner { margin-top: -25px; padding: 25px 15px 40px; } /* ロゴ下から 25px で最初の項目 */
  .sp-menu__list { margin: 0; padding: 0; list-style: none; }
  .sp-menu__list a { display: inline-block; padding: 16px 15px; font-family: var(--font-jp); font-weight: 600; font-size: 16px; line-height: 21px; color: #fff; transition: color .3s; } /* 14px → 16px */
  .sp-menu__list a:hover { color: var(--accent); }
  .sp-menu__btn { display: inline-block; margin: 28px 0 32px; padding: 12px 15px; border: 2px solid #e80000; border-radius: 999px; background: #e80000; font-family: var(--font-jp); font-weight: 600; font-size: 16px; line-height: 21px; color: #fff; }
  .sp-menu__btn:hover { color: #fff; opacity: .85; }
  .sp-menu__sns { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
  .sp-menu__sns a { display: block; }
  .sp-menu__sns img { display: block; width: 32px; height: 32px; object-fit: contain; }
  /* ヘッダーが固定表示のため、メインビジュアルをヘッダーの下から始める（現行 SP と同じ見え方） */
  .hero { margin-top: var(--header-h-sp); }
  section, footer { scroll-margin-top: var(--header-offset, var(--header-h-sp)); }
}

/* ---------- HERO ---------- */
.hero { position: relative; aspect-ratio: 160/87; overflow: hidden; background: #000; }
.hero__slider, .hero__slider .swiper-wrapper, .hero__slider .swiper-slide { height: 100%; }
.hero__slider { overflow: hidden; }
.hero__slider .swiper-slide { overflow: hidden; }
.hero__link { display: block; width: 100%; height: 100%; }
.hero__img, .hero__img img { display: block; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; }
/* 枠より横長の画像（トライトン 1920×780）：横幅をブラウザ両端に合わせ、上下の余白は黒。fade（crossFade なし）だと前のスライドが下に残って透けるので img 自体に黒背景。SP 画像は枠とほぼ同比率なので PC のみ */
@media (min-width: 992px) { .hero__img img.hero__img--fit-width { object-fit: contain; background: #000; } }
/* 現行サイトと同じ：表示中のスライドが 1.3倍 → 等倍にズーム */
.hero__img { transform: scale3d(1.3,1.3,1); backface-visibility: hidden; will-change: transform; transition: transform 1400ms ease; }
.hero__slider .swiper-slide-active .hero__img { transform: scale3d(1,1,1); }
/* 前後ボタン：ホバーで画面外から出てくる（991px 以下は非表示） */
.hero__prev, .hero__next { position: absolute; top: 50%; z-index: 9; transform: translateY(-50%); width: 50px; height: 50px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.1); color: #e80000; display: grid; place-items: center; cursor: pointer; transition: all .7s; }
.hero__prev:hover, .hero__next:hover { background: rgba(232,0,0,.1); }
.hero__prev svg, .hero__next svg { width: 22px; height: 22px; }
.hero__prev { left: -60px; }
.hero__next { right: -60px; }
.hero:hover .hero__prev { left: 60px; }
.hero:hover .hero__next { right: 60px; }
@media (max-width: 991.98px) {
  .hero { aspect-ratio: 750/667; }
  .hero__prev, .hero__next { display: none; }
}

/* ---------- OUR NEWS ---------- */
.news { background: var(--bg-section-dark); color: #fff; padding: 150px 0 75px; }
.news .container { max-width: 1120px; }
.news .sec-head { margin-bottom: 40px; }
.news__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; align-items: start; }
.news__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); max-height: 520px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.news__list::-webkit-scrollbar { width: 5px; }
.news__list::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
.news__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); }
.news__list::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* 1 行目に日付・NEW、2 行目にタイトル。上下 padding 広め（古いお知らせが多く並ばないよう縦長に） */
.news__item { display: grid; grid-template-columns: auto minmax(0,1fr); justify-items: start; align-items: center; row-gap: 8px; column-gap: 12px; padding: 26px 4px; border-bottom: 1px solid var(--line-dark); color: #fff; transition: background .3s; }
.news__item:hover { background: rgba(255,255,255,.05); color: #fff; }
.news__date { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; color: rgba(255,255,255,.62); }
.news__new { background: var(--accent); color: #fff; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .1em; padding: 4px 10px; }
.news__new--none { visibility: hidden; padding: 0; width: 0; }
.news__title { grid-column: 1 / -1; font-family: var(--font-jp); font-weight: 500; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
/* NewsPocket の読み込み中・エラー・0件表示 */
.news__list .np-loading, .news__list .np-error, .news__empty { padding: 17px 4px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-jp); font-size: 14px; color: rgba(255,255,255,.62); }
/* 2 列（768px 以上）：お知らせ一覧の高さを Instagram（正方形）に揃える。
   一覧の中身を行の高さ計算から外し（contain: size）、行＝Instagram の高さに伸ばして溢れた分は一覧内スクロール */
@media (min-width: 768px) {
  .news__grid { align-items: stretch; }
  .news__list { max-height: none; contain: size; }
}
.news__insta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; border: 1px solid var(--line-dark); }
.news__insta a { aspect-ratio: 1/1; overflow: hidden; background: #242424; display: block; }
.news__insta img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- TOPICS ---------- */
.topics { background: var(--bg-section-dark); color: #fff; padding: 75px 0; }
.topics .container { max-width: 1200px; }
.topics .sec-head { margin-bottom: 38px; }
.topics .sec-title { color: var(--accent); }
.topics__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 32px; row-gap: 40px; }
.topic-card { display: flex; flex-direction: column; gap: 14px; color: #fff; }
.topic-card:hover { color: #fff; }
.topic-card__img { aspect-ratio: 16/9; background: #fff; overflow: hidden; }
.topic-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform .5s var(--ease-out); }
.topic-card__img:hover img { transform: scale(1.2); }
.topic-card__title { font-family: var(--font-jp); font-weight: 500; font-size: 15px; line-height: 1.65; text-align: center; text-wrap: pretty; }

/* ---------- CUSTOM / CAMPING CAR ---------- */
.custom { background: var(--bg-dark); }
.custom .container { max-width: 1180px; padding: 150px 24px 120px; }
.custom__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: 24px; }
.custom-card { border-radius: 18px; overflow: hidden; background: var(--bg-card-dark); display: flex; flex-direction: column; }
.custom-card__img { aspect-ratio: 1212/568; background: #0d0d0d; }
.custom-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.custom-card__body { padding: 30px 32px 34px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.custom-card__title { font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: -.01em; line-height: .95; font-size: 44px; color: #fff; margin: 0 0 14px; }
.custom-card__lead { font-family: var(--font-jp); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 8px; }
.custom-card__text { font-family: var(--font-jp); font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.78); margin: 0 0 22px; }

/* ---------- CAR LINE UP ---------- */
.lineup { background: #fff; color: var(--ink); padding: 75px 0; }
.lineup .container { max-width: 1160px; }
.lineup .sec-title, .lineup .sec-sub { color: var(--ink-strong); }
.lineup__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.car-card { position: relative; flex: 0 0 calc((100% - 54px)/4); max-width: calc((100% - 54px)/4); display: flex; flex-direction: column; background: #fff; border: 1px dashed rgba(232,0,0,.2); border-radius: 14px; overflow: hidden; color: var(--ink); transition: all .5s; }
/* ホバー：現行サイト（.training-section-two .training-item）と同じ動き */
.car-card:hover { border-color: transparent; box-shadow: 0 15px 25px rgba(232,0,0,.15); color: var(--ink); }
.car-card__img { aspect-ratio: 4/3; padding: 22px 20px 8px; min-width: 0; min-height: 0; } /* min-* が無いと Safari（iPhone）で枠が画像の実寸に引っ張られてカードより広がり、右端が切れる */
.car-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-card__name { padding: 6px 14px 22px; font-family: var(--font-jp); font-weight: 700; font-size: 18px; text-align: center; }
/* 車種写真＋黒50% のオーバーレイ（0.5s でフェードイン） */
.car-card__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 60px 20px; border-radius: 14px; overflow: hidden; opacity: 0; visibility: hidden; transition: all .5s; pointer-events: none; }
.car-card:hover .car-card__overlay { opacity: 1; visibility: visible; }
.car-card__overlay-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card__overlay::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .5; }
.car-card__overlay-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
/* 矢印アイコン：-50°回転・右寄せ。ホバー 0.5s 後に 0.2s で幅 40→60px */
.car-card__overlay-icon { position: relative; right: -80px; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 60px; border-radius: 50%; background: #e80000; color: #fff; transform: rotate(-50deg); transition: all .3s; }
.car-card:hover .car-card__overlay-icon { width: 60px; border-radius: 999px; transition: width .2s .5s; }
.car-card__overlay-icon svg { width: 16px; height: 16px; }
.car-card__overlay-name { font-family: var(--font-jp); font-weight: 700; font-size: 20px; line-height: 1.3; color: #fff; text-align: center; }
.lineup__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.lineup__btns .btn-pill { padding: 14px 28px; }

/* ---------- MAINTENANCE ---------- */
.maintenance { position: relative; background: #141414; overflow: hidden; }
.maintenance__bg { position: absolute; inset: 0; }
.maintenance__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maintenance .container { position: relative; max-width: 1180px; padding: 75px 24px; }
.maintenance .sec-title, .maintenance .sec-sub { color: #fff; }
.maintenance__grid { display: grid; grid-template-columns: repeat(4,minmax(0,280px)); justify-content: center; gap: 2px; }
.maint-item { padding: 26px 18px; display: flex; flex-direction: column; align-items: stretch; color: #fff; }
.maint-item:hover { color: #fff; }
.maint-item img { width: 70px; height: 70px; display: block; object-fit: contain; margin-bottom: 20px; align-self: flex-start; transform: scaleX(1); transition: transform .4s ease; }
.maint-item img.is-wide { width: 135px; }
.maint-item:hover img { transform: scaleX(-1); }
.maint-item__bar { height: 3px; width: 50px; background: #fff; }
.maint-item__label { font-family: var(--font-jp); font-size: 20px; font-weight: 500; margin-top: 16px; }

/* ---------- SHOP INFORMATION ---------- */
.shop { background: #fff; color: var(--ink); padding: 75px 0 40px; }
.shop .container { max-width: 1120px; }
.shop .sec-title, .shop .sec-sub { color: var(--ink-strong); }
.shop__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 28px; }
.shop-card__img { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0d0d0d; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform .5s ease; }
.shop-card:hover .shop-card__img img { transform: scale(1.2); }
.shop-card__name { font-family: var(--font-jp); font-weight: 900; font-size: 20px; margin: 18px 0 14px; color: var(--ink-strong); border-left: 4px solid var(--accent); padding-left: 12px; }
.shop-card__info { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-family: var(--font-jp); font-size: 14px; margin: 0; }
.shop-card__info dt { font-weight: 400; }
.shop-card__info dd { margin: 0; }
.shop-card__info a { color: var(--accent); text-decoration: underline; }
.shop-card .btn-pill { font-size: 14px; padding: 11px 24px; margin-top: 18px; }
.shop-card .btn-pill svg { width: 14px; height: 14px; }

/* ---------- CALENDAR ---------- */
.calendar { background: #fff; color: var(--ink); padding: 38px 0 75px; }
.calendar .container { max-width: 1000px; }
.calendar .sec-head { margin-bottom: 34px; }
.calendar .sec-title { font-size: 46px; color: var(--ink-strong); }
.calendar__box { border: 1px solid #dcd8d8; padding: 44px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
.cal { max-width: 300px; margin: 0 auto; width: 100%; font-family: var(--font-jp); }
.cal__label { text-align: center; font-size: 15px; margin-bottom: 16px; }
.cal__grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; text-align: center; }
.cal__dow { font-size: 14px; padding-bottom: 10px; }
.cal__dow--sun { color: var(--accent); }
.cal__dow--sat { color: #2f6fdc; }
.cal__day { font-size: 14px; display: grid; place-items: center; aspect-ratio: 1/1; background: #ededed; color: var(--ink); }
.cal__day--closed { background: var(--accent); color: #fff; }
.cal__legend { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; }
.cal__legend::before { content: ""; width: 11px; height: 11px; background: var(--accent); }

/* ---------- 所有権解除 ---------- */
.ownership { background: #fff; color: var(--ink); padding: 75px 0; }
.ownership .container { max-width: 1200px; }
.ownership__title { font-family: var(--font-jp); font-weight: 900; font-size: 34px; letter-spacing: .01em; margin: 0; color: var(--ink-strong); }
.ownership__bar { display: block; width: 50px; height: 3px; background: var(--accent); margin: 22px 0 34px; }
.ownership__text { font-family: var(--font-jp); font-size: 15px; line-height: 1.9; margin: 0 0 30px; }
.ownership__links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.ownership__link { border: 1px solid var(--ink); padding: 22px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink); font-family: var(--font-jp); font-weight: 500; font-size: 16px; transition: all .5s; }
.ownership__link:hover { background: #000; border-color: #000; color: #fff; }
.ownership__link svg { width: 24px; height: 24px; stroke: var(--accent); }
/* 所有権解除に関する書類（ダウンロード一覧） */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dcd8d8; }
.doc-list__item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 4px; border-bottom: 1px solid #dcd8d8; } /* 書類名の下にボタン（PC も SP と同じ並び） */
.doc-list__name { font-family: var(--font-jp); font-weight: 500; font-size: 16px; }
.doc-list__files { display: grid; grid-template-columns: repeat(2, minmax(190px, max-content)); gap: 12px; } /* PDF・Word の列を全行で揃える（記入例は PDF のみ） */
.doc-dl { display: inline-flex; min-width: 190px; align-items: center; gap: 8px; padding: 7px 16px 7px 7px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-family: var(--font-jp); font-weight: 500; font-size: 14px; line-height: 1.4; transition: all .3s; }
.doc-dl:hover { background: #000; border-color: #000; color: #fff; }
.doc-dl__type { min-width: 46px; padding: 3px 8px; border-radius: 999px; color: #fff; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-align: center; }
.doc-dl--pdf .doc-dl__type { background: var(--accent); }
.doc-dl--word .doc-dl__type { background: #2b579a; }
.doc-dl svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 992px) {
  .doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; } /* PC は 2 カラムでコンパクトに */
}
@media (max-width: 575.98px) {
  .doc-list__files { display: flex; flex-wrap: wrap; } /* 2 列固定だと画面幅を超えるため折り返す */
}

/* ---------- RECRUIT ---------- */
.recruit { background: var(--bg-light); color: var(--ink); padding: 75px 0 106px; }
.recruit .container { max-width: 1000px; }
.recruit .sec-title { color: var(--accent); }
.recruit .sec-sub { color: var(--ink-strong); }
.recruit__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 28px; }
.recruit-card { display: block; color: var(--ink); }
.recruit-card:hover { color: var(--ink); }
.recruit-card__img { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; }
.recruit-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: all .5s; }
.recruit-card:hover .recruit-card__img img { transform: scale(1.2); } /* 現行サイトと同じ：ホバーで画像を拡大 */
.recruit-card__title { font-family: var(--font-jp); font-weight: 900; font-size: 19px; margin: 16px 0 8px; }
.recruit-card__text { font-family: var(--font-jp); font-size: 14px; color: #555; line-height: 1.7; margin: 0; }

/* ---------- FOOTER ---------- */
/* 文字サイズ・余白は現行サイトのフッター（PC 1440px 時の実測値）に合わせる */
.site-footer { background: #000; color: #fff; padding: 30px 0 0; overflow-x: clip; } /* __copy の 100vw がスクロールバー幅ぶんはみ出すのを防ぐ */
.site-footer .container { max-width: 1188px; } /* 内容幅 1140px（現行と同じ） */
.site-footer__top { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand { display: flex; align-items: center; gap: 5px; }
.site-footer__brand img { width: 60px; height: auto; display: block; }
.site-footer__brand span { font-family: var(--font-jp); font-weight: 600; font-size: 18px; line-height: 24px; }
.site-footer__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__sns { order: 2; margin-left: auto; align-self: flex-end; display: flex; align-items: center; gap: 25px; }
.site-footer__sns a { display: block; } /* 現行サイト同様、SNS・メールはホバーで変化させない */
.site-footer__sns img { width: 35px; height: 35px; display: block; object-fit: contain; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #fff; color: #fff; font-family: var(--font-jp); font-weight: 600; font-size: 16px; line-height: 24px; padding: 12px 30px; border-radius: 999px; transition: all .5s; }
.btn-outline:hover { background: #fff; border-color: #e80000; color: #e80000; } /* 現行サイト footer .btn--base のホバーに合わせる（白地・赤文字・赤枠、0.5s） */
.site-footer__link { color: #fff; font-family: var(--font-jp); font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .5s; } /* リンクとわかるよう下線 */
.site-footer__link:hover { color: #e80000; } /* ボタン（.btn-outline）のホバーと同じ赤 */
.site-footer__copy { border-top: 1px solid rgba(255,255,255,.2); margin: 30px calc(50% - 50vw) 0; padding: 30px 24px; text-align: center; font-family: var(--font-jp); font-size: 12px; line-height: 1.7; letter-spacing: 1px; color: #8a8a8a; }
@media (max-width: 991.98px) {
  .btn-outline { padding: 10px 18px; font-size: 13px; }
  .site-footer__link { font-size: 13px; }
}

/* ---------- 追従バナー ---------- */
.float-banner { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 300px; transition: opacity .45s ease, transform .45s ease, bottom .6s ease; }
.float-banner.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }
.float-banner.is-closed { display: none; }
.float-banner__close { position: absolute; top: -13px; right: -13px; width: 26px; height: 26px; border-radius: 999px; background: #000; border: none; padding: 0; cursor: pointer; display: grid; place-items: center; z-index: 1; } /* 15px → 26px に拡大 */
.float-banner__close::before { content: ""; position: absolute; inset: -8px; } /* 押せる範囲は見た目より一回り広く（42px 四方） */
.float-banner__close svg { width: 14px; height: 14px; }
.float-banner a { display: block; background: #242424; }
.float-banner img { display: block; width: 100%; aspect-ratio: 12/5; object-fit: cover; }

/* ---------- トップに戻る（現行サイト .scrollToTop を継承） ----------
   非表示時は画面上方に退避し、.is-active で右下へ 2秒かけて降りてくる */
.scroll-top { position: fixed; right: 20px; bottom: 0; z-index: 99; display: block; width: 50px; transform: translateY(-5000%); transition: bottom 2s, transform 2s; }
.scroll-top img { display: block; width: 100%; height: auto; }
.scroll-top.is-active { bottom: 30px; transform: translateY(0); }
/* ボタン表示中は追従バナーをボタン（bottom 30px + 高さ 50px）の上へ移動 */
.scroll-top.is-active ~ .float-banner { bottom: 95px; }
@media (max-width: 1199.98px) {
  .scroll-top.is-active { display: none; }
  .scroll-top.is-active ~ .float-banner { bottom: 20px; }
}

/* SP（575.98px 以下）でだけ改行する <br class="br-sp"> */
.br-sp { display: none; }

/* ---------- 画像未支給の枠 ---------- */
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: #2a2a2a; color: rgba(255,255,255,.5); font-family: var(--font-jp); font-size: 13px; text-align: center; padding: 12px; }

/* ---------- PHPカレンダー（calendar/index.php の出力 table を .cal の見た目に合わせる） ---------- */
.cal table { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.cal caption { font-size: 15px; font-weight: 400; margin-bottom: 14px; caption-side: top; text-align: center; }
.cal thead th { font-size: 14px; font-weight: 400; padding: 0 0 8px; text-align: center; }
.cal thead th.sun { color: var(--accent); }
.cal thead th.sat { color: #2f6fdc; }
.cal tbody td { height: 40px; padding: 0; font-size: 14px; text-align: center; vertical-align: middle; background: #ededed; color: var(--ink); }
.cal tbody td.closed, .cal tbody td.holiday { background: var(--accent); color: #fff; }
.cal tfoot td { padding: 16px 0 0; }
.cal .label-k { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cal .label-k::before { content: ""; flex-shrink: 0; width: 11px; height: 11px; background: var(--accent); }

/* ---------- モーダル（remodal：会社概要・採用詳細） ---------- */
[data-remodal-target] { cursor: pointer; }
.remodal { font-family: var(--font-jp); color: var(--ink); font-size: 14px; line-height: 1.8; }
.remodal h3 { font-weight: 900; font-size: 22px; color: var(--ink-strong); margin: 0 0 20px; }
.remodal img { display: block; width: 100%; height: auto; margin-bottom: 1em; }
.remodal table { width: 100%; margin: 1em 0 1.5em; border-collapse: collapse; }
.remodal th, .remodal td { padding: 10px; text-align: left; border: 1px solid #ccc; vertical-align: top; }
.remodal th { background: #eee; font-weight: 700; white-space: nowrap; }
.remodal .btn-pill { cursor: pointer; }
.remodal:focus-visible { outline: none; } /* 開いた時にモーダル本体へ当たるフォーカス枠（赤線）を出さない */
/* 表内リンク（会社概要の関連リンク等）：現行サイト同様の黒文字＋下線でリンクと分かるように */
.remodal td a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .3s; }
.remodal td a:hover { color: var(--accent); }
/* お知らせモーダル */
.news-modal { text-align: left; }
.news-modal__meta { margin-bottom: 8px; }
.news-modal__date { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; color: #777; }
.news-modal .news-modal__title { font-size: 20px; line-height: 1.5; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #ddd; text-wrap: pretty; }
.news-modal__body { font-size: 15px; line-height: 1.9; margin-bottom: 28px; }
.news-modal__body p { margin: 0 0 1em; }
.news-modal__body a { text-decoration: underline; }
.news-modal .btn-pill { display: flex; width: fit-content; margin-inline: auto; }

/* ---------- Instagram（SnapWidget 埋め込み時） ----------
   .news__insta に --widget を付け、中身を SnapWidget の埋め込み（div）に差し替える。
   高さは中身で決まるので、読み込み前も場所を確保するため 3列×3段=正方形 / SP 2列×3段=2:3 を最低の比率にする */
.news__insta--widget { display: block; }
.news__insta--widget .snapwidget-embed { display: block; aspect-ratio: 1/1; }
@media (max-width: 767.98px) { .news__insta--widget .snapwidget-embed { aspect-ratio: 2/3; } }

/* ---------- レスポンシブ ----------
   ブレイクポイントは現行サイト（Bootstrap 4 ベース）を引き継ぐ：
     1199.98px 以下 … タブレット横（現行：ヘッダーがハンバーガー化、カード 4→3 列）
      991.98px 以下 … SP 版への主な切替（現行：メインビジュアルを SP 画像に、カード 2 列）
      767.98px 以下 … SP 縦（1 列化・見出し縮小など）
      575.98px 以下 … 小さいスマホの最終調整
   各パーツ固有のものは各セクションの直後にも同じ値で記述している。 */
@media (max-width: 1199.98px) {
  .car-card { flex-basis: calc((100% - 36px)/3); max-width: calc((100% - 36px)/3); }
  .maintenance__grid { grid-template-columns: repeat(3,minmax(0,280px)); } /* 列幅を PC と同じ 280px までにして、3 列をセクション中央に寄せる */
}
/* 992〜1199.98px のみ：各セクション上の余白（見出しの上）を PC の 1.2 倍に */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .news { padding-top: 180px; }
  .topics, .lineup, .shop, .ownership, .recruit { padding-top: 90px; }
  .custom .container { padding-top: 180px; }
  .maintenance .container { padding-top: 90px; }
  .calendar { padding-top: 46px; }
}
@media (max-width: 991.98px) {
  .car-card { flex-basis: calc((100% - 18px)/2); max-width: calc((100% - 18px)/2); }
  .maintenance__grid { grid-template-columns: repeat(2,minmax(0,280px)); } /* 列幅を PC と同じ 280px までにして、2 列をセクション中央に寄せる */
}
@media (max-width: 767.98px) {
  /* 文字サイズは現行サイトの SP（991px 以下で適用）に合わせる：
     見出し h2.section-title 9vw / h3.section-title 6.9vw（現行で h3 の TOPICS・CALENDAR）、
     メンテナンス項目名 14px、車種一覧・試乗車一覧ボタン 13px */
  .sec-title, .custom-card__title { font-size: 9vw; }
  .topics .sec-title, .calendar .sec-title { font-size: 6.9vw; }
  .ownership__title { font-size: 5vw; } /* 和文のため英字見出しより小さく（575.98px 以下は 8vw） */
  .maint-item__label { font-size: 14px; font-weight: 400; line-height: 1.3; }
  .lineup__btns .btn-pill { font-size: 13px; font-weight: 600; }
  /* メンテナンス：2 列の各項目（アイコン・線・項目名）を中央揃えに。奇数で最後に 1 つ余る項目は 2 列分使って中央へ */
  .maint-item { align-items: center; text-align: center; }
  .maint-item img { align-self: center; }
  .maint-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .maintenance__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } /* 項目を中央揃えにするので列は画面幅いっぱいに */
  .news { padding-top: 90px; }
  .news__grid { grid-template-columns: 1fr; }
  .calendar__box { gap: 24px; border: 0; padding: 0; } /* 2 か月分は横並びのまま（575.98px 以下で縦並び）。囲みの枠線はなし */
  .news__grid { max-width: 500px; margin: 0 auto; } /* 現行 SP のお知らせ（Facebook）・Instagram と同じく最大 500px で中央 */
  .news__item { row-gap: 6px; column-gap: 10px; padding: 22px 4px; }
  .news__list { max-height: none; overflow: visible; } /* 枠内スクロールがページのスクロールを止めてしまうため、SP は最新 3 件だけを表示 */
  .news__list > li:nth-child(n+4) { display: none; }
  .topics__grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; }
  .custom .container { padding: 90px 16px 72px; }
  /* 店舗情報・CUSTOM CAR / CAMPING CAR・採用情報のカードは横並び（575.98px 以下で縦並び） */
  .shop__grid, .custom__grid, .recruit__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .custom-card__title { font-size: 6vw; } /* 半幅カードに収まるよう 9vw から縮小（575.98px 以下は 9vw） */
  .ownership__links { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .float-banner { width: 200px; }
  .shop__grid, .custom__grid, .recruit__grid { grid-template-columns: 1fr; } /* 店舗情報・CUSTOM CAR / CAMPING CAR・採用情報のカードは縦並び */
  .custom-card__title { font-size: 9vw; }
  .ownership__title { font-size: 8vw; }
  /* コンテナの左右余白（上下余白を個別指定しているセクションも左右だけ揃える） */
  .container { padding: 0 15px; }
  .custom .container, .maintenance .container { padding-left: 15px; padding-right: 15px; }
  /* お知らせ一覧・Instagram：ブラウザ幅の 90% で中央 */
  .news__grid { width: min(90vw, 100%); max-width: none; margin: 0 auto; } /* 狭い端末でもコンテナからはみ出さない */
  /* カーラインアップ：SP ではホバー演出（写真オーバーレイ・影・破線枠の消去）を出さない */
  .car-card__overlay { display: none; }
  .car-card:hover { border-color: rgba(232,0,0,.2); box-shadow: none; }
  .car-card__img, .car-card__name { padding-left: 5px; padding-right: 5px; } /* カード内の左右余白 */
  /* 車種一覧・試乗車一覧ボタン：現行 SP と同じ横並び（間隔 25px・13px・余白 10px 18px・枠 2px）。入りきらない狭い端末のみ折り返す */
  .lineup__btns { gap: 12px 25px; margin-top: 50px; }
  .lineup__btns .btn-pill { padding: 10px 18px; border-width: 2px; line-height: 21px; }
  .lineup__btns .btn-pill svg { width: 13px; height: 13px; }
  .br-sp { display: inline; } /* メンテナンス項目名の改行位置（現行 SP と同じ） */
  /* カレンダー：囲みの枠線をなくす（枠用の内側余白も不要） */
  .calendar__box { grid-template-columns: 1fr; gap: 48px; border: 0; padding: 0; } /* 2 か月分は縦並び */
  .remodal tr { display: flex; flex-wrap: wrap; }
  .remodal th, .remodal td { width: 100%; }
}
