@charset "UTF-8";
/* ==========================================================================
   スキノビ診断ページ  css/sukinobi.css

   目次（HTML のセクションと同じ順番）
     0. 設定（色・文字・サイズ）
     1. ベース
     2. 共通パーツ（レイアウト・見出し・ボタン・カード）
     3. 状態クラス（JS が付け外しする）
     4. （ヘッダーは本家の header.php を使う。ここには何もない）
     5. ファーストビュー
     6. 診断（質問）
     7. 診断結果 ※中身は JS が生成
     8. スキノビとは
     9. 7つのタイプ ※カードは JS が生成
    10. なぜ「好き」から始めるの？（スライダー）
    11. コース ※カードは JS が生成
    12. よくある質問
    13. 無料体験フォーム
    14. 運営会社
    15. 商標の注記（フッターは本家の footer.php を使う）
    16. アニメーション
    17. 申込完了ページ（page-sukinobi-completed.php）

   ブレイクポイント
     スマホのデザインを基準に書き、広い画面の指定を min-width で足していく。
     各パーツのすぐ下に @media を置いているので、パーツごとに読めばOK。
       〜767px     … スマホ（基準・本デザイン）
       768px〜     … タブレット（暫定）
       1080px〜    … PC（暫定）

   イラスト・画像について
     今は仮の表示（棒人間SVG・グレーの枠・無地の背景）。
     差し込む場所には「TODO」と書いてある（HTML・JS・この CSS の 0. 設定）。

   本家（WordPress テーマ）との関係
     ヘッダー・フッターは本家のもの。本家の CSS（reset.css・main.css など）もこのページに読み込まれる。
     この CSS は本文の <main class="sukinobi-page"> の中だけに効くようにしてあり、本家のヘッダー・フッターには効かない。
     本家の CSS より後に読み込まれるので、同じ強さの指定ならこちらが勝つ。

   クラス名について
     7・9・11 の中のクラスは js/sukinobi.js が HTML を作るときに使っている。
     名前を変えるときは js/sukinobi.js 側も合わせて変えること。
   ========================================================================== */


/* ==========================================================================
   0. 設定（色・文字・サイズ）
   ここを変えると、ページ全体に反映される
   ========================================================================== */
:root {
  /* 色 */
  --yellow: #FFEB00;      /* メインの黄色 */
  --yellow-soft: #FFF7A8; /* 薄い黄色 */
  --ink: #111;            /* 文字・線の黒 */
  --sub: #777;            /* 補足文字のグレー */
  --line: #E6E7EB;        /* 薄い線・未選択の丸 */
  --gray-bg: #EEF0F4;     /* 「なぜ好きから」の背景 */
  --err: #C8102E;         /* エラーの赤 */
  --err-soft: #FFF0F2;    /* エラー欄の背景 */

  /* コースの色 */
  --c-robotBasic: #F0386B;
  --c-robotStandard: #FF6B2B;
  --c-minecraft: #00A93C;
  --c-scratch: #FFAA00;
  --c-gameApp: #0A82DA;

  /* 文字の種類（ページ全体でこの1つだけ）
     英数字は Futura、日本語はヒラギノ角ゴ。
     Futura・ヒラギノがない端末（Windows・Android）は、近い形の Web フォント
     Jost（英数字）・Noto Sans JP（日本語）で表示する。
     英字フォントを先に書くと、英数字は英字フォント、日本語はその次の日本語フォントで表示される。 */
  --font: "Futura", "Jost", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  /* 文字の大きさは変数にせず、各所で rem を直接書く（1rem = 14px。1. ベースの html を参照） */

  /* サイズ */
  --border: 2px;      /* 黒い線の太さ */
  --radius: 14px;     /* カードの角丸 */
  --content-w: 1040px;/* 中身の最大幅（スマホ・タブレット）。PC ではこれより狭くはしない */
  --pc-w: 80%;        /* PC（1080px〜）の中身の横幅：画面幅に対する割合 */
  --gutter: 20px;     /* 画面の左右の余白 */
  --header-h: 72px;   /* ヘッダーの高さ（ページ内リンクの止まる位置に使う） */

  /* 背景の柄 ※TODO：イラストの柄が届いたら url(...) に差し替える */
  --pattern-yellow: url("../images/sukinobi/bg01.svg"); /* 診断・結果・申込（黄色に白い線画の棒人間） */
  /* 柄1枚の横幅：セクションの横幅（≒画面幅）に対する割合。画面幅に合わせて柄も大きくなる。
     小さくすると柄が細かくなる。割合は仮（下の @media で画面幅ごとに変える） */
  --pattern-yellow-w: 120%; /* スマホ */
  --pattern-gray: url("../images/sukinobi/bg03.svg"); /* なぜ好きから（グレーに白いハート・キラキラ） */
  --pattern-gray-w: 60%;  /* 柄1枚の横幅（セクション幅に対する割合）：スマホ。仮の値 */
  --pattern-grid: url("../images/sukinobi/bg02.svg"); /* 方眼（7つのタイプ・理由の枠・おすすめの枠・スライダーのカード）。15px で敷き詰める */
}

/* 背景の柄の大きさ（画面幅ごとの割合） */
@media (min-width: 768px) {
  :root {
    --pattern-yellow-w: 70%;  /* タブレット */
    --pattern-gray-w: 30%;
  }
}

@media (min-width: 1080px) {
  :root {
    --pattern-yellow-w: 38%;  /* PC */
    --pattern-gray-w: 16%;
  }
}


/* ==========================================================================
   1. ベース
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 文字の大きさの基準：14px（ブラウザの標準 16px × 87.5%）。1rem = 14px。
   各所の font-size は rem で書き、横に px の目安をコメントしている。
   よく使う大きさ：0.857rem = 12px ／ 1.071rem = 15px ／ 1.286rem = 18px ／ 1.714rem = 24px
   ※ 本家の CSS は px だけで書かれているので、ここを変えても本家のヘッダー・フッターの文字の大きさは変わらない */
