/* ============================================================
   IMP AI MARKETING LP - style.css
   ブランドカラー：
     ネイビー  #0B1020 / 白 #FFFFFF
     グラデ    #3D6CFF → #8A5CFF（上昇グラデ）
     差し色    #22E6D3（グロー・シアン）
   ============================================================ */

/* ---------- 変数・リセット ---------- */
:root {
  --navy: #0B1020;
  --navy-2: #101736;
  --white: #FFFFFF;
  --blue: #3D6CFF;
  --violet: #8A5CFF;
  --cyan: #22E6D3;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --grad-rise: linear-gradient(35deg, var(--blue) 0%, var(--violet) 60%, var(--cyan) 130%);
  --text-dark: #1A2138;
  --text-light: rgba(255, 255, 255, 0.88);
  --muted-dark: #5A6478;
  --muted-light: rgba(255, 255, 255, 0.6);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(11, 16, 32, 0.1);
  --radius: 20px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Space Grotesk", "Noto Sans JP", sans-serif;
  --header-h: 76px;
  --header-h-min: 60px;

  /* ---- モーション調整用トークン（数値だけで強度を変えられる） ---- */
  --reveal-duration: 0.85s;                      /* リビールの所要時間 */
  --reveal-distance: 28px;                       /* リビールの立ち上がり距離 */
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1); /* リビールのイージング */
  --stagger: 70ms;                               /* カード群の時間差 */
  --progress-height: 3px;                        /* スクロールプログレスバーの太さ */
  --loop-cycle: 6s;                              /* HOW改善ループの一周時間 */
  --parallax-strength: 14px;                     /* ヒーロー背景の視差の振れ幅 */
  --magnet-range: 8;                             /* CTAマグネットの最大移動px（JSが参照） */

  /* ---- 白背景セクションの粒子柄（濃さ・粒度を数値だけで調整） ---- */
  --pattern-opacity: 0.35;  /* CSSドット粒子層の濃さ */
  --pattern-dot-size: 2px;  /* 粒子の大きさ */
  --pattern-dot-gap: 28px;  /* 粒子の間隔 */
  --pattern-glow: 0.26;     /* テクスチャ画像（グロー・輝き）の強さ */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-min) + 16px); }

body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
small { font-size: 0.75em; }

.sp-only { display: inline; }
.pc-only { display: none; }

/* ---------- 共通：コンテナ・セクション ---------- */
.container { width: min(100% - 40px, 1120px); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 820px); }

.section { padding: 88px 0; position: relative; }
.section--light { background: var(--white); color: var(--text-dark); }
.section--dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(138, 92, 255, 0.14), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(61, 108, 255, 0.12), transparent 60%),
    var(--navy);
  color: var(--text-light);
}

/* ============================================================
   白背景セクションの粒子装飾（AIパーティクル柄）
   - 対象は .section--light のみ（ダークセクションには敷かない）
   - 可読性最優先：中央はマスクで抜き、本文(.container)は常に前面
   - 濃さ・粒度は --pattern-* 変数だけで調整できる
   ============================================================ */
.section--light { position: relative; }
.section--light > .container { position: relative; z-index: 1; }

/* 粒子層：blue/violet/cyan の微細ドットを間隔違いで3グリッド重ねる */
.section--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image:
    radial-gradient(circle, var(--blue) calc(var(--pattern-dot-size) / 2), transparent calc(var(--pattern-dot-size) / 2 + 0.6px)),
    radial-gradient(circle, var(--violet) calc(var(--pattern-dot-size) / 2), transparent calc(var(--pattern-dot-size) / 2 + 0.6px)),
    radial-gradient(circle, var(--cyan) calc(var(--pattern-dot-size) / 2), transparent calc(var(--pattern-dot-size) / 2 + 0.6px));
  background-size:
    var(--pattern-dot-gap) var(--pattern-dot-gap),
    calc(var(--pattern-dot-gap) * 1.7) calc(var(--pattern-dot-gap) * 1.7),
    calc(var(--pattern-dot-gap) * 2.3) calc(var(--pattern-dot-gap) * 2.3);
  background-position: 0 0, 14px 22px, 7px 9px;
  /* 中央（本文が乗る帯）は薄く、端に向かって濃く */
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, transparent 30%, #000 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, transparent 30%, #000 76%);
}

