/* ===== Variables（多デバイス対応） ===== */
:root {
  --color-bg: #0f0f12;
  --color-surface: #18181c;
  --color-surface-elevated: #222228;
  --color-text: #e8e8ec;
  --color-text-muted: #9ca3af;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-accent-muted: rgba(99, 102, 241, 0.15);
  --color-border: #2d2d35;
  --font-heading: "Outfit", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  /* 画面幅に応じてスケール（320px〜480px想定） */
  --spacing-xs: clamp(8px, 2.5vw, 12px);
  --spacing-sm: clamp(12px, 3.5vw, 20px);
  --spacing-md: clamp(16px, 4.5vw, 24px);
  --spacing-lg: clamp(20px, 5.5vw, 32px);
  --header-height: clamp(52px, 14vw, 64px);
  --content-padding: clamp(12px, 4vw, 24px);
}

/* ===== Reset & Base (スマホ表示前提) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 4vw, 16px);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 280px;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Section Images（つなぎ目なし・全デバイス対応） ===== */
.section-img,
.section-img-group {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section-img__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
  object-fit: contain;
  object-position: center top;
}

.section-img-group .section-img__img {
  display: block;
  margin: 0;
  padding: 0;
}

/* 画像つなぎ目の白線・隙間を防ぐ（サブピクセル対策） */
.section-img:not(.hero-with-cta) img,
.section-img-group img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== FV + CTA（画像と被らせて下に配置・足りない分はFV同色で補う） ===== */
.hero-with-cta {
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.hero-with-cta__bg {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
}

/* FV画像下の余白用（背景なし・高さゼロでCTAは画像下部にオーバーレイ） */
.hero-with-cta__bottom {
  min-height: 0;
  height: 0;
  background: transparent;
  width: 100%;
  overflow: hidden;
}

/* FV下部CTA: FV画像の直下に横幅いっぱいで配置（若干上にずらす） */
.hero-with-cta__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  width: 100%;
  max-width: 100%;
  z-index: 2;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  background: transparent;
  animation: ctaFadeInUp 1s ease-out 0.4s both;
}

.hero-with-cta__cta-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
  background: transparent;
}

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

/* ふわふわアニメーション（CTA共通） */
@keyframes ctaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ctaFloatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-with-cta__cta.cta-float {
  animation: ctaFadeInUp 1s ease-out 0.4s both,
             ctaFloat 4s ease-in-out 1.8s infinite;
}

/* 最下部CTA用のふわふわ（中央寄せなし） */
.final-with-cta__cta.cta-float {
  animation: ctaFadeInUp 0.8s ease-out 0.3s both,
             ctaFloatSoft 4s ease-in-out 1.5s infinite;
}

/* 08_アクセス・店舗情報（画像の中にGoogle Mapを配置） */
.access-with-map {
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.access-with-map__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
}

.access-with-map__map {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: calc(20% - 90px);
  top: calc(58% + 25px);
  z-index: 2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.access-with-map__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

/* 最下部セクション + CTAオーバーレイ */
.final-with-cta {
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.final-with-cta__bg {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
}

.final-with-cta__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 2;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  background: transparent;
  animation: ctaFadeInUp 0.8s ease-out 0.3s both;
}

.final-with-cta__cta-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
  background: transparent;
}

/* main（ヘッダーなし） */
main {
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


/* 最適プラン提案（#f6f2e7背景）最適プラン ⇩ CTA の順で重ならない */
.plan-proposal {
  background: #f6f2e7;
  margin: 0;
  padding: clamp(14px, 3.5vw, 28px) clamp(16px, 4vw, 24px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.plan-proposal__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
  opacity: 0;
}

.plan-proposal__img.is-inview {
  animation: planFadeIn 1.2s ease-out forwards;
}

.plan-proposal__cta {
  margin: clamp(16px, 4vw, 32px) 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
  opacity: 0;
}

.plan-proposal__cta.is-inview {
  animation: ctaFadeInUp 0.8s ease-out forwards;
}

.plan-proposal__cta-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  vertical-align: bottom;
  background: transparent;
}

.plan-proposal__cta.cta-float.is-inview {
  animation: ctaFadeInUp 0.8s ease-out forwards,
             ctaFloatSoft 4s ease-in-out 1.8s infinite;
}

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

/* ===== フローティングCTA（01_FVと同じ幅・01_FVスクロール後〜最終CTA前で表示） ===== */
.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 9999;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.floating-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  transform: translateX(-100%);
}

.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.floating-cta.is-visible::after {
  animation: floatingCtaShimmer 2.5s ease-in-out infinite;
}

/* 左から右へキラッと光るアニメーション */
@keyframes floatingCtaShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.floating-cta__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  position: relative;
  z-index: 1;
}

/* 極小画面（320px） */
@media (max-width: 360px) {
  :root {
    --content-padding: 12px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
  }
}
