@charset "UTF-8";

/* ====================================================== */
/* ========  デザイントークン（DESIGN.md 準拠）  ======== */
/* ====================================================== */
:root {
  --accent: #9DE3D8;
  --accent-hover: #7FCFC1;
  --accent-deep: #17806F;  /* 白背景に置く文字・罫線用（白に対して4.8:1） */
  /* 実績の丸の地色。参考デザインのシアン（#00A8D4 前後・白文字と2.8:1）を
     色味（色相194°）はそのままに、白文字が基準を満たす濃さまで落とした色（白文字と4.9:1） */
  --sub-accent: #007A9F;
  --ink: #2E2E2E;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --muted: #6B6B6B;
  --muted-inverse: #B3B3B3;
  --border: #E5E5E5;
  --inverse: #FFFFFF;

  /* フォームのエラー表示（文字色は白背景に対して5.4:1、淡い背景に対して4.7:1） */
  --error: #C0392B;
  --error-bg: #FCEDEB;

  /* 8px グリッド */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --space-5: 120px;

  /* レイアウト */
  /* セクション見出しの丸 */
  --sec-mark: clamp(60px, 5.5vw, 88px);

  --radius: 14px;
  --radius-lg: 24px;

  --container: 1184px;
  --gutter: 24px;
  --header-h: 64px;

  /* セクション上下余白（SP 88px → PC 160px）
     ゆとりを出すため、DESIGN.md の基準値（64/120）より1段広く取っている。
     全セクションの余白はこの1変数で調整できる。 */
  --section-y: 88px;
}

/* ====================================================== */
/* ========  ベース（モバイルファースト）  ============== */
/* ====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 固定ヘッダー分だけアンカー位置を下げる */
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: anywhere;
  /* SP は画面下部の固定CTAバー分を確保 */
  padding-bottom: 72px;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: .02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--inverse);
  padding: 12px 20px;
}

.skip-link:focus {
  top: 0;
  color: var(--inverse);
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
    --header-h: 88px;
    --section-y: 160px;
  }

  body {
    padding-bottom: 0;
  }
}

/* ====================================================== */
/* ========  スクロール連動フェードイン  ================ */
/* ====================================================== */
.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ====================================================== */
/* ========  ロゴ（ヘッダー・フッター共通）  ============ */
/* ====================================================== */
.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

/* フッターなど暗い背景の上 */
.logo--inverse {
  color: var(--inverse);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__sub {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.logo__name {
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* 「ゆび先生」だけ大きく太く見せる */
.logo__strong {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .02em;
}

@media (min-width: 1024px) {
  .logo__name {
    font-size: 1rem;
  }

  .logo__strong {
    font-size: 1.75rem;
  }
}

/* ====================================================== */
/* ========  ボタン  ==================================== */
/* ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.4;
  padding: 16px 32px;
  border-radius: 9999px;
  transition: background-color .2s ease, color .2s ease;
}

.btn__arrow {
  font-size: 1.125rem;
  line-height: 1;
  transition: transform .2s ease;
}

/* CTAの右端に置く白い丸バッジ */
.btn__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: -18px; /* ピルの右端に寄せる */
  border-radius: 50%;
  background: var(--inverse);
  color: var(--ink);
  flex: none;
  transition: transform .2s ease;
}

.btn:hover .btn__badge {
  transform: translateX(4px);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

.btn--ghost {
  background: var(--inverse);
  color: var(--ink);
  font-size: 1.125rem;
  padding: 20px 44px;
}

.btn--ghost:hover {
  background: var(--inverse);
  color: var(--accent-deep);
}

/* 「すべて見る」テキストリンク */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .9375rem;
  border-bottom: 2px solid var(--accent-deep);
  padding-bottom: 6px;
}

.link-more__arrow {
  color: var(--accent-deep);
  transition: transform .2s ease;
}

.link-more:hover .link-more__arrow {
  transform: translateX(4px);
}

/* ====================================================== */
/* ========  セクション見出し（黒帯ラベル＋大見出し）  == */
/* ====================================================== */
.label {
  align-self: flex-start;
  background: var(--ink);
  color: var(--inverse);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.4;
  padding: 8px 20px;
}

/* 写真の上に置く場合は白背景に反転する（DESIGN.md §5） */
.label--inverse {
  background: var(--inverse);
  color: var(--ink);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-head__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .section-head {
    gap: 20px;
  }
}

/* ====================================================== */
/* ========  ヘッダー  ================================== */
/* ====================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  transition: box-shadow .3s ease;
}

/* スクロール後だけ影を出す */
.header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.header__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* --- ハンバーガー（1024px 未満） --- */
.header__burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header__burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease, background-color .3s ease;
}

.header__burger[aria-expanded="true"] .header__burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-bar:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- ナビ（SP はドロワー） --- */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--space-1) var(--gutter) var(--space-3);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.nav.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.nav__link {
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.nav__cta {
  margin-top: var(--space-3);
}

@media (min-width: 1024px) {
  .header__burger {
    display: none;
  }

  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    color: var(--ink);
    font-size: .9375rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
  }

  .nav__link:hover {
    color: var(--ink);
    border-bottom-color: var(--accent-deep);
  }

  .nav__cta {
    margin-top: 0;
  }
}

