/* ==================================================
   スマホ表示（768px以下）
================================================== */
@media (max-width: 768px) {
  :root {
    --container-padding: 14px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-grid,
  .about,
  .features,
  .class-grid,
  .teachers {
    grid-template-columns: 1fr;
  }

  .lp-bar {
    padding: 12px 16px;
    font-size: 22px;
  }

  .diagram {
    padding: 20px 8px 18px;
  }

  .diagram__row {
    flex-direction: column;
    gap: 16px;
  }

  .circle {
    width: 160px;
    height: 160px;
    padding: 16px;
    font-size: 14px;
  }

  .lp-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;

    margin-right: 0;
    margin-left: 0;

    border-right: none;
    border-left: none;
  }

  .lp {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .btn {
    width: 100%;
  }

  .info-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .flow-button {
    width: 100%;
    min-width: 0;
  }
/* ==================================================
   header
================================================== */
  /* Added: public header responsive layout */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    width: 100%;
  }

  .site-header__inner {
    position: relative;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    min-height: 78px;
    gap: 18px;
  }

  .header-toggle {
    position: relative;
    display: inline-flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 320;
    padding: 16px;
    border: 1px solid rgba(83, 178, 233, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(47, 108, 146, 0.12);
  }

  .site-header.is-menu-open .site-menu {
    display: grid;
    gap: 16px;
  }

  .nav-links {
    display: grid;
    justify-content: stretch;
    gap: 8px;
  }

  .site-menu .nav-links a {
    display: block;
    padding: 12px 14px;

    background: transparent;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;

    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      transform 0.2s ease;
  }

  .site-menu .nav-links a::after {
    display: none;
  }

  .site-menu .nav-links a:hover,
  .site-menu .nav-links a:focus-visible {
    color: #fff;
    background: linear-gradient(
      135deg,
      #9aeaff 0%,
      #6ddfff 45%,
      #32c8f5 100%
    );
    box-shadow: 0 6px 16px rgba(34, 174, 222, 0.28);
    text-shadow: 0 1px 3px rgba(0, 105, 155, 0.38);
  }

  .site-menu .nav-links a:active {
    color: #fff;
    background: #0daee5;
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-start;
  }

  /* Added: public header mobile layout */
  .site-header__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header__logo {
    justify-content: flex-start;
  }

  .header-toggle {
    justify-self: end;
  }

  .site-menu {
    padding: 14px;
  }

  .logo {
    font-size: 26px;
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    flex-wrap: wrap;
  }
/* ==================================================
   footer
================================================== */
  .site-footer {
    margin-top: 40px;
    padding-bottom: 24px;
  }
  .site-footer__lead {
    font-size: 14px;
  }
  .site-footer__nav {
    display: grid;
    gap: 10px;
  }


/* ==================================================
   Hero
================================================== */
.hero-card img {
  height: 220px;
}

/* 下層ページの見出し */
.page-hero {
  min-height: 148px;
  padding: 18px;
}

.page-hero .page-breadcrumb {
  top: 18px;
  right: 18px;
  left: 18px;
}

.page-hero h1 {
  font-size: clamp(28px, 6.2vw, 34px);
}

/* トップページのスライドバナー */
.hero {
  width: 100vw;
  max-width: none;
  box-sizing: border-box;

  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 0 0 20px;

  overflow: hidden;
}

.hero h1 {
  font-size: clamp(24px, 6vw, 34px);
}

.hero-grid {
  gap: 28px;
}

.hero-carousel {
  position: relative;

  display: block;

  width: 100%;
  overflow: hidden;
}

/* 左右の矢印を非表示 */
.hero .hero__nav {
  display: none;
}

/* スライド表示領域 */
.hero__viewport {
  display: flex;

  width: 100%;
  box-sizing: border-box;

  gap: 0;
  padding: 0 0 14px;
  overflow-x: auto;

  scroll-padding-inline: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero__viewport::-webkit-scrollbar {
  display: none;
}

/* バナー1枚を画面幅いっぱいにする */
.hero__slide {
  flex: 0 0 100%;

  width: 100%;
  min-width: 100%;

  scroll-snap-align: start;
}

/* バナー本体 */
.hero__visual {
  width: 100%;
  min-height: 240px;

  border-radius: 0;
}

/* バナー画像 */
.hero__media {
  display: block;

  width: 100%;
  height: 100%;
}

.hero__media img,
.hero__ph {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 240px;

  border-radius: 0;
  object-fit: cover;
}

/* キャプション */
.hero__panel {
  right: 14px;
  bottom: 14px;
  left: 14px;

  max-width: none;
  padding: 12px 14px;

  border-radius: 14px;
}

.hero__target.hero__target--caption {
  font-size: 16px;
  line-height: 1.5;
}

.hero__caption p {
  font-size: 12px;
}

/* ドット */
.hero__dots {
  gap: 7px;
  padding: 5px 0 2px;
}

.hero__dots button {
  width: 8px;
  height: 8px;
}
/* ==================================================
   news
================================================== */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .news-card {
    max-width: none;
  }

/* ==================================================
   message
================================================== */
  .copy {
    padding: 14px 14px 18px;
  }

  .copy p {
    font-size: 13px;
    line-height: 1.8;
  }

  .message .copy > p {
    padding: 14px 16px 22px;
    font-size: 16px;
    line-height: 1.85;
  }
/* ==================================================
   features
================================================== */
/* 特徴カードを2列表示 */
.features-section .reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* カード本体 */
.features-section .reason {
  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  box-sizing: border-box;

  margin: 0;
  padding: 14px 10px 16px;
  overflow: hidden;

  border-radius: 18px;
}

/* 正方形の画像枠 */
.features-section .reason__icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;

  margin: 0 auto 12px;
  overflow: hidden;

  border-radius: 14px;
}

/* 画像全体を切らずに表示 */
.features-section .reason__icon img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* タイトル */
.features-section .reason h3 {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 2px;

  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-align: center;

  white-space: normal;
  overflow-wrap: anywhere;
}

/* 説明文がある場合 */
.features-section .reason p {
  margin: 8px 0 0;

  font-size: 12px;
  line-height: 1.6;
  text-align: left;

  overflow-wrap: anywhere;
}
/* ==================================================
   classes
================================================== */
  .classes-section {
    padding: 30px 20px 26px;
    border-radius: 24px;
  }

  .classes-section {
    padding: 22px 14px 20px;
  }

  .classes-section .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
    margin-bottom: 18px;
  }

  .classes-section .tab,
  .classes-section .class-label {
    min-height: 46px;
    padding: 0 14px;
    font-size: 16px;
  }

  .classes-section .tab {
    width: 100%;
  }

  .classes-section .class-label {
    margin-left: 7%;
  }

  .classes-section .class-grid,
  .classes-section .class-grid--featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .classes-section .class-card {
    width: min(100%, 86%);
    margin: 0 auto;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .classes-section .class-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .classes-section .class-thumb {
    width: min(100%, 78%);
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .classes-section .class-card p {
    font-size: 18px;
    line-height: 1.9;
  }

  .class-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .class-link-card {
    min-height: 0;
    padding: 20px 18px;
    border-radius: 20px;
  }
/* ==================================================
   courses
================================================== */
.courses {
  margin-bottom: 18px;
  padding: 24px 14px 22px;
  border-radius: 22px;
}

.courses__heading {
  margin-bottom: 20px;
  font-size: 22px;
}

/* カードと矢印の位置基準 */
.courses__slider-body {
  position: relative;
}

/* 左右の矢印 */
.courses__nav {
  top: 50%;

  width: 30px;
  height: 30px;

  font-size: 20px;

  opacity: 0.62;
  transform: translateY(-50%);
}

.courses__nav--prev {
  left: 5px;
}

.courses__nav--next {
  right: 5px;
}

.courses__nav--prev:hover {
  transform: translate(-2px, -50%);
}

.courses__nav--next:hover {
  transform: translate(2px, -50%);
}

/* カード表示領域 */
.courses__viewport {
  gap: 14px;
}

/* クラスカード */
.course-card {
  min-height: 0;
  padding: 18px 38px 16px;
}

/* カテゴリ */
.course-card__tag {
  min-height: 26px;
  font-size: 12px;
}

/* カードタイトル */
.course-card h3 {
  margin: 16px 0 14px;
  font-size: 20px;
}

/* カード本文 */
.course-card p {
  font-size: 14px;
  line-height: 1.75;
}

/* ==================================================
   speakers
================================================== */
  .speakers__heading {
    margin-bottom: 18px;
    font-size: 24px;
  }

  .speakers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .speakers {
    margin: 16px 0 22px;
    padding: 24px 14px 26px;
    border-radius: 22px;
  }

  .speaker-card {
    padding: 14px;
  }

  .speaker-card__photo::after {
    height: 8px;
  }

  .speaker-card__body {
    padding-top: 10px;
  }

  .speaker-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .speaker-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .speakers__cta {
    margin-top: 22px;
  }

  .speakers__cta a {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

/* ==================================================
   teacher
================================================== */
  .teacher-card { grid-template-columns: 90px 1fr; }
  .teacher-card img { width: 90px; height: 90px; }

  .teacher-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .teacher-card img {
    width: 100%;
    height: 220px;
  }


/* ==================================================
   results
================================================== */
.results {
  padding: 18px 16px 20px;
}

.results-section .results {
  padding: 18px 16px 20px;

  font-size: 14px;
  line-height: 1.7;
}

/* 合格実績バッジ */
.results__badge {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  margin-bottom: 14px;
  padding: 8px 14px;

  font-size: 14px;
}

/* 小学校・幼稚園を縦1列にする */
.results-section .results__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;

  width: 100%;
}

/* 各一覧ボックス */
.results-section .results__box {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 18px 14px;
}

/* 小学校・幼稚園の見出し */
.results-section .results h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

/* 学校一覧 */
.results__list {
  margin-bottom: 0;
}

.results__list li {
  margin-bottom: 4px;

  font-size: 15px;
  line-height: 1.65;

  overflow-wrap: anywhere;
}

.results__list li:last-child {
  margin-bottom: 0;
}

/* 締めの文章 */
.results-section .results .results__closing {
  margin-top: 18px;

  font-size: clamp(16px, 4.2vw, 20px);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
/* ==================================================
   voice
================================================== */
.voices-section {
  padding: 0 14px 18px;
}

.voices-section .lp-bar {
  margin: 0 -14px 14px;
}

/* 外枠 */
.voice-slider {
  margin-top: 14px;
  padding: 24px 8px 22px;
  border-radius: 22px;
}

/* 見出し */
.voice-slider__heading {
  margin-bottom: 20px;
  font-size: 22px;
}

/*
 * 全スライドを同じ場所へ重ねる。
 * 最長のスライドを基準に高さが固定される。
 */
.voice-slider__viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);

  width: 100%;
  min-height: 220px;
}

/* 表示・非表示に関係なく全スライドへ適用 */
.voices-section .voice-slider .voice-slide {
  grid-area: 1 / 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: 100%;
  min-width: 0;
  min-height: 220px;
  max-width: none;
  box-sizing: border-box;

  padding: 24px 36px;
}

/* 表示中のスライド */
.voices-section .voice-slider .voice-slide.is-active {
  z-index: 1;
}

/* 本文 */
.voices-section .voice-slider .voice-slide blockquote {
  width: 100%;
  max-width: none;
  box-sizing: border-box;

  margin: 0;
  padding: 0;

  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  text-align: center;

  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

/* 引用符 */
.voice-slide blockquote::before,
.voice-slide blockquote::after {
  font-size: 26px;
}

/* 保護者名 */
.voice-slide cite {
  font-size: 12px;
  line-height: 1.5;
}

/* 控えめな矢印 */
.voice-slider__nav {
  width: 30px;
  height: 30px;

  font-size: 20px;
  opacity: 0.62;
}

.voice-slider__nav--prev {
  left: 8px;
}

.voice-slider__nav--next {
  right: 8px;
}
/* ==================================================
   flow-card
================================================== */
  .flow-section {
    padding: 0 14px 18px;
  }

  /* 保護者様の声と同じ横幅 */
  .flow-section > .lp-bar {
    margin: 0 -14px 14px;
  }

  .flow-card {
    margin-top: 16px;
    padding: 24px 16px 18px;

    border-radius: 24px;
  }

  .flow-list {
    padding-top: 14px;
  }

  .flow-list::before {
    left: 78px;

    width: 14px;
  }

  .flow-item {
    grid-template-columns: 64px 24px minmax(0, 1fr);
    column-gap: 12px;

    min-height: 170px;
    margin-bottom: 18px;
  }

  .flow-item.tight {
    min-height: 112px;
    margin-bottom: 0;
  }

  .flow-step {
    margin-top: 2px;
    padding: 10px 4px;

    font-size: 12px;
  }

  .flow-step::after {
    right: -8px;

    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 8px;
  }

  .flow-dot::before {
    top: 10px;

    width: 8px;
    height: 8px;
  }

  .flow-dot::after {
    top: 13px;
    left: 8px;

    width: 28px;
  }

  .flow-content {
    padding: 16px 14px 14px;

    border-radius: 18px;
  }

  .flow-content h3 {
    font-size: 16px;
    line-height: 1.5;
  }

  .flow-content p {
    margin-top: 12px;

    font-size: 14px;
    line-height: 1.75;
  }

  .flow-button {
    width: 100%;
    min-width: 0;

    margin-top: 16px;
    padding: 12px 14px;

    font-size: 14px;
    line-height: 1.5;
  }
/* ==================================================
   learning
================================================== */
.learning {
  width: 100%;
  box-sizing: border-box;

  margin-bottom: 20px;
  padding: 22px 16px 18px;
}

/* セクション上部の見出し */
.learning__heading {
  margin-bottom: 18px;

  font-size: clamp(17px, 5vw, 22px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* PC用の強制改行をスマホでは解除 */
.learning__pc-break {
  display: none;
}

/* パネルを横幅いっぱいにする */
.learning__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);

  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* 本文領域 */
.learning__body {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;

  padding: 20px 12px 18px;
}

/* カード内の見出し */
.learning__body h3 {
  width: 100%;
  max-width: none;
  box-sizing: border-box;

  margin: 0 0 12px;
  padding: 0;

  font-size: clamp(18px, 5vw, 21px);
  line-height: 1.65;
  letter-spacing: 0;
  text-align: left;

  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 本文を外枠いっぱいまで広げる */
.learning .learning__body p {
  display: block;

  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;

  margin: 0;
  padding: 0;

  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  text-align: left;

  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 会社概要ボタン */
.learning__cta {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;

  font-size: 14px;
}

/* スマホ版：代表者画像 */
.learning__visual {
  /* display: none; */
  width: min(58%, 230px);
  min-height: 0;
  aspect-ratio: 1 / 1.2;
  box-sizing: border-box;

  margin: 18px auto 24px;

  border-left: 0;
  border-radius: 18px;
}

.learning__visual img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 20%;
}
/* ==================================================
   contact
================================================== */
  .contact {
    padding: 28px 12px 26px;
    border-radius: 16px;
  }

  .contact__box {
    width: 100%;
    padding: 24px 0;
  }

  /* 見出し */
  .contact h2 {
    margin-bottom: 12px;

    font-size: 20px;
    line-height: 1.5;
  }

  /* 電話・FAX */
  .contact .phone,
  .contact .fax {
    margin: 4px 0;

    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  /* 住所 */
  .contact p {
    font-size: 13px;
    line-height: 1.65;
  }

  /* 電話番号とFAXには22pxを維持 */
  .contact p.phone,
  .contact p.fax,
  .contact p.email {
    font-size: 18px;
  }
/* ==================================================
   footer
================================================== */
  .site-footer__inner {
    padding: 28px 18px 24px;
    border-radius: 0;
    text-align: center;
  }

  /* 教室名と説明 */
  .site-footer__brand {
    width: 100%;
    text-align: center;
  }

  .site-footer__logo {
    display: inline-block;
    text-align: center;
  }

  .site-footer__lead {
    margin-right: auto;
    margin-left: auto;

    font-size: 14px;
    line-height: 1.75;
    text-align: center;
  }

  /* フッターナビゲーション */
  .site-footer__nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;

    width: 100%;
    text-align: center;
  }

  .site-footer__nav a {
    display: inline-flex;
    justify-content: center;

    width: fit-content;
    text-align: center;
  }

  /* スケジュール・お問い合わせ */
  .site-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    width: min(100%, 320px);
    margin-right: auto;
    margin-left: auto;
  }

  /* Instagram */
  .site-footer__social {
    display: flex;
    justify-content: center;

    width: 100%;
  }

  /* コピーライト */
  .site-footer__copy {
    width: 100%;
    text-align: center;
  }
}
