/* ホームページ更新（2026-10）で足した部品。既存の style.css の見た目（緑 #69AF8D・ベージュ #F3F4EF・波の区切り）に合わせている */

:root {
  --hm-green: #69AF8D;
  --hm-green-dark: #2f906b;
  --hm-beige: #F3F4EF;
  --hm-text: #434343;
  --hm-line: #06C755;
}

/* 見出しの改行：語のまとまりの途中で折り返さない */
.hm-nb {
  display: inline-block;
}

/* メイン画像の一言 */
.hm-mv-logo img {
  width: 100%;
}

.hm-mv-catch {
  margin-top: 28px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 3px;
  color: var(--hm-green); /* ロゴと同じ色 #68AF8D */
  white-space: nowrap;
}

@media screen and (max-width: 751px) {
  .hm-mv-catch {
    font-size: 19px;
    letter-spacing: 2px;
  }
}

/* Michibikiゼミとは：段落ごとに余白 */
.hm-about-text p {
  margin-bottom: 1.4em;
  line-height: 1.9;
}

/* 新しく足したセクション */
.hm-section {
  position: relative;
}

.hm-section--green {
  background-color: var(--hm-green);
}

.hm-section--white {
  background-color: #fff;
}

.hm-area-title--white h4,
.hm-area-title--white h2 {
  color: #fff;
}

.hm-area-title--gap {
  margin-top: 90px;
}

.hm-section--green .hm-area-title--white h4 {
  color: var(--hm-beige);
}

/* 白いカード */
.hm-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 36px;
  line-height: 1.9;
}

.hm-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 12px;
}

.hm-card__area {
  margin-top: 10px;
  font-weight: 700;
}

.hm-card__link a {
  color: var(--hm-green-dark);
  text-decoration: underline;
}

.hm-note {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}

.hm-note--white {
  color: #fff;
  margin: 18px 0 40px;
}

/* 無料オンライン相談 */
.hm-consult {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--hm-green);
  border-radius: 24px;
  padding: 44px 48px;
  line-height: 1.9;
  position: relative;
  z-index: 5;
}

.hm-consult__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hm-green-dark);
  text-align: center;
  margin-bottom: 20px;
}

.hm-consult__strong {
  margin: 22px 0;
  padding: 14px 10px;
  border-radius: 12px;
  background: #eaf5ef;
  color: var(--hm-green-dark);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.hm-check-list li {
  padding-left: 1.4em;
  text-indent: -1.4em;
  margin-bottom: 4px;
}

.hm-check-list li::before {
  content: "✓";
  display: inline-block;
  width: 1.4em;
  text-indent: 0;
  color: var(--hm-green-dark);
  font-weight: 700;
}

/* LINE相談ボタン */
.hm-cta {
  margin-top: 28px;
  text-align: center;
}

.hm-cta--center {
  margin-top: 70px;
}

.hm-cta__lead {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.hm-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--hm-line);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 0 #04a045;
  transition: transform .15s, box-shadow .15s;
}

.hm-line-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #04a045;
}

.hm-line-btn__text {
  white-space: nowrap;
}

.hm-line-btn__badge {
  background: #fff;
  color: var(--hm-line);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 13px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

/* 選ばれる理由 */
.hm-reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.hm-reason {
  background: #fff;
  border-radius: 24px;
  padding: 30px 32px;
  line-height: 1.9;
}

.hm-reason__num {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  color: var(--hm-green);
  font-size: 20px;
}

.hm-reason__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin: 4px 0 10px;
}

.hm-reason__text strong {
  font-weight: 700;
}

/* 採択・評価 */
.hm-sponsor {
  text-align: center;
  margin-bottom: 90px;
}

.hm-sponsor__lead {
  font-weight: 500;
  margin-bottom: 20px;
}

.hm-sponsor__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hm-sponsor__list li {
  width: 140px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e3e6dc;
  border-radius: 12px;
  box-sizing: border-box;
}

