/* ============================================
   宅ドリル便 LP - 山形医療技術専門学校 導入事例
   ============================================ */

/* ---------- リセット & 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1f2d3d;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .8; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 共通変数 ---------- */
:root {
  --primary: #1565c0;        /* 信頼感のあるブルー */
  --primary-dark: #0d47a1;
  --primary-light: #42a5f5;
  --accent: #2e7d32;         /* 医療系の緑 */
  --accent-light: #66bb6a;
  --cta: #ff6f00;            /* CTA用オレンジ */
  --cta-hover: #e65100;
  --text: #1f2d3d;
  --text-light: #5a6878;
  --bg-light: #f5f9fd;
  --bg-section: #eef4fb;
  --border: #e1e8ef;
  --shadow-sm: 0 2px 8px rgba(21,101,192,.06);
  --shadow-md: 0 8px 24px rgba(21,101,192,.10);
  --shadow-lg: 0 16px 40px rgba(21,101,192,.15);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---------- 共通レイアウト ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

.section-head { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--primary);
  background: #e3f2fd;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-tag.light { color: #fff; background: rgba(255,255,255,.18); }
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-title.white { color: #fff; }
.section-lead {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
}
.section-lead.white { color: rgba(255,255,255,.92); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 20px; color: var(--primary-dark);
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 16px;
}
.header-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: var(--primary); opacity: 1; }
.btn-header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(255,111,0,.30);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-header-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,111,0,.40); opacity: 1; }

@media (max-width: 900px) {
  .header-nav { display: none; }
}
@media (max-width: 540px) {
  .btn-header-cta { padding: 9px 14px; font-size: 12px; }
  .btn-header-cta i { display: none; }
  .logo-text { font-size: 16px; }
}

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  padding: 60px 20px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(21,101,192,.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(46,125,50,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-text { z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--text);
  margin-bottom: 20px;
  white-space: nowrap; /* PC: 1行ずつ確実に収める */
}
/* SP: white-space を解除して自然に折り返し＋balance */
@media (max-width: 600px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(26px, 7.5vw, 36px);
    text-wrap: balance;
    line-height: 1.4;
  }
  .hero-title-br { display: none; } /* SP では <br> を非表示にして自動折り返しに任せる */
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 24px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-points {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 30px;
}
.hero-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
}
.hero-points i { color: var(--accent); font-size: 18px; }
.hero-points strong { font-weight: 700; color: var(--primary-dark); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cta);
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(255,111,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,111,0,.45);
  background: var(--cta-hover);
  opacity: 1;
}
.btn-primary.large {
  padding: 20px 42px;
  font-size: 18px;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  color: var(--primary-dark) !important;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--primary);
  transition: all .2s ease;
}
.btn-secondary:hover { background: var(--primary); color: #fff !important; opacity: 1; }
.hero-note { font-size: 12px; color: var(--text-light); margin-top: 6px; }

.hero-visual {
  position: relative;
}
.school-link {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
}
.school-link:hover { transform: translateY(-4px); opacity: 1; }
.school-link img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.school-link-label {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(13,71,161,.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.image-caption {
  font-size: 11px;
  color: var(--text-light);
  text-align: right;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 20px 60px; }
}

/* ---------- 導入校サマリー ---------- */
.school-summary {
  padding: 30px 0;
  background: #fff;
}
.summary-card {
  background: linear-gradient(135deg, #fff, var(--bg-light));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.summary-label {
  position: absolute; top: -12px; left: 28px;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15em;
  padding: 4px 14px;
  border-radius: 999px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.summary-key {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.summary-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.summary-val a { color: var(--primary); }
@media (max-width: 700px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------- PROBLEM ---------- */
.problem-section {
  padding: 90px 0;
  background: var(--bg-section);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.problem-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 26px;
}
.problem-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  line-height: 1.5;
}
.problem-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- SOLUTION ---------- */
.solution-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.solution-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.solution-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: rgba(255,255,255,.25);
  letter-spacing: .02em;
}
.solution-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
  padding-right: 60px;
  line-height: 1.5;
}
.solution-card p { font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,.9); }
@media (max-width: 760px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---------- REASON ---------- */
.reason-section {
  padding: 90px 0;
  background: #fff;
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.reason-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.reason-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.reason-icon-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: var(--shadow-md);
}
.reason-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--primary);
  margin-bottom: 8px;
}
.reason-card h3 { font-size: 20px; margin-bottom: 14px; color: var(--text); }
.reason-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.9; text-align: left; }
@media (max-width: 900px) { .reason-grid { grid-template-columns: 1fr; } }

