/* ============================================================
   car-dealer template — ダーク&プレミアム
   世界観: 漆黒×シャンパンゴールド。明朝の気品とラテン書体の精密さ。
   ============================================================ */
:root {
  --bg: #0a0a0e;
  --bg2: #0e0e14;
  --surface: #15151d;
  --text: #ece9e2;
  --muted: #a09b8e;
  --gold: #c8a878;
  --gold-bright: #e0c294;
  --line: rgba(255, 255, 255, 0.09);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --latin: "Jost", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 2;
  font-size: 15.5px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; flex-direction: column; gap: 2px; z-index: 102; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-tag {
  font-family: var(--latin);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}
.global-nav { display: flex; align-items: center; gap: 34px; }
.global-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.global-nav a:hover { color: var(--gold-bright); }
.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.global-nav a[aria-current="page"] { color: var(--gold-bright); }
.global-nav .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 26px;
  letter-spacing: 0.2em;
  transition: background 0.4s, color 0.4s;
}
.global-nav .nav-cta:hover { background: var(--gold); color: var(--bg); }
.global-nav .nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.4s, opacity 0.3s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- ヒーロー(トップ) ---------- */
.hero {
  position: relative;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0.25) 45%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 14vh;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--latin);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-label::before { content: ""; width: 48px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.hero-lead {
  color: rgba(236, 233, 226, 0.82);
  font-size: 0.98rem;
  max-width: 560px;
  margin-bottom: 42px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-sign {
  position: absolute;
  right: 40px; bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--latin);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-sign::after {
  content: "";
  width: 1px; height: 70px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  position: relative;
  height: auto;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 110px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.5) 0%, rgba(8, 8, 12, 0.35) 50%, var(--bg) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 56px;
}
.page-hero .en {
  font-family: var(--latin);
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.breadcrumb {
  position: relative;
  z-index: 2;
  font-family: var(--latin);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 28px 0;
}
.breadcrumb a:hover { color: var(--gold); }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(90px, 11vw, 140px) 0; }
.section.alt { background: var(--bg2); }
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--latin);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sec-label::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.55;
  margin-bottom: 26px;
}
.sec-lead { color: var(--muted); max-width: 640px; font-size: 0.95rem; }
.center { text-align: center; }
.center .sec-label { justify-content: center; }
.center .sec-label::before { display: none; }
.center .sec-lead { margin: 0 auto; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  padding: 17px 48px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.45s;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid::before { background: var(--gold-bright); transform: scaleX(1); opacity: 0; transition: opacity 0.4s; }
.btn-solid:hover { color: var(--bg); }
.btn-solid:hover::before { opacity: 1; }

/* ---------- 強みグリッド ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
}
.strength {
  background: var(--bg);
  padding: 54px 38px;
  transition: background 0.5s;
}
.strength:hover { background: var(--surface); }
.strength .num {
  font-family: var(--latin);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
  display: block;
  margin-bottom: 22px;
}
.strength h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 18px;
}
.strength p { color: var(--muted); font-size: 0.9rem; }

/* ---------- 車両カード ---------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 64px;
}
.car-card {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s;
}
.car-card:hover { transform: translateY(-6px); border-color: var(--gold-dim, rgba(200, 168, 120, 0.45)); }
.car-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.car-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.car-card:hover .thumb img { transform: scale(1.06); }
.car-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  padding: 5px 14px;
}
.car-body { padding: 26px 26px 30px; }
.car-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 10px;
}
.car-spec { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 16px; }
.car-price {
  font-family: var(--latin);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}
.car-price small { font-size: 0.72rem; color: var(--muted); font-family: var(--sans); margin-left: 8px; }

/* ---------- フルワイドバナー ---------- */
.banner {
  position: relative;
  padding: clamp(110px, 14vw, 170px) 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.68);
}
.banner .container { position: relative; z-index: 2; }