.hm-sponsor__list img {
  width: 100%;
  height: 44px;
  object-fit: contain;
}

/* 保護者の声 */
.hm-voices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.hm-voices .hm-voice {
  width: calc((100% - 44px) / 3);
  box-sizing: border-box;
}

.hm-voice-page .hm-voices .hm-voice {
  width: calc((100% - 22px) / 2);
}

.hm-voice {
  background: var(--hm-beige);
  border-radius: 24px;
  padding: 28px 28px;
  line-height: 1.9;
}

.hm-voice__label {
  font-size: 14px;
  color: var(--hm-green-dark);
}

.hm-voice__title {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0 10px;
}

.hm-satisfaction {
  text-align: center;
  margin: 50px auto 40px;
}

.hm-satisfaction__label {
  font-weight: 700;
}

.hm-satisfaction__num {
  font-family: "Rajdhani", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hm-green-dark);
}

.hm-satisfaction__note {
  font-size: 13px;
}

/* 授業形態・授業料 */
.hm-forms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hm-price {
  max-width: 640px;
  margin: 0 auto;
}

.hm-price__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px dashed #cfd8cf;
  font-size: 18px;
}

.hm-price__row dd {
  font-weight: 700;
  color: var(--hm-green-dark);
}

.hm-price__list {
  margin-bottom: 12px;
}

/* 入塾の流れ */
.hm-flow {
  max-width: 640px;
  margin: 0 auto;
  counter-reset: none;
}

.hm-flow__step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  background: var(--hm-beige);
  border-radius: 999px;
  margin-bottom: 26px;
  position: relative;
  font-weight: 500;
}

.hm-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: 10px solid var(--hm-green);
}

.hm-flow__num {
  flex-shrink: 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--hm-green);
  border-radius: 999px;
  padding: 2px 12px;
}

/* よくある質問 */
.hm-faq {
  max-width: 760px;
  margin: 0 auto;
}

.hm-faq__item {
  border-bottom: 1px solid #e3e6dc;
  padding: 18px 4px;
  line-height: 1.9;
}

.hm-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding-right: 28px;
  position: relative;
}

.hm-faq__item summary::-webkit-details-marker {
  display: none;
}

.hm-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--hm-green-dark);
  font-size: 20px;
}

.hm-faq__item[open] summary::after {
  content: "−";
}

.hm-faq__item p {
  margin-top: 10px;
}

.hm-faq__q,
.hm-faq__a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-right: 10px;
}

.hm-faq__a {
  color: #e08a3c;
}

/* 特徴ページ：比較表・進路・授業コース */
.hm-compare-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 30px 24px;
}

.hm-compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.6;
}

.hm-compare th,
.hm-compare td {
  padding: 12px 8px;
  border-bottom: 1px solid #e3e6dc;
  text-align: center;
  font-size: 15px;
}

.hm-compare thead th {
  font-weight: 700;
}

.hm-compare .hm-compare__label {
  width: 20%;
  font-weight: 500;
}

.hm-compare .hm-compare__mine {
  background: var(--hm-green);
  color: #fff;
}

.hm-compare .hm-compare__mine strong {
  font-weight: 700;
}

.hm-compare-axis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
}

.hm-compare-axis__left { color: #3f7fcf; }
.hm-compare-axis__right { color: #d08a2a; }
.hm-compare-axis__center {
  background: var(--hm-green-dark);
  color: #fff;
  border-radius: 999px;
  padding: 4px 16px;
}

.hm-career {
  background: #fff;
  border-radius: 24px;
  padding: 36px 40px;
  margin-top: 40px;
  text-align: center;
  line-height: 1.9;
}

.hm-career__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 14px;
}

.hm-course {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hm-course__step {
  background: var(--hm-beige);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  line-height: 1.8;
}

.hm-course__step img {
  width: 70%;
  max-width: 120px;
  margin: 0 auto 10px;
  display: block;
}

.hm-course__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 6px;
}



/* 右下の浮きバナー（LINE相談） */
.hm-float-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 88;
}

