/* =====================================================================
   MySTEP 固定ページ共通デザインシステム（.mystep スコープ）
   - home_2026.css からデザイントークン＋共通コンポーネントを抽出
   - フロント専用の .home レイアウトは含まない（各ページが .page-id-XXX で個別指定）
   - update_fixed_page.py が各ページのbody冒頭に <style> として埋め込む
   ===================================================================== */

/* ---------- soft テーマ変数 ---------- */
.mystep.theme-soft{
  --bg:#f3efe7; --surface:#ffffff; --surface-2:#f8f3ea;
  --ink:#33414f; --ink-soft:#5e6b76; --ink-mute:#8a8275; --line:#eae2d4;
  --primary:#3d92dd; --primary-deep:#2a6fb4; --primary-soft:#dcecfb;
  --accent:#ff9d3c; --accent-soft:#ffe7cc;
  --radius:26px; --radius-sm:16px; --radius-pill:999px;
  --font-head:'Zen Maru Gothic', sans-serif; --font-body:'Zen Kaku Gothic New', sans-serif;
  --shadow:0 10px 30px -16px rgba(42,111,180,.35); --shadow-lg:0 30px 60px -28px rgba(42,111,180,.45);
}

/* ---------- 日本語見出しの自動改行最適化 ---------- */
/* text-wrap:balance = 行長を均等化（見栄え良い・Chrome/Edge/Safari対応）
   word-break:auto-phrase = 文節単位で改行（Chrome/Edge内蔵BudouX。Safari等は無視＝Safariでは
   単語途中で切れることがあるため、途中で切れて困る見出しは本文側で nowrap チャンク（spanで囲む）して固定する） */
.mystep h1,.mystep h2,.mystep h3,.mystep h4,
.mystep .sec-head h2,.mystep .mystep-h2,.mystep .cta h2,
.mystep .hero-hl,.mystep .hero-sub{
  text-wrap:balance;
  word-break:auto-phrase;
}
@media (max-width:560px){
  /* PC幅向けの手動<br>はスマホでは無効化（CTAの意図的改行は維持して3行以内に） */
  .mystep .sec-head h2 br,
  .mystep .mystep-h2 br,
  .mystep .access-info h2 br{display:none;}
  .mystep br.pc-br{display:none;}
}

/* ---------- 2段組見出し: メイン＋サブタイトル（旧「｜」区切りの置き換え） ---------- */
.mystep h1 .h-sub,.mystep h2 .h-sub{
  display:block;font-size:.62em;font-weight:700;color:var(--ink-soft);
  margin-top:10px;line-height:1.6;letter-spacing:.02em;
}
.mystep .mystep-h2 .h-sub{font-size:.78em;margin-top:6px;}
.mystep h3 .h-sub{display:block;font-size:.84em;font-weight:700;color:var(--ink-soft);margin-top:4px;line-height:1.55;}

/* ---------- 基本 ---------- */
.mystep, .mystep *{box-sizing:border-box;margin:0;padding:0;}
.mystep{
  font-family:var(--font-body);color:var(--ink);background:var(--bg);
  line-height:1.75;-webkit-font-smoothing:antialiased;letter-spacing:.01em;
  position:relative;overflow:hidden;border-radius:var(--radius);
}
.mystep a{color:inherit;text-decoration:none;}
.mystep .wrap{max-width:1120px;margin:0 auto;padding:0 56px;width:100%!important;min-width:0!important;}

/* ---------- buttons ---------- */
.mystep .btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--font-head);font-weight:700;font-size:16px;
  padding:16px 30px;border-radius:var(--radius-pill);cursor:pointer;border:none;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s;white-space:nowrap;
}
.mystep .btn-primary{background:var(--primary);color:#fff;box-shadow:var(--shadow);}
.mystep .btn-primary:hover{transform:translateY(-2px);background:var(--primary-deep);}
.mystep .btn-ghost{background:transparent;color:var(--primary-deep);border:1.5px solid var(--line);}
.mystep .btn-ghost:hover{border-color:var(--primary);background:var(--primary-soft);}
.mystep .btn-accent{background:var(--accent);color:#fff;box-shadow:var(--shadow);}
.mystep .btn-accent:hover{transform:translateY(-2px);filter:brightness(.96);}
.mystep .btn .arr{font-size:18px;line-height:1;}

/* ---------- sections ---------- */
.mystep .sec{padding:84px 0;position:relative;}
.mystep .sec-alt{background:var(--surface-2);}
.mystep .sec-head{text-align:center;max-width:720px;margin:0 auto 54px;}
.mystep .kicker{font-family:var(--font-head);font-size:13px;font-weight:700;letter-spacing:.2em;color:var(--primary);text-transform:uppercase;}
.mystep .sec-head h2{font-family:var(--font-head);font-size:35px;font-weight:700;margin:14px 0 0;line-height:1.45;}
.mystep .sec-head p{color:var(--ink-soft);font-size:16px;margin-top:16px;}
.mystep .sec-head p.data-lead{text-wrap:balance;}

/* ---------- page hero（固定ページ共通の上部見出し帯） ---------- */
.mystep .page-hero{position:relative;padding:64px 0 56px;text-align:center;overflow:hidden;}
.mystep .page-hero .eyebrow{
  display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center;
  max-width:calc(100vw - 44px);
  background:var(--surface);border:1px solid var(--line);
  padding:8px 16px;border-radius:var(--radius-pill);font-size:13px;font-weight:600;color:var(--primary-deep);box-shadow:var(--shadow);
}
@media (max-width:560px){ .mystep .page-hero .eyebrow{font-size:12px;gap:7px;padding:7px 14px;max-width:calc(100vw - 32px);} }
.mystep .page-hero .eyebrow .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);}
/* ---------- 歴代講師メッセージ アコーディオン（page-621） ---------- */
.mystep .teacher-list{display:flex;flex-direction:column;gap:14px;margin-top:8px;}
.mystep .teacher-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow);overflow:hidden;}
.mystep .teacher-item>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;}
.mystep .teacher-item>summary::-webkit-details-marker{display:none;}
.mystep .teacher-item>summary h2{margin:0;font-size:19px;line-height:1.5;color:var(--primary-deep);}
.mystep .teacher-item>summary .more{flex:none;font-family:var(--font-head);font-weight:700;font-size:13px;color:var(--accent);white-space:nowrap;}
.mystep .teacher-item>summary .more::after{content:"続きを読む ＋";}
.mystep .teacher-item[open]>summary .more::after{content:"閉じる －";}
.mystep .teacher-item[open]>summary{border-bottom:1px solid var(--line);}
.mystep .teacher-msg{padding:8px 22px 24px;color:var(--ink-soft);line-height:1.95;font-size:14.5px;}
.mystep .teacher-msg h4{font-family:var(--font-head);font-size:17px;color:var(--primary-deep);margin:24px 0 6px;}
.mystep .teacher-msg h5,.mystep .teacher-msg h6{font-family:var(--font-head);font-size:15px;color:var(--ink);margin:16px 0 4px;}
.mystep .teacher-msg p{margin:9px 0;}
.mystep .teacher-msg .t-prof{background:var(--surface-2);border-radius:12px;padding:12px 16px;font-size:13px;line-height:1.85;color:var(--ink-mute);margin-bottom:8px;}
/* 受験情報ハブ：準備中バッジ・注記 */
.mystep .teacher-item>summary h2 .soon{display:inline-block;margin-left:10px;background:var(--accent-soft);color:var(--accent);font-size:11.5px;font-weight:700;padding:2px 10px;border-radius:999px;vertical-align:middle;white-space:nowrap;}
.mystep .teacher-msg .soon-note{color:var(--ink-mute);font-size:13.5px;}
/* S値かんたん計算ツール（受験情報・入試ページ） */
.mystep .s-tool{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow);padding:22px;margin-top:18px;}
.mystep .s-tool h3{margin-top:0;}
.mystep .s-tool .s-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:11px 0;font-size:14.5px;color:var(--ink);font-weight:600;}
.mystep .s-tool input[type=number]{font-size:15px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;width:7em;max-width:48%;background:var(--surface-2);color:var(--ink);}
.mystep .s-tool input.s-mini{width:3.4em;}
.mystep .s-tool .s-opt{margin:6px 0 2px;border-top:1px dashed var(--line);padding-top:10px;}
.mystep .s-tool .s-opt summary{cursor:pointer;color:var(--primary-deep);font-weight:700;font-size:14px;list-style:none;}
.mystep .s-tool .s-opt summary::-webkit-details-marker{display:none;}
.mystep .s-tool .btn{margin-top:14px;}
.mystep .s-tool .s-out{margin-top:14px;min-height:1px;}
.mystep .s-tool .s-big{font-family:var(--font-head);font-size:22px;color:var(--primary-deep);}
.mystep .s-tool .s-detail{font-size:13px;color:var(--ink-soft);margin-top:4px;line-height:1.7;}
.mystep .s-tool .s-note{font-size:12.5px;color:var(--ink-mute);margin-top:10px;}
@media (max-width:560px){
  .mystep .teacher-item>summary{padding:15px 16px;}
  .mystep .teacher-item>summary h2{font-size:16px;}
  .mystep .teacher-msg{padding:6px 16px 20px;font-size:14px;}
}
/* 受験情報ハブ: PC=カード一覧（常時展開）／スマホ=アコーディオン */
@media (min-width:561px){
  .mystep .hub-cards{display:grid!important;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:8px;align-items:stretch!important;}
  /* Chromeでは<details>にflexを当てても中身が正しくflexアイテムにならないため、
     details自体をgrid化(上=summary / 下=本文が残り高さを埋める)。新Chromeの::details-content箱にも対応。 */
  .mystep .hub-cards .teacher-item{display:grid!important;grid-template-rows:auto 1fr;height:auto;align-self:stretch!important;}
  .mystep .hub-cards .teacher-item::details-content{display:flex;flex-direction:column;min-height:0;}
  .mystep .hub-cards .teacher-item>summary{grid-row:1;cursor:default;pointer-events:none;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:14px;}
  .mystep .hub-cards .teacher-item>summary .more{display:none;}
  .mystep .hub-cards .teacher-item>summary h2{font-size:17px;line-height:1.5;min-height:3em;display:flex;align-items:center;}
  .mystep .hub-cards .teacher-item .teacher-msg{grid-row:2;padding-top:14px;flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;min-height:100%;}
  .mystep .hub-cards .teacher-item .teacher-msg p{margin:0 0 9px;}
  .mystep .hub-cards .teacher-item .teacher-msg p:last-child{margin-top:14px;margin-bottom:0;}
  .mystep .hub-cards .teacher-item .teacher-msg .btn{align-self:flex-start;}
}
/* ブログ一覧カード（サムネイル付き・タイトル2行省略） */
.mystep .blog-thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin:0 0 12px;}
/* ブログ一覧 グループ見出し（新着/学齢別） */
.mystep .blog-group-head{font-family:var(--font-head);font-weight:700;font-size:22px;color:var(--ink);margin:46px 0 18px;padding-left:14px;border-left:5px solid var(--accent);line-height:1.5;}
.mystep .blog-group-head:first-child{margin-top:4px;}
@media (max-width:560px){ .mystep .blog-group-head{font-size:18px;margin:32px 0 14px;padding-left:11px;} }
/* 新着記事は端末の列数に合わせて 1(スマホ)/2(タブレット)/3(PC)枚で1行ピッタリに。
   新着で隠した記事は、その分グループ側(nwdup)に表示して重複・欠落を防ぐ。 */