/* ====================================================== */
/* ========  ヒーロー（FV）  ============================ */
/* ====================================================== */
.hero {
  /* 英字の大きさ（SP 56px 〜 PC 88px）。「You'll Be...」は1行で表示する。
     Noto Sans JP は参考デザインの書体より横に広いので、横幅の比率（画面幅の約24%）で合わせている */
  --en-size: clamp(3.5rem, 4.7vw, 5.5rem);
  /* 英字の下（PCは横）に置くキャッチの大きさ */
  --catch-size: clamp(1.25rem, 2.1vw, 1.875rem);
  /* 実績の丸の直径と間隔 */
  --stats-d: clamp(96px, 27vw, 112px);
  --stats-gap: var(--space-2);
  /* 帯より下の余白：帯→実績、実績→英字、キャッチ→ファーストビューの下端 */
  --stats-top: var(--space-2);
  --head-top: var(--space-3);
  --fv-bottom: var(--space-2);
  /* 本文に添える写真円2つの直径 */
  --sub-a: clamp(160px, 52vw, 300px);
  --sub-b: clamp(96px, 30vw, 170px);
  /* 円のフチ（白フチと黒の輪郭）の太さ */
  --ring-white: clamp(5px, .62vw, 10px);
  --ring-line: clamp(2px, .28vw, 4px);
  /* 帯より下でファーストビューに収めたい高さ。SPは「実績／英字／キャッチ」を縦に積む */
  --fv-below: calc(var(--stats-top) + var(--stats-d) + var(--head-top) + var(--en-size) * .95 + var(--space-1) + var(--catch-size) * 1.5 + var(--fv-bottom));
  /* 帯の高さ。原稿比率（1000:442＝44.2vw）を上限に、
     ヘッダー＋帯＋実績＋英字が画面の高さに収まるように頭打ちにする（最低260px） */
  --band-h: max(260px, min(44.2vw, calc(100svh - var(--header-h) - var(--fv-below))));
  padding-top: var(--header-h); /* 固定ヘッダーの分だけ下げる */
  background: var(--bg);
}

/* --- ミントの帯：円のクラスターを載せる土台 --- */
.hero__band {
  position: relative;
  width: 100%;
  height: var(--band-h);
  background: var(--accent);
  overflow: hidden;
}

/* --- 装飾の円（グレー＋黒フチ） --- */
.hero__bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden; /* 帯の上下からはみ出す装飾は隠す */
}

/* --cx / --cy は中心座標、--d は直径。すべて帯の幅に対する割合 */
/* 円は「写真＋黒の輪郭＋白フチ」のステッカー（原稿の ai と同じ構造）。
   後ろの円ほど先に置き、前の円の白フチが背面の円を切る形で重なりを表現する。 */
.bubble {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  height: var(--d);
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  border: var(--ring-line) solid var(--ink);
  border-radius: 50%;
  background: var(--border);
  overflow: hidden;
  box-shadow:
    0 0 0 var(--ring-white) var(--bg),          /* 白フチ */
    0 6px 14px var(--ring-white) rgba(0, 0, 0, .07); /* 白フチの外側に落とす影 */
}

/* 円の中の写真。ai の構図どおりに正方形で切り出してあるので、そのまま敷き詰める */
.bubble img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 原稿（3200×1000＝16:5）の比率を保ったまま帯を覆うステージ。
   円はこの中の割合で置くので、画面幅が変わっても構図が崩れない。 */
.hero__stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(var(--band-h) * 16 / 5));
  aspect-ratio: 16 / 5;
}

/* --- 帯の下のリード（実績／英字＋キャッチ／本文＋写真円） --- */
.hero__inner {
  padding-bottom: var(--section-y);
}