.hm-float-cta__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* 吹き出し：入塾相談・体験授業はこちら */
.hm-float-cta__label {
  position: relative;
  background: #fff;
  color: var(--hm-green-dark);
  border: 2px solid var(--hm-green);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.hm-float-cta__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 7px solid var(--hm-green);
  border-bottom: 0;
}

.hm-float-cta .hm-line-btn {
  font-size: 15px;
  padding: 12px 22px;
}

/* スマホ */
@media screen and (max-width: 751px) {
  .hm-consult {
    padding: 28px 20px;
  }

  .hm-consult__title {
    font-size: 19px;
  }

  .hm-consult__strong {
    font-size: 15px;
    padding: 12px 6px;
  }

  .hm-reasons,
  .hm-forms {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hm-voices {
    gap: 16px;
  }

  .hm-voices .hm-voice,
  .hm-voice-page .hm-voices .hm-voice {
    width: 100%;
  }

  .hm-reason,
  .hm-voice,
  .hm-card {
    padding: 24px 20px;
  }

  .hm-course {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hm-course__step img {
    width: 90px;
  }

  .hm-sponsor {
    margin-bottom: 60px;
  }

  .hm-sponsor__list {
    gap: 8px;
  }

  .hm-sponsor__list li {
    width: calc(33.333% - 6px);
    padding: 6px;
  }

  .hm-sponsor__list img {
    height: 32px;
  }

  .hm-line-btn {
    font-size: 15px;
    padding: 14px 20px;
    gap: 8px;
  }

  .hm-flow__step {
    border-radius: 18px;
    padding: 12px 16px;
    gap: 12px;
  }

  .hm-compare-wrap {
    padding: 18px 8px;
  }

  .hm-compare th,
  .hm-compare td {
    font-size: 10.5px;
    padding: 10px 3px;
    letter-spacing: 0;
  }

  .hm-compare-axis {
    font-size: 10px;
  }

  .hm-compare-axis__center {
    padding: 3px 8px;
  }

  .hm-career {
    padding: 26px 20px;
  }

  .hm-career__title {
    font-size: 18px;
  }

  .hm-float-cta {
    right: 10px;
    bottom: 10px;
  }

  .hm-float-cta .hm-line-btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .hm-float-cta__label {
    font-size: 11px;
    padding: 4px 12px;
  }

  .hm-float-cta__link {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-line-btn {
    transition: none;
  }
}

.hm-voice--white {
  background: #fff;
}

.hm-course-lead {
  margin: -10px 0 30px;
  line-height: 1.9;
}

/* 「詳しくはこちら」は中央揃え（保護者の声の下だけ左寄せだったのを揃える） */
.top-section4 .top4-btn {
  margin: 0 auto;
  padding-left: 0;
}

/* note・ブログの記事カード */
.hm-note-area {
  margin-top: 70px;
}

.hm-note-area__title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 12px;
}

.hm-note-area__lead {
  text-align: center;
  line-height: 1.9;
  margin-bottom: 28px;
}

.hm-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hm-feed__item a {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--hm-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: transform .15s;
}

.hm-feed__item a:hover {
  transform: translateY(-2px);
}

.hm-feed__img {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--hm-beige);
}

.hm-feed__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-feed__date {
  display: block;
  padding: 12px 16px 0;
  font-size: 12px;
  color: var(--hm-green-dark);
  font-family: "Rajdhani", sans-serif;
}

.hm-feed__title {
  display: block;
  padding: 4px 16px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.hm-more {
  text-align: center;
  margin-top: 24px;
}

.hm-more a {
  color: var(--hm-green-dark);
  font-weight: 700;
  text-decoration: underline;
}

.hm-blog-area {
  background: var(--hm-beige);
  position: relative;
}

@media screen and (max-width: 751px) {
  .hm-feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hm-note-area__title {
    font-size: 18px;
  }
}

/* 波の画像の下にできる数pxのすき間（画像のベースライン分）を消す */
.top-section4 > .top-nami img,
.hm-section > .top-nami img {
  display: block;
}

.hm-section--green,
.hm-section--white {
  margin-top: -1px;
}

@media screen and (max-width: 751px) {
  .hm-note-area__lead {
    text-align: left;
  }
}

/* 特徴ページ「選ばれる理由」の見出し：中央揃えなのに左の余白(6%)が残って右に寄っていたのを解消 */
@media screen and (min-width: 752px) {
  .features1-areatitle {
    padding-left: 0;
  }

  /* 特徴ページの見出しをトップページと同じ28pxに（元は22px） */
  .features1-areatitle h2,
  .features2-areatitle h2 {
    font-size: 28px;
  }
}

/* サポート体制：各種機関との連携 */
.hm-liaison {
  max-width: 760px;
  margin: 50px auto 0;
  background: var(--hm-beige);
}

.hm-liaison__cases {
  margin-top: 10px;
}

/* aboutページ：比較表 */
.hm-about-compare {
  position: relative;
  z-index: 5;
  padding: 10px 0 90px;
}

.hm-about-compare__inner {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}

.hm-about-compare__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 24px;
}

.hm-about-compare .hm-compare-wrap {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

@media screen and (max-width: 751px) {
  .hm-about-compare {
    padding: 0 0 60px;
  }

  .hm-about-compare__inner {
    width: 92%;
  }

  .hm-about-compare__title {
    font-size: 18px;
  }
}

/* 比較表の軸（LPの .lp-compare__axis と同じデザイン） */
.hm-compare .hm-compare__axis-row th {
  border-bottom: none;
  padding: 0 0 14px;
}

.hm-axis {
  position: relative;
  height: 74px;
}

.hm-axis__left,
.hm-axis__right {
  position: absolute;
  top: 0;
  font-weight: 700;
  font-size: 15px;
}

.hm-axis__left {
  left: 0;
  color: #3b7dd8;
}

.hm-axis__right {
  right: 0;
  color: #c9821f;
}

.hm-axis__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b7dd8 0%, var(--hm-green-dark) 50%, #e9a23b 100%);
}

.hm-axis__center {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  background: var(--hm-green-dark);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

@media screen and (max-width: 751px) {
  .hm-compare .hm-compare__axis-row th {
    padding: 0 0 8px;
  }

  .hm-axis {
    height: 58px;
  }

  .hm-axis__left,
  .hm-axis__right {
    font-size: 10px;
  }

  .hm-axis__sub {
    display: none;
  }

  .hm-axis__bar {
    top: 34px;
    height: 6px;
  }

  .hm-axis__center {
    top: 22px;
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* 無料オンライン相談セクションのキャラクターを相談ボックスより前面に（波の下に立っている見え方は維持） */
.top-section2 .sec2-illust {
  z-index: 21;
  pointer-events: none;
}

.top-section2 > .top-nami {
  z-index: 22;
}

/* =========================================================
   2026-10 ブラッシュアップ（参考：夢中教室・洛英ゼミ）
   ========================================================= */

/* PCヘッダー：メニュー＋申し込みボタン */
.hm-pcnav {
  position: fixed;
  top: 22px;
  right: calc(3% + 78px);
  z-index: 10001;
  display: flex !important;
  align-items: center;
  gap: 22px;
  padding: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.hm-pcnav a {
  color: var(--hm-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
}

.hm-pcnav a:hover {
  color: var(--hm-green-dark);
}

.hm-pcnav .hm-pcnav__cta {
  background: var(--hm-line);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.hm-pcnav .hm-pcnav__cta:hover {
  color: #fff;
  opacity: .9;
}

@media screen and (max-width: 1100px) {
  .hm-pcnav {
    gap: 14px;
    padding-left: 16px;
  }

  .hm-pcnav a {
    font-size: 13px;
  }
}

@media screen and (max-width: 751px) {
  .hm-pcnav {
    display: none !important;
  }
}

/* 採択ロゴ（緑の上） */
.hm-intro__container {
  padding-top: 60px !important;
  padding-bottom: 30px !important;
}

.hm-sponsor--on-green .hm-sponsor__lead {
  color: #fff;
}

.hm-sponsor--on-green .hm-sponsor__list li {
  border-color: transparent;
}

/* こんなことでお悩みではありませんか？ */
.hm-worry__title {
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.hm-worry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.hm-worry__bubble {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 22px 26px;
  text-align: center;
  font-weight: 700;
  line-height: 1.8;
  color: var(--hm-text);
}

.hm-worry__bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  border: 10px solid transparent;
  border-top: 16px solid #fff;
  border-bottom: 0;
}

.hm-worry__bubble--1::after,
.hm-worry__bubble--3::after {
  right: 40px;
}

.hm-worry__bubble--2::after,
.hm-worry__bubble--4::after {
  left: 40px;
}

.hm-worry__illust {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  width: 250px;
}

.hm-worry__answer {
  text-align: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.9;
  margin-top: 46px;
}

.hm-marker {
  background: linear-gradient(transparent 62%, rgba(243, 244, 239, .45) 62%);
  padding: 0 2px;
}

/* 選ばれる理由：左右交互 */
.hm-zig {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto 60px;
}

.hm-zig__row {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  gap: 40px;
}

.hm-zig__row--rev {
  grid-template-columns: 1fr 38%;
}

.hm-zig__row--rev .hm-zig__illust {
  order: 2;
}

.hm-zig__illust img {
  width: 82%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

.hm-zig__card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px 34px;
  line-height: 1.95;
}

.hm-zig__num {
  position: absolute;
  top: -38px;
  left: 30px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: var(--hm-beige);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

.hm-zig__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.hm-zig__text strong {
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(105, 175, 141, .3) 60%);
}

/* 保護者の声：アバター */
.hm-voice__label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hm-voice__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

/* 入塾の流れ：横並び */
.hm-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1040px;
}

.hm-flow__step {
  flex-direction: column;
  border-radius: 24px;
  padding: 22px 12px 20px;
  margin-bottom: 0;
  text-align: center;
  gap: 8px;
}

.hm-flow__step:not(:last-child)::after {
  left: auto;
  right: -15px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left: 9px solid var(--hm-green);
  border-right: 0;
}

.hm-flow__img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.hm-flow__text {
  font-size: 14px;
  line-height: 1.7;
}

/* CONTACT：最後の申し込みパネル */
.hm-contact {
  position: relative;
  overflow: hidden;
  margin-top: 90px;
  background: var(--hm-green);
  border-radius: 32px;
  padding: 64px 48px 54px;
  text-align: center;
}

.hm-contact__bg {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, .12);
  white-space: nowrap;
  pointer-events: none;
}

.hm-contact__title {
  position: relative;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hm-contact__lead {
  position: relative;
  color: #fff;
  margin-bottom: 32px;
}

.hm-contact__cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.hm-contact__card {
  background: #fff;
  border-radius: 24px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hm-contact__label {
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-green-dark);
}

.hm-contact__desc {
  font-size: 14px;
}

.hm-contact__tel a {
  font-family: "Rajdhani", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--hm-green-dark);
  text-decoration: none;
  letter-spacing: 2px;
}

/* スマホ */
@media screen and (max-width: 751px) {
  .hm-intro__container {
    padding-top: 40px !important;
    padding-bottom: 10px !important;
  }

  .hm-worry__title {
    font-size: 20px;
    margin-bottom: 28px;
  }

  .hm-worry {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hm-worry__bubble {
    padding: 16px 18px;
    font-size: 14px;
  }

  .hm-worry__illust {
    position: static;
    transform: none;
    width: 210px;
    margin: 6px auto 0;
  }

  .hm-worry__answer {
    font-size: 17px;
    margin-top: 28px;
  }

  .hm-zig {
    gap: 40px;
  }

  .hm-zig__row,
  .hm-zig__row--rev {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hm-zig__row--rev .hm-zig__illust {
    order: 0;
  }

  .hm-zig__illust img {
    width: 52%;
  }

  .hm-zig__card {
    padding: 36px 22px 24px;
  }

  .hm-zig__num {
    font-size: 56px;
    top: -30px;
    left: 18px;
  }

  .hm-zig__title {
    font-size: 18px;
  }

  .hm-flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hm-flow__step {
    flex-direction: row;
    text-align: left;
    padding: 12px 16px;
    gap: 12px;
  }

  .hm-flow__step:not(:last-child)::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top: 9px solid var(--hm-green);
    border-bottom: 0;
  }

  .hm-flow__img {
    width: 52px;
    height: 52px;
  }

  .hm-contact {
    margin-top: 60px;
    padding: 46px 18px 30px;
    border-radius: 24px;
  }

  .hm-contact__bg {
    font-size: 64px;
    top: 14px;
  }

  .hm-contact__title {
    font-size: 19px;
  }

  .hm-contact__lead {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .hm-contact__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .hm-contact__card {
    min-width: 0;
    padding: 22px 14px;
  }

  .hm-contact__card .hm-line-btn {
    font-size: 13px;
    padding: 12px 14px;
    gap: 6px;
  }

  .hm-contact__tel a {
    font-size: 28px;
  }
}

/* お悩みの直後〜Michibikiゼミとはの余白を詰める */
@media screen and (min-width: 752px) {
  .hm-intro + .top-section1 .top1-container {
    padding-top: 80px;
  }
}

@media screen and (max-width: 751px) {
  .hm-intro + .top-section1 .top1-container {
    padding-top: 50px;
  }
}

/* 下層ページ：TOPページに戻る */
.hm-backtop {
  position: relative;
  z-index: 25;
  text-align: center;
  padding: 50px 20px 90px;
}

.hm-backtop__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border: 2px solid var(--hm-green);
  border-radius: 999px;
  background: #fff;
  color: var(--hm-green-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.hm-backtop__btn::before {
  content: "←";
  font-weight: 700;
}

.hm-backtop__btn:hover {
  background: var(--hm-green);
  color: #fff;
}

@media screen and (max-width: 751px) {
  .hm-backtop {
    padding: 36px 20px 70px;
  }
}

/* 採択ロゴ：PCは並べて表示、スマホはLPと同じく左へ自動で流す */
.hm-sponsor__dup {
  display: none;
}

@media screen and (max-width: 751px) {
  .hm-sponsor__marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
  }

  .hm-sponsor__marquee .hm-sponsor__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    width: max-content;
    animation: hm-sponsor-scroll 20s linear infinite;
  }

  .hm-sponsor__marquee .hm-sponsor__list li {
    flex-shrink: 0;
    width: 128px;
    padding: 8px 10px;
  }

  .hm-sponsor__marquee .hm-sponsor__dup {
    display: block;
  }
}

@keyframes hm-sponsor-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 5px)); }
}

/* 動きを控える設定の端末では流さず、並べて表示 */
@media screen and (max-width: 751px) and (prefers-reduced-motion: reduce) {
  .hm-sponsor__marquee .hm-sponsor__list {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .hm-sponsor__marquee .hm-sponsor__dup {
    display: none;
  }
}

/* 採択ロゴ：画像ごとの余白の差を打ち消して、白枠の中央に同じくらいの大きさで置く */
.hm-logo-box {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 112 / 44;
  overflow: hidden;
}

.hm-sponsor__list .hm-logo-box img {
  position: absolute;
  height: auto;
  max-width: none;
  object-fit: initial;
}

/* aboutページ：代表の写真（2026-10差し替え）。元画像に入っていた角丸をCSSで付ける */
.about1-left-pic img {
  display: block;
  width: 100%;
  border-radius: 22% / 18%;
}

/* 授業形態：こんな事例も！（LPと同じ内容） */
.hm-example {
  position: relative;
  margin: 70px 0 10px;
  padding-top: 40px;
}

.hm-example__art {
  position: absolute;
  top: -30px;
  left: 30px;
  width: 120px;
  z-index: 2;
}

.hm-example__box {
  position: relative;
  background: #fff;
  border: 2px dashed var(--hm-green);
  border-radius: 24px;
  padding: 44px 40px 32px;
  line-height: 1.95;
}

.hm-example__badge {
  display: inline-block;
  border: 1.5px solid var(--hm-green);
  border-radius: 999px;
  padding: 4px 18px;
  color: var(--hm-green-dark);
  font-size: 15px;
  margin-bottom: 10px;
}

.hm-example__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hm-green-dark);
  margin-bottom: 10px;
}

.hm-example__quote {
  margin-top: 18px;
  background: #e3efe8;
  border-radius: 16px;
  padding: 18px 22px;
  color: var(--hm-green-dark);
  font-weight: 500;
}

@media screen and (max-width: 751px) {
  .hm-example {
    margin-top: 56px;
  }

  .hm-example__art {
    width: 90px;
    left: 16px;
    top: -26px;
  }

  .hm-example__box {
    padding: 40px 20px 22px;
  }

  .hm-example__title {
    font-size: 18px;
  }

  .hm-example__quote {
    padding: 14px 16px;
  }
}

/* 緑の背景だとキャラクター（緑）が溶けるので、白い丸を敷く */
.hm-example__art {
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-sizing: border-box;
  border: 2px dashed var(--hm-green);
  top: -46px;
}

@media screen and (max-width: 751px) {
  .hm-example__art {
    padding: 10px;
    top: -40px;
  }
}

/* 授業事例（noteの連載「Michibikiの生徒」最新3件） */
.hm-case {
  padding: 90px 0 40px;
  scroll-margin-top: 90px;
}

.hm-case__lead {
  text-align: center;
  line-height: 1.9;
  margin: -10px 0 32px;
}

.hm-case__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hm-case__item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--hm-beige);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--hm-text);
  transition: transform .15s;
}