.mystep .blog-newest .nw-2,
.mystep .blog-newest .nw-3{display:none!important;}
.mystep .nwdup-1{display:none!important;}                 /* 1枚目は常に新着 → グループでは常に非表示 */
@media (min-width:561px){
  .mystep .blog-newest .nw-2{display:grid!important;}     /* タブレット: 新着2枚目を表示（カードはgridレイアウト） */
  .mystep .nwdup-2{display:none!important;}               /* 2枚目はグループ側を非表示 */
}
@media (min-width:1120px){
  .mystep .blog-newest .nw-3{display:grid!important;}     /* PC: 新着3枚目を表示（カードはgridレイアウト） */
  .mystep .nwdup-3{display:none!important;}               /* 3枚目はグループ側を非表示 */
}
/* サブタイトル・アコーディオン：右端にFAQと同じ「＋」丸（タップで開くことを記号で伝える） */
.mystep .blog-sub>summary::after{content:"＋";flex:0 0 auto;width:24px;height:24px;line-height:24px;
  text-align:center;border-radius:50%;background:#e8a33d;color:#fff;font-size:14px;font-weight:700;margin-left:8px;}
.mystep .blog-sub[open]>summary::after{content:"−";}
/* グループの最大表示数オーバー分を隠す＋「すべて表示」ボタン */
.mystep .cap-hidden{display:none!important;}
.mystep .blog-showall{display:block;margin:18px auto 0;background:var(--surface);border:1px solid var(--line);color:var(--primary-deep);font-family:var(--font-head);font-weight:700;font-size:14px;padding:11px 26px;border-radius:var(--radius-pill);cursor:pointer;box-shadow:var(--shadow);transition:background .15s;}
.mystep .blog-showall:hover{background:var(--primary-soft);}
/* タイトルは文節改行せず、行を端まで使う通常折り返しに */
.mystep .blog-cards .teacher-item>summary h2{text-wrap:wrap;word-break:normal;overflow-wrap:anywhere;}
@media (min-width:561px){
  .mystep .blog-cards{grid-template-columns:repeat(2,1fr);}
  .mystep .blog-cards .teacher-item>summary{padding-bottom:12px;align-items:flex-start;}
  .mystep .blog-cards .teacher-item>summary h2{font-size:15px;line-height:1.5;min-height:4.5em;display:block;}
  /* 説明文は3行ぶんの高さを必ず確保（2行でもボタン位置を揃える）＋3行超は隠す */
  .mystep .blog-cards .teacher-item .teacher-msg p:not(:last-child){-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;min-height:5.85em;}
}
@media (min-width:1120px){
  .mystep .blog-cards{grid-template-columns:repeat(3,1fr);}
}
/* ブログ一覧スマホ: タイトルは横いっぱい→その下に中央寄せで「続きを読む」 */
@media (max-width:560px){
  .mystep .blog-cards .teacher-item>summary{flex-direction:column;align-items:stretch;gap:8px;}
  .mystep .blog-cards .teacher-item>summary h2{width:100%;}
  .mystep .blog-cards .teacher-item>summary .more{display:block;width:100%;text-align:center;margin-top:2px;}
}
.mystep .page-hero h1{font-family:var(--font-head);font-weight:700;font-size:40px;line-height:1.4;margin:20px 0 0;color:var(--ink);}
.mystep .page-hero h1 .hl{color:var(--primary);background:linear-gradient(transparent 60%, var(--accent-soft) 60%);white-space:nowrap;}
/* H1内のキーワード・キッカー（トップのh1-kickerと同意匠・中央寄せ。SEOでH1に地域語を内包・2026-08-12） */
.mystep .page-hero h1 .h1-kicker{
  display:flex;width:fit-content;max-width:100%;align-items:center;gap:9px;
  margin:0 auto 16px;
  background:var(--surface);border:1px solid var(--line);
  padding:8px 16px;border-radius:var(--radius-pill);
  font-family:var(--font-head);font-size:13px;font-weight:600;color:var(--primary-deep);
  letter-spacing:0;line-height:1.4;box-shadow:var(--shadow);
}
.mystep .page-hero h1 .h1-kicker .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none;}
/* H1分離（2026-08-14）：main(.hero-hl)とサブ(.hero-sub)をH1外へ。見た目は旧h1内と完全同一 */
.mystep .page-hero .hero-hl{font-family:var(--font-head);font-weight:700;font-size:40px;line-height:1.4;margin:0;color:var(--ink);}
.mystep .page-hero .hero-hl .hl{color:var(--primary);background:linear-gradient(transparent 60%, var(--accent-soft) 60%);white-space:nowrap;}
.mystep .page-hero .hero-sub{display:block;font-size:24.8px;font-weight:700;color:var(--ink-soft);margin-top:10px;line-height:1.6;letter-spacing:.02em;}
.mystep .page-hero .lead{font-size:16.5px;color:var(--ink-soft);margin:20px auto 0;max-width:34em;line-height:1.95;}
.mystep.theme-soft .page-hero::before{content:"";position:absolute;top:-120px;right:-140px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%);opacity:.6;z-index:0;}
.mystep.theme-soft .page-hero::after{content:"";position:absolute;bottom:-40px;left:-120px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle, var(--primary-soft), transparent 70%);z-index:0;}
.mystep .page-hero>*{position:relative;z-index:1;}

/* ---------- prose（本文テキストブロック） ---------- */
.mystep .prose{max-width:820px;margin:0 auto;}
.mystep .prose h2{font-family:var(--font-head);font-size:27px;font-weight:700;color:var(--ink);margin:48px 0 0;line-height:1.5;}
.mystep .prose h2:first-child{margin-top:0;}
.mystep .prose h3{font-family:var(--font-head);font-size:20px;font-weight:700;color:var(--primary-deep);margin:34px 0 0;line-height:1.55;}
.mystep .prose p{color:var(--ink-soft);font-size:15.5px;line-height:1.95;margin-top:18px;}
.mystep .prose p b,.mystep .prose strong{color:var(--ink);font-weight:700;}
.mystep .prose a{color:var(--primary-deep);font-weight:700;border-bottom:1px solid var(--primary-soft);}
.mystep .prose img{max-width:100%;height:auto;border-radius:var(--radius-sm);margin-top:22px;display:block;}
.mystep .prose ul.bullets{list-style:none;margin-top:20px;display:flex;flex-direction:column;gap:11px;}
.mystep .prose ul.bullets li{position:relative;padding-left:28px;font-size:15px;color:var(--ink);line-height:1.85;}
.mystep .prose ul.bullets li::before{content:"";position:absolute;left:0;top:8px;width:14px;height:14px;border-radius:50%;background:var(--primary-soft);background-image:radial-gradient(circle, var(--primary) 0 3px, transparent 4px);}

/* ---------- info box（強調ボックス） ---------- */
.mystep .mbox{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--primary);border-radius:var(--radius-sm);padding:24px 28px;margin-top:24px;box-shadow:var(--shadow);}
.mystep .mbox.accent{border-left-color:var(--accent);}
.mystep .mbox h3{margin-top:0;}
.mystep .mbox p{margin-top:10px;}
.mystep .mbox.compact{padding:14px 18px;margin-top:16px;}
.mystep .mbox.compact p{margin-top:5px;line-height:1.7;}
.mystep .mbox.compact p:first-child{margin-top:0;}

/* 時間割など横長画像を独立・大きく（スマホは横スクロール） */
.mystep .timetable-fig{margin:6px 0 6px;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow);background:var(--surface);}
.mystep .timetable-fig img{display:block;width:100%;max-width:996px;height:auto;margin:0 auto;}
.mystep .timetable-hint{font-size:12.5px;color:var(--ink-mute);margin:6px 0 24px;}
@media (max-width:560px){
  /* スマホでは拡大表示して横スクロールで全体を確認できるように */
  .mystep .timetable-fig img{width:auto;height:200px;max-width:none;}
}

/* ---------- nav cards（ハブのリンクカード） ---------- */
.mystep .navcards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.mystep .navcard{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px 28px;box-shadow:var(--shadow);transition:transform .18s ease,border-color .18s ease;
  display:flex;flex-direction:column;
}
.mystep .navcard:hover{transform:translateY(-4px);border-color:var(--primary);}
.mystep .navcard .nc-ic{width:50px;height:50px;border-radius:14px;background:var(--primary-soft);display:grid;place-items:center;font-size:24px;}
.mystep .navcard h3{font-family:var(--font-head);font-size:20px;font-weight:700;margin:18px 0 0;color:var(--ink);}
/* アイコンを左・右にタイトル＋サブタイトル（nc-headでまとめたカードのみ） */
.mystep .navcard .nc-head{display:flex;align-items:center;gap:14px;}
.mystep .navcard .nc-head .nc-ic{flex:none;}
.mystep .navcard .nc-head h3{margin:0;}
.mystep .navcard p{color:var(--ink-soft);font-size:14px;line-height:1.85;margin-top:10px;flex:1;}
.mystep .navcard .nc-lk{margin-top:16px;font-family:var(--font-head);font-weight:700;font-size:14px;color:var(--primary-deep);display:inline-flex;align-items:center;gap:6px;}
.mystep .navcard .nc-lk .arr{color:var(--accent);}
.mystep .navcard:hover .nc-lk{color:var(--primary);}