/* --- 実績（丸の横並び） --- */
/* SPは丸を読める大きさのまま横一列に並べ、main.js で一覧を複製して横に流す（.is-loop）。
   JSが動かない・動きを減らす設定のときは、指で横スクロールして見る */
.hero__stats {
  margin-top: var(--stats-top);
  /* 画面の端から端まで使うため、左右の余白を打ち消す */
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scrollbar-width: none;
}

.hero__stats::-webkit-scrollbar {
  display: none;
}

.hero__stats-track {
  display: flex;
  width: max-content;
  padding-inline: var(--gutter);
}

.hero__stats.is-loop {
  overflow: hidden;
}

.hero__stats.is-loop .hero__stats-track {
  padding-inline: 0;
  animation: statsLoopSP 16s linear infinite;
}

/* 触れている間（タップ・ホバー・フォーカス中）は止めて読めるようにする */
.hero__stats.is-loop:hover .hero__stats-track,
.hero__stats.is-loop:focus-within .hero__stats-track {
  animation-play-state: paused;
}

/* 一覧を3つつないでいるので、1つ分（全体の1/3）ずらすと継ぎ目なくつながる */
@keyframes statsLoopSP {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% / 3));
  }
}

.stats {
  margin: 0;
  display: flex;
  gap: var(--stats-gap);
  /* 一覧の後ろにも同じ間隔を持たせ、複製をつないだ継ぎ目の間隔をそろえる */
  padding-right: var(--stats-gap);
}

/* 丸の中の文字は直径（--stats-d）に比例させ、どの画面幅でも丸からはみ出さないようにする */
.stats__item {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--stats-d) * .03);
  width: var(--stats-d);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sub-accent);
  color: var(--inverse);
  text-align: center;
}

/* 参考デザインどおりの繰り返し表示（2件）。SPのループでは同じ並びが続くように使わない
   （.stats__item の display を上書きするため、その後ろに書く） */
.stats__item--repeat {
  display: none;
}

.stats__label {
  font-size: max(.6875rem, calc(var(--stats-d) * .1));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
}

.stats__value {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--stats-d) * .02);
  font-weight: 700;
  line-height: 1;
}

.stats__num {
  font-size: calc(var(--stats-d) * .21);
  font-weight: 900;
  letter-spacing: -.02em;
}

/* 数値の前後に添える小さな単位。「年間」は幅を1字にして縦に積む */
.stats__pre,
.stats__unit {
  font-size: max(.5625rem, calc(var(--stats-d) * .075));
  line-height: 1.15;
}

.stats__pre {
  width: 1em;
}

.stats__unit {
  text-align: left;
}

/* --- 英字＋キャッチ（SPは縦積み） --- */
.hero__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1) clamp(16px, 2.8vw, 48px);
  margin-top: var(--head-top);
}

/* 装飾の英字。行間を詰めて塊に見せる */
.hero__en {
  font-size: var(--en-size);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--ink);
}

