/* =============================================================
   BESTAGE ランディングページ スタイルシート（Apple風リニューアル版）
   -------------------------------------------------------------
   Apple公式サイト（apple.com/jp）を参考に、
     ・大きく余白をとったタイポグラフィ
     ・すっきりした白／薄グレーの配色
     ・スクロールで要素が浮かび上がる「ディゾルブ」演出
   を取り入れています。

   構成の順番：
     1. カラー・共通変数
     2. リセット・ベース
     3. スクロール演出（ディゾルブ／アイコンのポップ）★今回追加
     4. 共通パーツ（container / ボタン / 見出し / カード）
     5. 各セクションの個別スタイル
     6. レスポンシブ対応
   ============================================================= */


/* =============================================================
   1. カラー・共通変数
   ============================================================= */
:root {
  /* --- 色（Apple風のニュートラルな配色） --- */
  --ink:        #1d1d1f;  /* 基本の文字色（ほぼ黒） */
  --muted:      #6e6e73;  /* 補足テキストのグレー */
  --blue:       #0071e3;  /* アクセント（Appleブルー） */
  --blue-dark:  #0058b8;  /* ボタンのホバー時 */
  --line:       #e3e3e6;  /* 罫線 */
  --bg:         #ffffff;  /* 基本の背景（白） */
  --bg-gray:    #f5f5f7;  /* グレー背景のセクション（Appleのグレー） */
  --navy:       #1d1d1f;  /* 濃色ボタンなど */

  /* --- サイズ --- */
  --container:  1120px;   /* コンテンツの最大幅（PC） */
  --radius:     22px;     /* 角丸（Appleは大きめの角丸） */
  --shadow:     0 18px 50px rgba(0, 0, 0, .10); /* やわらかい影 */

  /* --- アニメーションの緩急（Apple風のなめらかなイージング） --- */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}


/* =============================================================
   2. リセット・ベース
   ============================================================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;      /* ページ内リンクを滑らかにスクロール */
  scroll-padding-top: 72px;     /* 固定ヘッダーに隠れないよう余白を確保 */
  -webkit-font-smoothing: antialiased;   /* 文字をなめらかに */
  text-rendering: optimizeLegibility;
  overflow-x: hidden;           /* 横方向のはみ出し・横スクロールを防ぐ */
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;           /* スマホの右見切れ対策（オフキャンバスメニュー等） */
  color: var(--ink);
  background: var(--bg);
  /* Macでは「SF Pro」、Windowsでも近いフォントを使う */
  font-family: "SF Pro JP", "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  letter-spacing: .01em;
}

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

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

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

/* キーボード操作時のフォーカス表示（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}


/* =============================================================
   3. スクロール演出（ディゾルブ）★今回の目玉
   -------------------------------------------------------------
   HTMLで data-reveal を付けた要素は、最初は
   「透明・少し下・ぼやけた状態」で待機します。
   画面に入ると script.js が .reveal-in クラスを付け、
   本来の位置・くっきりした状態へアニメーションします。
   ＝ ふわっと浮かび上がる “ディゾルブ” 効果になります。
   ============================================================= */

/* 標準の出現（フェード＋少し上へ＋ぼけ→くっきり） */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity   .9s var(--ease),
    transform .9s var(--ease),
    filter    .9s var(--ease);
  will-change: opacity, transform, filter;
}

/* data-reveal="zoom"：画像やアイコン向け。少し拡大しながら出現 */
[data-reveal="zoom"] {
  transform: scale(.92);
  filter: blur(10px);
}

/* 画面に入った時の状態（＝最終形） */
[data-reveal].reveal-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* グループ内の子要素を1つずつ順番に出す（カードやタグの連続表示） */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity   .8s var(--ease),
    transform .8s var(--ease),
    filter    .8s var(--ease);
  will-change: opacity, transform, filter;
}
[data-reveal-stagger] > .reveal-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* アイコンは「ポップ」して出す（小さい状態から弾むように拡大） */
[data-reveal-stagger] > * .icon {
  transform: scale(.4);
  opacity: 0;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .6s ease;
  transition-delay: .15s;   /* カード本体が出た少し後に飛び出す */
}
[data-reveal-stagger] > .reveal-in .icon {
  transform: scale(1);
  opacity: 1;
}