/* ---------- 深層リンクチップ ---------- */
.mystep .link-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px;justify-content:center;}
.mystep .link-chip{
  display:inline-flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-pill);padding:10px 18px;font-family:var(--font-head);font-weight:700;font-size:14px;
  color:var(--primary-deep);box-shadow:0 4px 14px -10px rgba(0,0,0,.25);transition:transform .15s,border-color .15s,background .15s;
}
.mystep .link-chip:hover{transform:translateY(-2px);border-color:var(--primary);background:var(--primary-soft);}
.mystep .link-chip .arr{font-size:15px;color:var(--accent);}

/* ---------- final cta（共通の末尾CTA） ---------- */
.mystep .cta-sec{padding:84px 0;}
.mystep .cta{
  position:relative;border-radius:var(--radius);overflow:hidden;
  background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;
  padding:56px 58px;display:grid;grid-template-columns:1.3fr 1fr;gap:44px;align-items:center;box-shadow:var(--shadow-lg);
}
.mystep .cta h2{font-family:var(--font-head);font-size:30px;font-weight:700;line-height:1.5;}
.mystep .cta p{margin-top:16px;font-size:15.5px;opacity:.92;line-height:1.9;}
.mystep .cta-actions{display:flex;flex-direction:column;gap:13px;}
.mystep .cta-actions .btn{justify-content:center;width:100%;}
.mystep .cta .btn-accent{background:#fff;color:var(--primary-deep);}
.mystep .cta .tel{margin-top:6px;text-align:center;font-size:13px;opacity:.85;}
.mystep .cta .tel b{font-family:var(--font-head);font-size:22px;display:block;letter-spacing:.04em;}

/* ---------- access（地図＋住所） ---------- */
.mystep .access{
  display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:48px;box-shadow:var(--shadow);
}
.mystep .access-info .kicker{display:block;}
.mystep .access-info h2{font-family:var(--font-head);font-size:28px;font-weight:700;margin:12px 0 0;line-height:1.4;}
.mystep .access-info>p{color:var(--ink-soft);font-size:15.5px;margin-top:16px;line-height:1.95;}
.mystep .access-rows{margin:22px 0 26px;display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line);}
.mystep .access-row{display:flex;gap:18px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14.5px;}
.mystep .access-row .al{flex:0 0 86px;font-family:var(--font-head);font-weight:700;color:var(--primary-deep);}
.mystep .access-row .av{color:var(--ink-soft);}
.mystep .access-map{aspect-ratio:4/3.4;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
.mystep .access-map iframe{width:100%;height:100%;display:block;border:0;}

/* ---------- steps（プロセスフロー） ---------- */
.mystep .steps{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:20px;}
.mystep .step{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:30px 32px;display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:start;
}
.mystep .step-num{
  flex:none;width:72px;text-align:center;font-family:var(--font-head);font-weight:700;
  color:var(--primary-deep);background:var(--primary-soft);border-radius:var(--radius-sm);padding:12px 8px;font-size:12px;letter-spacing:.08em;
}
.mystep .step-num b{display:block;font-size:28px;line-height:1.1;color:var(--primary);}
.mystep .step-body h3{font-family:var(--font-head);font-size:20px;font-weight:700;color:var(--ink);line-height:1.5;}
.mystep .step-body>p{color:var(--ink-soft);font-size:15px;line-height:1.95;margin-top:12px;}
.mystep .step-body .step-list{list-style:none;margin-top:16px;background:var(--surface-2);border-radius:var(--radius-sm);padding:18px 22px;display:flex;flex-direction:column;gap:9px;}
.mystep .step-body .step-list li{position:relative;padding-left:24px;font-size:14px;color:var(--ink);line-height:1.8;}
.mystep .step-body .step-list li::before{content:"";position:absolute;left:0;top:8px;width:12px;height:12px;border-radius:50%;background:var(--primary-soft);background-image:radial-gradient(circle,var(--primary) 0 3px,transparent 4px);}
.mystep .step-img{margin-top:18px;border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow);}
.mystep .step-img img{width:100%;height:auto;display:block;}

/* ---------- stat hero（数値ハイライト） ---------- */
.mystep .stat-hero{display:flex;justify-content:center;margin:6px auto 0;}
.mystep .stat-hero .sh-card{
  background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;
  border-radius:var(--radius);padding:34px 56px;text-align:center;box-shadow:var(--shadow-lg);
}
.mystep .stat-hero .sh-big{font-family:var(--font-head);font-weight:700;font-size:64px;line-height:1;}
.mystep .stat-hero .sh-big em{font-style:normal;font-size:30px;}
.mystep .stat-hero .sh-lbl{font-size:15px;margin-top:10px;opacity:.95;font-weight:600;}

/* ---------- blog promo（外部ブログ誘導） ---------- */
.mystep .blog-promo{
  max-width:760px;margin:0 auto;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow);padding:40px;display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center;
}
.mystep .blog-promo img{width:180px;height:180px;border-radius:var(--radius-sm);object-fit:cover;display:block;}
.mystep .blog-promo h3{font-family:var(--font-head);font-size:23px;font-weight:700;color:var(--ink);}
.mystep .blog-promo p{color:var(--ink-soft);font-size:14.5px;line-height:1.9;margin-top:14px;}
.mystep .blog-promo .btn{margin-top:22px;}

/* ---------- 著者ボックス ---------- */
.mystep .author-box{max-width:860px;margin:36px auto 0;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;}
.mystep .author-box summary{list-style:none;cursor:pointer;padding:14px 22px;font-family:var(--font-head);font-weight:700;font-size:13.5px;color:var(--primary-deep);display:flex;align-items:center;gap:8px;}
.mystep .author-box summary::-webkit-details-marker{display:none;}
.mystep .author-box .ab-body{padding:0 22px 16px;}
.mystep .author-box .ab-body p{font-size:12.5px;color:var(--ink-soft);line-height:1.8;margin:0 0 6px;}
.mystep .author-box .ab-body a{font-size:12.5px;color:var(--primary-deep);font-weight:700;}

/* =====================================================================
   旧FOR_SITEORIGIN（紺×金テーマ）クラスを .mystep theme-soft で上書き
   304/306/308 等の custom_html 本文をそのまま使い、見た目だけ統一する
   ===================================================================== */
.mystep .ms-flow{max-width:880px;margin:0 auto;}
.mystep .mystep-section{margin:40px 0;}

/* 見出し */
.mystep .mystep-h2{
  font-family:var(--font-head);font-size:26px;font-weight:700;color:var(--ink);
  line-height:1.5;margin:54px 0 20px;padding:6px 0 6px 18px;border-left:5px solid var(--accent);
}
.mystep .mystep-h2:first-child{margin-top:0;}

/* リード文（div / p 両方） */
.mystep .mystep-lead{background:var(--surface-2);border-radius:var(--radius-sm);padding:22px 26px;margin:18px 0;}
.mystep .mystep-lead,.mystep .mystep-lead p{color:var(--ink-soft);font-size:15.5px;line-height:1.95;}
.mystep .mystep-lead p{margin:0;}
.mystep p.mystep-lead{margin:18px 0;}

/* ボックス（箇条書き・声・事例・実績） */
.mystep .mystep-box{
  background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--primary);
  border-radius:var(--radius-sm);padding:22px 26px;margin:20px 0;box-shadow:var(--shadow);
}
.mystep .mystep-box h3{font-family:var(--font-head);color:var(--ink);font-size:17px;font-weight:700;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);}
.mystep .mystep-box p{color:var(--ink);font-size:15px;line-height:1.95;margin:0 0 8px;}
.mystep .mystep-box p strong{color:var(--primary-deep);font-family:var(--font-head);}
.mystep .mystep-box ul{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:9px;}
.mystep .mystep-box li{position:relative;padding-left:26px;color:var(--ink);font-size:14.5px;line-height:1.85;}
.mystep .mystep-box li::before{content:"";position:absolute;left:0;top:8px;width:13px;height:13px;border-radius:50%;background:var(--primary-soft);background-image:radial-gradient(circle,var(--primary) 0 3px,transparent 4px);}