/* グロー＋輝き層：提供テクスチャを multiply で重ね、白地には色の粒だけを乗せる */
.section--light::after {
  content: "";
  position: absolute;
  inset: -60px 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--pattern-glow);
  mix-blend-mode: multiply;
  background:
    url("images/haikei/bg-glow.jpg") center / 100% 100% no-repeat,
    url("images/haikei/bg-dots.jpg") 0 0 / 900px auto repeat;
  /* リング型マスク：本文が乗る中央は抜き、外周（境界付近）もフェードで馴染ませる */
  -webkit-mask-image: radial-gradient(ellipse 115% 82% at 50% 50%, transparent 30%, #000 58%, #000 78%, transparent 99%);
  mask-image: radial-gradient(ellipse 115% 82% at 50% 50%, transparent 30%, #000 58%, #000 78%, transparent 99%);
  /* AIらしい「漂い」：ごくゆっくり上下にドリフト（GPU合成） */
  animation: patternDrift 50s ease-in-out infinite alternate;
}
@keyframes patternDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, 36px, 0); }
}

.section-head { text-align: center; margin-bottom: 64px; }

/* 英語セクションラベル */
.section-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: var(--grad-rise);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 14px;
}
.section-label::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--grad);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(26px, 5.6vw, 46px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.035em;
}
.section-lead {
  margin-top: 20px;
  font-size: clamp(14px, 3.6vw, 16px);
  color: var(--muted-dark);
}
.section--dark .section-lead { color: var(--muted-light); }
.section--dark .section-lead strong { color: var(--cyan); font-weight: 700; }

/* 要確認プレースホルダの目印 */
.placeholder-num {
  color: var(--cyan);
  font-family: var(--font-en);
  font-weight: 700;
  border-bottom: 1px dashed currentColor;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn--lg { padding: 19px 40px; font-size: 16px; }
.btn--primary {
  color: #fff;
  background: var(--grad);
  /* ホバーでグラデ位置がシフトする「生きた質感」 */
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 24px rgba(61, 108, 255, 0.35), 0 2px 8px rgba(138, 92, 255, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(61, 108, 255, 0.45), 0 0 24px rgba(34, 230, 211, 0.25);
}
/* マグネティック追従中は transform をJSが制御するため transition を短く */
.btn.is-magnet { transition: transform 0.15s ease-out, box-shadow 0.25s ease, background-position 0.5s ease; }
.btn--ghost {
  color: inherit;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.9;
}
.btn--ghost:hover { transform: translateY(-2px); opacity: 1; }
.btn__arrow { font-family: var(--font-en); transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background 0.5s var(--reveal-ease),
    box-shadow 0.5s var(--reveal-ease),
    backdrop-filter 0.5s var(--reveal-ease);
}
.header__inner {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height 0.3s ease;
}
/* スクロール時：縮小＋半透明ブラー */
.header.is-scrolled {
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-light), 0 8px 30px rgba(0, 0, 0, 0.25);
}
.header.is-scrolled .header__inner { height: var(--header-h-min); }

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
/* ロゴは濃紺文字のため、白の角丸チップに載せて視認性を確保する */
.header__logo img {
  display: block;
  height: 42px;
  width: auto;
  background: #fff;
  padding: 7px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  transition: height 0.3s ease;
}
.header.is-scrolled .header__logo img { height: 36px; }

.gnav { display: none; }
.gnav__list { display: flex; gap: 30px; }
.gnav__list a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.gnav__list a:hover { color: var(--cyan); }
/* 現在地ハイライト（IntersectionObserverが .is-active を付与） */
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-rise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--reveal-ease);
}
.gnav__list a.is-active { color: #fff; }
.gnav__list a.is-active::after { transform: scaleX(1); }

.header__cta { display: none; padding: 12px 24px; font-size: 14px; }

/* ハンバーガー */
.menu-btn {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
}
.menu-btn span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* スマホメニュー */
.sp-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  background: rgba(11, 16, 32, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  padding: 12px 24px 28px;
  display: none;
}
.sp-menu.is-open { display: block; }
.sp-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-light);
}
.sp-menu__cta {
  margin-top: 18px;
  text-align: center;
  background: var(--grad);
  border-radius: 999px;
  border-bottom: 0 !important;
  font-weight: 700;
}

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: var(--text-light);
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 96px;
}

/* 背景：極細グリッド＋オーロラ
   （JSがマウス位置から --mx/--my を更新し、ごく僅かに視差で応答する） */