/* ---------- VOICE / インタビュー ---------- */
.voice-section {
  padding: 90px 0;
  background: var(--bg-light);
}

/* インタビュアー紹介 */
.interview-intro {
  display: flex; align-items: center; justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.intro-person { display: flex; align-items: center; gap: 16px; }
.intro-person.reverse { flex-direction: row-reverse; }
/* 丸枠ラッパー（必ず固定サイズの正円。中身の画像は枠を絶対に超えない） */
.intro-photo-wrap, .dialogue-photo-wrap {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  flex-grow: 0;
  background: #eef4fb;
  position: relative;
  box-sizing: border-box;
}
.intro-photo-wrap {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  max-width: 88px;
  max-height: 88px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}
.dialogue-photo-wrap {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
/* 画像は枠サイズに合わせて表示（ラッパーが overflow:hidden なので枠外に出ない）
   face-crop.js がCanvasでトリミング済みの src に上書きするため transform 不要 */
.intro-photo, .dialogue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.intro-info { text-align: left; }
.intro-person.reverse .intro-info { text-align: right; }
.intro-role { font-size: 12px; color: var(--text-light); }
.intro-name { font-size: 17px; font-weight: 700; color: var(--text); }
.intro-vs {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-md);
}

/* 対談ブロック */
.dialogue-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.dialogue-heading {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-section);
}
.dialogue-heading .num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-right: 12px;
  vertical-align: middle;
}

.dialogue-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.dialogue-row.right { flex-direction: row-reverse; }
/* ===== 画像ごとの顔位置を個別最適化 =====
   ラッパーが固定サイズ(72px/88px)＋overflow:hidden で枠外には絶対に出ない
   object-fit:cover + object-position で顔位置を丸枠中央に寄せる
   transform:scale は使わず、自然な比率で表示（違和感を出さない） */

/* 半嶺さん（男性）— face-crop.js がCanvas APIで顔中心を72×72にトリミングして
   img.src を置き換えるため、CSS側は transform/object-position を一切使わない。
   全画像を center center で均一表示。 */
.photo-hanmine-01,
.photo-hanmine-02,
.photo-hanmine-03,
.photo-hanmine-04,
.photo-hanmine-05,
.photo-hanmine-06,
.photo-hanmine-07,
.photo-hanmine-08 {
  object-position: center center;
  transform: none;
}