/* アニメーションを控えたい設定の人には演出を無効化（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > *,
  [data-reveal-stagger] > * .icon {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}


/* =============================================================
   3-B. オープニング・プリローダー（steven.com風）★今回追加
   -------------------------------------------------------------
   ・全画面の白い幕を最前面に表示
   ・ロゴ文字が左右から中央へ収束
   ・タグラインが単語ごとに立ち上がる
   ・進捗100%で幕が上へワイプして消える
   ============================================================= */

/* 演出中は本編を動かせないよう、スクロールを固定 */
body.is-loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  /* 完了時に上へワイプ（.is-done で発動） */
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.is-done { transform: translateY(-100%); }

/* 中央のロゴ＋タグライン */
.preloader__center { text-align: center; }

/* --- ロゴ（1文字ずつ左右から収束） --- */
.preloader__wordmark {
  display: flex;
  justify-content: center;
  gap: .02em;
  font-size: clamp(2.6rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  overflow: hidden;          /* 画面外から入る文字を隠す */
  padding: .1em 0;
}
.pl-letter {
  display: inline-block;
  opacity: 0;
  /* data-dir に応じて初期位置を左右にずらす（JSで方向を反映） */
  transform: translateX(var(--from, 0)) translateY(.15em);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.pl-letter[data-dir="left"]  { --from: -.9em; }
.pl-letter[data-dir="right"] { --from:  .9em; }
/* 出現後（.is-in が付くと本来の位置へ収束） */
.preloader.is-in .pl-letter { opacity: 1; transform: none; }

/* --- 筆書き風アンダーライン（ロゴの直後に筆で引かれる） --- */
.pl-sketch {
  display: block;
  width: clamp(180px, 62%, 360px);
  height: auto;
  margin: 8px auto 0;
  overflow: visible;
}
.pl-sketch__path {
  /* pathLength="1" なので、1（全部隠す）→ 0（全部描く）で線が引かれる */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s var(--ease);
}
.pl-sketch__path.is-red  { transition-delay: .70s; }  /* 文字が出そろった頃に赤を描く */
.pl-sketch__path.is-grey { transition-delay: .92s; }  /* 少し遅れてグレーが重なる */
.preloader.is-in .pl-sketch__path { stroke-dashoffset: 0; }

/* --- タグライン（単語ごとに下から立ち上がる） --- */
.preloader__tagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  font-weight: 400;
  overflow: hidden;
}
/* JSが単語を <span class="pl-word"><i>単語</i></span> に包みます */
.pl-word { display: inline-block; overflow: hidden; vertical-align: top; }
.pl-word > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform .8s var(--ease);
}
.preloader.is-in .pl-word > i { transform: none; }

/* --- 左下の進捗カウンター --- */
.preloader__count {
  position: absolute;
  left: clamp(20px, 5vw, 56px);
  bottom: clamp(24px, 6vw, 56px);
  display: flex;
  align-items: flex-start;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
}
.preloader__pct { font-size: .4em; margin-top: .3em; margin-left: .1em; color: var(--muted); }

/* --- 下部の進捗ライン --- */
.preloader__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--line);
}
.preloader__bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--ink);
  /* JSが幅を更新。数値変化をなめらかに補間 */
  transition: width .2s linear;
}

/* 演出を控える設定の人にはプリローダーを一瞬で消す（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
}


/* =============================================================
   4. 共通パーツ
   ============================================================= */

/* --- コンテンツを中央に配置する枠 --- */
.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: 820px; }

