/* ==========================================================================
   FINACラーニング TOP LP（top）
   Figma: ラーニングTOP_PC_v2 23976:22782 (1440px) / ラーニングTOP_SP_v2 23976:47225 (375px)
   共通のヘッダー / フッター / ドロワー / モーダルは _shared/css/site-chrome.css。カルーセルは bookkeeping から流用
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --text: #1d1d1d;
  --text-sub: #4f4f4f;
  --text-gray: #666;
  --text-en: #6a7678;
  --green: #00957a;            /* 簿記 */
  --green-dark: #007b65;
  --blue: #1350c2;             /* 実務 */
  --blue-dark: #2a57aa;
  --orange: #d26500;
  --red: #d70c24;              /* FINAC */
  --bg: #ecf3f4;
  --bg-gray: #f7f8f8;
  --border: #d9d9d9;

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Avenir Next", "Inter", "Noto Sans JP", sans-serif;
  --font-num: "Avenir Next", "Inter", sans-serif;
  --font-cond: "Roboto Condensed", "Roboto", "Arial Narrow", sans-serif;
  --font-zen: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;

  --container: 1120px;
  --header-h: 99px;
}


/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
sup { line-height: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; }

@media (max-width: 768px) { .pc-only { display: none !important; } }
@media (min-width: 769px) { .sp-only { display: none !important; } }

/* ---------- 共通見出し（Figma 23976:32180 系） ---------- */
.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.heading__main {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--text);
}
.heading__en {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--text-en);
}
/* 緑・青の丸が縦に重なる飾り。右側は上下反転 */
.heading__en::before,
.heading__en::after {
  content: "";
  flex: none;
  width: 9.5px;
  height: 16px;
  background:
    radial-gradient(circle at 50% 4.75px, var(--green) 4.6px, transparent 5px),
    radial-gradient(circle at 50% 11.25px, var(--blue) 4.6px, transparent 5px);
}
.heading__en::after { transform: scaleY(-1); }

/* ---------- 黒ボタン（Figma "Link" 548x72） ---------- */
.btn-black {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 548px;
  max-width: 100%;
  height: 72px;
  background: #000;
  border-radius: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
  transition: opacity .2s;
}
.btn-black:hover { opacity: .8; }
.btn-black__arrow { position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); }


/* ==========================================================================
   MV（Figma 25924:32326 / 1440x760）
   背景は講座サムネイルの壁（Figma レンダリング 1 枚）に 63.76deg の緑→青グラデを重ねる
   ========================================================================== */
.mv {
  position: relative;
  min-height: 760px;
  padding: 80px 24px 28px;
  background: #fff url("../images/mv/bg-thumbnails-pc.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(63.76deg, rgba(0, 123, 101, .9) 3.37%, rgba(42, 87, 170, .9) 99.1%);
}
.mv__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.mv__cats { width: 732px; max-width: 100%; height: auto; }
.mv__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.mv__tags li {
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.mv__tags .mv__tags-etc { padding-inline: 0; border: 0; }
.mv__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.mv__title-sub { font-size: 52px; letter-spacing: .02em; }
.mv__title-main { font-size: 101px; letter-spacing: .02em; }

/* 3 つの白丸バッジ（210px） */
.mv__badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.mv__badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  background: #fff;
  border-radius: 50%;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}