/* 成績変化カード（結果ファースト：上に変化バッジ、下に経緯） */
.mystep .result-box{padding:16px 20px;}
.mystep .result-box .result-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed var(--line);}
.mystep .result-figure{font-family:var(--font-head);font-weight:700;font-size:17px;color:#fff;background:var(--primary);padding:5px 15px;border-radius:var(--radius-pill);white-space:nowrap;}
.mystep .result-meta{font-size:12.5px;color:var(--ink-mute);font-weight:600;}
.mystep .result-box p{margin:0;font-size:14px;line-height:1.85;}
.mystep .voice-cite{text-align:right;font-size:13px;color:var(--primary-deep);font-weight:700;margin:10px 0 0;}

/* ツイート風カード（X投稿の引用） */
.mystep .mystep-tweet-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin:18px 0;box-shadow:var(--shadow);max-width:600px;}
.mystep .tweet-header{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.mystep .tweet-avatar{flex:none;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;font-family:var(--font-head);font-weight:700;font-size:20px;display:grid;place-items:center;}
.mystep .tweet-name-block{display:flex;flex-direction:column;line-height:1.3;}
.mystep .tweet-name{font-family:var(--font-head);font-weight:700;color:var(--ink);font-size:15px;}
.mystep .tweet-handle{font-size:13px;color:var(--ink-mute);}
.mystep .tweet-x-logo{margin-left:auto;font-size:20px;color:var(--ink);line-height:1;}
.mystep .tweet-body{font-size:14.5px;line-height:1.9;color:var(--ink);margin:0 0 12px;}
.mystep .tweet-footer{border-top:1px solid var(--line);padding-top:10px;margin-top:4px;}
.mystep .tweet-source{font-size:13px;color:var(--primary-deep);font-weight:700;text-decoration:none;}
.mystep .tweet-source:hover{text-decoration:underline;}

/* コース一覧アコーディオン（タイトルのボタン→タップで説明＋詳しく見る） */
.mystep .cat-label{position:relative;font-family:var(--font-head);font-weight:700;font-size:14px;color:var(--primary-deep);letter-spacing:.04em;margin:24px 0 10px;padding-left:14px;}
.mystep .cat-label::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:4px;border-radius:2px;background:var(--primary);}
.mystep .cat-label:first-child{margin-top:0;}
.mystep .course-acc-list{display:flex;flex-direction:column;gap:10px;max-width:760px;margin:0 auto;}
.mystep .course-acc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:0 6px 18px -14px rgba(0,0,0,.3);overflow:hidden;}
.mystep .course-acc.feat{border:1.5px solid var(--primary);}
.mystep .course-acc summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:15px 18px;font-family:var(--font-head);font-weight:700;font-size:15.5px;color:var(--ink);}
.mystep .course-acc summary::-webkit-details-marker{display:none;}
.mystep .course-acc summary .ca-ic{flex:none;width:38px;height:38px;border-radius:10px;background:var(--accent-soft);display:grid;place-items:center;font-size:18px;}
.mystep .course-acc summary .ca-arr{margin-left:auto;color:var(--primary);font-weight:700;font-size:20px;line-height:1;transition:transform .2s;}
.mystep .course-acc[open] summary .ca-arr{transform:rotate(90deg);}
.mystep .course-acc .ca-body{padding:0 18px 18px 68px;}
.mystep .course-acc .ca-body p{color:var(--ink-soft);font-size:14.5px;line-height:1.85;margin:0 0 14px;}
.mystep .course-acc .ca-more{display:inline-flex;align-items:center;gap:7px;background:var(--primary);color:#fff;font-family:var(--font-head);font-weight:700;font-size:14px;padding:9px 20px;border-radius:var(--radius-pill);text-decoration:none;}
.mystep .course-acc .ca-more:hover{background:var(--primary-deep);}
.mystep .course-acc .ca-more .arr{color:#fff;}
@media (max-width:560px){
  .mystep .course-acc .ca-body{padding:0 18px 16px 18px;}
  .mystep .course-acc summary{font-size:14.5px;gap:10px;}
}
/* コース一覧: PC=カードグリッド（常時展開）／スマホ=アコーディオン */
@media (min-width:561px){
  .mystep .course-acc-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:none;}
  .mystep .course-acc{display:flex;flex-direction:column;height:100%;}
  .mystep .course-acc>summary{cursor:default;pointer-events:none;align-items:center;min-height:76px;border-bottom:1px solid var(--line);}
  .mystep .course-acc>summary .ca-arr{display:none;}
  .mystep .course-acc .ca-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1 1 auto;}
  .mystep .course-acc .ca-body p{flex:1 1 auto;}
  .mystep .course-acc .ca-more{align-self:flex-start;margin-top:auto;}
}

/* ステップ／POINT */
.mystep .mystep-step{display:grid;grid-template-columns:auto 1fr;gap:22px;margin:18px 0;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px 30px;box-shadow:var(--shadow);}
.mystep .mystep-step-num{flex:none;width:72px;text-align:center;font-family:var(--font-head);font-weight:700;color:var(--primary-deep);background:var(--primary-soft);border-radius:var(--radius-sm);padding:12px 8px;font-size:12px;letter-spacing:.06em;}
.mystep .mystep-step-num span{display:block;font-size:26px;line-height:1.1;color:var(--primary);margin-top:2px;}
.mystep .mystep-step-body h3{font-family:var(--font-head);font-size:19px;font-weight:700;color:var(--ink);margin:0 0 10px;line-height:1.5;}
.mystep .mystep-step-body p{color:var(--ink-soft);font-size:14.5px;line-height:1.9;margin:0 0 8px;}
.mystep .mystep-step-body ul{padding-left:18px;font-size:14.5px;line-height:1.9;}

/* ハイライト（濃色コールアウト） */
.mystep .mystep-highlight{background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;border-radius:var(--radius);padding:30px 34px;margin:28px 0;border-left:6px solid var(--accent);box-shadow:var(--shadow-lg);}
.mystep .mystep-highlight h3{color:#fff;font-family:var(--font-head);font-size:18px;font-weight:700;margin:0 0 12px;}
.mystep .mystep-highlight p,.mystep .mystep-highlight ul{color:rgba(255,255,255,.93);font-size:15px;line-height:1.95;}
.mystep .mystep-highlight ul{padding-left:20px;}

/* 統計（3カラム） */
.mystep .mystep-stat{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin:28px 0;}
.mystep .mystep-stat-item{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:var(--radius-sm);padding:24px 16px;text-align:center;box-shadow:var(--shadow);}
.mystep .mystep-stat-item .num{font-family:var(--font-head);font-size:30px;font-weight:700;color:var(--primary-deep);display:block;line-height:1.2;}
.mystep .mystep-stat-item .num em{font-style:normal;color:var(--accent);}
.mystep .mystep-stat-item .label{font-size:13px;color:var(--ink-soft);margin-top:8px;display:block;line-height:1.6;font-weight:600;}
.mystep .mystep-stat-item .sublabel{font-size:11px;color:var(--ink-mute);margin-top:4px;display:block;}

/* features（2×2） */
.mystep .mystep-features{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;}
.mystep .mystep-feature{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--primary);border-radius:var(--radius-sm);padding:20px 22px;box-shadow:var(--shadow);}
.mystep .mystep-feature p:first-child{font-family:var(--font-head);color:var(--ink);font-size:16px;font-weight:700;margin:0 0 8px;}
.mystep .mystep-feature p{font-size:13.5px;line-height:1.85;margin:0;color:var(--ink-soft);}