html {
  font-size: 87.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

/* 本文の基本（本家の body の指定は、ヘッダー・フッター用にそのまま残す） */
.sukinobi-page {
  display: block;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.071rem; /* 15px */
  font-weight: 400;
  line-height: 1.5; /* 行間の基本 */
  text-align: left;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

/* 以下は :where() で強さを「タグ名だけ」と同じにしている。
   本家の reset.css・main.css（タグ名だけの指定）には勝ち、各パーツのクラスの指定には負ける */
:where(.sukinobi-page) img,
:where(.sukinobi-page) svg {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.sukinobi-page) a {
  color: inherit;
}

:where(.sukinobi-page) button {
  font: inherit;
  color: inherit;
}

:where(.sukinobi-page) h1,
:where(.sukinobi-page) h2,
:where(.sukinobi-page) h3,
:where(.sukinobi-page) p,
:where(.sukinobi-page) ul,
:where(.sukinobi-page) dl {
  margin: 0;
}

/* 本家の reset.css は見出し・ボタン・入力欄・ラベルの行間を 1.1 に詰めているので、本文の中では元に戻す */
:where(.sukinobi-page) h1,
:where(.sukinobi-page) h2,
:where(.sukinobi-page) h3,
:where(.sukinobi-page) h4,
:where(.sukinobi-page) button,
:where(.sukinobi-page) input,
:where(.sukinobi-page) label {
  line-height: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sukinobi-page *,
  .sukinobi-page *::before,
  .sukinobi-page *::after {
    transition: none !important;
    animation: none !important;
  }
}


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

/* ---------- レイアウト ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* PC：中身の横幅を画面幅の割合（--pc-w）にする。大きい画面でも左右の余白が開きすぎない。
   ただし 1040px より狭くはしない */
@media (min-width: 1080px) {
  .wrap {
    max-width: max(calc(var(--content-w) + var(--gutter) * 2), var(--pc-w)); /* 画面幅（100%）は超えない */
  }
}

.section {
  position: relative;
  display: flow-root; /* 中の余白がセクションの外にはみ出さないように */
  padding: 60px 0;
}

/* 背景の種類（色のついたセクションの上下には黒い線） */
.section--yellow {
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  background: var(--yellow) var(--pattern-yellow) center top / var(--pattern-yellow-w) auto repeat; /* 柄を敷き詰める */
}

.section--gray {
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  background: var(--gray-bg) var(--pattern-gray) center top / var(--pattern-gray-w) auto repeat; /* 柄を敷き詰める */
}

/* 方眼紙（7つのタイプ・おすすめの枠・スライダーのカード） */
.section--grid,
.grid-paper {
  background-color: #fff;
  background-image: var(--pattern-grid);
  background-size: 15px 15px; /* 方眼1マスの大きさ（固定） */
}

.section--grid {
  border-top: var(--border) solid var(--ink);
}

/* スマホだけで改行 */
@media (min-width: 768px) {
  .sp-only {
    display: none;
  }
}

/* 画面には出さず、読み上げ用に残す */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 見出し ---------- */
.section-title {
  margin: 0 0 30px;
  font-size: clamp(2rem, 8vw, 2.857rem); /* 28〜40px（画面幅に合わせて変わる） */
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
}

/* 見出しの上の小さな一文（「PROCLASS Kids の」） */
.section-title__pre {
  display: block;
  margin-bottom: 2px;
  font-size: 1.286rem; /* 18px */
  font-weight: 700;
  letter-spacing: 0;
}

/* 見出しの下の一文（「好き」が伸びる学びの名前 など） */
.section-title__sub {
  display: block;
  margin-top: 14px;
  font-size: 1.286rem; /* 18px */
  font-weight: 700;
  letter-spacing: 0;
}

/* 検索エンジン・読み上げ用の「｜」（画面には出さない） */
.sep {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* 見出しの下の文章 */
.section-lead {
  margin: 0 0 32px;
  text-align: center;
}

.section-lead--left {
  text-align: left;
}

.section-lead--bold {
  font-size: 1.286rem; /* 18px */
  font-weight: 700;
}

@media (min-width: 768px) {
  .section {
    padding: 88px 0;
  }
  .section-lead--left {
    text-align: center;
  }
}

/* 未確定の内容（公開前に差し替える） */
.todo {
  padding: 0 4px;
  background: #FFE0E0;
  color: #A00;
  font-size: 0.857rem; /* 12px */
}

/* 黄色いマーカー */
.marker {
  font-weight: inherit;
  background: linear-gradient(transparent 70%, var(--yellow) 70%);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 48px;
  padding: 10px 28px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:focus-visible,
.opt:focus-visible,
summary:focus-visible,
.slider__arrow:focus-visible {
  outline: 3px solid #2A6BFF;
  outline-offset: 3px;
}

/* 大きいボタン（「診断をはじめる」「無料体験を申し込む」） */
.btn--start,
.btn--submit {
  width: 100%;
  max-width: 420px;
  min-height: 80px;
  font-size: 1.618rem;
}

/* 「診断をはじめる」は、タブレット・PC ではもう一段大きく（スマホは 64px のまま） */
@media (min-width: 768px) {
  .btn--start {
    min-height: 80px;
  }
}

.btn .icon-search {
  width: 1.4em;
  height: 1.4em;
  flex: none;
}

/* 文字だけのボタン（「もう一度診断する」） */
.small-link {
  padding: 4px;
  border: 0;
  background: none;
  font-size: 1.071rem; /* 15px */
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- 白いカード（診断・結果・フォーム） ---------- */
.card {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 28px;
  border: var(--border) solid var(--ink);
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
}

@media (min-width: 768px) {
  .card {
    padding: 40px 48px 44px;
  }
}

/* ---------- 吹き出し（タイプの「ひとこと」） ---------- */
.bubble {
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  background: var(--yellow);
  font-family: var(--font);
  font-size: 1.071rem; /* 15px */
  text-align: center;
}


/* ==========================================================================
   3. 状態クラス（JS が付け外しする）
   ========================================================================== */
.is-hidden {
  display: none !important;
}

.is-invisible {
  visibility: hidden;
}

/* 結果は、診断が終わって .is-open が付くまで出さない */
#result {
  display: none;
}

#result.is-open {
  display: block;
}

/* 結果表示中は、診断セクションと結果のあいだの線と余白をなくす */
#shindan:has(.quiz.is-hidden) {
  padding-bottom: 0;
  border-bottom: 0;
}

#shindan:has(.quiz.is-hidden) + #result {
  padding-top: 0;
  border-top: 0;
}


/* ==========================================================================
   5. ファーストビュー
   ========================================================================== */
.hero {
  /* ロゴ「スキノビ」の大きさ。キャッチの画像も同じ横幅にそろえる。
     --logo-fs は文字1つぶんの大きさ（画面に合わせて下の @media で変わる）、
     --logo-w はロゴ画像の横幅（4.1 文字ぶん） */
  --logo-fs: clamp(64px, 18.5vw, 108px);
  --logo-w: calc(var(--logo-fs) * 4.1);

  padding: 84px 0 56px;
  text-align: center;
}

/* 「何がすき？ 何を伸ばす？」（画像） */
.hero__catch img {
  width: var(--logo-w);
  max-width: 100%;
  margin: 0 auto;
}

.hero__title {
  margin: 0;
  font-weight: 700;
}

/* 「スキノビ」のロゴ（画像） */
.hero__logo {
  display: block;
  margin: 20px 0 20px;
}

.hero__logo img {
  width: var(--logo-w);
  max-width: 100%;
  margin: 0 auto;
}

.hero__sub {
  display: block;
  font-size: 1rem; /* 18px */
  font-weight: 700;
}

/* メインビジュアル（イラスト画像） */
.hero__visual {
  position: relative;
  margin: 24px auto 28px;
  max-width: 520px;
}

.hero__visual img {
  width: 100%;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: 1rem; /* 15px */
  font-weight: 500;
  text-align: left;
}

.hero__about {
  margin: 22px 0 14px;
}

.hero__about a {
  font-size: 1.2rem; /* 18px */
  font-weight: 700;
}

.hero__meta {
  color: var(--sub);
  font-size: 0.7rem; /* 12px */
  line-height: 1.3;
}

/* ---------- スマホ：ファーストビューを画面の高さちょうどに収める ----------
   下の黒い線（診断セクションの上の線）が、画面の一番下に来る。
   文字・ボタン・余白は「画面の幅」と「画面の高さ」の小さいほうに合わせて縮む。
   メインビジュアルは横幅いっぱいの大きさが基本で、高さが足りないときだけ縮む。
   余った高さは、タイトル〜ボタンのまとまり全体の上下に振り分けて、全体を真ん中に寄せる
   （イラストの上下にだけ余白ができないように）。
   目安：iPhone SE（Safari のバーを含めて 375×548 くらい）まで収まる。
   横向きなど、高さが 500px 未満のときは収めない（普通に縦に並ぶ）。
   svh … ブラウザのバーが出ているときの画面の高さ（非対応ブラウザは vh を使う） */
@media (max-width: 767px) and (min-height: 500px) {
  .hero {
    --vh: 1vh;
    display: flex;
    flex-direction: column;
    height: calc(var(--vh) * 100 - var(--border)); /* 下の黒い線まで画面に入れる */
    padding: calc(62px + var(--vh) * 1) 0 calc(var(--vh) * 2.2);
  }
  @supports (height: 1svh) {
    .hero { --vh: 1svh; }
  }

  /* ロゴとキャッチは、背の低いスマホで小さくする */
  .hero {
    --logo-fs: min(clamp(64px, 18.5vw, 108px), calc(var(--vh) * 9));
  }

  .hero__inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center; /* まとまり全体を上下の真ん中に */
    min-height: 0;
  }

  /* 「スキノビ」ロゴの上下の余白：背の高い端末ほど広げる。
     基本は画面の高さの 1%。iPhone SE（Safari のバーあり・高さ約 560px）を超えた高さの 8% を足す（足す分は最大 32px） */
  .hero__logo {
    --logo-space: calc(var(--vh) * 1 + clamp(0px, calc((var(--vh) * 80 - 560px) * .08), 32px));
    margin: var(--logo-space) 0;
  }

  /* メインビジュアル：基本はイラストの比率の高さ。高さが足りないときだけ縮む */
  .hero__visual {
    flex: 0 1 auto;
    aspect-ratio: 373 / 265; /* hero-illustration.svg の縦横の比率 */
    min-height: 36px;
    width: 100%;
    margin: calc(var(--vh) * 2) auto;
  }

  /* イラストは、枠の高さに収まるように縮む */
  .hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .hero__lead {
    margin: 0 0 calc(var(--vh) * 2);
  }

  .btn--start {
    min-height: min(64px, calc(var(--vh) * 9)); /* 背の低いスマホでは低くする（最大 64px） */
    margin: 0 auto;
  }

  .hero__about {
    margin: calc(var(--vh) * 1.2) 0 calc(var(--vh) * 1);
  }
}