.hero__bg {
  position: absolute;
  inset: -20px; /* 視差で動いても縁が見えないよう少し拡張 */
  pointer-events: none;
  transform: translate(
    calc(var(--mx, 0) * var(--parallax-strength)),
    calc(var(--my, 0) * var(--parallax-strength)));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}
/* blurフィルタは重いため、radial-gradientの柔らかい円で発光を表現する */
.hero__aurora {
  position: absolute;
  width: 56vw; height: 56vw;
  min-width: 420px; min-height: 420px;
  max-width: 760px; max-height: 760px;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
  animation: aurora 14s ease-in-out infinite alternate;
}
.hero__aurora--1 { background: radial-gradient(circle, rgba(61, 108, 255, 0.5) 0%, rgba(61, 108, 255, 0.18) 45%, transparent 70%); top: -20%; left: -12%; }
.hero__aurora--2 { background: radial-gradient(circle, rgba(138, 92, 255, 0.42) 0%, rgba(138, 92, 255, 0.16) 45%, transparent 70%); bottom: -25%; right: -10%; animation-delay: -5s; }
.hero__aurora--3 { background: radial-gradient(circle, rgba(34, 230, 211, 0.18) 0%, rgba(34, 230, 211, 0.06) 45%, transparent 70%); top: 30%; left: 50%; animation-delay: -9s; }

@keyframes aurora {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, -8%) scale(1.15); }
}

.hero__inner { position: relative; z-index: 1; width: min(100% - 40px, 920px); }
.hero__inner--fv { width: min(100% - 28px, 1200px); }