.mv__badge-label { font-size: 22px; line-height: 1.3; }
.mv__badge-figure { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-top: 2px; }
.mv__badge-num,
.mv__badge-free {
  font-family: var(--font-num);
  font-weight: 700;
  background: linear-gradient(128deg, #f98c28 12%, #d26500 91%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mv__badge-num { font-size: 56px; line-height: 1; letter-spacing: .01em; }
.mv__badge-unit { font-size: 17px; line-height: 1.3; }
.mv__badge-strong { font-size: 30px; line-height: 1.3; }
.mv__badge-strong--sm { font-size: 28px; line-height: 1.2; }
.mv__badge-small { font-size: 13px; line-height: 1.3; }
.mv__badge-free {
  position: relative;
  font-family: var(--font-jp);
  font-size: 54px;
  line-height: 1.14;
  letter-spacing: .07em;
}
.mv__badge-sup {
  position: absolute;
  top: -4px;
  right: -16px;
  font-size: 19px;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.mv__note {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}


/* ==========================================================================
   名称変更のお知らせ（Figma 23976:23197）
   ========================================================================== */
.notice { padding: 40px 24px; background: #fff; }
.notice__text {
  max-width: 930px;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .03em;
  text-align: center;
  color: var(--red);
}


/* ==========================================================================
   CTA「メールアドレスで簡単登録」（Figma 23976:23199 / 511px）
   ========================================================================== */
.cta { padding: 80px 24px; background: var(--bg); }
.cta__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 40px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
}
/* 左右のドット飾り: 6px 角を 20px ピッチで市松（青 / 緑）に並べ、中央に向かって消す */
.cta__box::before,
.cta__box::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 140px;
  opacity: .4;
  background:
    conic-gradient(at 6px 6px, transparent 75%, var(--blue) 0) 0 0 / 40px 40px,
    conic-gradient(at 6px 6px, transparent 75%, var(--blue) 0) 20px 20px / 40px 40px,
    conic-gradient(at 6px 6px, transparent 75%, var(--green) 0) 20px 0 / 40px 40px,
    conic-gradient(at 6px 6px, transparent 75%, var(--green) 0) 0 20px / 40px 40px;
  pointer-events: none;
}
.cta__box::before { left: 10px; -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }
.cta__box::after { right: 10px; -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent); mask-image: linear-gradient(270deg, #000 20%, transparent); }
.cta__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
}
/* 「＼ 〜 ／」の飾り線（青・緑の 2 本） */
.cta__title::before,
.cta__title::after {
  content: "";
  flex: none;
  width: 8px;
  height: 25px;
  background: linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 5px, var(--green) 5px 8px);
  transform: rotate(-25deg);
}
.cta__title::after { background: linear-gradient(90deg, var(--green) 0 3px, transparent 3px 5px, var(--blue) 5px 8px); transform: rotate(25deg); }
.cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 548px;
  max-width: 100%;
  height: 72px;
  background: var(--orange);
  border-radius: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: .03em;
  transition: opacity .2s;
}
.cta__btn:hover { opacity: .85; }
.cta__btn-arrow { position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); }
.cta__lead { font-size: 16px; font-weight: 700; line-height: 1.5; }
.cta__lead sup { font-size: 11.6px; vertical-align: top; }
.cta__note { max-width: 548px; margin-top: -4px; font-size: 12px; line-height: 1.5; color: var(--text-sub); }
.cta--last { padding-bottom: 40px; }
.credit {
  margin-top: 28px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .03em;
  text-align: right;
  color: #9d9d9d;
}
.credit a:hover { text-decoration: underline; }


/* ==========================================================================
   FINACラーニングで学ぶ（Figma 23976:24069 / 930px）
   ========================================================================== */