/* 旧CTA（mystep-cta）→ soft */
.mystep .mystep-cta{background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;text-align:center;border-radius:var(--radius);padding:44px 32px;margin:48px 0 24px;box-shadow:var(--shadow-lg);}
.mystep .mystep-cta h3{color:#fff;font-family:var(--font-head);font-size:22px;font-weight:700;margin:0 0 14px;line-height:1.5;}
.mystep .mystep-cta p{color:rgba(255,255,255,.92);margin:0 0 18px;font-size:15px;line-height:1.95;}
.mystep .mystep-cta a{display:inline-block;background:var(--accent);color:#fff;padding:16px 40px;border-radius:var(--radius-pill);font-family:var(--font-head);font-size:17px;font-weight:700;box-shadow:var(--shadow);transition:transform .15s,filter .2s;}
.mystep .mystep-cta a:hover{transform:translateY(-2px);filter:brightness(.96);}

/* スライド画像 */
.mystep figure.slide-fig,.mystep figure.wp-block-image{margin:22px 0;text-align:center;}
/* 画像がセクション末尾（＝次の見出しの直上）に来るとき、余白を詰めて間隔を整える。
   ①画像の下マージンを除去 ②そのセクション下＆次セクション上のpaddingを縮小（PCのみ） */
.mystep .sec figure.slide-fig:last-child,
.mystep .sec figure.wp-block-image:last-child{margin-bottom:0;}
@media (min-width:768px){
  .mystep .sec:has(> .wrap > figure.slide-fig:last-child),
  .mystep .sec:has(> .wrap > .ms-flow > figure.slide-fig:last-child){padding-bottom:54px;}
  .mystep .sec:has(> .wrap > figure.slide-fig:last-child) + .sec,
  .mystep .sec:has(> .wrap > .ms-flow > figure.slide-fig:last-child) + .sec{padding-top:58px;}
}
.mystep figure img{max-width:100%;height:auto;border-radius:var(--radius-sm);box-shadow:var(--shadow);display:inline-block;}

@media (max-width:600px){
  /* inlineの多列指定より優先して、スマホでは必ず1列に */
  .mystep .mystep-features{grid-template-columns:1fr!important;}
  .mystep .mystep-step{grid-template-columns:1fr;gap:14px;padding:22px;}
  .mystep .mystep-step-num{width:auto;display:inline-flex;align-items:baseline;gap:8px;}
  .mystep .mystep-step-num span{display:inline;font-size:22px;}
  /* スタットカード: スマホは横スワイプのカルーセル化（縦長を防いでコンパクトに） */
  .mystep .mystep-stat{
    display:flex;flex-wrap:nowrap;overflow-x:auto;gap:12px;margin:18px 0;padding-bottom:6px;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .mystep .mystep-stat::-webkit-scrollbar{display:none;}
  .mystep .mystep-stat-item{
    flex:0 0 78%;scroll-snap-align:center;display:block;text-align:center;padding:20px 16px;
  }
  .mystep .mystep-stat-item .num{font-size:28px;text-align:center;}
  .mystep .mystep-stat-item .label{margin-top:8px;text-align:center;}
  .mystep .mystep-stat-item .sublabel{margin-top:4px;text-align:center;}
}

/* ---------- PC専用：右スペース活用（見出し1行＋リスト2列） ---------- */
/* スマホ(≤767px)は一切変更しない。768px以上のときだけ適用 */
@media (min-width:768px){
  .mystep .mystep-h2.h2-inline-pc .h-sub{display:inline;font-size:.8em;margin-top:0;margin-left:12px;}
  .mystep .mystep-box.box-cols-pc ul{display:grid;grid-template-columns:1fr 1fr;gap:9px 28px;}
  .mystep .mystep-features.features-3-pc{grid-template-columns:1fr 1fr 1fr;}
  /* PCではヒーローのリードを広げて行数を抑える（3行以内目安） */
  .mystep .page-hero .lead{max-width:42em;}
}

/* ---------- 過去問の出題例（blockquote枠） ---------- */
.mystep .exam-quote{background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:16px 20px;margin:14px 0;box-shadow:var(--shadow);}
.mystep .exam-quote p{margin:0;font-size:14.5px;line-height:1.85;color:var(--ink);}
.mystep .exam-quote .eq-point{margin-top:8px;font-size:13.5px;color:var(--primary-deep);font-weight:600;}

/* ---------- FAQ ---------- */
/* 防御: テーマ/ブラウザがdetailsを横並び化しても「上に質問・真下に回答」を強制 */
.mystep details.faq-item,
.mystep details.faq-item[open]{display:block!important;}
.mystep .faq-item summary{display:flex!important;width:100%!important;box-sizing:border-box;}
.mystep .faq-item .faq-a{display:block!important;width:100%!important;float:none!important;box-sizing:border-box;}
.mystep .faq-list{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:14px;}
.mystep .faq-item{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  box-shadow:0 6px 18px -14px rgba(0,0,0,.3);overflow:hidden;
}
.mystep .faq-item summary{
  list-style:none;cursor:pointer;padding:20px 24px;
  font-family:var(--font-head);font-weight:700;font-size:16px;color:var(--ink);
  display:flex;align-items:center;gap:14px;position:relative;
}
.mystep .faq-item summary::-webkit-details-marker{display:none;}
.mystep .faq-item summary::before{content:"Q";flex:none;width:30px;height:30px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:15px;}
.mystep .faq-item summary::after{content:"＋";margin-left:auto;color:var(--primary);font-weight:700;font-size:18px;}
.mystep .faq-item[open] summary::after{content:"－";}
.mystep .faq-item .faq-a{padding:0 24px 22px 68px;color:var(--ink-soft);font-size:14.5px;line-height:1.95;}
.mystep .faq-item .faq-a a{color:var(--primary-deep);font-weight:700;border-bottom:1px solid var(--primary-soft);}
@media (max-width:560px){
  .mystep .faq-item summary{font-size:14.5px;padding:16px 18px;gap:10px;}
  .mystep .faq-item .faq-a{padding:0 18px 18px 18px;}
}

/* ---------- 実績カードグリッド（records） ---------- */
.mystep .records{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px;}
.mystep .rec{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:22px 22px 20px;box-shadow:0 6px 18px -14px rgba(0,0,0,.3);display:flex;flex-direction:column;
}
.mystep .rec-tag{
  align-self:flex-start;font-family:var(--font-head);font-weight:700;font-size:13px;
  color:#fff;background:var(--primary);padding:5px 13px;border-radius:var(--radius-pill);letter-spacing:.02em;white-space:nowrap;
}
.mystep .rec p{font-size:15px;color:var(--ink);line-height:1.85;margin:14px 0 12px;}
.mystep .rec p b{color:var(--primary-deep);font-family:var(--font-head);font-size:17px;}
.mystep .rec small{font-size:12.5px;color:var(--ink-mute);margin-top:auto;font-weight:600;}

/* ---------- お問い合わせフォーム（CF7） ---------- */
.mystep .form-card{max-width:720px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:36px 40px;box-shadow:var(--shadow);}
.mystep .wpcf7 label{font-family:var(--font-head);font-weight:700;font-size:14.5px;color:var(--ink);display:block;margin-top:18px;}
.mystep .wpcf7 input[type=text],.mystep .wpcf7 input[type=email],.mystep .wpcf7 input[type=tel],.mystep .wpcf7 input[type=number],.mystep .wpcf7 input[type=date],.mystep .wpcf7 textarea,.mystep .wpcf7 select{
  width:100%;padding:13px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:15px;
  font-family:var(--font-body);background:var(--surface-2);color:var(--ink);margin-top:7px;box-sizing:border-box;
}
.mystep .wpcf7 input:focus,.mystep .wpcf7 textarea:focus,.mystep .wpcf7 select:focus{outline:none;border-color:var(--primary);background:#fff;}
.mystep .wpcf7 textarea{min-height:140px;resize:vertical;}
.mystep .wpcf7 input[type=submit]{
  background:var(--accent);color:#fff;border:none;border-radius:var(--radius-pill);padding:15px 44px;
  font-family:var(--font-head);font-weight:700;font-size:16px;cursor:pointer;margin-top:20px;box-shadow:var(--shadow);transition:transform .15s,filter .2s;
}
.mystep .wpcf7 input[type=submit]:hover{transform:translateY(-2px);filter:brightness(.96);}
.mystep .line-btn{display:inline-flex;margin:8px 0;}
.mystep .line-btn img{box-shadow:none;border-radius:0;margin:0;}

/* ---------- 講師紹介ギャラリー ---------- */
.mystep .teacher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.mystep .teacher-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow);transition:transform .18s ease,border-color .18s ease;}
.mystep a.teacher-card:hover{transform:translateY(-4px);border-color:var(--primary);}
.mystep .teacher-card img{width:100%;height:auto;display:block;border-radius:0;box-shadow:none;margin:0;}

/* ---------- 料金表 ---------- */
.mystep .price-table-wrap{overflow-x:auto;margin:24px 0;border-radius:var(--radius-sm);box-shadow:var(--shadow);border:1px solid var(--line);}
.mystep table.price-table{width:100%;border-collapse:collapse;background:var(--surface);min-width:720px;}
.mystep table.price-table th,.mystep table.price-table td{border:1px solid var(--line);padding:13px 10px;text-align:center;font-size:14.5px;}
.mystep table.price-table thead th{background:var(--primary);color:#fff;font-family:var(--font-head);font-weight:700;}
.mystep table.price-table thead th small{font-size:12px;font-weight:500;opacity:.9;}
.mystep table.price-table tbody th{background:var(--surface-2);color:var(--primary-deep);font-family:var(--font-head);font-weight:700;white-space:nowrap;}
.mystep table.price-table tbody td{color:var(--ink);font-weight:600;}
.mystep table.price-table tbody tr:nth-child(even) td{background:var(--surface-2);}
.mystep table.price-table .unit{color:var(--accent);}

/* 解説用テーブル（横スクロールさせず折り返す） */
.mystep table.price-table.info{min-width:0;table-layout:fixed;}
.mystep table.price-table.info th,.mystep table.price-table.info td{white-space:normal;text-align:left;padding:14px 14px;vertical-align:top;}
.mystep table.price-table.info thead th{text-align:center;}
.mystep table.price-table.info tbody th{font-size:14px;line-height:1.6;}
.mystep table.price-table.info tbody td{font-weight:400;font-size:13.5px;line-height:1.8;color:var(--ink-soft);}
.mystep table.price-table.info col.c0{width:20%;}
.mystep table.price-table.info col.c1{width:24%;}
.mystep table.price-table.info col.c2{width:33%;}
/* 学年・先生など見出しセル(th)は折り返さない（「中2・中3」を1行に保つ） */
.mystep table.price-table.info tbody th{white-space:nowrap;}
/* データ表（頻出分野・先生別など）を中央ぞろえにする修飾 */
.mystep table.price-table.info.tac th,.mystep table.price-table.info.tac td{text-align:center;}
@media (max-width:560px){
  .mystep table.price-table.info th,.mystep table.price-table.info td{padding:10px 8px;font-size:12px;}
  .mystep table.price-table.info tbody th{font-size:12.5px;}
}

/* ---------- コマ時間グリッド ---------- */
.mystep .koma-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:20px 0;}
.mystep .koma-card{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--primary);border-radius:var(--radius-sm);padding:16px 10px;text-align:center;box-shadow:var(--shadow);}
.mystep .koma-card b{display:block;font-family:var(--font-head);font-size:18px;color:var(--primary-deep);}
.mystep .koma-card span{display:block;font-size:13px;color:var(--ink-soft);margin-top:6px;}

/* ---------- Cocoonテーマスタイルの打ち消し（.mystep内のみ） ---------- */
.mystep h1,.mystep h2,.mystep h3,.mystep h4,.mystep h5,.mystep h6{background:none;border:none;border-radius:0;padding:0;}
.mystep h2::before,.mystep h2::after,.mystep h3::before,.mystep h3::after{content:none;}
.mystep ul,.mystep ol{list-style:none;padding:0;margin:0;}
.mystep ul li::before,.mystep ol li::before{content:none;}
.mystep a{text-decoration:none;}

/* ---------- レスポンシブ ---------- */
@media (max-width:1000px){
  .mystep .wrap{padding:0 32px;}
  .mystep .page-hero h1{font-size:32px;}
  .mystep .page-hero .hero-hl{font-size:32px;}
  .mystep .page-hero .hero-sub{font-size:19.8px;}
  .mystep .navcards{grid-template-columns:1fr 1fr;}
  .mystep .records{grid-template-columns:1fr 1fr;}
  .mystep .cta{grid-template-columns:1fr;padding:32px 22px;}
  /* 長いボタン文字が右にはみ出さないよう余白・フォント調整 */
  .mystep .cta-actions .btn{padding:15px 14px;font-size:15px;white-space:normal;}
  .mystep .access{grid-template-columns:1fr;padding:32px;}
  .mystep .access-map{order:-1;}
  .mystep .blog-promo{grid-template-columns:1fr;text-align:center;gap:24px;}
  .mystep .blog-promo img{margin:0 auto;}
}
@media (max-width:560px){
  .mystep .wrap{padding:0 20px;}
  .mystep .sec{padding:16px 0;}
  .mystep .cta-sec{padding:32px 0;}
  .mystep .page-hero{padding:24px 0 12px;}
  .mystep .page-hero h1{font-size:26px;}
  .mystep .page-hero .hero-hl{font-size:26px;}
  .mystep .page-hero .hero-sub{font-size:16.1px;}
  .mystep .sec-head{margin-bottom:22px;}
  .mystep .sec-head h2{font-size:24px;}
  /* データ説明文はスマホで2行に収める */
  .mystep .sec-head p.data-lead{font-size:13.5px;line-height:1.7;}
  /* CTA見出しは3行以内に収まるようフォント調整 */
  .mystep .cta h2{font-size:21px;line-height:1.45;}
  .mystep .mystep-cta h3{font-size:20px;line-height:1.45;}
  /* プロセス記事の大きな見出し: 2行以内に収まるよう縮小＋前余白詰め */
  .mystep .mystep-h2{font-size:19px;line-height:1.45;margin:26px 0 14px;padding-left:14px;}
  .mystep .mystep-cta{margin:26px 0 16px;padding:32px 22px;}
  .mystep .navcards{grid-template-columns:1fr!important;}
  .mystep .prose h2{font-size:23px;}
  /* コマは横長ブロックを縦に5段（コマ名 左・時間 右、間隔は詰めめ） */
  .mystep .koma-grid{grid-template-columns:1fr;gap:8px;}
  .mystep .koma-card{display:flex;justify-content:flex-start;align-items:baseline;gap:22px;text-align:left;
    padding:12px 18px;border-top:none;border-left:4px solid var(--primary);}
  .mystep .koma-card b{display:inline;font-size:16px;}
  .mystep .koma-card span{display:inline;margin-top:0;font-size:15px;color:var(--ink);}
  .mystep .teacher-grid{grid-template-columns:1fr 1fr;}
  /* インラインの2列指定より優先して、スマホでは必ず1列に */
  .mystep .records{grid-template-columns:1fr!important;gap:10px;}
  .mystep .rec{
    display:grid;grid-template-columns:auto 1fr;grid-template-areas:"tag text" "tag meta";
    column-gap:13px;row-gap:3px;align-items:center;padding:12px 15px;
  }
  .mystep .rec-tag{grid-area:tag;align-self:center;font-size:11.5px;padding:5px 11px;}
  .mystep .rec p{grid-area:text;margin:0;font-size:13px;line-height:1.55;}
  .mystep .rec p b{font-size:14px;}
  .mystep .rec small{grid-area:meta;margin:0;font-size:11px;}
  .mystep .step{grid-template-columns:1fr;gap:14px;padding:24px 22px;}
  .mystep .step-num{width:auto;display:inline-flex;align-items:baseline;gap:8px;padding:8px 16px;}
  .mystep .step-num b{display:inline;font-size:22px;}
  .mystep .stat-hero .sh-card{padding:18px 28px;}
  .mystep .stat-hero .sh-big{font-size:44px;}
  .mystep .stat-hero .sh-lbl{font-size:13px;margin-top:5px;}
}


/* ---------- 2026モダンCSS（WebデザインSEOトレンド集★1・2・3・4・7｜2026-07-10実装） ---------- */
/* ★1: 段落の末尾1文字孤立を防止（見出しのbalance/auto-phraseは既存実装済み） */
.mystep p{text-wrap:pretty;}
/* ★2: textareaが入力量に応じて自動拡張（非対応ブラウザは従来どおり固定） */
textarea{field-sizing:content;min-height:3lh;max-height:12lh;}
/* ★4: SPA風クロスドキュメント遷移（対応ページ同士のみ発動・Firefoxは通常遷移のまま）
   ※ロゴのview-transition-nameはCocoonのロゴ要素が複数あり名前重複→遷移無効化のため不使用 */
@view-transition{navigation:auto;}
/* ★7: スクロールでふわっと出現（JSゼロ・非対応ブラウザは即表示・reduced-motion時は無効） */
/* .mystepのoverflow:hiddenがview()のスクロール基準を乗っ取りアニメが再生されないため、
   視覚的に同一でスクロールコンテナを作らないclipへ差し替え（非対応ブラウザは無効宣言→hidden維持） */
.mystep{overflow:clip;}
/* ⚠2026-07-28修正: opacity:0 を外した。animation-fill-mode:both のため、
   スクロールされない限り opacity:0 のまま固定され、検索エンジンから見て
   本文が「非表示」と判定されていた（page-304で2,559字・5ka-courseで13,355字を実測）。
   動き（translate）だけ残せば見た目はほぼ同じで、テキストは常に見える状態になる。 */
@keyframes ms26-fade-up{from{translate:0 24px;}}
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .mystep .mystep-box,.mystep .navcards>*,.mystep .records>*,
    .mystep .hub-cards .teacher-item,.mystep .ktool-card{
      animation:ms26-fade-up linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 60%;
    }
  }
}
/* ★7b: popover出現の質感（現状popover未使用・将来のメニュー/モーダル採用時に効く） */
[popover]{opacity:0;translate:0 8px;transition:opacity .25s,translate .25s,display .25s allow-discrete,overlay .25s allow-discrete;}
[popover]:popover-open{opacity:1;translate:0 0;@starting-style{opacity:0;translate:0 8px;}}
/* ★3: prefers-reduced-motion一括停止（アクセシビリティ監査対応・.01msはイベント維持の定石） */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  @view-transition{navigation:none;}
}
/* 表のはみ出し修正（2026-07-10・元からのバグ）: price-table等のth white-space:nowrapが
   スマホ幅でセルを突き抜けるため、狭い画面のみ折り返しを許可（PCは従来どおり1行維持）。
   base.cssの .mystep table.price-table(.info) tbody th (0,2,3)/(0,3,3) に勝つよう同セレクタで後勝ち上書き */