/* ---------- 小さいスマホ（iPhone SE くらい）：紹介文を小さくして、イラストの場所を空ける ----------
   幅 380px 以下（iPhone 16 の 393px は含まない）かつ 高さ 680px 以下（縦長の iPhone 13 mini などは含まない）。
   高さだけで分けると、Safari のバーの出し入れで iPhone 16 と区別できなくなるので、幅と組み合わせる */
@media (max-width: 380px) and (max-height: 680px) {
  .hero__lead {
    font-size: 0.857rem; /* 12px */
  }
}

/* タブレット：文章を中央そろえに */
@media (min-width: 768px) {
  .hero {
    padding: 112px 0 72px;
  }
  .hero__lead {
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }
}

/* ---------- PC：左に文字、右にビジュアル、その下の中央にボタン ----------
   ┌──────────────┬────────────────────┐
   │ キャッチ      │                    │
   │ スキノビ      │   メインビジュアル   │
   │ サブコピー    │                    │
   │ 紹介文        │                    │
   ├──────────────┴────────────────────┤
   │        [ 診断をはじめる ]            │
   │          スキノビとは？              │
   │            補足文                   │
   └───────────────────────────────────┘
   .hero__body の囲みは PC では外し（display: contents）、
   中の紹介文・ボタン・リンク・補足文を、それぞれ上の図の位置に置く。 */
@media (min-width: 1080px) {
  .hero {
    /* ロゴ・キャッチの大きさも画面幅に合わせて伸ばす（最小 84px・最大 160px） */
    --logo-fs: clamp(84px, 7.2vw, 160px);
    padding: 128px 0 88px;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); /* 左：文字　右：ビジュアル（少し広め） */
    grid-template-areas:
      "text   visual"
      "lead   visual"
      "btn    btn"
      "about  about"
      "meta   meta";
    align-items: center;
    column-gap: 64px;
  }
  .hero__text {
    grid-area: text;
    align-self: end;
    text-align: center; /* キャッチ・ロゴ・サブコピーは、左の列の中で中央そろえ */
  }
  .hero__visual {
    grid-area: visual;
    margin: 0;
    max-width: none;
  }
  .hero__body {
    display: contents;
  }
  .hero__sub {
    font-size: clamp(1.286rem, 1.3vw, 1.857rem); /* 18〜26px（大きい画面では少し大きく） */
  }
  .hero__lead {
    grid-area: lead;
    align-self: start;
    margin: 32px 0 0;
    font-size: clamp(1.071rem, 1.05vw, 1.429rem); /* 15〜20px（大きい画面では少し大きく） */
    text-align: left;
  }
  .btn--start {
    grid-area: btn;
    justify-self: center;
    margin-top: 40px;
  }
  .hero__about {
    grid-area: about;
  }
  .hero__meta {
    grid-area: meta;
  }
}

/* ---------- PC：ファーストビューをウィンドウの高さちょうどに収める ----------
   下の黒い線が、ウィンドウの一番下に来る。
   左の文字は上下の真ん中に置き、右のビジュアルは使える高さいっぱいに広げる。
   ボタン・リンク・補足文は一番下にそろえる
   （ウィンドウが低いと、ロゴ文字とビジュアルが縮む）。
   高さが 600px 未満のウィンドウでは収めない（普通に並ぶ）。 */
