/*
Theme Name: 深田塾 2026
Theme URI: https://fjuku.com/
Author: 深田塾
Description: 看護師国家試験の塾・予備校「深田塾」のテーマ(2026年11月 作り直し版)。ライブの案内・料金・ブログの新着がトップに自動で出ます。
Version: 1.0.2
Requires PHP: 7.4
Text Domain: fukata-juku-2026
*/

/* 旧デザインの書体(トップページの見出し用) */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@700;900&family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Shippori+Mincho+B1:wght@700;800&display=swap');

/* ---------- 基本 ---------- */
:root {
  --navy: #16325c;
  --blue: #2f6fca;
  --sky: #eaf3fd;
  --sky2: #f5f9fe;
  --pink: #e4507a;
  --pink-soft: #fdeef3;
  --line: #06c755;
  --text: #263238;
  --muted: #5f6b76;
  --border: #d8e3ef;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(22, 50, 92, .08);
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: #fff;
  padding-bottom: 72px; /* 下の固定ボタンのぶん */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { opacity: .85; }
h1, h2, h3, h4 { line-height: 1.45; color: var(--navy); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .9em 1.6em; border-radius: 999px; font-weight: 700; text-decoration: none;
  line-height: 1.3; text-align: center; border: 0; cursor: pointer;
}
.btn-line { background: var(--line); color: #fff; box-shadow: 0 4px 0 #05a246; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 #24569f; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #b83a5d; }
.btn-white { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-big { font-size: 1.1rem; padding: 1.05em 1.4em; width: 100%; max-width: 460px; flex-direction: column; gap: .25em; }
.btn small { display: block; font-weight: 400; font-size: .78em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px; background: #8b1f2f; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.logo-text { font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.logo-text small { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); }
.nav-pc { display: none; }
.nav-pc a { color: var(--navy); text-decoration: none; font-size: .92rem; margin-left: 18px; }
.nav-pc .btn { margin-left: 18px; padding: .55em 1.1em; font-size: .9rem; }
.nav-sp summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .9rem; color: var(--navy);
}
.nav-sp summary::-webkit-details-marker { display: none; }
.nav-sp[open] .nav-sp-panel { display: block; }
.nav-sp-panel {
  display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 10px 20px 20px;
}
.nav-sp-panel a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--sky); color: var(--navy); text-decoration: none; }
.nav-sp-panel .btn { margin-top: 14px; width: 100%; }
@media (min-width: 900px) {
  .nav-pc { display: flex; align-items: center; }
  .nav-sp { display: none; }
}

/* ---------- ヒーロー(いちばん上) ---------- */
.hero { position: relative; background: var(--sky); }
.hero-img { width: 100%; max-height: 520px; object-fit: cover; }
.hero-text { padding-top: 26px; padding-bottom: 30px; }
.hero h1 { font-size: 1.55rem; margin-bottom: .3em; }
.hero h1 small { display: block; font-size: .95rem; color: var(--blue); font-weight: 700; }
.hero .lead { font-size: 1.05rem; color: var(--navy); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.hero-stats li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .3em .9em; font-size: .85rem; color: var(--navy);
}
.hero-stats b { color: var(--blue); }
@media (min-width: 900px) {
  .hero h1 { font-size: 2.1rem; }
}

/* ---------- セクション共通 ---------- */
.sec { padding: 56px 0; }
.sec-sky { background: var(--sky2); }
.sec-title { text-align: center; font-size: 1.45rem; margin-bottom: .3em; }
.sec-sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: .95rem; }
.sec-more { text-align: center; margin-top: 24px; }
@media (min-width: 900px) { .sec-title { font-size: 1.8rem; } }

