/* =========================
   基本設定
========================= */
:root {
  --blue: #0754ad;
  --blue-dark: #073a77;
  --green: #1da544;
  --orange: #f28a00;
  --red: #ed5d64;
  --yellow: #e8a900;
  --ink: #1f2937;
  --muted: #667085;
  --line: #d9e2ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(25, 55, 95, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--white);
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.section {
  padding: 76px 24px;
}

.section-soft {
  background: var(--soft);
}

.compact-section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-label {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin: 0;
  color: #142033;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.35;
}

.section-heading h2 span {
  color: var(--blue);
}

.section-heading > p:last-child {
  margin: 12px auto 0;
  color: var(--muted);
}

/* =========================
   共通ボタン
========================= */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button-small {
  min-height: 44px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: none;
}

.button-blue {
  background: var(--blue);
}

.button-green {
  background: var(--green);
}

.button-line {
  background: #12aa47;
}

/* =========================
   ヘッダー
========================= */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 16px rgba(29, 50, 80, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: min(1280px, 100%);
  min-height: 78px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 22px;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: block;
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  border-radius: 50%;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  margin-bottom: 5px;
  font-size: 0.68rem;
}

.brand-text strong {
  font-size: 1.35rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

/* =========================
   スライドヒーロー
========================= */
.hero {
  position: relative;
  min-height: clamp(420px, 52vh, 610px);
  overflow: hidden;
  background: #dce6f1;
}

.hero-slides {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: inherit;
  align-items: center;
  padding: 52px 7vw 70px;
  opacity: 0;
  overflow: hidden;
  transform: translateZ(0);
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 6.2s ease-out;
}

.hero-slide:nth-child(1) .hero-photo { object-position: center 42%; }
.hero-slide:nth-child(2) .hero-photo { object-position: center 48%; }
.hero-slide:nth-child(3) .hero-photo { object-position: center 48%; }
.hero-slide:nth-child(4) .hero-photo { object-position: center 50%; }

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.is-active .hero-photo {
  transform: scale(1);
}


.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 25, 52, 0.82) 0%, rgba(3, 25, 52, 0.58) 38%, rgba(3, 25, 52, 0.12) 72%),
    linear-gradient(0deg, rgba(4, 21, 42, 0.18), rgba(4, 21, 42, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  color: var(--white);
}

.hero-slide .hero-kicker,
.hero-slide h1,
.hero-slide h2,
.hero-slide .hero-description,
.hero-slide .hero-buttons {
  opacity: 0;
  transform: translateX(-28px);
}

.hero-slide.is-active .hero-kicker,
.hero-slide.is-active h1,
.hero-slide.is-active h2,
.hero-slide.is-active .hero-description,
.hero-slide.is-active .hero-buttons {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active h1,
.hero-slide.is-active h2 { transition-delay: 0.08s; }
.hero-slide.is-active .hero-description { transition-delay: 0.18s; }
.hero-slide.is-active .hero-buttons { transition-delay: 0.3s; }

/* 画像が未設定でも確認できる背景 */
.hero-slide:nth-child(1) {
  background-color: #63839f;
}

.hero-slide:nth-child(2) {
  background-color: #688e6d;
}

.hero-slide:nth-child(3) {
  background-color: #b08357;
}

.hero-kicker {
  margin: 0 0 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-slide-aqua .hero-kicker { color: #76ddff; }
.hero-slide-green .hero-kicker { color: #8bed9e; }
.hero-slide-blue .hero-kicker { color: #8ec5ff; }
.hero-slide-orange .hero-kicker { color: #ffc16b; }

.hero-slide-aqua h1,
.hero-slide-aqua h2 { text-shadow: 0 0 24px rgba(54, 198, 238, 0.26), 0 3px 18px rgba(0, 0, 0, 0.28); }
.hero-slide-green h1,
.hero-slide-green h2 { text-shadow: 0 0 24px rgba(52, 211, 112, 0.24), 0 3px 18px rgba(0, 0, 0, 0.28); }
.hero-slide-blue h1,
.hero-slide-blue h2 { text-shadow: 0 0 24px rgba(54, 140, 238, 0.26), 0 3px 18px rgba(0, 0, 0, 0.28); }
.hero-slide-orange h1,
.hero-slide-orange h2 { text-shadow: 0 0 24px rgba(242, 138, 0, 0.28), 0 3px 18px rgba(0, 0, 0, 0.28); }

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.35rem, 4.2vw, 4.3rem);
  white-space: nowrap;
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.2);
}

.hero-description {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.22);
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.38);
}

.hero-arrow-prev {
  left: 18px;
}

.hero-arrow-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--white);
}

/* =========================
   4つの特徴
========================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-card img {
  height: 190px;
  object-fit: cover;
  background: #e8eef5;
}

.feature-number {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 4px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.feature-number-green {
  background: var(--green);
}

.feature-number-orange {
  background: var(--orange);
}

.feature-number-red {
  background: var(--red);
}

.feature-body {
  padding: 22px;
}

.feature-body h3 {
  margin: 0 0 14px;
  color: #172238;
  font-size: 1.08rem;
  line-height: 1.55;
}

.feature-title {
  font-size: 1.22rem !important;
  font-weight: 900;
  line-height: 1.45 !important;
  letter-spacing: 0.01em;
}

.feature-title-blue { color: var(--blue) !important; }
.feature-title-green { color: var(--green) !important; }
.feature-title-orange { color: var(--orange) !important; }
.feature-title-red { color: var(--red) !important; }

.feature-emphasis {
  font-weight: 900;
}

.feature-emphasis-blue { color: var(--blue); }
.feature-emphasis-green { color: var(--green); }
.feature-emphasis-orange { color: var(--orange); }
.feature-emphasis-red { color: var(--red); }

.feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================
   コース
========================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
  box-shadow: 0 18px 34px rgba(25, 55, 95, 0.2);
  transform: translateY(-6px);
}

.course-blue {
  color: var(--blue);
}

.course-green {
  color: var(--green);
}

.course-orange {
  color: var(--orange);
}

.course-red {
  color: var(--red);
}

.course-yellow {
  color: var(--yellow);
}

.course-image {
  height: 185px;
  background-position: center;
  background-size: cover;
}

.course-image-elementary {
  background-image: url("../images/elementary.jpg");
  background-color: #d8e8f6;
}

.course-image-junior {
  background-image: url("../images/junior.jpg");
  background-color: #dcefdc;
}

.course-image-high {
  background-image: url("../images/high.jpg");
  background-color: #f6e3cd;
}

.course-image-qtei {
  background-image: url("../images/qtei.jpg");
  background-color: #f8dadd;
}

.course-image-fee {
  background-image: url("../images/fee.jpg");
  background-color: #f8dadd;
}

.course-image-simulator {
  background-image: url("../images/simulator.jpg");
  background-color: #dcefdc;
}

.course-title {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  font-size: 1.3rem;
  font-weight: 900;
}

.course-title span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: currentColor;
}

.course-body {
  min-height: 134px;
  padding-bottom: 14px;
}

.course-body .course-title {
  min-height: 62px;
  padding-bottom: 8px;
}

.course-description {
  margin: 0;
  padding: 0 17px;
  color: #5f6f80;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.65;
}

.course-title-simulator {
  white-space: nowrap;
  font-size: 1.08rem;
}

/* =========================
   6項目リンク
========================= */
.about-link-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.about-link {
  display: grid;
  min-height: 112px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 19px;
  border: 1px solid #b9d0ec;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(26, 72, 125, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-link:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.about-icon {
  grid-column: 1 / -1;
  font-size: 2.1rem;
}

/* =========================
   下部3カラム
========================= */
.three-column-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-panel {
  padding: 25px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.45rem;
}

.panel-heading a {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

.news-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #e4eaf1;
}

.news-item time {
  color: var(--muted);
  font-size: 0.82rem;
}