@media (max-width:560px){
  .mystep th,
  .mystep table.price-table tbody th,
  .mystep table.price-table.info tbody th{white-space:normal;}
}
/* ---------- /2026モダンCSS ---------- */

/* =====================================================================
   デジタルパンフレット（5科コース）— ボタン＋モーダルビューア（2026-07-27）
   紙のパンフ（A4三つ折り6面）を1面ずつ画像化し、モーダル内で1面ずつ見せる。
   画像はモーダルが開くまで読み込まれない（display:none＋loading="lazy"）ので
   トップの初期表示は重くならない。
   ===================================================================== */
.mystep .pamph-cta{display:flex;justify-content:center;margin:0 0 34px;}
.mystep .pamph-btn{
  display:flex;align-items:center;gap:18px;text-align:left;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  box-shadow:var(--shadow);padding:16px 26px 16px 16px;max-width:560px;width:100%;
  font-family:var(--font-body);color:inherit;
  transition:transform .15s ease, box-shadow .15s ease;}
.mystep .pamph-btn:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);}
.mystep .pamph-btn img{
  width:78px;height:110px;object-fit:cover;object-position:top;border-radius:8px;flex:0 0 auto;
  border:1px solid var(--line);box-shadow:0 4px 12px -6px rgba(0,0,0,.35);}
.mystep .pamph-txt{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;}
/* display:flexにするとnowrapの語が入ったとき他の文字が1字ずつ折り返されるためblockにする（2026-07-27） */
.mystep .pamph-txt b{font-family:var(--font-head);font-size:17px;font-weight:700;color:var(--primary-deep);
  display:block;line-height:1.5;text-wrap:balance;}
.mystep .pamph-txt b::before{content:"📖";font-size:18px;margin-right:8px;}
.mystep .pamph-txt small{font-size:12.5px;line-height:1.7;color:var(--ink-soft);}
.mystep .pamph-btn .arr{margin-left:auto;font-size:18px;color:var(--primary-deep);flex:0 0 auto;
  transition:transform .15s ease;}
.mystep .pamph-btn:hover .arr{transform:translateX(4px);}

/* ---- モーダル本体 ----
   ※モーダルは .mystep の外（fixedを確実に効かせるため）に置くので、
     .mystep 側のリセット（box-sizing/margin）が届かない。ここで自前にリセットする。 */
.pamph-modal,.pamph-modal *{box-sizing:border-box;margin:0;padding:0;}
body.pamph-open .go-to-top{display:none!important;}   /* 暗幕越しに透けるので隠す */
.pamph-modal{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;
  font-family:'Zen Kaku Gothic New',sans-serif;}
.pamph-modal[hidden]{display:none;}
.pamph-modal .pm-back{position:absolute;inset:0;background:rgba(18,26,36,.86);backdrop-filter:blur(3px);}
.pamph-modal .pm-box{position:relative;width:min(100%,760px);height:100%;display:flex;flex-direction:column;
  padding:64px 10px 12px;}
/* ---- ページめくり（外部ライブラリ不要のCSS 3D）----
   全ページを同じ位置に重ね、左端を軸に紙が1枚ずつめくれる。
   めくっている最中は「次のページ」が下に見えるので、紙をめくる感覚になる。 */
.pamph-modal .pm-stage{
  flex:1;min-height:0;position:relative;perspective:2400px;perspective-origin:50% 50%;}
/* 各ページはステージいっぱいに重ねる（高さが確定するので画像が下のボタンを覆わない） */
.pamph-modal .pm-slide{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:10;
  transition:opacity .3s ease;}
.pamph-modal .pm-slide.is-past{z-index:20;pointer-events:none;}
.pamph-modal .pm-slide.is-next{z-index:5;}          /* 次のページは現在の下で待機 */
.pamph-modal .pm-slide.is-future{opacity:0;z-index:1;pointer-events:none;}
/* 回転させるのは紙（＝画像）そのもの。左端を軸にめくれる */
/* height:100% を明示しないと、中のimgの max-height:100% が解決できず原寸で描画される
   （＝下のページ送りボタンを覆ってしまう。2026-07-27の実測で判明） */
.pamph-modal .pm-slide a{display:flex;align-items:center;justify-content:center;
  height:100%;max-width:100%;cursor:zoom-in;
  transform-origin:left center;backface-visibility:hidden;
  transition:transform .62s cubic-bezier(.42,.02,.24,1);}

/* ---- 拡大表示（別タブに飛ばさず、この場で拡大して自由に動かす）---- */
.pamph-modal .pm-slide.zoomed{
  overflow:auto;align-items:flex-start;justify-content:flex-start;cursor:grab;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-x pan-y;}
.pamph-modal .pm-slide.zoomed.dragging{cursor:grabbing;}
.pamph-modal .pm-slide.zoomed a{height:auto;max-width:none;max-height:none;cursor:inherit;
  transform:none!important;}
.pamph-modal .pm-slide.zoomed img{max-width:none;max-height:none;height:auto;
  border-radius:0;box-shadow:none;}