.hero__catch {
  font-size: var(--catch-size);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

/* --- 本文＋写真円 --- */
/* 「本文｜大きい円」「見出し」「小さい円＋締めの本文」の3段。
   SPは1列目を小さい円の幅にして、締めの本文を小さい円の右に置く */
.hero__body {
  display: grid;
  grid-template-columns: var(--sub-b) minmax(0, 1fr);
  grid-template-areas:
    "text  text"
    "suba  suba"
    "title title"
    "subb  end";
  column-gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero__text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 36em; /* タブレットで1行が長くなりすぎないように（全角36字前後）。PCは列幅で決まる */
  font-size: 1rem; /* 読みやすさを優先して本文の標準（16px）にそろえる */
  line-height: 1.9;
}

/* 見出しの下の本文。本文ブロックの一番下に、小さい円と上下の中心をそろえて置く */
.hero__text--end {
  grid-area: end;
  align-self: center;
  line-height: 2.2; /* 締めの本文は行間を広めに取る（ほかの本文は1.9） */
}

/* ページの見出し */
.hero__title {
  grid-area: title;
  margin-top: var(--space-3);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
}

/* 見出しの文節。狭い幅でも文節の途中（「これから」／を など）では折り返さない */
.hero__phrase {
  display: inline-block;
}

/* 写真円（白フチ・影なし） */
.hero__sub {
  margin: 0;
  border-radius: 50%;
  background: var(--border);
  overflow: hidden;
  aspect-ratio: 1;
}

/* 写真は参考デザインの構図で正方形に切り出してあるので、そのまま敷き詰める */
.hero__sub img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 大きい円は右に寄せる */
.hero__sub--a {
  grid-area: suba;
  justify-self: end;
  width: var(--sub-a);
  margin-top: var(--space-3);
}

.hero__sub--b {
  grid-area: subb;
  align-self: center;
  justify-self: start;
  width: var(--sub-b);
}

/* 小さい円と締めの本文は同じ余白を取り、上下の中心をそろえる */
.hero__sub--b,
.hero__text--end {
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .hero {
    /* 5つを1列に並べても文字が読める大きさを保つ */
    --stats-d: clamp(104px, 10.67vw, 160px);
  }

  /* 丸5つが画面に収まる幅なので、流さずに中央に並べる */
  .hero__stats,
  .hero__stats.is-loop {
    margin-inline: 0;
    overflow: visible;
  }

  .hero__stats-track,
  .hero__stats.is-loop .hero__stats-track {
    justify-content: center;
    width: auto;
    padding-inline: 0;
    animation: none;
  }

  .stats {
    padding-right: 0;
  }

  .stats--clone {
    display: none;
  }

  .stats__item--repeat {
    display: flex;
  }

  /* 英字とキャッチは、幅が足りるときだけ横に並べる */
  .hero__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    /* 実績と余白は、参考デザインの画面幅に対する割合で拡大縮小する
       （丸の直径10.67%、間隔2.46%、帯→実績1.67%、実績→英字2.5%） */
    --stats-d: clamp(120px, 10.67vw, 160px);
    --stats-gap: clamp(16px, 2.46vw, 40px);
    --stats-top: clamp(16px, 1.67vw, 28px);
    --head-top: clamp(20px, 2.5vw, 40px);
    /* 英字とキャッチ、本文と写真円のブロック幅（参考デザインは画面幅の57.7%） */
    --lead-w: clamp(760px, 57.7vw, 960px);
    --sub-a: clamp(220px, 22.9vw, 360px);
    --sub-b: clamp(130px, 13.75vw, 220px);
    /* 見出し→締めの本文の余白 */
    --end-gap: clamp(16px, 1.67vw, 24px);
    /* PCは英字とキャッチが横並びなので、帯より下の高さは英字1行ぶん */
    --fv-below: calc(var(--stats-top) + var(--stats-d) + var(--head-top) + var(--en-size) * .95 + var(--fv-bottom));
    /* PCは帯の高さを原稿（16:5＝幅の31.25%）基準にする。
       帯が原稿より縦長にならないので、ステージが横にはみ出して左右の円が切れることがない。
       画面の高さが足りないときは、ファーストビューに収まる高さで頭打ち（円の上下が切れる） */
    --band-h: max(260px, min(31.25vw, calc(100svh - var(--header-h) - var(--fv-below))));
  }

  .hero__stage {
    /* 横は常に帯の幅に合わせ、左右の円を原稿以上に切らない（切るなら上下） */
    width: 100%;
  }

  .hero__head,
  .hero__body {
    width: min(100%, var(--lead-w));
    margin-inline: auto;
  }

  /* 英字は本文の左端、キャッチは写真円の右端にそろえる */
  .hero__head {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* キャッチは1行で見せる（英字 約24vw＋間隔2.8vw＋キャッチ 約29.7vw が、ブロック幅57.7vwに収まる） */
  .hero__catch {
    white-space: nowrap;
  }

  /* 左列に本文・見出し・締めの本文、右列に写真円。締めの本文は小さい円の左に並ぶ */
  .hero__body {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "text  suba"
      "title ."
      "end   subb";
    column-gap: clamp(32px, 3.3vw, 56px);
    align-items: start;
    margin-top: clamp(32px, 3.75vw, 64px);
  }

  .hero__text {
    font-size: 1.0625rem; /* PCは17px */
  }

  /* 大きい円は本文より少しだけ上から始め、
     小さい円の左端が大きい円より少し左に出るように右へずらす */
  .hero__sub--a {
    margin-top: clamp(-32px, -1.7vw, -16px);
    margin-left: calc(var(--sub-a) * .055);
  }

  .hero__title {
    margin-top: clamp(24px, 2.5vw, 40px);
  }

  /* 見出しと締めの本文の間は詰める。3段目の高さは締めの本文だけで決める */
  .hero__text--end {
    margin-top: var(--end-gap);
  }

  /* 小さい円は締めの本文より背が高いので、本文の中心にそろえたまま上下にはみ出させる。
     上下に半径ぶんの負の余白を付けて、円の高さを段の高さに持ち込まない
     （上は締めの本文と同じ余白を足して、中心の位置をそろえる） */
  .hero__sub--b {
    margin-top: calc(var(--end-gap) - var(--sub-b) / 2);
    margin-bottom: calc(var(--sub-b) / -2);
  }
}

/* ====================================================== */
/* ========  セクション見出し（丸＋和文＋大きな欧文）  == */
/* ====================================================== */
.sec-head {
  position: relative;
  isolation: isolate; /* 丸を文字の背面に置くための基準 */
  display: flex;
  flex-direction: column;
  /* 和文と欧文を密着させ、丸に対して文字の塊を小さく保つ */
  gap: 0;
  /* 文字全体を丸の中心あたりまで右にずらし、丸の右半分に重ねる */
  padding-left: calc(var(--sec-mark) * .6);
  margin-bottom: var(--space-3);
}

/* 見出しの左上に敷くミントの丸 */
.sec-head__mark {
  position: absolute;
  left: 0;
  /* 丸の下半分が欧文見出しに重なる位置まで持ち上げる */
  top: calc(var(--sec-mark) * -.45);
  z-index: -1;
  width: var(--sec-mark);
  height: var(--sec-mark);
  border-radius: 50%;
  background: var(--accent);
}

.sec-head__ja {
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2; /* 行間を詰めて欧文と密着させる */
  letter-spacing: .08em;
}

.sec-head__en {
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
}

@media (min-width: 1024px) {
  .sec-head {
    margin-bottom: var(--space-4);
  }
}

/* ====================================================== */
/* ========  お知らせ（News）  ========================== */
/* ====================================================== */
.news {
  padding-block: var(--section-y);
  background: var(--bg);
}

.news__list {
  display: flex;
  flex-direction: column;
}

.news__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: var(--space-2);
}

