/* ===================================================
   AI導入支援 LP v2 — Stylesheet (BEM)
   claude.ai Design モックの inline style を BEM 化して集約
   =================================================== */

:root {
  --teal: #41A9A5;
  --teal-dark: #2A7370;
  --teal-pale: #E8F5F4;
  --navy: #1F3A5F;
  --yellow: #F5B942;
  --coral: #F07F5C;
  --text: #2b2b2b;
  --text-sub: #5f6b76;
  --bg: #F5F8F9;
  --card: #ffffff;
  --line: #dde5e8;
  --heading: 'Zen Kaku Gothic New', "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  --maxw: 1160px;
  /* 実測のヘッダー高（アンカーの scroll-margin-top に使用）。
     PC は CTA ボタン、タブレット以下はハンバーガーが高さを決めるためブレークポイントごとに更新する */
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--card);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  /* 日本語は既定で文字間どこでも折り返すため、狭い幅で「スタートで／きます」
     「最初の90／日の進め方」のように語の途中で割れる。auto-phrase は文節境界を
     優先して折り返す（Chrome 119+）。未対応ブラウザでは normal と同じ挙動に
     フォールバックするだけなので、入れて損はない。 */
  word-break: auto-phrase;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

/* ---------- utilities ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.marker {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.eyebrow--teal { color: var(--teal-dark); }

.section-title {
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.4;
  color: var(--navy);
  margin: 10px 0 12px;
}
/* 強調句は分断させない。auto-phrase でも "3段階アプローチ" は引用符に挟まれると
   文節と認識されず「アプ／ローチ」で割れる。
   keep-all は em の直前の改行機会まで潰して横溢れを起こすため、inline-block で
   「入らなければ丸ごと次行へ送る」ようにする。 */
.section-title em { color: var(--teal); font-style: normal; display: inline-block; }

/* 見出し・短い強調文は balance で行長を均す。
   body の auto-phrase は文字数が多い要素では効かないことがあり（Chrome の実装上の制約）、
   balance が実質的な受け皿になる。これが無いと狭い幅で
   「3つの方／法」「たった／一つ」のように語が分断される。 */
.section-title,
.cases__title,
.blog__card-title,
.overview__title,
.plan-card__highlight,
.problem__voice-text,
.solution__details-title,
.solution__why,
.timeline__subtitle {
  text-wrap: balance;
}

.section-lead { color: var(--text-sub); font-size: 15px; margin: 0; }

.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* section scroll offset (sticky header) */
section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  text-align: center;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(0,163,180,0.35); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal); padding: 14px 28px; }
.btn--ghost:hover { background: var(--teal-pale); color: var(--teal-dark); transform: translateY(-2px); }
.btn--small { font-size: 15px; padding: 13px 26px; }
/* nowrap 必須: バッジが狭い幅で「無」「料」と1文字ずつ縦に割れる */
.btn__badge { background: var(--yellow); color: var(--navy); font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* ---------- scroll reveal ---------- */
[data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
[data-anim].is-visible { opacity: 1; transform: none; }

/* ===================================================
   ヘッダー
   =================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header__logo-mark { height: 34px; width: auto; }
.site-header__logo-text { font-family: var(--heading); font-weight: 700; color: var(--navy); font-size: 15px; }
.site-header__nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.site-header__nav-link { color: var(--text); }
.site-header__nav-link:hover { color: var(--teal-dark); }
.site-header__cta { background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 999px; flex-shrink: 0; }
.site-header__cta:hover { background: var(--teal-dark); color: #fff; }
.site-header__menu-btn { display: none; flex: 0 0 40px; flex-direction: column; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.site-header__menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   ヒーロー
   =================================================== */
.hero {
  position: relative; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--teal-pale) 0%, var(--bg) 70%, #fff 100%);
}
/* 背景写真: 吹き出しが引いた直後（3.9s）にフェードイン。旧・左右の hero__figure の代替 */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; animation: heroBgIn 1.4s cubic-bezier(.22,1,.36,1) 3.9s both; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* 中央寄せテキストの可読性を確保する白ベール（濃さはここで調整） */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(227,246,248,0.56) 0%, rgba(245,248,249,0.48) 45%, rgba(255,255,255,0.76) 85%, #fff 100%);
}
.hero__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__inner { position: relative; text-align: center; padding: 76px 24px 56px; min-height: 520px; }
.hero__content { position: relative; z-index: 200; max-width: 720px; margin: 0 auto; }
.hero__badge {
  display: inline-block; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; padding: 6px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(31,58,95,0.25);
  animation: riseIn .5s ease 3.3s both;
}
.hero__lead {
  margin: 20px 0 0; font-size: 18px; font-weight: 700; color: var(--teal-dark);
  -webkit-text-stroke: 7px rgba(255,255,255,0.85); paint-order: stroke fill;
  animation: riseIn .5s ease 3.3s both;
}
.hero__title {
  position: relative; font-family: var(--heading); font-weight: 900;
  font-size: clamp(34px, 7vw, 58px); line-height: 1.3; color: var(--navy); margin: 14px 0;
  -webkit-text-stroke: 10px rgba(255,255,255,0.85); paint-order: stroke fill;
  animation: burst .6s cubic-bezier(.3,1.4,.5,1) 2.6s both;
  /* 日本語は既定で文字間どこでも折り返すため「使える力」が "使える / 力" に分断され、
     黄色マーカーまで2行に割れる。keep-all で折返しを語の境界（HTML 上の半角スペース）
     ＝「AIを」「使える力」「に変える。」の3単位に限定する。
     最長単位「に変える。」は 320px 幅でも約 135px で収まるためオーバーフローしない。 */
  word-break: keep-all;
}
.hero__title-em {
  color: var(--teal);
  background-image: linear-gradient(transparent 72%, var(--yellow) 72%);
  background-repeat: no-repeat; background-size: 0% 100%; padding: 0 8px;
  animation: markerIn .6s ease-out 3.35s both;
}
.hero__desc {
  font-size: 16.5px; color: var(--text-sub); margin: 0 0 30px;
  -webkit-text-stroke: 6px rgba(255,255,255,0.9); paint-order: stroke fill;
  animation: riseIn .5s ease 3.45s both;
}
/* inline-block: 「最適な／順番で」と強調句が2行に割れるのを防ぐ（入らなければ丸ごと次行へ） */
.hero__desc strong { color: var(--navy); display: inline-block; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; animation: riseIn .5s ease 3.45s both; }
.hero__tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; animation: riseIn .5s ease 3.55s both; }
.hero__tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 6px 14px; }
.hero__scroll {
  position: relative; z-index: 200; text-align: center; padding-bottom: 14px; margin-top: -8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: var(--teal-dark);
  animation: riseIn .5s ease 4.3s both;
}
.hero__scroll { animation: riseIn .5s ease 4.3s both, bob 1.8s ease-in-out 4.8s infinite; }

/* ===================================================
   課題（PROBLEM）
   =================================================== */