/* ---------- ライブの案内 ---------- */
.live-box {
  border: 3px solid var(--pink); border-radius: 20px; background: #fff;
  padding: 26px 22px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
}
.live-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2em .8em; border-radius: 999px; }
.badge-pink { background: var(--pink); color: #fff; }
.badge-blue { background: var(--sky); color: var(--blue); }
.live-box h2 { font-size: 1.45rem; margin-bottom: .2em; }
.live-date { font-size: 1.2rem; font-weight: 700; color: var(--pink); margin-bottom: .8em; }
.check { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check li { position: relative; padding-left: 1.6em; margin-bottom: .5em; }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--blue);
  width: 1.2em; height: 1.2em; border-radius: 50%; font-size: .85em; display: grid; place-items: center; margin-top: .35em;
}
.live-how { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.live-cta { text-align: center; }
.live-strip {
  background: var(--pink); color: #fff; text-align: center; font-size: .9rem; padding: 8px 12px;
}
.live-strip a { color: #fff; font-weight: 700; }

/* ---------- コース・料金 ---------- */
.course-group { margin-bottom: 36px; }
.course-group h3 {
  font-size: 1.15rem; border-left: 6px solid var(--blue); padding-left: 10px; margin-bottom: 14px;
}
.course-list { display: grid; gap: 14px; }
@media (min-width: 760px) { .course-list { grid-template-columns: 1fr 1fr; } }
.course {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.course.is-pick { border: 2px solid var(--pink); }
.course-name { font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.course-desc { font-size: .9rem; color: var(--muted); margin: .3em 0 .6em; flex: 1; }
.course-price { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.course-price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.course-note { font-size: .82rem; color: var(--muted); }
.tax-note { text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- カード(悩み・ブログ・教室) ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.card b { display: block; color: var(--navy); margin-bottom: .3em; }
.card span { font-size: .85rem; color: var(--muted); line-height: 1.6; display: block; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-img .card-body { padding: 12px 14px 14px; }
.card-date { font-size: .78rem; color: var(--muted); }

/* ---------- 教え方の柱 ---------- */
.pillars { display: grid; gap: 14px; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.pillar-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 6px;
}
.pillar h3 { font-size: 1.08rem; }
.pillar p { font-size: .93rem; margin: 0; }

/* ---------- 先生紹介 ---------- */
.teacher { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .teacher { grid-template-columns: 300px 1fr; } }
.teacher img { border-radius: 20px; box-shadow: var(--shadow); }
.teacher-nums { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.teacher-nums li { background: var(--sky); border-radius: 10px; padding: 8px 10px; font-size: .86rem; }
.teacher-nums b { display: block; font-size: 1.15rem; color: var(--navy); }
.teacher-quote { font-weight: 700; color: var(--navy); font-size: 1.1rem; }

/* ---------- 無料の入り口 ---------- */
.free-boxes { display: grid; gap: 14px; }
@media (min-width: 760px) { .free-boxes { grid-template-columns: 1fr 1fr; } }
.free-box { background: #fff; border: 2px dashed var(--blue); border-radius: var(--radius); padding: 20px; text-align: center; }
.free-box h3 { font-size: 1.1rem; }

/* ---------- 下のLINEの帯 ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 44px 0; }
.cta-band h2 { color: #fff; font-size: 1.35rem; }
.cta-band p { color: #dfe8f5; }

/* ---------- 下の固定ボタン ---------- */
.fixed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid;
  grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 14px rgba(0,0,0,.06);
}
.fixed-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 62px; font-size: .74rem; text-decoration: none; color: var(--navy); font-weight: 700;
}
.fixed-bar a .ico { font-size: 1.2rem; line-height: 1; }
.fixed-bar a.is-line { background: var(--line); color: #fff; }
.fixed-bar a.is-live { background: var(--pink); color: #fff; }

/* ---------- フッター ---------- */
.site-footer { background: #0f2441; color: #c9d6e6; padding: 40px 0 24px; font-size: .88rem; }
.site-footer a { color: #e6eef8; text-decoration: none; }
.foot-cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(5, 1fr); } }
.foot-cols h4 { color: #fff; font-size: .95rem; margin-bottom: .5em; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: .35em; }
.foot-sns { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 10px; }
.copy { font-size: .78rem; color: #8ea3bd; margin-top: 14px; }

/* ---------- 固定ページ・ブログ記事 ---------- */
.page-head { background: var(--sky); padding: 26px 0 22px; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.entry { max-width: 780px; margin: 0 auto; padding: 32px 20px 40px; }
.entry h2 { font-size: 1.3rem; border-bottom: 2px solid var(--sky); padding-bottom: .3em; margin-top: 1.8em; }
.entry h3 { font-size: 1.12rem; margin-top: 1.4em; }
.entry img { border-radius: 10px; margin: 1em auto; }
.entry table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.entry th, .entry td { border: 1px solid var(--border); padding: .6em .7em; text-align: left; vertical-align: top; }
.entry th { background: var(--sky); color: var(--navy); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry blockquote { margin: 1em 0; padding: .8em 1em; background: var(--sky2); border-left: 4px solid var(--blue); }
.entry .wp-block-button__link, .entry .button {
  display: inline-block; background: var(--blue); color: #fff; padding: .8em 1.4em; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.post-meta { font-size: .82rem; color: var(--muted); }
.after-cta { background: var(--sky2); border-radius: var(--radius); padding: 22px; text-align: center; margin-top: 36px; }
.after-cta p { margin-bottom: .8em; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.pager .page-numbers { padding: .4em .9em; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }
.pager .current { background: var(--navy); color: #fff; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1em 3em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.1em; height: 2.1em; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; padding: .5em 0; border-bottom: 1px dashed var(--border); }
.timeline time { font-weight: 700; color: var(--navy); }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }

/* =========================================================
 * トップページ(旧デザイン再現)
 * 旧トップ(静的HTML)の見た目を、.oldtop の中だけで再現する。
 * ほかのページには効かない。旧デザインの色・書体はこの中で定義する。
 * ========================================================= */
.oldtop {
  --blue: #2B66C4; --deep: #1C4A94; --ink: #1E2A3A; --sub: #4A5A70;
  --bg: #F3F5FA; --line: #DCDDF0; --sky: #CFE0FF; --lav: #EDEBF7;
  --band: #3A8DDE; --page: #F7F7F5; --navy: #121A2A;
  background: var(--page); color: #2B3546;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: .08em; line-height: 2; overflow-x: hidden;
}
.oldtop .maru { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; font-weight: 900; }
.oldtop .min { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 800; }
.oldtop .en { font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .14em; margin: 0; }
.oldtop .sp { display: inline; }
@media (min-width: 600px) { .oldtop .sp { display: none; } }
.oldtop .narrow { max-width: 820px; }
.oldtop section { padding: 72px 0; }
.oldtop p { margin: 0; }
.oldtop img { display: block; max-width: 100%; height: auto; }

/* 見出し(小ラベル＋大きな青い見出し＋丸ボタン) */
.oldtop .head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; position: relative; }
.oldtop .head h2 { margin: 0; font-size: clamp(34px, 10vw, 64px); line-height: 1.3; color: var(--blue); font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 900; letter-spacing: .04em; }
.oldtop .head[data-wm]::before { content: attr(data-wm); position: absolute; right: -6px; top: -34px; font-family: "Avenir Next", Arial, sans-serif; font-weight: 700; font-size: clamp(54px, 16vw, 130px); line-height: 1; color: rgba(43,102,196,.06); letter-spacing: .02em; pointer-events: none; white-space: nowrap; }
.oldtop .head .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.oldtop .head .row small { font-family: "Avenir Next", Arial, sans-serif; font-size: 11px; line-height: 1.5; color: var(--sub); text-align: right; }
.oldtop .pill { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 4px 4px 4px 18px; border-radius: 999px; min-height: 44px; transition: background .25s, color .25s; }
.oldtop .pill i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.oldtop .pill:hover { background: var(--ink); color: #fff; }
.oldtop .pill:hover i { background: #fff; color: var(--ink); transform: translateX(3px); }
.oldtop .pill.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.oldtop .pill.dark i { background: #fff; color: var(--navy); }

/* 動き(ふわっと出る・文字がスッと出る。JSが動く時だけ最初は隠す) */
.oldtop.js-on .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.oldtop.js-on .reveal.show { opacity: 1; transform: none; }
.oldtop .mask { display: inline-block; }
.oldtop.js-on .mask { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.6,0,.2,1); }
.oldtop.js-on .show .mask, .oldtop.js-on .mask.show { clip-path: inset(0 0 0 0); }
.oldtop.js-on .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.oldtop.js-on .stagger.show > * { opacity: 1; transform: none; }
.oldtop.js-on .stagger.show > *:nth-child(2) { transition-delay: .12s; }
.oldtop.js-on .stagger.show > *:nth-child(3) { transition-delay: .24s; }
.oldtop.js-on .stagger.show > *:nth-child(4) { transition-delay: .36s; }
.oldtop.js-on .stagger.show > *:nth-child(5) { transition-delay: .48s; }
.oldtop.js-on .stagger.show > *:nth-child(6) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .oldtop.js-on .reveal, .oldtop.js-on .stagger > * { opacity: 1; transform: none; transition: none; }
  .oldtop.js-on .mask { clip-path: none; transition: none; }
}

/* トップ */
.oldtop .hero { position: relative; padding: 84px 0 0; background: linear-gradient(180deg, #fff 0%, #EEF4FD 45%, var(--page) 100%); overflow: hidden; }
.oldtop .hero .txt { text-align: center; padding: 0 16px; position: relative; z-index: 2; }
.oldtop .hero .catch { font-size: clamp(30px, 8.4vw, 60px); line-height: 1.45; color: var(--deep); margin: 0; letter-spacing: .04em; }
.oldtop .hero h1 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(12px, 3.4vw, 16px); color: var(--deep); margin: 12px 0 0; line-height: 1.6; letter-spacing: .1em; }
.oldtop .hero h1::before, .oldtop .hero h1::after { content: ""; flex: 0 0 28px; height: 1.5px; background: var(--deep); }
.oldtop .hero h1 small { display: block; font-size: .8em; }
.oldtop .hero .pic { position: relative; margin-top: -10px; aspect-ratio: 6/5; max-height: 80vh; }
.oldtop .hero .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.oldtop .hero .pic::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14%; background: linear-gradient(180deg, #EEF4FD, rgba(238,244,253,0)); z-index: 1; }
.oldtop .hero .pic::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(0deg, var(--page), rgba(247,247,245,0)); }
.oldtop .swoosh { position: absolute; left: 0; right: 0; bottom: 46px; z-index: 3; pointer-events: none; white-space: nowrap; overflow: hidden; }
.oldtop .swoosh span { display: inline-block; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(84px, 26vw, 240px); line-height: 1; color: rgba(43,102,196,.2); letter-spacing: .02em; }
.oldtop .scroll { position: absolute; right: 14px; bottom: 18px; z-index: 2; writing-mode: vertical-rl; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .24em; padding-bottom: 46px; }
.oldtop .scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 40px; background: var(--blue); }
@media (min-width: 900px) {
  .oldtop .hero { padding-top: 96px; }
  .oldtop .hero .pic { aspect-ratio: 16/7; max-width: 1280px; margin: 0 auto; max-height: none; }
  .oldtop .hero .pic img { object-position: 50% 30%; }
}

/* 深田塾とは */
.oldtop .box { border-radius: 28px; padding: 44px 24px; background: #fff; }
.oldtop .about { display: grid; gap: 26px; align-items: center; }
.oldtop .about .lead { font-size: clamp(22px, 6vw, 30px); line-height: 1.7; color: var(--ink); margin-bottom: 16px; font-weight: 900; }
.oldtop .def { background: #fff; border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; font-weight: 700; color: var(--ink); line-height: 1.9; }
.oldtop .motto { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; padding: 14px 18px; background: #fff; border-left: 5px solid var(--blue); border-radius: 0 14px 14px 0; }
.oldtop .motto span { font-size: 11px; color: var(--blue); font-weight: 700; letter-spacing: .14em; }
.oldtop .motto b { font-size: clamp(20px, 5.6vw, 26px); color: var(--deep); }
.oldtop .hexa { clip-path: polygon(25% 3%, 75% 3%, 99% 50%, 75% 97%, 25% 97%, 1% 50%); max-width: 360px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) { .oldtop .about { grid-template-columns: 1fr 340px; } }

/* みんな集まろう(1枚絵で静かに) */
.oldtop .gather { position: relative; background: linear-gradient(180deg, #2B66C4, #1D4E9E); color: #fff; overflow: hidden; padding: 70px 0 80px; }
.oldtop .gather .en { color: #BFD5FF; text-align: center; margin: 0 0 6px; }
.oldtop .gather .gtitle { position: relative; text-align: center; margin: 0 16px 26px; z-index: 2; }
.oldtop .gather .gtitle b { display: block; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(26px, 7vw, 48px); line-height: 1.5; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.2); }
.oldtop .gather .gtitle small { display: block; margin-top: 8px; font-size: clamp(12px, 3.4vw, 16px); letter-spacing: .14em; opacity: .9; }
.oldtop .gstage { position: relative; width: calc(100% - 24px); max-width: 900px; margin: 0 auto; border-radius: 22px; overflow: hidden; }
.oldtop .gstage img { width: 100%; }

/* 動画 */
.oldtop .movie { border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.oldtop .movie video { display: block; width: 100%; height: auto; }

/* お悩み */
.oldtop .worry { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.oldtop .worry div { background: #fff; border-radius: 20px; padding: 24px 22px; position: relative; }
.oldtop .worry b { display: block; font-size: 17px; margin-bottom: 6px; padding-left: 34px; position: relative; color: var(--ink); }
.oldtop .worry b::before { content: "?"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.oldtop .worry p { font-size: 14px; }

/* 学べること */
.oldtop .panel { background: #EEF0F4; border-radius: 0 48px 0 0; position: relative; }
.oldtop .lessons { display: grid; gap: 56px; }
.oldtop .lesson { position: relative; padding-top: 46px; }
.oldtop .lesson .num { position: absolute; top: 0; right: 0; z-index: 0; font-family: "Avenir Next", Arial, sans-serif; font-weight: 700; font-size: 110px; line-height: .8; color: #E9ECF4; letter-spacing: 0; }
.oldtop .lesson .card { position: relative; z-index: 1; }
.oldtop .lesson .ph { border-radius: 22px; overflow: hidden; box-shadow: 0 16px 34px rgba(43,102,196,.14); background: #fff; }
.oldtop .lesson img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.oldtop .lesson .tx { padding: 22px 4px 0; }
.oldtop .lesson h3 { margin: 0 0 10px; font-size: clamp(20px, 5.6vw, 24px); line-height: 1.6; font-weight: 900; color: var(--ink); }
.oldtop .lesson p { font-size: 14px; color: var(--sub); }
@media (min-width: 900px) {
  .oldtop .lessons { grid-template-columns: repeat(2, 1fr); gap: 56px 28px; }
  .oldtop .lesson:nth-child(2n) { margin-top: 80px; }
}

/* 青い帯(物語・先生と教室) */
.oldtop .band { background: var(--band); color: #fff; position: relative; overflow: hidden; padding-top: 40px; }
.oldtop .band .blk { position: absolute; background: #EEF0F4; border-radius: 28px; z-index: 0; }
.oldtop .band .b1 { top: -30px; left: -20px; width: 58%; height: 90px; border-radius: 0 0 32px 0; }
.oldtop .band .b2 { top: 40px; right: -30px; width: 90px; height: 150px; }
.oldtop .band .b3 { top: 58%; left: -52px; width: 64px; height: 180px; }
.oldtop .band .b4 { bottom: -30px; right: -20px; width: 46%; height: 110px; background: var(--page); border-radius: 32px 0 0 0; }
.oldtop .band > section { position: relative; z-index: 1; }
.oldtop .band .head h2 { color: #fff; }
.oldtop .band .en { color: var(--sky); }
.oldtop .band .head[data-wm]::before { color: rgba(255,255,255,.10); }
.oldtop .slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; }
.oldtop .slider::-webkit-scrollbar { display: none; }
.oldtop .slider > div { flex: 0 0 84%; max-width: 420px; scroll-snap-align: start; }
.oldtop .slider img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 18px; }
.oldtop .slider small { display: block; color: var(--sky); font-weight: 700; margin-top: 10px; font-size: 12px; letter-spacing: .14em; }
.oldtop .slider b { display: block; font-size: 20px; }
.oldtop .dots { display: flex; gap: 6px; margin-top: 6px; }
.oldtop .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .3s, width .3s; }
.oldtop .dots span.on { background: #fff; width: 22px; border-radius: 4px; }
@media (min-width: 900px) { .oldtop .slider > div { flex-basis: 31%; } }

/* 先生と教室のカード(重ねて傾ける) */
.oldtop .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 20px 36px; scrollbar-width: none; }
.oldtop .cards::-webkit-scrollbar { display: none; }
.oldtop .tcard { flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 12px 16px; box-shadow: 0 18px 36px rgba(0,0,0,.22); transform: rotate(-4deg); position: relative; margin-right: -22px; }
.oldtop .tcard:nth-child(2n) { transform: rotate(3deg) translateY(10px); }
.oldtop .tcard:nth-child(3n) { transform: rotate(-1deg) translateY(-6px); }
.oldtop .tcard .frame { border: 4px solid #F2B8C6; border-radius: 8px; overflow: hidden; position: relative; }
.oldtop .tcard .frame::after { content: "深"; position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; background: #fff; color: #D9536F; border: 2px solid #D9536F; border-radius: 4px; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; font-family: "Shippori Mincho B1", serif; }
.oldtop .tcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.oldtop .tcard .nm { padding: 12px 6px 0; text-align: center; }
.oldtop .tcard .nm small { display: inline-block; font-size: 10px; color: #fff; background: #D9536F; font-weight: 700; letter-spacing: .14em; padding: 1px 10px; border-radius: 3px; }
.oldtop .tcard .nm b { display: block; font-size: 20px; margin-top: 4px; }
.oldtop .tcard .nm p { font-size: 12px; line-height: 1.8; margin-top: 6px; text-align: left; color: var(--sub); }
@media (min-width: 900px) { .oldtop .tcard { flex-basis: 30%; } }

/* お悩み・教室のタイル */
.oldtop .tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.oldtop .tiles a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: #fff; border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink); border: 1.5px solid transparent; transition: border-color .25s, transform .25s; }
.oldtop .tiles a:hover { border-color: var(--blue); transform: translateY(-3px); }
.oldtop .tiles b { font-size: 17px; }
.oldtop .tiles span { grid-column: 1; font-size: 13px; color: var(--sub); }
.oldtop .tiles i { grid-row: 1/3; grid-column: 2; font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.oldtop .tiles a:hover i { transform: translateX(4px); }

/* はじめての方への手順 */
.oldtop ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: st; }
.oldtop ol.steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border-radius: 18px; padding: 18px; }
.oldtop ol.steps li::before { content: counter(st, decimal-leading-zero); position: static; width: auto; height: auto; background: none; border-radius: 0; display: block; font-family: "Avenir Next", Arial, sans-serif; font-weight: 700; font-size: 22px; color: var(--blue); line-height: 1.4; }
.oldtop ol.steps b { font-size: 16px; }

/* 先生の実績バッジ */
.oldtop .badge-auth { display: inline-block; margin: 6px 6px 0 0; font-size: 12px; font-weight: 700; color: var(--blue); background: #EAF1FF; border-radius: 999px; padding: 4px 12px; }

/* 卒業生・お客様の声 */
.oldtop .grads { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.oldtop .grads div { background: #fff; border-radius: 18px; padding: 18px 20px; border-left: 5px solid var(--blue); }
.oldtop .grads small { display: block; font-size: 12px; color: var(--blue); font-weight: 700; }
.oldtop .grads b { display: block; font-size: 18px; }
.oldtop .grads span { font-size: 12px; color: var(--sub); }
.oldtop .voices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.oldtop .voice { background: #fff; border-radius: 22px; padding: 24px 22px; position: relative; border: 1.5px solid #DCE4F3; }
.oldtop .voice::before { content: "\201C"; position: absolute; top: -6px; right: 18px; font-size: 80px; line-height: 1; color: var(--sky); font-family: Georgia, serif; }
.oldtop .voice .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.oldtop .voice .face { flex: 0 0 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #E4ECFA, #CFE0FF); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 11px; font-weight: 700; }
.oldtop .voice .who small { display: block; font-size: 12px; color: var(--blue); font-weight: 700; }
.oldtop .voice .who b { font-size: 15px; }
.oldtop .voice h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.oldtop .voice p { font-size: 14px; color: var(--sub); }
.oldtop .voice .tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--bg); border-radius: 999px; padding: 2px 12px; }
.oldtop .dword { margin: 30px 0 0; background: var(--blue); color: #fff; border-radius: 22px; padding: 24px 22px; }
.oldtop .dword .en { color: #BFD5FF; }
.oldtop .dword b { display: block; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 19px; line-height: 1.7; }
.oldtop .dword span { display: block; margin-top: 8px; font-size: 12px; opacity: .85; }
.oldtop .fvoices blockquote { margin: 0 0 10px; background: #fff; border-radius: 18px; padding: 18px 22px; border-left: 5px solid #E8A0B4; }
.oldtop .fvoices b { display: block; color: var(--ink); font-size: 17px; font-family: "Shippori Mincho B1", serif; }
.oldtop .fvoices span { font-size: 12px; color: var(--sub); }
.oldtop .fam-quote { margin: 18px 0; padding: 14px 18px; background: #FFF5F8; border-radius: 16px; font-family: "Shippori Mincho B1", serif; font-size: 16px; }
.oldtop .fam-quote small { display: block; font-size: 12px; color: var(--sub); }

/* 料金 */
.oldtop .tier { border-radius: 24px; padding: 26px 22px; margin-bottom: 14px; position: relative; }
.oldtop .tier-top { background: linear-gradient(135deg, #1C2A44, #2B3E63); color: #fff; }
.oldtop .tier-top .tier-label { font-size: 12px; letter-spacing: .12em; color: #C9D6F2; margin-bottom: 12px; }
.oldtop .tier-top .tcourse { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.oldtop .tier-top .tcourse p { color: #D5DEF0; }
.oldtop .tier-top .yen { color: #fff; }
.oldtop .tier-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.oldtop .tcourse { background: #fff; border-radius: 18px; padding: 20px; position: relative; color: var(--ink); }
.oldtop .tcourse b { display: block; font-size: 17px; }
.oldtop .tcourse .yen { display: block; font-size: 34px; font-weight: 900; color: var(--blue); line-height: 1.3; margin: 4px 0 8px; font-family: "Avenir Next", "Zen Kaku Gothic New", sans-serif; }
.oldtop .tcourse .yen small { font-size: 14px; margin-left: 3px; }
.oldtop .tcourse p { font-size: 13px; color: var(--sub); }
.oldtop .tcourse.light { background: #F7F9FD; }
.oldtop .seat { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; background: #D9536F; color: #fff; border-radius: 999px; padding: 2px 10px; }
.oldtop .incl { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 6px; }
.oldtop .incl li { font-size: 13px; padding-left: 22px; position: relative; }
.oldtop .incl li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.oldtop .note { font-size: 12px; color: var(--sub); margin-top: 6px; }

/* 4月からのコース(電車) */
.oldtop .train { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .oldtop .train { grid-template-columns: 1fr 1fr; } }
.oldtop .train .car { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.oldtop .train .car svg { width: 100%; height: auto; max-height: 90px; margin-bottom: 8px; }
.oldtop .train .car b { font-size: 22px; color: var(--ink); display: block; }
.oldtop .station { margin-top: 14px; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 16px; text-align: center; font-weight: 700; line-height: 1.8; }
.oldtop .flow3 { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .oldtop .flow3 { grid-template-columns: repeat(3, 1fr); } }
.oldtop .flow3 > div { background: var(--sky); border-radius: 14px; padding: 14px 16px; }
.oldtop .flow3 small { display: block; color: var(--deep); font-weight: 700; }

/* 6問の無料診断 */
.oldtop .dq { background: #fff; border-radius: 18px; padding: 20px 18px; border: 1.5px solid var(--line); }
.oldtop .dq .num { font-size: 13px; color: var(--blue); font-weight: 700; }
.oldtop .dq h3 { margin: 4px 0 12px; font-size: 19px; line-height: 1.6; color: var(--ink); }
.oldtop .dq button.opt { display: block; width: 100%; text-align: left; margin: 8px 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.oldtop .dq button.opt:hover { border-color: var(--blue); background: #fff; }
.oldtop .dq .bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 12px; }
.oldtop .dq .bar i { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.oldtop .dq .back { background: none; border: none; color: var(--sub); font: inherit; font-size: 14px; cursor: pointer; margin-top: 6px; }
.oldtop .dres p { margin: 0 0 12px; line-height: 2; }
.oldtop .dres .sign { text-align: right; color: var(--sub); }

/* ご家族の方へ(手紙) */
.oldtop .letter-title { font-size: clamp(24px, 6.6vw, 34px); color: var(--deep); line-height: 1.6; margin: 4px 0 22px; }
.oldtop .letter-body p { margin: 0 0 18px; font-size: 15px; line-height: 2.1; }
.oldtop .letter-end { font-size: clamp(19px, 5vw, 24px); color: var(--blue); margin-top: 26px !important; }
.oldtop .letter-sign { text-align: right; font-size: 14px; color: var(--sub); }
.oldtop .fam { display: grid; gap: 0; }
.oldtop .fam div { border-top: 1px dashed #B9C3DA; padding: 20px 0; }
.oldtop .fam div:last-child { border-bottom: 1px dashed #B9C3DA; }
.oldtop .fam b { font-size: 17px; display: block; margin-bottom: 4px; }
.oldtop .fam p { font-size: 14px; }

/* 会社情報 */
.oldtop .co dl { display: grid; grid-template-columns: 7em 1fr; gap: 10px 14px; margin: 0; background: #fff; border-radius: 16px; padding: 20px 18px; }
.oldtop .co dt { font-weight: 700; color: var(--deep); }
.oldtop .co dd { margin: 0; }
.oldtop .co .media { margin-top: 16px; background: #fff; border-radius: 16px; padding: 18px; border: 2px solid var(--sky); }

/* お知らせ・ブログの新着 */
.oldtop .newswrap { background: linear-gradient(180deg, var(--band) 0, var(--band) 140px, var(--page) 140px); padding-top: 40px; }
.oldtop .newsbox { display: grid; gap: 10px; }
.oldtop .newshead { border-radius: 24px; padding: 30px 18px; text-align: center; background: #fff; box-shadow: 0 0 0 1px var(--line); position: relative; }
.oldtop .newshead h2 { margin: 4px 0 14px; font-size: clamp(36px, 11vw, 60px); color: var(--blue); line-height: 1.2; }
.oldtop .news a { display: block; padding: 20px 6px; border-bottom: 1px dashed #C9CDE0; color: var(--ink); text-decoration: none; transition: background .25s; }
.oldtop .news a:hover { background: var(--bg); }
.oldtop .news .meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--blue); }
.oldtop .news .meta small { background: var(--bg); font-weight: 700; border-radius: 999px; padding: 1px 12px; border: 1px solid var(--line); }
.oldtop .news .meta i { margin-left: auto; font-style: normal; }
@media (min-width: 900px) {
  .oldtop .newsbox { grid-template-columns: 1fr 340px; align-items: start; gap: 36px; }
  .oldtop .newshead { order: 2; position: sticky; top: 90px; }
}

/* 大きな流れる文字＋お申し込み */
.oldtop .marq { overflow: hidden; white-space: nowrap; margin-bottom: -26px; pointer-events: none; }
.oldtop .marq div { display: inline-flex; gap: 48px; font-size: clamp(60px, 17vw, 150px); font-weight: 700; color: #EEF0F6; font-family: "Avenir Next", Arial, sans-serif; }
.oldtop #s-yobiko h2 { margin: 6px 0 12px; font-size: clamp(24px, 6.6vw, 40px); line-height: 1.4; color: var(--ink); font-weight: 900; }
.oldtop .cta { display: grid; gap: 18px; background: var(--band); color: #fff; text-decoration: none; border-radius: 26px; padding: 30px 24px; position: relative; overflow: hidden; transition: transform .3s; align-items: center; }
.oldtop .cta:hover { transform: translateY(-4px); }
.oldtop .cta .circle { width: 120px; height: 120px; position: relative; }
.oldtop .cta .circle svg { position: absolute; inset: 0; }
.oldtop .cta .circle span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; }
.oldtop .cta .t { font-size: clamp(26px, 7vw, 40px); line-height: 1.4; }
@media (min-width: 900px) { .oldtop .cta { grid-template-columns: 140px 1fr; padding: 40px; } }