/* --- ボタン（Apple風の角丸ピル） --- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 980px;             /* まん丸に近いピル形 */
  font-weight: 500;
  text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.btn--primary { color: #fff; background: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--white { color: var(--ink); background: #fff; }
.btn--white:hover { opacity: .9; }
/* テキストリンク型のボタン（Apple風の「› 詳しく見る」） */
.btn--text { color: var(--blue); padding: 12px 8px; }
.btn--text:hover { text-decoration: underline; }
.btn--lg { padding: 15px 34px; font-size: 1.05rem; }

/* --- セクション共通の余白（Appleは広めにとる） --- */
.section { padding: 110px 0; }
.section--gray { background: var(--bg-gray); }

/* --- セクション見出し --- */
.section__title {
  margin: 0 0 60px;
  color: var(--ink);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: center;
}
.section__title--left { text-align: left; margin-bottom: 20px; }

/* セクション見出しの下に置く説明文（SEO/AI向けの補足テキスト） */
.section__lead {
  max-width: 720px;
  margin: -40px auto 52px;   /* 見出しとの間隔を詰める */
  color: var(--muted);
  font-size: 1.02rem;
  text-align: center;
}

/* --- カードを並べるグリッド --- */
.card-grid { display: grid; gap: 22px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* --- アイコン（絵文字）の共通サイズ --- */
.icon {
  display: inline-block;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 16px;
}


/* =============================================================
   5-0. ヘッダー（Apple風の細い半透明バー）
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);   /* すりガラス効果 */
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 30px; }
.nav__list a {
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink);
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.nav__list a:hover { opacity: 1; }
.header__cta { padding: 8px 18px; font-size: .85rem; }

/* ハンバーガーボタン（スマホでのみ表示） */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}


/* =============================================================
   5-1. ① ヒーロー（中央寄せの大きな見出し＋大画像）
   ============================================================= */
.hero {
  padding: 90px 0 60px;
  background:
    radial-gradient(1200px 500px at 50% -10%, #eef4fb 0%, transparent 70%),
    #fff;
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}
/* 「加速」の部分をグラデーションで強調（Apple風のカラフルな見出し） */
.grad {
  background: linear-gradient(120deg, #0071e3 0%, #42a5f5 40%, #1f8a70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin: 0 0 30px;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
}

/* サービスのタグ */
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.tag {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: #fff;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; }
.hero__note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

/* ヒーロー画像 */
.hero__image { width: 100%; margin-top: 54px; }
.hero__image img {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}


/* =============================================================
   5-2. ② お悩みカード
   ============================================================= */
.problem-card {
  padding: 34px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: .92rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }


/* =============================================================
   5-3. ③ 提供する価値（テキスト＋循環図）
   ============================================================= */
.value__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.value__catch { margin: 0 0 16px; font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.value__desc  { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* 循環図：中央の円のまわりに6項目を円状に配置 */
.cycle {
  position: relative;
  width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  max-width: 100%;
}
.cycle__center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 126px; height: 126px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #1f8a70);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 113, 227, .25);
}
.cycle__item {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  /* 中心から半径135pxの位置へ。--angle を60度ずつ回して6個を等間隔に配置 */
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(-135px)
    rotate(calc(var(--angle) * -1));
}
.cycle__item--1 { --angle:   0deg; }
.cycle__item--2 { --angle:  60deg; }
.cycle__item--3 { --angle: 120deg; }
.cycle__item--4 { --angle: 180deg; }
.cycle__item--5 { --angle: 240deg; }
.cycle__item--6 { --angle: 300deg; }


/* =============================================================
   5-4. ④ 実績・成果
   ============================================================= */
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s var(--ease);
}
.work-card:hover img { transform: scale(1.05); }   /* ホバーで画像をゆっくり拡大 */
.work-card h3 { margin: 20px 22px 6px; font-size: 1.1rem; font-weight: 600; }
.work-card p  { margin: 0 22px 22px; font-size: .9rem; color: var(--muted); }


/* =============================================================
   5-5. ⑤ 選ばれる理由 ／ ⑥ サービス（共通のカード）
   ============================================================= */
.reason-card,
.service-card {
  padding: 36px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reason-card:hover,
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.reason-card h3,
.service-card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; }
.reason-card p,
.service-card p  { margin: 0; font-size: .92rem; color: var(--muted); }


/* =============================================================
   5-6. ⑦ 制作・運用の流れ
   ============================================================= */
.flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 8px; }
.flow__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  flex: 1 1 110px;
  max-width: 130px;
  text-align: center;
}
.flow__item:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 12px; right: -8px;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 400;
}
.flow__num {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}
.flow__label { font-size: .84rem; font-weight: 500; }


