/* ==========================================================================
   木村塾 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; }
.posts-more { display: block; margin: 26px auto 0; }
body.nav-open { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.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; }

/* ブログ本文で、見出し直後などに意図して入れた空きを残す */
.legal .post-spacer,
.bp-body .post-spacer {
  height: 28px;
  margin: 0;
}

/* ===== 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; justify-content: center; 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; }
/* 画像はカード本体のインラインstyle(data-edimg)から::beforeへinherit＝管理画面で差し替え可能 */
.grade-card { background-size: 0 0; background-repeat: no-repeat; }
.grade-card::before { background: center / cover no-repeat; background-image: inherit; 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 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; }
/* 「木村塾を知る」カード：文字部分に背景色を敷き、6つの枠がはっきり分かるように */
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 26px rgba(2,40,79,.09); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.guide-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(2,40,79,.16); border-color: var(--green); }
.guide-card .g-photo { aspect-ratio: 16 / 10; background: center/cover no-repeat var(--green-tint); }
.guide-card .g-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; background: linear-gradient(180deg, #f4f8fd 0%, #eaf1f9 100%); border-top: 3px solid var(--green); }
.guide-card h3 { margin-bottom: 10px; color: var(--green-dark); }
.guide-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; }
.guide-card .g-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 10px 22px; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(0,70,140,.22); transition: gap .2s ease, filter .2s ease, transform .2s ease; }
.guide-card .g-go::after { content: "→"; }
/* 右の矢印と同じ幅の見えない余白を左にも入れて、文字をボタンの真ん中に置く */
.guide-card .g-go::before { content: "→"; visibility: hidden; }
.guide-card:hover .g-go { gap: 11px; filter: brightness(1.06); }
@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 h3 { margin-bottom: 12px; }
.appeal-card p { margin: 0; color: var(--muted); font-size: 17px; }
.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;
}

/* ===== 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: "→"; }
/* 「〜一覧へ →」も、右の矢印と同じ幅を左に確保して文字を中央に */
.section-more::before { content: "→"; visibility: hidden; }
.text-link:hover, .section-more:hover { gap: 12px; color: var(--green); }
/* 「〜一覧へ →」リンクは常に中央（display問わず確実に中央寄せ） */
.section-more { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.updates .section-more, .blog .section-more, .voices .section-more { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
/* 単独ボタンのブロックは中央に（お問い合わせのGoogleマップなど） */
.cta-mini { display: flex; justify-content: center; }

/* ===== 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; white-space: pre-line; }

/* ===== CTA ============================================================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(56px, 8vw, 92px) clamp(18px, 4vw, 56px); color: #fff;
  padding-right: clamp(220px, 31vw, 390px);
  background: linear-gradient(135deg, var(--green-2), var(--green-deep));
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 86% 26%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, var(--green-2), var(--green-deep));
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(18px, 4vw, 56px);
  top: 50%;
  width: clamp(160px, 23vw, 305px);
  aspect-ratio: 4 / 3;
  transform: translateY(-50%) rotate(-1.5deg);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(4,28,56,.02), rgba(4,28,56,.16)),
    url("assets/gp-group1.jpg") center/cover no-repeat;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.cta h2, .cta p { margin: 0; }
.cta > * { position: relative; z-index: 1; }
.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; } }

/* ===== 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 .tl li div { white-space: pre-line; }
.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; white-space: pre-line; }

.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; }
.post-plain { white-space: normal; }
.post-toc { margin: 18px 0 26px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.post-toc summary { cursor: pointer; font-family: var(--font-head); font-weight: 800; color: var(--green-dark); }
.post-toc ol { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 7px; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { color: var(--green); text-decoration: underline; }
.post-toc .toc-lv3 { margin-left: 1em; font-size: .95em; }
.post-toc .toc-lv4 { margin-left: 2em; font-size: .9em; color: var(--muted); }
@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; white-space: pre-line; }

.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 auto; max-width: none; text-align: center; 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: var(--muted); }
.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; }

/* [2026-08-03] 高校生ページ：進学実績の見出しを要望11の見本に合わせてカード調に整理 */
.high-results .section-heading {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(0,70,140,.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82)),
    radial-gradient(circle at 50% 0, rgba(0,70,140,.12), transparent 58%);
  box-shadow: var(--shadow-sm);
}
.high-results .section-heading h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 13px;
  color: var(--green-dark);
}
.high-results .section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.high-results .section-heading .lede {
  max-width: 640px;
  margin-bottom: 0;
  text-align: center !important;
}
.high-results .cd-achieve {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.high-results .cd-grp {
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  border-color: rgba(0,70,140,.12);
}
.high-results .cd-grp h3 {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  border-left: 7px solid var(--green);
  background: linear-gradient(90deg, #eef6ff, #fff);
  color: #15385f;
  font-size: clamp(18px, 2vw, 21px);
}
.high-results .cd-grp.gold h3 { border-left-color: var(--gold); background: linear-gradient(90deg, #fff6df, #fff); }
.high-results .cd-grp.red h3 { border-left-color: var(--red); background: linear-gradient(90deg, #fff0ed, #fff); }
.high-results .cd-grp h3 .pin {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,70,140,.18);
}
.high-results .cd-tags { padding: 20px 22px 24px; }
.high-results .more-toggle {
  max-width: 980px;
  margin-inline: auto;
  border-color: rgba(0,70,140,.16);
}

@media (max-width: 760px) {
  .high-results .cd-achieve { grid-template-columns: 1fr; }
  .high-results .section-heading { text-align: left; }
  /* ホームページ要望13 Sheet1：スマホで見出し下の棒線が左端に寄っていたのを、
     見出しテキストの真下（中央）に戻す */
  .high-results .section-heading .lede { text-align: left !important; }
}

@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); }
a.fc-photo { transition: transform .25s ease; }
a.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; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  /* ホームページ要望13 Sheet3：スマホで写真が斜めに切れて「変」に見えていたのを、
     縦積みレイアウトの中にまっすぐ・欠けずに収まる普通の写真として表示する */
  .cta { align-items: stretch; flex-direction: column; padding-right: clamp(18px, 4vw, 56px); }
  .cta::after {
    position: static; order: -1; margin: 0 auto 20px; right: auto; top: auto; bottom: auto;
    width: 100%; max-width: 320px; aspect-ratio: 16 / 10;
    transform: none; opacity: 1;
  }
  .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; }
  .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; margin-inline: auto; }
  .hero h1 { font-size: clamp(27px, 8.2vw, 34px); letter-spacing: .02em; }
  .cta-actions .button { flex: 1 1 100%; max-width: 360px; margin-inline: auto; }
  /* 左右の余白を詰めて、より全幅に表示 */
  .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; white-space: pre-line; }