/* 区切り線は項目と項目のあいだだけに引く */
.news__item + .news__item {
  border-top: 1px solid var(--border);
}

.news__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.news__date {
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .04em;
}

/* カテゴリは下線付きのリンク */
.news__cat {
  color: var(--accent-deep);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news__cat:hover {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
}

.news__title {
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.8;
}

/* 「すべて見る」：SP は左寄せ、PC は右端 */
.news__foot {
  margin-top: var(--space-3); /* 一覧との間隔（隣接1箇所のみのため margin で指定） */
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .news__item {
    padding-block: var(--space-3);
  }

  .news__title {
    font-size: 1rem;
  }

  .news__foot {
    justify-content: flex-end;
  }
}

/* ====================================================== */
/* ========  活動内容（Activities）  ==================== */
/* ====================================================== */
.activities {
  padding-block: var(--section-y);
  background: var(--bg);
}

.activities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) 24px;
}

.act-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* リンクになっているカードも並びを揃える */
.act-card__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}

.act-card__link:hover {
  color: inherit;
}

.act-card__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.act-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.act-card__link:hover .act-card__media img {
  transform: scale(1.04);
}

.act-card__ph {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .14em;
}

.act-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}

.act-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex: none;
}

.act-card__link:hover .act-card__title {
  color: var(--accent-deep);
}

.act-card__text {
  font-size: .875rem;
  line-height: 1.9;
  color: var(--ink);
}

@media (min-width: 640px) {
  .activities__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .activities__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .act-card__title {
    font-size: 1.25rem;
  }
}

/* ====================================================== */
/* ========  よくあるご質問（FAQ）  ===================== */
/* ====================================================== */
.faq {
  padding-block: var(--section-y);
  background: var(--bg-alt);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* 左端のミントの丸「Q」 */
.faq-card__badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.faq-card__q {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  text-wrap: pretty;
}

.faq-card__a {
  font-size: .9375rem;
  line-height: 1.9;
  animation: faqOpen .25s ease;
}

/* 閉じている間は回答を隠す */
.faq-card:not(.is-open) .faq-card__a {
  display: none;
}

.faq-card__foot {
  display: flex;
  justify-content: flex-end;
}

.faq-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 16px;
  border: none;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s ease;
}

.faq-card__toggle:hover {
  background: var(--accent-hover);
}

.faq-card__toggle-icon {
  font-size: .625rem;
  transition: transform .25s ease;
}

