/* ==========================================================================
   木村塾 demo1 — NAVY stylesheet（demo4／BELIEVE風 ネイビー×ライトブルー）
   既存HTMLのクラスは全て維持。サブページ用クラスも含む。
   ========================================================================== */
:root {
  --ink: #1b2738;          /* 濃紺インク */
  --ink-soft: #3a4a60;
  --muted: #5c6c82;
  --line: #e1e9f3;
  --line-2: #eef4fb;
  --paper: #ffffff;        /* 白基調（クリーン） */
  --paper-2: #eef5fd;      /* ライトブルー */
  --cream: #f5faff;
  --white: #ffffff;

  /* 変数名は流用、値をネイビー系に（BELIEVE風） */
  --green: #00468c;        /* メイン＝ディープネイビー */
  --green-2: #0a5aa8;
  --green-dark: #02356b;
  --green-deep: #04284f;
  --green-tint: #e9f3fc;   /* ライトブルー面 */

  --gold: #c89a3c;         /* 上品な差し色（ゴールド） */
  --gold-soft: #e0c277;
  --yellow: #ffd41d;
  --red: #db4f3f;          /* CTA（LINE体験ボタン） */
  --blue: #2f6fb4;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 8px 24px rgba(20, 35, 60, .06);
  --shadow: 0 22px 55px rgba(20, 35, 60, .12);
  --shadow-green: 0 16px 36px rgba(0, 70, 140, .24);

  --maxw: 1200px;
  --font-jp: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-en: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --font-serif: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; /* 明朝廃止→ゴシック */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.95;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #fff; }

[id] { scroll-margin-top: 150px; }
@media (max-width: 640px) { [id] { scroll-margin-top: 100px; } }

/* ===== Header ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 24px; min-height: 122px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}
.brand img { width: 235px; height: auto; }

/* demo4：装飾の英語ラベルを非表示（日本語の見出しは残す） */
.eyebrow:not(.eyebrow-lg) { display: none; }
.page-hero .en { display: none; }
.page-hero h1 { margin-top: 0; }
.course-tag { display: none; }

/* 性別ラジオ（ボタン風） */
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-row .radio { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.radio-row .radio:hover { border-color: var(--green); }
.radio-row .radio:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,70,140,.15); }
.radio-row input { width: 19px; height: 19px; accent-color: var(--green); flex: 0 0 auto; }
.radio-row .radio { font-weight: 700; }

/* 小さすぎる文字の底上げ（標準を読みやすく） */
small, .note, .breadcrumb, .privacy-note, time { font-size: 15px; }
.info-table small, .spec-list li small, .fc-list small, .principal .tl small { font-size: 15px; }