.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; white-space: pre-line; }

/* 合格実績の見出しアイコンを見やすく（白背景＋色枠 / 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; }

/* スマホでは見出し下のリード文を左揃え（中央だと不自然な改行になるため） */
/* .section-heading .lede は中央のまま（要望8：スマホ5・Sheet19） */

/* 「詳しく見る」で開閉するトグル */
.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 > summary::before { content: "＋"; font-size: 18px; visibility: hidden; }
.more-toggle[open] > summary::before { 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; }
}
/* フッターのリンク一覧メニュー（スマホで下まで見た時に他ページへ移動しやすいよう表示） */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); }

/* ===== フッターの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 {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 132px;
  margin: 10px 0 14px;
  border-radius: 12px;
  background: center/cover no-repeat var(--green-tint);
  box-shadow: var(--shadow-sm);
}

/* ===== 高校生: 大学の学部・学科の詳細（Sheet29）===== */
.more-toggle > .uni-detail { margin-top: 24px; text-align: left; }
.uni-detail { max-width: 980px; margin-inline: auto; }
/* 要望12 Sheet4：「詳しく見る」の先（国公立大学／私立大学／短大・専門学校／通塾生の出身高校）の
   見出しを、緑の左線だけの控えめな見出しから、紺の帯に白文字の目立つ見出しへ。
   要望13 Sheet4：↑がすぐ上の「詳しく見る」ボタン（紺の丸ボタン）と同じ形に見えて紛らわしいとのご指摘。
   ボタンとは違う形（丸ピルではなく横長の帯、左に金色のアクセント）にして区別する */
.uni-detail h4 {
  font-family: var(--font-head); color: #fff; font-size: 15.5px; font-weight: 800;
  margin: 26px 0 12px; padding: 10px 18px 10px 16px; border-radius: 10px;
  border-left: 5px solid var(--gold, #d9a441);
  background: linear-gradient(135deg, #0c3a63, #1d6fa8);
  box-shadow: 0 3px 10px rgba(12,58,99,.22); display: block;
}
.uni-detail h4:first-child { margin-top: 0; }
.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: 44px; height: 44px; top: -12px; right: -12px; }
  body[data-page="index"] .kj-mascot { display: none; }
}
@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; }
}



/* ===== 記事内の「関連記事」カード（旧サイトから復元したリンク） ===== */
.legal .relcard { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 12px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.legal .relcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.legal .relcard img { width: 128px; height: 78px; object-fit: cover; border-radius: 8px; margin: 0; flex: none; }
.legal .relcard .relcard-t { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--green-dark); line-height: 1.5; }
.legal .relcard .relcard-t::after { content: " →"; color: var(--green); }
@media (max-width: 520px) { .legal .relcard img { width: 96px; height: 62px; } .legal .relcard .relcard-t { font-size: 14.5px; } }

/* ===== スマホ・タブレット: ボタンが左寄りにならないよう中央に揃える（全ページ共通） ===== */
/* ガイドカードは980px以下で1カラム。ボタンだけ中央にして、文章は左揃えのまま
   （文章まで中央にすると、最後の行が1〜2文字だけ残る不自然な改行になるため） */
@media (max-width: 980px) {
  .guide-card .g-body { text-align: left; align-items: stretch; }
  .guide-card .g-go { align-self: center; }
}
@media (max-width: 640px) {
  /* 各ページ下部の問い合わせボタン */
  .cta-actions { justify-content: center; }
  .cta-actions .button, .hero-actions .button { margin-inline: auto; }
  /* 開閉ボタン・「もっと見る」系 */
  .more-toggle > summary,
  .section-more, .season-more { margin-left: auto; margin-right: auto; }
  .section-more, .cta-mini { display: flex; justify-content: center; }
  /* 季節講習カードの申し込みボタン */
  .kousyuu-card .button { display: flex; width: 100%; max-width: 360px; margin-inline: auto; }
}

/* =========================================================================
   アニメーション全停止（ご要望により、動く演出はすべてオフ）
   ・ふわっと出る、拡大する、色がゆっくり変わる…といった動きを止めます
   ・要素は必ず「最終状態（見えている状態）」で固定するので、消えることはありません
   ========================================================================= */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
/* スクロールで出てくる要素は最初から表示 */
.reveal, .reveal.in { opacity: 1 !important; transform: none !important; }
/* ホバーで動く演出も止める（色の変化は残します） */
.guide-card:hover, .grade-card:hover, .voice-card:hover, .appeal-card:hover,
.feat-box:hover, .price-card:hover, .kousyuu-card:hover, .parent-card:hover,
.button:hover, .btn-line:hover, .btn-mail:hover, .nav-cta:hover,
.more-toggle > summary:hover, .g-go:hover, .section-more:hover,
.news-item:hover, .article-row:hover, .relcard:hover, .fc-btn:hover {
  transform: none !important;
}
/* キャラクターの動きも停止（表示はそのまま） */
.kj-char, .kj-char.pop, .kj-mascot, .kj-bubble { animation: none !important; }

/* =========================================================================
   フッターのメニュー — スマホで下まで読んだ人が、他のページへ移動しやすいように
   ========================================================================= */
.fb-links { padding-top: 30px; padding-bottom: 8px; }
.fb-links a {
  display: inline-flex; align-items: center;
  padding: 8px 4px; line-height: 1.5;
}
@media (max-width: 820px) {
  /* 要望9（Sheet13）：スマホは「2列」で、左の列を上から下 → 右の列を上から下の順に並べる。
     段組み（column-count）を使うので、メニューが増えても自動で2列に振り分きます。 */
  .fb-links {
    display: block;
    column-count: 2;
    column-gap: 14px;
    padding: 18px 14px 6px;
    max-width: 480px; margin-inline: auto;
  }
  .fb-links a {
    display: flex; align-items: center; gap: 6px;
    break-inside: avoid; -webkit-column-break-inside: avoid;
    min-height: 44px; padding: 9px 2px;
    font-size: 14px; color: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(255,255,255,.13);
  }
  .fb-links a::before { content: "›"; color: var(--gold-soft); font-weight: 800; flex: none; }
  /* 最後の1件だけ薄くしていたのをやめて、全部おなじ白にする */
  .fb-links a:last-child { font-size: 14px; color: rgba(255,255,255,.92); }
  .fb-copy { padding-top: 14px; font-size: 12.5px; }
}
}
}
}