.faq-card.is-open .faq-card__toggle-icon {
  transform: rotate(180deg);
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .faq-card {
    padding: var(--space-3) var(--space-4);
  }

  .faq-card__q {
    font-size: 1.125rem;
  }
}

/* ====================================================== */
/* ========  フッターCTA  =============================== */
/* ====================================================== */
.cta {
  padding-block: var(--section-y);
  background: var(--bg);
}

/* トップの大きなCTA。ボックス自体はリンクにせず、中の白ボタンだけを押させる
   （押す場所を1つに絞り、将来ここに電話番号などの導線を足せるようにするため） */
.cta__box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--ink);
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__en {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.cta__title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* 画面が狭いときは「お気軽に／ご相談ください」で改行し、語の途中で折り返さないようにする */
.cta__title-line {
  display: block;
}

.cta__text {
  max-width: 32em; /* 1行が長くなりすぎて、2行目が数文字だけ残るのを防ぐ */
  font-size: .9375rem;
  line-height: 1.9;
}

/* 相談できる内容の例。白い半透明のピルで並べる */
.cta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.cta__tag {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .7);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
}

/* 狭い画面ではボタンの文字が折り返さないよう、少しだけ控えめな寸法にする */
.cta__btn {
  width: 100%;
  justify-content: center;
  padding-inline: 24px;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .cta__title-line {
    display: inline;
  }

  .cta__btn {
    width: auto;
    padding-inline: 44px;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  /* PCは左にコピー、右にボタン。align-items: center でボタンをボックスの上下中央に置く */
  .cta__box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .cta__btn {
    flex: none; /* 文字数に合わせた幅のまま縮めない */
  }
}

/* ====================================================== */
/* ========  下層ページ：ページヘッド  ================== */
/* ====================================================== */
.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  background: var(--ink);
  overflow: hidden;
}

/* 背景画像は、ページ側から --page-head-image で差し替えられる（未指定なら既定の写真） */
.page-head__media {
  position: absolute;
  inset: 0;
  /* 固定ヘッダー（不透明）の裏に写真が入り込むと、人物の頭が隠れて見切れる。
     写真はヘッダーの下から始め、隠れる部分を作らない */
  top: var(--header-h);
  background-image: var(--page-head-image, url("../assets/img/page-head-sp.webp"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 写真の明暗にかかわらず白文字の可読性を保つため、均一な暗幕にする
   （グラデーションだと写真の明るい部分でヘッダーのナビが読みにくくなる） */
.page-head__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 17, .76);
  pointer-events: none;
}

.page-head__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--space-3)) var(--gutter) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-head__title-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.page-head__title {
  color: var(--inverse);
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .page-head {
    min-height: 400px;
  }

  .page-head__media {
    background-image: var(--page-head-image, url("../assets/img/page-head.webp"));
  }

  .page-head__inner {
    padding-block: calc(var(--header-h) + var(--space-4)) var(--space-5);
    gap: var(--space-4);
  }
}

/* ====================================================== */
/* ========  パンくずリスト  ============================ */
/* ====================================================== */
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  letter-spacing: .04em;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-inverse);
}

/* 2つ目以降の項目の前に区切りの「›」を置く */
.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  color: var(--muted-inverse);
}

.breadcrumb__item a {
  color: var(--inverse);
}

.breadcrumb__item a:hover {
  color: var(--inverse);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ====================================================== */
/* ========  下層ページ：開催実績一覧  ================== */
/* ====================================================== */
.talks {
  padding-block: var(--section-y);
  background: var(--bg);
}

.talks__lead {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

.talks__count {
  margin-top: var(--space-2);
  text-align: center;
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .08em;
}

.talks__empty {
  padding-block: var(--space-4);
  text-align: center;
  color: var(--muted);
}

.talks__back {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
}

/* --- 絞り込みボタン（ピル形状） --- */
/* SPは横並びだと3＋1で折り返して不格好になるため、2×2のグリッドで揃える */
.filter {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.filter__btn {
  min-height: 44px; /* タップ領域の確保 */
  padding: 10px 26px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.filter__btn:hover {
  border-color: var(--ink);
}

/* 選択中。アクセントはCTA専用のため、状態表示にはチャコールを使う */
.filter__btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--inverse);
}

/* --- 実績カード --- */
.talks__grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) 24px;
}

.talk {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.talk[hidden] {
  display: none;
}

.has-js .talk {
  animation: talkIn .45s ease both;
}

.talk__media {
  aspect-ratio: 16 / 9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.talk__ph {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .14em;
}

.talk__img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.talk__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.talk__date {
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.talk__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 700;
}

.talk__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex: none;
}

.talk__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  text-wrap: pretty;
}