.hm-case__item a:hover {
  transform: translateY(-2px);
}

.hm-case__img {
  display: block;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.hm-case__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 22px;
}

.hm-case__series {
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-green-dark);
}

.hm-case__vol {
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  margin-left: 2px;
}

.hm-case__title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  /* 見出しは文節で折り返す（語の途中で切らない） */
  word-break: auto-phrase;
}

.hm-case__more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-green-dark);
}

@media screen and (max-width: 751px) {
  .hm-case {
    padding: 60px 0 20px;
    scroll-margin-top: 70px;
  }

  .hm-case__lead {
    text-align: left;
    margin-top: 0;
  }

  .hm-case__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hm-case__title {
    font-size: 16px;
  }
}

/* 授業事例（PC）：.container の上下140pxと二重になり余白が広すぎたので詰める */
@media screen and (min-width: 752px) {
  .hm-case {
    padding: 0;
  }

  .hm-case > .container {
    padding-top: 100px;
    padding-bottom: 20px;
  }
}

/* 授業事例（スマホ）：上下を詰める（上端→見出し 140px→60px／もっと見る→保護者の声の見出し 180px→100px） */
@media screen and (max-width: 751px) {
  .hm-case {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hm-case > .container {
    padding-top: 60px;
    padding-bottom: 20px;
  }
}

/* 「詳しくはこちら」画像ボタンと同じ見た目の文字ボタン（文字＋緑の丸矢印）。授業事例の「もっと見る」で使用 */
.hm-arrow-btn {
  text-align: center;
  margin-top: 36px;
}

.hm-arrow-btn a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--hm-green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
  transition: opacity .15s;
}