/* =============================================================
   5-7. ⑧ お客様の声
   ============================================================= */
.voice-card {
  padding: 32px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.voice-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.voice-card__head img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.voice-card__name { margin: 0; font-weight: 600; }
.voice-card__name span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.voice-card__body { margin: 0; font-size: .92rem; color: var(--muted); }
.voice__more { margin: 40px 0 0; text-align: center; }
.voice__more a { color: var(--blue); font-weight: 500; }
.voice__more a:hover { text-decoration: underline; }


/* =============================================================
   5-8. ⑨ よくある質問（アコーディオン）
   ============================================================= */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 4px;
  font-weight: 500; font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem; font-weight: 300;
  color: var(--blue);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q {
  flex: none;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--blue);
  font-size: .85rem; font-weight: 600;
}
.faq__a { padding: 0 4px 24px 46px; color: var(--muted); }


/* =============================================================
   5-9. ⑩ CTA
   ============================================================= */
.cta {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(66, 165, 245, .35), transparent 70%),
    linear-gradient(135deg, #06213b 0%, #0071e3 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.cta__title { margin: 0 0 18px; font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
.cta__lead  { margin: 0 0 36px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }


/* =============================================================
   5-10. フッター
   ============================================================= */
.footer { background: var(--bg-gray); color: var(--muted); padding: 44px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.logo--footer { color: var(--ink); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { font-size: .88rem; color: var(--muted); transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--ink); }
.footer__area { margin: 0; font-size: .82rem; color: var(--muted); }
.footer__copy { margin: 0 0 0 auto; font-size: .82rem; }

/* --- トップへ戻るボタン --- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(29, 29, 31, .8);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 1.3rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease);
  z-index: 90;
}
.to-top:hover { background: var(--ink); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }


/* =============================================================
   6. レスポンシブ対応
   ============================================================= */

/* ---------- タブレット（〜900px） ---------- */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .card-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .value__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .section__title--left { text-align: center; }
}

/* ---------- スマホ（〜768px） ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section__title { margin-bottom: 36px; }
  .section__lead { margin: -22px auto 34px; font-size: .96rem; }

  /* プリローダーのロゴをスマホ向けに縮小（端で見切れないように） */
  .preloader__wordmark { font-size: clamp(2.2rem, 13vw, 3.6rem); }
  .preloader__tagline { font-size: .95rem; padding-inline: 16px; }

  /* --- ヘッダー：ナビをスライドメニューに --- */
  .header__cta { display: none; }
  .hamburger   { display: block; margin-left: auto; }

  .nav {
    position: fixed;
    top: 60px; right: 0;
    width: min(80%, 320px);
    height: calc(100vh - 60px);
    margin: 0; padding: 24px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .08);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }

  /* ハンバーガー → ×印へ */
  .hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .card-grid--5 { grid-template-columns: 1fr 1fr; }
  .problem-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .hero { padding: 56px 0 40px; }
  .hero__image { margin-top: 40px; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }

  /* 流れ：矢印を消して縦並びに */
  .flow { flex-direction: column; align-items: stretch; gap: 12px; }
  .flow__item {
    flex-direction: row;
    max-width: none;
    justify-content: flex-start;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .flow__item::after { display: none; }
  .flow__num { flex: none; width: 44px; height: 44px; font-size: 1rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin: 0; }
}

/* ---------- 小さめスマホ（〜480px） ---------- */
@media (max-width: 480px) {
  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--5 { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}