/* 詳細ページがある実績のみタイトルをリンクにする */
.talk__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 見出しのリンクを透明な面としてカード全体に広げ、写真や日付を押しても詳細へ進めるようにする
   （リンクを1つに保つため、写真は別リンクにしない） */
.talk--link {
  position: relative;
}

.talk--link .talk__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.talk__arrow {
  color: var(--accent-deep);
  transition: transform .2s ease;
}

/* カードのどこにカーソルを乗せても、リンクだと分かるように反応させる */
.talk--link:hover .talk__arrow {
  transform: translateX(4px);
}

.talk--link:hover .talk__link {
  color: var(--accent-deep);
}

.talk--link:hover .talk__img {
  transform: scale(1.04);
}

.talk__venue {
  color: var(--muted);
  font-size: .875rem;
}

.talk__excerpt {
  font-size: .9375rem;
  line-height: 1.8;
}

/* 絞り込み直後にカードを順に立ち上げる */
@keyframes talkIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.talk:nth-child(2) { animation-delay: .04s; }
.talk:nth-child(3) { animation-delay: .08s; }
.talk:nth-child(4) { animation-delay: .12s; }
.talk:nth-child(5) { animation-delay: .16s; }
.talk:nth-child(6) { animation-delay: .20s; }
.talk:nth-child(7) { animation-delay: .24s; }
.talk:nth-child(8) { animation-delay: .28s; }
.talk:nth-child(9) { animation-delay: .32s; }

@media (min-width: 640px) {
  .filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .talks__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .talks__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .talk__title {
    font-size: 1.375rem;
  }
}

/* ====================================================== */
/* ========  下層ページ：開催実績の詳細  ================ */
/* ====================================================== */
/* 詳細ページは見出しが本文なので、ページヘッドは少し低くする */
.page-head--detail {
  min-height: 240px;
}

.page-head__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.page-head__date {
  color: var(--inverse);
  font-size: .875rem;
  letter-spacing: .04em;
}

.label--sm {
  font-size: .8125rem;
  padding: 5px 14px;
}

.page-head__title--detail {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  text-wrap: pretty;
}

.detail {
  padding-block: var(--section-y);
  background: var(--bg);
}

/* 本文は読みやすさ優先で行長を抑える */
.detail__inner {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.detail__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail__figure-media {
  aspect-ratio: 16 / 9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail__caption {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.8;
}

.detail__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.detail__heading {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
  border-left: 4px solid var(--accent-deep); /* アクセントは強調記号としてのみ使う */
  padding-left: 16px;
}

.detail__subheading {
  margin-top: var(--space-2);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}

/* --- 開催概要（定義リスト） --- */
.detail__info {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.detail__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.detail__term {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.detail__desc {
  margin: 0;
  line-height: 1.8;
}

/* --- 本文 --- */
.detail__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  line-height: 1.9;
}

/* 本文中の箇条書き（プライバシーポリシーなど） */
.detail__list {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.9;
}

.detail__quote {
  margin: var(--space-2) 0;
  padding: var(--space-3);
  background: var(--bg-alt);
  color: var(--ink);
}

.detail__quote p {
  line-height: 1.9;
}

/* --- 写真ギャラリー --- */
.detail__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail__gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail__nav {
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .detail__row {
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: baseline;
  }

  .detail__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-head--detail {
    min-height: 340px;
  }

  .detail__inner {
    gap: var(--space-5);
  }
}

/* ====================================================== */
/* ========  下層ページ：お問い合わせフォーム  ========== */
/* ====================================================== */
.form-section {
  padding-block: var(--section-y);
  background: var(--bg);
}

/* 入力しやすさ優先で行長を抑える（本文ページと同じ幅） */
.form-section__inner {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-section__lead {
  line-height: 1.9;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* 送信できなかったときに、フォームの先頭へ出す案内 */
.form__alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--error-bg);
  color: var(--error);
  font-weight: 700;
  line-height: 1.7;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.form__required,
.form__optional {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  white-space: nowrap; /* 「必須」が行末で2文字に割れないようにする */
}

.form__required {
  background: var(--accent-deep);
  color: var(--inverse);
}

.form__optional {
  background: var(--bg-alt);
  color: var(--muted);
}

/* font-size は 16px 未満にしない（iOS で入力時に画面が拡大されるため） */
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  transition: border-color .2s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--accent-deep);
}

.form__textarea {
  resize: vertical;
  min-height: 200px;
}

.form__input::placeholder {
  color: #9A9A9A; /* --muted では薄い背景に対して入力済みの文字と紛れるため、1段薄くする */
}

/* 選択欄は、ブラウザ標準の矢印を消して自前の「▼」を重ねる */
.form__select-wrap {
  position: relative;
}

.form__select {
  appearance: none;
  padding-right: 44px;
}

.form__select-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .75rem;
  pointer-events: none;
}

.form__input.is-error,
.form__select.is-error,
.form__textarea.is-error {
  border-color: var(--error);
  background: var(--error-bg);
}

.form__error {
  color: var(--error);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.7;
}

/* 機械的な投稿を判別するための項目。画面の外に置いて人には見せない
   （display:none だと無視するプログラムがあるため、位置で隠す） */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__consent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form__check-input {
  width: 20px;
  height: 20px;
  margin-top: 3px; /* 文字の1行目の中心に合わせる */
  flex: none;
  accent-color: var(--accent-deep);
}

/* リンクと文字を続けて読ませたいので、flex にせず通常の行として流す */
.form__check-text {
  font-size: .9375rem;
  line-height: 1.9;
}

.form__check-text .form__required {
  margin-left: 8px;
}

.form__check-text a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__submit-area {
  display: flex;
  justify-content: center;
}

.form__submit {
  width: 100%;
  max-width: 320px;
  padding-block: 20px;
  border: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  cursor: pointer;
}

/* --- 送信完了 --- */
.form-done {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  text-align: center;
}

.form-done__title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.5;
}