/* =========================================================================
   スマホ・タブレット：文章は左揃え／見出しとボタンは中央
   （文章を中央にすると、最後の行が数文字だけ残る不自然な改行になるため）
   ========================================================================= */
@media (max-width: 980px) {
  .section p, .intro p, .lead, .lede, .note, .cd-note,
  .guide-card p, .feat-box p, .appeal-card p, .policy-card p,
  .course-card p, .kousyuu-card p, .price-card p, .parent-card p,
  .cd-grp p, .voice-card p, .grade-card p, .spec-list li, .flow-list p,
  .uni-detail p, .legal p, .legal li, details p {
    text-align: left;
  }
  /* 見出し・バッジ・短いラベルは中央のまま */
  .section-heading h2, .section-heading .eyebrow-lg,
  .page-hero h1, .cta h1, .cta h2, .hero h1,
  .cd-band .em, .fb-copy, .score-ba, .stat-num {
    text-align: center;
  }
  /* ボタンは常に中央 */
  .section-more, .cta-mini, .more-toggle { text-align: center; }
}

/* =========================================================================
   トップのメインビジュアル（ヒーロー）は元の見た目に戻す
   ・キャッチコピーは中央揃え（手動の改行に合わせた元のデザイン）
   ・背景写真は元の拡大率のまま（ゆっくり動く演出だけ止める）
   ========================================================================= */
.hero .lead, .hero h1, .hero .eyebrow-lg { text-align: center !important; }
.hero-media { transform: scale(1.06) !important; }

/* =========================================================================
   Instagramボタン — ひと目でインスタとわかるように、公式カラーとアイコンを使う
   ========================================================================= */