.pamph-modal .pm-slide.zoomed::-webkit-scrollbar{width:9px;height:9px;}
.pamph-modal .pm-slide.zoomed::-webkit-scrollbar-thumb{background:rgba(255,255,255,.34);border-radius:5px;}
.pamph-modal .pm-slide.zoomed::-webkit-scrollbar-track{background:transparent;}
.pamph-modal .pm-slide.is-past a{transform:rotateY(-158deg);}
@media (prefers-reduced-motion:reduce){
  .pamph-modal .pm-slide a{transition:none;}
  .pamph-modal .pm-slide.is-past{opacity:0;}
  .pamph-modal .pm-slide.is-past a{transform:none;}
}
.pamph-modal .pm-slide img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  border-radius:6px;background:#fff;box-shadow:0 20px 50px -20px rgba(0,0,0,.7);}
/* 「タップで拡大」の案内（別タブで原寸を開く＝スマホのピンチズームで読める） */
.pamph-modal .pm-hint{color:rgba(255,255,255,.72);font-size:11.5px;text-align:center;
  padding:0 10px 6px;line-height:1.6;}
/* 上部バー（閉じる・PDF）。指で押しやすい大きさに（2026-07-28拡大） */
.pamph-modal .pm-top{position:absolute;top:0;left:0;right:0;height:64px;display:flex;align-items:center;
  justify-content:space-between;gap:12px;padding:0 14px;}
.pamph-modal .pm-title{color:#fff;font-size:15.5px;font-weight:700;opacity:.94;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pamph-modal .pm-tools{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.pamph-modal .pm-tools a,.pamph-modal .pm-close{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;height:46px;padding:0 20px;
  border:0;cursor:pointer;border-radius:999px;background:rgba(255,255,255,.22);color:#fff;
  font-size:14.5px;font-weight:700;text-decoration:none;font-family:inherit;
  transition:background .15s ease, transform .15s ease;box-shadow:0 3px 10px -4px rgba(0,0,0,.5);}