.learn {
  position: relative;
  padding: 100px 24px;
  background: #fff;
  overflow: hidden;
}
/* 背景の淡い斜め帯（Figma Group 1010109560 / 62） */
.learn::before,
.learn::after,
.why::before,
.why::after {
  content: "";
  position: absolute;
  width: 1092px;
  height: 503px;
  background: url("../images/learn/bg-shape-1.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.learn::before { right: -300px; bottom: -18px; }
.learn::after { left: -300px; top: 0; background-image: url("../images/learn/bg-shape-2.svg"); transform: rotate(180deg); }
.learn__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.learn__cards {
  display: flex;
  justify-content: center;
  gap: 22px;
  width: 100%;
}
/* カード: 上青→下緑（実務）/ 上緑→下青（簿記）のグラデ枠線 */
.learn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 549px;
  height: 584px;
  padding: 52px;
  border: 6px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, rgba(42, 87, 170, .7), rgba(0, 123, 101, .7)) border-box;
  box-shadow: 0 0 20px rgba(0, 0, 0, .12);
  overflow: hidden;
  transition: box-shadow .2s;
}
.learn-card--bookkeeping {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, rgba(0, 123, 101, .7), rgba(42, 87, 170, .7)) border-box;
}
.learn-card:hover { box-shadow: 0 0 28px rgba(0, 0, 0, .2); }
.learn-card__en {
  font-family: var(--font-cond);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .03em;
  color: var(--text-en);
}
.learn-card__title {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
}
.learn-card__title-em { font-size: 48px; color: var(--blue); }
.learn-card--bookkeeping .learn-card__title-em { color: var(--green); }
.learn-card__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .03em;
}
/* イラスト（Figma のベクター群を 1 枚にレンダリング、等倍） */
.learn-card__illust { position: absolute; bottom: 43px; left: 4.5%; width: 68.5%; height: auto; }
.learn-card--bookkeeping .learn-card__illust { bottom: 55px; left: 9.4%; width: 64.5%; }
.learn-card__arrow {
  position: absolute;
  right: 46px;
  bottom: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
}


/* ==========================================================================
   コースを探す（Figma 23976:24463 / 1612px）
   ========================================================================== */
.courses { padding: 100px 24px; background: var(--bg); }
.courses__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.courses__body { display: flex; flex-direction: column; gap: 48px; width: 100%; }
.courses__row { display: flex; flex-direction: column; gap: 20px; }
.courses__row[hidden] { display: none; }
.courses__row-head { display: flex; align-items: center; justify-content: space-between; }
.courses__row-title { font-size: 32px; font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
.courses__list { gap: 24px; }
.course-card { width: 262px; }
.course-card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.course-card__link:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.course-card__thumb { display: block; padding: 6px; }
.course-card__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.course-card__body { display: flex; flex-direction: column; gap: 6px; padding: 0 16px; }
.course-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.course-card__meta { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-gray); white-space: nowrap; }
.course-card__time { display: inline-flex; align-items: center; gap: 2px; }
.course-card__time img { width: 15px; height: 15px; }

/* ジャンル一覧ボックス（青→緑のグラデ枠） */
.courses__genres {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  border: 6px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, rgba(42, 87, 170, .7), rgba(0, 123, 101, .7)) border-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, .12);
}
.courses__genres-title { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: .03em; text-align: center; }
.courses__genre-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 16px; }
.genre-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #282828;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.genre-tag img { width: 6.7px; height: 11.3px; }
.genre-tag:hover { background: #282828; color: #fff; }
.genre-tag:hover img { filter: invert(1); }

/* ---------- 共通カルーセル（bookkeeping 流用） ---------- */
.carousel__nav { display: flex; gap: 12px; }
.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  transition: opacity .2s;
}
.carousel__btn img { width: 9px; height: 16px; }
.carousel__btn--prev img { margin-right: 2px; }
.carousel__btn--next img { margin-left: 2px; }
.carousel__btn:hover:not(:disabled) { opacity: .75; }
.carousel__btn:disabled { cursor: default; }
.carousel__btn:disabled img { opacity: .3; } /* Figma: 背景はそのまま、矢印だけ淡色 */
.carousel__track {
  display: flex;
  align-items: stretch;
  overflow-x: auto; /* PC はコンテナ幅（1120px = 4 枚）で切り、5 枚目以降は「次へ」で表示 */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 auto; scroll-snap-align: start; }


/* ==========================================================================
   無料で学び放題（Figma 23976:24515 / 598px）
   背景はサムネイルの壁 + 246.98deg の緑→青グラデ
   ========================================================================== */