.problem { padding: 88px 0; background: #fff; }
.problem__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.problem__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.problem__track:hover { animation-play-state: paused; }
.problem__group { display: flex; gap: 18px; padding-right: 18px; }
.problem__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; gap: 16px; align-items: center; width: 350px; flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.problem__card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31,58,95,0.10); }
.problem__card-img { width: 74px; height: 74px; object-fit: contain; flex-shrink: 0; }
.problem__voice-no { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.12em; }
.problem__voice-text { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.problem__conclusion { margin-top: 36px; background: var(--teal-pale); border: 1px solid #BDE6E5; border-radius: 14px; padding: 22px; text-align: center; }
.problem__conclusion p { margin: 0; color: var(--navy); font-size: 16px; font-weight: 700; }
.problem__conclusion-em { color: var(--teal-dark); font-size: 20px; }

/* ===================================================
   解決策（SOLUTION）
   =================================================== */
.solution { padding: 88px 24px; background: var(--bg); }
.overview { margin-bottom: 64px; text-align: center; }
.overview__label { display: block; font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: 0.2em; margin-bottom: 6px; }
.overview__title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 26px; }
.overview__flow { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.overview__phase { flex: 1 1 260px; max-width: 340px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 14px; padding: 24px; text-align: center; }
.overview__phase--2 { border-top-color: var(--teal-dark); }
.overview__phase--3 { border-top-color: var(--navy); }
.overview__phase-no { display: block; font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: 0.15em; }
.overview__phase--2 .overview__phase-no { color: var(--teal-dark); }
.overview__phase--3 .overview__phase-no { color: var(--navy); }
.overview__phase-name { display: block; font-family: var(--heading); font-weight: 700; font-size: 19px; color: var(--navy); margin: 6px 0 2px; }
.overview__phase-role { display: block; font-size: 12.5px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.overview__phase-desc { font-size: 13.5px; color: var(--text-sub); margin: 0; }
.overview__arrow { display: flex; align-items: center; padding: 0 12px; font-size: 26px; color: var(--teal); font-weight: 900; }
.overview__note { font-size: 13.5px; color: var(--text-sub); margin: 20px 0 0; }

.solution__details-head { margin: 0 0 34px; }
.solution__details-title { font-family: var(--heading); font-size: 26px; font-weight: 900; color: var(--navy); margin: 0 0 6px; }
.solution__details-title em { color: var(--teal); font-style: normal; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 59px; top: 16px; bottom: 60px; width: 2px; background: #AAE0DE; }
.timeline__step { display: flex; gap: 26px; margin-bottom: 36px; position: relative; }
.timeline__marker { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 4px; }
.timeline__marker-arrow { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--coral); color: var(--coral); display: flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; margin-bottom: 4px; }
.timeline__marker-label { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: #8a97a0; }
.timeline__marker-num { width: 66px; height: 66px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 900; font-size: 25px; color: var(--teal); box-shadow: 0 4px 12px rgba(0,163,180,0.18); }
.timeline__duration { background: #fff; border: 1px solid #f8d9cd; color: var(--coral); font-size: 12.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.timeline__card { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; box-shadow: 0 4px 16px rgba(31,58,95,0.05); }
.timeline__card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.timeline__title { font-family: var(--heading); font-weight: 900; font-size: 24px; color: var(--navy); margin: 0 0 4px; }
.timeline__subtitle { font-size: 14px; color: var(--teal-dark); font-weight: 700; margin: 0 0 16px; }
.timeline__img { width: 130px; height: auto; flex-shrink: 0; }
.timeline__plans { display: flex; gap: 18px; flex-wrap: wrap; }
.timeline__cols { display: flex; gap: 18px; flex-wrap: wrap; }
.timeline__col { flex: 1 1 260px; }
.timeline__cta { text-align: center; margin-top: 24px; }

.plan-card { flex: 1 1 320px; min-width: 260px; background: var(--bg); border-radius: 14px; padding: 22px 24px; }
.plan-card__title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.plan-card__subtitle { font-size: 13px; color: var(--teal-dark); font-weight: 700; margin: 0 0 14px; }
.plan-card__label { display: block; font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.15em; margin: 14px 0 8px; }
.plan-card__label:first-of-type { margin-top: 0; }
.plan-card__process { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text); }
.plan-card__process li { display: flex; gap: 10px; }
.plan-card__process li span { color: var(--teal); font-weight: 700; flex-shrink: 0; }
.plan-card__deliverables { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--text-sub); }
.plan-card__deliverables li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.plan-card__highlight { font-size: 13.5px; font-weight: 700; color: var(--navy); margin: 16px 0 0; border-top: 1px dashed var(--line); padding-top: 12px; }

.solution__why { text-align: center; font-size: 17px; font-weight: 700; color: var(--navy); margin: 52px 0 0; line-height: 2; }
.solution__why-em { font-family: var(--heading); font-size: 26px; color: var(--teal); }

/* ===================================================
   導入後（BENEFIT）
   =================================================== */
.benefit { padding: 88px 24px; background: #fff; }
.benefit__head { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.benefit__head-text { flex: 1 1 460px; min-width: 300px; }
.benefit__img { flex: 0 1 300px; min-width: 240px; max-width: 340px; height: auto; }
.benefit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.benefit__item { background: var(--bg); border-radius: 14px; padding: 24px; transition: transform .2s; }
.benefit__item:hover { transform: translateY(-4px); }
.benefit__no { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.12em; }
.benefit__title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 6px 0 8px; }
.benefit__text { font-size: 14px; color: var(--text-sub); margin: 0; }
.benefit__text strong { color: var(--teal-dark); }
.benefit__quote { text-align: center; margin: 40px 0 0; font-size: 17px; color: var(--navy); font-weight: 700; }
/* inline-block: 「業務が／変わった」と割れて黄色マーカーまで2行に分断されるのを防ぐ */
.benefit__quote-em { font-size: 20px; display: inline-block; }

/* ===================================================
   強み（STRENGTH）
   =================================================== */
.strength { padding: 88px 24px; background: var(--teal-pale); }
.strength__head { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; margin-bottom: 36px; }
.strength__head-text { flex: 1 1 460px; min-width: 300px; }
.strength__head-text .section-lead { color: #3d4a56; }
.strength__img { flex: 0 1 260px; min-width: 220px; max-width: 300px; height: auto; }
.strength__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.strength__card { background: #fff; border: 1px solid #BDE6E5; border-radius: 14px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.strength__card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31,58,95,0.10); }
.strength__card-no { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.12em; }
.strength__card-title { font-size: 19px; font-weight: 700; color: var(--navy); margin: 8px 0; }
.strength__card-text { font-size: 14px; color: var(--text-sub); margin: 0 0 14px; }
.strength__keywords { display: flex; gap: 8px; flex-wrap: wrap; }
.strength__keywords span { background: var(--teal-pale); color: var(--teal-dark); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.strength__cases-link { text-align: center; margin-top: 32px; }
/* セクション間の「この下に続きがある」合図。ヒーローの .hero__scroll と同じ字面。
   ボタンにすると直下の事例セクションと役割が重なるので、軽い合図に留めている */
.scroll-cue { display: inline-block; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.8; color: var(--teal-dark); }
.scroll-cue:hover { color: var(--teal); }
/* 動き出すのは画面に入ってから（ヒーローと違いページ中ほどにあるため、
   読み込み直後から回しても誰も見ていない）。data-anim の is-visible に乗せる */
[data-anim].is-visible .scroll-cue { animation: cueBob 1.8s ease-in-out infinite; }
/* リンクなので、押そうとした瞬間に上下していると押しにくい。カーソルで止める。
   アニメーションの一括指定より詳細度を上げないと animation-play-state が上書きされる */
[data-anim].is-visible .scroll-cue:hover { animation-play-state: paused; }

/* ===================================================
   導入事例（CASES）
   =================================================== */
.cases { padding: 88px 24px; background: #fff; }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cases__card { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px; color: inherit; transition: transform .2s, box-shadow .2s; }
.cases__card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,58,95,0.12); color: inherit; }
.cases__tag { display: inline-block; background: var(--teal-pale); color: var(--teal-dark); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.cases__title { font-family: var(--heading); font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 14px; line-height: 1.5; }
.cases__metric { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--teal); color: var(--navy); border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: 15px; }
.cases__metric em { color: var(--coral); font-style: normal; }
.cases__text { font-size: 13px; color: var(--text-sub); margin: 14px 0 0; }
.cases__note { color: var(--coral); font-weight: 600; }
/* block 必須: 本文なしのカード（関連事例）だと inline-block では数値バッジと同じ行に回り込む */
.cases__more { display: block; margin-top: 14px; font-weight: 700; color: var(--teal-dark); font-size: 14px; }
.cases__placeholder { border: 2px dashed #B8CECD; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.cases__placeholder p { margin: 0; font-size: 14px; color: var(--text-sub); font-weight: 600; }
/* LP の事例セクション下の相談導線。直後の OFFER が primary を持つので、ここは枠線ボタンで受ける */
.cases__cta { margin-top: 32px; text-align: center; }

/* ===================================================
   オファー（OFFER）
   =================================================== */
.offer { padding: 88px 24px; background: var(--bg); }
.offer__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.offer__price-card { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 56px; box-shadow: 0 4px 16px rgba(31,58,95,0.06); margin-top: 20px; }
.offer__price-label { display: block; font-size: 13px; font-weight: 700; color: var(--teal-dark); letter-spacing: 0.1em; }
/* nowrap 必須: 「¥50,000」と「〜」の間の半角スペースで折り返し、〜 だけ次行に落ちる */
.offer__price { font-family: var(--heading); font-weight: 900; font-size: 46px; color: var(--navy); line-height: 1.2; white-space: nowrap; }
.offer__price span { font-size: 22px; }
.offer__price-note { font-size: 12.5px; color: var(--text-sub); margin: 0; }
.offer__cta { margin-top: 28px; }

/* ===================================================
   導入企業の声（VOICES / 準備中）
   =================================================== */
.voices { padding: 72px 24px; background: #fff; }
.voices__title { margin-bottom: 24px; }
.voices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.voices__card { border: 2px dashed #B8CECD; border-radius: 14px; padding: 26px; background: var(--bg); }
.voices__quote { margin: 0 0 12px; font-size: 14px; color: #8a97a0; line-height: 1.9; }
.voices__meta { font-size: 13px; font-weight: 700; color: #8a97a0; }
.voices__note { margin: 18px 0 0; font-size: 12.5px; color: var(--coral); font-weight: 600; }

/* ===================================================
   ブログ（BLOG）
   =================================================== */
.blog { padding: 88px 24px; background: var(--bg); }
/* VOICES を非表示にすると offer と blog が隣り合い、どちらも --bg なので境目が溶ける。
   voices が出ているときは隣接しないのでこのルールは効かない（WP: lp_base_has_voices()） */
.offer + .blog { background: #fff; }
.blog__head, .cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.blog__more, .cases__head-link { flex-shrink: 0; }
.blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.blog__card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; transition: transform .2s, box-shadow .2s; }
.blog__card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,58,95,0.12); color: inherit; }
.blog__thumb { display: flex; align-items: center; justify-content: center; height: 140px; background: var(--teal-pale); color: #8FCFCD; font-size: 13px; font-weight: 700; }
/* アイキャッチが設定されている記事は画像で埋める。未設定ならプレースホルダ文言のまま */
.blog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog__card-body { padding: 20px 22px; }
.blog__cat { display: inline-block; background: var(--teal-pale); color: var(--teal-dark); font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.blog__card-title { font-size: 15.5px; font-weight: 700; color: var(--navy); margin: 10px 0 6px; line-height: 1.6; }
.blog__card-note { font-size: 12px; color: #8a97a0; margin: 0; }

/* ===================================================
   AI活用度診断（DIAGNOSIS）
   =================================================== */
.diagnosis { padding: 88px 24px; background: var(--teal-pale); }
.diagnosis .container { max-width: 880px; }
.diagnosis__head { text-align: center; margin-bottom: 36px; }
.diagnosis__head .section-lead { color: #3d4a56; margin-left: auto; margin-right: auto; }
.diagnosis__badge { display: inline-block; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 18px; border-radius: 999px; letter-spacing: 0.05em; margin-bottom: 12px; }
.diagnosis__card { background: #fff; border: 1px solid #BDE6E5; border-radius: 16px; max-width: 680px; margin: 0 auto; box-shadow: 0 10px 30px rgba(31,58,95,0.08); overflow: hidden; }
.diagnosis__bar { background: linear-gradient(100deg, var(--teal-dark), var(--teal)); padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.diagnosis__bar-title { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--heading); font-size: 16px; font-weight: 900; }
.diagnosis__dots { display: flex; gap: 5px; align-items: center; }
.diagnosis__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all .25s; }
.diagnosis__dot.is-current { width: 10px; height: 10px; background: #fff; }
.diagnosis__dot.is-answered { background: var(--yellow); }
.diagnosis__qno { color: #fff; font-size: 13px; font-weight: 700; }
.diagnosis__body { padding: 26px 32px 28px; }
.diagnosis__q-title { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 18px; }
.diagnosis__q-anim { animation: slideQ .26s cubic-bezier(.22,.61,.36,1) both; }
.diagnosis__q-anim--back { animation: slideQBack .26s cubic-bezier(.22,.61,.36,1) both; }
/* 設問差し替え中だけ高さを追従させ、カード高のガタつきを抑える */
.diagnosis__question.is-swapping { overflow: hidden; transition: height .26s cubic-bezier(.4,0,.2,1); }
.diagnosis__question.is-leaving { opacity: 0; transform: translateX(-14px); transition: opacity .14s ease-in, transform .14s ease-in, height .26s cubic-bezier(.4,0,.2,1); }
.diagnosis__opts { display: flex; flex-direction: column; gap: 10px; }
.diagnosis__opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 15px; cursor: pointer; background: #fff; font-family: inherit; color: var(--text); line-height: 1.5; transition: background .15s, border-color .15s; width: 100%; }
.diagnosis__opt:hover { border-color: var(--teal); background: var(--teal-pale); }
.diagnosis__opt.is-selected { background: var(--teal-pale); border-color: var(--teal); font-weight: 700; }
.diagnosis__opt-dot { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; border: 2px solid #B8CECD; background: #fff; box-sizing: border-box; transition: border-width .15s ease, border-color .15s ease; }
.diagnosis__opt.is-selected .diagnosis__opt-dot { border: 4px solid var(--teal-dark); }
.diagnosis__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.diagnosis__back { background: none; border: none; color: var(--teal-dark); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.diagnosis__back[disabled] { color: transparent; pointer-events: none; }
.diagnosis__hint { font-size: 12px; color: #8a97a0; }
.diagnosis__noscript { text-align: center; color: var(--text-sub); margin-top: 16px; }

/* 診断結果 */
.diagnosis__result { margin-top: 26px; }
.diagnosis__result-card { background: #fff; border: 1px solid #BDE6E5; border-radius: 16px; padding: 30px 28px; animation: fadeUpSmall .5s ease both; }
.dx-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dx-score { font-family: var(--heading); font-size: 48px; font-weight: 900; color: var(--navy); }
/* 700 なのは Google Fonts から 700/900 しか取っていないため。500 を指定すると
   その 1 要素のためだけにウェイトを 1 つ増やすことになる（フォント CSS が倍近く膨らむ） */
.dx-score small { font-size: 16px; color: var(--text-sub); font-weight: 700; }
.dx-lv { background: var(--teal-pale); color: var(--teal-dark); font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.dx-levels { display: flex; gap: 6px; margin: 16px 0 6px; }
.dx-level { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; padding: 7px 2px; border-radius: 8px; white-space: nowrap; overflow: hidden; background: #edf1f3; color: #8a97a0; }
.dx-level.is-current { background: var(--teal); color: #fff; box-shadow: 0 4px 10px rgba(0,163,180,0.35); }
.dx-msg { font-size: 14px; color: var(--text-sub); margin: 14px 0 22px; }
.dx-axes { display: flex; flex-direction: column; gap: 14px; }
.dx-axis-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.dx-weak { color: var(--coral); font-weight: 700; }
.dx-bar { height: 10px; background: #edf1f3; border-radius: 999px; overflow: hidden; }
.dx-bar-fill { height: 100%; border-radius: 999px; background: var(--teal); animation: growBar .9s cubic-bezier(.22,1,.36,1) .2s both; }
.dx-bar-fill.is-weak { background: var(--coral); }
.dx-advice { background: var(--bg); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.dx-advice-label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.dx-advice p { font-size: 14px; font-weight: 700; color: var(--navy); margin: 4px 0 0; white-space: pre-line; }
.dx-plan { font-size: 14px; color: var(--text); margin: 0 0 14px; }
.dx-plan strong { color: var(--teal-dark); }
.dx-cta { display: block; width: 100%; }
.dx-cta-note { font-size: 12px; color: var(--text-sub); margin: 12px 0 0; text-align: center; }
/* D-5: 弱点軸に対応した回遊リンク（対応表の支給までは JS 側で非表示） */
.dx-links { margin: 22px 0 0; }
.dx-links-title { font-size: 12.5px; font-weight: 700; color: var(--text-sub); margin: 0 0 10px; }
.dx-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.dx-link {
  display: flex; flex-direction: column; gap: 6px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; color: inherit; transition: border-color .2s, transform .2s;
}
.dx-link:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.dx-link__title { font-family: var(--heading); font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.5; }
.dx-link__text { font-size: 12.5px; color: var(--text-sub); }
.dx-link__more { font-size: 12px; font-weight: 700; color: var(--teal-dark); margin-top: auto; }
.dx-retry { display: block; margin: 14px auto 0; background: none; border: none; color: var(--teal-dark); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; text-decoration: underline; }
.dx-recirc { margin-top: 18px; } /* D-5: 対応表支給までは JS 側で非表示 */

/* ===================================================
   FAQ
   =================================================== */
.faq { padding: 88px 24px; background: #fff; }
.faq__inner { max-width: 880px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq__q { font-weight: 700; color: var(--navy); font-size: 15px; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--teal); font-weight: 700; font-size: 20px; line-height: 1; transition: transform .2s; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { margin: 12px 0 0; font-size: 14px; color: var(--text-sub); }
.faq__a strong { color: var(--teal-dark); }

/* ===================================================
   クロージング
   =================================================== */
.closing { padding: 80px 24px; background: linear-gradient(180deg, var(--teal-pale), var(--bg)); }
.closing__inner { max-width: 1000px; margin: 0 auto; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.closing__text { flex: 1 1 460px; min-width: 300px; }
.closing__notes { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }
.closing__notes span { background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 6px 14px; }
.closing__img { flex: 0 1 280px; min-width: 220px; max-width: 320px; height: auto; animation: floaty 5s ease-in-out infinite; }

/* ===================================================
   相談フォーム（CONTACT）
   =================================================== */
.contact { padding: 88px 24px 100px; background: #fff; }
.contact__inner { max-width: 720px; }
.contact__card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; }
.contact__static-notice { background: #FDF3DC; border: 1px solid var(--yellow); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #7a5b12; margin: 0 0 18px; }
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.contact__row { display: flex; gap: 16px; flex-wrap: wrap; }
.contact__label { font-size: 13px; font-weight: 700; color: var(--navy); }
/* flex-basis は .contact__row（横並び）の中でだけ効かせる。フォーム直下は縦並びなので
   basis を付けると「幅 240px」ではなく「高さ 240px」と解釈され、空白が生まれる */
.contact__row > .contact__label { flex: 1 1 240px; }
.contact__req { color: var(--coral); }
.contact__form input, .contact__form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; }
.contact__form textarea { resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,163,180,0.15); }
.contact__submit { width: 100%; }
.contact__sent { text-align: center; font-size: 13px; font-weight: 700; color: var(--teal-dark); margin: 0; }
.contact__recaptcha { font-size: 11.5px; color: #8a97a0; margin: 4px 0 0; text-align: center; }

/* ---------- Contact Form 7（WordPress版）が生成するマークアップの調整 ----------
   静的版のフォームは素の form プレビューなので、以下のセレクタは WP 版でのみ効く。
   CF7 本体の styles.css より後に読み込まれる前提で、詳細度も上回るようにしてある。 */
.contact__form .wpcf7-form-control-wrap { display: block; }
/* CF7 の submit は <input type="submit">。.contact__form input に負けるため詳細度を上げて .btn--primary 相当にする */
.contact__form input.contact__submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,163,180,0.35);
  cursor: pointer;
  transition: transform .2s, background .2s, opacity .2s;
}
.contact__form input.contact__submit:hover { background: var(--teal-dark); transform: translateY(-2px); }
/* スピナーは flex の子として余白を作るので出さず、送信中はボタン側で状態を示す */
.contact__form .wpcf7-spinner { display: none; }
.contact__form[data-status="submitting"] input.contact__submit { opacity: .6; pointer-events: none; }
.contact__form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--coral); }
.contact__form input.wpcf7-not-valid, .contact__form textarea.wpcf7-not-valid { border-color: var(--coral); }
.wpcf7 form.contact__form .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border-width: 1px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}
/* reCAPTCHA v3 のバッジは画面右下に固定表示され LP のデザインに被るため隠す。
   Google の規約上、隠す場合は代替の明示が必要なので .contact__recaptcha の注記文とセット。
   注記を消すならこのルールも外すこと。v1（c647ade）から引き継ぎ。 */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }

/* ===================================================
   フッター
   =================================================== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--text-sub); padding: 56px 24px 90px; }
.site-footer__inner { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer__brand { flex: 1 1 300px; min-width: 260px; }
/* inline のままだとリンク領域が行ボックス幅（ロゴの右 400px 超）まで広がるので shrink-wrap させる */
.site-footer__logo-link { display: inline-block; vertical-align: top; }
.site-footer__logo { height: 36px; width: auto; margin-bottom: 14px; }
.site-footer__tagline { font-size: 13px; margin: 0 0 14px; color: var(--text); }
.site-footer__company { font-size: 12.5px; margin: 0; }
.site-footer__nav { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.site-footer__col-title { font-size: 12px; font-weight: 700; color: var(--teal-dark); letter-spacing: 0.12em; margin-bottom: 2px; }
.site-footer__col a { color: var(--text-sub); }
.site-footer__col a:hover { color: var(--teal-dark); }
.site-footer__bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 12px; color: #8a97a0; }

/* ===================================================
   カルーセル操作 UI（JS 生成・スマホ幅のみ表示）
   =================================================== */
.carousel-nav { display: none; }

/* ===================================================
   スティッキー CTA
   =================================================== */
.sticky-cta { position: fixed; bottom: 18px; left: 0; right: 0; z-index: 400; display: flex; justify-content: center; gap: 10px; padding: 0 16px; pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
/* 相談フォームが表示されている間は退避（JS が付与） */
.sticky-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateY(140%); }
.sticky-cta__btn { pointer-events: auto; font-weight: 700; font-size: 14px; padding: 13px 26px; border-radius: 999px; box-shadow: 0 8px 22px rgba(31,58,95,0.3); transition: transform .2s, background .2s; }
.sticky-cta__btn--primary { background: var(--teal); color: #fff; }
.sticky-cta__btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.sticky-cta__btn--ghost { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal); }
.sticky-cta__btn--ghost:hover { background: var(--teal-pale); transform: translateY(-2px); }

/* ===================================================
   アニメーション
   =================================================== */
@keyframes fadeUpSmall { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes burst { 0% { opacity: 0; transform: scale(.2); } 55% { opacity: 1; transform: scale(1.08); } 75% { transform: scale(.97); } 100% { opacity: 1; transform: scale(1); } }
@keyframes markerIn { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes heroBgIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(6px); opacity: .4; } }
/* セクション間の合図用。上下は bob と同じで、透ける位置だけ逆（上で薄く、下がると濃い）。
   透け幅はヒーロー（.4〜.9）より浅い .85〜1 — 本文と同じ 17px の文字なので、
   ヒーロー並みに透かすと点滅して見えて読みづらい。
   bob 自体を書き換えるとヒーローの SCROLL DOWN も反転してしまうので別に持つ */
@keyframes cueBob { 0%,100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(6px); opacity: 1; } }
@keyframes growBar { from { width: 0 !important; } }
@keyframes slideQ { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes slideQBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
/* ヒーロー吹き出し（JS 生成、per-bubble に inline animation を付与） */
@keyframes popIn2 { 0% { scale: 0; opacity: 0; } 70% { scale: 1.18; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes recede2 { to { opacity: 0; visibility: hidden; } }

/* ===================================================
   レスポンシブ
   =================================================== */
/* --- ~1000px: ヘッダーのナビ間隔を詰める / 3ステップ概要を縦積み --- */
@media (max-width: 1000px) {
  .site-header__inner { gap: 20px; }
  .site-header__nav { gap: 16px; }
  /* 横並びのままだと flex の行分割（3×260px + 矢印2×50px）が収まらず 2+1 に折返して
     カード幅と矢印位置が崩れる。矢印を回転させて縦積みにする */
  .overview__flow { flex-direction: column; align-items: center; }
  .overview__phase { flex: 0 0 auto; width: 100%; max-width: 460px; }
  .overview__arrow { justify-content: center; transform: rotate(90deg); padding: 6px 0; }
}

/* --- ~900px: ヒーロー装飾を落とす --- */
@media (max-width: 900px) {
  .hero__inner { min-height: auto; padding: 56px 24px 40px; }
  /* 幅が縮むほど cover の切り抜きが強くなるので、人物側（右）を残す */
  .hero__bg img { object-position: 72% center; }
}

/* --- ~860px: モバイルメニュー / タイムライン縦積み --- */
@media (max-width: 860px) {
  :root { --header-h: 70px; } /* CTA が消えハンバーガー(40px)が高さを決める */
  .site-header__inner { gap: 14px; }
  .site-header__menu-btn { display: flex; }
  .site-header__cta { display: none; }
  .site-header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31,58,95,0.1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-header__nav.is-open { max-height: 380px; }
  .site-header__nav-link { padding: 14px 24px; border-top: 1px solid var(--line); }
  .timeline::before { display: none; }
  .timeline__step { flex-direction: column; gap: 14px; }
  .timeline__marker { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; }
  .timeline__marker-arrow { margin-bottom: 0; }
}

/* --- ~640px: スマートフォン --- */
@media (max-width: 640px) {
  /* NOTE: padding のショートハンドを使うと .site-header__inner の上下 padding まで
     打ち消してヘッダーが潰れるため、左右のみを longhand で指定する */
  .container { padding-left: 18px; padding-right: 18px; }

  /* 縦の過剰余白を詰める */
  .problem, .solution, .benefit, .strength, .cases, .offer, .voices, .blog, .diagnosis, .faq, .closing, .contact { padding-top: 56px; padding-bottom: 56px; }
  /* 左右の二重パディング解消（内側 .container の余白に一本化） */
  .solution, .benefit, .strength, .cases, .offer, .voices, .blog, .diagnosis, .faq, .closing, .contact, .site-footer { padding-left: 0; padding-right: 0; }
  .contact { padding-bottom: 84px; } /* スティッキーCTA分の余白 */
  .section-head { margin-bottom: 26px; }

  /* ヘッダー: ロゴは横長(約6.7:1)のため、そのままだとハンバーガーを押し出す */
  .site-header__inner { gap: 10px; }
  .site-header__logo { gap: 8px; }
  .site-header__logo-mark { height: 26px; }
  .site-header__logo-text { font-size: 13px; }

  /* ヒーロー */
  /* 横長写真を縦長ヒーローに cover で敷くと人物・モニタが大きく切れるため、スマホでは背景写真を出さない */
  .hero__bg { display: none; }
  .hero__badge { font-size: 12px; padding: 6px 14px; }
  .hero__lead { font-size: 16px; -webkit-text-stroke-width: 5px; }
  /* balance = 折返しを均等割りし「る。」だけ次行に落ちるのを防ぐ */
  .hero__title { font-size: clamp(27px, 8.4vw, 40px); margin: 12px 0; -webkit-text-stroke-width: 6px; text-wrap: balance; }
  .hero__title-em { padding: 0 4px; }
  /* pretty では「中／小企業」と複合名詞が割れる。balance だと語境界で折り返る */
  .hero__desc { font-size: 15px; margin-bottom: 26px; -webkit-text-stroke-width: 4px; text-wrap: balance; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { width: 100%; }
  .hero__tags { gap: 8px; margin-top: 22px; }
  .hero__tag { font-size: 12px; }
  .hero__scroll { margin-top: 0; }

  .btn { font-size: 15px; padding: 15px 22px; }
  .btn--ghost { padding: 13px 20px; }

  /* 課題 */
  .problem__card { width: 300px; padding: 18px; gap: 12px; }
  .problem__card-img { width: 62px; height: 62px; }
  .problem__conclusion { padding: 18px; }
  .problem__conclusion p { font-size: 15px; }
  .problem__conclusion-em { font-size: 18px; }

  /* 解決策 */
  .overview__phase { padding: 20px; }
  .timeline__card { padding: 24px 20px; }
  .timeline__title { font-size: 21px; }
  .timeline__img { width: 104px; }
  .plan-card { padding: 18px; }
  .solution__why { font-size: 15px; margin-top: 40px; }
  .solution__why-em { font-size: 21px; }

  /* 事例・ブログはスマホでは縦積みが長くなりすぎるため横スクロール（スナップ）に切替。
     .container の左右余白ぶんを負マージンで打ち消して画面端まで流し、
     内側 padding で 1枚目を本文の左端に揃える（右に次のカードが覗いてスクロールを示唆） */
  .cases__grid, .blog__grid {
    --cw: clamp(240px, 74vw, 380px); /* 表示中カードの幅 */
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: -18px;
    margin-right: -18px;
    /* 左右の余白 =（画面幅 - カード幅）/ 2。50% は .container のコンテンツ幅基準なので
       全幅化した 18px×2 を足し戻す。これで1枚目・最終枚も画面中央でスナップできる */
    padding-top: 4px;
    padding-bottom: 12px;
    padding-left: calc(50% + 18px - var(--cw) / 2);
    padding-right: calc(50% + 18px - var(--cw) / 2);
    scrollbar-width: none;
  }
  .cases__grid::-webkit-scrollbar, .blog__grid::-webkit-scrollbar { display: none; }
  .cases__card, .cases__placeholder, .blog__card {
    flex: 0 0 var(--cw);
    max-width: none;
    scroll-snap-align: center;
  }
  /* 横スクロール中は hover の浮き上がりを止める（タップ時にガタつくため） */
  .cases__card:hover, .blog__card:hover { transform: none; }
  /* スクロール連動フェードは縦スクロール前提。画面外の3枚目がスワイプ中に
     0.7秒かけて出てくるとチラつくので、カルーセル内は最初から表示する */
  .cases__grid > [data-anim], .blog__grid > [data-anim] { opacity: 1; transform: none; transition: none; }

  /* 前へ / 1 : 3 / 次へ */
  .carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
  .carousel-nav__btn {
    width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: 50%;
    background: var(--teal); color: #fff; font-size: 19px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,163,180,0.28);
    transition: background .2s, opacity .2s, transform .2s;
  }
  .carousel-nav__btn:hover { background: var(--teal-dark); }
  .carousel-nav__btn:active { transform: scale(.94); }
  .carousel-nav__btn:disabled { opacity: .3; box-shadow: none; cursor: default; transform: none; }
  .carousel-nav__counter {
    font-family: var(--heading); font-weight: 700; font-size: 15px; color: var(--navy);
    min-width: 56px; text-align: center; font-variant-numeric: tabular-nums;
  }

  /* min-width 指定（260〜300px）が 320px 幅端末でコンテナを突き破るので解除 */
  .plan-card, .benefit__head-text, .benefit__img, .strength__head-text, .strength__img, .closing__text, .closing__img, .site-footer__brand { min-width: 0; }

  /* カード系の内側余白 */
  .benefit__item { padding: 20px; }
  .strength__card, .voices__card, .cases__card, .cases__placeholder { padding: 22px; }
  .blog__card-body { padding: 16px 18px; }
  .faq__item { padding: 16px 18px; }

  /* オファー */
  .offer__price-card { display: block; padding: 24px 22px; }
  .offer__price { font-size: 36px; }

  /* 診断 */
  .diagnosis__bar { padding: 13px 18px; }
  .diagnosis__bar-title { font-size: 15px; }
  .diagnosis__body { padding: 22px 18px; }
  .diagnosis__q-title { font-size: 17px; }
  .diagnosis__opt { padding: 13px 14px; font-size: 14.5px; }
  .diagnosis__result-card { padding: 24px 18px; }
  .dx-score { font-size: 38px; }
  /* 1列 約55px しかないので nowrap だと「Lv.1 これから期」が切れる → 2行に折返す */
  .dx-level { font-size: 9.5px; padding: 6px 2px; letter-spacing: -0.02em; white-space: normal; line-height: 1.3; }

  /* フォーム: iOS Safari はフォントが 16px 未満だとフォーカス時にズームする */
  .contact__card { padding: 22px 18px; }
  .contact__form input, .contact__form textarea { font-size: 16px; }

  /* フッター */
  .site-footer__inner { gap: 32px; }
  .site-footer__nav { gap: 28px 32px; }

  .sticky-cta { gap: 8px; padding: 0 12px; }
  .sticky-cta__btn { flex: 0 1 auto; padding: 11px 18px; font-size: 13px; }
}

/* --- ~380px: 小型スマートフォン --- */
@media (max-width: 380px) {
  .site-header__logo-mark { height: 22px; }
  .site-header__logo-text { font-size: 12px; }
  .problem__card { width: 264px; }
  .dx-level { font-size: 9px; padding: 6px 1px; }
  .sticky-cta__btn { padding: 11px 14px; font-size: 12.5px; }
}

/* ===================================================
   モーション低減
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .hero__bubbles { display: none; }
}

/* ===================================================
   下層ページ（導入事例 / ブログ）
   index.html と同じヘッダー・フッター・sticky-cta を共有し、
   カード類（.cases__* / .blog__*）も LP のものを再利用する。
   =================================================== */

/* ---------- パンくず ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-sub); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--teal-dark); text-decoration: underline; }
.breadcrumb__sep { color: #B8CECD; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 700; }

/* 現在地のナビ項目 */
.site-header__nav-link.is-current { color: var(--teal-dark); position: relative; }
.site-header__nav-link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); border-radius: 2px; }

/* ---------- 下層ページ共通ヒーロー ---------- */
.page-hero { padding: 40px 24px 48px; background: linear-gradient(180deg, var(--teal-pale) 0%, var(--bg) 100%); }
.page-hero__title {
  font-family: var(--heading); font-weight: 900; font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.35; color: var(--navy); margin: 8px 0 14px; text-wrap: balance;
}
.page-hero__title em { color: var(--teal); font-style: normal; display: inline-block; }
.page-hero__lead { color: var(--text-sub); font-size: 15.5px; margin: 0; }
.page-hero__note {
  display: inline-block; margin: 18px 0 0; padding: 5px 14px; border-radius: 999px;
  background: #fff; border: 1px dashed #B8CECD; font-size: 12.5px; font-weight: 600; color: var(--text-sub);
}

/* ---------- 一覧セクション ---------- */
.cases--list, .blog--list { padding: 56px 24px 72px; background: #fff; }
.blog--list { background: var(--bg); padding-top: 32px; }

/* ---------- 記事下 / ページ下 CTA ---------- */
.post-cta { padding: 72px 24px; background: var(--navy); color: #fff; }
.post-cta--article { background: var(--teal-pale); color: var(--text); }
.post-cta__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.post-cta .eyebrow { color: var(--teal); }
.post-cta--article .eyebrow { color: var(--teal-dark); }
.post-cta__title {
  font-family: var(--heading); font-weight: 900; font-size: clamp(22px, 3.4vw, 31px);
  line-height: 1.45; margin: 8px 0 14px; color: #fff; text-wrap: balance;
}
.post-cta--article .post-cta__title { color: var(--navy); }
.post-cta__title em { color: var(--yellow); font-style: normal; display: inline-block; }
.post-cta--article .post-cta__title em { color: var(--teal-dark); }
.post-cta__text { font-size: 15px; margin: 0 0 26px; color: rgba(255,255,255,0.86); }
.post-cta--article .post-cta__text { color: var(--text-sub); }
.post-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.post-cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.post-cta .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.post-cta--article .btn--ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.post-cta--article .btn--ghost:hover { background: #fff; color: var(--teal-dark); }

/* ---------- 一覧へ戻るリンク ---------- */
.back-link { margin: 36px 0 0; text-align: center; }
.back-link a { font-weight: 700; font-size: 14.5px; color: var(--teal-dark); }
.back-link a:hover { text-decoration: underline; }

/* ===================================================
   事例詳細
   =================================================== */
.case-hero { padding: 40px 24px 32px; background: linear-gradient(180deg, var(--teal-pale) 0%, var(--bg) 100%); }
.case-hero__title {
  font-family: var(--heading); font-weight: 900; font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.35; color: var(--navy); margin: 12px 0 16px; text-wrap: balance;
}
.case-hero__title em { color: var(--teal); font-style: normal; display: inline-block; }
.case-hero__lead { color: var(--text-sub); font-size: 15.5px; margin: 0; max-width: 720px; }
.case-hero__note { font-size: 12.5px; color: var(--coral); font-weight: 600; margin: 14px 0 0; }

/* Before → After バッジ */
/* 上の case-hero が padding-bottom:32px を持つので、下も同程度あけて帯の中でカードを中央に置く
   （下パディングが 0 だとカードが帯の下端に貼り付いて見える） */
.case-metrics-wrap { padding: 0 24px 40px; background: var(--bg); }
.case-metrics { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.case-metric { background: #fff; border: 2px solid var(--teal); border-radius: 14px; padding: 16px 18px; text-align: center; }
.case-metric__label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
.case-metric__value { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.case-metric__from { font-family: var(--heading); font-weight: 700; font-size: 16px; color: var(--text-sub); }
.case-metric__arrow { color: var(--coral); font-style: normal; font-weight: 900; }
.case-metric__to { font-family: var(--heading); font-weight: 900; font-size: 21px; color: var(--navy); }
.case-metrics--inline { margin: 0 0 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* 本文 ＋ 右サイドバー */
/* align-items は既定の stretch のままにする。start にすると側柱が中身の高さに縮み、
   sticky が動ける余地（＝親の高さ）が無くなって追従しなくなる */
.case-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px;
  padding-top: 56px; padding-bottom: 64px;
}
.case-layout__main { order: 1; min-width: 0; }
.case-layout__side { order: 2; }
/* 右サイドバーの追従。ヘッダーが sticky なのでその高さ分だけ下げる */
.case-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.side-card--cta { background: var(--teal-pale); border-color: var(--teal); }
.side-card__title {
  font-family: var(--heading); font-weight: 700; font-size: 15.5px; color: var(--navy);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--teal-pale);
}
.side-card--cta .side-card__title { border-bottom-color: rgba(0,163,180,0.3); }
.side-card__text { font-size: 13.5px; color: var(--text-sub); margin: 0 0 16px; }
.side-card__btn { width: 100%; text-align: center; }
.side-card__note { font-size: 11.5px; color: var(--text-sub); margin: 10px 0 0; text-align: center; }

/* 概要の定義リスト */
.spec { margin: 0; }
.spec__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.spec__row:last-child { border-bottom: none; padding-bottom: 0; }
.spec__label { font-size: 12px; font-weight: 700; color: var(--teal-dark); margin: 0; }
.spec__value { font-size: 13.5px; color: var(--text); margin: 0; font-weight: 600; }

/* 本文 */
.case-section { margin-bottom: 48px; }
.case-section:last-child { margin-bottom: 0; }
.case-section__title {
  font-family: var(--heading); font-weight: 900; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.5;
  color: var(--navy); margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; text-wrap: balance;
}
.case-section__num { font-size: 13px; font-weight: 900; color: var(--teal); flex-shrink: 0; letter-spacing: 0.06em; }
.case-body p { margin: 0 0 16px; font-size: 15.5px; }
.case-body p:last-child { margin-bottom: 0; }
.case-body strong { color: var(--navy); font-weight: 700; }
.case-list { margin: 0 0 16px; padding-left: 1.3em; }
.case-list li { margin-bottom: 8px; font-size: 15.5px; }
.case-quote {
  background: var(--bg); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0;
  padding: 16px 20px; font-weight: 700; color: var(--navy); font-size: 15.5px;
}
.case-steps { list-style: none; display: grid; gap: 14px; }
.case-steps__item { background: var(--bg); border-radius: 14px; padding: 20px 22px; }
.case-steps__no { display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: 0.08em; color: var(--teal-dark); background: #fff; border-radius: 999px; padding: 3px 12px; }
.case-steps__title { font-family: var(--heading); font-weight: 700; font-size: 17px; color: var(--navy); margin: 10px 0 8px; }
.case-steps__item p { margin: 0; font-size: 14.5px; color: var(--text-sub); }
/* 補足ブロック（番号なし）。「そもそも、どんな仕組み？」「さらに拡張すると〜」のように
   原稿ごとに見出しが変わる読み物を、01〜03 の前後に何個でも置ける。 */
.case-note {
  background: var(--teal-pale); border: 1px solid rgba(65,169,165,0.35);
  border-radius: 16px; padding: 22px 24px; margin-bottom: 48px;
}
.case-note:last-child { margin-bottom: 0; }
.case-note__title {
  font-family: var(--heading); font-weight: 700; font-size: clamp(16.5px, 2.1vw, 19px); line-height: 1.5;
  color: var(--teal-dark); margin: 0 0 12px; text-wrap: balance;
}
.case-note p { font-size: 15px; }
/* タグ状のリスト（監修者ページの「専門領域」で使用） */
.tool-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list__item { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy); }

/* 関連事例 */
.related { padding: 64px 24px; background: var(--bg); }

/* ===================================================
   ブログ一覧（検索 / カテゴリ絞り込み）
   =================================================== */
.blog-filter { padding: 28px 24px 0; background: var(--bg); }
.blog-filter__search { position: relative; max-width: 520px; margin: 0 auto 18px; }
.blog-filter__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--teal-dark); pointer-events: none; }
.blog-filter__input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 13px 44px; transition: border-color .2s, box-shadow .2s;
}
.blog-filter__input::placeholder { color: #9aa8b0; }
.blog-filter__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,163,180,0.12); }
.blog-filter__input::-webkit-search-cancel-button { display: none; }
.blog-filter__clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--line); color: var(--navy); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.blog-filter__clear:hover { background: #c9d5da; }
.blog-filter__cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.blog-filter__cat {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--text-sub); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; transition: background .2s, color .2s, border-color .2s;
}
.blog-filter__cat:hover { border-color: var(--teal); color: var(--teal-dark); }
.blog-filter__cat.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.blog-filter__count { text-align: center; font-size: 12.5px; color: var(--text-sub); margin: 14px 0 0; }
.blog-filter__empty { text-align: center; font-size: 14.5px; color: var(--text-sub); padding: 48px 0; margin: 0; }

/* 記事カードの追加要素 */
.blog__card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.blog__card-date { font-size: 12px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.blog__card-excerpt { font-size: 13.5px; color: var(--text-sub); margin: 0 0 6px; }

/* ページ送り */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; }
.pagination__item {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--navy);
  background: #fff; border: 1px solid var(--line);
}
.pagination__item:hover { border-color: var(--teal); color: var(--teal-dark); }
.pagination__item--current { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination__item--current:hover { color: #fff; }
.pagination__item--disabled { opacity: .4; pointer-events: none; }

/* .blog__card は display:block、.pagination は display:flex を指定しているため、
   UA スタイルの [hidden]{display:none} が上書きされて効かない。絞り込み用に明示する */
.blog__card[hidden], .pagination[hidden] { display: none; }

/* ===================================================
   ブログ詳細（記事）
   =================================================== */
.article { padding: 40px 24px 8px; background: #fff; }
.article__inner { max-width: 760px; }
.article__head { margin-bottom: 32px; }
.article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.article__date { font-size: 12.5px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.article__date--updated { color: #9aa8b0; }
.article__title {
  font-family: var(--heading); font-weight: 900; font-size: clamp(25px, 4vw, 36px);
  line-height: 1.4; color: var(--navy); margin: 0 0 16px; text-wrap: balance;
}
.article__lead { font-size: 16px; color: var(--text-sub); margin: 0; }
.article__note { font-size: 12.5px; color: var(--coral); font-weight: 600; margin: 12px 0 0; }
.article__thumb {
  display: flex; align-items: center; justify-content: center; margin-top: 22px;
  aspect-ratio: 16 / 9; background: var(--teal-pale); color: #8FCFCD;
  border-radius: 16px; font-size: 14px; font-weight: 700;
}

/* 目次 */
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; margin-bottom: 36px; }
.toc__title { font-family: var(--heading); font-weight: 700; font-size: 15px; color: var(--navy); margin: 0 0 12px; }
.toc__list { margin: 0; padding-left: 1.3em; }
.toc__list li { margin-bottom: 8px; font-size: 14.5px; }
.toc__list li:last-child { margin-bottom: 0; }
.toc__list a { color: var(--text); }
.toc__list a:hover { color: var(--teal-dark); text-decoration: underline; }

/* 本文タイポグラフィ */
.article__body { font-size: 16px; }
.article__body h2 {
  font-family: var(--heading); font-weight: 900; font-size: clamp(20px, 2.8vw, 26px); line-height: 1.5;
  color: var(--navy); margin: 48px 0 18px; padding-left: 14px; border-left: 5px solid var(--teal); text-wrap: balance;
}
.article__body h3 {
  font-family: var(--heading); font-weight: 700; font-size: clamp(17px, 2.2vw, 20px);
  color: var(--navy); margin: 32px 0 12px; text-wrap: balance;
}
.article__body p { margin: 0 0 18px; }
.article__body strong { color: var(--navy); font-weight: 700; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 1.4em; }
.article__body li { margin-bottom: 9px; }
.article__quote {
  margin: 0 0 22px; padding: 18px 22px; background: var(--teal-pale);
  border-radius: 0 14px 14px 0; border-left: 4px solid var(--teal);
}
.article__quote p { margin: 0; font-weight: 700; color: var(--navy); }
.article__table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
.article__table th, .article__table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.article__table th { background: var(--bg); font-weight: 700; color: var(--navy); }

/* 監修者（枠のみ・内容は支給待ち） */
.supervisor { margin: 48px 0 0; background: var(--bg); border-radius: 16px; padding: 24px; }
.supervisor__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--teal-dark); margin: 0 0 14px; }
.supervisor__body { display: flex; gap: 18px; align-items: flex-start; }
.supervisor__avatar {
  flex: 0 0 76px; height: 76px; border-radius: 50%; background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #8FCFCD;
}
/* 写真が設定されたら、プレースホルダの丸をそのまま埋める（未設定時は「写真」の文字） */
.supervisor__avatar img, .profile__avatar img, .profile__other-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.supervisor__text { min-width: 0; }
.supervisor__name { font-family: var(--heading); font-weight: 700; font-size: 16px; color: var(--navy); margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* C-4: 監修者名そのものをプロフィールページへのリンクにする */
.supervisor__name-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.supervisor__name-link:hover { color: var(--teal-dark); text-decoration-color: currentColor; }
.supervisor__role { font-size: 12.5px; font-weight: 600; color: var(--text-sub); }
.supervisor__bio { font-size: 13.5px; color: var(--text-sub); margin: 0 0 10px; }
.supervisor__todo { color: var(--coral); font-weight: 600; }
.supervisor__link { font-size: 13.5px; font-weight: 700; color: var(--teal-dark); }
.supervisor__link:hover { text-decoration: underline; }

/* ===================================================
   下層ページ レスポンシブ
   =================================================== */
@media (max-width: 900px) {
  /* 右サイドバーを解除し、概要は本文の前・相談CTAは本文の後ろへ回す。
     display:contents で aside のラッパーを畳み、2枚のカードを直接グリッド項目にする */
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .case-layout__side, .case-side { display: contents; }
  .side-card--spec { order: 1; }
  .case-layout__main { order: 2; }
  .side-card--cta { order: 3; }
}

@media (max-width: 640px) {
  .page-hero, .case-hero { padding-left: 0; padding-right: 0; }
  .cases--list, .blog--list, .related, .post-cta, .article, .case-metrics-wrap, .blog-filter { padding-left: 0; padding-right: 0; }
  .case-layout { padding-top: 36px; padding-bottom: 44px; }

  /* 一覧ページはカルーセルにせず縦積み（LP のティザーとは挙動を変える） */
  .cases__grid--list, .blog__grid--list {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
    overflow-x: visible; margin-left: 0; margin-right: 0;
    padding: 0; scroll-snap-type: none;
  }
  .cases__grid--list > .cases__card,
  .cases__grid--list > .cases__placeholder,
  .blog__grid--list > .blog__card { flex: initial; scroll-snap-align: none; }

  .case-section { margin-bottom: 36px; }
  .case-metric__to { font-size: 19px; }
  .supervisor__body { flex-direction: column; }
  .supervisor__avatar { flex-basis: 64px; height: 64px; }
  .article__body h2 { margin-top: 36px; }
  /* 表は横スクロールに逃がす */
  .article__table { display: block; overflow-x: auto; white-space: nowrap; }
  .pagination { gap: 6px; }
  .pagination__item { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13px; }
}

/* ===================================================
   監修者プロフィール（C-4・枠のみ）
   =================================================== */
.page-hero__mocknote { font-size: 12px; color: var(--coral); font-weight: 600; margin: 12px 0 0; }
.page-hero__mocknote strong { color: var(--coral); }

.page-hero--profile { padding-bottom: 40px; }
.profile__head { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.profile__avatar {
  flex: 0 0 104px; height: 104px; border-radius: 50%; background: #fff; border: 2px solid var(--teal-pale);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #8FCFCD;
}
.profile__head-text { min-width: 0; }
.profile__name {
  font-family: var(--heading); font-weight: 900; font-size: clamp(26px, 3.6vw, 36px); color: var(--navy);
  margin: 0 0 8px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.profile__role { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
.profile__tagline { font-size: 15px; color: var(--text-sub); margin: 0; }
.profile__todo { color: var(--coral); font-weight: 600; font-size: 12.5px; }

.profile { padding-top: 48px; padding-bottom: 56px; }
.profile__block { margin-bottom: 44px; }
.profile__block:last-of-type { margin-bottom: 0; }
.profile__block-title {
  font-family: var(--heading); font-weight: 900; font-size: clamp(18px, 2.4vw, 22px); color: var(--navy);
  margin: 0 0 16px; padding-left: 12px; border-left: 5px solid var(--teal);
}
.profile__placeholder { font-size: 15.5px; color: var(--text-sub); margin: 0; }
.profile__placeholder + .profile__placeholder { margin-top: 14px; }

.profile__others { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.profile__other {
  background: var(--bg); border-radius: 14px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.profile__other-avatar {
  flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #8FCFCD;
}
.profile__other-name { font-family: var(--heading); font-weight: 700; font-size: 16px; color: var(--navy); }
.profile__other-name:hover { color: var(--teal-dark); text-decoration: underline; }
.profile__other-role { font-size: 12px; color: var(--text-sub); width: 100%; padding-left: 66px; margin-top: -8px; }

@media (max-width: 640px) {
  /* .profile は .container と同じ要素に付くので左右 padding は触らない
     （0 にするとコンテナの余白ごと消えて本文が画面端に張り付く） */
  .profile__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile__avatar { flex-basis: 84px; height: 84px; }
  .profile__block { margin-bottom: 34px; }
  .profile__other-role { padding-left: 0; margin-top: 0; }
}