/* スクリーンリーダー専用テキスト（見出しは画像内にあるため） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* FVキービジュアル */
.hero__fv {
  display: block;
  border-radius: clamp(12px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(61, 108, 255, 0.22),
    0 0 120px rgba(138, 92, 255, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hero__fv:hover {
  transform: translateY(-5px);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(61, 108, 255, 0.32),
    0 0 140px rgba(34, 230, 211, 0.14);
}
.hero__fv img { width: 100%; height: auto; display: block; }

/* FVの登場演出：画像 → CTA → バッジ の順に立ち上げ、最初の3秒を作る */
.reveal-fv {
  animation: fvIn 0.9s var(--reveal-ease) 0.1s both;
}
.hero__seq { animation: fvIn 0.8s var(--reveal-ease) both; }
.hero__seq--1 { animation-delay: 0.45s; }
.hero__seq--2 { animation-delay: 0.65s; }
@keyframes fvIn {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__badges {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero__badges li {
  font-size: 12.5px;
  color: var(--muted-light);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 18px;
}
.hero__badges strong { color: var(--cyan); font-weight: 700; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll span {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ブランドムービー（ヒーロー直下）
   ============================================================ */
.movie {
  background: var(--navy);
  padding: 8px 0 84px;
}
.movie__inner { text-align: center; }
.movie__frame {
  position: relative;
  margin-top: 8px;
  border-radius: clamp(12px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(61, 108, 255, 0.22),
    0 0 120px rgba(138, 92, 255, 0.12);
}
.movie__frame video { width: 100%; height: auto; display: block; }

/* 音声ON/OFFボタン（動画右下のオーバーレイ） */
.movie__sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.movie__sound:hover {
  background: rgba(61, 108, 255, 0.55);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(34, 230, 211, 0.3);
}
.movie__sound svg { width: 22px; height: 22px; }
/* aria-pressed でアイコンを切り替え */
.movie__sound .movie__icon-on { display: none; }
.movie__sound[aria-pressed="true"] .movie__icon-on { display: block; }
.movie__sound[aria-pressed="true"] .movie__icon-off { display: none; }
/* 音声ON中はシアンの輪で状態を明示 */
.movie__sound[aria-pressed="true"] {
  border-color: rgba(34, 230, 211, 0.7);
  box-shadow: 0 0 16px rgba(34, 230, 211, 0.35);
}

@media (max-width: 600px) {
  .movie { padding: 0 0 60px; }
  .movie__sound { right: 10px; bottom: 10px; width: 42px; height: 42px; }
}

/* ============================================================
   WHY（課題提起）── デザイン画像を丸ごと表示するセクション
   ============================================================ */
.section-visual {
  /* 画像読み込み中の白フラッシュを防ぐため、画像上部と同系のネイビーを敷く */
  background: var(--navy);
  line-height: 0;
}
.section-visual__img { width: 100%; height: auto; display: block; }

/* ============================================================
   無限マーキー（画像帯が自動で左へ流れ続ける）
   速度・高さ・間隔は下の3変数だけで調整できる
   ============================================================ */
.marquee {
  --marquee-duration: 48s;   /* 1ループの時間。大きいほどゆっくり */
  --marquee-height: 220px;   /* 画像の高さ */
  --marquee-gap: 16px;       /* 画像同士の間隔 */
  overflow: hidden;
  background: var(--navy);
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
/* トラック2本を横に連結する外枠 */
.marquee__viewport {
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
}
.marquee__track {
  display: flex;
  gap: var(--marquee-gap);
  margin: 0; padding: 0; list-style: none;
  will-change: transform;
  animation: marqueeScroll var(--marquee-duration) linear infinite;
}
.marquee__item img {
  height: var(--marquee-height);
  width: auto;
  aspect-ratio: 3 / 2;       /* 実画像の縦横比が違っても帯が揃うよう固定 */
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05); /* 読み込み中のスケルトン */
}
/* 縦型バリエーション：画像を縦長で見せる。
   9:16 は実画像（スマホモックアップ）の縦横比。クロップせず全体を表示する。
   速度・間隔・挙動は横型と共通（--marquee-* を共有） */
.marquee--portrait { --marquee-height: 320px; }
.marquee--portrait .marquee__item img { aspect-ratio: 9 / 16; }

/* ホバーで一時停止（2本とも止める） */
.marquee:hover .marquee__track { animation-play-state: paused; }
/* トラック1本ぶん＋gap だけ動かすと、複製トラックが元の位置に重なり継ぎ目が消える */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--marquee-gap))); }
}
/* モバイル：小さめ・気持ち速め */
@media (max-width: 600px) {
  .marquee { --marquee-height: 140px; --marquee-gap: 10px; --marquee-duration: 34s; padding: 20px 0; }
  .marquee--portrait { --marquee-height: 210px; }
}
/* モーション配慮：自動再生を止め、手動の横スクロールで見られるようにする */
@media (prefers-reduced-motion: reduce) {
  .marquee__viewport { overflow-x: auto; width: auto; }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* ============================================================
   COMPARISON（比較表）
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  /* 注意: ここに overflow:hidden を入れると行見出しの sticky が効かなくなる。
     角丸のクリップは親 .table-wrap が担う */
}
.compare-table th, .compare-table td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}
.compare-table tbody th {
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-light);
  white-space: nowrap;
}
.compare-table small { display: block; font-size: 11px; color: var(--muted-light); margin-top: 4px; font-weight: 400; }

/* 当社列の強調 */
.compare-table .is-ours {
  background: linear-gradient(180deg, rgba(61, 108, 255, 0.16), rgba(138, 92, 255, 0.14));
  border-left: 1px solid rgba(61, 108, 255, 0.4);
  border-right: 1px solid rgba(138, 92, 255, 0.4);
}
.compare-table thead .is-ours { background: var(--grad); color: #fff; }
.compare-table__brand { font-family: var(--font-en); letter-spacing: 0.04em; font-size: 13px; }
.compare-table .is-ours small { color: rgba(255, 255, 255, 0.75); }

.mark { font-weight: 900; font-size: 18px; line-height: 1; display: inline-block; }
.mark--best { color: var(--cyan); font-size: 22px; text-shadow: 0 0 14px rgba(34, 230, 211, 0.6); }
.mark--ok { color: rgba(255, 255, 255, 0.85); }
.mark--tri { color: rgba(255, 255, 255, 0.5); }
.mark--ng { color: rgba(255, 255, 255, 0.3); }

/* スワイプ誘導（表が画面に収まらない幅でのみ表示） */
.table-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  color: var(--muted-light);
  margin: -28px 0 16px;
}

/* モバイル・タブレット：行見出しを固定し、スワイプしても項目名が見えるようにする */
@media (max-width: 1024px) {
  .table-hint { display: block; }
  .compare-table { min-width: 560px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .compare-table thead th { font-size: 11.5px; }
  .compare-table small { font-size: 10px; }
  /* 行見出し（1列目）を左に固定。下が透けないよう不透明ネイビーを敷く */
  .compare-table tbody th,
  .compare-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #141931; /* セクション背景＋表の半透明白を合成した近似色 */
    white-space: normal;
    min-width: 100px;
    max-width: 128px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 1px 0 0 var(--border-light);
  }
}

/* ============================================================
   CTA帯（反復ブロック）
   ============================================================ */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(34, 230, 211, 0.1), transparent 60%),
    linear-gradient(120deg, #14204e 0%, #2a2360 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.cta-band__copy { font-size: clamp(16px, 4.4vw, 21px); font-weight: 700; margin-bottom: 24px; }
.cta-band__note { margin-top: 16px; font-size: 12px; color: var(--muted-light); }

/* ============================================================
   WHAT WE DO（8本柱カード）
   ============================================================ */
.value-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.value-card {
  position: relative;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(11, 16, 32, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* ホバーで浮上＋上辺にグラデの光が走る＋アイコンが点灯する */
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-rise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--reveal-ease);
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 108, 255, 0.4);
  box-shadow: 0 18px 40px rgba(61, 108, 255, 0.16), 0 0 0 4px rgba(34, 230, 211, 0.07);
}
.value-card__icon {
  width: 52px; height: 52px;
  display: grid; place-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61, 108, 255, 0.12), rgba(138, 92, 255, 0.12));
  color: var(--blue);
  margin-bottom: 18px;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.value-card:hover .value-card__icon {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 108, 255, 0.35);
}
.value-card__icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--muted-dark); }
.value-card p a { color: var(--blue); font-weight: 700; }