.free {
  position: relative;
  min-height: 598px;
  padding: 80px 24px 96px;
  background: #fff url("../images/free/bg-thumbnails.jpg") center / cover no-repeat;
  color: #fff;
}
.free::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(246.98deg, rgba(0, 115, 94, .88) 2.48%, rgba(18, 68, 162, .88) 96.98%);
}
.free__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.free__head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.free__catch {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  text-align: center;
}
.free__catch-lg { font-size: 36px; }
.free__badge {
  padding: 16px 32px 20px;
  background: #fff;
  border-radius: 8px;
}
.free__badge-text {
  display: inline-block;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.free__badge-lg { font-size: 52px; }
.free__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 930px;
  max-width: 100%;
  padding: 24px 32px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .85));
  border: 1px solid #fff;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: var(--text);
}
.free__card-title { font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; text-align: center; }
.free__card-text { font-size: 16px; line-height: 1.8; letter-spacing: .03em; }


/* ==========================================================================
   なぜいま会計ファイナンスを学ぶべきなのか（Figma 23976:25208 / 794px）
   質問の吹き出しが回答ボックスの左上に重なる。イラストは回答ボックス基準で配置
   ========================================================================== */
.why {
  position: relative;
  padding: 80px 24px;
  background: #fff;
  overflow: hidden;
}
.why::before { right: -300px; bottom: 0; background-image: url("../images/why/bg-shape-1.svg"); }
.why::after { left: -300px; top: 0; background-image: url("../images/why/bg-shape-2.svg"); transform: rotate(180deg); }
.why__inner {
  position: relative;
  z-index: 1;
  width: 798px;
  max-width: 100%;
  min-height: 634px;
  margin: 0 auto;
}
.why__answer {
  position: absolute;
  left: 182.5px;
  top: 131px;
  width: 560px;
  padding: 56px 56px 48px;
  background: #fff;
  border: 4px solid var(--border);
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .03em;
}
.why__question {
  position: absolute;
  left: 24.5px;
  top: 19px;
  padding: 24px 32px;
  background: #fff;
  border: 4px solid var(--border);
  border-radius: 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  white-space: nowrap;
}
.why__illust { position: absolute; height: auto; }
.why__illust--finance { top: -131px; left: 57.3%; width: 294px; }
.why__illust--bookkeeping { top: 82.3%; left: -122px; width: 299px; }


/* ==========================================================================
   アプリバナー（Figma 23976:25575 / 448.5px）
   Figma はバナー 1 枚のラスターにストアバッジとロゴ差し替えパッチを重ねた構成。
   位置はカード幅に対する % で指定し PC / SP 共通
   ========================================================================== */