.news-tag {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.news-item a {
  font-weight: 700;
}

.blog-theme-item {
  align-items: center;
}

.blog-theme-audience {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.blog-theme-note {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.voice-card {
  padding: 14px 0;
  border-bottom: 1px solid #e4eaf1;
}

.voice-card p {
  margin: 0;
}

.voice-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  text-align: right;
}

.stars {
  color: #ffad0b;
  letter-spacing: 0.1em;
}

.map-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  border-radius: 12px;
  color: #5d708a;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15)),
    repeating-linear-gradient(0deg, #dfe7ef 0, #dfe7ef 2px, transparent 2px, transparent 34px),
    repeating-linear-gradient(90deg, #dfe7ef 0, #dfe7ef 2px, transparent 2px, transparent 34px),
    #edf2f7;
  font-weight: 900;
}

.map-placeholder small {
  font-weight: 500;
}

.access-list {
  margin: 18px 0;
}

.access-list div {
  display: grid;
  grid-template-columns: 78px 1fr;
  padding: 7px 0;
}

.access-list dt {
  color: var(--muted);
  font-weight: 700;
}

.access-list dd {
  margin: 0;
  font-weight: 700;
}

.access-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.access-buttons .button {
  min-height: 46px;
  padding: 10px;
  font-size: 0.88rem;
}

/* =========================
   フッター
========================= */
.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, #073a77, #0754ad);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 42px 24px 25px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.3rem;
}


.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 27px 0;
  font-size: 0.9rem;
}

.copyright {
  margin: 0;
  opacity: 0.75;
  font-size: 0.8rem;
}

/* =========================
   スクロール表示
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   タブレット
========================= */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .main-nav.is-open {
    position: absolute;
    top: 78px;
    right: 18px;
    display: flex;
    width: min(360px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 13px 2px;
    border-bottom: 1px solid #e8edf3;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .three-column-layout {
    grid-template-columns: 1fr 1fr;
  }

  .three-column-layout > :last-child {
    grid-column: 1 / -1;
  }
}

/* =========================
   スマートフォン
========================= */
@media (max-width: 760px) {
  .section {
    padding: 58px 18px;
  }

  .header-inner {
    min-height: 68px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .header-actions {
    display: none;
  }

  .main-nav.is-open {
    top: 68px;
  }

  .hero {
    min-height: 570px;
  }

  .hero-slide {
    align-items: flex-end;
    padding: 70px 24px 78px;
    background-image:
      linear-gradient(0deg, rgba(3, 28, 58, 0.88) 0%, rgba(3, 28, 58, 0.45) 62%, rgba(3, 28, 58, 0.08) 100%),
      var(--hero-image);
  }

  .hero-content {
    width: 100%;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
    white-space: normal;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    top: 42%;
    width: 43px;
    height: 43px;
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }

  .feature-grid,
  .course-grid,
  .about-link-grid,
  .three-column-layout {
    grid-template-columns: 1fr;
  }

  .three-column-layout > :last-child {
    grid-column: auto;
  }

  .feature-card img {
    height: 220px;
  }

  .course-image {
    height: 220px;
  }

  .about-link {
    min-height: 86px;
  }

  .about-icon {
    grid-column: auto;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .access-buttons {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Ver7 写真入り確認版
========================= */
.hero-slide:nth-child(4) {
  background-color: #4c6f8f;
}

.hero-slide-final {
  background-position: center 48%;
}

.hero-slide-final h2 {
  white-space: normal;
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.feature-card img,
.course-image {
  filter: saturate(0.94) contrast(1.02);
}

.course-image {
  position: relative;
}

.course-card:hover .course-image {
  transform: scale(1.035);
}

.course-image {
  transition: transform 0.35s ease;
}


/* =========================
   Ver8：日本の学習風景写真＋スライド別カラー
========================= */
.hero-slide {
  background-position: center center;
}

.hero-slide:nth-child(1) {
  background-position: center 48%;
  background-image:
    linear-gradient(90deg, rgba(5, 33, 58, 0.84) 0%, rgba(5, 33, 58, 0.64) 42%, rgba(5, 33, 58, 0.18) 74%),
    var(--hero-image);
}

.hero-slide:nth-child(2) {
  background-position: center 48%;
  background-image:
    linear-gradient(90deg, rgba(8, 47, 37, 0.86) 0%, rgba(8, 47, 37, 0.62) 42%, rgba(8, 47, 37, 0.16) 74%),
    var(--hero-image);
}

.hero-slide:nth-child(3) {
  background-position: center 54%;
  background-image:
    linear-gradient(90deg, rgba(7, 33, 70, 0.88) 0%, rgba(7, 33, 70, 0.66) 44%, rgba(7, 33, 70, 0.18) 76%),
    var(--hero-image);
}

.hero-slide:nth-child(4) {
  background-position: center 45%;
  background-image:
    linear-gradient(90deg, rgba(62, 35, 12, 0.88) 0%, rgba(62, 35, 12, 0.65) 44%, rgba(62, 35, 12, 0.18) 76%),
    var(--hero-image);
}

.hero h1,
.hero h2 {
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.72),
    0 0 20px rgba(0, 0, 0, 0.38);
}

.hero-kicker,
.hero-description {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
}

.hero-slide-aqua h1,
.hero-slide-aqua h2 { color: #83e7ff; }
.hero-slide-green h1,
.hero-slide-green h2 { color: #8ff0aa; }
.hero-slide-blue h1,
.hero-slide-blue h2 { color: #8dc8ff; }
.hero-slide-orange h1,
.hero-slide-orange h2 { color: #ffb35f; }

@media (max-width: 760px) {
  .hero-slide {
    background-position: 62% center;
  }
  .hero-slide:nth-child(4) {
    background-position: 56% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero-slide,
  .hero-slide .hero-kicker,
  .hero-slide h1,
  .hero-slide h2,
  .hero-slide .hero-description,
  .hero-slide .hero-buttons {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================
   Ver10：中学生専用ページ
========================= */
.subpage-hero { position: relative; min-height: 440px; display: flex; align-items: center; overflow: hidden; }
.subpage-hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 43%; }
.subpage-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,31,62,.88), rgba(3,31,62,.55) 48%, rgba(3,31,62,.12)); }
.subpage-hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 48px)); margin: 0 auto; color: #fff; }
.subpage-kicker { margin: 0 0 8px; color: #8fe9b0; font-weight: 900; letter-spacing: .14em; }
.subpage-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: 1.15; text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.subpage-hero-content > p:not(.subpage-kicker) { margin: 14px 0 25px; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; }
.breadcrumb { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0; display: flex; gap: 10px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--blue); }
.intro-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.intro-photo img { height: 430px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.left-label { text-align: left; }
.intro-copy h2 { margin: 4px 0 22px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.3; }
.intro-copy h2 span { color: var(--green); }
.intro-copy p { color: #475467; }
.benefit-list { display: grid; gap: 10px; margin-top: 24px; }
.benefit-list span { position: relative; padding: 11px 16px 11px 46px; border-radius: 12px; background: #edf9f1; font-weight: 800; }
.benefit-list span::before { position: absolute; left: 16px; content: "✓"; color: var(--green); font-size: 1.2rem; }
.subject-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; margin-bottom: 34px; }
.subject-card { position: relative; padding: 34px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.subject-science { border-top-color: var(--green); }
.subject-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; color: #fff; background: var(--blue); font-size: 1.5rem; font-weight: 900; }
.subject-science .subject-icon { background: var(--green); }
.subject-card h3 { margin: 18px 0 0; font-size: 1.6rem; }
.subject-name { margin: 4px 0 14px; color: var(--blue); font-size: 1.1rem; font-weight: 900; }
.subject-science .subject-name { color: var(--green); }
.schedule-panel, .extra-fee-panel { padding: 32px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.schedule-panel h3, .extra-fee-panel h3 { margin: 0 0 10px; text-align: center; font-size: 1.55rem; }
.table-wrap { overflow-x: auto; }
.course-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.course-table th, .course-table td { padding: 17px 16px; border: 1px solid #dce5ef; text-align: center; }
.course-table thead th { color: #fff; background: var(--blue); }
.course-table tbody th { background: #eef5fd; color: var(--blue-dark); }
.apass-section { background: linear-gradient(180deg, #effbf2 0%, #fff 100%); }
.apass-heading { text-align: center; }
.open-badge { display: inline-block; margin-bottom: 14px; padding: 7px 18px; border-radius: 999px; color: #fff; background: var(--orange); font-weight: 900; }
.apass-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); }
.apass-heading h2 span { color: var(--green); }
.apass-reading { margin: -2px 0 24px; color: var(--muted); font-weight: 800; letter-spacing: .2em; }
.worry-box { max-width: 860px; margin: 28px auto; padding: 24px 30px; border-left: 6px solid var(--orange); border-radius: 0 16px 16px 0; background: #fff8eb; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800; }
.worry-box p { margin: 0; }
.apass-description { max-width: 900px; margin: 0 auto; }
.apass-description strong { color: var(--green); }
.apass-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; max-width: 900px; margin: 28px auto 38px; }
.apass-points span { padding: 16px; border-radius: 14px; text-align: center; color: #176b35; background: #def5e5; font-weight: 900; }
.apass-schedule { max-width: 920px; margin: 0 auto; }
.recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.recommend-card { padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.recommend-grade { display: inline-block; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--green); font-size: .86rem; font-weight: 900; }
.recommend-card h3 { margin: 16px 0 12px; font-size: 1.35rem; }
.plan-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.plan-tags span { padding: 8px 12px; border-radius: 10px; color: var(--blue-dark); background: #eaf3ff; font-weight: 900; }
.plan-tags.compact span { font-size: .86rem; }
.price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; max-width: 900px; margin: 0 auto; }
.price-card { padding: 30px; border: 2px solid #dce8f5; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.price-card-accent { border-color: #a8e4b8; }
.price-card > p { margin: 0; color: var(--muted); font-weight: 800; }
.price-card h3 { margin: 3px 0 20px; font-size: 1.5rem; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding: 14px 0; border-top: 1px solid #e6edf5; }
.price-row strong { color: var(--blue); font-size: 2rem; white-space: nowrap; }
.price-card-accent .price-row strong { color: var(--green); }
.price-row small { font-size: .9rem; }
.simulator-cta { max-width: 900px; margin: 32px auto; padding: 34px; border-radius: 22px; text-align: center; color: #fff; background: linear-gradient(135deg, #0a8e3b, #25b755); box-shadow: var(--shadow); }
.simulator-note { margin: 0 0 10px; }
.simulator-cta h3 { margin: 0 0 22px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.simulator-cta .button { color: var(--green); background: #fff; }
.extra-fee-panel { max-width: 900px; margin: 0 auto; }
.fee-table td { font-weight: 800; }
.trial-section { padding: 78px 24px; color: #fff; background: linear-gradient(135deg, #073a77, #0866c5); }
.trial-inner { width: min(900px,100%); margin: 0 auto; text-align: center; }
.trial-section .section-label { color: #91d9ff; }
.trial-section h2 { margin: 4px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.trial-buttons { display: flex; justify-content: center; gap: 14px; margin-top: 25px; }
@media (max-width: 900px) {
  .intro-layout { grid-template-columns: 1fr; }
  .intro-photo img { height: 360px; }
  .recommend-grid { grid-template-columns: 1fr; }
  .apass-points { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .subpage-hero { min-height: 480px; align-items: flex-end; }
  .subpage-hero > img { object-position: 62% center; }
  .subpage-hero-overlay { background: linear-gradient(0deg, rgba(3,31,62,.92), rgba(3,31,62,.25)); }
  .subpage-hero-content { width: calc(100% - 36px); padding-bottom: 55px; }
  .breadcrumb { width: calc(100% - 36px); }
  .subject-cards, .price-grid { grid-template-columns: 1fr; }
  .schedule-panel, .extra-fee-panel, .subject-card, .recommend-card, .price-card { padding: 23px 19px; }
  .intro-photo img { height: 270px; }
  .trial-buttons { flex-direction: column; }
}


/* =========================
   Ver11：小学生専用ページ
========================= */
.elementary-hero .subpage-kicker { color: #91d9ff; }
.elementary-hero .subpage-hero-overlay { background: linear-gradient(90deg, rgba(3,43,84,.88), rgba(3,57,102,.56) 48%, rgba(3,57,102,.12)); }
.elementary-copy h2 span { color: var(--blue); }
.cycle-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.cycle-step { display: flex; min-height: 155px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px; border-radius: 20px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.cycle-step span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.cycle-step strong { color: var(--blue-dark); line-height: 1.6; }
.cycle-arrow { display: grid; place-items: center; color: var(--green); font-size: 2rem; font-weight: 900; }
.elementary-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.elementary-course-card { position: relative; padding: 30px; border-top: 6px solid var(--blue); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.elementary-course-card .subject-icon { margin-bottom: 10px; }
.elementary-course-card h3 { margin: 0 0 12px; font-size: 1.45rem; }
.elementary-course-card > p { color: #526071; }
.elementary-course-card dl { margin: 22px 0 0; }
.elementary-course-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid #e7edf4; }
.elementary-course-card dt { color: var(--muted); font-weight: 800; }
.elementary-course-card dd { margin: 0; text-align: right; font-weight: 900; }
.free-course { border-color: var(--green); background: linear-gradient(180deg,#f4fff6,#fff); }
.free-course .subject-icon { background: var(--green); }
.special-badge { position: absolute; top: 18px; right: 18px; padding: 7px 12px; border-radius: 999px; color: #fff; background: var(--orange); font-size: .82rem; font-weight: 900; }
.free-price { color: var(--green); font-size: 1.25rem; }
.elementary-english-section { background: linear-gradient(180deg,#eef7ff,#fff); }
.elementary-english-cards .subject-card { border-top-color: #f39a21; }
.english-basic .subject-icon { background: #f39a21; }
.english-advanced .subject-icon { background: #8b5cf6; }
.english-basic .subject-name { color: #e57e00; }
.english-advanced .subject-name { color: #7a3de2; }
.course-time-box { margin-top: 22px; padding: 16px; border-radius: 14px; text-align: center; background: #fff6e8; }
.course-time-box span { display: block; color: #9b5d00; font-size: .9rem; font-weight: 800; }
.course-time-box strong { display: block; margin-top: 3px; font-size: 1.25rem; }
.inquiry-time { background: #f3efff; }
.inquiry-time span { color: #6740a6; }
.elementary-recommend-grid .recommend-card:nth-child(1) { border-top-color: var(--blue); }
.elementary-recommend-grid .recommend-card:nth-child(3) { border-top-color: #f39a21; }
.elementary-price-grid { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 1100px; }
.free-price-card { border-color: #9fdfb2; background: linear-gradient(180deg,#f4fff6,#fff); }
.free-price-card .price-row strong { color: var(--green); }
.fee-note { max-width: 900px; margin: 24px auto 0; padding: 15px 18px; border-radius: 12px; text-align: center; background: #eef5fd; color: var(--blue-dark); font-weight: 800; }
@media (max-width: 1000px) {
  .cycle-grid { grid-template-columns: 1fr; }
  .cycle-arrow { transform: rotate(90deg); }
  .elementary-course-grid, .elementary-price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .elementary-course-card { padding: 24px 20px; }
  .special-badge { position: static; display: inline-block; margin-bottom: 15px; }
}


/* =========================
   Ver12：高校生専用ページ／Q帝個別
========================= */
.highschool-hero .subpage-hero-overlay { background: linear-gradient(90deg, rgba(26,20,50,.92), rgba(46,36,82,.62) 52%, rgba(46,36,82,.12)); }
.highschool-hero .subpage-kicker { color: #ffd29a; }
.highschool-hero-copy { max-width: 850px; }
.highschool-hero-copy > p:not(.subpage-kicker) { max-width: 720px; }
.highschool-hero-copy h2 { max-width: 820px; margin: 10px 0 28px; color: #ffb34d; font-size: clamp(1.55rem,3.2vw,3rem); line-height: 1.35; text-shadow: 0 3px 10px rgba(0,0,0,.45); }
.button-orange { color: #fff; background: linear-gradient(135deg,#f08a20,#ffad3b); box-shadow: 0 10px 25px rgba(240,138,32,.28); }
.highschool-copy h2 span { color: #7a3de2; }
.qtei-section { background: linear-gradient(180deg,#f4f0ff 0%,#fff 100%); }
.qtei-impact { max-width: 960px; margin: 0 auto 38px; padding: 40px; border: 2px solid #d8c9ff; border-radius: 26px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.qtei-impact > p { margin: 0 0 8px; color: #6a4ea0; font-weight: 900; }
.qtei-impact h3 { margin: 0; font-size: clamp(1.7rem,3.4vw,3rem); line-height: 1.45; }
.qtei-impact h3 span { color: #f08a20; font-size: 1.25em; }
.qtei-warning { margin-top: 24px; padding: 16px 20px; border-radius: 14px; color: #9b2f23; background: #fff1ed; font-weight: 900; }
.qtei-flow { display: grid; grid-template-columns: repeat(11,auto); align-items: stretch; justify-content: center; gap: 9px; }
.flow-step { display: flex; width: 132px; min-height: 140px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; border-radius: 18px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.flow-step span { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#6b49bd,#8f68e7); font-size: .95rem; font-weight: 900; }
.flow-step strong { color: #332354; font-size: .9rem; line-height: 1.5; }
.flow-arrow { display: grid; place-items: center; color: #f08a20; font-size: 1.7rem; font-weight: 900; }
.worry-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.worry-card { display: flex; align-items: center; gap: 18px; padding: 25px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.worry-card span { display: grid; flex: 0 0 52px; height: 52px; place-items: center; border-radius: 14px; color: #fff; background: #f08a20; font-weight: 900; }
.worry-card p { margin: 0; color: #27364a; font-weight: 800; }
.qtei-benefit-section { background: linear-gradient(135deg,#271d49,#44326f); color: #fff; }
.qtei-benefit-section .section-label { color: #d6c5ff; }
.qtei-benefit-section .section-heading h2 { color: #fff; }
.qtei-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.qtei-benefit { display: flex; align-items: center; gap: 16px; padding: 25px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.09); }
.qtei-benefit span { display: grid; flex: 0 0 45px; height: 45px; place-items: center; border-radius: 50%; color: #fff; background: #f08a20; font-size: 1.3rem; font-weight: 900; }
.qtei-benefit p { margin: 0; font-weight: 800; line-height: 1.7; }
.highschool-price-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; max-width: 900px; margin: 0 auto; }
.highschool-price-main, .highschool-price-sub { padding: 34px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.highschool-price-main { text-align: center; border-top: 6px solid #f08a20; }
.highschool-price-main p { margin: 0; color: var(--muted); font-weight: 800; }
.highschool-price-main h3 { margin: 5px 0 10px; font-size: 1.55rem; }
.highschool-price-main > strong { color: #f08a20; font-size: clamp(2.5rem,5vw,4rem); }
.highschool-price-main small { font-size: 1rem; }
.highschool-price-sub dl { margin: 0; }
.highschool-price-sub dl div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #e8edf3; }
.highschool-price-sub dt { font-weight: 800; }
.highschool-price-sub dd { margin: 0; color: #6b49bd; font-size: 1.35rem; font-weight: 900; text-align: right; }
.highschool-price-sub p { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.highschool-contact { padding: 86px 24px; color: #fff; background: linear-gradient(135deg,#21183e,#4e3781); }
.highschool-contact-inner { width: min(920px,100%); margin: 0 auto; text-align: center; }
.highschool-contact .section-label { color: #d5c4ff; }
.highschool-contact h2 { margin: 5px 0 12px; font-size: clamp(2rem,4vw,3.3rem); }
.contact-lead { color: #ffbf6b; font-size: clamp(1.15rem,2vw,1.45rem); font-weight: 900; }
@media (max-width: 1200px) { .qtei-flow { grid-template-columns: repeat(3,1fr); max-width: 850px; margin: 0 auto; } .flow-step { width: auto; } .flow-arrow { transform: rotate(90deg); } }
@media (max-width: 820px) { .worry-card-grid,.qtei-benefits,.highschool-price-grid { grid-template-columns: 1fr; } .qtei-impact { padding: 28px 20px; } }
@media (max-width: 760px) { .highschool-hero-copy h2 { font-size: 1.65rem; } .qtei-flow { grid-template-columns: 1fr; } .flow-arrow { min-height: 30px; } .worry-card { padding: 20px; } }

/* ===== Fee page ===== */
.fee-page-hero .subpage-hero-overlay { background: linear-gradient(90deg, rgba(69,20,25,.92), rgba(111,36,42,.62) 52%, rgba(111,36,42,.12)); }
.fee-page-hero .subpage-kicker { color: #ffc6c6; }
.fee-page-hero > img { object-position: center 48%; }

.fee-basic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; max-width: 1000px; margin: 0 auto; }
.fee-basic-card { padding: 32px; border-top: 6px solid #ff6666; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.fee-basic-card:nth-child(2) { border-top-color: var(--blue); }
.fee-card-icon { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 10px; border-radius: 50%; color: #fff; background: #ff6666; font-size: 1.25rem; font-weight: 900; }
.fee-basic-card:nth-child(2) .fee-card-icon { background: var(--blue); }
.fee-basic-card h3 { margin: 0 0 18px; font-size: 1.55rem; }
.fee-basic-card dl { margin: 0; }
.fee-basic-card dl div { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid #e4eaf1; }
.fee-basic-card dt { color: #4d5b6a; font-weight: 800; }
.fee-basic-card dd { margin: 0; color: var(--blue-dark); font-size: 1.25rem; font-weight: 900; text-align: right; }

.fee-grade-sections { display: grid; gap: 28px; max-width: 1080px; margin: 0 auto; }
.fee-grade-card { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.fee-grade-head { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 18px; padding: 20px 28px; color: #fff; background: var(--blue); }
.fee-grade-head > span { font-size: .8rem; font-weight: 900; letter-spacing: .12em; opacity: .86; }
.fee-grade-head h3 { margin: 0; font-size: 1.7rem; }
.fee-grade-head a { color: #fff; font-size: .9rem; font-weight: 800; text-decoration: none; }
.fee-grade-junior .fee-grade-head { background: var(--green); }
.fee-grade-high .fee-grade-head { background: #f08a20; }
.fee-grade-body { padding: 28px; }
.fee-price-highlight { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 2px solid #a8e4b8; border-radius: 18px; background: #f5fff7; }
.fee-price-highlight p { margin: 0; font-weight: 900; }
.fee-price-highlight strong { color: var(--green); font-size: clamp(2rem,4vw,3rem); }
.fee-price-lines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.fee-price-lines > div { display: flex; min-height: 108px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 1px solid #dce6f0; border-radius: 16px; background: #fff; }
.fee-price-lines span { color: #465667; font-weight: 800; }
.fee-price-lines strong { color: var(--blue); font-size: clamp(1.55rem,3vw,2.1rem); white-space: nowrap; }
.fee-price-lines small { font-size: .82rem; }
.fee-price-lines-wide { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 0; }
.fee-price-lines-wide > div { min-height: 135px; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.fee-price-lines-wide strong { color: var(--green); align-self: flex-end; }
.fee-small-note { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.fee-discount-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg,#edf9f0,#f7fff8); border: 2px solid #a8e4b8; }
.fee-discount-box > span { padding: 7px 11px; border-radius: 999px; color: #fff; background: var(--green); font-size: .82rem; font-weight: 900; white-space: nowrap; }
.fee-discount-box h4 { margin: 0 0 4px; font-size: 1.12rem; }
.fee-discount-box p { margin: 0; color: #526071; font-size: .92rem; }
.fee-high-body { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.fee-high-body p { margin: 0 0 8px; color: #526071; }
.fee-high-body strong { font-size: 1.18rem; line-height: 1.7; }

.fee-other-grid { display: grid; grid-template-columns: .75fr 1.65fr; gap: 26px; max-width: 1000px; margin: 0 auto; }
.fee-utility-card, .fee-sibling-card { padding: 32px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.fee-utility-card { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 6px solid var(--blue); }
.fee-utility-card p { margin: 0; font-weight: 900; }
.fee-utility-card strong { margin: 8px 0 2px; color: var(--blue); font-size: clamp(2.7rem,5vw,4.2rem); }
.fee-utility-card small { font-size: 1rem; }
.fee-utility-card span { color: var(--muted); font-size: .9rem; }
.fee-sibling-card { border-top: 6px solid #f08a20; }
.sibling-title span { color: #c86b0a; font-weight: 900; }
.sibling-title h3 { margin: 4px 0 12px; font-size: 1.65rem; }
.fee-sibling-card > p { color: #526071; }
.sibling-example { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 14px; margin-top: 22px; }
.sibling-example > div { padding: 18px; border-radius: 16px; text-align: center; background: #f4f7fb; }
.sibling-example span { display: inline-block; margin-bottom: 4px; color: var(--blue); font-weight: 900; }
.sibling-example p { margin: 0 0 8px; font-size: .9rem; }
.sibling-example strong { display: block; font-size: 1.45rem; }
.sibling-example .discount-child { background: #fff5e9; }
.sibling-example .discount-child span { color: #c86b0a; }
.sibling-example del { display: block; color: #8994a0; font-size: .9rem; }
.sibling-example .discount-child strong { color: #f08a20; font-size: 1.8rem; }

@media (max-width: 900px) {
  .fee-price-lines-wide { grid-template-columns: 1fr; }
  .fee-discount-box { grid-template-columns: 1fr; text-align: center; }
  .fee-discount-box > span { justify-self: center; }
  .fee-discount-box .button { justify-self: center; }
  .fee-other-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .fee-basic-grid, .fee-price-lines { grid-template-columns: 1fr; }
  .fee-grade-head { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 20px; }
  .fee-grade-head > span { grid-column: 1 / -1; }
  .fee-grade-body, .fee-basic-card, .fee-utility-card, .fee-sibling-card { padding: 23px 19px; }
  .fee-price-highlight, .fee-price-lines > div, .fee-high-body { align-items: flex-start; flex-direction: column; }
  .fee-high-body .button { align-self: stretch; text-align: center; }
  .sibling-example { grid-template-columns: 1fr; }
}

/* ===== Ver14 月謝シミュレータ ===== */
.simulator-page-hero img { object-position: center 45%; }
.simulator-wrap { max-width: 1040px; }
.simulator-intro { text-align: center; margin-bottom: 28px; }
.simulator-intro h2 { margin: 12px 0 8px; font-size: clamp(1.55rem, 3vw, 2.25rem); color: var(--navy); }
.simulator-intro p { margin: 6px 0; }
.tax-badge { display: inline-block; padding: 6px 15px; border-radius: 999px; color: #fff; background: var(--orange); font-weight: 800; }
.simulator-caution { font-size: .9rem; color: #667085; }
.simulator-caution a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.tuition-simulator { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow); border: 1px solid #dce7f2; }
.sim-step { padding: 30px; border-bottom: 1px solid #e7edf4; }
.sim-step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sim-step-title span { padding: 6px 12px; border-radius: 999px; background: #e6f6eb; color: var(--green); font-weight: 900; font-size: .82rem; }
.sim-step-title h3 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.grade-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grade-selector button { padding: 17px 10px; border: 2px solid #d7e2ec; border-radius: 14px; background: #fff; color: #344054; font: inherit; font-weight: 800; cursor: pointer; transition: .2s; }
.grade-selector button:hover { border-color: var(--green); transform: translateY(-2px); }
.grade-selector button.active { color: #fff; border-color: var(--green); background: linear-gradient(135deg, #0a8e3b, #25b755); box-shadow: 0 8px 18px rgba(10,142,59,.22); }
.sim-course-list { display: grid; gap: 12px; }
.sim-course-card { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 18px; border: 2px solid #dce5ed; border-radius: 16px; cursor: pointer; transition: .2s; }
.sim-course-card:hover { border-color: #8bc9a1; background: #f8fffa; }
.sim-course-card:has(input:checked) { border-color: var(--green); background: #f0fbf4; box-shadow: 0 5px 14px rgba(10,142,59,.12); }
.sim-course-card input { position: absolute; opacity: 0; pointer-events: none; }
.sim-checkmark { width: 28px; height: 28px; border: 2px solid #b8c5d1; border-radius: 8px; background: #fff; }
.sim-course-card input:checked + .sim-checkmark { border-color: var(--green); background: var(--green); }
.sim-course-card input:checked + .sim-checkmark::after { content: "✓"; display: block; color: #fff; text-align: center; font-weight: 900; line-height: 24px; }
.sim-course-info { display: flex; flex-direction: column; gap: 4px; }
.sim-course-info strong { color: var(--navy); font-size: 1.05rem; }
.sim-course-info small { color: #667085; line-height: 1.55; }
.sim-course-card b { color: var(--blue); white-space: nowrap; }
.grade-note { margin: 16px 0 0; padding: 12px 15px; border-radius: 10px; background: #fff8e8; color: #7a5610; font-size: .93rem; }
.sim-calc-area { padding: 26px 30px; text-align: center; background: #f7fafc; }
.sim-calc-button { min-width: min(100%, 330px); font-size: 1.08rem; border: 0; cursor: pointer; }
.sim-result { padding: 32px; background: linear-gradient(180deg, #f8fbff, #fff); scroll-margin-top: 100px; }
.result-heading { text-align: center; }
.result-heading span { color: var(--blue); font-weight: 900; }
.result-heading h3 { margin: 5px 0 24px; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.result-breakdown { max-width: 680px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid #dce6ef; background: #fff; }
.result-breakdown > div { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e7edf3; }
.result-breakdown > div:last-child { border-bottom: 0; }
.result-breakdown strong { color: var(--navy); font-size: 1.2rem; }
.result-breakdown .result-total { color: #fff; background: linear-gradient(135deg, #075baa, #1686d9); }
.result-breakdown .result-total strong { color: #fff; font-size: clamp(1.8rem, 5vw, 2.55rem); }
.discount-result { max-width: 680px; margin: 18px auto 0; padding: 20px; border: 2px solid #f0b429; border-radius: 16px; text-align: center; background: #fff9e8; }
.discount-result span { display: inline-block; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--orange); font-size: .8rem; font-weight: 900; }
.discount-result h4 { margin: 8px 0 4px; color: #7a4b00; font-size: 1.25rem; }
.discount-result p { margin: 0; color: #805f20; }
.selected-result { max-width: 680px; margin: 22px auto 0; padding: 18px 20px; border-radius: 14px; background: #f3f7fa; }
.selected-result h4 { margin: 0 0 8px; color: var(--navy); }
.selected-result ul { margin: 0; padding-left: 1.3em; }
.selected-result li { margin: 4px 0; }
.result-footnote { max-width: 680px; margin: 14px auto 0; color: #667085; font-size: .86rem; }
.sim-help { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px; border-radius: 22px; background: #eef7ff; }
.sim-help h2 { margin: 5px 0 8px; color: var(--navy); }
.sim-help p { margin: 0; }
@media (max-width: 720px) {
  .grade-selector { grid-template-columns: repeat(2, 1fr); }
  .sim-step, .sim-result { padding: 22px 16px; }
  .sim-course-card { grid-template-columns: 30px 1fr; }
  .sim-course-card b { grid-column: 2; }
  .result-breakdown .result-total { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sim-help { align-items: stretch; flex-direction: column; }
}

/* ===== Ver16: About cards / Teacher page ===== */
.about-link { min-height: 132px; align-items: center; grid-template-columns: 54px 1fr 24px; }
.about-link small { display: block; margin-top: 5px; color: #667085; font-size: .78rem; font-weight: 500; line-height: 1.45; }
.teacher-hero { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; background:#063d77; color:#fff; text-align:center; }
.teacher-hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 48%; }
.teacher-hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(3,31,62,.76),rgba(3,50,88,.58),rgba(3,31,62,.76)); }
.teacher-hero-pattern { position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px), radial-gradient(circle at 75% 65%, #fff 0 2px, transparent 3px); background-size: 55px 55px, 75px 75px; }
.teacher-hero::before, .teacher-hero::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.09); }
.teacher-hero::before { width:360px; height:360px; left:-120px; top:-110px; }
.teacher-hero::after { width:300px; height:300px; right:-80px; bottom:-150px; }
.teacher-hero-inner { position:relative; z-index:1; padding:70px 20px 55px; }
.teacher-hero h1 { margin:6px 0 15px; font-size:clamp(2.5rem,6vw,4.4rem); letter-spacing:.08em; }
.teacher-hero p { margin:0 0 18px; font-size:clamp(1.15rem,3vw,1.75rem); line-height:1.7; }
.teacher-hero p strong { color:#ffe56a; font-size:1.25em; }
.teacher-hero small { display:block; line-height:1.8; opacity:.9; }
.teacher-intro-section { overflow:hidden; }
.teacher-profile { display:grid; grid-template-columns:minmax(250px,360px) 1fr; gap:44px; align-items:start; max-width:1050px; margin:0 auto 34px; }
.teacher-profile-reverse .teacher-photo-column { order:2; }
.teacher-profile-reverse .teacher-content-column { order:1; }
.teacher-photo-placeholder { aspect-ratio:4/5; overflow:hidden; border-radius:28px 28px 0 0; background:#e6f3ff; border:2px solid #68a8db; }
.teacher-photo-placeholder img { width:100%; height:100%; display:block; object-fit:cover; object-position:center; }
.teacher-photo-placeholder span { font-weight:900; letter-spacing:.18em; font-size:1.4rem; }
.teacher-photo-placeholder p { margin:10px 0 0; line-height:1.5; }
.teacher-photo-placeholder-green { background:#e8f8ee; border-color:#69b889; }
.teacher-name-card { padding:22px; border-radius:0 0 28px 28px; text-align:center; color:#fff; background:linear-gradient(135deg,#075baa,#1486d6); box-shadow:0 14px 30px rgba(7,91,170,.18); }
.teacher-name-card span { display:inline-block; padding:3px 12px; border-radius:999px; background:rgba(255,255,255,.2); font-size:.85rem; font-weight:900; }
.teacher-name-card h2 { margin:8px 0 2px; font-size:1.8rem; letter-spacing:.08em; }
.teacher-name-card p { margin:0; opacity:.86; }
.teacher-name-card-green { background:linear-gradient(135deg,#17834c,#38a86c); box-shadow:0 14px 30px rgba(23,131,76,.18); }
.teacher-subjects { padding:26px 28px; border:1px solid #dce7f0; border-radius:20px; background:#fff; box-shadow:0 10px 30px rgba(34,63,91,.07); }
.teacher-subjects h3 { margin:0 0 12px; color:var(--navy); }
.subject-row { display:grid; grid-template-columns:90px 1fr; gap:14px; padding:12px 0; border-top:1px solid #e7edf3; }
.subject-row strong { color:var(--blue); }
.teacher-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.teacher-facts > div { display:flex; gap:12px; align-items:center; min-height:92px; padding:15px; border-radius:16px; background:#f5f9fc; }
.teacher-facts > div > span { font-size:1.7rem; }
.teacher-facts p { margin:0; }
.teacher-facts small { display:block; color:#6b7785; margin-bottom:3px; }
.teacher-facts strong { color:var(--navy); line-height:1.45; }
.teacher-message-grid { display:grid; grid-template-columns:1.65fr .75fr; gap:22px; max-width:1050px; margin:0 auto; }
.teacher-long-message { position:relative; padding:35px 38px; border-radius:24px; background:#eef7ff; border-left:7px solid var(--blue); }
.teacher-long-message-green { background:#eefaf3; border-left-color:#2f9b60; }
.message-label { display:inline-block; margin:0 0 8px !important; padding:4px 12px; border-radius:999px; background:#fff; color:var(--blue); font-weight:900; font-size:.82rem; }
.teacher-long-message-green .message-label { color:#248353; }
.teacher-long-message h3 { margin:5px 0 20px; color:var(--navy); font-size:clamp(1.35rem,3vw,2rem); line-height:1.5; }
.teacher-long-message p { line-height:2; }
.teacher-long-message em { font-style:normal; color:#135b98; font-weight:700; }
.student-message { display:flex; flex-direction:column; justify-content:center; padding:28px; border-radius:24px; color:#fff; background:linear-gradient(145deg,#075baa,#1688d9); box-shadow:0 18px 34px rgba(7,91,170,.18); }
.student-message-green { background:linear-gradient(145deg,#19834d,#38a86d); box-shadow:0 18px 34px rgba(25,131,77,.18); }
.student-message > span { font-weight:900; color:#ffe56a; }
.student-message blockquote { margin:18px 0 0; font-size:1.08rem; font-weight:700; line-height:1.8; }
.teacher-promise-section { padding:70px 20px; color:#fff; text-align:center; background:linear-gradient(135deg,#063c73,#075eaa); }
.teacher-promise-section .section-label { color:#ffe56a; }
.teacher-promise-section h2 { margin:5px 0 32px; font-size:clamp(1.8rem,4vw,2.8rem); }
.promise-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.promise-grid div { padding:25px 12px; border-radius:18px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); }
.promise-grid span { display:block; margin-bottom:10px; color:#ffe56a; font-size:.8rem; font-weight:900; }
.promise-grid strong { line-height:1.65; }
@media (max-width: 860px) {
  .teacher-profile, .teacher-message-grid { grid-template-columns:1fr; }
  .teacher-photo-column { max-width:420px; width:100%; margin:0 auto; }
  .teacher-profile-reverse .teacher-photo-column, .teacher-profile-reverse .teacher-content-column { order:initial; }
  .promise-grid { grid-template-columns:repeat(2,1fr); }
  .promise-grid div:last-child { grid-column:1/-1; }
}
@media (max-width: 560px) {
  .teacher-hero { min-height:330px; }
  .teacher-profile { gap:25px; }
  .teacher-facts { grid-template-columns:1fr; }
  .teacher-long-message, .student-message { padding:25px 20px; }
  .promise-grid { grid-template-columns:1fr; }
  .promise-grid div:last-child { grid-column:auto; }
  .about-link { min-height:110px; }
}


/* ===== Ver17: Teacher balance / Results page ===== */
.teacher-photo-column-fixed { width:100%; max-width:340px; justify-self:center; }
.teacher-photo-column-fixed .teacher-photo-placeholder { width:100%; height:425px; aspect-ratio:auto; }
.teacher-photo-column-fixed .teacher-name-card { min-height:132px; display:flex; flex-direction:column; align-items:center; justify-content:center; }

.results-hero { position:relative; min-height:390px; display:grid; place-items:center; overflow:hidden; color:#fff; text-align:center; background:linear-gradient(135deg,#063c73,#087cc7 58%,#0d9b74); }
.results-hero::before,.results-hero::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.09); }
.results-hero::before { width:420px; height:420px; top:-190px; left:-120px; }
.results-hero::after { width:340px; height:340px; right:-80px; bottom:-190px; }
.results-hero-inner { position:relative; z-index:1; padding:70px 20px 55px; }
.results-hero h1 { margin:6px 0 18px; font-size:clamp(2.2rem,5.5vw,4.1rem); letter-spacing:.05em; }
.results-hero p { margin:0; font-size:clamp(1.1rem,3vw,1.7rem); line-height:1.75; }
.results-hero p strong { color:#ffe56a; font-size:1.18em; }
.results-summary-section { background:linear-gradient(180deg,#fff,#f6fbff); }
.results-number-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.results-number-grid article { min-height:210px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px; border-radius:22px; text-align:center; background:#fff; border:1px solid #dce8f1; box-shadow:var(--shadow); }
.results-number-grid article:nth-child(1),.results-number-grid article:nth-child(2) { border-top:6px solid var(--orange); }
.results-number-grid article:nth-child(3),.results-number-grid article:nth-child(4) { border-top:6px solid var(--blue); }
.results-number-grid article > span { margin-bottom:12px; color:#68778a; font-weight:800; }
.results-number-grid strong { display:flex; flex-direction:column; color:var(--navy); font-size:clamp(1.55rem,3vw,2.35rem); line-height:1.25; }
.results-number-grid strong b { margin-bottom:2px; color:var(--orange); font-size:.45em; }
.results-number-grid strong small { margin-top:6px; color:var(--blue); font-size:.58em; }
.growth-story-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; max-width:980px; margin:0 auto; }
.growth-story-card { padding:30px; border-radius:25px; background:#fff; border:1px solid #dce7f0; box-shadow:0 16px 38px rgba(28,65,100,.1); }
.growth-story-head { display:flex; align-items:center; justify-content:space-between; gap:15px; padding-bottom:16px; border-bottom:1px solid #e4ebf1; }
.growth-story-head span { padding:7px 15px; border-radius:999px; color:#fff; background:var(--blue); font-size:1.1rem; font-weight:900; }
.growth-story-head p { margin:0; color:#536579; font-weight:800; }
.score-label { margin:22px 0 10px; text-align:center; color:#68778a; font-weight:800; }
.score-flow { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; }
.score-flow > div { padding:18px 10px; border-radius:18px; text-align:center; background:#f3f8fc; }
.score-flow > div:last-child { background:#eef8ff; border:2px solid #75b8e9; }
.score-flow small { display:block; margin-bottom:4px; color:#68778a; font-weight:800; }
.score-flow strong { color:var(--navy); font-size:clamp(2rem,5vw,3.1rem); }
.score-flow strong em { font-style:normal; font-size:.4em; }
.score-flow > span { color:var(--orange); font-size:2rem; font-weight:900; }
.score-up { margin:18px 0 0; text-align:center; color:var(--orange); font-size:clamp(1.55rem,4vw,2.2rem); font-weight:900; }
.results-note { margin:22px auto 0; text-align:center; color:#68778a; font-size:.9rem; }
.recent-results { max-width:980px; margin:46px auto 0; padding:30px; border-radius:22px; background:linear-gradient(135deg,#073e79,#087bc6); color:#fff; }
.recent-results h3 { margin:0 0 20px; text-align:center; font-size:clamp(1.35rem,3vw,1.9rem); }
.recent-score-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.recent-score-grid div { display:grid; grid-template-columns:95px 1fr auto; align-items:center; gap:12px; padding:16px; border-radius:14px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); }
.recent-score-grid span { color:#d9eeff; font-weight:800; }
.recent-score-grid strong { font-size:1.1rem; }
.recent-score-grid strong b { color:#ffe56a; }
.recent-score-grid em { color:#ffe56a; font-style:normal; font-weight:900; }
.recent-results > p { margin:17px 0 0; text-align:center; font-weight:900; }
.subject-record-section { background:#fff; }
.subject-record-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.subject-record-grid article { padding:24px 14px; border-radius:20px; text-align:center; background:#f5f9fc; border-top:6px solid var(--blue); }
.subject-record-grid article:nth-child(even) { border-top-color:var(--green); }
.subject-record-grid span { display:inline-block; min-width:65px; padding:6px 14px; border-radius:999px; color:#064b8c !important; background:#dceeff !important; border:1px solid #9fc9e8; font-weight:900; text-shadow:none; }
.subject-record-grid article:nth-child(even) span { color:#08733d !important; background:#dff5e8 !important; border-color:#9bd5b4; }
.subject-record-grid p { margin:17px 0 8px; color:var(--navy); font-size:1.1rem; font-weight:900; }
.subject-record-grid p b { color:var(--orange); }
.subject-record-grid strong { color:var(--orange); font-size:1.55rem; }
.deviation-section { color:#fff; background:linear-gradient(135deg,#183c70,#352b69); }
.deviation-section .section-label { color:#ffe56a; }
.deviation-section .section-heading h2,.deviation-section .section-heading p { color:#fff; }
.deviation-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.deviation-grid div { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:7px; padding:22px 12px 15px; border-radius:18px; text-align:center; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); }
.deviation-grid span,.deviation-grid strong { font-size:2rem; }
.deviation-grid strong { color:#ffe56a; }
.deviation-grid b { color:#8bd7ff; font-size:1.5rem; }
.deviation-grid em { grid-column:1/-1; color:#ffe56a; font-style:normal; font-weight:900; }
.pass-results-section { background:#f6f9fc; }
.pass-column-grid { display:grid; grid-template-columns:1.35fr .9fr; gap:26px; align-items:start; }
.pass-column { overflow:hidden; border-radius:24px; background:#fff; box-shadow:var(--shadow); }
.pass-column-title { display:flex; align-items:center; gap:14px; padding:22px 25px; color:#fff; background:linear-gradient(135deg,#075baa,#1386d4); }
.private-school .pass-column-title { background:linear-gradient(135deg,#19834d,#38a86d); }
.pass-column-title span { display:grid; width:54px; height:54px; place-items:center; border-radius:50%; background:rgba(255,255,255,.18); font-weight:900; }
.pass-column-title h3 { margin:0; font-size:1.35rem; }
.school-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:22px; }
.school-list > div { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:58px; padding:13px 15px; border-radius:13px; background:#f3f8fc; }
.school-list strong { color:var(--navy); }
.school-list span { flex:0 0 auto; padding:4px 9px; border-radius:999px; color:#fff; background:var(--blue); font-size:.82rem; font-weight:900; }
.school-list .featured-school { background:#fff6df; border:2px solid #f1bd4b; }
.school-list .featured-school span { background:var(--orange); }
.private-school-list { display:grid; gap:12px; padding:22px; }
.private-school-list article { padding:18px; border-radius:14px; background:#f1faf5; border-left:5px solid var(--green); }
.private-school-list strong { color:var(--navy); font-size:1.08rem; }
.private-school-list p { margin:5px 0 0; color:#566a5d; }
.school-more { margin:0; padding:0 25px 24px; text-align:right; color:#68778a; font-weight:900; }
.results-message-section { padding:75px 20px; text-align:center; color:#fff; background:linear-gradient(135deg,#073e79,#076db5); }
.results-message-section .section-label { color:#ffe56a; }
.results-message-section h2 { margin:5px 0 20px; font-size:clamp(1.8rem,4vw,2.8rem); line-height:1.55; }
.results-message-section h2 strong { color:#ffe56a; }
.results-message-section p { margin:10px 0; line-height:1.9; }
@media (max-width: 980px) {
  .results-number-grid { grid-template-columns:repeat(2,1fr); }
  .subject-record-grid,.deviation-grid { grid-template-columns:repeat(3,1fr); }
  .pass-column-grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .teacher-photo-column-fixed .teacher-photo-placeholder { height:auto; aspect-ratio:4/5; }
  .growth-story-grid,.recent-score-grid { grid-template-columns:1fr; }
  .recent-score-grid div { grid-template-columns:80px 1fr; }
  .recent-score-grid em { grid-column:2; }
  .subject-record-grid,.deviation-grid { grid-template-columns:repeat(2,1fr); }
  .school-list { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .results-hero { min-height:335px; }
  .results-number-grid,.subject-record-grid,.deviation-grid { grid-template-columns:1fr; }
  .growth-story-card,.recent-results { padding:22px 16px; }
  .growth-story-head { align-items:flex-start; flex-direction:column; }
  .score-flow { gap:7px; }
  .score-flow > div { padding:15px 6px; }
  .score-flow > span { font-size:1.5rem; }
}


/* =========================================================
   Ver19 卒業生の声
========================================================= */
.voice-hero { position:relative; min-height:410px; display:grid; place-items:center; overflow:hidden; background:#102d55; }
.voice-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 48%; }
.voice-hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,35,74,.88),rgba(8,35,74,.56) 52%,rgba(8,35,74,.2)); }
.voice-hero-inner { position:relative; z-index:1; width:min(1120px,calc(100% - 40px)); color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.35); }
.voice-hero-inner h1 { margin:7px 0 16px; font-size:clamp(2.2rem,5vw,4.2rem); letter-spacing:.05em; }
.voice-hero-inner p:last-child { margin:0; font-size:clamp(1.05rem,2.3vw,1.45rem); line-height:1.8; }
.voice-hero-inner strong { color:#ffe56a; }
.voice-intro-section { padding-bottom:38px; }
.voice-intro-section .section-heading h2 span { color:var(--blue); }
.voice-term-guide { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px 16px; margin:26px auto 0; padding:18px 22px; max-width:900px; background:#eff7ff; border:1px solid #cfe6fb; border-radius:16px; color:#52657a; font-size:.92rem; }
.voice-term { position:relative; display:inline-block; color:#0668b7; font-weight:800; border-bottom:2px dotted #39a0e5; cursor:help; outline:none; }
.tooltip-box { position:absolute; z-index:30; left:50%; bottom:calc(100% + 12px); width:280px; padding:13px 15px; border-radius:11px; background:#102d55; color:#fff; font-size:.82rem; font-weight:500; line-height:1.65; box-shadow:0 12px 28px rgba(7,31,62,.28); opacity:0; visibility:hidden; transform:translate(-50%,7px); transition:.2s ease; pointer-events:none; }
.tooltip-box::after { content:""; position:absolute; left:50%; top:100%; transform:translateX(-50%); border:7px solid transparent; border-top-color:#102d55; }
.has-tooltip:hover .tooltip-box,.has-tooltip:focus .tooltip-box,.has-tooltip:focus-within .tooltip-box { opacity:1; visibility:visible; transform:translate(-50%,0); }
.voice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.voice-card { position:relative; padding:27px 28px 25px; background:#fff; border:1px solid #dce7f3; border-radius:18px; box-shadow:0 9px 25px rgba(26,62,105,.08); transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; overflow:visible; }
.voice-card::before { content:"“"; position:absolute; right:18px; top:4px; color:#e5f1fb; font-family:Georgia,serif; font-size:5rem; line-height:1; font-weight:700; }
.voice-card:hover { transform:translateY(-5px); box-shadow:0 16px 36px rgba(26,62,105,.14); border-color:#9dc9ec; }
.voice-card-featured { border:2px solid #f4b53f; background:linear-gradient(180deg,#fffdf7,#fff); }
.voice-card-featured::after { content:"D判定から合格"; position:absolute; right:18px; top:17px; padding:5px 10px; border-radius:999px; background:#fff0bd; color:#8a5b00; font-size:.75rem; font-weight:800; }
.voice-card-head { position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:9px; padding-right:40px; }
.voice-card-head h3 { margin:0; color:var(--navy); font-size:1.24rem; line-height:1.45; }
.voice-gender { display:inline-flex; align-items:center; justify-content:center; min-width:42px; padding:5px 9px; border-radius:999px; background:#ffe8f0; color:#b93d6b; font-size:.75rem; font-weight:800; }
.voice-gender-boy { background:#e3f2ff; color:#176fac; }
.voice-entry { display:inline-block; margin:13px 0 2px !important; padding:6px 10px; border-radius:8px; background:#f1f6fb; color:#405b77 !important; font-size:.84rem !important; font-weight:700; }
.voice-card > p { position:relative; z-index:1; margin:14px 0 0; color:#435467; line-height:1.9; font-size:.96rem; }
.voice-note { margin:30px 0 0; color:#6b7785; text-align:center; font-size:.85rem; }
.voice-message-section { padding:70px 20px; background:linear-gradient(135deg,#123f72,#076aaf); color:#fff; text-align:center; }
.voice-message-section .section-label { color:#ffe56a; }
.voice-message-section h2 { margin:5px 0 18px; font-size:clamp(1.7rem,4vw,2.7rem); line-height:1.55; }
.voice-message-section h2 strong { color:#ffe56a; }
.voice-message-section p:last-child { margin:0; line-height:1.9; }
@media (max-width:800px) {
  .voice-hero { min-height:350px; }
  .voice-grid { grid-template-columns:1fr; }
  .voice-card-featured::after { position:static; display:inline-block; margin-top:12px; }
}
@media (max-width:520px) {
  .voice-hero { min-height:320px; }
  .voice-hero-inner { width:min(100% - 28px,1120px); }
  .voice-term-guide { align-items:flex-start; flex-direction:column; }
  .voice-card { padding:23px 18px 22px; }
  .voice-card-head { padding-right:25px; }
  .tooltip-box { position:fixed; left:16px; right:16px; bottom:18px; width:auto; transform:translateY(8px); }
  .has-tooltip:hover .tooltip-box,.has-tooltip:focus .tooltip-box,.has-tooltip:focus-within .tooltip-box { transform:translateY(0); }
  .tooltip-box::after { display:none; }
}

/* =========================================================
   Ver20 当塾でよくあるQ&A
========================================================= */
.qa-hero { position:relative; min-height:390px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#063e78 0%,#0875b9 62%,#1ba6cf 100%); }
.qa-hero::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 78% 28%,rgba(255,255,255,.16),transparent 25%),linear-gradient(90deg,rgba(4,35,72,.3),transparent); }
.qa-hero-inner { position:relative; z-index:2; width:min(1120px,calc(100% - 40px)); color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.2); }
.qa-hero-inner h1 { margin:7px 0 16px; font-size:clamp(2.1rem,5vw,4rem); letter-spacing:.04em; }
.qa-hero-inner p:last-child { margin:0; font-size:clamp(1.05rem,2.3vw,1.4rem); line-height:1.8; }
.qa-hero-inner strong { color:#ffe56a; }
.qa-hero-decoration { position:absolute; z-index:1; display:grid; place-items:center; border:2px solid rgba(255,255,255,.26); border-radius:50%; color:rgba(255,255,255,.28); font-weight:900; line-height:1; }
.qa-mark-1 { right:9%; top:13%; width:145px; height:145px; font-size:6.5rem; transform:rotate(9deg); }
.qa-mark-2 { right:25%; bottom:-28px; width:110px; height:110px; font-size:4rem; transform:rotate(-13deg); }
.qa-mark-3 { right:2%; bottom:17%; width:78px; height:78px; font-size:2.7rem; transform:rotate(12deg); }
.qa-intro-section { padding-bottom:38px; }
.qa-intro-section .section-heading h2 span { color:var(--blue); }
.qa-container { max-width:980px; }
.qa-category { margin-bottom:38px; }
.qa-category-title { display:flex; align-items:center; gap:15px; margin:0 0 15px; }
.qa-category-title > span { display:grid; place-items:center; width:54px; height:54px; flex:0 0 auto; border-radius:16px; background:#fff; box-shadow:0 7px 20px rgba(24,67,110,.1); font-size:1.6rem; }
.qa-category-title p { margin:0 0 2px; color:#1484c1; font-size:.74rem; font-weight:900; letter-spacing:.13em; }
.qa-category-title h2 { margin:0; color:var(--navy); font-size:clamp(1.25rem,2.5vw,1.65rem); }
.qa-list { display:grid; gap:12px; }
.qa-item { background:#fff; border:1px solid #dce8f3; border-radius:15px; box-shadow:0 7px 20px rgba(29,67,108,.07); overflow:hidden; transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.qa-item:hover { transform:translateY(-2px); border-color:#9dc9ea; box-shadow:0 11px 27px rgba(29,67,108,.11); }
.qa-item[open] { border-color:#79bce6; box-shadow:0 12px 30px rgba(19,94,149,.12); }
.qa-item summary { position:relative; display:grid; grid-template-columns:38px 1fr 26px; align-items:center; gap:12px; padding:19px 21px; color:#173c64; font-weight:800; line-height:1.55; cursor:pointer; list-style:none; }
.qa-item summary::-webkit-details-marker { display:none; }
.qa-q,.qa-a { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; font-family:Arial,sans-serif; font-weight:900; }
.qa-q { background:linear-gradient(135deg,#0972b8,#10a1cf); }
.qa-a { flex:0 0 auto; background:linear-gradient(135deg,#f39b22,#f6bc39); }
.qa-toggle { position:relative; width:24px; height:24px; border-radius:50%; background:#edf6fc; }
.qa-toggle::before,.qa-toggle::after { content:""; position:absolute; left:50%; top:50%; width:11px; height:2px; background:#1682be; transform:translate(-50%,-50%); border-radius:2px; transition:transform .22s ease; }
.qa-toggle::after { transform:translate(-50%,-50%) rotate(90deg); }
.qa-item[open] .qa-toggle::after { transform:translate(-50%,-50%) rotate(0deg); }
.qa-answer { display:flex; gap:14px; padding:0 22px 21px 21px; color:#435568; animation:qaFade .24s ease; }
.qa-answer p { margin:3px 0 0; line-height:1.9; }
@keyframes qaFade { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
.qa-contact-note { display:flex; align-items:center; gap:18px; margin-top:48px; padding:27px 30px; border-radius:18px; background:linear-gradient(135deg,#fff7db,#fffdf4); border:1px solid #f3d98c; box-shadow:0 9px 24px rgba(119,86,10,.07); }
.qa-contact-note > span { font-size:2.3rem; }
.qa-contact-note h2 { margin:0 0 6px; color:#715006; font-size:1.25rem; }
.qa-contact-note p { margin:0; color:#6c6250; line-height:1.7; }
@media (max-width:720px) {
  .qa-hero { min-height:340px; }
  .qa-mark-1 { right:-35px; width:125px; height:125px; }
  .qa-mark-2 { right:18%; }
  .qa-item summary { grid-template-columns:34px 1fr 24px; gap:10px; padding:17px 15px; font-size:.94rem; }
  .qa-answer { padding:0 16px 18px 15px; }
}
@media (max-width:520px) {
  .qa-hero { min-height:310px; }
  .qa-hero-inner { width:min(100% - 28px,1120px); }
  .qa-category { margin-bottom:32px; }
  .qa-category-title > span { width:46px; height:46px; border-radius:13px; font-size:1.35rem; }
  .qa-contact-note { align-items:flex-start; padding:22px 18px; }
}


/* =========================================================
   Ver21 最下段・お問い合わせ
========================================================= */
.footer-info-layout { align-items:stretch; }
.footer-info-layout .info-panel { display:flex; flex-direction:column; min-height:100%; }
.panel-lead { margin:0 0 18px; color:#596b7d; line-height:1.75; font-size:.92rem; }
.panel-bottom-link { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding:13px 15px; border-radius:10px; background:#eef7ff; color:#0874b6; font-weight:800; text-decoration:none; }
.panel-bottom-link:hover { background:#dff1ff; }
.contact-recommend { display:inline-block; align-self:flex-start; margin:0 0 12px; padding:6px 11px; border-radius:999px; background:#fff0cf; color:#8a5a00; font-size:.8rem; font-weight:900; }
.footer-phone { display:block; margin:2px 0 12px; padding:15px 14px; border-radius:14px; background:linear-gradient(135deg,#075fa7,#0d87c8); color:#fff; text-decoration:none; text-align:center; box-shadow:0 8px 20px rgba(5,92,157,.2); }
.footer-phone small { display:block; margin-bottom:2px; font-weight:800; letter-spacing:.14em; opacity:.88; }
.footer-phone strong { display:block; font-size:clamp(1.55rem,2.7vw,2rem); letter-spacing:.045em; }
.contact-hours { margin:0 0 12px; color:#31495f; text-align:center; line-height:1.75; }
.contact-copy { margin:0 0 15px; color:#5e6c7a; line-height:1.7; font-size:.9rem; }
.button-orange { background:linear-gradient(135deg,#f08c19,#f7ae2f); color:#fff; box-shadow:0 8px 18px rgba(235,138,22,.22); }
.button-orange:hover { transform:translateY(-2px); filter:brightness(1.03); }
.footer-trial-button { width:100%; text-align:center; }
.mail-mini-box { margin-top:15px; padding:14px; border:1px solid #dce7f0; border-radius:12px; background:#f8fbfd; }
.mail-mini-box p { margin:0 0 5px; color:#4b5f72; font-size:.83rem; }
.mail-mini-box a { color:#0874b6; font-weight:800; overflow-wrap:anywhere; }
.map-embed { height:190px; margin-bottom:16px; border-radius:13px; overflow:hidden; background:#e8eef4; }
.map-embed iframe { width:100%; height:100%; border:0; }
.calendar-note { margin:auto 0 0; padding:13px 14px; border-radius:10px; background:#fff9e8; border:1px solid #f0dca1; color:#6c6043; line-height:1.65; font-size:.8rem; }

.contact-hero { min-height:360px; display:grid; place-items:center; background-image:linear-gradient(90deg,rgba(3,42,83,.94) 0%,rgba(4,67,116,.82) 38%,rgba(5,87,139,.44) 68%,rgba(5,87,139,.14) 100%),url("../images/about-contact.jpg"); background-size:cover; background-position:center top; color:#fff; }
.contact-hero-inner { width:min(1120px,calc(100% - 40px)); text-shadow:0 2px 12px rgba(0,0,0,.2); }
.contact-hero h1 { margin:6px 0 16px; font-size:clamp(2.1rem,5vw,4rem); }
.contact-hero p:last-child { margin:0; font-size:clamp(1.04rem,2.2vw,1.38rem); line-height:1.8; }
.contact-hero strong { color:#ffe56a; }
.contact-page-grid { display:grid; grid-template-columns:1.12fr .88fr; gap:26px; align-items:start; }
.contact-main-card,.contact-mail-card { padding:32px; border-radius:20px; background:#fff; border:1px solid #dbe7f1; box-shadow:0 12px 32px rgba(23,59,98,.1); }
.contact-main-card { border-top:5px solid #0c79bb; }
.contact-mail-card { border-top:5px solid #f2a32a; }
.contact-card-label { margin:0 0 5px; color:#1384c0; font-size:.76rem; font-weight:900; letter-spacing:.15em; }
.contact-main-card h2,.contact-mail-card h2 { margin:0 0 13px; color:#143a61; font-size:clamp(1.45rem,3vw,2rem); }
.contact-card-intro,.contact-mail-card > p { color:#536679; line-height:1.85; }
.contact-big-phone { display:block; margin:24px 0 20px; padding:20px; border-radius:16px; background:linear-gradient(135deg,#075fa7,#0e8bce); color:#fff; text-decoration:none; text-align:center; box-shadow:0 12px 28px rgba(4,96,164,.24); }
.contact-big-phone small { display:block; margin-bottom:4px; font-weight:800; }
.contact-big-phone strong { display:block; font-size:clamp(2rem,5vw,3.2rem); letter-spacing:.05em; }
.contact-detail-list { display:grid; gap:9px; margin:0; }
.contact-detail-list div { display:grid; grid-template-columns:95px 1fr; gap:12px; padding:12px 14px; border-radius:10px; background:#f3f8fc; }
.contact-detail-list dt { color:#24618e; font-weight:900; }
.contact-detail-list dd { margin:0; color:#344b60; }
.contact-mail-link { display:block; margin:22px 0; padding:17px 15px; border-radius:13px; background:#fff7e7; border:1px solid #f2d59c; color:#9b6300; font-weight:900; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.mail-guide { padding:16px; border-radius:12px; background:#f7fafc; }
.mail-guide h3 { margin:0 0 7px; color:#294e70; font-size:1rem; }
.mail-guide p { margin:0; color:#5a6875; line-height:1.75; }
.contact-small-note { margin:17px 0 0 !important; color:#71808e !important; font-size:.82rem; line-height:1.7 !important; }
.calendar-info-card { display:flex; align-items:flex-start; gap:20px; padding:28px 30px; border-radius:18px; background:#fff; border:1px solid #dce8f2; box-shadow:0 8px 24px rgba(29,66,103,.08); }
.calendar-info-card > span { font-size:2.3rem; }
.calendar-info-card h2 { margin:0 0 8px; color:#173e65; }
.calendar-info-card p { margin:0 0 11px; color:#556779; line-height:1.8; }
.calendar-info-card a { color:#0877b8; font-weight:800; }
@media (max-width:900px) {
  .contact-page-grid { grid-template-columns:1fr; }
}
@media (max-width:720px) {
  .footer-info-layout { grid-template-columns:1fr; }
  .contact-main-card,.contact-mail-card { padding:24px 19px; }
  .contact-detail-list div { grid-template-columns:1fr; gap:4px; }
  .calendar-info-card { padding:23px 18px; }
}


/* =========================================================
   Ver22 お問い合わせ欄・カレンダー案内配置修正
========================================================= */
.contact-calendar-note { margin-top:15px; }


/* ===== Ver26: SK総合進学塾について 写真カード ===== */
.about-section-lead {
  margin: 16px auto 0;
  color: #667085;
  font-size: .96rem;
  line-height: 1.85;
}
.about-photo-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.about-photo-card {
  display: flex;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #d8e3f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 72, 125, .11);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-photo-card:hover {
  border-color: #7eb1e9;
  box-shadow: 0 16px 36px rgba(26, 72, 125, .18);
  transform: translateY(-6px);
}
.about-card-photo {
  height: 145px;
  overflow: hidden;
  background: #eaf2fb;
}
.about-card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}
.about-photo-card:hover .about-card-photo img { transform: scale(1.045); }
.about-card-title {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  color: #fff;
  background: linear-gradient(135deg, #0869c8, #064c9a);
  transition: filter .25s ease;
}
.about-photo-card:hover .about-card-title { filter: brightness(1.08); }
.about-card-title strong {
  font-size: .87rem;
  line-height: 1.4;
}
.about-card-icon { font-size: 1.25rem; line-height: 1; }
.about-card-body {
  position: relative;
  display: flex;
  min-height: 160px;
  padding: 15px 13px 52px;
  flex: 1;
  flex-direction: column;
}
.about-card-body p {
  margin: 0;
  color: #4f5f72;
  font-size: .76rem;
  line-height: 1.8;
}
.about-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 15px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1.5px solid #0b63b8;
  border-radius: 50%;
  color: #0b63b8;
  font-size: 1.1rem;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.about-photo-card:hover .about-card-arrow {
  color: #fff;
  background: #0b63b8;
  transform: translateX(2px);
}
@media (max-width: 1180px) {
  .about-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .about-card-photo { height: 180px; }
  .about-card-title strong { font-size: .98rem; }
  .about-card-icon { font-size: 1.45rem; }
  .about-card-body { min-height: 166px; padding: 18px 17px 56px; }
  .about-card-body p { font-size: .83rem; }
}
@media (max-width: 760px) {
  .about-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .about-card-photo { height: 155px; }
}
@media (max-width: 520px) {
  .about-photo-grid { grid-template-columns: 1fr; }
  .about-card-photo { height: 205px; }
  .about-card-body { min-height: 135px; }
}


/* ===== Ver92: 期間限定お知らせスライダー ===== */
.timed-news {
  padding: 20px 0 24px;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 192, 74, .18), transparent 24%),
    linear-gradient(180deg, #fffaf0 0%, #fff 100%);
  border-bottom: 1px solid #f1e6cf;
}
.timed-news[hidden] { display: none !important; }
.timed-news-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.timed-news-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #143f70;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 0 7px 18px rgba(20, 63, 112, .18);
}
.timed-news-heading p {
  margin: 0 0 2px;
  color: #e37a10;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.timed-news-heading h2 {
  margin: 0;
  color: #183b61;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.timed-news-slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(31, 69, 106, .14);
}
.timed-news-track { position: relative; min-height: 190px; }
.timed-news-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 190px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.timed-news-card.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.timed-news-card[hidden] { display: none !important; }
.timed-news-kanken { background: linear-gradient(135deg, #eef5ff 0%, #fff 68%); }
.timed-news-decor {
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  background: rgba(255,255,255,.5);
}
.timed-news-kanken .timed-news-decor { background: linear-gradient(145deg, #6ca9e8, #2f6fb2); }
.timed-news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 56px 18px 24px;
}
.timed-news-status { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.timed-news-status span,
.timed-news-status strong {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
}
.timed-news-status span { background: #173f6d; color: #fff; }
.timed-news-kanken .timed-news-status strong { background: #dcecff; color: #174f8c; }
.timed-news-content h3 {
  margin: 0 0 8px;
  color: #173d66;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.25;
}
.timed-news-catch { margin: 0 0 8px; color: #4e6175; font-weight: 800; line-height: 1.7; }
.timed-news-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #243f59;
}
.timed-news-date span { font-size: .8rem; font-weight: 900; }
.timed-news-date strong { font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
.timed-news-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, filter .2s ease;
}
.timed-news-kanken .timed-news-button { background: linear-gradient(135deg, #1f69b3, #438dce); }
.timed-news-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.timed-news-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 55, 91, .86);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.timed-news-prev { left: 14px; }
.timed-news-next { right: 14px; }
.timed-news-dots {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 17px;
  display: flex;
  gap: 8px;
}
.timed-news-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b5c2ce;
  cursor: pointer;
}
.timed-news-dot.is-active { width: 24px; border-radius: 999px; background: #194d7e; }
.timed-news-empty {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: #f4f7fa;
  color: #607080;
  text-align: center;
}
@media (max-width: 760px) {
  .timed-news { padding: 26px 0 32px; }
  .timed-news-heading { align-items: flex-start; gap: 10px; }
  .timed-news-label { min-width: 0; padding: 7px 10px; font-size: .68rem; }
  .timed-news-track { min-height: 410px; }
  .timed-news-card { grid-template-columns: 1fr; min-height: 410px; }
  .timed-news-decor { height: 120px; font-size: 4.5rem; }
  .timed-news-content { padding: 22px 22px 58px; justify-content: flex-start; }
  .timed-news-content h3 { font-size: 1.65rem; }
  .timed-news-date { align-items: flex-start; flex-direction: column; gap: 3px; }
  .timed-news-arrow { top: 60px; width: 36px; height: 36px; }
  .timed-news-prev { left: 10px; }
  .timed-news-next { right: 10px; }
  .timed-news-dots { right: 18px; bottom: 18px; }
}


/* ===== Ver31: 学校別 定期考査カウントダウン ===== */
.test-countdown {
  padding: 40px 0 46px;
  background:
    radial-gradient(circle at 92% 16%, rgba(54, 128, 198, .13), transparent 23%),
    linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
  border-bottom: 1px solid #dfeaf5;
}
.test-countdown-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.test-countdown-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #123f70;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 7px 18px rgba(20, 63, 112, .18);
}
.test-countdown-heading p {
  margin: 0 0 2px;
  color: #2473b9;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.test-countdown-heading h2 {
  margin: 0;
  color: #183b61;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.test-countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.test-countdown-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(25, 77, 126, .12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 73, 109, .11);
  transition: transform .25s ease, box-shadow .25s ease;
}
.test-countdown-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--test-color, #2976b9);
}
.test-countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 17px 36px rgba(33, 73, 109, .16);
}
.test-countdown-blue { --test-color: #2574ba; --test-soft: #eaf4ff; }
.test-countdown-green { --test-color: #24976c; --test-soft: #eaf8f2; }
.test-countdown-orange { --test-color: #e5851d; --test-soft: #fff4e6; }
.test-countdown-purple { --test-color: #7858b4; --test-soft: #f2edfb; }
.test-countdown-red { --test-color: #d65c58; --test-soft: #fff0ef; }
.test-countdown-school {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
  color: #183b61;
  font-size: 1.08rem;
  font-weight: 900;
}
.test-countdown-school span { font-size: 1.25rem; }
.test-countdown-main {
  padding: 16px;
  border-radius: 15px;
  background: var(--test-soft, #eef5fb);
  text-align: center;
}
.test-countdown-name {
  margin: 0 0 5px;
  color: #4b6177;
  font-size: .88rem;
  font-weight: 900;
}
.test-countdown-days {
  display: block;
  color: var(--test-color, #2976b9);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.2;
}
.test-countdown-date {
  margin: 14px 0 5px;
  color: #304a63;
  font-weight: 900;
  text-align: center;
}
.test-countdown-message {
  margin: 0;
  color: #627386;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
}
.test-countdown-note,
.test-countdown-empty {
  margin: 18px 0 0;
  color: #65778a;
  font-size: .84rem;
  text-align: center;
}
.test-countdown-empty {
  padding: 18px;
  border-radius: 14px;
  background: #f4f7fa;
}
@media (max-width: 960px) {
  .test-countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .test-countdown { padding: 30px 0 34px; }
  .test-countdown-heading { align-items: flex-start; gap: 10px; }
  .test-countdown-label { min-width: 0; padding: 7px 10px; font-size: .66rem; }
  .test-countdown-grid { grid-template-columns: 1fr; gap: 14px; }
  .test-countdown-card { min-height: 0; }
}


/* ===== Ver31: 定期考査を横一列・コンパクト表示 ===== */
.test-countdown { padding: 28px 0 30px; }
.test-countdown-heading { margin-bottom: 14px; }
.test-countdown-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.test-countdown-card {
  min-width: 0;
  min-height: 0;
  padding: 16px 12px 14px;
  border-radius: 16px;
}
.test-countdown-card::before { height: 5px; }
.test-countdown-school {
  justify-content: center;
  gap: 5px;
  margin: 1px 0 8px;
  font-size: clamp(.82rem, 1.25vw, 1rem);
  white-space: nowrap;
}
.test-countdown-school span { font-size: 1.05rem; }
.test-countdown-main { display: contents; }
.test-countdown-name { display: none; }
.test-countdown-days {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  text-align: center;
}
.test-countdown-date {
  margin: 8px 0 7px;
  font-size: clamp(.72rem, 1.05vw, .88rem);
  white-space: nowrap;
}
.test-countdown-message {
  margin: 0;
  padding: 7px 5px;
  border-radius: 10px;
  background: var(--status-soft, #eef5fb);
  color: var(--status-color, #315a80);
  font-size: clamp(.69rem, .95vw, .82rem);
  line-height: 1.35;
  white-space: nowrap;
}
.test-status-prepare { --status-color: #1b67ad; --status-soft: #e7f2ff; }
.test-status-measures { --status-color: #13805a; --status-soft: #e4f7ef; }
.test-status-finish { --status-color: #d46a00; --status-soft: #fff0df; }
.test-status-soon { --status-color: #c53b38; --status-soft: #ffe7e5; }
.test-status-today { --status-color: #7a3fa0; --status-soft: #f2e8f9; }
.test-countdown-note { margin-top: 12px; line-height: 1.65; }
.test-note-mobile { display: none; }

/* Ver29: 最新のお知らせはカウントダウン直下に配置し、カード型を維持 */
.timed-news { padding-top: 30px; }

@media (max-width: 1100px) {
  .test-countdown-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .test-countdown-card {
    flex: 0 0 205px;
    scroll-snap-align: start;
  }
}
@media (max-width: 620px) {
  .test-countdown { padding: 24px 0 25px; }
  .test-countdown-grid { display: flex; gap: 10px; }
  .test-countdown-card { flex-basis: 188px; padding: 14px 10px 12px; }
  .test-countdown-school { font-size: .83rem; }
  .test-countdown-days { font-size: 1.55rem; }
  .test-countdown-date { font-size: .73rem; }
  .test-countdown-message { font-size: .72rem; }
  .test-note-mobile { display: inline; }
}

/* ===== Ver33: 料金案内内の季節講習会カード ===== */
.seasonal-fee-card {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #dfe8f2;
  border-top: 6px solid #f08a24;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 57, 93, .08);
}
.seasonal-fee-heading {
  padding: 24px 30px 18px;
  border-bottom: 1px solid #edf1f5;
  background: linear-gradient(135deg, #fffaf3 0%, #fff 72%);
}
.seasonal-fee-label {
  margin: 0 0 6px;
  color: #e66f00;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.seasonal-fee-heading h3 {
  margin: 0;
  color: #102a46;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.3;
}
.seasonal-fee-heading h3 span {
  margin-left: .35em;
  font-size: .68em;
}
.seasonal-fee-content {
  padding: 24px 30px 28px;
}
.seasonal-fee-content > p {
  margin: 0;
  color: #53677d;
  line-height: 1.9;
}
.seasonal-fee-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 16px;
  padding: 20px 24px;
  border: 1px solid #ffd6aa;
  border-radius: 16px;
  background: #fff7ed;
}
.seasonal-fee-highlight span {
  color: #b45d0a;
  font-weight: 800;
}
.seasonal-fee-highlight strong {
  color: #e56d00;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-align: right;
}
.seasonal-fee-content .fee-small-note {
  margin-top: 0;
}
@media (max-width: 700px) {
  .seasonal-fee-heading,
  .seasonal-fee-content { padding-left: 20px; padding-right: 20px; }
  .seasonal-fee-heading h3 span { display: block; margin: 4px 0 0; }
  .seasonal-fee-highlight { align-items: flex-start; flex-direction: column; gap: 8px; }
  .seasonal-fee-highlight strong { text-align: left; }
}


/* ===== Ver34: 季節講習会カード 説明・強調改善 ===== */
.seasonal-fee-intro {
  display: grid;
  gap: 5px;
}
.seasonal-fee-intro p {
  margin: 0;
  color: #425d78;
  font-size: 1rem;
  line-height: 1.9;
}
.seasonal-fee-intro strong { color: #123d69; }
.seasonal-support-box {
  margin: 22px 0 18px;
  padding: 24px 26px 26px;
  border: 1px solid #ffd0a0;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9f1 0%, #fff 100%);
}
.seasonal-support-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}
.seasonal-support-title > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: #f08a24;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}
.seasonal-support-title small {
  display: block;
  margin-bottom: 2px;
  color: #c76306;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.seasonal-support-title strong {
  display: block;
  color: #173a5d;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}
.seasonal-support-box > p {
  margin: 8px 0 0;
  color: #53677d;
  line-height: 1.85;
}
.seasonal-support-box > p strong { color: #d76500; }
.seasonal-fee-highlight {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 20px 0 0;
  padding: 20px 24px;
  border: 2px solid #f08a24;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.seasonal-fee-highlight span {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: #f08a24;
  color: #fff;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.seasonal-fee-highlight strong {
  color: #e36800;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
  text-align: center;
}
.seasonal-fee-note {
  margin: 0;
  padding-left: 1.4em;
  color: #65788b;
  line-height: 1.8;
  text-indent: -1.4em;
}
.seasonal-fee-note::before { content: "※ "; }
.seasonal-fee-note strong { color: #174f86; }
@media (max-width: 700px) {
  .seasonal-support-box { padding: 20px 18px 22px; }
  .seasonal-support-title { align-items: flex-start; }
  .seasonal-fee-highlight { padding: 18px 12px; }
  .seasonal-fee-highlight strong { font-size: 1.35rem; }
}


/* ===== Ver37: 季節講習会の強調枠・余白バランス調整 ===== */
.seasonal-fee-highlight {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px 170px 22px 34px;
  align-content: center;
  justify-items: center;
}
.seasonal-fee-highlight::after {
  content: "📚  ✏️";
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  color: #f08a24;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: .08em;
  opacity: .16;
  filter: grayscale(1);
  pointer-events: none;
}
.seasonal-fee-highlight strong {
  max-width: 720px;
}
.seasonal-fee-highlight small {
  display: block;
  margin-top: 5px;
  color: #64778b;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}
@media (max-width: 820px) {
  .seasonal-fee-highlight {
    min-height: auto;
    padding: 20px 96px 20px 18px;
  }
  .seasonal-fee-highlight::after {
    right: 16px;
    font-size: 2.7rem;
  }
}
@media (max-width: 560px) {
  .seasonal-fee-highlight {
    padding: 18px 14px 74px;
  }
  .seasonal-fee-highlight::after {
    right: 50%;
    top: auto;
    bottom: 10px;
    transform: translateX(50%) rotate(-5deg);
    font-size: 2.3rem;
  }
  .seasonal-fee-highlight small {
    font-size: .84rem;
  }
}


/* ===== Ver37: 定期考査カウントダウンをアコーディオン化 ===== */
.test-countdown {
  padding: 18px 0;
}
.test-countdown-heading {
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(25, 77, 126, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(33, 73, 109, .09);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.test-countdown-heading:hover {
  border-color: rgba(36, 115, 185, .32);
  box-shadow: 0 11px 28px rgba(33, 73, 109, .14);
  transform: translateY(-1px);
}
.test-countdown-heading:focus-visible {
  outline: 3px solid rgba(37, 116, 186, .28);
  outline-offset: 3px;
}
.test-countdown-title {
  display: block;
  min-width: 0;
}
.test-countdown-subtitle {
  display: block;
  margin: 0 0 2px;
  color: #2473b9;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.test-countdown-main-title {
  display: block;
  color: #183b61;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
}
.test-countdown-open-guide {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: #35698f;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}
.test-countdown-chevron {
  width: 12px;
  height: 12px;
  border-right: 3px solid #2473b9;
  border-bottom: 3px solid #2473b9;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .35s ease;
}
.test-countdown-heading[aria-expanded="true"] .test-countdown-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}
.test-countdown-heading[aria-expanded="true"] {
  border-color: rgba(36, 115, 185, .28);
  box-shadow: 0 11px 28px rgba(33, 73, 109, .13);
}
.test-countdown-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .45s ease, opacity .3s ease, visibility 0s linear .45s;
}
.test-countdown-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  transition: padding-top .45s ease;
}
.test-countdown.is-open .test-countdown-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows .45s ease, opacity .35s ease, visibility 0s;
}
.test-countdown.is-open .test-countdown-panel-inner {
  padding-top: 16px;
}
@media (max-width: 620px) {
  .test-countdown { padding: 14px 0; }
  .test-countdown-heading {
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
  }
  .test-countdown-open-text { display: none; }
  .test-countdown-open-guide { gap: 0; padding-right: 4px; }
  .test-countdown-main-title { font-size: 1.2rem; }
  .test-countdown-subtitle { font-size: .7rem; }
  .test-countdown.is-open .test-countdown-panel-inner { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .test-countdown-heading,
  .test-countdown-chevron,
  .test-countdown-panel,
  .test-countdown-panel-inner {
    transition: none;
  }
}

/* Ver38: 料金案内下部の見出しを1行表示 */
.fee-contact-title {
  font-size: clamp(.95rem, 4vw, 3.2rem);
  white-space: nowrap;
}

/* =========================
   Ver40：最下部CONTACT文言・中央配置の調整
========================= */
.about-card-title-results {
  gap: 7px;
  padding-left: 12px;
  padding-right: 12px;
}
.about-card-title-results strong {
  white-space: nowrap;
  font-size: .91rem;
  letter-spacing: -.02em;
}
.highschool-hero-message {
  max-width: none !important;
  white-space: nowrap;
  font-size: clamp(1.45rem, 2.75vw, 2.65rem) !important;
  letter-spacing: -.025em;
}
.highschool-intro-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.highschool-intro-heading small {
  display: block;
  white-space: nowrap;
  color: var(--navy);
  font-size: .72em;
  line-height: 1.35;
}
.highschool-intro-heading span {
  display: block;
}
.flow-step strong { white-space: nowrap; }
.result-card-note {
  margin: 13px 0 0;
  color: #7a8795;
  font-size: .72rem;
  line-height: 1.45;
  font-weight: 700;
}
.achievement-year-note {
  margin-top: 10px !important;
  font-size: .86rem;
  font-weight: 700;
}
.deviation-section .achievement-year-note { color: #fff; opacity: .9; }
.pass-column-title > div { min-width: 0; }
.pass-column-title > div h3 { margin: 0; }
.pass-column-title > div p {
  margin: 5px 0 0;
  color: #ffe56a;
  font-size: .94rem;
  font-weight: 900;
}
.voice-trial-heading,
.results-trial-heading,
.qa-trial-heading {
  width: max-content;
  max-width: none;
  margin-left: 50% !important;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  font-size: clamp(1.7rem, 3.55vw, 2.85rem) !important;
  letter-spacing: -.025em;
}
@media (max-width: 900px) {
  .highschool-hero-message,
  .voice-trial-heading,
  .results-trial-heading,
  .qa-trial-heading {
    width: auto;
    max-width: 100%;
    margin-left: 0 !important;
    transform: none;
    white-space: normal;
  }
  .highschool-intro-heading small { white-space: normal; }
}
@media (max-width: 760px) {
  .about-card-title-results strong { white-space: normal; font-size: .98rem; }
  .flow-step strong { white-space: normal; }
}


/* ===== Ver41: 月謝シミュレータ 通塾スケジュール表示 ===== */
.schedule-result {
  max-width: 680px;
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid #cfe2f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 77, 126, .08);
}
.schedule-result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.schedule-result-heading span { font-size: 1.25rem; }
.schedule-result-heading h4 { margin: 0; color: var(--navy); font-size: 1.12rem; }
.schedule-result ul { margin: 0; padding: 0; list-style: none; }
.schedule-result li {
  display: grid;
  grid-template-columns: 72px 118px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed #d9e4ed;
}
.schedule-result li strong { color: #1767ad; }
.schedule-result li span { color: #304a63; font-weight: 800; }
.schedule-result li em { color: #253b50; font-style: normal; }
.schedule-summary {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 16px;
}
.schedule-summary p {
  margin: 0;
  padding: 13px 14px;
  border-radius: 12px;
  background: #eef6fc;
}
.schedule-summary span { display: block; margin-bottom: 3px; color: #60758a; font-size: .78rem; font-weight: 900; }
.schedule-summary strong { display: block; color: #0c5798; line-height: 1.5; }
@media (max-width: 620px) {
  .schedule-result { padding: 16px 14px; }
  .schedule-result li { grid-template-columns: 62px 1fr; gap: 4px 8px; }
  .schedule-result li em { grid-column: 1 / -1; padding-left: 70px; font-size: .9rem; }
  .schedule-summary { grid-template-columns: 1fr; }
}


/* =========================
   Ver45：アメブロ最新5件の表示調整
========================= */
.latest-panel {
  display: flex;
  flex-direction: column;
  min-height: 565px;
}

.ameblo-news-list {
  min-height: 310px;
  margin-top: 8px;
}

.ameblo-news-loading,
.ameblo-news-error {
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.ameblo-news-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 6px;
  border-bottom: 1px solid #e4eaf1;
  border-radius: 8px;
  color: var(--text);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.ameblo-news-item:hover {
  color: var(--blue);
  background: #f2f8ff;
  transform: translateX(3px);
}

.ameblo-news-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 3px 8px rgba(11, 95, 179, .18);
}

.ameblo-news-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ameblo-news-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.45;
}

.ameblo-news-date {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.latest-panel .panel-bottom-link {
  margin-top: auto;
}

@media (max-width: 980px) {
  .latest-panel { min-height: auto; }
  .ameblo-news-list { min-height: 0; }
}

@media (max-width: 520px) {
  .ameblo-news-item {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 56px;
    padding: 9px 4px;
  }

  .ameblo-news-body {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ameblo-news-title { font-size: 1rem; }
  .ameblo-news-date { font-size: 0.72rem; }
}



.hero-slide:nth-child(2) .hero-photo {
  object-position: center 43%;
  transform: scale(1.00);
}

.hero-slide:nth-child(4) .hero-photo {
  object-position: center 45%;
  transform: scale(1.00);
}
.hero-slide.is-active:nth-child(2) .hero-photo,
.hero-slide.is-active:nth-child(4) .hero-photo{
  transform: scale(1.00);
}

.teacher-photo-column:first-child .teacher-photo-placeholder img { object-position:center 46%; }
.teacher-profile-reverse .teacher-photo-placeholder img { object-position:center 42%; }
@media (max-width: 720px){ .teacher-hero-image{object-position:center;} .teacher-hero{min-height:390px;} }

/* ===== 教室案内ページ ===== */
.classroom-hero{position:relative;min-height:480px;display:flex;align-items:center;overflow:hidden;background:#0b315e}
.classroom-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 50%}
.classroom-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,28,57,.88) 0%,rgba(5,43,83,.68) 42%,rgba(5,43,83,.18) 72%,rgba(5,43,83,.08) 100%)}
.classroom-hero-inner{position:relative;z-index:2;width:min(1180px,calc(100% - 48px));margin:auto;color:#fff}
.classroom-hero-inner h1{margin:8px 0 18px;font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.05;letter-spacing:.06em}
.classroom-hero-inner>p:not(.subpage-kicker){margin:0 0 18px;font-size:clamp(1.45rem,3vw,2.25rem);font-weight:800;line-height:1.45}
.classroom-hero-inner>p strong{color:#ffd35a}
.classroom-hero-inner small{display:block;font-size:1rem;line-height:1.9;font-weight:600}
.classroom-intro-section .section-heading p,.classroom-life-section .section-heading p,.classroom-teacher-section .section-heading p{max-width:780px;margin-left:auto;margin-right:auto}
.classroom-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;margin-top:42px}
.classroom-feature-card{overflow:hidden;background:#fff;border-radius:26px;box-shadow:0 16px 40px rgba(26,53,82,.10)}
.classroom-feature-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.classroom-feature-card>div{padding:26px 28px 30px}
.classroom-feature-card span,.classroom-space-content>span{color:var(--blue);font-size:.78rem;font-weight:900;letter-spacing:.14em}
.classroom-feature-card h3{margin:7px 0 12px;font-size:1.55rem}
.classroom-feature-card p{margin:0;color:var(--muted);line-height:1.9}
.classroom-mosaic{display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:repeat(2,1fr);gap:22px;margin-top:42px}
.classroom-photo{position:relative;overflow:hidden;min-height:285px;margin:0;border-radius:24px;box-shadow:0 14px 34px rgba(26,53,82,.12)}
.classroom-photo-large{grid-row:1/3;min-height:590px}
.classroom-photo img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.classroom-photo:hover img{transform:scale(1.025)}
.classroom-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:46px 24px 22px;color:#fff;background:linear-gradient(transparent,rgba(0,21,45,.88))}
.classroom-photo figcaption strong,.classroom-photo figcaption span{display:block}
.classroom-photo figcaption strong{font-size:1.2rem;margin-bottom:5px}
.classroom-photo figcaption span{font-size:.88rem;line-height:1.6}
.classroom-space-list{display:grid;gap:54px;margin-top:42px}
.classroom-space-row{display:grid;grid-template-columns:1.08fr .92fr;gap:0;align-items:stretch;overflow:hidden;background:#fff;border-radius:28px;box-shadow:0 16px 42px rgba(26,53,82,.11)}
.classroom-space-row-reverse{grid-template-columns:.92fr 1.08fr}
.classroom-space-row-reverse .classroom-space-image{order:2}
.classroom-space-image img{display:block;width:100%;height:100%;min-height:430px;object-fit:cover}
.classroom-space-content{padding:48px 46px;display:flex;flex-direction:column;justify-content:center}
.classroom-space-content h3{margin:9px 0 18px;font-size:clamp(1.65rem,3vw,2.3rem)}
.classroom-space-content p{margin:0 0 24px;color:var(--muted);line-height:1.95}
.classroom-space-content ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.classroom-space-content li{position:relative;padding:12px 16px 12px 42px;border-radius:12px;background:#edf8f1;font-weight:800}
.classroom-space-content li::before{content:'✓';position:absolute;left:17px;color:#18a84b;font-weight:900}
.classroom-space-content-purple>span{color:#7838de}
.classroom-space-content-purple li{background:#f2ecff}
.classroom-space-content-purple li::before{color:#7838de}
.classroom-teacher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:42px}
.classroom-teacher-photo{margin:0;overflow:hidden;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(26,53,82,.10)}
.classroom-teacher-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.classroom-teacher-photo:nth-child(2) img{object-position:center 32%}
.classroom-teacher-photo figcaption{padding:17px 18px;text-align:center;font-weight:850}
.classroom-visit-section{padding:86px 24px;text-align:center;color:#fff;background:linear-gradient(135deg,#075aa7,#0a75ce)}
.classroom-visit-section .section-label{color:#bfe1ff}
.classroom-visit-section h2{margin:8px 0 16px;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.55}
.classroom-visit-section p{margin:0 0 30px;line-height:1.8}
.classroom-visit-section .button-line{border-color:#fff;color:#fff;background:transparent}
.classroom-visit-section .button-line:hover{background:#fff;color:var(--blue)}
@media(max-width:900px){.classroom-feature-grid,.classroom-teacher-grid{grid-template-columns:1fr 1fr}.classroom-teacher-grid figure:last-child{grid-column:1/-1;max-width:520px;width:100%;margin-inline:auto}.classroom-space-row,.classroom-space-row-reverse{grid-template-columns:1fr}.classroom-space-row-reverse .classroom-space-image{order:0}.classroom-space-image img{min-height:0;aspect-ratio:4/3}.classroom-mosaic{grid-template-columns:1fr}.classroom-photo-large{grid-row:auto;min-height:420px}.classroom-photo{min-height:360px}}
@media(max-width:620px){.classroom-hero{min-height:420px}.classroom-hero-image{object-position:63% center}.classroom-hero-overlay{background:linear-gradient(90deg,rgba(3,28,57,.88),rgba(5,43,83,.57))}.classroom-hero-inner{width:min(100% - 34px,1180px)}.classroom-hero-inner small br{display:none}.classroom-feature-grid,.classroom-teacher-grid{grid-template-columns:1fr}.classroom-teacher-grid figure:last-child{grid-column:auto}.classroom-feature-card>div,.classroom-space-content{padding:24px 22px 27px}.classroom-mosaic{gap:16px}.classroom-photo,.classroom-photo-large{min-height:280px;border-radius:18px}.classroom-space-row{border-radius:20px}.classroom-space-list{gap:30px}.classroom-visit-section{padding:66px 18px}.classroom-visit-section h2 br{display:none}}


/* ===== Ver80: お問い合わせページヒーロー表示・内部番号を修正 ===== */
.about-card-title-parents {
  background: linear-gradient(135deg, #1479c9, #07539f);
}


/* Ver80: お問い合わせヒーローのスマートフォン表示調整 */
@media (max-width: 700px) {
  .contact-hero {
    min-height: 430px;
    place-items: end start;
    background-image: linear-gradient(0deg, rgba(3,42,83,.96) 0%, rgba(3,42,83,.78) 42%, rgba(3,42,83,.20) 76%), url("../images/about-contact.jpg");
    background-position: 58% 18%;
  }
  .contact-hero-inner { padding-bottom: 42px; }
}


/* ===== Ver80: Q&A写真・お問い合わせページヒーロー差し替え ===== */
.qa-card-image {
  object-position: 69% 43%;
}

.contact-hero {
  min-height: 360px;
  background-color: #0b416f;
  background-image:
    linear-gradient(90deg, rgba(3,42,83,.97) 0%, rgba(4,67,116,.88) 42%, rgba(5,87,139,.48) 67%, rgba(5,87,139,.10) 100%),
    url("../images/about-contact.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, auto 100%;
  background-position: center, right center;
}

@media (max-width: 700px) {
  .contact-hero {
    min-height: 500px;
    place-items: end start;
    background-image:
      linear-gradient(0deg, rgba(3,42,83,.97) 0%, rgba(3,42,83,.82) 43%, rgba(3,42,83,.22) 76%),
      url("../images/about-contact.jpg");
    background-repeat: no-repeat, no-repeat;
    background-size: cover, auto 100%;
    background-position: center, 67% center;
  }
  .contact-hero-inner { padding-bottom: 42px; }
}

/* =========================================================
   Ver80：保護者様の声ページ
========================================================= */
.parent-voice-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #16385f;
}
.parent-voice-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.parent-voice-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,43,82,.91) 0%, rgba(9,43,82,.74) 41%, rgba(9,43,82,.28) 68%, rgba(9,43,82,.08) 100%);
}
.parent-voice-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}
.parent-voice-hero-inner h1 {
  margin: 7px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.15rem);
  letter-spacing: .05em;
}
.parent-voice-hero-inner p:last-child {
  margin: 0;
  font-size: clamp(1.05rem,2.3vw,1.4rem);
  line-height: 1.85;
}
.parent-voice-hero-inner strong { color: #ffe36a; }

.parent-voice-intro-section { padding-bottom: 42px; }
.parent-voice-highlight {
  width: min(820px, 100%);
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg,#eef7ff,#fff9ec);
  border: 1px solid #d8e9f7;
  box-shadow: 0 10px 26px rgba(28,65,106,.07);
}
.parent-voice-highlight-icon { font-size: 2rem; flex: 0 0 auto; }
.parent-voice-highlight p { margin: 0; color: #3e5268; line-height: 1.8; }
.parent-voice-highlight strong { color: var(--navy); }

.parent-voice-list-section { padding-top: 68px; }
.parent-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  align-items: stretch;
}
.parent-voice-card {
  position: relative;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(31,69,110,.08);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.parent-voice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(31,69,110,.13);
  border-color: #9dc8ea;
}
.parent-voice-card-featured {
  border: 2px solid #f0b745;
  background: linear-gradient(180deg,#fffdf6,#fff 58%);
}
.parent-voice-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 11px;
  padding-right: 32px;
  margin-bottom: 18px;
}
.parent-voice-card-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}
.parent-voice-grade {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e7f3ff;
  color: #145fa4;
  font-size: .82rem;
  font-weight: 800;
}
.parent-voice-grade-junior {
  background: #fff0c8;
  color: #8b5a00;
}
.parent-voice-quote {
  position: absolute;
  top: 2px;
  right: 17px;
  font-family: Georgia, serif;
  color: #e6f1fb;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 700;
  z-index: 1;
}
.parent-voice-card-featured .parent-voice-quote { color: #fff0c5; }
.parent-voice-card p {
  position: relative;
  z-index: 2;
  margin: 13px 0 0;
  color: #435467;
  line-height: 1.95;
  font-size: .97rem;
}
.parent-voice-note {
  margin: 28px auto 0;
  text-align: center;
  color: #68798a;
  font-size: .87rem;
  line-height: 1.8;
}
.parent-voice-message-section {
  padding: 76px 20px;
  text-align: center;
  background: linear-gradient(135deg,#0d4e88,#123a65);
  color: #fff;
}
.parent-voice-message-section .section-label { color: #85ddff; }
.parent-voice-message-section h2 {
  margin: 7px 0 18px;
  color: #fff;
  font-size: clamp(1.8rem,4vw,2.75rem);
  line-height: 1.5;
}
.parent-voice-message-section h2 strong { color: #ffe36a; }
.parent-voice-message-section p:last-child {
  margin: 0;
  color: rgba(255,255,255,.9);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .parent-voice-grid { grid-template-columns: 1fr; }
  .parent-voice-card { max-width: 720px; width: 100%; margin-inline: auto; }
  .parent-voice-hero > img { object-position: 61% 52%; }
}
@media (max-width: 640px) {
  .parent-voice-hero { min-height: 320px; }
  .parent-voice-hero-inner { width: min(100% - 28px,1120px); }
  .parent-voice-hero > img { object-position: 64% 50%; }
  .parent-voice-hero-overlay { background: linear-gradient(90deg,rgba(9,43,82,.92),rgba(9,43,82,.68) 66%,rgba(9,43,82,.28)); }
  .parent-voice-highlight { align-items: flex-start; padding: 20px 18px; }
  .parent-voice-card { padding: 25px 19px 23px; }
  .parent-voice-message-section { padding: 60px 18px; }
}

/* ===== Ver80: 教室案内「学習風景ギャラリー」6枚構成 ===== */
.classroom-gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  margin-top:42px;
}
.classroom-gallery-card{
  position:relative;
  min-height:330px;
  margin:0;
  overflow:hidden;
  border-radius:22px;
  background:#0a2748;
  box-shadow:0 12px 30px rgba(26,53,82,.12);
}
.classroom-gallery-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(3,20,39,0) 45%,rgba(3,20,39,.86) 100%);
  pointer-events:none;
}
.classroom-gallery-card img{
  width:100%;
  height:100%;
  min-height:330px;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}
.classroom-gallery-card:hover img{transform:scale(1.025)}
.classroom-gallery-card figcaption{
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  bottom:0;
  padding:24px 24px 21px;
  color:#fff;
}
.classroom-gallery-card figcaption strong{
  display:block;
  margin-bottom:7px;
  font-size:1.12rem;
  line-height:1.45;
  letter-spacing:.03em;
}
.classroom-gallery-card figcaption span{
  display:block;
  font-size:.88rem;
  line-height:1.65;
}
.classroom-gallery-note{
  margin:18px 0 0;
  text-align:right;
  color:#66778a;
  font-size:.82rem;
  line-height:1.7;
}
@media(max-width:900px){
  .classroom-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
  .classroom-gallery{grid-template-columns:1fr;gap:16px;margin-top:30px}
  .classroom-gallery-card,.classroom-gallery-card img{min-height:290px}
  .classroom-gallery-card{border-radius:18px}
  .classroom-gallery-card figcaption{padding:22px 20px 19px}
  .classroom-gallery-note{text-align:left;font-size:.78rem}
}


/* ===== Ver80: 公開前スマートフォン縦向き最終調整 ===== */
/* スマートフォン専用の閲覧案内（PC・タブレットでは非表示） */
.mobile-view-note {
  display: none;
}

@media (max-width: 620px) {
  .mobile-view-note {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #d8e7f3;
    background: #f2f8fd;
  }
  .mobile-view-note-inner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: min(100%, 560px);
    margin: 0 auto;
    color: #36546f;
  }
  .mobile-view-note-icon {
    flex: 0 0 auto;
    padding-top: 1px;
    font-size: 1.05rem;
    line-height: 1.5;
  }
  .mobile-view-note p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.6;
  }
  .mobile-view-note strong {
    color: #155b91;
    font-size: .8rem;
  }

  /* ① トップページ：定期考査カウントダウンを縦1列にして横スクロールを解消 */
  .test-countdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    gap: 10px;
    padding: 2px 0 4px;
    scroll-snap-type: none;
  }
  .test-countdown-card {
    width: 100%;
    flex: none;
    min-width: 0;
    padding: 14px 12px 13px;
  }
  .test-countdown-school,
  .test-countdown-date,
  .test-countdown-message {
    white-space: normal;
  }
  .test-countdown-message {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* ② 中学生ページ：時間割・A-pass・諸費用を縦向き画面内に収める */
  .schedule-panel .table-wrap,
  .extra-fee-panel .table-wrap {
    overflow-x: visible;
    width: 100%;
  }
  .schedule-panel .course-table,
  .extra-fee-panel .course-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .schedule-panel .course-table th,
  .schedule-panel .course-table td,
  .extra-fee-panel .course-table th,
  .extra-fee-panel .course-table td {
    padding: 10px 5px;
    font-size: .76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .schedule-panel .course-table thead th:first-child {
    width: 24%;
  }
  .schedule-panel .course-table thead th:nth-child(2),
  .schedule-panel .course-table thead th:nth-child(3) {
    width: 38%;
  }
  .apass-schedule .course-table thead th:first-child {
    width: 23%;
  }
  .apass-schedule .course-table thead th:nth-child(2) {
    width: 34%;
  }
  .apass-schedule .course-table thead th:nth-child(3) {
    width: 43%;
  }
  .extra-fee-panel .fee-table th {
    width: 56%;
  }
  .extra-fee-panel .fee-table td {
    width: 44%;
  }

  /* ③ 料金案内最下部CONTACT：文言を折り返して全文表示 */
  .fee-contact-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* ===== Ver80: 公開前最終微調整 ===== */
/* トップページ「合格・成績アップ実績」カード：長いタイトルを2行で自然に表示 */
@media (min-width: 1181px) {
  .about-card-title-results {
    padding-left: 10px;
    padding-right: 8px;
  }
  .about-card-title-results strong {
    white-space: normal;
    font-size: .82rem;
    line-height: 1.25;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }
}

/* 卒業生の声：集合写真をページヒーローに最適化 */
.voice-hero > img {
  object-position: center 54%;
}
@media (max-width: 800px) {
  .voice-hero > img { object-position: 52% 54%; }
}
@media (max-width: 520px) {
  .voice-hero > img { object-position: 54% 52%; }
}


/* ===== Ver80: AI画像補正に関する注記 ===== */
.photo-ai-note {
  margin: 10px auto 0;
  max-width: 920px;
  font-size: 0.78rem !important;
  line-height: 1.7;
  color: #6b7280;
  font-weight: 400;
}
.classroom-hero-photo-note {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 9px 20px;
  text-align: center;
  background: #f7f9fc;
  border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
  .photo-ai-note { font-size: 0.7rem !important; line-height: 1.65; }
  .classroom-hero-photo-note { padding: 8px 14px; text-align: left; }
}


/* ===== Ver82: 料金案内「検定・模擬試験について」 ===== */
.optional-fee-card {
  margin-top: 28px;
  border: 1px solid #cfe0f3;
  border-top: 5px solid #0d5eb8;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.optional-fee-heading { padding: 28px 30px 20px; border-bottom: 1px solid #e4edf7; }
.optional-fee-label { margin: 0 0 8px; color: #0d5eb8; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.optional-fee-heading h3 { margin: 0; color: #0b2d52; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.optional-fee-content { padding: 26px 30px 28px; color: #385879; line-height: 1.9; }
.optional-fee-content p { margin: 0 0 12px; }
.optional-fee-content strong { color: #0b477f; }
.optional-fee-note { margin-bottom: 0 !important; font-size: .9rem; color: #66788b; }
@media (max-width: 700px) {
  .optional-fee-card { margin-top: 22px; border-radius: 16px; }
  .optional-fee-heading { padding: 22px 20px 16px; }
  .optional-fee-content { padding: 20px; }
}

/* =========================================================
   Ver88 最下段アクセス：現在通塾中の学校一覧
========================================================= */
.access-panel .map-embed {
  height: 150px;
  margin-bottom: 12px;
}
.access-panel .access-list {
  margin: 10px 0 14px;
}
.access-panel .access-list div {
  padding: 5px 0;
}

.attending-schools {
  margin-top: 2px;
  padding-top: 15px;
  border-top: 1px solid #dbe6ef;
}
.attending-schools-heading h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 1.02rem;
  line-height: 1.5;
}
.attending-schools-heading p {
  margin: 0 0 11px;
  color: #5e6c7a;
  font-size: .80rem;
  line-height: 1.65;
}
.school-accordion {
  margin: 7px 0;
  overflow: hidden;
  border: 1px solid #d8e5ef;
  border-radius: 10px;
  background: #fff;
}
.school-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  color: #0b69ad;
  background: #f7fbff;
  font-weight: 900;
  font-size: .90rem;
  user-select: none;
}
.school-accordion summary::-webkit-details-marker { display: none; }
.school-accordion summary small { font-size: .78rem; font-weight: 800; }
.school-accordion summary:hover { background: #eef7ff; }
.school-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.school-toggle::before,
.school-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.school-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.school-accordion[open] .school-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.school-list-content {
  padding: 10px 12px 11px;
  border-top: 1px solid #e5edf4;
  background: #fff;
}
.school-list-content p {
  margin: 0;
  color: #3e5062;
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.9;
}
.attending-schools-note {
  margin: 8px 0 0;
  color: #748291;
  font-size: .72rem;
  line-height: 1.55;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .access-panel .map-embed { height: 140px; }
  .attending-schools-heading h3 { font-size: .95rem; }
  .school-accordion summary { font-size: .84rem; }
  .school-list-content p { font-size: .76rem; }
}

@media (max-width: 760px) {
  .access-panel .map-embed { height: 190px; }
  .attending-schools { margin-top: 8px; padding-top: 18px; }
  .attending-schools-heading h3 { font-size: 1.05rem; }
  .attending-schools-heading p { font-size: .86rem; }
  .school-accordion summary { min-height: 46px; font-size: .94rem; }
  .school-list-content p { font-size: .84rem; line-height: 2; }
}


/* Ver99: 指導理念・講師紹介 */
.philosophy-section{background:#fff;}
.philosophy-lead{max-width:900px;margin:0 auto 36px;text-align:center;padding:34px 28px;border-radius:22px;background:linear-gradient(135deg,#f4f8ff 0%,#fff 100%);box-shadow:0 10px 30px rgba(28,63,117,.08);}
.philosophy-lead h3{font-size:clamp(1.65rem,3vw,2.35rem);margin:0 0 22px;color:#163d72;line-height:1.45;}
.philosophy-lead p{font-size:1.05rem;line-height:2;margin:10px 0;}
.philosophy-support{max-width:1050px;margin:0 auto 38px;}
.philosophy-mini-label{text-align:center;font-weight:800;color:#2f6fb2;letter-spacing:.08em;margin-bottom:8px;}
.philosophy-support>h3{text-align:center;font-size:clamp(1.35rem,2.4vw,1.9rem);margin:0 0 14px;}
.philosophy-support>p:not(.philosophy-mini-label):not(.philosophy-support-line){max-width:850px;margin:0 auto 25px;text-align:center;line-height:1.9;}
.philosophy-points{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:28px 0 20px;}
.philosophy-points>div{padding:22px 15px;border:1px solid #dce7f5;border-radius:16px;background:#fff;text-align:center;box-shadow:0 7px 20px rgba(28,63,117,.06);}
.philosophy-points>div>span{display:block;font-size:.8rem;font-weight:800;color:#2f6fb2;margin-bottom:8px;}
.philosophy-points strong{display:block;color:#163d72;margin-bottom:8px;}
.philosophy-points p{font-size:.9rem;line-height:1.65;margin:0;}
.philosophy-support-line{text-align:center;font-weight:800;font-size:1.08rem;color:#163d72;margin:22px 0 0;}
.philosophy-student{max-width:900px;margin:0 auto 38px;padding:30px;border-left:6px solid #2f6fb2;background:#f8fafc;border-radius:0 18px 18px 0;}
.philosophy-student h3{font-size:clamp(1.3rem,2.4vw,1.8rem);line-height:1.65;margin:0 0 18px;}
.philosophy-student h3 strong{color:#1d5d9b;}
.philosophy-student p{line-height:1.9;}
.philosophy-emphasis{font-weight:800;color:#163d72;margin-bottom:0;}
.philosophy-flow{max-width:1050px;margin:0 auto 26px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;}
.philosophy-flow div{min-width:130px;padding:18px 16px;border-radius:999px;background:#edf4fb;text-align:center;font-weight:800;color:#163d72;}
.philosophy-flow b{color:#7a91aa;font-size:1.4rem;}
.philosophy-flow .philosophy-goal{background:#163d72;color:#fff;}
.philosophy-closing{text-align:center;max-width:900px;margin:0 auto;font-size:1.08rem;line-height:2;}
.philosophy-closing strong{font-size:1.2rem;color:#163d72;}
@media (max-width:900px){.philosophy-points{grid-template-columns:repeat(2,1fr)}.philosophy-points>div:last-child{grid-column:1/-1}.philosophy-flow{gap:7px}.philosophy-flow div{min-width:115px}}
@media (max-width:600px){.philosophy-lead{padding:26px 18px}.philosophy-points{grid-template-columns:1fr}.philosophy-points>div:last-child{grid-column:auto}.philosophy-student{padding:24px 18px}.philosophy-flow{display:grid;grid-template-columns:1fr}.philosophy-flow b{transform:rotate(90deg);text-align:center;line-height:1}.philosophy-flow div{width:100%}}


/* ===== Ver99: 指導理念セクション 視認性・メリハリ強化 ===== */
.philosophy-section {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 18%, #ffffff 82%, #f5f9fd 100%);
  position: relative;
  overflow: hidden;
}
.philosophy-section .section-inner { position: relative; z-index: 1; }
.philosophy-section .section-heading { margin-bottom: 34px; }
.philosophy-section .section-heading h2 { color: #0b2d52; }
.philosophy-lead {
  max-width: 960px;
  margin: 0 auto 44px;
  padding: 42px 36px;
  border: 2px solid #cfe1f4;
  border-top: 7px solid #0d5eb8;
  border-radius: 22px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 62%);
  box-shadow: 0 14px 36px rgba(13, 94, 184, .10);
  text-align: center;
}
.philosophy-lead h3 {
  display: inline-block;
  margin: 0 0 24px;
  padding: 0 8px 8px;
  border-bottom: 4px solid #f2a900;
  color: #0b477f;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.45;
}
.philosophy-lead p { color: #334e68; font-size: 1.08rem; line-height: 2; }
.philosophy-lead p:first-of-type { color: #183b5b; font-weight: 700; }

.philosophy-support {
  max-width: 1080px;
  margin: 0 auto 44px;
  padding: 34px 32px 30px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #d8e6f3;
  box-shadow: 0 10px 28px rgba(28, 63, 117, .07);
}
.philosophy-mini-label {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 7px 18px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #0d5eb8;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.philosophy-support > h3 {
  color: #0b2d52;
  font-weight: 900;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.philosophy-support > p:not(.philosophy-mini-label):not(.philosophy-support-line) { color: #486581; }
.philosophy-points { gap: 14px; }
.philosophy-points > div {
  position: relative;
  padding: 25px 16px 22px;
  border: 1px solid #cfe0f3;
  border-top: 5px solid #0d5eb8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 8px 20px rgba(13, 94, 184, .07);
}
.philosophy-points>div>span {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #0d5eb8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .78rem;
}
.philosophy-points strong { color: #0b477f; font-size: 1.02rem; }
.philosophy-points p { color: #526d82; }
.philosophy-support-line {
  margin: 26px auto 0;
  padding: 16px 20px;
  max-width: 820px;
  border-radius: 12px;
  background: #eaf4ff;
  color: #0b477f;
  font-size: 1.1rem;
  font-weight: 900;
}

.philosophy-student {
  max-width: 960px;
  margin: 0 auto 44px;
  padding: 34px 36px;
  border: 2px solid #f0dca6;
  border-left: 7px solid #e3a008;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf0 0%, #fff 72%);
  box-shadow: 0 10px 26px rgba(117, 83, 13, .07);
}
.philosophy-student h3 { color: #473a20; font-weight: 800; }
.philosophy-student h3 strong { color: #a56300; font-size: 1.08em; }
.philosophy-student p { color: #514a3b; }
.philosophy-emphasis {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff1c9;
  color: #6d4b00;
  font-weight: 900;
}

.philosophy-flow {
  max-width: 1080px;
  margin: 0 auto 30px;
  padding: 26px 22px;
  border-radius: 20px;
  background: #f4f8fc;
  border: 1px solid #dce7f1;
}
.philosophy-flow div {
  min-width: 142px;
  padding: 19px 18px;
  border: 2px solid #bfd6ec;
  background: #fff;
  color: #0b477f;
  box-shadow: 0 5px 14px rgba(13, 94, 184, .06);
}
.philosophy-flow b { color: #0d5eb8; font-size: 1.55rem; }
.philosophy-flow .philosophy-goal {
  border-color: #0d5eb8;
  background: linear-gradient(135deg, #0d5eb8, #0b477f);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 94, 184, .20);
}
.philosophy-closing {
  max-width: 920px;
  padding: 24px 28px;
  border-radius: 16px;
  background: #0b2d52;
  color: #fff;
  font-size: 1.1rem;
  line-height: 2;
}
.philosophy-closing strong { color: #fff; font-size: 1.28rem; }

@media (max-width: 900px) {
  .philosophy-support { padding: 28px 22px; }
  .philosophy-points { grid-template-columns: repeat(2, 1fr); }
  .philosophy-points > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .philosophy-lead { padding: 30px 18px; }
  .philosophy-support { padding: 24px 16px; }
  .philosophy-points { grid-template-columns: 1fr; }
  .philosophy-points > div:last-child { grid-column: auto; }
  .philosophy-student { padding: 26px 20px; }
  .philosophy-flow { padding: 22px 16px; }
  .philosophy-closing { padding: 22px 18px; }
}

/* Ver99: 指導理念 スマホ見出しの孤立改行を調整 */
@media (max-width: 600px) {
  .philosophy-lead h3 {
    display: block;
    font-size: 1.55rem;
    line-height: 1.55;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: -.02em;
  }
  .philosophy-support > h3 {
    font-size: 1.28rem;
    line-height: 1.6;
    letter-spacing: -.025em;
  }
  .philosophy-student h3 {
    font-size: 1.18rem;
    line-height: 1.7;
    letter-spacing: -.025em;
  }
}


/* ===== Ver100: トップページ 本日の開講状況 ===== */
.school-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.school-status-main,
.school-status-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.55;
}
.school-status-main strong,
.school-status-notice strong {
  display: block;
  font-size: .98rem;
}
.school-status-main span:not(.school-status-dot),
.school-status-notice span {
  display: block;
  margin-top: 3px;
  font-size: .84rem;
}
.school-status-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: currentColor;
}
.school-status-open { background: #edf8f1; color: #237a43; }
.school-status-closed { background: #fff0f0; color: #b42318; }
.school-status-special { background: #fff7e6; color: #9a6700; }
.school-status-notice { margin-top: 8px; }
.school-status-notice-warning {
  display: block;
  background: #fff8e8;
  color: #8a5a00;
  border-left: 4px solid #e2a100;
}
.school-status-loading { margin: 0; font-size: .88rem; color: #667085; }
@media (max-width: 600px) {
  .school-status { margin-top: 15px; padding-top: 14px; }
  .school-status-main, .school-status-notice { padding: 11px 12px; }
  .school-status-main strong, .school-status-notice strong { font-size: .93rem; }
}

/* ===== Ver101: トップページ FEATURES 6項目 + 小学生料金の考え方 ===== */
@media (min-width: 1001px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-number-purple { background: #6d4bc3; }
.feature-title-purple { color: #6d4bc3 !important; }
.feature-emphasis-purple { color: #6d4bc3; }

.feature-detail-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.feature-detail-link-orange { color: var(--orange); }
.feature-detail-link:hover { opacity: .78; }
.feature-fee-note { margin-top: 10px !important; font-size: .82rem; color: #667085; }

.cp-tooltip {
  position: relative;
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--blue);
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: help;
}
.cp-tooltip-box {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(290px, 75vw);
  padding: 11px 13px;
  transform: translateX(-50%) translateY(4px);
  border-radius: 10px;
  color: #fff;
  background: #163a67;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
}
.cp-tooltip:hover .cp-tooltip-box,
.cp-tooltip:focus .cp-tooltip-box,
.cp-tooltip:focus-visible .cp-tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.elementary-price-philosophy { background: #fffaf2; }
.price-philosophy-box {
  max-width: 920px;
  margin: 34px auto 0;
  padding: 34px 38px;
  border: 1px solid #f1dfbd;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.price-philosophy-box h3 {
  margin: 0 0 20px;
  color: #d87400;
  font-size: 1.45rem;
}
.price-philosophy-box p { margin: 0 0 18px; line-height: 1.95; }
.price-philosophy-highlight {
  display: grid;
  gap: 7px;
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff4dc;
  text-align: center;
}
.price-philosophy-highlight strong { color: #d76600; font-size: 1.35rem; }
.price-philosophy-highlight span { font-weight: 800; color: #39445a; }

@media (max-width: 760px) {
  .price-philosophy-box { padding: 26px 20px; }
  .price-philosophy-box h3 { font-size: 1.25rem; }
  .price-philosophy-highlight strong { font-size: 1.15rem; }
}


/* ===== Ver104: FEATURES 改行最適化 + 講師紹介タイトル改行修正 ===== */
/* FEATURESカードの見出し：枠で囲み中央揃え */
#features .feature-card .feature-body .feature-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 92px;
  margin: 0 0 18px !important;
  padding: 13px 12px;
  border: 2px solid currentColor;
  border-radius: 12px;
  text-align: center;
}

/* CPツールチップがカードの overflow で切れないようにする */
#features .feature-card:first-child {
  overflow: visible;
  z-index: 10;
}
#features .feature-card:first-child > img {
  border-radius: var(--radius) var(--radius) 0 0;
}
#features .feature-card:first-child .feature-body {
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
}
#features .cp-tooltip {
  position: relative;
  z-index: 20;
}
#features .cp-tooltip-box {
  z-index: 999;
  left: 0;
  right: auto;
  width: 300px;
  max-width: min(300px, calc(100vw - 40px));
  transform: translateY(4px);
}
#features .cp-tooltip:hover .cp-tooltip-box,
#features .cp-tooltip:focus .cp-tooltip-box,
#features .cp-tooltip:focus-visible .cp-tooltip-box {
  transform: translateY(0);
}

@media (max-width: 760px) {
  #features .feature-card .feature-body .feature-title {
    min-height: 0;
    padding: 12px 10px;
  }
  #features .cp-tooltip-box {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 18px;
    width: auto;
    max-width: none;
    transform: translateY(8px);
  }
  #features .cp-tooltip:hover .cp-tooltip-box,
  #features .cp-tooltip:focus .cp-tooltip-box,
  #features .cp-tooltip:focus-visible .cp-tooltip-box {
    transform: translateY(0);
  }
}


/* ===== Ver104: 意味の途中・単語途中で改行させない ===== */
#features .feature-title {
  flex-direction: column;
}
#features .feature-title-line {
  display: block;
  white-space: nowrap;
}
.teacher-title-nowrap {
  white-space: nowrap;
}
@media (max-width: 760px) {
  #features .feature-title {
    font-size: clamp(1.02rem, 4.4vw, 1.18rem);
    line-height: 1.55;
  }
}
@media (max-width: 560px) {
  .teacher-hero h1 {
    font-size: clamp(2rem, 8.2vw, 2.5rem);
    line-height: 1.35;
    letter-spacing: .04em;
  }
}

/* ===== Ver105: トップページ スマホ改行・文言最適化 ===== */
.hero-mobile-lines > span,
.hero-description-final > span,
.timed-heading-line,
.features-main-heading > span,
.test-countdown-note .note-phrase {
  display: block;
}

/* PCではヒーロー1〜3の見出しを従来どおり1行表示 */
@media (min-width: 761px) {
  .hero-mobile-lines > span { display: inline; }
  .hero-mobile-lines .hero-line-indent { margin-left: .28em; }
  .hero-description-final > span { display: inline; }
  .hero-description-final > span + span::before { content: "、"; }
}

.features-main-heading .features-heading-black { color: inherit; }
.features-main-heading .features-heading-blue { color: var(--blue); }
.timed-heading-line { white-space: nowrap; }

/* 説明文は不自然な文字途中折返しを避け、自然な日本語の区切りを優先 */
#top p,
#top .feature-body p,
#top .test-countdown-note {
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
}

@media (max-width: 760px) {
  .hero-mobile-lines > span { display: block; width: max-content; max-width: 100%; }
  .hero-mobile-lines .hero-line-indent { margin-left: 1.65em; }
  .hero-description-final > span { width: max-content; max-width: 100%; }
  .hero-description-final > span + span { margin-top: .12em; }

  .test-countdown-note .note-phrase {
    width: fit-content;
    max-width: 100%;
  }

  .timed-news-heading h2 { line-height: 1.45; }
  .features-main-heading { line-height: 1.4; }
  .features-main-heading > span { width: fit-content; max-width: 100%; margin-inline: auto; }
}

@media (max-width: 420px) {
  .hero-mobile-lines .hero-line-indent { margin-left: 1.35em; }
  .hero-description-final { font-size: .98rem; }
  .timed-news-heading h2 { font-size: clamp(1.22rem, 5.8vw, 1.5rem); }
}


/* ===== Ver107: トップページ スマホ微調整 ===== */
.mobile-only-break { display: none; }
@media (max-width: 760px) {
  .mobile-only-break { display: block; }
  .mobile-break-group { white-space: nowrap; }
}


/* ===== Ver108: 小学生ページ スマホ改行・文言調整 ===== */
.elementary-cycle-accent { color: var(--green); font-weight: 900; }
.elementary-price-philosophy .quote-keep { white-space: nowrap; }
@media (max-width: 760px) {
  .elementary-hero .subpage-hero-content > p:not(.subpage-kicker) { line-height: 1.75; }
  .elementary-price-philosophy .section-heading h2 { line-height: 1.5; }
  .elementary-price-philosophy p { word-break: normal; overflow-wrap: normal; line-break: strict; }
}

/* Ver109 junior-high mobile refinements */
.junior-accent{color:#1687c9;font-weight:800;}
@media (max-width: 768px){
  .simulator-copy{line-height:1.55;}
}


/* ===== Ver110: 中学生ページ 月謝シミュレータ2行固定 ===== */
@media (max-width: 768px){
  .simulator-two-lines > span{display:block; white-space:nowrap;}
  .simulator-note.simulator-two-lines{font-size:clamp(.82rem,3.65vw,.94rem); line-height:1.65;}
  .simulator-copy.simulator-two-lines{font-size:clamp(1.02rem,4.6vw,1.22rem); line-height:1.55;}
}


/* ===== Ver111: 高校生ページ スマホ改行・文言調整 ===== */
.hs-qtei-copy > span,
.hs-system-fee > span,
.hs-contact-heading > span,
.hs-contact-lead > span,
.hs-contact-note > span { display: inline; }
@media (max-width: 768px){
  .hs-qtei-copy > span,
  .hs-system-fee > span,
  .hs-contact-heading > span,
  .hs-contact-lead > span,
  .hs-contact-note > span { display:block; }
  .hs-qtei-copy > span, .hs-fee-copy { white-space:nowrap; }
  .hs-fee-copy { font-size:clamp(.78rem,3.55vw,.92rem); }
  .hs-contact-heading, .hs-contact-lead, .hs-contact-note { line-height:1.55; }
}


/* Ver112: 高校生ページ 料金表スマホ微調整 */
@media (max-width: 767px) {
  .hs-fee-table th,
  .hs-fee-table td {
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .hs-fee-table th {
    font-size: 0.92em;
    line-height: 1.45;
  }
  .hs-fee-table td {
    font-size: 0.92em;
    line-height: 1.45;
  }
}

@media (max-width: 767px) {
  .high-school-fee th, .high-school-fee td,
  .fee-table th, .fee-table td {
    overflow-wrap: normal;
    word-break: keep-all;
    font-size: 0.92em;
    line-height: 1.45;
  }
}


/* ===== Ver113: 高校生料金表 スマホ2行表示調整 ===== */
.hs-system-price > span { display:inline; }
@media (max-width: 768px){
  .highschool-price-sub dl div { gap:12px; align-items:center; }
  .highschool-price-sub .hs-system-fee { flex:0 0 112px; min-width:112px; font-size:.94rem; line-height:1.55; }
  .highschool-price-sub .hs-system-fee > span { display:block; white-space:nowrap; }
  .highschool-price-sub .hs-system-price { flex:1 1 auto; min-width:0; font-size:1.12rem; line-height:1.45; }
  .highschool-price-sub .hs-system-price > span { display:block; white-space:nowrap; }
}


/* ===== Ver114: 料金シミュレータ スマホ改行調整 ===== */
.simulator-heading-lines > span,
.sim-help-heading-lines > span { display:inline; }
@media (max-width: 768px){
  .simulator-heading-lines > span,
  .sim-help-heading-lines > span { display:block; white-space:nowrap; }
  .simulator-intro .simulator-heading-lines { font-size:clamp(1.18rem,5.4vw,1.5rem); line-height:1.5; }
  .simulator-intro .e4-free-line { display:block; white-space:nowrap; font-size:clamp(.74rem,3.45vw,.9rem); }
  .sim-help .sim-help-heading-lines { font-size:clamp(1.35rem,6vw,1.7rem); line-height:1.45; }
}


/* ===== Ver115: 指導理念・講師紹介 スマホ改行調整 ===== */
.philosophy-mobile-break { display: none; }
@media (max-width: 600px) {
  .philosophy-mobile-break { display: inline; }
}


/* ===== Ver118: 合格実績・成績アップ実績 スマホ改行調整 ===== */
.results-mobile-break { display: none; }
.results-support-heading > span,
.results-support-heading > strong { display: block; }
@media (max-width: 600px) {
  .results-mobile-break { display: inline; }
  .results-support-heading > span,
  .results-support-heading > strong {
    display: block;
    white-space: nowrap;
  }
  .results-support-heading {
    font-size: clamp(1.08rem, 4.8vw, 1.38rem);
    line-height: 1.55;
  }
}


/* ===== Ver120: 保護者様の声 スマホ改行調整 ===== */
.voices-mobile-break { display: none; }
@media (max-width: 600px) {
  .voices-mobile-break { display: inline; }
  .voices-next-heading strong {
    white-space: nowrap;
  }
  .voices-next-heading {
    font-size: clamp(1.32rem, 6vw, 1.72rem);
    line-height: 1.55;
  }
}


/* ===== Ver121: 保護者様の声 💬部分 スマホ4行表示調整 ===== */
@media (max-width: 600px) {
  .parent-voice-highlight-text {
    font-size: clamp(.82rem, 3.65vw, .94rem);
    line-height: 1.8;
  }
  .parent-voice-nowrap {
    white-space: nowrap;
  }
}


/* ===== Ver123: 教室案内 スマホ改行調整 ===== */
.classroom-mobile-break { display: none; }
.classroom-visit-mobile { display: none; }
@media (max-width: 600px) {
  .classroom-mobile-break { display: inline; }
  .classroom-support-heading h2 {
    font-size: clamp(1.12rem, 5vw, 1.42rem);
    white-space: nowrap;
  }
  .classroom-visit-desktop { display: none; }
  .classroom-visit-mobile { display: inline; }
  .classroom-visit-heading {
    font-size: clamp(1.28rem, 5.8vw, 1.62rem);
    line-height: 1.55;
  }
}


/* ===== Ver123: 教室案内 スマホ改行再調整 ===== */
@media (max-width: 600px) {
  .classroom-hero-desc { font-size: clamp(.78rem, 3.55vw, .92rem); }
  .classroom-hero-inner .classroom-hero-desc br { display: block !important; }
  .classroom-hero-desc > span { white-space: nowrap; }
  .classroom-visit-mobile > span { white-space: nowrap; }
}


/* ===== Ver125: A-pass見出し スマホ3行表示調整 ===== */
.apass-title-lines > .apass-title-text,
.apass-title-lines > .apass-title-brand { display: inline; }
.apass-title-lines > .apass-title-brand { color: var(--green); }
@media (max-width: 600px) {
  .apass-heading .apass-title-lines > .apass-title-text,
  .apass-heading .apass-title-lines > .apass-title-brand {
    display: block;
    white-space: nowrap;
  }
  .apass-heading .apass-title-lines {
    font-size: clamp(1.72rem, 7.7vw, 2.05rem);
    line-height: 1.55;
  }
}

/* ===== Ver126: A-pass見出し スマホ文字色調整 ===== */
.apass-heading .apass-title-lines > .apass-title-text { color: var(--ink); }
.apass-heading .apass-title-lines > .apass-title-brand { color: var(--green); }


/* ===== Ver127: おすすめ受講例 スマホ3行表示調整 ===== */
@media (max-width: 600px) {
  .section-heading .recommend-intro-line {
    white-space: nowrap;
  }
}


/* ===== Ver128: お問い合わせページ メール公開終了・無料体験申込手順 ===== */
.trial-steps { display:grid; gap:12px; margin-top:18px; }
.trial-step { padding:14px 16px; border-radius:12px; background:#f7fafc; }
.trial-step strong { display:flex; align-items:center; gap:9px; color:#294e70; font-size:1rem; line-height:1.5; }
.trial-step strong span { display:inline-flex; align-items:center; justify-content:center; flex:0 0 27px; width:27px; height:27px; border-radius:50%; background:#f2a32a; color:#fff; font-size:.86rem; }
.trial-step p { margin:7px 0 0 36px; color:#5a6875; line-height:1.75; }
.trial-step-emphasis { background:#fff7e8; border:1px solid #f5d08c; }
.trial-step-emphasis strong { color:#8a5700; }
@media (max-width: 767px) {
  .trial-step { padding:13px 14px; }
  .trial-step p { margin-left:0; }
}


/* Ver137: 近隣地域SEO・学校一覧 */
.regional-intro { padding: 30px 20px 10px; }
.regional-intro .section-inner { max-width: 1120px; margin: 0 auto; }
.regional-intro-inner { text-align: center; padding: 24px 28px; border-radius: 14px; background: #f1f7fc; }
.regional-intro-inner h2 { font-size: clamp(1.15rem, 2.3vw, 1.55rem); line-height: 1.65; margin: 0 0 10px; color: #17456d; }
.regional-intro-inner p { line-height: 1.9; margin: 0 auto; max-width: 880px; }
.regional-schools-section .section-heading { text-align: center; }
.regional-schools-section .section-heading p { max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.9; }
.regional-school-list { max-width: 860px; margin: 24px auto 0; }
@media (max-width: 767px) {
  .regional-intro { padding: 18px 16px 0; }
  .regional-intro-inner { padding: 20px 16px; }
  .regional-intro-inner h2 { font-size: 1.12rem; }
  .regional-intro-inner p, .regional-schools-section .section-heading p { text-align: left; }
  .regional-school-list { margin-top: 18px; }
}

/* Ver137 smartphone line-break refinement */
.regional-mobile-break { display: none; }
.regional-nowrap { white-space: nowrap; }
@media (max-width: 767px) {
  .regional-mobile-break { display: initial; }
  .regional-schools-section .section-heading h2 {
    font-size: clamp(1.15rem, 5.2vw, 1.4rem);
    line-height: 1.6;
    letter-spacing: 0;
    overflow-wrap: normal;
  }
  .regional-schools-section .section-heading p {
    line-height: 1.95;
    overflow-wrap: normal;
  }
}

/* Ver140: 無料プリント・近日公開ページ */
.course-image-freeprint{display:grid;place-items:center;background:linear-gradient(135deg,#e1efff,#f1f7ff);}
.freeprint-card-icon{font-size:5.5rem;color:#2464a2;line-height:1;}
.course-title-freeprint{font-size:1.02rem;line-height:1.45;}
.freeprint-hero{padding:80px 20px 68px;background:linear-gradient(135deg,#eaf4ff,#fff);text-align:center;}
.freeprint-inner{max-width:850px;margin:auto;}
.freeprint-eyebrow{font-weight:700;color:#315e91;letter-spacing:.04em;}
.freeprint-hero h1{margin:18px 0;font-size:clamp(1.8rem,4vw,2.9rem);line-height:1.45;color:#163f70;}
.freeprint-status{display:inline-block;border-radius:99px;padding:9px 24px;background:#fff2cc;color:#7b5600;font-weight:800;}
.freeprint-lead{margin:24px auto 0;max-width:690px;line-height:1.9;}
.freeprint-content{max-width:1040px;margin:auto;}
.freeprint-content h2{text-align:center;margin-bottom:16px;}
.freeprint-content>p{text-align:center;line-height:1.9;}
.freeprint-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:30px 0;}
.freeprint-categories article{border:1px solid #dbe5ef;border-radius:14px;background:#fff;padding:24px;box-shadow:0 5px 18px rgba(20,55,90,.06);}
.freeprint-categories h3{margin:0 0 10px;color:#245b92;font-size:1.15rem;}
.freeprint-categories p{margin:0;line-height:1.75;}
.freeprint-note{padding:18px;border-radius:12px;background:#f0f6fc;}
.freeprint-back{margin-top:30px;}
@media(min-width:1101px){.course-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.main-nav{gap:12px;font-size:.8rem}.header-inner{gap:14px}}
@media(max-width:620px){.freeprint-hero{padding:55px 18px 48px}.freeprint-categories{grid-template-columns:1fr}.freeprint-categories article{padding:20px}}

/* Ver140: free print usage notes */
.freeprint-usage { margin: 3rem 0 1.5rem; padding: 1.25rem 1.5rem; background: #f7f9fc; border: 1px solid #e1e7ee; border-radius: 10px; }
.freeprint-usage h2 { font-size: 1.05rem; margin: 0 0 1rem; }
.freeprint-usage p { font-size: .88rem; line-height: 1.85; margin: 0 0 .7rem; }
.freeprint-usage p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .freeprint-usage { padding: 1rem; margin-top: 2rem; } .freeprint-usage p { font-size: .84rem; } }