.form-done__text {
  line-height: 1.9;
}

.form-done__note {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.8;
}

.form-done__action {
  margin-top: var(--space-1);
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .form-section__inner {
    gap: var(--space-4);
  }

  .form {
    gap: var(--space-4);
  }

  .form__consent {
    padding: var(--space-3);
  }

  .form-done {
    padding: var(--space-4);
  }
}

/* ====================================================== */
/* ========  フッター  ================================== */
/* ====================================================== */
.footer {
  padding-block: var(--space-3);
  background: var(--ink);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer__link {
  color: var(--inverse);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.footer__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__copy {
  color: var(--muted-inverse);
  font-size: .75rem;
  letter-spacing: .08em;
}

@media (min-width: 1024px) {
  .footer {
    padding-block: 48px;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ====================================================== */
/* ========  ページ上部へ戻るボタン  ==================== */
/* ====================================================== */
.to-top {
  position: fixed;
  right: var(--gutter);
  /* SP は画面下部の固定CTAバー（約72px）に重ならない位置に置く */
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.to-top:hover {
  background: var(--accent);
  color: var(--ink);
}

/* 文字の「›」を回転させると字形のインク位置ぶん中心がずれるため、
   幾何学的に中央へ揃うSVGのシェブロンを使う。 */
.to-top__icon {
  display: block;
}

/* JSがある時だけ、少しスクロールしてから現れる（JS無効時は常時表示） */
.has-js .to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.has-js .to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (min-width: 1024px) {
  .to-top {
    bottom: var(--gutter);
    width: 56px;
    height: 56px;
  }
}

/* ====================================================== */
/* ========  スマホ用 固定CTAバー  ====================== */
/* ====================================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}

.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 9999px;
}

.sticky-cta__btn:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

/* ====================================================== */
/* ========  404ページ  ================================= */
/* ====================================================== */
.notfound {
  padding-block: calc(var(--header-h) + var(--section-y)) var(--section-y);
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.notfound__code {
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}

.notfound__title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
}

.notfound__text {
  font-size: .9375rem;
  line-height: 1.9;
  color: var(--muted);
}

.notfound .link-more {
  margin-top: var(--space-2);
}

/* ====================================================== */
/* ========  アニメーション抑制の配慮  ================== */
/* ====================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important; /* 動きに敏感なユーザー向けに全アニメを停止 */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .logos__track {
    animation: none;
  }

  /* 実績のループを止め、複製を隠して指で横スクロールできる状態に戻す */
  .hero__stats.is-loop {
    overflow-x: auto;
  }

  .hero__stats.is-loop .hero__stats-track {
    padding-inline: var(--gutter);
    animation: none;
  }

  .stats--clone {
    display: none;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }

  .has-js .talk {
    animation: none;
  }
}