/* LLMOカード（差別化）だけ特別扱い */
.value-card--feature {
  background: linear-gradient(150deg, #0e1430, #1a1640);
  border-color: rgba(138, 92, 255, 0.45);
  color: var(--text-light);
}
.value-card--feature p { color: var(--muted-light); }
.value-card--feature p a { color: var(--cyan); }
.value-card--feature .value-card__icon { background: var(--grad); color: #fff; }
.value-card__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 0 18px rgba(34, 230, 211, 0.5);
}

/* ============================================================
   HOW IT WORKS（改善ループ3ステップ）
   ============================================================ */
.how-steps { display: grid; gap: 20px; counter-reset: step; }
.how-step {
  position: relative;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(11, 16, 32, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-step:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 16, 32, 0.1); }

/* 「計測→提案→実装」が回り続ける演出：
   セクション進入後（.is-live付与後）、発光がSTEP1→2→3の順に巡回する */
.how-steps.is-live .how-step {
  animation: stepPulse var(--loop-cycle) ease-in-out infinite;
}
.how-steps.is-live .how-step:nth-child(2) { animation-delay: calc(var(--loop-cycle) / 3); }
.how-steps.is-live .how-step:nth-child(3) { animation-delay: calc(var(--loop-cycle) / 3 * 2); }
@keyframes stepPulse {
  0%, 30%, 100% {
    border-color: var(--border-dark);
    box-shadow: 0 2px 10px rgba(11, 16, 32, 0.04);
  }
  10% {
    border-color: rgba(34, 230, 211, 0.55);
    box-shadow: 0 12px 34px rgba(61, 108, 255, 0.2), 0 0 0 2px rgba(34, 230, 211, 0.25);
  }
}
/* ステップ間を流れる矢印（PC/タブレットの横並び時のみ） */
@media (min-width: 601px) {
  .how-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    color: var(--cyan);
    animation: flowArrow 1.6s ease-in-out infinite;
  }
}
@keyframes flowArrow {
  0%, 100% { opacity: 0.35; transform: translateY(-50%) translateX(-3px); }
  50% { opacity: 1; transform: translateY(-50%) translateX(3px); }
}
.how-step__num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 5px 14px;
  display: inline-block;
}
.how-step__icon {
  width: 52px; height: 52px;
  display: grid; place-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61, 108, 255, 0.12), rgba(34, 230, 211, 0.12));
  color: var(--blue);
  margin: 18px 0 14px;
}
.how-step__icon svg { width: 26px; height: 26px; }
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.how-step p { font-size: 14px; color: var(--muted-dark); }
.how-step p strong {
  color: var(--text-dark);
  background: linear-gradient(transparent 68%, rgba(34, 230, 211, 0.35) 68%);
}

.how-note {
  margin-top: 40px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(14px, 4vw, 17px);
  color: var(--text-dark);
}

/* ============================================================
   PROCESS（制作・運用フロー）
   ============================================================ */