/* 佐藤先生（女性）— 中央〜やや上に顔 */
.photo-sato-01,
.photo-sato { object-position: center 22%; }
.dialogue-bubble {
  flex: 1;
  position: relative;
  padding: 18px 22px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.9;
}
.dialogue-bubble .speaker {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .03em;
}
.dialogue-bubble.interviewer {
  background: #e8f1fb;
  color: var(--text);
  border-top-left-radius: 4px;
}
.dialogue-bubble.interviewer .speaker { color: var(--primary-dark); }
.dialogue-bubble.teacher {
  background: linear-gradient(135deg, #fff5e6, #fff8ed);
  color: var(--text);
  border: 1px solid #ffe0b2;
  border-top-right-radius: 4px;
}
.dialogue-bubble.teacher .speaker { color: #d84315; }
.dialogue-bubble p strong { color: var(--primary-dark); font-weight: 700; background: linear-gradient(transparent 70%, #fff59d 70%); }

/* 引用ハイライト */
.quote-highlight {
  margin: 50px 0;
  padding: 40px 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.quote-highlight i {
  font-size: 32px;
  opacity: .4;
  margin-bottom: 12px;
}
.quote-highlight p {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 14px;
}
.quote-highlight cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  opacity: .9;
}
.quote-highlight.final {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* 効果カード */
.effect-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.effect-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: transform .25s ease;
}
.effect-card:hover { transform: translateY(-4px); }
.effect-card:nth-child(2) { border-top-color: var(--accent); }
.effect-card:nth-child(3) { border-top-color: var(--cta); }
.effect-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.effect-card:nth-child(2) .effect-icon { color: var(--accent); }
.effect-card:nth-child(3) .effect-icon { color: var(--cta); }
.effect-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.effect-card h4 { font-size: 16px; line-height: 1.5; margin-bottom: 12px; color: var(--text); }
.effect-big {
  display: block;
  font-size: 26px;
  color: var(--primary);
  font-weight: 900;
  margin-top: 4px;
}
.effect-card:nth-child(2) .effect-big { color: var(--accent); }
.effect-card:nth-child(3) .effect-big { color: var(--cta); }
.effect-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.8; }

@media (max-width: 760px) {
  .dialogue-block { padding: 28px 20px; }
  .dialogue-heading { font-size: 18px; }
  .dialogue-photo { width: 56px; height: 56px; }
  .dialogue-bubble { padding: 14px 16px; font-size: 14px; }
  .quote-highlight { padding: 30px 24px; margin: 36px 0; }
  .effect-cards { grid-template-columns: 1fr; }
  .interview-intro { gap: 14px; }
  .intro-photo { width: 64px; height: 64px; }
  .intro-name { font-size: 14px; }
  .intro-vs { width: 44px; height: 44px; font-size: 16px; }
}

/* ---------- FEATURES ---------- */
.features-section {
  padding: 90px 0;
  background: #fff;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.feature-item i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
}
.feature-item h4 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.feature-item p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- MERIT ---------- */
.merit-section {
  padding: 90px 0;
  background: var(--bg-section);
}
.merit-list { display: flex; flex-direction: column; gap: 20px; max-width: 920px; margin: 0 auto; }
.merit-row {
  display: flex;
  gap: 26px;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.merit-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 70px;
}
.merit-body h3 { font-size: 20px; margin-bottom: 10px; color: var(--primary-dark); }
.merit-body p { font-size: 15px; color: var(--text-light); line-height: 1.9; }
@media (max-width: 560px) {
  .merit-row { padding: 24px 22px; gap: 16px; }
  .merit-num { font-size: 32px; min-width: 48px; }
  .merit-body h3 { font-size: 17px; }
}

/* ---------- FLOW ---------- */
.flow-section {
  padding: 90px 0;
  background: #fff;
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: flow;
}
.flow-step {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: transform .25s ease;
}
.flow-step:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-md); }
.flow-step::after {
  content: '';
  position: absolute;
  top: 50%; right: -14px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--primary-light);
  transform: translateY(-50%);
  z-index: 1;
}
.flow-step:last-child::after { display: none; }
.flow-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 10px;
}
.flow-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.5;
}
.flow-step h3 i { color: var(--primary); margin-right: 6px; }
.flow-step p { font-size: 13.5px; color: var(--text-light); line-height: 1.8; }

@media (max-width: 900px) {
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
}
@media (max-width: 540px) {
  .flow-list { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 90px 0;
  background: var(--bg-section);
}
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  position: relative;
  transition: background .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-light); }
.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 24px;
  color: var(--primary);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .q {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.faq-answer {
  display: flex;
  gap: 16px;
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.9;
}
.faq-answer .a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- 最終CTA ---------- */
.final-cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: #fff;
  text-align: center;
}
.final-cta-inner { max-width: 720px; margin: 0 auto; }
.final-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2em;
  background: rgba(255,255,255,.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.final-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
  line-height: 1.4;
}
.final-cta p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: .95;
  line-height: 1.9;
}
.final-points {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: .95;
}
.final-points li { display: flex; align-items: center; gap: 8px; }
.final-points i {
  background: rgba(255,255,255,.18);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #142133;
  color: #b8c5d6;
  padding: 60px 0 100px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 22px; color: #fff;
  margin-bottom: 14px;
}
.footer-brand p { line-height: 1.9; font-size: 13.5px; }
.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: .05em;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #b8c5d6; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { line-height: 1.8; margin-bottom: 14px; font-size: 13.5px; }
.btn-footer {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
}
.btn-footer:hover { background: var(--cta-hover); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #7c8ba0;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 追従CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.floating-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255,111,0,.30);
}
.floating-cta a:hover { background: var(--cta-hover); opacity: 1; }
@media (max-width: 900px) {
  .floating-cta { display: block; }
}

/* ---------- スクロール挙動補正 ---------- */
section[id] { scroll-margin-top: 80px; }