/* お知らせ（カテゴリ分け・タブ絞り込み） */
.news-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: var(--maxw); margin: 0 auto 32px; }
.news-tabs .tab { padding: 11px 26px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink-soft); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.news-tabs .tab:hover { border-color: var(--green); color: var(--green); }
.news-tabs .tab.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.news-list { display: grid; gap: 0; max-width: var(--maxw); margin-inline: auto; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 140px 124px 1fr auto; gap: 20px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.news-item::after { content: "→"; color: var(--green); font-weight: 800; opacity: .4; transition: transform .2s ease, opacity .2s ease; }
.news-item:hover { background: var(--cream); padding-inline: 18px; }
.news-item:hover::after { opacity: 1; transform: translateX(4px); }
.news-item time { color: var(--green); font-family: var(--font-en); font-size: 15px; font-weight: 600; }
.news-item .cat { justify-self: start; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.news-item .cat.info { background: var(--green); }
.news-item .cat.blog { background: var(--gold); }
.news-item .cat.event { background: var(--red); }
.news-item .ti { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
@media (max-width: 680px) {
  .news-item { grid-template-columns: auto 1fr; gap: 6px 12px; }
  .news-item time { grid-column: 1; grid-row: 1; }
  .news-item .cat { grid-column: 2; grid-row: 1; justify-self: end; }
  .news-item .ti { grid-column: 1 / -1; grid-row: 2; }
  .news-item::after { display: none; }
}

.site-nav {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end;
  gap: 14px 30px; color: var(--ink-soft);
  font-size: 19px; font-weight: 700;
}
/* メニュー項目を等間隔に（CTAボタン群は左に余白） */
.site-nav > a { margin: 0; }
.site-nav .nav-cta-group { margin-left: 8px; }
.site-nav a { position: relative; transition: color .2s ease; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:not(.nav-cta):hover { color: var(--green); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 11px 20px; color: #fff !important;
  background: var(--green); border-radius: 999px; font-weight: 800;
  box-shadow: var(--shadow-green); transition: transform .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); }

/* 右上の問い合わせボタン（LINE / メール） */
.nav-cta-group { display: inline-flex; align-items: center; gap: 10px; }
.btn-line, .btn-mail {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; color: #fff !important;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-line svg, .btn-mail svg { width: 19px; height: 19px; fill: currentColor; flex: 0 0 auto; }
.btn-line { background: #06C755; box-shadow: 0 10px 22px rgba(6, 199, 85, .32); }
.btn-mail { background: #232a8a; box-shadow: 0 10px 22px rgba(35, 42, 138, .3); }
.btn-line:hover, .btn-mail:hover { transform: translateY(-2px); filter: brightness(1.04); }

.nav-toggle { display: none; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; margin: 5px auto; background: var(--green-dark); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Typography ======================================================= */
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0; max-width: 920px; font-family: var(--font-head); font-weight: 900;
  font-size: clamp(40px, 6.2vw, 80px); line-height: 1.12; letter-spacing: .01em;
}
h1 span { display: block; }
h2 {
  margin: 0; font-family: var(--font-head); font-weight: 900;
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; letter-spacing: .01em;
}
h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.45; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  color: var(--green); font-family: var(--font-en);
  font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--green); border-radius: 2px; }

/* ===== Buttons ========================================================== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding: 14px 30px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 16.5px; line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); }
/* ===== すべてのボタンの中の文字を中央寄せ（要望） ===== */
.button, .btn-line, .btn-mail, .nav-cta, .fc-btn, .more-toggle > summary,
.section-more, .season-more, .cta .button, .hero-actions .button, .cta-actions .button {
  justify-content: center; text-align: center;
}
.nav-cta { display: inline-flex; align-items: center; }
.button.primary { color: #fff; background: var(--red); box-shadow: 0 16px 32px rgba(219, 79, 63, .3); }
.button.secondary { color: var(--green-dark); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.button.secondary.light { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); }
.button.line { color: #fff; background: #06C755; box-shadow: 0 14px 30px rgba(6,199,85,.28); }
.button.line svg { width: 21px; height: 21px; fill: currentColor; }

/* ===== Hero（全画面・写真＋ネイビーオーバーレイ・中央寄せ） ============= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: clamp(110px, 16vw, 140px) clamp(20px, 5vw, 60px) clamp(120px, 18vw, 150px);
  overflow: hidden; color: #fff; background: var(--green-deep);
}
.hero-media {
  position: absolute; inset: 0; width: 100%;
  background: url("assets/student-top.jpg") center / cover no-repeat;
  transform: scale(1.06); filter: saturate(.95);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 30, 60, .58), rgba(2, 22, 46, .74));
}
.hero-content { position: relative; z-index: 2; max-width: 1040px; }
.hero .eyebrow { color: var(--gold-soft); justify-content: center; }
.hero .eyebrow::after { content: ""; width: 30px; height: 2px; background: var(--gold-soft); border-radius: 2px; }
.hero .eyebrow.eyebrow-lg { font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; letter-spacing: .18em; gap: 16px; margin-bottom: 26px; }
.hero .eyebrow.eyebrow-lg::before, .hero .eyebrow.eyebrow-lg::after { width: 36px; height: 2px; }
.hero h1 { color: #fff; font-family: var(--font-serif); font-weight: 800; font-size: clamp(34px, 5.4vw, 74px); line-height: 1.36; letter-spacing: .05em; text-shadow: 0 6px 44px rgba(0,0,0,.42); }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero h1 .hl { display: inline; color: var(--gold-soft); }
.lead { max-width: 680px; margin: 30px auto 0; font-size: clamp(16px, 1.7vw, 20px); font-weight: 400; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; justify-content: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero::before { content: none; display: none; }

.hero-panel {
  position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(640px, calc(100% - 32px));
  background: rgba(255, 255, 255, .97); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}
.hero-panel div { position: relative; padding: 26px 14px 24px; border-right: 1px solid rgba(255,255,255,.6); text-align: center; }
.hero-panel div:last-child { border-right: 0; }
.hero-panel div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.hero-panel strong, .hero-panel span { display: block; }
.hero-panel strong { font-family: var(--font-head); font-size: 27px; font-weight: 900; line-height: 1.1; }
.hero-panel span { color: var(--ink); font-size: 15px; font-weight: 800; margin-top: 5px; }
/* 3項目を色分けして強調 */
.hero-panel .hp1 { background: linear-gradient(180deg, #eaf3fd, #fff); }
.hero-panel .hp1::before { background: var(--green); }
.hero-panel .hp1 strong { color: var(--green); }
.hero-panel .hp2 { background: linear-gradient(180deg, #fff6e3, #fff); }
.hero-panel .hp2::before { background: var(--gold); }
.hero-panel .hp2 strong { color: #b9842b; }
.hero-panel .hp3 { background: linear-gradient(180deg, #fdecea, #fff); }
.hero-panel .hp3::before { background: var(--red); }
.hero-panel .hp3 strong { color: var(--red); }

/* ===== Section base ===================================================== */
.section { padding: clamp(72px, 9vw, 124px) clamp(18px, 4vw, 56px); }
.section-heading { display: grid; gap: 14px; max-width: 820px; margin: 0 auto 46px; text-align: center; justify-items: center; }
.section-heading .eyebrow { justify-content: center; }
.updates .section-heading, .faq .section-heading { text-align: left; justify-items: start; margin-left: 0; margin-right: auto; }
.updates .section-heading .eyebrow, .faq .section-heading .eyebrow { justify-content: flex-start; }

/* ===== Intro ============================================================ */
.intro {
  display: grid; grid-template-columns: minmax(260px, 480px) minmax(260px, 1fr);
  gap: clamp(30px, 6vw, 78px); align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin: clamp(20px, 4vw, 44px) clamp(18px, 4vw, 56px);
  padding: clamp(40px, 6vw, 80px); position: relative;
}
.intro::before { content: ""; position: absolute; left: 0; top: clamp(40px,6vw,80px); bottom: clamp(40px,6vw,80px); width: 3px; background: var(--green); }
.intro .section-heading { text-align: left; justify-items: start; margin: 0; }
.intro .section-heading .eyebrow { justify-content: flex-start; }
.intro h2 { line-height: 1.45; }
.intro p { margin: 0; color: var(--ink-soft); font-size: 19px; }

/* ===== Grade jump ======================================================= */
.grade-jump { background: var(--white); }
.grade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: var(--maxw); margin-inline: auto; }
.grade-card {
  position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 12px; padding: 32px; overflow: hidden; color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.grade-card::before, .grade-card::after { content: ""; position: absolute; inset: 0; }
.grade-card::before { background: center / cover no-repeat; transform: scale(1.04); transition: transform .6s ease; }
.grade-card::after { background: linear-gradient(180deg, rgba(4,28,56,.1) 25%, rgba(4,28,56,.86)); }
.grade-card:hover::before { transform: scale(1.12); }
.grade-card.elementary::before { background-image: url("assets/jyuku2.jpg"); }
.grade-card.junior::before { background-image: url("assets/kimurajyuku-classroom3-600x300.jpg"); }
.grade-card.high::before { background-image: url("assets/kimurajyuku-interviewroom-600x300.jpg"); }
.grade-card span, .grade-card strong, .grade-card em { position: relative; z-index: 1; }
.grade-card span { font-family: var(--font-head); font-size: 38px; font-weight: 900; line-height: 1.1; }
.grade-card strong { max-width: 280px; font-size: 16.5px; font-weight: 600; line-height: 1.6; color: rgba(255,255,255,.95); }
.grade-card em {
  width: fit-content; padding: 9px 18px; color: var(--green-dark); background: var(--gold-soft);
  border-radius: 999px; font-size: 15px; font-style: normal; font-weight: 800; transition: transform .2s ease;
}
.grade-card:hover em { transform: translateX(5px); }

/* 学年別セクションをフル幅（100%）に */
.grade-jump { padding-left: 0; padding-right: 0; }
.grade-jump .section-heading { padding-inline: clamp(18px, 4vw, 40px); }
.grade-jump .grade-grid { max-width: none; margin-inline: 0; padding-inline: clamp(14px, 2vw, 28px); }
.grade-jump .grade-card { min-height: 360px; }

/* 知りたいことカード（写真つき） */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--maxw); margin-inline: auto; }
.guide-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.guide-card .g-photo { aspect-ratio: 16 / 10; background: center/cover no-repeat var(--green-tint); }
.guide-card .g-body { padding: 24px 26px 28px; }
.guide-card h3 { margin-bottom: 10px; }
.guide-card p { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.guide-card .g-go { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-family: var(--font-head); font-weight: 800; transition: gap .2s ease; }
.guide-card .g-go::after { content: "→"; }
.guide-card:hover .g-go { gap: 11px; }
@media (max-width: 980px) { .guide-grid { grid-template-columns: 1fr; } }

/* お問い合わせフォーム */
.cform { max-width: 760px; margin-inline: auto; display: grid; gap: 20px; }
.cform .fld { display: grid; gap: 8px; }
.cform label { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.cform label .req { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; }
.cform label .opt { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 15px; font-weight: 700; }
.cform input:not([type="radio"]):not([type="checkbox"]), .cform select, .cform textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-family: inherit; font-size: 17px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.cform input:not([type="radio"]):not([type="checkbox"]):focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,70,140,.16); }
.cform textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .submit { justify-self: center; margin-top: 8px; min-width: 280px; }
.cform .privacy-note { text-align: center; font-size: 15px; color: var(--muted); }
.cform .privacy-note a { color: var(--green-dark); border-bottom: 1px solid var(--gold-soft); }
@media (max-width: 640px) { .cform .row2 { grid-template-columns: 1fr; } .cform .submit { width: 100%; min-width: 0; } }

/* ===== Appeal（明るい：白カード＋ブルー主役） ========================== */
.appeal { background: var(--green-tint); }
.appeal-lead {
  max-width: var(--maxw); margin: 0 auto 30px; padding: 28px 34px; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.appeal-lead p { margin: 0; font-family: var(--font-head); font-size: clamp(19px, 2vw, 24px); font-weight: 900; line-height: 1.7; }
.appeal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: var(--maxw); margin-inline: auto; }
.appeal-card {
  min-height: 100%; padding: 28px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.appeal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(0,70,140,.35); }
.appeal-card.main { color: #fff; background: linear-gradient(135deg, #2f6fb4, #285f9c); border-color: transparent; }
.appeal-card h3 { margin-bottom: 12px; }
.appeal-card p { margin: 0; color: var(--muted); font-size: 17px; }
.appeal-card.main p { color: rgba(255,255,255,.92); }
.appeal-card span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  color: #fff; background: var(--green); border-radius: 50%;
  font-family: var(--font-en); font-size: 15px; font-weight: 700;
}
.appeal-card.main span { background: #fff; color: var(--blue); }

/* ===== Courses / cards ================================================== */
.course-grid, .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: var(--maxw); margin-inline: auto; }
.course-card, .price-card {
  position: relative; min-height: 100%; padding: clamp(26px, 3vw, 34px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course-card:hover, .price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0,70,140,.4); }
.course-card.highlight, .price-card.strong { border-color: var(--green); box-shadow: 0 22px 50px rgba(0,70,140,.16); }
.course-card.highlight::before, .price-card.strong::before {
  content: "人気"; position: absolute; top: -1px; right: 22px; padding: 7px 15px 9px;
  color: #fff; background: var(--green); border-radius: 0 0 8px 8px;
  font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: .06em;
}
.course-tag { display: inline-block; margin-bottom: 16px; color: var(--green); font-family: var(--font-en); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.course-card p, .feature-list p, .price-card dd, .flow-list p, .faq p, .note { color: var(--muted); }
.course-card p { font-size: 17px; }
.course-card ul { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; }
.course-card li { position: relative; padding-left: 28px; font-weight: 600; font-size: 17px; }
.course-card li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.text-link, .section-more {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 26px;
  color: var(--green-dark); font-family: var(--font-head); font-weight: 800; font-size: 16px;
  padding-bottom: 3px; border-bottom: 2px solid var(--green); transition: gap .2s ease, color .2s ease;
}
.text-link::after, .section-more::after { content: "→"; }
.text-link:hover, .section-more:hover { gap: 12px; color: var(--green); }
.section-more { margin-left: auto; margin-right: auto; }
.updates .section-more, .blog .section-more, .voices .section-more { display: flex; }

/* ===== Updates / news =================================================== */
.updates { background: var(--white); }
.article-list { display: grid; gap: 0; max-width: var(--maxw); margin-inline: auto; border-top: 1px solid var(--line); }
.article-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 8px; border: 0; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease;
}
.article-row::after { content: "→"; color: var(--green); font-weight: 800; opacity: .4; transition: transform .2s ease, opacity .2s ease; }
.article-row:hover { background: var(--cream); padding-inline: 20px; }
.article-row:hover::after { opacity: 1; transform: translateX(5px); }
time { color: var(--green); font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: .05em; }
.article-row span { font-family: var(--font-head); font-weight: 700; font-size: 17px; }

/* ===== Blog / voices ==================================================== */
.blog { background: var(--green-tint); }
.blog-grid, .voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: var(--maxw); margin-inline: auto; }
.blog-card, .voice-card {
  display: block; min-height: 100%; padding: 30px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover, .voice-card:hover { border-color: rgba(0,70,140,.45); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card h3, .voice-card h3 { margin-top: 12px; }
.blog-card p, .voice-card p { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.voices { background: var(--white); }
.voice-card span { color: var(--green); font-family: var(--font-en); font-size: 15px; font-weight: 700; letter-spacing: .04em; }

/* ===== Split / features ================================================= */
.split { display: grid; grid-template-columns: minmax(280px, 46%) minmax(320px, 1fr); gap: clamp(34px, 6vw, 82px); align-items: center; background: var(--green-tint); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.feature-list article { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature-list article h3 { padding-left: 14px; border-left: 3px solid var(--green); }
.feature-list p { margin: 12px 0 0; font-size: 17px; }

/* ===== Gallery ========================================================== */
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-auto-rows: 250px; gap: 16px; max-width: var(--maxw); margin-inline: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .4s ease; }
.gallery-grid img:hover { transform: scale(1.03); }
.gallery-grid img:first-child { grid-row: span 2; }

/* ===== Price ============================================================ */
.price { background: var(--green-tint); }
.price-card { text-align: left; }
.price-card h3 { font-size: 25px; }
.price-main { margin: 18px 0 26px; color: var(--green); font-family: var(--font-head); font-size: clamp(34px, 4vw, 46px); font-weight: 900; line-height: 1.05; }
.price-main span { margin-left: 5px; color: var(--muted); font-size: 16px; font-weight: 600; font-family: var(--font-jp); }
dl { display: grid; gap: 11px; margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px dotted var(--line); }
dt { font-weight: 700; }
dd { margin: 0; text-align: right; }
.note { margin: 26px auto 0; max-width: var(--maxw); font-size: 15px; text-align: center; }

/* ===== Flow ============================================================= */
.flow { background: var(--white); }
.flow-list { display: grid; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; }
.flow-list li { display: grid; grid-template-columns: 78px 1fr; gap: 26px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
.flow-list li:hover { transform: translateX(8px); border-color: rgba(0,70,140,.4); }
.flow-list span { display: grid; place-items: center; width: 62px; height: 62px; color: #fff; background: var(--green); border-radius: 50%; font-family: var(--font-en); font-weight: 700; font-size: 19px; box-shadow: var(--shadow-green); }
.flow-list h3, .flow-list p { margin: 0; }
.flow-list p { margin-top: 4px; font-size: 17px; }

/* ===== FAQ ============================================================== */
.faq { background: var(--green-tint); }
.faq-list { display: grid; gap: 14px; max-width: var(--maxw); margin-inline: auto; }
details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; padding: 24px 28px; font-family: var(--font-head); font-size: 19.5px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 26px; font-weight: 800; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 28px 26px; font-size: 17px; }

/* ===== CTA ============================================================== */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(56px, 8vw, 92px) clamp(18px, 4vw, 56px); color: #fff;
  background: linear-gradient(135deg, var(--green-2), var(--green-deep));
}
.cta h2, .cta p { margin: 0; }
.cta .eyebrow { color: var(--gold-soft); }
.cta .eyebrow::before { background: var(--gold-soft); }
.cta p:last-child { margin-top: 12px; color: rgba(255,255,255,.82); }

/* ===== Footer（リッチ・複数カラム） ===================================== */
.site-footer { background: linear-gradient(160deg, var(--green-2), var(--green-deep)); color: rgba(255,255,255,.82); }
.footer-main { max-width: var(--maxw); margin-inline: auto; padding: clamp(48px,7vw,80px) clamp(18px,4vw,56px) 40px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3.5vw,40px); align-items: stretch; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: clamp(26px,4vw,38px); margin-bottom: clamp(2px,1.5vw,10px); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand .f-logo { display: inline-block; padding: 12px 20px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.footer-brand img { width: 184px; filter: none; display: block; }
.f-tag { margin: 20px 0 22px; color: rgba(255,255,255,.82); font-size: 16.5px; }
.f-social { display: flex; gap: 12px; justify-content: center; }
.s-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.s-ic:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.s-ic svg { width: 23px; height: 23px; }
.s-ic.ig svg { fill: #E1306C; } .s-ic.line svg { fill: #06C755; }
.footer-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.footer-card .fc-btns { margin-top: auto; } /* ボタンを両カードとも下端で揃える */
.fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fc-head strong { font-family: var(--font-head); font-size: 23px; font-weight: 800; color: #fff; }
.fc-head .badge { padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 15px; font-weight: 700; color: #fff; }
.fc-head .badge.alt { background: var(--gold); color: var(--green-deep); }
.fc-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 15px; }
.fc-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: rgba(255,255,255,.88); font-size: 15.5px; line-height: 1.65; }
.fc-list svg { width: 21px; height: 21px; fill: var(--gold-soft); margin-top: 3px; }
.fc-text { margin: 0 0 24px; color: rgba(255,255,255,.84); font-size: 15.5px; line-height: 1.8; }
.fc-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 19px; border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .2s ease, filter .2s ease; }
.fc-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.fc-btn svg { width: 17px; height: 17px; fill: currentColor; }
.fc-btn.map { background: #1a73e8; color: #fff; }
.fc-btn.ig { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); color: #fff; }
.fc-btn.line { background: #06C755; color: #fff; }
.fc-btn.mail { background: #232a8a; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); }
.fb-links { max-width: var(--maxw); margin-inline: auto; padding: 28px clamp(18px,4vw,56px) 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.fb-links a { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 600; transition: color .2s ease; }
.fb-links a:hover { color: var(--gold-soft); }
.fb-copy { text-align: center; padding: 10px 18px 44px; margin: 0; color: rgba(255,255,255,.55); font-size: 15px; font-family: var(--font-en); letter-spacing: .06em; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr; } }

/* ===== Fixed contact (mobile) =========================================== */
.fixed-contact {
  position: fixed; z-index: 60; left: 50%; bottom: 12px; display: none;
  grid-template-columns: repeat(3, 1fr); width: min(420px, calc(100% - 18px));
  overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); transform: translateX(-50%); background: #fff;
}
.fixed-contact a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; padding: 8px 2px; color: #fff; background: var(--green); font-family: var(--font-head); font-weight: 800; font-size: 11.5px; line-height: 1.1; }
.fixed-contact a svg { width: 22px; height: 22px; fill: currentColor; }
.fixed-contact .fc-map { background: #2f6fb4; }
.fixed-contact .fc-line { background: #06C755; }
.fixed-contact .fc-mail { background: #232a8a; }

/* ===== Scroll reveal ==================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   サブページ用コンポーネント（小中高・塾長・指導方針・成績・問い合わせ等）
   ========================================================================== */
.page-hero {
  position: relative; min-height: 440px; display: grid; align-items: center;
  padding: clamp(56px, 9vw, 116px) clamp(18px, 4vw, 56px); overflow: hidden; color: #fff; background: var(--green-deep);
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(4,28,56,.9), rgba(4,28,56,.55) 55%, rgba(4,28,56,.25)); }
.page-hero .bg { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.05); }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.page-hero .en { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); }
.page-hero h1 { margin: 14px 0 0; font-size: clamp(40px, 6vw, 76px); }
.page-hero p { max-width: 660px; margin: 20px 0 0; color: rgba(255,255,255,.92); font-size: 19px; }
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(18px,4vw,56px); font-size: 15px; color: var(--muted); }
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.wrap { max-width: var(--maxw); margin-inline: auto; }
.section.light { background: var(--white); }
.section.tint { background: var(--green-tint); }
.lede { max-width: 780px; margin: 0 auto 46px; text-align: center; color: var(--ink-soft); font-size: 19px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; max-width: var(--maxw); margin-inline: auto; }
.feat-box { padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feat-box:hover { transform: translateY(-5px); border-color: rgba(0,70,140,.4); box-shadow: var(--shadow); }
.feat-box .ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; font-size: 26px; background: var(--green-tint); border: 1px solid rgba(0,70,140,.25); border-radius: 50%; }
.feat-box h3 { margin-bottom: 10px; }
.feat-box p { margin: 0; color: var(--muted); font-size: 17px; }

.info-table { max-width: 920px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table .row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.info-table .row:last-child { border-bottom: 0; }
.info-table dt { padding: 20px 26px; background: var(--green-tint); font-family: var(--font-head); font-weight: 700; color: var(--green-dark); border-right: 1px solid var(--line); font-size: 17.5px; }
.info-table dd { padding: 20px 26px; margin: 0; text-align: left; color: var(--ink-soft); font-size: 17.5px; }
.info-table .row.hl dd { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--green-dark); }
.info-table small { color: var(--muted); font-size: 15px; }

.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-width: var(--maxw); margin-inline: auto; }
.spec-list li { position: relative; padding: 18px 20px 18px 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); font-weight: 600; font-size: 17.5px; box-shadow: var(--shadow-sm); }
.spec-list li::before { content: ""; position: absolute; left: 18px; top: 24px; width: 20px; height: 20px; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.spec-list li small { display: block; color: var(--muted); font-weight: 500; font-size: 15px; }

.policy { background: var(--green-tint); }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: var(--maxw); margin-inline: auto; }
.policy-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.policy-card h3 { color: var(--green-dark); margin-bottom: 12px; }
.policy-card p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.principal { display: grid; grid-template-columns: minmax(260px, 40%) 1fr; gap: clamp(32px,6vw,72px); align-items: center; max-width: var(--maxw); margin-inline: auto; }
.principal .photo { aspect-ratio: 4/5; background: center/cover no-repeat var(--green-tint); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.principal .tl { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.principal .tl li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px dotted var(--line); font-size: 16.5px; }
.principal .tl time { color: var(--green); }
.principal .badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.principal .badge-row span { padding: 6px 14px; background: var(--green-tint); border: 1px solid rgba(0,70,140,.3); border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--green-dark); }

.qa { display: grid; gap: 16px; max-width: 880px; margin-inline: auto; }
.qa .item { padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.qa .q { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--green-dark); margin: 0 0 10px; }
.qa .a { margin: 0; color: var(--ink-soft); font-size: 17px; }

.legal { max-width: 880px; margin-inline: auto; }
.legal h3 { margin: 36px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h3:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); font-size: 17px; }
/* 移行記事の本文（画像・表・見出し） */
.legal img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.legal h2 { margin: 40px 0 12px; font-size: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--green); }
.legal h4 { margin: 24px 0 8px; font-size: 18px; }
.legal ul, .legal ol { margin: 12px 0 18px; padding-left: 1.4em; color: var(--ink-soft); }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 16px; background: #fff; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.legal table td, .legal table th { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.legal table tr td:first-child { background: var(--green-tint); font-weight: 700; white-space: nowrap; width: 1%; color: var(--green-dark); }
.legal table th { background: var(--green-tint); font-weight: 700; color: var(--green-dark); }
.legal .table-scroll, .legal figure { overflow-x: auto; margin: 16px 0; }
@media (max-width: 560px){ .legal table { font-size: 14px; } .legal table td, .legal table th { padding: 8px 10px; } }

.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; max-width: var(--maxw); margin-inline: auto; }
.score-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.score-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(0,70,140,.4); }
.score-card .goal { display: inline-block; margin-bottom: 16px; padding: 5px 14px; color: var(--green-dark); background: var(--green-tint); border: 1px solid rgba(0,70,140,.3); border-radius: 999px; font-family: var(--font-head); font-size: 15px; font-weight: 800; }
.score-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 14px; }
.score-ba .b, .score-ba .a { text-align: center; padding: 14px 8px; border-radius: 10px; }
.score-ba .b { background: var(--paper-2); color: var(--muted); }
.score-ba .a { background: var(--green); color: #fff; }
.score-ba .lbl { display: block; font-family: var(--font-en); font-size: 15px; font-weight: 700; letter-spacing: .1em; opacity: .85; margin-bottom: 4px; }
.score-ba .num { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.1; }
.score-ba .arrow { color: var(--green); font-size: 22px; font-weight: 900; }
.score-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 880px; margin-inline: auto; }
.contact-card { padding: 40px 32px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-card .ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; font-size: 28px; background: var(--green-tint); border: 1px solid rgba(0,70,140,.25); border-radius: 50%; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--muted); margin: 0 0 22px; font-size: 17px; }

/* ===== コース詳細：もりこみ用コンポーネント（中学生・高校生）============= */
/* 強調バンド（宿題なし・教材費0円 など） */
.cd-band { max-width: 1000px; margin-inline: auto; background: linear-gradient(135deg, var(--green-deep), var(--green) 58%, var(--green-2)); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px,5vw,50px); text-align: center; box-shadow: var(--shadow-green); }
.cd-band .em { font-family: var(--font-head); font-weight: 900; font-size: clamp(23px,4vw,33px); line-height: 1.42; margin: 0; letter-spacing: .01em; }
.cd-band .em b { color: var(--yellow); }
.cd-band p { margin: 16px auto 0; max-width: 740px; color: rgba(255,255,255,.93); font-size: 16.5px; line-height: 1.9; }
.cd-band .tagrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.cd-band .tagrow span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34); color: #fff; border-radius: 999px; padding: 9px 17px; font-weight: 800; font-size: 14.5px; }

/* ステップ（授業の進め方） */
.cd-flow { max-width: 880px; margin-inline: auto; display: grid; gap: 14px; counter-reset: cdstep; }
.cd-flow .st { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px 22px 82px; box-shadow: var(--shadow-sm); }
.cd-flow .st::before { counter-increment: cdstep; content: counter(cdstep); position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 20px; display: grid; place-items: center; box-shadow: var(--shadow-green); }
.cd-flow .st h3 { font-size: 18px; margin: 0 0 6px; color: var(--green-dark); }
.cd-flow .st p { margin: 0; font-size: 16px; color: var(--ink-soft); line-height: 1.8; }

/* 予定表 */
.cd-table-wrap { max-width: 720px; margin-inline: auto; overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 16px; }
.cd-table th, .cd-table td { border: 1px solid var(--line); padding: 13px 8px; text-align: center; }
.cd-table thead th { background: var(--green); color: #fff; font-weight: 700; font-family: var(--font-head); }
.cd-table tbody th { background: var(--green-tint); color: var(--green-dark); font-weight: 800; white-space: nowrap; padding-inline: 16px; }
.cd-table .on { color: var(--green); font-weight: 900; font-size: 19px; }
.cd-table .off { color: #c3cedd; }
.cd-table .rest { color: var(--red); font-weight: 800; font-size: 13.5px; }
.cd-note { max-width: 720px; margin: 16px auto 0; color: var(--muted); font-size: 15px; text-align: center; line-height: 1.8; }

/* 持ち物・服装 */
.cd-bring { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 12px; }
.cd-bring li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }
.cd-bring li small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); font-size: 14px; }

/* 合格実績・出身校 */
.cd-achieve { max-width: 980px; margin-inline: auto; display: grid; gap: 18px; }
.cd-grp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px clamp(20px,3vw,32px); box-shadow: var(--shadow-sm); }
.cd-grp h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 2px solid var(--green-tint); font-size: 19px; color: var(--green-dark); }
.cd-grp h3 .pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green); color: #fff; font-size: 18px; flex: none; }
.cd-grp.gold h3 .pin { background: var(--gold); }
.cd-grp.gold h3 { border-bottom-color: #f1e3c2; }
.cd-grp.red h3 .pin { background: var(--red); }
.cd-grp.red h3 { border-bottom-color: #f6d8d3; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.cd-tags span { background: var(--green-tint); color: var(--green-dark); border-radius: 999px; padding: 8px 15px; font-size: 14.5px; font-weight: 700; }
.cd-grp.gold .cd-tags span { background: #faf1d9; color: #8f6a1c; }
.cd-grp.red .cd-tags span { background: #fbe7e3; color: #b23a2c; }

@media (max-width: 640px) {
  .cd-flow .st { padding: 20px 18px 20px 64px; }
  .cd-flow .st::before { left: 14px; top: 18px; width: 38px; height: 38px; font-size: 17px; }
  .cd-table { font-size: 15px; }
  .cd-table th, .cd-table td { padding: 11px 4px; }
  .cd-table tbody th { padding-inline: 10px; }
  .cd-grp h3 { font-size: 17px; }
  .cd-tags span { font-size: 13.5px; padding: 7px 13px; }
}

/* 学習システム等のスクリーンショット・ショーケース */
.shots { max-width: 980px; margin-inline: auto; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.shots.one { grid-template-columns: 1fr; max-width: 820px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot .bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #cdd8e6; }
.shot .bar i:nth-child(1) { background: #ef9a93; }
.shot .bar i:nth-child(2) { background: #f3cf7a; }
.shot .bar i:nth-child(3) { background: #9fd2a6; }
.shot img { width: 100%; height: auto; display: block; background: var(--green-tint); }
.shot .cap { padding: 15px 18px; font-weight: 700; color: var(--green-dark); font-size: 15.5px; border-top: 1px solid var(--line); line-height: 1.6; }
.shot .cap small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 3px; }

/* フッター「木村塾」カードの外観写真 */
.fc-photo { display: block; height: 168px; border-radius: 14px; margin: 0 0 20px; background: center/cover no-repeat var(--green-tint); border: 1px solid rgba(255,255,255,.22); box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.fc-photo:hover { transform: translateY(-2px); }

/* アクセス・教室案内（features） */
.access { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px,4vw,52px); align-items: center; max-width: var(--maxw); margin-inline: auto; }
.access .ph { aspect-ratio: 4/3; background: center/cover no-repeat var(--green-tint); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.access .body h3 { font-family: var(--font-head); font-size: clamp(21px,3vw,27px); color: var(--green-dark); margin: 0 0 20px; }
.access .meta { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 0; }
.access .meta li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dotted var(--line); font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; }
.access .meta li:first-child { padding-top: 0; }
.access .meta .k { font-family: var(--font-head); font-weight: 800; color: var(--green-dark); }
.access .meta .v b { color: var(--green); font-weight: 800; }
.access .meta .v small { color: var(--muted); font-size: 14px; }
.access .btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) {
  .access { grid-template-columns: 1fr; gap: 28px; }
  .access .ph { aspect-ratio: 16/10; }
}

/* ===== Responsive ======================================================= */
@media (max-width: 980px) {
  /* iOS Safari対策：backdrop-filterを持つヘッダーはfixed子要素(メニュー)を自身の高さにクリップし、
     メニューが開かない/押せない状態になる。モバイルではblurを外して包含ブロック化を防ぐ。 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .site-nav { position: fixed; inset: 122px 14px auto; z-index: 60; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: 76vh; overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { display: block; width: 100%; padding: 14px 12px; border-bottom: 1px solid var(--line-2); text-align: center; }
  .site-nav a:not(.nav-cta):not(.btn-line):not(.btn-mail)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-cta-group { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .nav-cta-group a { justify-content: center; padding: 15px 18px; font-size: 16px; }
  .nav-toggle { display: block; }
  .hero-media { width: 100%; }
  .hero::after { background: linear-gradient(180deg, rgba(3,30,60,.6), rgba(2,22,46,.78)); }
  .intro, .split, .principal { grid-template-columns: 1fr; }
  .course-grid, .price-grid, .grade-grid, .appeal-grid, .blog-grid, .voice-grid, .feat-grid, .policy-grid, .score-grid, .contact-grid { grid-template-columns: 1fr; }
  .appeal-card.main { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cta { align-items: flex-start; flex-direction: column; }
  .article-row { grid-template-columns: 120px 1fr; }
  .article-row::after { display: none; }
  .spec-list { grid-template-columns: 1fr; }
  .info-table .row { grid-template-columns: 140px 1fr; }
}
@media (min-width: 760px) { h1 span:nth-child(2), h1 span:nth-child(3) { display: inline; } }
@media (max-width: 640px) {
  .site-header { min-height: 92px; }
  .brand img { width: 150px; }
  .site-nav { top: 92px; }
  .hero { min-height: 100svh; padding: 92px 18px 116px; }
  .hero::before { bottom: 100px; }
  h1 { font-size: 42px; }
  .hero-panel { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); margin: 0; grid-template-columns: repeat(3, 1fr); width: calc(100% - 18px); }
  .hero-panel div { padding: 13px 4px; border-right: 1px solid var(--line); border-bottom: 0; }
  .hero-panel div:last-child { border-right: 0; }
  .hero-panel strong { font-size: 18px; }
  .hero-panel span { font-size: 15px; }
  .feature-list, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 220px; }
  .gallery-grid img:first-child { grid-row: span 1; }
  .flow-list li { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; gap: 6px; }
  .fixed-contact { display: none; }
  .intro { margin-inline: 14px; padding: 32px 22px; }
  .info-table .row { grid-template-columns: 1fr; }
  .info-table dt { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ヘッダーはPCでメニュー表示・モバイル(≤980px)のみ☰（常時ハンバーガーは取りやめ） */

/* demo4：スマホ最終仕上げ（押しやすさ・余白） */
@media (max-width: 640px) {
  .hero-actions { width: 100%; justify-content: center; }
  .hero-actions .button { flex: 1 1 100%; max-width: 360px; }
  .hero h1 { font-size: clamp(27px, 8.2vw, 34px); letter-spacing: .02em; }
  .cta-actions .button { flex: 1 1 100%; max-width: 360px; }
  /* 左右の余白を詰めて、より全幅に表示 */
  .section { padding: clamp(56px, 12vw, 80px) 11px; }
  .page-hero { padding-left: 14px; padding-right: 14px; }
  .breadcrumb { padding-left: 11px; padding-right: 11px; }
  .cta { padding-left: 14px; padding-right: 14px; }
  .footer-main, .fb-links, .fb-copy { padding-left: 14px; padding-right: 14px; }
  .intro { margin-inline: 8px; }
  .hero { padding-left: 14px; padding-right: 14px; }
  .grade-card { min-height: 220px; }
}
@media (max-width: 980px) {
  .footer-main { gap: 28px; }
}

/* ===== フェーズ1：アクセント色・ボタン・コンセプト枠 ===== */
/* ヒーロー文中の強調語（A2） */
.hl-accent { color: #ffd36b; font-weight: 900; font-style: normal; }

/* ボタン追加バリエーション（色かぶり回避：F6/F7） */
.button.navy { color: #fff; background: var(--green); box-shadow: var(--shadow-green); }
.button.gold { color: var(--green-deep); background: var(--gold); box-shadow: 0 14px 30px rgba(200,154,60,.32); }

/* コンセプト「学びは、きっかけから。」の枠全体に色（A8/A9） */
.intro { background: var(--green-tint); border-color: #cfe3f7; }
.intro::before { background: var(--gold); width: 5px; }
.intro .section-heading h2 { color: var(--green); }

/* スマホ固定バーの色分けは .fc-phone/.fc-map/.fc-line/.fc-mail で指定（4アイコン化） */

/* ===== 料金カード（K1：合計＋内訳）===== */
.fee-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 1080px; margin-inline: auto; }
.fee-cards.solo { max-width: 460px; }
.fee-card { flex: 0 1 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.fee-card h3 { font-family: var(--font-head); font-size: 21px; color: var(--green-dark); margin: 0 0 4px; }
.fee-card .fee-total { font-family: var(--font-head); font-weight: 900; font-size: clamp(30px,5vw,40px); color: var(--green); line-height: 1.05; margin: 4px 0 8px; }
.fee-card .fee-total span { font-size: 17px; font-weight: 700; color: var(--ink-soft); margin-left: 4px; }
.fee-card .fee-freq { align-self: flex-start; margin: 0 0 16px; padding: 5px 13px; background: var(--green-tint); color: var(--green-dark); border-radius: 999px; font-size: 13.5px; font-weight: 800; }
.fee-card .fee-breakdown { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 9px; }
.fee-card .fee-breakdown li { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.fee-card .fee-breakdown li b { color: var(--ink); font-weight: 800; }
.fee-card .fee-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.fee-extra { max-width: var(--maxw); margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 14px; }
.fee-extra .x { flex: 1 1 240px; background: var(--green-tint); border: 1px solid #cfe3f7; border-radius: var(--radius); padding: 16px 20px; font-weight: 700; color: var(--green-dark); font-size: 15.5px; }
.fee-extra .x b { color: var(--green); }

/* 季節講習（最新だけ表示） */
.kousyuu-latest { max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(24px,4vw,36px); text-align: center; }
.kousyuu-latest .kbadge { display: inline-block; padding: 6px 16px; background: var(--gold); color: var(--green-deep); border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.kousyuu-latest h3 { font-size: clamp(20px,3vw,26px); color: var(--green-dark); margin: 14px 0 8px; }
.kousyuu-latest > p { color: var(--ink-soft); font-size: 16px; margin: 0 auto 18px; max-width: 560px; }
.fee-mini { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 460px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fee-mini li { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.fee-mini li:last-child { border-bottom: 0; }
.fee-mini li:nth-child(odd) { background: var(--paper-2); }
.fee-mini li b { color: var(--green-dark); font-weight: 800; }

/* 講習特設ページ（タグ分け一覧） */
.kousyuu-list { max-width: 880px; margin-inline: auto; display: grid; gap: 18px; }
.kousyuu-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px clamp(22px,3vw,32px); }
.kousyuu-card.season-summer { border-left-color: var(--red); }
.kousyuu-card.season-winter { border-left-color: var(--blue); }
.kousyuu-card.season-spring { border-left-color: #2fa46a; }
.kousyuu-card .khead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.kousyuu-card .kseason { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--green); }
.kousyuu-card.season-summer .kseason { background: var(--red); }
.kousyuu-card.season-winter .kseason { background: var(--blue); }
.kousyuu-card.season-spring .kseason { background: #2fa46a; }
.kousyuu-card h3 { font-size: 20px; color: var(--green-dark); margin: 0; }
.kousyuu-card p { color: var(--ink-soft); font-size: 16px; margin: 0 0 14px; }

/* 合格実績の見出しアイコンを見やすく（白背景＋色枠 / G9） */
.cd-grp h3 .pin { background: #fff; border: 2px solid var(--green); color: var(--green); }
.cd-grp.gold h3 .pin { background: #fff; border-color: var(--gold); }
.cd-grp.red h3 .pin { background: #fff; border-color: var(--red); }
.cd-grp .cd-tags + .cd-tags { margin-top: 8px; }
/* 学年ページ：合格実績などのリード文を左に */
.cd-achieve + * , .cd-lede-left { text-align: left; }

/* ===== 成績データ：学校別色分け＋男女アイコン（E2/E4） ===== */
.score-card .goal { position: relative; }
.score-card .sex { float: right; font-size: 20px; line-height: 1; margin-left: 8px; }
.score-card.sc-hyuga .goal { background: #fbe7e3; color: #b23a2c; border-color: rgba(178,58,44,.35); }
.score-card.sc-hyuga { border-top: 3px solid #db4f3f; }
.score-card.sc-nobeoka .goal { background: #e6eef9; color: #2f5fb0; border-color: rgba(47,95,176,.35); }
.score-card.sc-nobeoka { border-top: 3px solid #2f6fb4; }
.score-card.sc-tomishima .goal { background: #fdebd9; color: #c47a1e; border-color: rgba(196,122,30,.4); }
.score-card.sc-tomishima { border-top: 3px solid #e08a2a; }

/* ===== 追加微調整2（アイコン横にタイトル・お知らせ背景） ===== */
/* 特長カード：アイコンの横にタイトル（空白解消） */
.feat-box { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 6px; align-items: center; }
.feat-box .ic { margin-bottom: 0; grid-row: 1; grid-column: 1; }
.feat-box h3 { grid-row: 1; grid-column: 2; margin: 0; }
.feat-box p { grid-column: 1 / -1; margin: 8px 0 0; }

/* 選ばれる理由カード：番号・アイコン・タイトルを横一列に */
.appeal-card { display: grid; grid-template-columns: auto auto 1fr; column-gap: 12px; row-gap: 0; align-items: center; }
.appeal-card .ac-ic { grid-row: 1; grid-column: 1; margin: 0; }
.appeal-card span { grid-row: 1; grid-column: 2; margin-bottom: 0; }
.appeal-card h3 { grid-row: 1; grid-column: 3; margin: 0; }
.appeal-card p { grid-row: 2; grid-column: 1 / -1; margin: 14px 0 0; }

/* お知らせ：写真背景＋白カードで上のタブと差別化（色被り解消） */
.section.updates { background: linear-gradient(rgba(2,40,79,.66), rgba(3,48,92,.72)), url('assets/gp-whiteboard.jpg') center/cover no-repeat; }
.section.updates .section-heading h2, .section.updates .section-heading .eyebrow { color: #fff; }
.section.updates .article-list { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.section.updates .article-row { padding: 18px 22px; }
.section.updates .section-more { color: #fff; }
.section.updates .section-more::after { color: #fff; }

/* ===== 追加微調整（ユーザー指摘） ===== */
/* スマホ用の改行（PCでは無効） */
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } }

/* スマホ下部の固定バーは4アイコン（電話/MAP/LINE/メール）を表示（@media 980pxで display:grid） */

/* コンセプト枠：見出し・線は中央／本文は左／左の縦線は削除 */
.intro { display: block; }
.intro::before { display: none; }
.intro .section-heading { text-align: center; justify-items: center; margin: 0 auto 18px; }
.intro .section-heading .eyebrow { justify-content: center; }
.intro .section-heading h2::after { margin-left: auto; margin-right: auto; }
.intro > p { text-align: left; max-width: 920px; margin: 0 auto; }

/* スマホでは見出し下のリード文を左揃え（中央だと不自然な改行になるため） */
@media (max-width: 640px) { .section-heading .lede { text-align: left; } }

/* 「詳しく見る」で開閉するトグル */
.more-toggle { max-width: 880px; margin: 0 auto; background: transparent; border: 0; box-shadow: none; overflow: visible; text-align: center; }
.more-toggle > summary { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 14px 30px; background: var(--green); color: #fff; border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: 16px; box-shadow: var(--shadow-green); }
.more-toggle > summary::after { content: "＋"; font-size: 18px; }
.more-toggle[open] > summary::after { content: "－"; }
.more-toggle > .flow-list, .more-toggle > .shots, .more-toggle > .cd-flow, .more-toggle > .faq-list { margin-top: 26px; text-align: left; }

/* ===== 塾生・保護者の声（F1/F4）===== */
.voice-card { border-top: 4px solid var(--green); }
.voice-card .v-photo { display: block; height: 150px; margin: -30px -30px 18px; background: center/cover no-repeat var(--green-tint); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.parent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; max-width: var(--maxw); margin-inline: auto; }
.parent-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.parent-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; color: var(--green-dark); }
.parent-card .who i { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green-tint); border-radius: 50%; font-style: normal; }
.parent-card p { margin: 0; color: var(--ink-soft); font-size: 16.5px; line-height: 1.85; }

/* Instagram 手動4枚（A13/A14） */
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin-inline: auto; }
.insta-grid a { display: block; aspect-ratio: 1; background: center/cover no-repeat var(--green-tint); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.insta-cta { text-align: center; margin-top: 22px; }
@media (max-width: 640px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 見出しの装飾アンダーライン（B1）===== */
.section-heading h2 { position: relative; }
.section-heading h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.updates .section-heading h2::after, .intro .section-heading h2::after, .faq .section-heading h2::after, .split-content h2::after { margin-left: 0; margin-right: auto; }

/* 選ばれる理由カードのアイコン（B2） */
.appeal-card .ac-ic { font-size: 27px; line-height: 1; display: block; margin: 2px 0 10px; }

/* 設備リスト：項目ごとのアイコン（B7） */
.spec-list li.ic-item { padding-left: 58px; }
.spec-list li.ic-item::before { display: none; }
.spec-list li .sp-ic { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 20px; background: var(--green-tint); border-radius: 9px; }

/* 写真の区切りバナー（B6） */
.env-photo { height: clamp(160px, 28vw, 240px); background: center/cover no-repeat var(--green-tint); border-radius: var(--radius-lg); max-width: var(--maxw); margin: 0 auto 32px; box-shadow: var(--shadow-sm); }

/* ===== アニメーション（控えめに再有効化）===== */
html { scroll-behavior: smooth; }
/* インタラクティブ要素のホバーをなめらかに */
.button, .btn-line, .btn-mail, .nav-cta, .site-nav a, .guide-card, .appeal-card,
.course-card, .price-card, .grade-card, .blog-card, .voice-card, .fc-btn, .fc-photo,
.gallery-grid img, .flow-list li, .score-card, .shot, .article-row, .news-item, .s-ic, .feat-box {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== 追加微調整3（線の色統一・見出し中央） ===== */
/* ヒーローの左右の飾り線を同色（金）に */
.hero .eyebrow::before { background: var(--gold-soft); }

/* お知らせ・コンセプト・入塾の流れ・FAQ の見出しと下線を中央に */
#updates .section-heading, .intro .section-heading, #flow .section-heading, #faq .section-heading {
  text-align: center !important; justify-items: center !important; margin-left: auto !important; margin-right: auto !important;
}
#updates .section-heading .eyebrow, .intro .section-heading .eyebrow, #flow .section-heading .eyebrow, #faq .section-heading .eyebrow { justify-content: center !important; }
#updates .section-heading h2::after, .intro .section-heading h2::after, #flow .section-heading h2::after, #faq .section-heading h2::after { margin-left: auto !important; margin-right: auto !important; }

/* 「詳しく見る」ボタンを中央に */
.more-toggle { text-align: center !important; }
.more-toggle > summary { margin-left: auto; margin-right: auto; }

/* お知らせ等の一覧フォントを少し大きく */
.article-row time, .news-item time { font-size: 17px; }
.article-row span, .news-item .ti { font-size: 19.5px; }
.section-more, .text-link { font-size: 17.5px; }

/* ===== 本文を全体的に大きく（読みやすさ向上・漏れなく） ===== */
body { font-size: 20px; }
.lede { font-size: 21px; }
.lead { font-size: clamp(18px, 2vw, 22px); }
.page-hero .inner p { font-size: 20px; }
/* 本文段落 */
.feat-box p, .appeal-card p, .policy-card p, .qa .a, .legal p, .course-card p,
.guide-card p, .cd-grp p, .parent-card p, .kousyuu-card p, .price-card p,
.intro > p, .section > p, .split-content p, .feature-list p,
.contact-card p { font-size: 20px; line-height: 1.95; }
.cta p { font-size: 19px; }
/* カードのタイトル（h3）も一段大きく */
.feat-box h3, .appeal-card h3, .guide-card h3, .policy-card h3, .course-card h3,
.qa .q { font-size: 21px; }
/* 表・リスト */
.info-table dt, .info-table dd { font-size: 19.5px; }
.spec-list li { font-size: 19.5px; }
.fee-card .fee-breakdown li, .fee-mini li { font-size: 18px; }
.cd-flow .st p { font-size: 18px; }
.cd-flow .st h3 { font-size: 20px; }
/* カードの小見出し・リンク・キャプション・タグ */
.grade-card strong { font-size: 19px; }
.g-go, .text-link, .section-more { font-size: 18px; }
.shot .cap { font-size: 18px; }
.cd-bring li { font-size: 19px; }
.cd-tags span, .cd-band .tagrow span { font-size: 16px; }
.fc-list li { font-size: 16.5px; }
/* 注記・補足（小さすぎ防止） */
small, .note, .cd-note, .breadcrumb { font-size: 16.5px; }
.info-table small, .spec-list li small, .fc-list small, .principal .tl small,
.cd-bring li small, .shot .cap small { font-size: 15.5px; }

/* ===== ヘッダーを1行に収める＋メニューを等間隔で広めに ===== */
@media (min-width: 981px) {
  .site-header { gap: 10px 14px; flex-wrap: nowrap; }
  .brand img { width: 184px; }
  .site-nav { font-size: 16px; gap: 12px 26px; flex-wrap: nowrap; }
  .site-nav .nav-cta-group { margin-left: 2px; gap: 12px; }
  .btn-line, .btn-mail { padding: 9px 15px; font-size: 13.5px; gap: 6px; }
  .btn-line svg, .btn-mail svg { width: 16px; height: 16px; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .site-nav { font-size: 15px; gap: 11px 18px; }
  .btn-line, .btn-mail { padding: 8px 13px; font-size: 12.5px; }
  .brand img { width: 164px; }
}
/* フッターのリンク一覧メニューは非表示（Sheet5・PC/スマホ共通）※コピーライトは残す */
.footer-bottom .fb-links { display: none; }
.footer-bottom { border-top: 0; }

/* ===== フッターの2カードを白背景・濃色文字で目立たせる（Sheet6）===== */
.footer-card { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 14px 34px rgba(0,0,0,.24); }
.footer-card .fc-head strong { color: var(--green-dark); }
.footer-card .fc-head .badge { background: var(--green-tint); color: var(--green-dark); }
.footer-card .fc-list li { color: #26374a; }
.footer-card .fc-list small { color: #5c6c82; }
.footer-card .fc-list svg { fill: var(--green); }
.footer-card .fc-photo { border-color: rgba(0,0,0,.12); }
.footer-card .fc-btn.map { border: none; }

/* ===== インスタ欄の背景を白に（Sheet16）===== */
#instagram.section.tint { background: #fff; }

/* ===== 成績: BEFORE/AFTERの背景を学校色に（Sheet17）===== */
.sc-hyuga .score-ba .a { background: #db4f3f; }
.sc-hyuga .score-ba .b { background: #fbe7e3; color: #b23a2c; }
.sc-nobeoka .score-ba .a { background: #2f6fb4; }
.sc-nobeoka .score-ba .b { background: #e6eef9; color: #2f5fb0; }
.sc-tomishima .score-ba .a { background: #e08a2a; }
.sc-tomishima .score-ba .b { background: #fdebd9; color: #c47a1e; }
/* ===== 成績: 男女ラベルを非斜体・明確に（Sheet18・20）===== */
.score-card .sex { float: none; display: inline-block; font-style: normal; vertical-align: middle;
  font-family: var(--font-head); font-weight: 800; font-size: 12.5px; line-height: 1.5;
  padding: 3px 12px; border-radius: 999px; margin: 0 0 16px 8px; }
.score-card .sex.girl { background: #ffe1ee; color: #d6337e; border: 1px solid rgba(214,51,126,.28); }
.score-card .sex.boy { background: #e0edff; color: #2f5fb0; border: 1px solid rgba(47,95,176,.3); }
/* ===== 成績: 数値に単位（点／番）を表示（Sheet21）===== */
.score-ba .num::after { content: "点"; font-size: .5em; font-weight: 700; margin-left: 1px; }
.num-rank .score-ba .num::after { content: "番"; }

/* ===== ヒーロー3特徴ボックスの枠線を見やすく（Sheet22）===== */
.hero-panel { border: 1px solid rgba(0,0,0,.14); }
.hero-panel div { border-right: 1px solid rgba(0,0,0,.14); }
.hero-panel div:last-child { border-right: 0; }

/* ===== 区切りの写真バンド（Sheet15）===== */
.photo-divider { height: clamp(150px, 24vw, 240px); background: center/cover no-repeat var(--green-tint); }

/* ===== メール青ボタン（Sheet28）===== */
.button.mail { color: #fff; background: #232a8a; box-shadow: 0 14px 30px rgba(35,42,138,.26); }
.button.mail svg { width: 20px; height: 20px; fill: currentColor; }

/* ===== voices: 両サイド余白を減らし読みやすく（Sheet23・24）===== */
.page-voices .voice-grid, .page-voices .parent-grid { max-width: 1240px; }
.page-voices .parent-card { padding: 30px 34px; }
.page-voices .parent-card p { font-size: 17.5px; }

/* ===== features 各カードに小さなイメージ写真（Sheet30）===== */
.appeal-card .ac-thumb { height: 132px; margin: 10px 0 14px; border-radius: 12px; background: center/cover no-repeat var(--green-tint); box-shadow: var(--shadow-sm); }
.appeal-card.main .ac-thumb { height: 172px; }

/* ===== 高校生: 大学の学部・学科の詳細（Sheet29）===== */
.more-toggle > .uni-detail { margin-top: 24px; text-align: left; }
.uni-detail { max-width: 980px; margin-inline: auto; }
.uni-detail h4 { font-family: var(--font-head); color: var(--green-dark); font-size: 17px; margin: 22px 0 10px; padding-left: 12px; border-left: 4px solid var(--green); }
.uni-detail ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 6px 20px; }
.uni-detail li { font-size: 15.5px; color: var(--ink); padding: 7px 2px; border-bottom: 1px dashed var(--line); }
.uni-detail li span { display: block; font-size: 13px; color: var(--green); font-weight: 700; margin-top: 2px; }

/* ===== 木村塾オリジナル学習システム 特設（Sheet31）===== */
.origin-sys { background: linear-gradient(180deg, var(--green-tint), #fff); }
.os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: var(--maxw); margin-inline: auto; }
.os-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.os-photo { height: 200px; background: center/cover no-repeat var(--green-tint); }
.os-body { padding: 22px 26px 26px; }
.os-no { font-family: var(--font-en); font-weight: 800; color: var(--green); font-size: 20px; }
.os-body h3 { margin: 4px 0 10px; font-size: 21px; }
.os-body p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.85; }
@media (max-width: 760px) { .os-grid { grid-template-columns: 1fr; } }

/* ===== 料金カード: 内訳ラベル（要望2 Sheet27）===== */
.fee-breakdown::before { content: "内訳"; display: block; font-weight: 800; font-size: 13.5px; color: var(--muted); letter-spacing: .08em; margin-bottom: 6px; }

/* ===== トップお知らせ3件にタグ表示（要望2 Sheet2）===== */
.section.updates .article-row { grid-template-columns: 150px auto 1fr auto; }
.article-row .cat { justify-self: start; padding: 4px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; font-family: var(--font-head); }
/* タグ（お知らせ・講習イベント等）の幅を統一（要望） */
.article-row .cat, .news-item .cat { display: inline-flex; align-items: center; justify-content: center; min-width: 128px; box-sizing: border-box; text-align: center; }
.article-row .cat.info { background: var(--green); }
.article-row .cat.blog { background: var(--gold); color: var(--green-deep); }
.article-row .cat.event { background: var(--red); }
@media (max-width: 640px) {
  .section.updates .article-row { grid-template-columns: auto 1fr; }
  .section.updates .article-row time { grid-column: 1; grid-row: 1; }
  .section.updates .article-row .cat { grid-column: 2; grid-row: 1; justify-self: end; }
  .section.updates .article-row span:not(.cat) { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== 開閉ボタンを確実に中央へ（要望2 Sheet8・49）===== */
.more-toggle { text-align: center !important; }
.more-toggle > summary { display: inline-flex !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }

/* ===== スマホ: ブログ欄・インスタ欄の余白を整理（要望2 スマホ2・Sheet10）===== */
@media (max-width: 640px) {
  #blog-latest .section-heading, #instagram .section-heading { margin-bottom: 14px; }
  #blog-latest .env-photo { margin-bottom: 16px; }
  .section-heading .lede { margin-bottom: 0; }
}

/* ===== 設備リスト: 写真サムネ+開閉（要望2 Sheet36・60）===== */
.more-toggle > .spec-list, .more-toggle > .policy-grid, .more-toggle > .cd-bring { margin-top: 26px; text-align: left; }
.spec-list .spec-thumb { display: block; height: 116px; border-radius: 10px; background: center/cover no-repeat var(--green-tint); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.spec-list li { padding-left: 16px; }
.spec-list li::before { display: none; }

/* ===== スマホ: 見出しまわりの余白を全体的に整理（要望2 Sheet28・49・スマホ2等）===== */
@media (max-width: 640px) {
  .section-heading { margin-bottom: 16px; }
  .more-toggle > summary { margin-top: 2px; }
}

/* ===== スマホ: ヒーローは暗い写真＋白文字で表示（淡色パネルは廃止＝白×白防止）===== */
@media (max-width: 640px) {
  .hero-content { background: none; box-shadow: none; border-radius: 0; padding: 0; }
}
/* ===== CTAボタンのアイコン（要望3）===== */
.cta .button svg { width: 20px; height: 20px; fill: currentColor; }

/* ===== teacher: スマホで「きむみー塾長→写真」の順（要望3 Sheet37）===== */
@media (max-width: 640px) { .principal .photo { order: 2; margin-top: 20px; } }

/* ===== ページ全体を薄い青に統一（要望3 背景）※カードは白のまま ===== */
.bg-lightblue { background: #e9f1fb; }
.bg-lightblue .section,
.bg-lightblue .section.light,
.bg-lightblue .section.tint,
.bg-lightblue .section.appeal,
.bg-lightblue .section.policy,
.bg-lightblue .origin-sys { background: transparent; }
.bg-lightblue .env-photo, .bg-lightblue .os-photo, .bg-lightblue .spec-thumb { background-color: #dbe7f6; }


/* ===== 右下の応援キャラクター（自動で切り替わる木村塾マスコット） ===== */
.kj-mascot { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 132px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; transition: opacity .3s ease, transform .3s ease; animation: kjIn .5s cubic-bezier(.2,.9,.3,1.4) backwards; }
.kj-mascot .kj-char, .kj-mascot .kj-bubble, .kj-mascot .kj-close { pointer-events: auto; }
.kj-char { width: 118px; height: auto; cursor: pointer; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); animation: kjBob 3.2s ease-in-out infinite; will-change: transform; }
.kj-char.pop { animation: kjPop .45s ease, kjBob 3.2s ease-in-out .45s infinite; }
.kj-bubble { position: relative; width: max-content; max-width: 200px; margin-bottom: 8px; padding: 8px 13px; background: #fff; color: var(--green-dark, #1f6b3a); border: 2px solid var(--green, #2e9e57); border-radius: 14px; font-family: var(--font-head, sans-serif); font-weight: 800; font-size: 13px; line-height: 1.4; text-align: center; white-space: pre-line; box-shadow: 0 6px 16px rgba(0,0,0,.12); cursor: pointer; }
.kj-bubble::after { content: ""; position: absolute; right: 34px; bottom: -8px; border: 7px solid transparent; border-top-color: #fff; }
.kj-bubble::before { content: ""; position: absolute; right: 33px; bottom: -11px; border: 8px solid transparent; border-top-color: var(--green, #2e9e57); }
.kj-close { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; z-index: 2; }
.kj-mascot:hover .kj-close { opacity: 1; }
.kj-mascot.kj-tucked { opacity: 0; transform: translateY(24px); pointer-events: none; }
.kj-mascot.kj-tucked .kj-char, .kj-mascot.kj-tucked .kj-bubble, .kj-mascot.kj-tucked .kj-close { pointer-events: none; }
.kj-mascot.kj-hide { animation: kjOut .3s ease forwards; }
@keyframes kjIn { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes kjOut { to { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes kjBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes kjPop { 0% { transform: scale(.6) rotate(-6deg); opacity: .3; } 60% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (max-width: 640px) {
  .kj-mascot { width: 100px; right: 10px; bottom: 10px; }
  .kj-char { width: 84px; }
  .kj-bubble { font-size: 12px; max-width: 156px; padding: 6px 10px; margin-bottom: 6px; }
  .kj-close { opacity: 1; width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .kj-char, .kj-char.pop, .kj-mascot { animation: none !important; }
}


/* ===== お問い合わせ 確認画面／完了画面 ===== */
.cf-box { max-width: 560px; margin: 22px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cf-row { display: grid; grid-template-columns: 132px 1fr; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.cf-row:last-child { border-bottom: 0; }
.cf-k { font-family: var(--font-head); font-weight: 800; color: var(--green-dark); font-size: 14px; }
.cf-v { color: var(--ink); font-size: 15px; word-break: break-word; }
.cf-num { display: inline-block; margin: 8px 0 14px; padding: 9px 20px; background: #fff; color: var(--green-dark); border: 2px solid var(--green); border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.cf-num b { font-size: 18px; letter-spacing: .04em; }
.cf-note { max-width: 620px; margin: 8px auto 0; font-size: 14px; line-height: 1.7; color: #fff; background: rgba(0,0,0,.28); padding: 12px 16px; border-radius: 12px; }
@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; gap: 3px; padding: 12px 15px; }
  .cf-k { font-size: 13px; }
}