.process-list { display: grid; gap: 18px; }
.process-item {
  display: flex;
  gap: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 26px 24px;
}
.process-item__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  background: var(--grad-rise);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  padding-top: 2px;
}
.process-item__body { flex: 1; }
.process-item h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.process-item__roles { display: grid; gap: 10px; }
.role { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.role span {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 10px;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.role--client span { background: rgba(255, 255, 255, 0.12); color: var(--text-light); }
.role--us span { background: var(--grad); color: #fff; }
.role p { color: var(--muted-light); line-height: 1.7; }

/* ============================================================
   VALUE（定性メリット）
   ============================================================ */
.merit-grid { display: grid; gap: 20px; }
.merit-card {
  text-align: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 40px 28px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(11, 16, 32, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.merit-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(61, 108, 255, 0.14); }
.merit-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 108, 255, 0.3);
}
.merit-card__icon svg { width: 30px; height: 30px; }
.merit-card h3 { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 12px; }
.merit-card p { font-size: 14px; color: var(--muted-dark); text-align: left; }

/* ============================================================
   VOICE（お客様の声）
   ============================================================ */
.section--voice { background: #F4F6FB; }
.voice-grid { display: grid; gap: 20px; }
/* デザイン済みカード画像は情報量が多いため、1列の大判で読みやすく見せる */
.voice-grid.voice-grid--visual {
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 880px;
  margin-inline: auto;
}
.voice-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 16, 32, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voice-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(61, 108, 255, 0.14);
}
.voice-visual img { width: 100%; height: auto; display: block; }
.voice-note { margin-top: 24px; text-align: center; font-size: 11.5px; color: var(--muted-dark); }

/* ============================================================
   IMPからのお約束（ブランドメッセージ）
   ============================================================ */
.promise-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-dark);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.promise-body {
  text-align: center;
  font-size: 15px;
  line-height: 2.2;
  color: var(--muted-dark);
}
.promise-body p + p { margin-top: 1.2em; }
.promise-block + .promise-block { margin-top: 56px; }
.promise-body strong {
  color: var(--text-dark);
  font-weight: 700;
  background: linear-gradient(transparent 70%, rgba(34, 230, 211, 0.3) 70%);
  padding: 0 2px;
}

/* ミッションステートメント（冒頭の一番大事な一文） */
.promise-statement {
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 700;
  line-height: 2.1;
  color: var(--text-dark);
}
.promise-statement strong {
  font-size: 1.15em;
  background: linear-gradient(transparent 68%, rgba(34, 230, 211, 0.35) 68%);
}

/* 小見出し：上に短いグラデバーを立てる */
.promise-subtitle {
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 900;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.promise-subtitle::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 2px;
  background: var(--grad-rise);
}

/* 提供領域チップ（明るいセクション用） */
.promise-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.promise-services li {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  background: #F4F6FB;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 8px 18px;
  line-height: 1.6;
}

/* 締め：署名とCTA */
.promise-block--closing { margin-top: 72px; }
.promise-sign {
  margin: 36px 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-dark);
}

/* ============================================================
   PRICING（料金プラン）
   ============================================================ */
.pricing-grid { display: grid; gap: 24px; align-items: stretch; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 40px 30px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card__name {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.pricing-card__desc { font-size: 13px; color: var(--muted-light); margin-top: 6px; }
.pricing-card__price { margin: 22px 0; color: #fff; }
.pricing-card__amount {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 34px;
  color: var(--cyan);
  letter-spacing: 0.01em;
}
.pricing-card__price small { color: var(--muted-light); margin-left: 4px; }
.pricing-card__list { flex: 1; display: grid; gap: 10px; margin-bottom: 28px; }
.pricing-card__list li {
  font-size: 13.5px;
  padding-left: 26px;
  position: relative;
  line-height: 1.7;
}
.pricing-card__list li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}
.pricing-card__list .is-on { color: var(--text-light); }
.pricing-card__list .is-on::before { content: "✓"; color: var(--cyan); }
.pricing-card__list .is-off { color: rgba(255, 255, 255, 0.3); }
.pricing-card__list .is-off::before { content: "—"; color: rgba(255, 255, 255, 0.25); }
.pricing-card__btn { width: 100%; }

/* 中央（GROWTH）の強調：縁をグラデの光がゆっくり流れ続ける */
.pricing-card--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(20, 26, 54, 0.95), rgba(20, 26, 54, 0.95)) padding-box,
    linear-gradient(110deg, var(--blue), var(--violet), var(--cyan), var(--violet), var(--blue)) border-box;
  background-size: auto, 320% 100%;
  background-position: 0 0, 0% 50%;
  box-shadow: 0 20px 50px rgba(61, 108, 255, 0.25), 0 0 40px rgba(138, 92, 255, 0.15);
  animation: borderRun 7s linear infinite;
}
@keyframes borderRun {
  to { background-position: 0 0, 320% 50%; }
}
.pricing-card__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 999px;
  padding: 5px 20px;
  box-shadow: 0 0 20px rgba(34, 230, 211, 0.5);
  white-space: nowrap;
}
.pricing-note { margin-top: 28px; text-align: center; font-size: 11.5px; color: var(--muted-light); }