.hm-arrow-btn a:hover {
  opacity: .75;
}

.hm-arrow-btn img {
  width: 41px;
  height: auto;
  display: block;
}

/* よくある質問：開いたときの答えを、ハンバーガーメニューと同じ「ふわっと下から」の動きで出す（style.css の fadeUpAnime を共用） */
.hm-faq__item[open] summary ~ * {
  animation: fadeUpAnime 1.2s forwards;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hm-faq__item[open] summary ~ * {
    animation: none;
    opacity: 1;
  }
}

/* スクロールで「ふわっと」表示（LPの .lp-fade-in と同じ値。クラスは main.js が付け外しする） */
.hm-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.hm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 最終点検の修正（2026-10-17） ===== */

/* よくある質問：2行になった質問の2行目を「Q」の下ではなく本文の頭にそろえる */
.hm-faq__item summary {
  display: flex;
  align-items: flex-start;
}

.hm-faq__q {
  flex-shrink: 0;
}

.hm-faq__qtext {
  flex: 1;
  min-width: 0;
}

/* 代表プロフィール：長い本文は濃い文字にして読みやすく（名前・肩書きはブランド緑のまま） */
.about1-left-text {
  color: var(--hm-text);
}

.about1-left-text span {
  color: var(--hm-text);
  font-weight: 700;
}