@media (min-width: 1080px) and (min-height: 600px) {
  .hero {
    --vh: 1vh;
    display: flex;
    height: calc(var(--vh) * 100 - var(--border));
    padding: calc(68px + var(--vh) * 2) 0 calc(var(--vh) * 4);
  }
  @supports (height: 1svh) {
    .hero { --vh: 1svh; }
  }

  .hero__inner {
    min-height: 0;
    grid-template-rows: 1fr auto auto 1fr auto auto auto; /* 上下の 1fr で、左の文字を真ん中に寄せる */
    grid-template-areas:
      ".      visual"
      "text   visual"
      "lead   visual"
      ".      visual"
      "btn    btn"
      "about  about"
      "meta   meta";
  }

  .hero__visual {
    align-self: stretch;
    min-height: 0;
    container-type: size; /* 中身を、この枠の高さに合わせて縮めるため */
  }

  /* イラストは、枠の高さに収まるように縮む */
  .hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* ロゴとキャッチは、ウィンドウが低いと小さくする */
  .hero {
    --logo-fs: min(clamp(84px, 7.2vw, 160px), calc(var(--vh) * 13));
  }

  .hero__lead {
    margin-top: calc(var(--vh) * 5);
  }

  .btn--start {
    margin-top: calc(var(--vh) * 4);
  }

  .hero__about {
    margin: calc(var(--vh) * 1.8) 0 calc(var(--vh) * 1.2);
  }
}


/* ==========================================================================
   6. 診断（質問）
   ========================================================================== */
.section-title--quiz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  font-size: clamp(2rem, 8vw, 2.857rem); /* 28〜40px（画面幅に合わせて変わる） */
}

.section-title--quiz .icon-search,
.section-title--quiz .icon-sheet {
  width: .9em;
  height: .9em;
}

.section-title--quiz .section-title__sub {
  flex-basis: 100%;
}

#shindan .section-lead {
  text-align: left;
}

@media (min-width: 768px) {
  #shindan .section-lead {
    text-align: center;
  }
}

/* 「Question1」と「1/4」 */
.quiz__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qnum {
  font-family: var(--font);
  font-size: 1.714rem; /* 24px */
  font-weight: 800;
  line-height: 1.3;
}

.qnum small {
  margin-left: 8px;
  font-family: var(--font);
  font-size: 0.857rem; /* 12px */
  font-weight: 700;
  color: var(--sub);
}

.qcount {
  font-family: var(--font);
  font-size: 1.286rem; /* 18px */
  font-weight: 700;
}

/* 進み具合のバー（幅は JS が変える） */
.progress {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: var(--line);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--yellow);
  transition: width .3s ease;
}

.qtext {
  margin: 24px 0 4px;
  font-size: 1.714rem; /* 24px */
  font-weight: 900;
  line-height: 1.3;
}

.qhint {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 0.857rem; /* 12px */
}

.qhint:empty {
  display: none;
}

/* 選択肢（白い角丸のボタン。選ぶと黄色になる） */
.options {
  display: grid;
  gap: 5px; /* ボタンどうしの間隔（縦・横とも） */
  margin-top: 16px;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 8px 52px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 1.071rem; /* 15px */
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s ease; /* 選ぶと黄色にフェード */
}

.opt:hover {
  background: var(--yellow-soft);
}

.opt[aria-pressed="true"] {
  background: var(--yellow);
}

/* 左の丸（選ぶと黒丸に白いチェック）。
   ひとつだけ選ぶ質問も、いくつでも選べる質問も、文字が2行になっても必ず丸 */
.opt .mark {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
  transition: background-color .3s ease; /* 選ぶと黒にフェード */
}

.opt[aria-pressed="true"] .mark {
  background: var(--ink);
}

/* 白いチェック（いつも置いておき、選んだときだけフェードで見せる） */
.opt .mark::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12px;
  width: 9px;
  height: 15px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .3s ease;
}

.opt[aria-pressed="true"] .mark::after {
  opacity: 1;
}

/* 「もどる」「つぎへ」 */
.qnav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.btn--back,
.btn--next {
  min-width: 130px;
  padding: 12px 10px;
}

.btn--back {
  background: var(--ink);
  color: #fff;
}

.btn--back::before,
.btn--next::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.btn--back::before {
  border-right: 11px solid currentColor;
}

.btn--next::after {
  border-left: 11px solid currentColor;
}

@media (min-width: 768px) {
  .options {
    grid-template-columns: 1fr 1fr;
  }
  .opt {
    font-size: 1.071rem; /* 15px */
  }
}


/* ==========================================================================
   7. 診断結果 ※中身はすべて JS（showResult）が生成
   上から：タイプ名 → 理由とバランス → 学習ツール → コース → 補足 → サブタイプ → 注記 → ボタン
   ========================================================================== */

/* ---------- タイプ名と棒人間 ---------- */
.result-head {
  text-align: center;
}

.result-head .you {
  font-weight: 700;
}

.result-type {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 8vw, 2.857rem); /* 28〜40px（画面幅に合わせて変わる） */
  font-weight: 900;
  line-height: 1.3;
}

.result-fig {
  max-width: 320px;
  margin: 0 auto;
}

/* 診断結果のキャラクター画像（横長：吹き出しが右）。大きさを変えるときは width を変える */
.chara.chara--result {
  width: 320px;
}

.result-fig .bubble {
  width: 180px;
  min-height: 110px;
  margin-bottom: -8px;
  font-size: 1.286rem; /* 18px */
}

.result-fig svg {
  width: 130px;
  margin: 0 auto;
}

.result-desc {
  margin: 20px 0;
}

/* ---------- 結果の中の枠（共通の見出し） ---------- */
.why-box .tag,
.tool-box .tag,
.course-box .tag {
  margin: 0 0 6px;
  font-size: 1.071rem; /* 15px */
  font-weight: 900;
}

/* ---------- このタイプになった理由（方眼の枠） ---------- */
.why-box {
  margin: 20px 0;
  padding: 16px 18px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background-color: #fff;
  background-image: var(--pattern-grid);
  background-size: 15px 15px; /* 方眼1マスの大きさ（固定） */
}

.why-box ul {
  margin: 0 0 4px;
  padding-left: 1.2em;
  font-size: 1.071rem; /* 15px */
}

/* 先頭の「・」（本家の main.css が li の「・」を消しているので、ここで付け直す） */
.why-box li,
.tool-box li {
  list-style: disc;
}

.why-box ul + .tag {
  margin-top: 14px;
}

/* 「すき」バランスのバー（長さは JS が変える） */
.bars {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 9.5em 1fr; /* 左：タイプ名　右：バー */
  align-items: center;
  gap: 8px;
  font-size: 0.857rem; /* 12px */
}

.bar-row .bname {
  font-weight: 700;
}

.bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: var(--line);
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #BFC3CC;
  transition: width .6s ease;
}

/* いちばん点が高いタイプ */
.bar-row.top .bname {
  font-weight: 900;
}

.bar-row.top .bar i {
  background: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ---------- おすすめの学習ツール ---------- */
.tool-box {
  margin: 20px 0;
  padding: 16px 18px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
}

.tool-box ul {
  padding-left: 1.2em;
  font-weight: 700;
}

.tool-box li {
  margin: 0 0 10px;
}

.tool-box li:last-child {
  margin-bottom: 0;
}

/* 「★ プロクラスキッズで学べます」 */
.tool-box .pc {
  display: block;
  width: fit-content;
  margin: 2px 0 4px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.857rem; /* 12px */
  font-weight: 900;
}

/* ツールの説明 */
.tool-box .tdesc {
  display: block;
  color: #555;
  font-size: 0.857rem; /* 12px */
  font-weight: 400;
}

.tool-box .tnote {
  margin: 8px 0 0;
  color: var(--sub);
  font-size: 0.857rem; /* 12px */
}

/* ---------- プロクラスキッズで学べるコース（黄色い枠） ---------- */
.course-box {
  margin: 20px 0;
  padding: 18px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
}

.course-box .tag {
  margin: 0;
}

.course-box .cname {
  margin: 2px 0;
  font-size: 1.714rem; /* 24px */
  font-weight: 900;
  line-height: 1.3;
}

.course-box .cmeta {
  font-size: 0.857rem; /* 12px */
}

/* コースの説明 */
.course-box .bridge {
  margin: 10px 0 0;
  font-size: 1.071rem; /* 15px */
}

/* 点線の下に出す案内（「小学3年生からは →」「マインクラフトコースも〜」） */
.course-box .next,
.course-box .also {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 2px dashed var(--ink);
  font-size: 1.071rem; /* 15px */
}

/* 「推奨年齢外」のラベル */
.course-box .also-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.857rem; /* 12px */
  font-weight: 700;
}

/* ---------- 補足・サブタイプ・注記 ---------- */
.note {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--ink);
  background: var(--gray-bg);
  font-size: 1.071rem; /* 15px */
}

.result-disclaim {
  margin: 16px 0 0;
  color: var(--sub);
  font-size: 0.857rem; /* 12px */
}

/* 「この結果で無料体験を申し込む」「もう一度診断する」 */
.cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 28px;
}

.cta .btn {
  width: 100%;
  max-width: 420px;
  min-height: 60px;
}


/* ==========================================================================
   8. スキノビとは
   ========================================================================== */

/* 「スキ（好き）＋ノビ（伸び）」（画像） */
.name-mark {
  margin: 8px 0 36px;
}

.name-mark img {
  width: 100%;
  max-width: 460px; /* 画像の横幅（画面が狭いときは画面幅に合わせて縮む） */
  margin: 0 auto;
}

.about-body {
  max-width: 760px;
  margin: 0 auto;
}

.about-body p + p {
  margin-top: 1.5em;
}

/* 「スキノビ診断がおすすめのお子さま」（方眼の枠） */
.who {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px 20px 24px;
  border: var(--border) solid var(--ink);
  border-radius: calc(var(--radius) + 4px);
  background-color: #fff;
  background-image: var(--pattern-grid);
  background-size: 15px 15px; /* 方眼1マスの大きさ（固定） */
}

.who h3 {
  margin-bottom: 22px;
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
  text-align: center;
}

.who ul {
  display: grid;
  gap: 15px;
  padding: 0;
  list-style: none;
}

.who li {
  position: relative;
  padding-left: 30px;
}

/* リストの頭のアイコン（黄色い四角に黒のチェック：about-list.svg） */
.who li::before {
  content: "";
  position: absolute;
  top: .15em;
  left: 0;
  width: 20px;  /* アイコンの大きさ */
  height: 20px;
  background: url("../images/sukinobi/about-list.svg") center / contain no-repeat;
}

@media (min-width: 768px) {
  .who {
    padding: 30px 30px 32px;
  }
}


/* ==========================================================================
   9. 7つのタイプ ※カードは JS（renderTypeGrid）が生成
   左右交互：イラスト（吹き出し＋棒人間）と、タイプ名＋説明
   ========================================================================== */
.type-list {
  display: grid;
  gap: 48px;
}

.type-item {
  display: grid;
  grid-template-columns: 34% 1fr;
  align-items: center;
  gap: 16px;
}

/* 偶数番目は、イラストを右に */
.type-item:nth-child(even) {
  grid-template-columns: 1fr 34%;
}

.type-item:nth-child(even) .type-item__fig {
  order: 2;
}

/* イラスト ※TODO：イラスト画像に差し替え（JS の TYPE_IMG に URL を入れると img になる） */
.type-item__fig {
  text-align: center;
}

.type-item__fig .bubble {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1.15 / 1;
  font-size: 1.071rem; /* 15px */
}

.type-item__fig svg {
  width: 70%;
  max-width: 120px;
  margin: -6px auto 0;
  padding: 4px;
  border-radius: 40px;
  background: var(--yellow);
}

/* キャラクター画像（吹き出し入り）※7つのタイプ一覧・診断結果で共通
   7枚とも同じ横幅で表示する（画像の横幅はそろえてある）。大きさを変えるときは width を変える */
.chara {
  width: 200px;
  max-width: 100%; /* 枠が狭いときは枠に合わせて縮む */
  height: auto;
  margin: 0 auto;
}

/* 「Ⓐ チャレンジャータイプ」 */
.type-item h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
  line-height: 1.3;
}

.type-item__letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  line-height: 1;
}

.type-item p {
  font-size: 1.071rem; /* 15px */
}

@media (min-width: 768px) {
  .type-list {
    max-width: 760px;
    margin: 0 auto;
    gap: 56px;
  }
  .type-item,
  .type-item:nth-child(even) {
    gap: 40px;
    grid-template-columns: 240px 1fr;
  }
  .type-item:nth-child(even) {
    grid-template-columns: 1fr 240px;
  }
  .type-item p {
    font-size: 1.071rem; /* 15px */
  }
}

/* PC：2列に並べる（左右交互はやめて、イラストを左にそろえる） */
@media (min-width: 1080px) {
  .type-list {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    gap: 56px 48px;
  }
  .type-item,
  .type-item:nth-child(even) {
    grid-template-columns: 200px 1fr;
    gap: 28px;
  }
  .type-item:nth-child(even) .type-item__fig {
    order: 0;
  }
}


/* ==========================================================================
   10. なぜ「好き」から始めるの？
   ========================================================================== */

/* 横スライダー（スマホは1枚＋次のカードが少し見える） */
.slider {
  position: relative;
  margin: 8px 0 48px;
}