.pamph-modal .pm-tools a:hover,.pamph-modal .pm-close:hover{background:rgba(255,255,255,.4);transform:scale(1.05);}
.pamph-modal .pm-tools a:active,.pamph-modal .pm-close:active{transform:scale(.96);}
.pamph-modal .pm-close{width:46px;padding:0;font-size:26px;line-height:1;}
/* パンフ同士の切り替えボタン（対象が同じページに無い場合はJSで非表示） */
.pamph-modal .pm-switch{
  display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 18px;border:0;
  cursor:pointer;border-radius:999px;background:var(--pm-switch-bg,#ff9d3c);color:#fff;
  font-size:14px;font-weight:700;font-family:inherit;white-space:nowrap;
  transition:filter .15s ease, transform .15s ease;box-shadow:0 3px 10px -4px rgba(0,0,0,.5);}
.pamph-modal .pm-switch::before{content:"📕";margin-right:7px;font-size:15px;}
.pamph-modal .pm-switch:hover{filter:brightness(1.08);transform:scale(1.05);}
.pamph-modal .pm-switch:active{transform:scale(.96);}
@media (max-width:600px){
  .pamph-modal .pm-switch{height:44px;padding:0 13px;font-size:12.5px;}
  .pamph-modal .pm-switch::before{margin-right:5px;font-size:13px;}
  .pamph-modal .pm-title{display:none;}   /* 幅が足りないのでタイトルは隠す */
}
/* 下部バー（ページ送り） */
.pamph-modal .pm-bar{display:flex;align-items:center;justify-content:center;gap:22px;padding:14px 0 4px;flex:0 0 auto;}
/* ページ送りは指でも押しやすい大きさにする（2026-07-28・小さいという指摘を受けて拡大） */
.pamph-modal .pm-prev,.pamph-modal .pm-next{
  width:64px;height:64px;border:0;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.22);
  color:#fff;font-size:32px;line-height:1;transition:background .15s ease, transform .15s ease;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px -4px rgba(0,0,0,.5);}
.pamph-modal .pm-prev:hover,.pamph-modal .pm-next:hover{background:rgba(255,255,255,.4);transform:scale(1.06);}
.pamph-modal .pm-prev:active,.pamph-modal .pm-next:active{transform:scale(.96);}
.pamph-modal .pm-prev[disabled],.pamph-modal .pm-next[disabled]{opacity:.28;cursor:default;}
.pamph-modal .pm-count{color:#fff;font-size:16px;font-weight:700;min-width:78px;text-align:center;letter-spacing:.04em;}
@media (max-width:600px){
  .mystep .pamph-btn{gap:13px;padding:13px 16px 13px 13px;}
  .mystep .pamph-btn img{width:60px;height:85px;}
  .mystep .pamph-txt b{font-size:15px;}
  .mystep .pamph-txt small{font-size:11.5px;}
  .pamph-modal .pm-box{padding:60px 6px 8px;}
  .pamph-modal .pm-top{height:60px;padding:0 10px;}
  .pamph-modal .pm-title{font-size:13px;}
  .pamph-modal .pm-tools a{height:44px;padding:0 16px;font-size:13.5px;}
  .pamph-modal .pm-close{width:44px;height:44px;font-size:25px;}
  .pamph-modal .pm-bar{gap:18px;padding:12px 0 2px;}
  .pamph-modal .pm-prev,.pamph-modal .pm-next{width:58px;height:58px;font-size:29px;}
  .pamph-modal .pm-count{font-size:15px;min-width:70px;}
}

.page-id-4581 #sidebar{display:none!important;}.page-id-4581 .main{width:100%!important;max-width:100%!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;}.page-id-4581 .content{padding-top:0!important;}.page-id-4581 .entry-content{margin-top:0!important;margin-bottom:0!important;}.page-id-4581 .article{padding:0!important;margin-bottom:0!important;}.page-id-4581 .entry-title{display:none!important;}body.page-id-4581{background:#f3efe7!important;}

.ktool{max-width:920px;margin:0 auto;padding:0 14px 40px;color:#22303c;
  font-family:"Zen Kaku Gothic New",sans-serif;line-height:1.7;}
.ktool *{box-sizing:border-box;}
.ktool-hero{background:linear-gradient(135deg,#163a5b,#1f5f8b);color:#fff;border-radius:20px;
  padding:30px 24px;margin:18px 0;text-align:center;box-shadow:0 10px 30px rgba(20,50,80,.18);}
.ktool-hero .eyebrow{font-size:13px;letter-spacing:.08em;opacity:.92;margin:0 0 8px;font-weight:700;}
.ktool-hero h1{font-family:"Zen Maru Gothic",sans-serif;font-size:25px;line-height:1.4;margin:0 0 10px;
  text-wrap:balance;}
.ktool-hero .lead{font-size:14.5px;opacity:.96;margin:0;text-wrap:pretty;}
.ktool-note{background:#fff6e8;border:1px solid #f3d39a;border-radius:12px;padding:12px 14px;
  font-size:12.7px;color:#7a5a1f;margin:0 0 20px;}
.ktool-note strong{color:#b3791a;}
.ktool-card{background:#fff;border:1px solid #e7ecf1;border-radius:18px;padding:22px 18px;margin:0 0 22px;
  box-shadow:0 6px 20px rgba(20,50,80,.06);}
.ktool-card>h2{font-family:"Zen Maru Gothic",sans-serif;font-size:20px;color:#163a5b;margin:0 0 4px;
  display:flex;align-items:center;gap:9px;}
.ktool-card>h2 .num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  background:#f0830a;color:#fff;border-radius:50%;font-size:16px;flex:0 0 auto;}
.ktool-card>.sub{font-size:13px;color:#5f7184;margin:0 0 16px;}
.ktool-inputs{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 14px;}
.ktool-inputs label{flex:1 1 200px;display:flex;flex-direction:column;font-size:13.5px;font-weight:700;
  color:#2b4357;gap:6px;}
.ktool-inputs input,.ktool-inputs select{font-size:18px;padding:11px 12px;border:2px solid #cdd9e3;
  border-radius:11px;background:#fff;color:#163a5b;font-weight:700;width:100%;}
.ktool-inputs input:focus,.ktool-inputs select:focus{outline:none;border-color:#1f7fb8;
  box-shadow:0 0 0 3px rgba(31,127,184,.15);}
.ktool-inputs .hint{font-size:11.5px;color:#8290a0;font-weight:500;line-height:1.5;}
.ktool-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:#5f7184;
  margin:6px 0 14px;}
.ktool-filters button{border:1.5px solid #cdd9e3;background:#fff;color:#5f7184;border-radius:999px;
  padding:6px 14px;font-size:13px;font-weight:700;cursor:pointer;}
.ktool-filters button.on{background:#163a5b;color:#fff;border-color:#163a5b;}
/* FAQ（静的本文・SEO用） */
.k-faq details{border:1px solid #e4e9ee;border-radius:10px;margin:0 0 8px;background:#fff;}
.k-faq summary{cursor:pointer;padding:11px 14px;font-weight:700;color:#2c4763;font-size:14px;list-style:none;}
.k-faq summary::-webkit-details-marker{display:none;}
.k-faq summary::before{content:"▶ ";font-size:11px;color:#e8951d;}
.k-faq details[open] summary::before{content:"▼ ";}
.k-faq p{margin:0;padding:0 14px 12px;font-size:13.5px;line-height:1.9;color:#44525f;}
/* 説明ヒントはデフォルト非表示（❓トグルで表示・2026-07-26塾長指示） */
.ktool .hint,.ktool .k-feat-hint{display:none;}
.ktool.hints-on .hint{display:block;}
.ktool.hints-on .k-feat-hint{display:inline;}
.k-hints-btn{display:inline-block;margin-left:10px;padding:4px 12px;font-size:12px;border:1px solid #cdd9e3;
  background:#fff;color:#54657a;border-radius:999px;cursor:pointer;vertical-align:middle;}
.k-adv{margin:0 0 14px;border:1px dashed #cdd9e3;border-radius:12px;padding:4px 12px;background:#fafbfc;}
.k-adv>summary{cursor:pointer;padding:10px 4px;font-weight:700;color:#3b5a77;font-size:14px;list-style:none;}
.k-adv>summary::-webkit-details-marker{display:none;}
.k-adv[open]>summary{border-bottom:1px dashed #dde5ec;margin-bottom:8px;}
details.k-sp{margin:14px 0 0;}
details.k-sp>summary{list-style:none;}
details.k-sp>summary::-webkit-details-marker{display:none;}
.ktool-searchbtn{display:block;width:100%;max-width:440px;margin:14px auto 18px;padding:16px 20px;
  font-family:"Zen Maru Gothic",sans-serif;font-size:18px;font-weight:800;color:#fff;letter-spacing:.02em;
  background:#f0830a;border:none;border-radius:14px;cursor:pointer;box-shadow:0 6px 18px rgba(240,131,10,.32);transition:background .15s,transform .1s;}
.ktool-searchbtn:hover{background:#dd7607;}
.ktool-searchbtn:active{transform:translateY(1px);}
.ktool-searchbtn::before{content:"🔍 ";}
.k-zone-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;
  font-family:"Zen Maru Gothic",sans-serif;font-size:15px;font-weight:800;margin:18px 0 8px;
  padding:9px 13px;border-radius:10px;border-left:6px solid #ccc;background:#f6f8fa;color:#2b4357;}
.k-zone-head.z-safe{border-left-color:#1f9d55;background:#f1faf4;color:#188048;}
.k-zone-head.z-ok{border-left-color:#2f7fc0;background:#eff5fc;color:#2667a8;}
.k-zone-head.z-effort{border-left-color:#aeb8c2;background:#f5f7f9;color:#5f6b78;}
.k-zone-head.z-unknown{border-left-color:#d9a441;background:#fdf8ef;color:#b07d24;}
.k-zone-n{font-size:12px;font-weight:700;opacity:.85;}
.k-zone-more{font-size:12px;color:#8290a0;margin:4px 0 8px;padding-left:4px;}
.ktool-results{display:flex;flex-direction:column;gap:10px;}
.k-empty,.k-count{font-size:13px;color:#7a8694;margin:4px 0;}
.k-count{font-weight:700;color:#163a5b;}
.k-row{border:1px solid #e7ecf1;border-left-width:6px;border-radius:12px;padding:12px 14px;background:#fcfdfe;}
.k-row.z-safe{border-left-color:#1f9d55;background:#f1faf4;}
.k-row.z-ok{border-left-color:#2f7fc0;background:#eff5fc;}
.k-row.z-effort{border-left-color:#aeb8c2;background:#f6f8fa;}
.k-row.z-unknown{border-left-color:#d9a441;background:#fdf8ef;}
.k-row-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
.k-name{font-family:"Zen Maru Gothic",sans-serif;font-size:17px;font-weight:700;color:#163a5b;}
.k-badge{display:inline-flex;flex-direction:column;align-items:flex-end;font-size:13.5px;font-weight:700;
  line-height:1.25;text-align:right;}
.k-badge small{font-size:10.5px;font-weight:500;opacity:.85;}
.k-badge.z-safe{color:#188048;}.k-badge.z-ok{color:#2667a8;}
.k-badge.z-effort{color:#7d8893;}.k-badge.z-unknown{color:#b07d24;}
.k-row-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.7px;color:#54657a;margin-top:7px;}
.k-row-meta b{color:#163a5b;font-size:14px;}
.k-row-bar{font-size:11.6px;color:#8290a0;margin-top:6px;border-top:1px dashed #e2e8ee;padding-top:6px;}
.k-row-toku{font-size:11.4px;color:#b07d24;margin-top:5px;}
.k-short{font-size:13px;color:#163a5b;margin-top:8px;background:#eef6ff;border:1px solid #cfe2f5;border-radius:9px;padding:7px 10px;line-height:1.55;}
.k-short b{color:#0a5fad;}
.k-bai{font-size:12.2px;color:#3a4b5c;margin-top:6px;}
.k-bai b{color:#163a5b;}
.k-advice{font-size:12px;color:#5f7184;margin-top:3px;}
.k-est{display:inline-block;margin-left:7px;font-size:10px;font-weight:700;color:#b07d24;background:#fdf4e3;border:1px solid #ecd6a8;border-radius:5px;padding:1px 5px;vertical-align:2px;}
.k-loc{font-size:12.5px;color:#2b4357;margin-top:6px;}
.k-loc b{color:#163a5b;}
.k-city{font-size:11.5px;color:#7a8694;}
.k-tt{display:inline-block;font-size:11.5px;font-weight:700;color:#188048;background:#e8f6ee;border:1px solid #b9e3c9;border-radius:6px;padding:1px 7px;}
.k-handoff-btns{display:flex;flex-wrap:wrap;gap:12px;margin:6px 0 10px;}
.k-cta{flex:1 1 240px;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;
  font-family:"Zen Maru Gothic",sans-serif;font-size:15.5px;font-weight:700;color:#fff;background:#f0830a;
  border:none;border-radius:12px;padding:14px 16px;box-shadow:0 4px 12px rgba(240,131,10,.28);}
.k-cta:hover{background:#dd7607;}
.k-cta.k-cta2{background:#1f5f8b;box-shadow:0 4px 12px rgba(31,95,139,.25);}
.k-cta.k-cta2:hover{background:#194f73;}
.k-handoff-note{font-size:13px;color:#2b4357;margin:4px 0 6px;background:#f1faf4;border:1px solid #cfe9d8;border-radius:9px;padding:8px 11px;}
.k-handoff-note b{color:#188048;}
.k-handoff-sub{font-size:12px;color:#7a8694;margin:0;line-height:1.6;}
.k-handoff-sub b{color:#46586b;}
.k-yr{display:inline-block;margin-left:6px;font-size:10px;font-weight:700;color:#188048;background:#e8f6ee;border:1px solid #b9e3c9;border-radius:5px;padding:1px 5px;vertical-align:1px;}
.k-detail{margin-top:8px;border-top:1px dashed #e2e8ee;padding-top:7px;}
.k-detail>summary{font-size:12.3px;font-weight:700;color:#2667a8;cursor:pointer;list-style:none;}
.k-detail>summary::-webkit-details-marker{display:none;}
.k-detail>summary::before{content:"▼ ";font-size:10px;}
.k-detail[open]>summary::before{content:"▲ ";font-size:10px;}
.k-detail-body{font-size:12.2px;color:#46586b;line-height:1.65;margin-top:7px;display:flex;flex-direction:column;gap:5px;}
.k-detail-body b{color:#163a5b;}
.k-detail-src{font-size:10.8px;color:#9aa6b2;margin-top:3px;}
.ktool-about{font-size:13.7px;color:#3a4b5c;}
.ktool-about h3{font-family:"Zen Maru Gothic",sans-serif;font-size:16px;color:#163a5b;margin:18px 0 7px;}
.ktool-about p{margin:0 0 10px;}
.ktool-about .k-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;}
.ktool-about .k-links a{flex:1 1 240px;display:block;background:#eff5fc;border:1px solid #d6e3f0;
  border-radius:12px;padding:12px 14px;color:#1b4a73;font-weight:700;font-size:13.5px;text-decoration:none;}
.ktool-about .k-links a:hover{background:#e3eef9;}
.ktool-src{font-size:11.5px;color:#9aa6b2;margin-top:18px;border-top:1px solid #eef1f4;padding-top:12px;}
.k-feat-filters{border-top:1px dashed #e2e8ee;padding-top:12px;}
.k-feat-filters button.on{background:#188048;color:#fff;border-color:#188048;}
.k-feat-hint{font-size:11.3px;color:#8290a0;font-weight:500;flex-basis:100%;margin-top:2px;}
.k-feat{margin-top:9px;border-top:1px dashed #e2e8ee;padding-top:8px;}
.k-feat-catch{font-size:13px;font-weight:700;color:#1b4a73;margin-bottom:5px;}
.k-feat-catch::before{content:"🏫 ";}
.k-feat-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:2px;}
.k-tag{font-size:11px;font-weight:700;color:#2b6b3f;background:#e8f6ee;border:1px solid #bce3ca;
  border-radius:999px;padding:2px 9px;cursor:pointer;}
.k-tag.on{background:#188048;color:#fff;border-color:#188048;}
.k-feat-detail{margin-top:7px;border-top:none;padding-top:0;}
.k-feat-detail>summary{color:#188048;}
.k-feat-detail>summary::before{content:"▼ ";font-size:10px;}
.k-feat-detail[open]>summary::before{content:"▲ ";font-size:10px;}
.k-feat-detail a{color:#1b4a73;font-weight:700;}
.k-row.z-browse{border-left-color:#c9d3dd;background:#fcfdfe;}
@media(max-width:520px){
  .ktool-hero h1{font-size:21px;}
  .ktool-inputs label{flex:1 1 100%;}
  .k-name{font-size:16px;}
}

/* H1内バッジ＋h-sub（3層ルール・2026-08-13） */
.ktool-hero h1 .h1-kicker{display:flex;width:fit-content;max-width:100%;align-items:center;gap:8px;
  margin:0 auto 12px;background:#fff;border-radius:999px;padding:7px 15px;
  font-size:13px;font-weight:700;color:#1f5f8b;line-height:1.4;letter-spacing:0;
  box-shadow:0 6px 18px rgba(20,50,80,.25);}
.ktool-hero h1 .h1-kicker .dot{width:8px;height:8px;border-radius:50%;background:#e8a33d;flex:none;}
.ktool-hero h1 .h-sub{display:block;font-size:14px;font-weight:500;color:#fff;opacity:.95;
  margin-top:10px;line-height:1.75;text-wrap:pretty;}

/* H1分離（2026-08-14）：main/h-subをH1外へ。見た目は旧h1内と同一 */
.ktool-hero .hero-hl{margin:2px 0 10px;font-family:"Zen Maru Gothic",sans-serif;font-size:25px;line-height:1.4;text-wrap:balance;font-weight:700;color:#fff;}
.ktool-hero .hero-sub{display:block;font-size:14px;font-weight:500;color:#fff;opacity:.95;margin:0 0 10px;line-height:1.75;text-wrap:pretty;}
@media(max-width:520px){.ktool-hero .hero-hl{font-size:21px;}}