.app { padding: 0 24px 80px; background: var(--bg); }
.app__card {
  position: relative;
  width: 930px;
  max-width: 100%;
  aspect-ratio: 3089 / 1224;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
.app__banner { position: absolute; inset: 0; width: auto; height: 100%; max-width: none; }
.app__logo-patch {
  position: absolute;
  left: 63.5%;
  top: 15.6%;
  width: 7.42%;
  aspect-ratio: 69 / 34;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.app__logo-patch img { width: 64%; height: auto; }
.app__badge { position: absolute; display: block; transition: opacity .2s; }
.app__badge:hover { opacity: .85; }
.app__badge--google { left: 3.82%; top: 64.7%; width: 26.87%; }
.app__badge--apple { left: 32.05%; top: 68.8%; width: 24.05%; }
.app__badge img { width: 100%; height: auto; }


/* ==========================================================================
   ご利用者様の声（Figma 23976:25584 / 1023.5px）
   ========================================================================== */
.voices { padding: 100px 24px; background: var(--bg); }
.voices__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.voices__body { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }
.voices__carousel { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.voices__nav { justify-content: flex-end; }
/* PC は 3 枚ずつ表示し、4 枚目以降は「次へ」で表示 */
.voices__list {
  display: flex;
  gap: 24px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.voices__list::-webkit-scrollbar { display: none; }
.voice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}
.voice-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.voice-card__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.voice-card__avatar {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #edf6f5;
  overflow: hidden;
}
.voice-card__avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.voice-card__avatar--illust { display: flex; align-items: flex-end; justify-content: center; }
.voice-card__avatar--illust img { width: 109px; height: auto; margin-left: 2px; }
.voice-card__avatar--female img { width: 96px; }
.voice-card__badge { position: absolute; top: 0; right: 48px; width: 65px; height: auto; }
.voice-card__name { font-size: 14px; line-height: 1.5; color: var(--text-gray); text-align: center; }
.voice-card__title { margin-top: 20px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.voice-card__text { margin-top: 8px; font-size: 16px; line-height: 1.8; letter-spacing: .03em; }

/* 合格者の声バナー（Figma banner_pc 929.5x138） */
.voices__banner {
  position: relative;
  display: block;
  width: 930px;
  max-width: 100%;
  height: 138px;
  background: #fff;
  border: 1px solid #fb687b;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .2s;
}
.voices__banner:hover { opacity: .9; }
.voices__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 120% at 22% 40%, rgba(251, 104, 123, .32), rgba(251, 104, 123, 0) 70%);
}
.voices__banner-photo { position: absolute; top: -2px; right: -71px; width: 538px; height: auto; }
.voices__banner-photo img { width: 100%; height: auto; }
.voices__banner-text {
  position: absolute;
  left: 31px;
  top: 21.5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "Hiragino Sans", var(--font-jp);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  white-space: nowrap;
}
.voices__banner-line1 { color: #171818; }
.voices__banner-line2 { color: #db364c; letter-spacing: -.04em; }


/* ==========================================================================
   よくある質問（Figma 23976:25652 / 1248px）
   ========================================================================== */
.faq { padding: 60px 24px 100px; background: var(--bg); }
.faq__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.faq__list { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.faq__item {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 40px 36px;
  background: #fff;
  border-radius: 24px;
}
.faq__q,
.faq__a { display: flex; align-items: flex-start; gap: 20px; }
.faq__q { padding-bottom: 28px; border-bottom: 1px solid #d7dfe0; }
.faq__mark {
  flex: none;
  font-family: var(--font-cond);
  font-weight: 500;
  font-stretch: 75%;
  font-size: 44px;
  line-height: 1;
  letter-spacing: .03em;
}
.faq__mark--q { color: var(--blue); }
.faq__mark--a { color: var(--green); }
.faq__q-text { padding-top: 6px; font-size: 18px; font-weight: 700; line-height: 1.8; letter-spacing: .03em; }
.faq__a-text { padding-top: 6px; font-size: 16px; line-height: 1.8; letter-spacing: .03em; }


/* ==========================================================================
   FINACの生涯成長支援サービス（Figma 23976:25685 / 1234px）
   ========================================================================== */
.services { padding: 40px; background: #fff; }
.services__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 80px 24px;
  background: var(--bg-gray);
}
.services__title { font-size: 54px; font-weight: 700; line-height: 1.3; letter-spacing: .03em; text-align: center; }
.services__intro { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; }
/* ∞ 図形: 幅基準（cqw）でラベルも拡縮 */
.services__loop {
  position: relative;
  width: 653px;
  max-width: 100%;
  container-type: inline-size;
}
.services__loop-img { width: 100%; height: auto; }
.services__loop-label {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: .92cqw;
  font-family: var(--font-zen);
  font-weight: 500;
  font-size: 4.59cqw;    /* 30px @653 */
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}
.services__loop-num { font-family: var(--font-num); font-weight: 700; font-size: 2.45cqw; } /* 16px @653 */
.services__loop-label--1 { left: 17.9%; top: 9.9%; }
.services__loop-label--2 { left: 17.9%; top: 84.4%; }
.services__loop-label--3 { left: 68.9%; top: 9.9%; }
.services__loop-label--4 { left: 64.2%; top: 84.4%; }
.services__lead {
  font-family: var(--font-zen);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}
.services__lead-em { color: var(--red); }
.services__body { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: var(--container); }
.services__cards { display: flex; gap: 16px; width: 100%; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  gap: 16px;
  padding: 40px 20px 28px;
  background: #fff;
  font-family: var(--font-zen);
  font-weight: 500;
}
.service-card::before { content: ""; position: absolute; left: 20px; top: 0; width: 19px; height: 3px; background: var(--red); }
.service-card__top {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  gap: 16px;
  min-height: 206px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.service-card__head { display: flex; align-items: center; gap: 10px; }
.service-card__num { font-family: var(--font-num); font-weight: 700; font-size: 16px; line-height: 1; color: #8d9ba6; }
.service-card__name { font-size: 28px; line-height: 1; color: var(--red); }
.service-card__desc { font-size: 16px; line-height: 1.8; }
.service-card__links { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.5; }
.service-card__links li { padding-left: 1.5em; text-indent: -1em; }
.service-card__links li::before { content: "・"; }
.service-card__links a:hover { text-decoration: underline; }
.services__note {
  font-family: var(--font-zen);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .03em;
  text-align: center;
  color: var(--text-sub);
}


/* ==========================================================================
   Tablet (769px – 1200px): Figma 定義が無いため PC ルールを縮小して適用
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1200px) {
  .heading__main, .services__title { font-size: 44px; }
  .mv__title-sub { font-size: 40px; }
  .mv__title-main { font-size: 72px; }
  .mv__tags li { font-size: 20px; }
  .mv__badges { gap: 20px; }
  .mv__badge { width: 180px; height: 180px; }
  .mv__badge-label { font-size: 19px; }
  .mv__badge-num { font-size: 48px; }
  .mv__badge-free { font-size: 46px; }
  .learn__cards { gap: 16px; }
  .learn-card { width: calc(50% - 8px); height: auto; min-height: 500px; padding: 36px 36px 220px; }
  .learn-card__title-em { font-size: 40px; }
  .learn-card__title { font-size: 28px; }
  .why__inner { width: 100%; max-width: 798px; }
  .why__answer { left: auto; right: 0; width: min(560px, calc(100% - 60px)); }
  .why__question { font-size: 22px; }
  .why__illust--bookkeeping { left: -40px; width: 220px; }
  .why__illust--finance { width: 220px; left: auto; right: -20px; top: -100px; }
  .services__cards { flex-wrap: wrap; }
  .service-card { flex-basis: calc(50% - 8px); }
  .voices__banner-text { font-size: 32px; }
  .voices__banner-photo { width: 440px; right: -60px; }
}


/* ==========================================================================
   SP (≤768px)  Figma ラーニングTOP_SP_v2（375 基準）
   ========================================================================== */
@media (max-width: 768px) {
  :root { --header-h: 52px; }

  .heading { gap: 12px; }
  .heading__main { font-size: 32px; }
  .heading__en { gap: 10px; }
  .btn-black { width: 100%; height: 64px; font-size: 18px; }
  .btn-black__arrow { right: 16px; }


  /* ---------- MV（Figma 24995:21065: 375x629） ---------- */
  .mv {
    min-height: 629px;
    padding: 28px 16px 20px;
    background-image: url("../images/mv/bg-thumbnails-sp.jpg");
  }
  .mv::before { background: linear-gradient(81.18deg, rgba(0, 123, 101, .9) 3.37%, rgba(42, 87, 170, .9) 99.1%); }
  .mv__cats { width: 213px; }
  .mv__tags { gap: 8px 10px; margin-top: 20px; }
  .mv__tags li { padding: 6px 12px; font-size: 15px; }
  .mv__title { gap: 3px; margin-top: 18px; }
  .mv__title-sub { font-size: 29.5px; line-height: 1.27; }
  .mv__title-main { font-size: 56.5px; line-height: 1.1; }
  .mv__badges { flex-wrap: wrap; gap: 12px 10px; margin-top: 13px; }
  .mv__badge { width: 107.5px; height: 107.5px; }
  .mv__badge-label { font-size: 11.3px; }
  .mv__badge-figure { margin-top: 0; }
  .mv__badge-num { font-size: 28.7px; }
  .mv__badge-unit { font-size: 8.7px; }
  .mv__badge-strong { font-size: 15.4px; }
  .mv__badge-strong--sm { font-size: 14.3px; }
  .mv__badge-small { font-size: 6.7px; }
  .mv__badge-free { font-size: 27.6px; }
  .mv__badge-sup { top: -2px; right: -8px; font-size: 10px; }
  .pc-only-inline { display: none; }
  .mv__note { margin-top: 22px; font-size: 12px; line-height: 1.5; }

  /* ---------- 名称変更（Figma 23976:48688: 184px） ---------- */
  .notice { padding: 40px 16px; }
  .notice__text { font-size: 16px; }

  /* ---------- CTA（Figma 24019:57173: 449px） ---------- */
  .cta { padding: 40px 16px; }
  .cta__box { gap: 20px; padding: 32px 16px; border-radius: 20px; }
  .cta__box::before, .cta__box::after { width: 56px; }
  .cta__title { gap: 12px; font-size: 24px; line-height: 1.3; }
  /* ボタン・文言はドット（端から 56px）の内側に収める: 左右 16px + 44px */
  .cta__btn { width: calc(100% - 88px); height: 64px; font-size: 18px; }
  .cta__lead, .cta__note { max-width: calc(100% - 88px); }
  .cta__btn-arrow { right: 16px; }
  .cta__note { font-size: 12px; }
  .cta--last { padding-bottom: 24px; }
  .credit { margin-top: 20px; }

  /* ---------- FINACラーニングで学ぶ（Figma 24019:58054: 1161px） ---------- */
  .learn { padding: 60px 16px; }
  .learn::before { left: 0; right: auto; bottom: -128px; }
  .learn::after { left: auto; right: 0; top: 0; }
  .learn__inner { gap: 32px; }
  .learn__cards { flex-direction: column; gap: 16px; }
  .learn-card {
    width: 100%;
    height: 426px;
    padding: 28px 24px;
    border-width: 4px;
    border-radius: 20px;
    box-shadow: 0 0 16px rgba(0, 0, 0, .12);
  }
  .learn-card--bookkeeping { height: 455px; }
  .learn-card__title { font-size: 24px; }
  .learn-card__title-em { font-size: 34px; }
  .learn-card__illust { bottom: 40px; left: 9.2%; width: 62.3%; }
  .learn-card--bookkeeping .learn-card__illust { bottom: 32px; left: 22.6%; width: 50.9%; }
  .learn-card__arrow { right: 20px; bottom: 20px; }

  /* ---------- コースを探す（Figma 24019:53931: 1553px） ---------- */
  .courses { padding: 60px 16px; }
  .courses__body { gap: 32px; }
  .courses__row { gap: 12px; }
  .courses__row-title { font-size: 24px; }
  .courses__list { gap: 16px; }
  .carousel__track { margin-right: -16px; padding-right: 16px; } /* 右端はビューポート端まで */
  .course-card { width: 253px; }
  .courses__genres {
    gap: 20px;
    padding: 28px 16px;
    border-width: 4px;
    border-radius: 20px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(180deg, rgba(42, 87, 170, .7), rgba(0, 123, 101, .7)) border-box;
    box-shadow: 0 0 8px rgba(0, 0, 0, .12);
  }
  .courses__genres-title { font-size: 20px; }
  .courses__genre-list { gap: 14px 10px; }
  .genre-tag { gap: 8px; padding: 8px 12px; font-size: 14px; }

  /* ---------- 無料で学び放題（Figma 24019:55787: 707px） ---------- */
  .free { min-height: 707px; padding: 60px 16px; }
  .free::before { background: linear-gradient(200deg, rgba(0, 115, 94, .88) 2.48%, rgba(18, 68, 162, .88) 96.98%); }
  .free__inner { gap: 28px; }
  .free__catch { font-size: 20px; }
  .free__catch-lg { font-size: 26px; }
  .free__badge { padding: 12px 16px 14px; }
  .free__badge-text { font-size: 26px; }
  .free__badge-lg { font-size: 32px; }
  .free__card { gap: 8px; padding: 21px; border-radius: 16px; }
  .free__card-title { font-size: 20px; }

  /* ---------- なぜいま（Figma 24214:12602: 770px） ---------- */
  .why { padding: 60px 16px; }
  .why::before { left: 0; right: auto; bottom: -33px; }
  .why::after { left: auto; right: -3px; top: 0; }
  /* 回答の上余白は padding で取る（子の margin だと親の外へ相殺され、見出しが本文に重なる） */
  .why__inner { width: 343px; max-width: 100%; min-height: 0; padding: 83.5px 0 56px; }
  .why__answer {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 13px);
    margin-left: 13px;
    padding: 32px 20px 40px;
    border-width: 3px;
  }
  .why__question {
    left: 0;
    top: 0;
    width: 315px;
    max-width: calc(100% - 15px);
    padding: 16px 20px;
    border-width: 3px;
    font-size: 20px;
    white-space: normal;
  }
  .why__illust--finance { top: auto; bottom: -45px; left: 52.7%; width: 45.3%; }
  .why__illust--bookkeeping { top: auto; bottom: -40px; left: 12.8%; width: 34.6%; }

  /* ---------- アプリ（Figma 24019:58046: 176px） ---------- */
  .app { padding: 0 16px 40px; }

  /* ---------- ご利用者様の声（Figma 24019:60207: 1039.5px） ---------- */
  .voices { padding: 60px 16px; }
  .voices__inner { gap: 32px; }
  .voices__body { gap: 28px; }
  .voices__carousel { gap: 12px; }
  /* SP は 283px カード、右端はビューポート端まで */
  .voices__list { gap: 16px; margin-right: -16px; padding-right: 16px; }
  .voice-card { flex: 0 0 283px; padding: 20px 16px; }
  .voice-card__badge { right: 18px; }
  /* バナー（Figma banner_sp 345x216: 写真を上、文言を下に縦積み） */
  .voices__banner { width: 100%; height: auto; aspect-ratio: 345 / 216; }
  .voices__banner::before { background: radial-gradient(ellipse 80% 60% at 50% 85%, rgba(251, 104, 123, .3), rgba(251, 104, 123, 0) 70%); }
  .voices__banner-photo { top: 0; right: 0; left: 0; width: auto; height: 50%; overflow: hidden; }
  .voices__banner-photo img { width: 110%; max-width: none; margin: 3.7% 0 0 -7.25%; }
  .voices__banner-text {
    left: 0;
    right: 0;
    top: 57%;
    align-items: center;
    gap: 10px;
    font-size: 32px;
  }

  /* ---------- FAQ（Figma 24019:62306: 1450px） ---------- */
  .faq { padding: 40px 16px 60px; }
  .faq__inner { gap: 32px; }
  .faq__list { gap: 16px; }
  .faq__item { gap: 16px; padding: 20px 20px 28px; border-radius: 20px; }
  .faq__q, .faq__a { gap: 16px; }
  .faq__q { padding-bottom: 16px; }
  .faq__q-text { font-size: 16px; }

  /* ---------- 生涯成長支援サービス（Figma 24212:12446: 1831px） ---------- */
  .services { padding: 40px 16px; }
  .services__panel { gap: 28px; padding: 24px 12px; }
  .services__title { font-size: 32px; }
  .services__intro { gap: 20px; }
  .services__loop { width: 100%; padding: 0 12px; }
  .services__lead { font-size: 16px; text-align: left; }
  .services__cards { flex-direction: column; }
  .service-card__top { min-height: 0; }

}

/* 360px 未満: MV のバッジ 3 つが収まらないので縮小 */
@media (max-width: 359px) {
  .mv__badge { width: 96px; height: 96px; }
  .mv__title-main { font-size: 48px; }
  /* 文言の幅が取れないため、ドット飾りを消して余白を戻す */
  .cta__box::before, .cta__box::after { display: none; }
  .cta__btn { width: 100%; }
  .cta__lead, .cta__note { max-width: none; }
}