.button.insta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  color: #fff;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
  border: 0; box-shadow: 0 8px 22px rgba(190, 40, 120, .32);
}
.button.insta:hover { filter: brightness(1.06); }
.button.insta .ig-ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.button.insta .ig-tx { font-weight: 800; }
.button.insta .ig-id {
  font-family: var(--font-en); font-weight: 700; font-size: .88em;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
@media (max-width: 480px) {
  .button.insta { gap: 8px; padding-inline: 20px; }
  .button.insta .ig-id { font-size: .82em; }
}

/* =========================================================================
   スマホ：メインビジュアルを「女性／定額／日向市」のパネルまで1画面に収める
   上に固定ヘッダーがある分、その高さを差し引いた高さにする
   ========================================================================= */
@media (max-width: 820px) {
  :root { --hd-h: 92px; }              /* 固定ヘッダーの高さ */
  .hero {
    min-height: calc(100svh - var(--hd-h) - 14px);
    min-height: calc(100dvh - var(--hd-h) - 14px);
    padding-top: 26px;                  /* ヘッダー分はもう引いてあるので詰める */
    padding-bottom: 104px;              /* パネルの高さ分をあける */
  }
  /* 文字が窮屈にならないよう、行間と余白を少しだけ詰める */
  .hero h1 { line-height: 1.28; }
  .hero .lead { margin-top: 14px; line-height: 1.9; }
  .hero .eyebrow-lg { margin-bottom: 10px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  /* 画面の低い端末では、さらに詰めて確実に収める */
  .hero { padding-top: 14px; padding-bottom: 92px; }
  .hero h1 { font-size: clamp(24px, 7.4vw, 30px); }
  .hero .lead { font-size: 15.5px; line-height: 1.75; margin-top: 10px; }
  .hero-panel div { padding: 10px 4px; }
}

/* =========================================================================
   スマホ・タブレット（マウスがない機器）ではホバー効果を出さない
   ・指でタップすると「マウスを乗せた状態」が残り、写真が明るくなったり
     拡大したままになってしまうため
   ・マウスのあるパソコンでは今までどおり動きます
   ========================================================================= */
@media (hover: none), (pointer: coarse) {
  .grade-card:hover::before { transform: scale(1.04); }
  .grade-card:hover em { transform: none; }
  .gallery-grid img:hover { transform: none; }
  .fc-photo:hover { transform: none; }
  .guide-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
  .guide-card:hover .g-go { gap: 6px; filter: none; }
  .appeal-card:hover, .course-card:hover, .price-card:hover,
  .blog-card:hover, .voice-card:hover, .score-card:hover {
    transform: none; box-shadow: var(--shadow-sm);
  }
  .btn-line:hover, .btn-mail:hover, .fc-btn:hover {
    transform: none; filter: none;
  }
  .button.insta:hover { filter: none; }
  .button:hover, .btn:hover { filter: none; }
  .news-item:hover, .article-row:hover, .relcard:hover { transform: none; }
  .text-link:hover, .section-more:hover, .g-go:hover { gap: 8px; }
}

/* =========================================================================
   Googleマップボタン — ひと目で地図とわかるように、ピンのアイコンを付ける
   ========================================================================= */
.button.gmap {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f2d3d;
  border: 1.5px solid #dadce0;
  box-shadow: 0 2px 8px rgba(60, 64, 67, .16);
  font-weight: 700;
}
.button.gmap:hover { background: #f5f8fd; border-color: #4285F4; }
.button.gmap .gm-ic { width: 22px; height: 22px; flex: none; }
.button.gmap .gm-tx { font-weight: 800; }
@media (hover: none), (pointer: coarse) {
  .button.gmap:hover { background: #fff; border-color: #dadce0; }
}

/* =========================================================================
   記事・固定ページの見出し — 元のホームページと同じ「青塗り・白文字」に
   h2＝大見出し（濃い青の帯）／h3＝中見出し（青の帯・記事の主役）
   h4＝小見出し（青の下線）
   ========================================================================= */
.legal h2,
.legal h3 {
  margin: 40px 0 16px;
  padding: 12px 18px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(2, 40, 79, .18);
}
.legal h2 {
  font-size: 22px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
  border-left: 7px solid var(--gold);
}
.legal h3 {
  font-size: 19.5px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-left: 7px solid var(--gold-soft);
}
.legal h2:first-child, .legal h3:first-child { margin-top: 0; }
.legal h4 {
  margin: 30px 0 10px; padding: 0 0 7px 12px;
  font-size: 18px; color: var(--green-dark);
  border-left: 5px solid var(--green);
  border-bottom: 2px solid var(--green-tint);
}
/* 見出しの直後の段落は少し詰める */
.legal h2 + p, .legal h3 + p, .legal h4 + p { margin-top: 10px; }
@media (max-width: 640px) {
  .legal h2, .legal h3 { padding: 10px 14px; margin: 30px 0 14px; }
  .legal h2 { font-size: 19px; }
  .legal h3 { font-size: 17.5px; }
  .legal h4 { font-size: 16.5px; }
}

/* =========================================================================
   通い方の説明 — 長い文章ではなく、ひと目でわかる箇条書きに
   ========================================================================= */
.cd-note-list {
  max-width: 680px; margin: 16px auto 0; padding: 0; list-style: none;
  text-align: left;
}
.cd-note-list li {
  position: relative;
  padding: 9px 4px 9px 30px;
  color: var(--ink-soft); font-size: 16.5px; line-height: 1.8;
  border-bottom: 1px dashed var(--line);
}
.cd-note-list li:last-child { border-bottom: 0; }
.cd-note-list li::before {
  content: ""; position: absolute; left: 6px; top: 17px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
}
@media (max-width: 640px) {
  .cd-note-list { margin-top: 12px; }
  .cd-note-list li { font-size: 15.5px; padding: 8px 2px 8px 26px; }
  .cd-note-list li::before { left: 4px; top: 15px; width: 8px; height: 8px; }
}

/* =========================================================================
   学年ごとの内容を揃える小さな表（中1・中2 と 中3／高1・高2 と 高3）
   文章で書くと行がそろわず読みにくいため、表にして左右をきちんと揃える
   ========================================================================= */
.gr-tbl {
  width: 100%; max-width: 420px;
  border-collapse: collapse;
  margin: 8px 0 6px;
  font-size: 15.5px;
}
.gr-tbl th {
  width: 6.6em; padding: 6px 10px 6px 0;
  text-align: left; vertical-align: top;
  font-weight: 700; color: var(--green-dark);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.gr-tbl td {
  padding: 6px 0; vertical-align: top;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.gr-tbl tr:last-child th, .gr-tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
  .gr-tbl { font-size: 14.5px; }
  .gr-tbl th { width: 5.8em; padding-right: 8px; }
}

/* =========================================================================
   箇条書きカードに☑アイコンを付ける（要望7 Sheet21・23・24）
   文字だけで寂しかった項目に、同じ✓マークを付けて見やすくする
   ※写真サムネ付き（.spec-thumb がある）項目にはマークを出さない
   ========================================================================= */
.spec-list li:not(:has(.spec-thumb)):not(.ic-item) {
  padding-left: 52px;
}
.spec-list li:not(:has(.spec-thumb)):not(.ic-item)::before {
  content: "✓";
  display: grid; place-items: center;
  position: absolute; left: 16px; top: 17px;
  width: 26px; height: 26px;
  background: var(--green); color: #fff;
  border-radius: 8px;
  font-size: 16px; font-weight: 900; line-height: 1;
}
/* :has() が使えない古い環境向けの控え（マークは出ないが崩れない） */
@supports not (selector(:has(*))) {
  .spec-list li { padding-left: 16px; }
}
@media (max-width: 640px) {
  .spec-list li:not(:has(.spec-thumb)):not(.ic-item) { padding-left: 46px; }
  .spec-list li:not(:has(.spec-thumb)):not(.ic-item)::before {
    left: 13px; top: 15px; width: 24px; height: 24px; font-size: 15px;
  }
}

/* =========================================================================
   料金カードの「かんたんな説明」と「詳しく見る」ボタン（要望7 Sheet26）
   値段だけでなく、何をするコースなのかが分かるようにする
   ========================================================================= */
.fee-card .fee-desc {
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 15px; line-height: 1.8;
  text-align: left;
  white-space: pre-line;
}
.fee-card .fee-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; padding: 10px 22px;
  background: var(--green); color: #fff;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px rgba(0,70,140,.22);
}
.fee-card .fee-more::before { content: "→"; visibility: hidden; }
.fee-card .fee-more::after { content: "→"; }
.fee-card { display: flex; flex-direction: column; }
.fee-card .fee-more { align-self: center; margin-top: auto; }
@media (max-width: 640px) {
  .fee-card .fee-desc { font-size: 14.5px; }
  .fee-card .fee-more { font-size: 14.5px; padding: 9px 18px; }
}

/* =========================================================================
   成績データ：「○点UP！」「○番UP！」をひと目でわかるように（要望7 Sheet41）
   点数の伸びだけでなく、順位の伸びも並べて見せる
   ========================================================================= */
.score-up {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin: 6px 0 12px;
}
.score-up span {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 900; font-size: 17px; line-height: 1.2;
  color: #fff;
  box-shadow: 0 5px 14px rgba(2,40,79,.22);
}
.score-up .up-pt { background: linear-gradient(135deg, #e8663c, #d24a22); }
.score-up .up-rk { background: linear-gradient(135deg, #2f8f5b, #1c7c3a); }
/* 延岡・日向で色が変わるカードでも、バッジは共通の色で目立たせる */
.score-card .score-up span { letter-spacing: .02em; }
@media (max-width: 640px) {
  .score-up { gap: 6px; margin: 4px 0 10px; }
  .score-up span { font-size: 15.5px; padding: 5px 13px; }
}

/* =========================================================================
   各項目の小さなイメージ写真枠（要望7 Sheet14・16・22）
   ・管理画面「写真の入れ替え」から1枠ずつ設定できます
   ・写真を入れるまでは何も表示されません（枠だけ残って崩れることはありません）
   ========================================================================= */
.itm-thumb {
  display: none;                          /* 未設定のあいだは出さない */
  width: 100%; height: 132px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: center / cover no-repeat var(--green-tint);
  box-shadow: var(--shadow-sm);
}
/* 背景画像が設定された枠だけ表示する */
.itm-thumb[style*="background-image"] { display: block; }
@media (max-width: 640px) {
  .itm-thumb { height: 112px; }
}

/* =========================================================================
   入塾までの流れ 詳細ページ（要望7 Sheet4）
   ========================================================================= */
.flow-detail li p { line-height: 1.95; }
.flow-detail li { padding-bottom: 26px; }
@media (max-width: 640px) {
  .flow-detail li p { font-size: 15.5px; }
}

/* =========================================================================
   スマホのヘッダーに色を付ける（要望7 Sheet1）
   ずっと白い帯が付いてくると味気ないため、ごく薄い塾カラーの帯にして
   下に金色のラインを入れる。ロゴが見えにくくならない濃さに抑える。
   ========================================================================= */
@media (max-width: 980px) {
  .site-header {
    background: linear-gradient(180deg, #eef4fb 0%, #e4edf8 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 14px rgba(2, 40, 79, .10);
  }
}


/* =========================================================================
   要望8-B — スマホでの「変な改行」「揃えのズレ」の調整
   ・見出し直下の説明文（.lede）は中央のまま：
     「日向市に特化したオリジナル教材 × タブレット個別指導」の × が
     左に寄ってしまう／「明るく安全な環境を整えています。」がズレる問題
   ・緑の帯（.cd-band）の中の文章も中央のまま
   ・ページ下部のCTA見出しは左揃え（中央だと変なところで折り返す）
   ========================================================================= */
@media (max-width: 980px) {
  .section-heading .lede,
  .cd-band p,
  .cd-band .em { text-align: center; }

  /* 「お子さまの『変わる』が、ここから始まります。」は中央揃え（写真も上に来るため全体を中央に統一） */
  .cta h1, .cta h2, .cta .eyebrow, .cta p { text-align: center; }
}


/* =========================================================================
   要望8-G — 成績データの「男子／女子」をイラスト付きの分かりやすい表示に
   （文字だけだと見分けづらい、というご指摘への対応。ラベルも残しています）
   ========================================================================= */
.score-card .sex {
  float: right; display: inline-flex; align-items: center; gap: 5px;
  font-style: normal; font-size: 13px; font-weight: 800; line-height: 1;
  padding: 5px 11px 5px 8px; border-radius: 999px; margin-left: 8px;
}
.score-card .sex svg { width: 15px; height: 15px; flex: none; }
.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,.30); }
.score-card .sex.girl svg { fill: #e0559a; }
.score-card .sex.boy  svg { fill: #4b7fd0; }
.score-card .sex b { font-weight: 800; }

/* 成績カードはスマホでも「延岡①〜⑤ → 日向①〜⑤ → 富島」の順に上から並ぶ
   （並び順は管理画面「成績データ」の▲▼で変えられます） */
.score-grid { grid-auto-flow: row; }


/* =========================================================================
   要望8-E — 箇条書きのアイコンを「ひと目で分かる」大きさ・色に
   （前の✓マークは小さくて分かりづらい、というご指摘への対応）
   アイコンは管理画面「ページ編集（文字）」から別の絵文字に変えられます
   ========================================================================= */
.spec-list li.ic-item { padding-left: 66px; }
.spec-list li.ic-item::before { display: none; }
.spec-list li .sp-ic {
  position: absolute; left: 16px; top: 15px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 21px; line-height: 1;
  background: linear-gradient(135deg, #eaf3ff, #dbe9fb);
  border: 1px solid rgba(0,70,140,.18);
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(20,50,90,.10);
}
@media (max-width: 640px) {
  .spec-list li.ic-item { padding-left: 58px; }
  .spec-list li .sp-ic { left: 12px; top: 13px; width: 34px; height: 34px; font-size: 19px; }
}

/* =========================================================================
   塾長紹介：3つの安心ポイントカード
   白い箱が並ぶだけで味気なかったため、teacherページだけ上品なカードにする
   ========================================================================= */
body[data-page="teacher"] .spec-list {
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
}
body[data-page="teacher"] .spec-list li.ic-item {
  display: flex;
  align-items: center;
  min-height: 118px;
  padding: 26px 28px 26px 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 12%, rgba(255,255,255,.95) 0 58px, transparent 59px),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #edf5ff 100%);
  border: 1px solid rgba(29,111,168,.14);
  border-left: 6px solid #1d6fa8;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(12,48,88,.10);
  color: #132338;
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: .01em;
}
body[data-page="teacher"] .spec-list li.ic-item:nth-child(2) { border-left-color: #c89a3c; }
body[data-page="teacher"] .spec-list li.ic-item:nth-child(3) { border-left-color: #2f8f5b; }
body[data-page="teacher"] .spec-list li.ic-item::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(29,111,168,.06);
}
body[data-page="teacher"] .spec-list li .sp-ic {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
  border: 1px solid rgba(29,111,168,.18);
  box-shadow: 0 8px 18px rgba(12,48,88,.12);
}
@media (max-width: 640px) {
  body[data-page="teacher"] .spec-list li.ic-item {
    min-height: 96px;
    padding: 20px 18px 20px 72px;
    border-radius: 18px;
    font-size: 17px;
  }
  body[data-page="teacher"] .spec-list li .sp-ic {
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }
}


/* =========================================================================
   要望8-I（Sheet4）— ページヘッダー／記事ヘッダーの写真が暗すぎる問題
   写真がちゃんと見えるように覆いを薄くし、文字は影で読めるようにする
   （左下＝文字のあたりだけ少し濃く、右上は写真をはっきり見せる）
   ========================================================================= */
.page-hero::after {
  background: linear-gradient(105deg,
    rgba(4,28,56,.62) 0%,
    rgba(4,28,56,.34) 46%,
    rgba(4,28,56,.10) 100%) !important;
}
.page-hero .bg { filter: none; }
.page-hero h1 { text-shadow: 0 2px 14px rgba(2,18,38,.55), 0 1px 3px rgba(2,18,38,.45); }
.page-hero p,
.page-hero .en { text-shadow: 0 1px 8px rgba(2,18,38,.6); }
@media (max-width: 640px) {
  /* スマホは文字が写真に重なりやすいので、少しだけ濃くする */
  .page-hero .bg { transform: none; filter: none; }
  .page-hero::after {
    background: linear-gradient(180deg,
      rgba(4,28,56,.34) 0%,
      rgba(4,28,56,.52) 62%,
      rgba(4,28,56,.66) 100%) !important;
  }
}


/* =========================================================================
   要望8-I（Sheet18）— 塾長からのメッセージ欄（塾長紹介ページ）
   水色の背景にやわらかいギザギザ模様。文字はすべて管理画面から直せます
   ========================================================================= */
.msg-sec {
  background: #7cc3f2;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.14) 25%, transparent 25%, transparent 50%,
                    rgba(255,255,255,.14) 50%, rgba(255,255,255,.14) 75%, transparent 75%),
    linear-gradient(45deg, rgba(255,255,255,.10) 25%, transparent 25%, transparent 50%,
                    rgba(255,255,255,.10) 50%, rgba(255,255,255,.10) 75%, transparent 75%);
  background-size: 46px 46px;
  color: #fff;
  text-align: center;
}
.msg-sec .msg-inner { max-width: 720px; margin-inline: auto; }
.msg-sec .eyebrow {
  color: rgba(255,255,255,.9); letter-spacing: .26em; font-size: 14px; font-weight: 700;
}
.msg-sec h2 {
  margin: 10px 0 34px; color: #fff; letter-spacing: .12em;
  text-shadow: 0 2px 10px rgba(20,80,130,.28);
}
.msg-sec h2::after { display: none; }
.msg-sec .msg-body p {
  margin: 0 0 12px; color: #fff; font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.95; font-weight: 600; text-align: center;
}
.msg-sec .msg-sign {
  margin: 30px 0 0; color: rgba(255,255,255,.95);
  font-size: 16px; font-weight: 800; letter-spacing: .1em; text-align: center;
}
@media (max-width: 980px) {
  /* 本文を左寄せにする共通ルールの例外（中央に揃えたいセクション） */
  .msg-sec .msg-body p, .msg-sec .msg-sign, .msg-sec h2 { text-align: center; }
}


/* =========================================================================
   要望8-I（Sheet2）— 「やたら画像が明るくなる」の対策（スマホ）
   原因：スマホでリンクや写真をタップすると、端末の標準機能で
         半透明の白い覆い（タップハイライト）が一瞬かぶる。
         指を離しても :hover が残る端末では、明るいまま見えてしまう。
   対策：タップハイライトを消し、押している間の明るさ変化も止める。
   ========================================================================= */
a, button, summary, label, [role="button"],
.grade-card, .fc-photo, .appeal-card, .guide-card, .voice-card,
.blog-card, .score-card, .news-item, .article-row, .relcard,
.gallery-grid a, .gallery-grid img, [data-edimg] {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
}
@media (hover: none), (pointer: coarse) {
  /* 押している間・押した後に明るさや透明度が変わらないようにする */
  a:active, a:focus, button:active, summary:active,
  .grade-card:active, .grade-card:focus, .grade-card:hover,
  .fc-photo:active, .fc-photo:focus,
  .appeal-card:active, .guide-card:active, .voice-card:active,
  .blog-card:active, .score-card:active,
  .news-item:active, .article-row:active, .relcard:active,
  .gallery-grid img:active, [data-edimg]:active {
    filter: none !important;
    opacity: 1 !important;
    background-color: inherit;
  }
  /* 画像の拡大も止める（動くと明るさが変わったように見える） */
  .grade-card:hover::before, .grade-card:active::before { transform: scale(1.04) !important; }
  .gallery-grid img:active { transform: none !important; }
  .news-item:hover, .news-item:active,
  .article-row:hover, .article-row:active { background: transparent; padding-inline: 0; }
}


/* =========================================================================
   要望9（Sheet7・Sheet9）— 「通い方・予定表」の注記だけ文字が大きい問題
   ※の行が20pxで、上の箇条書き（15.5px）とそろっていなかったので合わせる
   ========================================================================= */
.cd-note-list + .cd-note,
.cd-table-wrap ~ .cd-note {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-top: 12px;
  text-align: left;
  max-width: 680px;
}
@media (max-width: 980px) {
  .cd-note-list + .cd-note,
  .cd-table-wrap ~ .cd-note { text-align: left; }
}


/* =========================================================================
   要望9（Sheet18）— 塾長メッセージが「白背景に白文字」で読めなかった問題
   原因：.bg-lightblue .section が背景を透明にしていて、水色の帯が消えていた。
   ここで確実に色をつけ直す（!important）。文字は白のまま読めるようにする。
   ========================================================================= */
.bg-lightblue .msg-sec,
.msg-sec {
  background-color: #1d6fa8 !important;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.13) 25%, transparent 25%, transparent 50%,
                    rgba(255,255,255,.13) 50%, rgba(255,255,255,.13) 75%, transparent 75%),
    linear-gradient(45deg, rgba(255,255,255,.09) 25%, transparent 25%, transparent 50%,
                    rgba(255,255,255,.09) 50%, rgba(255,255,255,.09) 75%, transparent 75%) !important;
  background-size: 46px 46px !important;
}
.msg-sec h2, .msg-sec .msg-body p, .msg-sec .msg-sign, .msg-sec .eyebrow {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(10,60,100,.35);
}
.msg-sec h2 { text-shadow: 0 2px 12px rgba(10,60,100,.45); }


/* =========================================================================
   要望9（Sheet41）— 実際の成績表ギャラリー
   「実際の成績表を詳しく見る」を押すと、実物の成績票が並びます。
   紙の書類なので、拡大して読めるように大きめ・タップで別窓表示。
   ========================================================================= */
.seiseki-wrap { max-width: var(--maxw); margin: 22px auto 0; }
.seiseki-note {
  margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.8; text-align: center;
}
.seiseki-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.seiseki-item {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.seiseki-item img {
  display: block; width: 100%; height: auto; background: #f4f7fb;
}
.seiseki-item figcaption {
  padding: 9px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line);
  text-align: left; line-height: 1.6;
}
@media (max-width: 640px) {
  .seiseki-grid { grid-template-columns: 1fr; }
  .seiseki-note { text-align: left; font-size: 14.5px; }
}


/* =========================================================================
   要望9（Sheet2）— スマホで画像が明るくなる件の追い込み
   前回はリンクやカードに個別指定していたが、あとから増やした要素
   （成績表の写真など）に指定が付いていなかった。
   ここでページ全体に一度に効かせる。
   ========================================================================= */
html { -webkit-tap-highlight-color: rgba(0,0,0,0); }
*, *::before, *::after { -webkit-tap-highlight-color: rgba(0,0,0,0); }
@media (hover: none), (pointer: coarse) {
  /* 指を離したあとも「押した見た目」が残らないようにする */
  *:active, *:focus, *:hover {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  img:active, img:hover,
  figure:active, figure:hover,
  [class*="thumb"]:active, [class*="thumb"]:hover,
  [class*="photo"]:active, [class*="photo"]:hover {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* =========================================================================
   塾長紹介の3カード — 折り返しの崩れを直し、見た目を整える
   直前の版はアイコンを絶対配置していたため、文字が2行になると
   2行目だけアイコンの下へ回り込んでしまっていた（「支援」だけ左端に落ちる）。
   アイコンと文章を横並び（flex）にして、2行目も文章の左端にそろえる。
   ========================================================================= */
body[data-page="teacher"] .spec-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}
body[data-page="teacher"] .spec-list li.ic-item {
  display: flex;
  align-items: center;              /* アイコンは縦中央 */
  gap: 18px;
  padding: 24px 26px;               /* 左の余白でアイコン位置を作らない */
  min-height: 112px;
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  line-height: 1.7;
  letter-spacing: .005em;
  text-align: left;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(29,111,168,.14);
  border-left: 6px solid #1d6fa8;
  background:
    radial-gradient(circle at 96% 14%, rgba(255,255,255,.9) 0 54px, transparent 55px),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #eef5ff 100%);
  box-shadow: 0 14px 30px rgba(12,48,88,.09);
  transition: none;
}
/* アイコンは絶対配置をやめて、行の先頭に置く */
body[data-page="teacher"] .spec-list li.ic-item .sp-ic {
  position: static;
  transform: none;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 15px;
  font-size: 23px;
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
  border: 1px solid rgba(29,111,168,.18);
  box-shadow: 0 6px 14px rgba(12,48,88,.10);
}
/* 文章は残りの幅いっぱい。2行目以降も文章の左端にそろう */
body[data-page="teacher"] .spec-list li.ic-item > .sp-ic + * ,
body[data-page="teacher"] .spec-list li.ic-item::first-line { }
body[data-page="teacher"] .spec-list li.ic-item small {
  display: block;
  margin-top: 5px;
  font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.75;
}
body[data-page="teacher"] .spec-list li.ic-item:nth-child(2) { border-left-color: #c89a3c; }
body[data-page="teacher"] .spec-list li.ic-item:nth-child(3) { border-left-color: #2f8f5b; }
body[data-page="teacher"] .spec-list li.ic-item:nth-child(2) .sp-ic {
  background: linear-gradient(135deg, #fff6e6, #ffffff); border-color: rgba(200,154,60,.28);
}
body[data-page="teacher"] .spec-list li.ic-item:nth-child(3) .sp-ic {
  background: linear-gradient(135deg, #ecf9f1, #ffffff); border-color: rgba(47,143,91,.26);
}
body[data-page="teacher"] .spec-list li.ic-item::after { display: none; }

@media (max-width: 640px) {
  body[data-page="teacher"] .spec-list { grid-template-columns: 1fr; }
  body[data-page="teacher"] .spec-list li.ic-item {
    gap: 14px; padding: 18px 18px; min-height: 0;
    border-radius: 16px; font-size: 16px;
  }
  body[data-page="teacher"] .spec-list li.ic-item .sp-ic {
    width: 40px; height: 40px; border-radius: 13px; font-size: 20px;
  }
}


/* =========================================================================
   要望9（Sheet7）追記 — 「通い方・予定表」の箇条書きと注記の文字をそろえる
   箇条書き 16.5px ／ 注記 15.5px で、まだ0.5〜1px差があったため完全に合わせる
   ========================================================================= */
.cd-note-list li,
.cd-note-list + .cd-note,
.cd-table-wrap ~ .cd-note {
  font-size: 16px;
  line-height: 1.85;
}


/* =========================================================================
   要望9 追記2 — 注記まわりの最終調整（お客様チェックの指摘に対応）
   ①「※上記は…」が中学生・高校生ページで2か所に出ていたので、
     上の授業欄からは消し、「通い方・予定表」の下だけに残した（HTML側で対応）
   ② 補足の小さい文字（<small>）が 15.5px と 16.5px で混ざっていたため、
     サイト全体で 16px にそろえる
   ========================================================================= */
small, .note, .cd-note, .breadcrumb,
.info-table small, .spec-list li small, .fc-list small, .principal .tl small,
.cd-bring li small, .shot .cap small {
  font-size: 16px;
  line-height: 1.8;
}

/* =========================================================================
   要望9 追記3 — 見出しがスマホで変なところで改行される件
   画面の細い端末（320px級）や文字を大きく設定している端末で
   「「変わる」きっかけを」が「「変わる」/きっかけを」と割れていたため、
   ・画面幅に合わせて見出しを少し小さくする
   ・日本語の語句の途中では折り返さない（どうしても入らない時だけ折る）
   ========================================================================= */
.section-heading h2,
.page-hero h1,
.cta h1, .cta h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 430px) {
  .section-heading h2 { font-size: clamp(21px, 6.9vw, 28px); }
}

/* 追記3-2 — トップの「小学生・中学生・高校生」も細い画面で「高校/生」と割れていたため、
   左右の飾り線と字間を細い画面だけ詰めて1行に収める */
.hero .eyebrow.eyebrow-lg, .section-heading .eyebrow { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 430px) {
  .hero .eyebrow.eyebrow-lg { font-size: 14px; letter-spacing: .06em; gap: 10px; }
  .hero .eyebrow.eyebrow-lg::before, .hero .eyebrow.eyebrow-lg::after { width: 20px; }
}

/* 追記3-3 — 各ページ下部のCTA見出しも、細い画面で
   「お子さまの「変わる」/ が」と1文字だけ落ちていたため、画面幅に合わせて縮める */
@media (max-width: 430px) {
  .cta h1, .cta h2 { font-size: clamp(20px, 6.6vw, 28px); }
}

/* 要望14：固定ページのフッター写真はスマホで中央に置き、受付文言も2行に見える余白にする */
@media (max-width: 640px) {
  .footer-card .fc-photo {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
    background-position: center center;
  }
  .footer-card:last-child .fc-list li:last-child span {
    display: inline-block;
    line-height: 1.65;
  }
}

/* =========================================================================
   要望12（高校生ページ）— 進学実績の白い箱感を減らし、淡い水色の面で見せる
   スマホでも区切り線が中央に来るよう、カードではなく1枚の面＋仕切りにする。
   ========================================================================= */
body[data-page="koukousei"] .high-results .section-heading {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-top: 0;
}
body[data-page="koukousei"] .high-results .cd-achieve {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.75), transparent 34%),
    linear-gradient(180deg, #eaf5ff 0%, #f4faff 100%);
  border: 1px solid rgba(29,111,168,.10);
  box-shadow: 0 18px 36px rgba(12,48,88,.07);
}
body[data-page="koukousei"] .high-results .cd-grp {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(29,111,168,.14);
}
body[data-page="koukousei"] .high-results .cd-grp:last-child { border-bottom: 0; }
body[data-page="koukousei"] .high-results .cd-grp h3 {
  background: transparent;
  border-left: 0;
  border-bottom-color: rgba(29,111,168,.12);
  padding-left: 0;
  padding-right: 0;
}
body[data-page="koukousei"] .high-results .cd-tags {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 760px) {
  body[data-page="koukousei"] .high-results .cd-grp {
    text-align: left;
    padding-bottom: 4px;
  }
  body[data-page="koukousei"] .high-results .cd-grp h3 {
    justify-content: flex-start;
  }
  body[data-page="koukousei"] .high-results .cd-tags {
    justify-content: flex-start;
  }
  body[data-page="koukousei"] .high-results .cd-tags span {
    text-align: left;
  }
}

/* =========================================================================
   要望10（編集３・H9）— トップの「お知らせ」の背景写真を管理画面から変えられるように
   これまでCSSに直接 gp-whiteboard.jpg を書いていたので差し替えられなかった。
   写真を中の <div class="upd-bg"> に移し、data-edimg で管理画面の対象にする。
   ========================================================================= */
.section.updates { position: relative; background: #06304f; overflow: hidden; }
.section.updates .upd-bg {
  position: absolute; inset: 0; margin: 0; border-radius: 0; height: auto;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  z-index: 0;
}
.section.updates .upd-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(2,40,79,.66), rgba(3,48,92,.72));
}
.section.updates > *:not(.upd-bg) { position: relative; z-index: 1; }

/* AI検索・比較検討で引用しやすい一次情報ブロック */
.ai-answer {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.ai-answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.ai-answer-card {
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(29,111,168,.13);
  background: #fff;
  box-shadow: 0 14px 32px rgba(12,48,88,.08);
}
.ai-answer-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e9f5ff;
  color: #1d6fa8;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.4;
}
.ai-answer-card p {
  margin: 13px 0 0;
  color: #29465f;
  font-weight: 700;
  line-height: 1.85;
}
.ai-answer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.ai-answer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0c3456;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(12,48,88,.13);
}

@media (max-width: 980px) {
  .ai-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ai-answer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ai-answer-card {
    padding: 17px;
    border-radius: 16px;
  }
  .ai-answer-links {
    justify-content: flex-start;
  }
  .ai-answer-links a {
    flex: 1 1 calc(50% - 10px);
    min-width: 136px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 15px;
  }
}

/* 2026-09-17 きむみー先生よりChatwork指示：保護者目線では不要な情報のため、
   ページ下部（フッター直前）へ移動した上で、控えめな見た目に調整。
   完全に削除しないのはAI検索・比較検討時の一次情報として残すため。 */
.ai-answer--tucked {
  background: #f7f8fa;
  padding-top: 40px;
  padding-bottom: 40px;
}
.ai-answer--tucked .section-heading h2 {
  font-size: 18px;
  color: #5b6b7a;
}
.ai-answer--tucked .section-heading .lede {
  font-size: 14px;
  color: #7c8a97;
}
.ai-answer--tucked .ai-answer-card {
  box-shadow: none;
  border: 1px solid rgba(29,111,168,.1);
  background: #fff;
  padding: 16px;
}
.ai-answer--tucked .ai-answer-card span {
  background: #eef1f4;
  color: #5b6b7a;
  font-size: 12px;
}
.ai-answer--tucked .ai-answer-card p {
  font-size: 13px;
  color: #5b6b7a;
  line-height: 1.7;
}
.ai-answer--tucked .ai-answer-links a {
  background: transparent;
  color: #5b6b7a;
  border: 1px solid rgba(91,107,122,.3);
  box-shadow: none;
  font-weight: 700;
  font-size: 13px;
  min-height: 36px;
}

/* アクセシビリティ：濃い背景のカテゴリラベルは白文字に統一する。
   トップの塾長ブログタグだけ旧指定の濃紺文字が残り、暗色同士になっていた。 */
.news-item .cat.blog, .article-row .cat.blog { background: #8a6516; color: #fff; }
.news-item .cat.event, .article-row .cat.event, .cform label .req { background: #c8402f; }
.cform label .opt { color: #465468; }

/* トップのお知らせ：狭いスマホでも日付・タグ・記事名を切らさない。 */
@media (max-width: 640px) {
  .section.updates .article-list {
    width: 100%;
    min-width: 0;
  }
  .section.updates .article-row {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 8px;
    padding: 16px clamp(12px, 4vw, 18px);
  }
  .section.updates .article-row time {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    white-space: nowrap;
    font-size: 14px;
  }
  .section.updates .article-row .cat {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    padding: 5px 8px;
    font-size: 12.5px;
    line-height: 1.35;
  }
  .section.updates .article-row > span:not(.cat) {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.65;
  }
}

/* 狭いスマホ：フッターのカードやロゴがページ全体を横へ押し広げない。 */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-brand,
  .footer-card,
  .f-tag {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .footer-brand .f-logo {
    max-width: 100%;
    box-sizing: border-box;
  }
  .footer-brand img {
    max-width: 100%;
    height: auto;
  }
  .footer-card .fc-btns {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-card .fc-btn {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* お知らせ欄(トップ・一覧)の行に出す、記事のアイキャッチ画像の小さな見本（Notion No.79） */
.article-row .row-thumb, .news-item .row-thumb { display: inline-block; width: 56px; height: 40px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 12px; background: var(--cream); }
@media (max-width: 640px) { .article-row .row-thumb, .news-item .row-thumb { width: 48px; height: 36px; margin-right: 10px; } }