.basis {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px calc((100% - min(80%, 560px)) / 2);
  scroll-snap-type: x mandatory;
  scroll-padding: 0 calc((100% - min(80%, 560px)) / 2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.basis article {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(80%, 560px);
  padding: 22px 20px 18px;
  border: var(--border) solid var(--ink);
  border-radius: calc(var(--radius) + 4px);
  background-color: #fff;
  background-image: var(--pattern-grid);
  background-size: 15px 15px; /* 方眼1マスの大きさ（固定） */
  scroll-snap-align: center;
}

.basis h3 {
  margin-bottom: 10px;
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
}

.basis p {
  font-size: 1.071rem; /* 15px */
}

/* 参考文献 */
.basis .src {
  margin-top: auto;
  padding-top: 16px;
  color: var(--sub);
  font-size: 0.857rem; /* 12px */
}

/* 黒い丸の矢印 */
.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
  cursor: pointer;
}

.slider__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: translate(-40%, -50%);
}

.slider__arrow--prev {
  left: max(4px, calc((100% - min(80%, 560px)) / 2 - 22px));
}

.slider__arrow--prev::before {
  border-right: 13px solid #fff;
  transform: translate(-60%, -50%);
}

.slider__arrow--next {
  right: max(4px, calc((100% - min(80%, 560px)) / 2 - 22px));
}

.slider__arrow--next::before {
  border-left: 13px solid #fff;
}

.slider__arrow:disabled {
  opacity: .25;
  cursor: default;
}

/* 「スキノビ診断について」（科学的根拠はない旨） */
.disclaim {
  max-width: 760px;
  margin: 0 auto;
}

.disclaim h3 {
  margin-bottom: 20px;
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
  text-align: center;
}

.disclaim p + p {
  margin-top: 1.5em;
}

/* PC：カード4枚をまとめて並べる（矢印は使わない） */
@media (min-width: 1080px) {
  .slider {
    max-width: max(calc(var(--content-w) + var(--gutter) * 2), var(--pc-w)); /* .wrap と同じ幅 */
    margin-right: auto;
    margin-left: auto;
    padding: 0 var(--gutter);
  }
  .basis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 0;
  }
  .basis article {
    padding: 28px 28px 22px;
  }
  .slider__arrow {
    display: none;
  }
}


/* ==========================================================================
   11. コース ※カードは JS（renderCourseTable）が生成
   色は .course--（コースのキー）で切り替える
   ========================================================================== */
.course-grid {
  display: grid;
  gap: 18px;
}

.course {
  --c: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0; /* 本家の main.css にも .course（上に 40px の余白）があるので打ち消す */
  border: var(--border) solid var(--ink);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
}

.course--robotBasic    { --c: var(--c-robotBasic); }
.course--robotStandard { --c: var(--c-robotStandard); }
.course--minecraft     { --c: var(--c-minecraft); }
.course--scratch       { --c: var(--c-scratch); }
.course--gameApp       { --c: var(--c-gameApp); }

/* 色の帯のコース名 */
.course__name {
  padding: 6px 12px;
  border-bottom: var(--border) solid var(--ink);
  background: var(--c);
  color: #fff;
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
  text-align: center;
}

.course__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 18px 16px;
}

.course__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

/* コースの画像 ※TODO：JS の COURSES の img に画像のURLを入れる */
.course__img {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 64px;
}

.course__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course__img .ph {
  width: 100%;
  height: 100%;
  border: 2px dashed #ccc;
  border-radius: 8px;
  color: #aaa;
  font-size: 0.857rem; /* 12px */
  line-height: 60px;
  text-align: center;
}

/* 「推奨年齢」「使うもの」 */
.course__meta {
  display: grid;
  gap: 4px;
  font-size: 0.857rem; /* 12px */
}

.course__meta div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.course__meta dt {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--c);
  color: #fff;
  font-weight: 500;
}

.course__meta dd {
  margin: 0;
  color: var(--sub);
}

.course__desc {
  font-size: 1.071rem; /* 15px */
}

/* 「コースの詳細を見る ▶」（右下にそろえる） */
.course .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 8px;
  color: var(--c);
  font-size: 1.071rem; /* 15px */
  text-underline-offset: 3px;
}

.course .more::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(var(--c), var(--c)) padding-box;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zM7 5l6 4-6 4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zM7 5l6 4-6 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* URL が未設定のリンクは押せないように見せる */
.course .more[href=""] {
  pointer-events: none;
  opacity: .5;
}

@media (min-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1080px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}


/* ==========================================================================
   12. よくある質問
   ========================================================================== */
.section--faq {
  padding-top: 24px;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border: var(--border) solid var(--ink);
  border-radius: calc(var(--radius) + 2px);
  background: var(--yellow);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 52px 16px 18px;
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* 「Q」「A」 */
.faq summary::before,
.faq details p::before {
  flex: none;
  font-family: var(--font);
  font-size: 1.714rem; /* 24px */
  font-weight: 800;
  line-height: 1;
}

.faq summary::before {
  content: "Q";
}

/* 右端の ＋／－ */
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  /* 横棒と縦棒の2本で「＋」。開くと縦棒の長さを 0 にして「－」にする */
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 4px, 4px 20px;
}

.faq details[open]:not(.is-closing) summary::after {
  background-size: 20px 4px, 4px 0;
}

.faq details p {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
  font-weight: 500;
}

.faq details p::before {
  content: "A";
}


/* ==========================================================================
   13. 無料体験フォーム
   ========================================================================== */
/* フォームは Fluent Forms（ID 37）。Fluent Forms の CSS より強くするため、
   すべて「.sukinobi-page .trial-form .fluentform」から書いている。
   見た目は、自作フォームだったときのスキノビのデザインと同じ */
/* 1項目のまとまり（ラベル＋入力欄＋エラー）の間隔 */
.sukinobi-page .trial-form .fluentform .ff-el-group {
  margin: 0 0 24px;
}

/* ラベル */
.sukinobi-page .trial-form .fluentform .ff-el-input--label {
  display: block;
  margin: 0;
}

.sukinobi-page .trial-form .fluentform .ff-el-input--label label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  color: var(--ink);
  font-size: 1.286rem; /* 18px */
  font-weight: 700;
  line-height: 1.5;
}

/* 「必須」ラベル（Fluent Forms の * の代わり） */
.sukinobi-page .trial-form .fluentform .ff-el-is-required.asterisk-right label::after {
  content: "必須";
  margin: 0;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.857rem; /* 12px */
  font-weight: 500;
  line-height: 1.6;
}