/* 特徴ページのサポート体制：スマホでも説明文を見出しと同じ中央にそろえる */
@media screen and (max-width: 751px) {
  .taisei_box p {
    text-align: center;
  }

}

/* Michibikiゼミとはページ：見出しの色を「代表挨拶」と同じ緑にそろえる（2026-10-17） */
.hm-blog-area .area-title h2,
.hm-about-compare__title {
  color: var(--hm-green);
}

/* 「TOPページに戻る」：PCの上下の余白を詰める。上の段の余白（140px）と重なって広すぎたので、
   上の本文から約80px・フッターまで40pxにする */
@media screen and (min-width: 752px) {
  .hm-backtop {
    margin-top: -60px;
    padding: 0 20px 40px;
  }
}

/* 「TOPページに戻る」：特徴ページは直前の段が白なので、ボタンの帯も白にしてグレーの段差をなくす */
.features2 + .hm-backtop {
  background: #fff;
}

/* 「TOPページに戻る」：スマホの上の余白を詰める（上の本文から 116px → 約64px） */
@media screen and (max-width: 751px) {
  .hm-backtop {
    margin-top: -16px;
    padding-top: 0;
  }
}

/* フッター上端の波を「TOPページに戻る」の帯より手前に出す（特徴ページで白い帯に波が隠れて直線に見えたため） */
footer > .nami {
  z-index: 30;
}

/* ロード画面のロゴ：LPと同じ大きさに（幅300px、スマホでは画面幅の70%まで） */
#splash_logo img {
  width: 300px;
  max-width: 70vw;
  height: auto;
}

/* トップの「ブログ」見出し：スマホではほかの見出しと同じく左寄せに（PCは元のデザインどおり右寄せ） */
@media screen and (max-width: 751px) {
  .top5-area-title {
    text-align: left;
    padding-right: 0;
  }

  .top5-title-img {
    left: -30px;
    right: auto;
  }
}

/* ブログ記事：長いURLが画面幅を超えて横にはみ出さないよう、途中で折り返す（スマホで約10pxはみ出していた） */
.blog-text {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ページが見つからないとき（404） */
.hm-notfound {
  text-align: center;
  line-height: 2;
}

.hm-notfound__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 28px 0 40px;
  padding: 0;
}

.hm-notfound__links a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--hm-green);
  border-radius: 999px;
  background: #fff;
  color: var(--hm-green-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.hm-notfound__links a:hover {
  background: var(--hm-green);
  color: #fff;
}
