/* ===========================
   トップページ専用 — yamashita風 × 青白
=========================== */

/* ===========================
   ヒーロー — suv-kaitori風 フルスクリーン
=========================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #060e1c; /* 読み込み前のフォールバック */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━
   ⑧ 背景スライド + ケン・バーンズ
━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
  transform: scale(1.0);
  transform-origin: center center;
}

.hero-slide.active {
  opacity: 1;
  animation-name: kenBurns;
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes kenBurns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.14); }
}

/* 光線装飾 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 28%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.04) 70%, transparent);
  transform: skewX(-12deg);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.50) 45%,
    rgba(0,0,0,0.28) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* メインコンテンツ — コンテナごとフェードイン */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 80px 0 120px;
  max-width: 740px;
  animation-name: heroFade;
  animation-duration: 1.2s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

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

.hero-catch {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Yu Mincho', '游明朝', 'YuMincho', 'Noto Serif JP', serif;
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━
   ③ テキストスプリット 各文字
━━━━━━━━━━━━━━━━━━━━━━━━━ */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  animation-name: splitCharIn;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

@keyframes splitCharIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-line {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.hero-en1 {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-en2 {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* スライドドット (□■□) */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,0.45);
  transition: all 0.4s ease;
}

.hero-dot.active {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
}

/* 右サイド (縦書きテキスト) */
.hero-side-r {
  position: absolute;
  right: 48px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.hero-vertical {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 44px; right: 56px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.hero-scroll:hover { opacity: 0.6; }

.hero-scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.65));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.hero-scroll-txt {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━
   ① 車が走るトラックセクション
━━━━━━━━━━━━━━━━━━━━━━━━━ */
.car-track {
  position: relative;
  height: 260px;
  background: #0a0a0a;
  overflow: hidden;
  flex-shrink: 0;
}

.road-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
}

.road-top    { top: 56px; }
.road-bottom { bottom: 44px; }

.road-dashes {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.14) 0px,
    rgba(255,255,255,0.14) 48px,
    transparent 48px,
    transparent 96px
  );
  transform: translateY(-50%);
  animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
  from { background-position:    0px 0; }
  to   { background-position: -96px 0; }
}

.car-wrap {
  position: absolute;
  bottom: 14px;
  left: 0;
  will-change: transform;
  transform: translateX(110vw);
}

.car-svg {
  width: 440px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.55));
}

.car-track::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(to top, rgba(37,99,235,0.05), transparent);
}

/* ===========================
   Aboutドットパターン
=========================== */
.about-section {
  padding: 120px 64px;
  position: relative;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-heading {
  font-family: 'Yu Mincho', '游明朝', 'YuMincho', 'Noto Serif JP', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 2.1;
  max-width: 520px;
}

/* ===========================
   サービスカードスクロール
=========================== */
.services-section {
  background: var(--off-white);
  padding: 96px 0 0;
  overflow: hidden;
}

.services-section .container {
  padding: 0 64px;
}

/* ── 無限マーキーラッパー ── */
.marquee-outer {
  overflow: hidden;
  padding: 28px 0 64px;
  /* 両端をフェードアウト */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
}

/* ── マーキートラック ── */
.service-scroll-track {
  display: flex;
  gap: 0;               /* gap の代わりに margin-right を使用 */
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
}

/* ホバーで一時停止 */
.marquee-outer:hover .service-scroll-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.service-card {
  flex: 0 0 320px;
  margin-right: 20px;   /* gap の代わり (正確な -50% 計算のため) */
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 28px 32px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.13);
  border-color: var(--blue-pale);
}

.service-card-num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.service-card-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card-visual svg {
  width: 120px;
  height: 80px;
}
.service-card-visual img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.service-card-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--blue-mid);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-card-title {
  font-family: 'Yu Mincho', '游明朝', 'YuMincho', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.service-card-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.9;
}

/* スクロールナビボタン */
/* ナビボタンは marquee 化により不要 */

/* ===========================
   実績 (つながり風)
=========================== */
.stats-section {
  background: var(--white);
  padding: 96px 64px;
}

.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 2.1;
  margin-top: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-block {
  background: var(--blue-ghost);
  border-radius: 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.3s;
}

.stat-block:hover { background: var(--blue-pale); }

.stat-num {
  font-family: 'Yu Mincho', '游明朝', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-num sup {
  font-size: 18px;
  font-weight: 400;
  vertical-align: super;
}

.stat-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

/* ===========================
   アクセスプレビュー (ひろがり風)
=========================== */
.access-preview-section {
  background: var(--off-white);
  padding: 96px 64px;
}

.access-map-wrap {
  position: relative;
  padding: 48px;
}

.map-deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.map-deco-tl { top: 0; left: 0; }
.map-deco-br { bottom: 0; right: 0; }

.map-rounded {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
  position: relative;
  z-index: 1;
}

/* Google Maps iframe ラッパー */
.map-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
}

.map-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-top: 24px;
  padding-left: 4px;
  transition: gap 0.3s;
}

.map-link:hover { gap: 18px; }

.map-link span { font-size: 16px; }

/* ===========================
   アニメーション
=========================== */
.anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.anim.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 1024px) {
  .hero-inner { padding: 64px 40px; }
  .about-section { padding: 96px 40px; }
  .services-section .container { padding: 0 40px; }
  .service-scroll-track { padding: 24px 40px 0; }
  .service-nav { padding: 24px 40px 0; }
  .stats-section { padding: 80px 40px; }
  .access-preview-section { padding: 80px 40px; }
}

@media (max-width: 900px) {
  .stats-layout { grid-template-columns: 1fr; gap: 48px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stat-block { padding: 24px 16px; }
  .stat-num { font-size: 30px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 80px 16px 0; }
  .hero-wrap { border-radius: 40px 40px 0 0; }
  .hero-inner { padding: 56px 32px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-side-left { flex-direction: row; justify-content: flex-start; gap: 16px; }
  .hero-side-text { writing-mode: horizontal-tb; transform: none; }
  .hero-side-right { display: none; }
  .hero-title { font-size: 36px; }

  .about-section { padding: 80px 24px; }
  .services-section .container { padding: 0 24px; }
  .service-scroll-track { padding: 24px 24px 0; }
  .service-card { flex: 0 0 280px; }
  .service-nav { padding: 20px 24px 0; }
  .stats-section { padding: 64px 24px; }
  .access-preview-section { padding: 64px 24px; }
  .access-map-wrap { padding: 32px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .service-card { flex: 0 0 260px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