/* 入力欄・セレクト・テキストエリア */
.sukinobi-page .trial-form .fluentform .ff-el-form-control {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 8px;
  padding: 13px 18px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background-color: #fff;
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.143rem; /* 16px。16px 未満だと iPhone で入力時に画面が拡大されるので下げない */
  font-weight: 500;
  line-height: 1.5;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-control:focus {
  border-color: var(--ink);
  outline: 3px solid #2A6BFF;
  outline-offset: 2px;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-control::placeholder {
  color: #C8C8C8;
  font-weight: 700;
}

/* セレクトの矢印 */
.sukinobi-page .trial-form .fluentform select.ff-el-form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 0h14L7 10z' fill='%23111'/%3E%3C/svg%3E") right 18px center / 12px no-repeat;
}

.sukinobi-page .trial-form .fluentform textarea.ff-el-form-control {
  min-height: 120px;
  resize: vertical;
}

/* 「何で知りましたか？」のチェックボックス（角丸のボタン型）
   スマホは1列、タブレット・PCは2列。ボタンの幅と高さはそろえる */
.sukinobi-page .trial-form .fluentform .ff-el-input--content:has(> .ff-el-form-check) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .sukinobi-page .trial-form .fluentform .ff-el-input--content:has(> .ff-el-form-check) {
    grid-template-columns: 1fr 1fr;
  }
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check {
  display: flex;
  margin: 0;
  padding: 0;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-label {
  position: relative;
  display: flex; /* 中のボタン（span）を、行の高さいっぱいに伸ばすため */
  flex: 1;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 1.071rem; /* 15px */
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-label > span {
  display: flex;
  flex: 1; /* 横幅いっぱい・行の高さいっぱいに広げて、ボタンの大きさをそろえる */
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-label > span::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%; /* 丸 */
  background: var(--line);
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-input:checked + span {
  background: var(--yellow);
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-input:checked + span::before {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.5 3.5L15 6.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sukinobi-page .trial-form .fluentform .ff-el-form-check-input:focus-visible + span {
  outline: 3px solid #2A6BFF;
  outline-offset: 2px;
}

/* 「その他」の内容（「その他」にチェックしたときだけ出る）。少し小さいラベルで、チェックボックスに寄せる */
.sukinobi-page .trial-form .fluentform .ff-el-group:has([name="source_other"]) {
  margin-top: -10px;
}

.sukinobi-page .trial-form .fluentform .ff-el-group:has([name="source_other"]) .ff-el-input--label label {
  font-size: 1.071rem; /* 15px */
}

/* 「希望の教室」の下の、教室一覧へのリンク（Fluent Forms のカスタムHTML。新しいタブで開く） */
.sukinobi-page .trial-form .fluentform .ff-el-group:has(.ff-sukinobi-school-link) {
  margin-top: -14px;
}

.sukinobi-page .trial-form .fluentform .ff-sukinobi-school-link {
  margin: 0;
  font-size: 1.071rem; /* 15px */
  font-weight: 700;
  text-align: right;
}

.sukinobi-page .trial-form .fluentform .ff-sukinobi-school-link a,
.sukinobi-page .trial-form .fluentform .ff-sukinobi-policy a {
  color: var(--ink);
  text-decoration: underline;
}

/* プライバシーポリシーの文 */
.sukinobi-page .trial-form .fluentform .ff-sukinobi-policy {
  margin: 0;
  font-size: 1.071rem; /* 15px */
}

/* 送信ボタン（Fluent Forms 側でクラス btn btn--submit を付けている）。Fluent Forms の青いボタンを打ち消す */
.sukinobi-page .trial-form .fluentform .ff_submit_btn_wrapper {
  margin: 8px 0 0;
  text-align: center;
}

.sukinobi-page .trial-form .fluentform .ff-btn-submit.btn {
  display: inline-flex;
  width: 100%;
  max-width: 420px;
  min-height: 80px;
  padding: 10px 28px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.618rem;
  font-weight: 900;
  line-height: 1.3;
  opacity: 1;
}

.sukinobi-page .trial-form .fluentform .ff-btn-submit.btn:hover {
  background: var(--yellow);
  color: var(--ink);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}

.sukinobi-page .trial-form .fluentform .ff-btn-submit.btn:disabled {
  opacity: .4;
}

/* ---------- エラー（Fluent Forms が項目に .ff-el-is-error を付け、下に文を出す） ---------- */
.sukinobi-page .trial-form .fluentform .ff-el-is-error .ff-el-form-control {
  border-color: var(--err);
  background-color: var(--err-soft);
}

.sukinobi-page .trial-form .fluentform .ff-el-is-error select.ff-el-form-control {
  background-color: var(--err-soft);
}

.sukinobi-page .trial-form .fluentform .ff-el-is-error .ff-el-form-check-label > span {
  border-color: var(--err);
}

.sukinobi-page .trial-form .fluentform .error.text-danger {
  margin: 6px 0 0;
  color: var(--err);
  font-size: 0.857rem; /* 12px */
  font-weight: 700;
}

.sukinobi-page .trial-form .fluentform .ff-el-input--content:has(> .ff-el-form-check) > .error {
  grid-column: 1 / -1;
}

/* ---------- 送信後のメッセージ ---------- */
.sukinobi-page .trial-form .ff-message-success {
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--yellow-soft);
  box-shadow: none;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.sukinobi-page .trial-form .ff-message-success p {
  margin: 0;
}

/* 送信エラー（通信エラーなど） */
.sukinobi-page .trial-form .ff-errors-in-stack {
  color: var(--err);
  font-weight: 700;
}

@media (min-width: 768px) {
  .sukinobi-page .trial-form .fluentform .ff-el-group {
    margin-bottom: 28px;
  }
}


/* ==========================================================================
   14. 運営会社
   ========================================================================== */
.company {
  padding: 48px 0;
}

.company .section-title {
  font-size: 1.286rem; /* 18px */
}

.company dl {
  display: grid;
  grid-template-columns: 5em 1fr; /* 左：項目名　右：内容 */
  gap: 6px 12px;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.071rem; /* 15px */
}

.company dt {
  font-weight: 700;
}

.company dd {
  margin: 0;
}


/* ==========================================================================
   15. 商標の注記（本文の最後。フッターは本家の footer.php）
   ========================================================================== */
.sukinobi-notes {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 0.857rem; /* 12px */
}

.sukinobi-notes p + p {
  margin-top: 8px;
}


/* ==========================================================================
   16. アニメーション
   「動きを減らす」設定の端末では、1. ベースの指定で全部止まり、すぐ表示される。
   ========================================================================== */

/* 共通の動き */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 黄色い丸：小さい状態からフェードイン（回転はしない） */
@keyframes blob-in {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* 棒人間：わずかに小さい状態からフェードイン */
@keyframes chara-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- ファーストビュー：出る順番 ----------
   1. 黄色の丸とキャラクター（下の「ファーストビューのイラスト」）
   2. イラストの上下の文字（キャッチ・ロゴ・サブタイトル・説明文・「スキノビとは？」・注記）をまとめてフェードイン
   3. 「診断をはじめる」ボタン
   時間はすべて .hero の変数で決めている。前の演出が終わる時間から自動で計算するので、
   丸やキャラクターの速さを変えても順番は崩れない */
.hero {
  --ease-out: cubic-bezier(.16, 1, .3, 1); /* 最初が速く、だんだんゆっくり止まる */

  /* 0〜1秒：黄色い丸とキャラクター */
  --blob-start: 0s;     /* 最初の丸が出始める時間 */
  --blob-step: .06s;    /* 丸と丸の間隔（8つ目は 0.42 秒に出る） */
  --blob-dur: 0s;       /* 丸1つが出るのにかかる時間。0s＝フェードなしでパッと出る（フェードさせるときは .3s）*/
  --chara-wait: .08s;   /* 丸が出そろってから、キャラクターが現れるまでの間 */
  --chara-dur: .5s;     /* キャラクターが現れるのにかかる時間（0.5 → 1.0 秒） */

  /* 1〜2秒：上下の文字 */
  --text-wait: 0s;      /* キャラクターが出終わってから、文字が出始めるまでの間 */
  --text-dur: 1s;       /* 文字が現れるのにかかる時間 */

  /* 1.5〜2.5秒：「診断をはじめる」ボタン */
  --btn-delay: .5s;     /* 文字が出始めてから、ボタンが出始めるまでの時間 */
  --btn-dur: 1s;        /* ボタンが現れるのにかかる時間 */

  /* ここから下は自動で計算（変えなくてよい） */
  --chara-start: calc(var(--blob-start) + var(--blob-step) * 7 + var(--blob-dur) + var(--chara-wait));
  --text-start: calc(var(--chara-start) + var(--chara-dur) + var(--text-wait));
  --btn-start: calc(var(--text-start) + var(--btn-delay));
}

.hero__catch,
.hero__logo,
.hero__sub,
.hero__lead,
.hero__about,
.hero__meta {
  animation: fade-in var(--text-dur) ease var(--text-start) backwards;
}

.btn--start {
  animation: fade-in var(--btn-dur) ease var(--btn-start) backwards;
}

/* ---------- ファーストビューのイラスト：黄色の丸が1つずつ出て、全部出たら棒人間が現れる ----------
   1. 黄色の丸（8つ）が、右回りの順番で1つずつフェードインする（丸そのものは回転しない）
      順番：真ん中の小さい丸（左上 → 右上 → 右下）→ 周りの大きい丸（左下 → 左 → 上 → 右 → 右下）
      順番はテンプレート（page-sukinobi-test.php の sukinobi_hero_back_svg）の $order で決めている
   2. 丸が全部出たら、棒人間がふわっと現れる
   丸を1つずつ動かすため、テンプレートが hero-illustration-back.svg を最初から <svg> としてページに書き出し、
   丸ごとに --i（出る順番 0〜7）を入れている。ファイルが読めなかったときは <img> になり、丸がまとめてフェードインする */

/* 後ろの丸（画像のまま／埋め込んだ後の svg）は、前の棒人間と同じ場所に重ねる */
.hero__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__front {
  position: relative; /* 丸より前に出す */
  animation: chara-in var(--chara-dur) var(--ease-out) var(--chara-start) backwards;
}

/* 埋め込めなかったとき（画像のまま）：丸をまとめてフェードイン */
img.hero__back {
  animation: fade-in .5s ease var(--blob-start) backwards;
}

/* 埋め込んだ後：丸を1つずつ、自分の中心から広げる */
svg.hero__back path {
  transform-box: fill-box;
  transform-origin: center;
  animation: blob-in var(--blob-dur) var(--ease-out) backwards;
  animation-delay: calc(var(--blob-start) + var(--i, 0) * var(--blob-step));
}

/* ---------- セクション：画面に入ったらフェードイン ----------
   JS が <html> に .is-anim を付け、画面に入ったセクションに .is-inview を付ける
   （JS が動かないときは、最初から全部見える）
   スキノビ診断（#shindan）と診断結果（#result）のセクションは、演出なしでそのまま表示する */
.is-anim .section:not(#shindan, #result) {
  transition: opacity .8s ease;
}

/* まだ画面に入っていないセクションだけ隠す（診断・診断結果のセクションは隠さない） */
.is-anim .section:not(.is-inview, #shindan, #result) {
  opacity: 0;
}

/* ---------- 7つのタイプ：キャラクターを1人ずつ出す ----------
   画面に入ったタイプに JS が .is-inview を付ける。
   --delay は横に並んだ2人目を少し遅らせるための値（JS が入れる） */
.is-anim .type-item__fig {
  opacity: 0;
  transform: scale(.9); /* その場でぽよんと出す（下から上には動かさない） */
  transition:
    opacity .5s ease var(--delay, 0s),
    transform .6s cubic-bezier(.34, 1.56, .64, 1) var(--delay, 0s); /* 最後に少し行き過ぎて戻る */
}

.is-anim .type-item.is-inview .type-item__fig {
  opacity: 1;
  transform: none;
}

/* ---------- 診断結果：カードの中身だけフェードイン ----------
   黄色の背景とカードの枠はそのまま表示し、中身（タイプ名・イラスト・説明など）だけを出す。
   結果を表示するたび（もう一度診断したときも）動く */
#result.is-open .card > * {
  animation: fade-in .6s ease backwards;
}

/* ---------- よくある質問：＋が回転しながら－になる ---------- */
.faq summary::after {
  transition: transform .3s ease, background-size .3s ease;
}

.faq details[open]:not(.is-closing) summary::after {
  transform: translateY(-50%) rotate(180deg);
}


/* ==========================================================================
   17. 申込完了ページ（page-sukinobi-completed.php）
   ========================================================================== */
/* クラス名を .sukinobi-completed にしないこと。本家のテーマが <body> にページのスラッグ（sukinobi-completed）を
   クラスとして付けるので、同じ名前にすると <body> にもこの指定が効いてしまう */
/* 本家のヘッダーは画面の上に固定されているので、その分だけ上をあける */
.sukinobi-thanks {
  min-height: 70vh;
  padding-top: calc(var(--header-h) + 48px);
  border-top: 0;
}

.sukinobi-thanks__card {
  display: grid;
  gap: 16px;
  padding: 32px 24px;
}

.sukinobi-thanks__lead {
  font-size: 1.286rem; /* 18px */
  font-weight: 900;
}

.sukinobi-thanks__contact {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
}

.sukinobi-thanks__contact div {
  display: flex;
  gap: 12px;
}

.sukinobi-thanks__contact dt {
  min-width: 4em;
  font-weight: 700;
}

.sukinobi-thanks__contact dd {
  margin: 0;
}

.sukinobi-thanks__links {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .sukinobi-thanks__card {
    padding: 40px 48px;
  }
}