/* ============================================================
   OPTIONS（チップ）
   ============================================================ */
.section--options { padding-top: 0; }
.option-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.option-chips li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-light);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 10px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.option-chips li:hover {
  border-color: rgba(34, 230, 211, 0.6);
  box-shadow: 0 0 18px rgba(34, 230, 211, 0.18);
  transform: translateY(-2px);
}

/* ============================================================
   FAQ（アコーディオン）
   ============================================================ */
.faq-category {
  font-size: 16px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--blue), var(--violet)) 1;
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(11, 16, 32, 0.04);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  width: 28px; height: 28px;
  display: grid; place-content: center;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
}
.faq-item__icon { margin-left: auto; flex-shrink: 0; position: relative; width: 14px; height: 14px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 14px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0); }

/* 開閉の高さアニメーションは JS（scrollHeight）で制御 */
.faq-item__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-item__body p {
  padding: 0 20px 20px 62px;
  font-size: 13.5px;
  color: var(--muted-dark);
}

/* ============================================================
   CONTACT（最終CTA＋フォーム）
   ============================================================ */
.section--contact {
  background: var(--navy);
  color: var(--text-light);
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(61, 108, 255, 0.18), transparent 65%),
    radial-gradient(600px 400px at 85% 100%, rgba(34, 230, 211, 0.08), transparent 60%);
}
.section--contact .container { position: relative; }
.section-title--contact { color: #fff; }

.contact-form {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  padding: 36px 24px;
  display: grid;
  gap: 22px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 13.5px; font-weight: 700; color: var(--text-light); }
.req {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--violet);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-row select { appearance: none; }
.form-row select option { color: var(--text-dark); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 230, 211, 0.18);
}
.contact-form__submit { width: 100%; margin-top: 6px; }
.contact-form__note { font-size: 11.5px; color: var(--muted-light); text-align: center; }

/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: #070B18;
  color: var(--text-light);
  padding: 64px 0 0;
  border-top: 1px solid var(--border-light);
}
.footer__inner {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__logo img {
  display: block;
  height: 46px;
  width: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.footer__tagline {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-light);
  font-family: var(--font-en);
}
.footer__company { margin-top: 18px; font-size: 12.5px; color: var(--muted-light); line-height: 2; }
.footer__company a {
  color: var(--cyan);
  text-decoration: none;
}
.footer__company a:hover { text-decoration: underline; }
.footer__nav { display: flex; gap: 48px; }
.footer__nav ul { display: grid; gap: 12px; }
.footer__nav a {
  font-size: 13px;
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted-light);
}
.footer__bottom a { color: var(--muted-light); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* ============================================================
   スマホ固定CTAバー
   ============================================================ */
.sp-cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.sp-cta-bar.is-visible { transform: translateY(0); }
.sp-cta-bar__btn { width: 100%; }

/* ============================================================
   チャットボット
   ============================================================ */
/* モバイルは追従CTAバーと重ならないよう上にオフセット */
.chatbot { position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 120; }

/* 起動ボタン */
.chatbot__launcher {
  position: relative;
  width: 60px; height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  display: grid; place-content: center;
  box-shadow: 0 8px 24px rgba(61, 108, 255, 0.45), 0 0 20px rgba(138, 92, 255, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chatbot__launcher:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(61, 108, 255, 0.55), 0 0 26px rgba(34, 230, 211, 0.3);
}
.chatbot__launcher svg { width: 28px; height: 28px; }
.chatbot__launcher-badge {
  position: absolute;
  top: -4px; right: -4px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 0 14px rgba(34, 230, 211, 0.6);
}
/* パネル表示中は起動ボタンを隠す */
.chatbot.is-open .chatbot__launcher { opacity: 0; pointer-events: none; }

/* パネル */
.chatbot__panel {
  position: absolute;
  right: 0; bottom: 0;
  width: min(370px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 100px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(138, 92, 255, 0.14), transparent 60%),
    var(--navy-2);
  color: var(--text-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(61, 108, 255, 0.15);
  transform-origin: bottom right;
  animation: chatOpen 0.28s ease;
}
/* display:flex が UA の [hidden]{display:none} を上書きしてしまうため明示する */
.chatbot__panel[hidden] { display: none; }
@keyframes chatOpen {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ヘッダー */
.chatbot__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--grad);
  color: #fff;
}
.chatbot__avatar {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 7px 9px;
}
.chatbot__head-text { flex: 1; min-width: 0; }
.chatbot__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.chatbot__status { font-size: 11px; opacity: 0.85; display: flex; align-items: center; gap: 5px; }
.chatbot__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 230, 211, 0.8);
}
.chatbot__close {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: grid; place-content: center;
  transition: background 0.2s ease;
}
.chatbot__close:hover { background: rgba(255, 255, 255, 0.26); }
.chatbot__close svg { width: 16px; height: 16px; }