/* ---------- 2カラム(画像+テキスト) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split.reverse > .split-img { order: 2; }
.split-img { position: relative; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(16px, 16px);
  pointer-events: none;
  opacity: 0.5;
}
.split-body .sec-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.split-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

/* ---------- 特徴リスト ---------- */
.feature-list { margin-top: 28px; }
.feature-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.feature-list li::before {
  content: "—";
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- 料金テーブル ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: 0.92rem;
}
.price-table th, .price-table td {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.price-table thead th {
  font-family: var(--latin);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.price-table td.price {
  font-family: var(--latin);
  font-size: 1.1rem;
  color: var(--gold-bright);
  white-space: nowrap;
}
.price-table td small { color: var(--muted); display: block; font-size: 0.78rem; }
.note { color: var(--muted); font-size: 0.78rem; margin-top: 18px; }

/* ---------- フロー(ながれ) ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 64px;
  counter-reset: flow;
}
.flow-step {
  border-top: 1px solid var(--gold);
  padding-top: 26px;
  counter-increment: flow;
}
.flow-step::before {
  content: "0" counter(flow);
  font-family: var(--latin);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.65;
  display: block;
  margin-bottom: 14px;
}
.flow-step h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.flow-step p { color: var(--muted); font-size: 0.84rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 56px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 40px 26px 0;
  font-size: 0.96rem;
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--gold); font-family: var(--latin); margin-right: 14px; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--latin);
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq .answer { padding: 0 0 28px; color: var(--muted); font-size: 0.9rem; max-width: 720px; }
.faq .answer::before { content: "A."; color: var(--muted); font-family: var(--latin); margin-right: 14px; }

/* ---------- 会社概要テーブル ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: 0.92rem;
}
.company-table th, .company-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.company-table th {
  width: 200px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---------- CTAバンド ---------- */
.cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 9vw, 110px) 0;
  text-align: center;
}
.cta-band .sec-title { margin-bottom: 14px; }
.cta-band .tel {
  font-family: var(--latin);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  display: inline-block;
  margin: 18px 0 6px;
}
.cta-band .hours { color: var(--muted); font-size: 0.82rem; margin-bottom: 36px; }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { max-width: 680px; margin: 56px auto 0; }
.form-row { margin-bottom: 30px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.form-row label .req {
  color: var(--gold);
  font-size: 0.68rem;
  margin-left: 10px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 15px 16px;
  transition: border-color 0.3s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { min-height: 170px; resize: vertical; }
.form-submit { text-align: center; margin-top: 44px; }
.form-note { color: var(--muted); font-size: 0.76rem; text-align: center; margin-top: 18px; }

/* ---------- アクセスパネル ---------- */
.access-panel {
  margin-top: 56px;
  border: 1px solid var(--gold);
  padding: 48px 48px 40px;
  background: var(--surface);
  position: relative;
}
.access-panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200, 168, 120, 0.18);
  pointer-events: none;
}
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.access-item {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.access-item:nth-child(odd) { border-right: 1px solid var(--line); }
.access-item:nth-last-child(-n+2) { border-bottom: none; }
.access-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.access-label::before { content: ""; width: 20px; height: 1px; background: var(--gold); }
.access-value {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}
.access-value a { color: var(--gold-bright); }
.access-value small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.access-map-cta {
  margin-top: 36px;
  text-align: center;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #07070b;
  border-top: 1px solid var(--line);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.footer-tag {
  font-family: var(--latin);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.site-footer address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-head {
  font-family: var(--latin);
  font-size: 0.66rem;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-nav li { margin-bottom: 12px; }
.footer-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-bright); }
.footer-tel {
  font-family: var(--latin);
  font-size: 1.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.footer-hours { color: var(--muted); font-size: 0.8rem; }
.copyright {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 26px 0;
  font-family: var(--latin);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---------- スクロールフェードイン ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* JSが無効でも読めるように */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .global-nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 101;
  }
  body.nav-open .global-nav { transform: translateX(0); }
  .global-nav a { font-size: 1rem; }
  .strength-grid, .car-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > .split-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .scroll-sign { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .hero-inner { padding-bottom: 16vh; }
  .hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.6rem); line-height: 1.45; }
  .hero-lead { font-size: 0.9rem; }
  .flow-grid { grid-template-columns: 1fr; }
  .company-table th { width: 110px; }
  .price-table th, .price-table td { padding: 16px 10px; }
  .access-grid { grid-template-columns: 1fr; }
  .access-item:nth-child(odd) { border-right: none; }
  .access-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .access-item:last-child { border-bottom: none; }
  .access-panel { padding: 30px 20px 28px; }
}