/* ログ */
.chatbot__log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: 16px;
  word-break: break-word;
}
.chat-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 6px;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-msg a { color: var(--cyan); font-weight: 700; }

/* 入力中インジケーター */
.chat-msg--typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.chat-msg--typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* クイックリプライ */
.chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 10px;
}
.chatbot__quick:empty { display: none; }
.chatbot__quick button {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(34, 230, 211, 0.08);
  border: 1px solid rgba(34, 230, 211, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chatbot__quick button:hover { background: rgba(34, 230, 211, 0.18); transform: translateY(-1px); }

/* 入力フォーム */
.chatbot__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}
.chatbot__form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-jp);
  font-size: 16px; /* iOSのズーム防止のため16px以上 */
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.2s ease;
}
.chatbot__form input::placeholder { color: rgba(255, 255, 255, 0.35); }
.chatbot__form input:focus { outline: none; border-color: var(--cyan); }
.chatbot__send {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  display: grid; place-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chatbot__send:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(61, 108, 255, 0.4); }
.chatbot__send svg { width: 20px; height: 20px; }

/* ============================================================
   スクロール出現アニメーション
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  /* カードが並ぶグリッドは少しずつ遅らせる（JSで --i を付与） */
  transition-delay: min(calc(var(--i, 0) * var(--stagger)), 560ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 大判画像のマスク展開（why / llmo）：下から開く */
.img-mask {
  clip-path: inset(12% 5% 12% 5%);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    clip-path 1.2s var(--reveal-ease);
}
.img-mask.is-visible { clip-path: inset(0 0 0 0); }

/* ============================================================
   スクロールプログレスバー（最上部の極細グラデ）
   ============================================================ */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--progress-height);
  z-index: 130;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad-rise);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   モバイルでは演出を軽く（時間差短縮・距離減）
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --stagger: 45ms;
    --reveal-distance: 20px;
    --parallax-strength: 0px; /* 視差はタッチ端末では無効 */
    --pattern-dot-gap: 36px;  /* モバイルは粒子を減らして軽く */
    --pattern-glow: 0.2;
  }
}

/* ============================================================
   モーション配慮
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .img-mask { clip-path: none !important; }
  .hero__bg { transform: none !important; }
  .reveal-fv, .hero__seq { animation: none; opacity: 1; transform: none; }
  .how-steps.is-live .how-step { animation: none; }
  .pricing-card--featured { animation: none; }
  .section--light::after { animation: none; }
}

/* ============================================================
   レスポンシブ：タブレット（601px〜）
   ============================================================ */
@media (min-width: 601px) {
  .section { padding: 110px 0; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .merit-grid { grid-template-columns: repeat(3, 1fr); }
  .voice-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__cta { flex-direction: row; justify-content: center; }
  .contact-form { padding: 48px 44px; }
  .footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; padding-top: 8px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; padding: 20px 40px; }
}

/* ============================================================
   レスポンシブ：PC（1025px〜）
   ============================================================ */
@media (min-width: 1025px) {
  .sp-only { display: none; }
  .pc-only { display: inline; }

  .gnav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-btn, .sp-menu { display: none; }
  .sp-cta-bar { display: none; }
  .chatbot { right: 24px; bottom: 24px; }

  .value-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-card--featured { transform: scale(1.04); }
  .pricing-card--featured:hover { transform: scale(1.04) translateY(-6px); }
  .process-item { padding: 32px 36px; }
  .process-item__roles { grid-template-columns: 1fr 1fr; gap: 16px; }
}
