/* =========================================================
   オンラインフリースクール まなれぼ 共通スタイル
   色はロゴ（木の輪のグリーン・文字のオレンジ・カラフルな実）から取っています
   ========================================================= */

:root {
  --c-green: #2e9e75;
  --c-green-dark: #1d7555;
  --c-green-deep: #134e3a;
  --c-green-pale: #eaf6f0;
  --c-orange: #ff8a3d;
  --c-orange-text: #c2410c;
  --c-orange-deep: #7c2d12;
  --c-orange-pale: #fff3e8;
  --c-yellow: #ffd93b;
  --c-yellow-deep: #c9a200;
  --c-yellow-pale: #fffbe8;
  --c-sky: #36c5ee;
  --c-sky-dark: #0b6784;
  --c-sky-pale: #eaf7fd;
  --c-line: #00873c;
  --c-line-deep: #005c29;
  --c-text: #333;
  --c-text-sub: #5f5f5f;
  --c-border: #e7e1d6;
  --c-bg: #fffdf8;
  --c-ink: #10231c;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 6px 24px rgb(70 55 30 / 8%);
  --shadow-lg: 0 16px 44px rgb(70 55 30 / 13%);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-base: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", var(--font-base);
  --font-en: "Quicksand", "Zen Maru Gothic", sans-serif;

  --header-h: 72px;
  --container: 1120px;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgb(46 158 117 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(46 158 117 / 6%) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-wrap: break-word;
  line-break: strict;
}

body.is-menu-open {
  overflow: hidden;
}

/* 装飾（大きな英字・斜めの帯など）で横スクロールが出ないようにする */
main {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  main {
    overflow-x: clip;
  }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-round);
  font-weight: 900;
  line-height: 1.5;
  word-break: auto-phrase;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-sky);
  outline-offset: 3px;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 8px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  --container: 880px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- utilities ---------- */
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-mt-s { margin-top: 16px; }
.u-mt { margin-top: 32px; }
.u-mt-l { margin-top: clamp(40px, 6vw, 64px); }
.u-pc-only { display: none; }
@media (min-width: 768px) {
  .u-pc-only { display: inline; }
  .u-sp-only { display: none; }
}

/* 改行位置の調整：まとまった語句の途中で改行しないようにする */
.u-ib { display: inline-block; }

.bubbles li,
.stat__label,
.faq__q,
.tile__title,
.tags li,
.chips li,
.flow__title,
.stairs__text,
.plan__desc,
.press__title,
.hero-facts span,
.cta__flow li {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* スマホでは、並んだボタンを横幅いっぱい・同じ幅にそろえる */
@media (max-width: 599px) {
  .buttons > .btn:not(.btn--sm) {
    flex: 1 1 100%;
  }
}

.marker {
  background: linear-gradient(transparent 62%, rgb(255 217 59 / 80%) 62%);
}

.text-orange { color: var(--c-orange-text); }
.text-green { color: var(--c-green-dark); }

.note {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.list-dot {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-dot li {
  position: relative;
  padding-left: 1.3em;
}

.list-dot li + li {
  margin-top: 4px;
}

.list-dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
}

/* カラフルな丸（ロゴの木の実） */
.dot {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  width: var(--s, 40px);
  height: var(--s, 40px);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  z-index: 0;
}

.dot--cyan { background: #3ae0ff; }
.dot--orange { background: #ff7a2f; }
.dot--green { background: #35d69a; }
.dot--yellow { background: #ffe13b; }
.dot--red { background: #ff5252; }
.dot--purple { background: #b24df5; }
.dot--blue { background: #3d5af1; }

@keyframes float {
  50% { transform: translateY(-14px); }
}

@media (max-width: 767px) {
  .hero .dot,
  .page-hero .dot {
    opacity: 0.4;
  }
}

/* ---------- buttons ---------- */
/* SOZOWのボタンにならい、下に色の濃い影をつけて「押せる」見た目にしています */
.btn {
  --btn-shadow: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.7em 1.8em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--btn-shadow);
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--btn-shadow);
  }
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--btn-shadow);
}

.btn--primary {
  --btn-shadow: var(--c-orange-deep);
  color: #fff;
  background: var(--c-orange-text);
}

.btn--line {
  --btn-shadow: var(--c-line-deep);
  color: #fff;
  background: var(--c-line);
}

.btn--ghost {
  --btn-shadow: var(--c-green-dark);
  color: var(--c-green-dark);
  background: #fff;
  border-color: currentColor;
}

.btn--yellow {
  --btn-shadow: var(--c-yellow-deep);
  color: #3a2a00;
  background: var(--c-yellow);
}

.btn--sm {
  min-height: 44px;
  padding: 0.4em 1.2em;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--btn-shadow);
}

.btn--lg {
  min-height: 64px;
  padding: 0.9em 2.2em;
  font-size: 18px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.buttons--center {
  justify-content: center;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-round);
  font-weight: 700;
  text-decoration: none;
}

.link-more__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--c-green);
  transition: transform 0.2s;
}

.link-more__icon .icon {
  width: 20px;
  height: 20px;
}

.link-more:hover .link-more__icon {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 10px 10px auto;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 12px 0 22px;
  background: rgb(255 255 255 / 96%);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled .site-header__inner {
  box-shadow: var(--shadow-lg);
}

.site-header__logo img {
  width: 132px;
}

.gnav {
  display: none;
  margin-left: auto;
}

.gnav__list {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gnav a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.gnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--c-yellow);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.gnav a:hover::after,
.gnav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: none;
  gap: 8px;
}

.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--c-green);
  cursor: pointer;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s, background-color 0.25s;
}

.menu-toggle__bar {
  position: relative;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bar {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: calc(var(--header-h) + 20px) 10px auto;
  max-height: calc(100vh - var(--header-h) - 32px);
  max-height: calc(100dvh - var(--header-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.drawer__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--c-border);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.drawer__cta {
  display: grid;
  gap: 14px;
  margin: 24px 0 16px;
}

.drawer__doc {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green-dark);
}

@media (max-width: 520px) {
  .drawer__list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 62px; }
  .site-header { inset: 8px 8px auto; }
  .site-header__inner { padding-left: 16px; padding-right: 8px; }
  .site-header__logo img { width: 112px; }
  .menu-toggle { width: 46px; height: 46px; }
}

@media (min-width: 1240px) {
  .gnav,
  .site-header__actions { display: flex; }
  .menu-toggle,
  .drawer { display: none !important; }
}

@media (min-width: 1240px) and (max-width: 1399px) {
  .site-header__actions .btn--line { display: none; }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

.section-head {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

/* 見出しの後ろに敷く、大きな英字の装飾 */
.section-head[data-en]::before {
  content: attr(data-en);
  content: attr(data-en) / "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  font-family: var(--font-en);
  font-size: clamp(58px, 13vw, 164px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(46 158 117 / 18%);
  transform: translate(-50%, -38%);
  pointer-events: none;
}

.section-head--left {
  text-align: left;
}

.section-head--left[data-en]::before {
  left: -0.05em;
  transform: translateY(-38%);
}

.section-label {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-family: var(--font-en);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-green-dark);
}

.section-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 64px);
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--c-yellow) 0 55%, var(--c-sky) 55% 100%);
  transform: translateX(-50%);
}

.section-head--left .section-label::after {
  left: 0;
  transform: none;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(25px, 3.6vw, 38px);
}

.section-lead {
  max-width: 760px;
  margin: 18px auto 0;
}

.section-head--left .section-lead {
  margin-left: 0;
}

.section-head--light .section-label {
  color: var(--c-yellow);
}

.section-head--light .section-title,
.section-head--light .section-lead {
  color: #fff;
}

.statement {
  font-family: var(--font-round);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.7;
  text-align: center;
  word-break: auto-phrase;
}

.intro-text {
  max-width: 860px;
  margin-inline: auto;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1;
}

@media (min-width: 768px) {
  .intro-text { text-align: center; }
}

.panel {
  position: relative;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 6vw, 72px);
  background: var(--c-green-pale);
  border-radius: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.panel > *:not(.dot) {
  position: relative;
  z-index: 1;
}

.panel--cream { background: var(--c-yellow-pale); }
.panel--sky { background: var(--c-sky-pale); }
.panel--orange { background: var(--c-orange-pale); }
.panel--white { background: #fff; box-shadow: var(--shadow); }

.panel--dark {
  color: #fff;
  background: var(--c-green-deep);
}

.panel--dark .dot {
  opacity: 0.35;
}

.more-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.more-row--center {
  justify-content: center;
}

.arrow-down {
  width: 26px;
  height: 26px;
  margin: 28px auto 36px;
  border-right: 5px solid var(--c-green);
  border-bottom: 5px solid var(--c-green);
  border-radius: 0 0 4px;
  transform: rotate(45deg);
}

/* スクロールでふわっと表示（data-reveal="stagger" は子要素を順番に表示） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js [data-reveal="stagger"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.js [data-reveal="stagger"].is-revealed > * {
  opacity: 1;
  transform: none;
}

.js [data-reveal="stagger"] > :nth-child(2) { transition-delay: 0.08s; }
.js [data-reveal="stagger"] > :nth-child(3) { transition-delay: 0.16s; }
.js [data-reveal="stagger"] > :nth-child(4) { transition-delay: 0.24s; }
.js [data-reveal="stagger"] > :nth-child(5) { transition-delay: 0.32s; }
.js [data-reveal="stagger"] > :nth-child(6) { transition-delay: 0.4s; }
.js [data-reveal="stagger"] > :nth-child(7) { transition-delay: 0.48s; }
.js [data-reveal="stagger"] > :nth-child(n+8) { transition-delay: 0.56s; }

/* 印刷するときは、まだ表示されていない部分も表示する */
@media print {
  .js [data-reveal],
  .js [data-reveal="stagger"] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- top hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px 5px 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-green-dark);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero__eyebrow img {
  width: 30px;
  height: 30px;
}

/* 「不登校 × 起業家 = 無限大の可能性」 */
.hero__title {
  margin-top: 22px;
  font-size: clamp(32px, 9vw, 64px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.06em 0.2em;
}

.hero__line + .hero__line {
  margin-top: 0.14em;
}

.hero__op {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  padding-bottom: 0.06em;
  font-family: var(--font-en);
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--c-orange-text);
  border-radius: 50%;
}

.hero__op--eq {
  background: var(--c-green);
}

.hero__em {
  padding-inline: 0.04em;
  background: linear-gradient(transparent 64%, rgb(255 217 59 / 85%) 64%);
}

.hero__em em {
  font-style: normal;
  color: var(--c-orange-text);
}

.hero__lead {
  max-width: 34em;
  margin-top: 22px;
  font-size: clamp(15px, 1.5vw, 17px);
}

.hero__buttons {
  margin-top: 30px;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

.hero__main {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--c-green-pale);
  border-radius: 46% 54% 50% 50% / 52% 44% 56% 48%;
  box-shadow: var(--shadow-lg);
}

.hero__main img,
.hero__sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__sub {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.hero__sub--1 { right: -2%; top: -4%; }
.hero__sub--2 { right: 2%; bottom: -6%; width: 30%; }

/* 写真のまわりに浮かぶ「学べること」のタグ */
.hero__tags {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.hero__tags li {
  position: absolute;
  padding: 3px 14px;
  font-family: var(--font-round);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: 0 3px 0 currentColor;
  animation: float 7s ease-in-out infinite;
}

.hero__tags li:nth-child(1) { left: -4%; top: 10%; color: var(--c-orange-text); rotate: -6deg; }
.hero__tags li:nth-child(2) { left: 36%; top: -3%; color: var(--c-sky-dark); rotate: 4deg; animation-delay: -2s; }
.hero__tags li:nth-child(3) { right: -4%; top: 46%; color: var(--c-green-dark); rotate: 5deg; animation-delay: -4s; }
.hero__tags li:nth-child(4) { left: -2%; top: 56%; color: #7a35b8; rotate: -3deg; animation-delay: -1s; }

.hero__card {
  position: absolute;
  left: -2%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero__card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__card strong {
  display: block;
  font-family: var(--font-round);
  font-size: 16px;
}

.hero-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 6px 10px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-facts li {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 6px;
  text-align: center;
  line-height: 1.4;
}

.hero-facts li:nth-child(even) {
  border-left: 1px dashed var(--c-border);
}

.hero-facts li:nth-child(n + 3) {
  border-top: 1px dashed var(--c-border);
}

.hero-facts strong {
  font-family: var(--font-round);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-orange-text);
}

.hero-facts strong small {
  font-size: 0.55em;
}

.hero-facts span {
  font-size: 13px;
  font-weight: 700;
}

.hero-facts span small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-sub);
}

@media (min-width: 768px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); padding: 10px 12px; }
  .hero-facts li:nth-child(n) { border-top: 0; border-left: 0; }
  .hero-facts li:nth-child(n + 2) { border-left: 1px dashed var(--c-border); }
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.08fr 1fr; }
  .hero__title { font-size: clamp(42px, 4.6vw, 64px); }
}

@media (max-width: 520px) {
  .hero__sub--2 { display: none; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -24px auto 0; width: fit-content; }
  .hero__tags li:nth-child(3) { top: 40%; }
  .hero__tags li:nth-child(4) { top: 62%; }
}

/* 斜めに流れる英字の帯 */
.marquee {
  position: relative;
  z-index: 2;
  margin-inline: -4%;
  padding-block: clamp(6px, 1.2vw, 14px);
  overflow: hidden;
  color: #fff;
  background: var(--c-green);
  transform: rotate(-2deg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-right: 0.5em;
  font-family: var(--font-en);
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "";
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--c-yellow);
}

.marquee__track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- page hero（下層ページ） ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--c-text-sub);
}

.breadcrumb a {
  color: var(--c-green-dark);
}

.breadcrumb [aria-current] {
  color: var(--c-text-sub);
}

.page-hero__body {
  margin-top: clamp(28px, 5vw, 56px);
  text-align: center;
}

.page-hero__title {
  margin-top: 10px;
  font-size: clamp(28px, 4.4vw, 46px);
}

.page-hero__lead {
  max-width: 720px;
  margin: 16px auto 0;
}

/* 写真つき */
.page-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(20px, 4vw, 40px);
}

.page-hero--photo .page-hero__body {
  margin-top: 0;
  text-align: left;
}

.page-hero--photo .page-hero__lead {
  margin-left: 0;
}

.page-hero__photo {
  position: relative;
  margin-right: 14px;
}

.page-hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 14px 14px 0 var(--c-yellow);
}

@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .page-hero__photo img { aspect-ratio: 4 / 3; box-shadow: 20px 20px 0 var(--c-yellow); }
}

/* ---------- grid & cards ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--center { align-items: center; }

/* ---------- 写真カード（写真の上に文字を重ねる） ---------- */
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  color: #fff;
  background: var(--c-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

/* 文字が読めるよう、写真の下側を暗くする */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(9 26 20 / 0%) 18%, rgb(9 26 20 / 58%) 56%, rgb(9 26 20 / 90%) 100%);
}

/* 写真の拡大は、リンクになっているカードだけ（押せないカードが押せそうに見えないように） */
@media (hover: hover) {
  .tile:has(.tile__link):hover .tile__img {
    transform: scale(1.06);
  }
}

.tile__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

.tile__num::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--c-yellow);
}

.tile__en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--c-yellow);
}

.tile__title {
  margin-top: 4px;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 14px rgb(0 0 0 / 35%);
}

.tile__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: rgb(255 255 255 / 92%);
}

.tile__link {
  color: inherit;
  text-decoration: none;
}

/* カード全体をクリックできるようにする */
.tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* :has() が使えるブラウザでは、カード全体にフォーカスの枠を表示する */
@supports selector(:has(*)) {
  .tile__link:focus-visible {
    outline: none;
  }

  .tile:has(.tile__link:focus-visible) {
    outline: 3px solid var(--c-sky);
    outline-offset: 3px;
  }
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 700;
}

.tile__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--c-green-dark);
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.tile__arrow .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .tile:hover .tile__arrow {
    transform: translateX(4px);
  }
}

.tile__body {
  position: relative;
}

/* 「まなれぼとは」の縦長カード */
.pillars {
  display: grid;
  gap: 16px;
}

.pillars .tile {
  min-height: 400px;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 48px;
  }
  .pillars .tile {
    min-height: 540px;
  }
  .pillars .tile:nth-child(2) {
    translate: 0 48px;
  }
}

/* 「学べること」の大小を組み合わせたカード */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bento .tile {
  min-height: 0;
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 16px;
}

.bento .tile__title {
  font-size: 16px;
}

.bento .tile__en {
  font-size: 11px;
}

.bento .tile__text {
  display: none;
}

.bento .tile--feature,
.bento .tile:last-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.bento .tile--feature {
  padding: 20px;
}

.bento .tile--feature .tile__title {
  font-size: 22px;
}

.bento .tile--feature .tile__text {
  display: block;
}

@media (min-width: 600px) {
  .bento {
    gap: 14px;
  }
  .bento .tile {
    aspect-ratio: 4 / 3;
    padding: 18px;
    border-radius: var(--radius);
  }
  .bento .tile--feature {
    aspect-ratio: 16 / 10;
    padding: 24px;
  }
  .bento .tile__title {
    font-size: 19px;
  }
  .bento .tile__text {
    display: block;
    font-size: 13px;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(236px, auto);
    gap: 16px;
  }
  .bento .tile,
  .bento .tile:last-child {
    grid-column: auto;
    aspect-ratio: auto;
  }
  .bento .tile--feature {
    grid-column: span 2;
    grid-row: span 2;
    padding: 32px;
  }
  .bento .tile--feature .tile__title {
    font-size: 30px;
  }
  .bento .tile--feature .tile__text {
    max-width: 30em;
    font-size: 15px;
  }
  .bento .tile--wide {
    grid-column: span 2;
  }
}

/* 横長の写真バナー */
.tile--banner {
  justify-content: flex-end;
  min-height: 0;
  padding-top: clamp(200px, 50vw, 280px);
  border-radius: var(--radius-lg);
}

.tile--banner::before {
  background: linear-gradient(180deg, rgb(9 26 20 / 5%) 0%, rgb(9 26 20 / 70%) 42%, rgb(9 26 20 / 92%) 100%);
}

.tile--banner .tile__title {
  font-size: clamp(22px, 3vw, 32px);
}

.tile--banner .tile__text {
  font-size: 15px;
}

@media (min-width: 900px) {
  .tile--banner {
    justify-content: center;
    min-height: 460px;
    padding: 56px;
  }
  .tile--banner::before {
    background: linear-gradient(90deg, rgb(9 26 20 / 90%) 0%, rgb(9 26 20 / 72%) 44%, rgb(9 26 20 / 5%) 78%);
  }
  .tile--banner .tile__body {
    max-width: 560px;
  }
}

/* 取り組み紹介など、リンクになっている写真カード */
.services {
  display: grid;
  gap: 14px;
}

.services .tile {
  min-height: 280px;
}

@media (min-width: 600px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .services .tile { min-height: 380px; }
}

/* ---------- 画像＋テキストの2カラム ---------- */
.media {
  display: grid;
  gap: 28px 56px;
  align-items: center;
}

.media + .media {
  margin-top: clamp(56px, 8vw, 96px);
}

.media__img {
  position: relative;
  overflow: hidden;
  margin-right: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 14px 14px 0 var(--c-yellow);
}

.media--reverse .media__img {
  margin-right: 0;
  margin-left: 14px;
  box-shadow: -14px 14px 0 var(--c-sky);
}

.media__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media__img--contain img {
  object-fit: contain;
  padding: 24px;
}

.media__num {
  font-family: var(--font-en);
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-green);
}

.media__title {
  margin: 10px 0 16px;
  font-size: clamp(21px, 2.6vw, 28px);
  color: var(--c-green-dark);
}

@media (min-width: 860px) {
  .media { grid-template-columns: 1fr 1fr; }
  .media--reverse .media__img { order: 2; }
  .media__img { margin-right: 20px; box-shadow: 20px 20px 0 var(--c-yellow); }
  .media--reverse .media__img { margin-left: 20px; box-shadow: -20px 20px 0 var(--c-sky); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: var(--c-green-dark);
  border-radius: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--c-green-dark);
  background: var(--c-green-pale);
  border-radius: 999px;
}

/* ---------- お知らせ ---------- */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: var(--c-green-pale);
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__thumb img.is-placeholder {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-sub);
}

.news-card__label {
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  color: #fff;
  background: var(--c-green-dark);
  border-radius: 999px;
}

.news-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-green-dark);
}

.news-empty {
  text-align: center;
}

.news-scroller .news-list {
  display: flex;
  gap: 20px;
  padding: 4px 4px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.news-scroller .news-card {
  flex: 0 0 min(80%, 300px);
  scroll-snap-align: start;
}

.news-scroller__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.icon-buttons {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--c-green-dark);
  background: #fff;
  border: 2px solid var(--c-green);
  border-radius: 50%;
  cursor: pointer;
}

.icon-btn--prev .icon {
  transform: scaleX(-1);
}

/* ---------- 数字 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 26px 16px 22px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat__num {
  font-family: var(--font-en);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-orange-text);
}

.stat__num small {
  margin-left: 2px;
  font-family: var(--font-round);
  font-size: 0.42em;
}

.stat__label {
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.6;
}

.stat__note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-text-sub);
}

.panel--dark .stat {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: none;
}

.panel--dark .stat__num {
  font-size: clamp(52px, 8vw, 88px);
  color: var(--c-yellow);
}

.panel--dark .stat__label {
  color: #fff;
}

.panel--dark .stat__note {
  color: rgb(255 255 255 / 72%);
}

/* ---------- お悩み（吹き出し） ---------- */
.bubbles {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bubbles li {
  width: fit-content;
  max-width: 92%;
  padding: 13px 22px;
  font-weight: 700;
  line-height: 1.7;
  background: #fff;
  border-radius: 26px 26px 26px 6px;
  box-shadow: var(--shadow);
}

.bubbles li:nth-child(even) {
  justify-self: end;
  background: var(--c-yellow-pale);
  border-radius: 26px 26px 6px 26px;
}

@media (min-width: 768px) {
  .bubbles {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }
  .bubbles li {
    max-width: 100%;
    justify-self: end;
  }
  .bubbles li:nth-child(even) {
    justify-self: start;
    translate: 0 22px;
  }
}

/* ---------- チェックリスト ---------- */
.checklist {
  display: grid;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist--2col {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.checklist li {
  position: relative;
  padding: 14px 4px 14px 44px;
  font-weight: 700;
  line-height: 1.7;
  border-bottom: 2px dashed var(--c-border);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--c-yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231d7555' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5.5 12.5l4 4L18.5 8'/%3E%3C/svg%3E")
    center / 17px no-repeat;
}

/* ---------- 声 ---------- */
.voice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.voice::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
  color: var(--c-yellow);
}

.voice__catch {
  position: relative;
  padding-top: 18px;
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--c-green-dark);
  word-break: auto-phrase;
}

.voice__body {
  font-size: 15px;
}

.voice__body p + p {
  margin-top: 10px;
}

.voice__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-text-sub);
  border-top: 1px dashed var(--c-border);
}

.voice__role {
  padding: 0 10px;
  font-size: 12px;
  color: var(--c-orange-text);
  background: var(--c-orange-pale);
  border-radius: 999px;
}

.voice__role--student {
  color: var(--c-sky-dark);
  background: var(--c-sky-pale);
}

.voice__who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* トップ：スマホでは横にスワイプ */
.voice-row {
  display: grid;
  gap: 16px;
}

.swipe-hint {
  display: none;
}

@media (max-width: 859px) {
  .voice-row {
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 360px);
    margin-inline: -8px;
    padding: 4px 8px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .voice-row > * {
    scroll-snap-align: center;
  }
  .swipe-hint {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--c-text-sub);
  }
  .swipe-hint::before,
  .swipe-hint::after {
    content: "―";
    margin-inline: 8px;
  }
}

@media (min-width: 860px) {
  .voice-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* みんなの声ページ：高さの違うカードを詰めて並べる */
.voice-wall {
  columns: 2 360px;
  column-gap: 24px;
}

.voice-wall > .voice {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* ---------- 階段（3つの学び方） ---------- */
.stairs {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stairs;
}

.stairs__step {
  --step: var(--c-sky-dark);
  counter-increment: stairs;
  display: grid;
  grid-template-columns: 46px 1fr;
}

.stairs__step:nth-child(2) { --step: var(--c-green-dark); margin-left: 10px; }
.stairs__step:nth-child(3) { --step: var(--c-orange-text); margin-left: 20px; }

.stairs__step::before {
  content: counter(stairs, decimal-leading-zero);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: var(--step);
  border-radius: var(--radius) 0 0 var(--radius);
}

.stairs__body {
  padding: 18px 16px 20px;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.stairs__en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--step);
}

.stairs__title {
  font-size: 20px;
}

.stairs__text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 900px) {
  .stairs {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 22px;
  }
  .stairs__step,
  .stairs__step:nth-child(n) {
    display: flex;
    flex-direction: column;
    margin-left: 0;
  }
  .stairs__step::before {
    order: 2;
    align-items: start;
    height: var(--h, 80px);
    margin-top: 18px;
    padding-top: 16px;
    font-size: 36px;
    border-radius: 18px 18px 0 0;
  }
  .stairs__step:nth-child(1) { --h: 80px; }
  .stairs__step:nth-child(2) { --h: 150px; }
  .stairs__step:nth-child(3) { --h: 220px; }
  .stairs__body {
    padding: 20px 20px 22px;
    border-radius: var(--radius);
  }
}

/* ---------- 流れ（番号つき） ---------- */
.flow {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow__item {
  position: relative;
  counter-increment: flow;
  min-height: 64px;
  padding: 2px 0 30px 70px;
}

.flow__item::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  width: 52px;
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--c-green-dark);
}

.flow__item::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 44px;
  bottom: 8px;
  border-left: 2px dashed rgb(46 158 117 / 55%);
}

.flow__item:last-child {
  padding-bottom: 0;
}

.flow__item:last-child::after {
  display: none;
}

.flow__title {
  font-size: 17px;
  line-height: 1.6;
}

.flow__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-sub);
}

.flow--goal .flow__item:last-child::before {
  color: var(--c-orange-text);
}

.flow--goal .flow__item:last-child .flow__title::after {
  content: "GOAL";
  display: inline-block;
  margin-left: 10px;
  padding: 0 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: 0.15em;
  color: #fff;
  background: var(--c-orange-text);
  border-radius: 999px;
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 28px;
  }
  .flow__item {
    min-height: 0;
    padding: 64px 0 0;
  }
  .flow__item::before {
    top: 0;
    width: auto;
    font-size: 46px;
    text-align: left;
  }
  .flow__item::after {
    left: 80px;
    right: -14px;
    top: 24px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed rgb(46 158 117 / 55%);
  }
}

/* ---------- タイムライン ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 14px;
  bottom: 14px;
  border-left: 3px dotted var(--c-green);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 36px;
  padding: 12px 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 85px;
  top: 22px;
  width: 17px;
  height: 17px;
  background: var(--c-orange);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-orange);
}

.timeline__time {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--c-green-dark);
  text-align: right;
}

.timeline__title {
  font-weight: 700;
}

.timeline__text {
  font-size: 14px;
  color: var(--c-text-sub);
}

/* ---------- 料金プラン ---------- */
.plans {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .plans { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

.plan {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.plan__head {
  position: relative;
  padding: 26px 28px 24px;
  color: #fff;
  background: var(--c-green-dark);
}

.plan--school .plan__head {
  background: var(--c-sky-dark);
}

.plan__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-yellow);
}

.plan__name {
  margin-top: 2px;
  font-size: clamp(22px, 2.6vw, 28px);
}

.plan__desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: rgb(255 255 255 / 92%);
}

.plan__body {
  padding: 6px 28px 28px;
}

.plan__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-border);
}

.plan__row dt {
  font-weight: 700;
  line-height: 1.5;
}

.plan__row dt small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-sub);
}

.plan__row dd {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-orange-text);
  white-space: nowrap;
}

.plan__row dd small {
  margin-left: 4px;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-sub);
}

.plan__note {
  margin-top: 14px;
}

.plan__body .list-dot {
  margin-top: 16px;
  font-size: 14px;
}

.plan__option {
  margin-top: 18px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
  background: var(--c-sky-pale);
  border-radius: var(--radius-sm);
}

.plan__option strong {
  display: block;
  font-family: var(--font-round);
}

/* 金額のみの小さな表示（お仕事のご依頼など） */
.price-tag {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-yellow);
}

.price-tag small {
  margin-left: 2px;
  font-family: var(--font-base);
  font-size: 13px;
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 680px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare th,
.compare td {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}

.compare tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  font-family: var(--font-round);
  background: var(--c-green-pale);
}

.compare tbody th {
  text-align: left;
  white-space: nowrap;
}

.compare .is-us {
  font-weight: 700;
  background: var(--c-orange-pale);
}

.compare thead .is-us {
  color: #fff;
  background: var(--c-orange-text);
}

.info-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  padding: 16px 22px;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
}

.info-table tr:last-child > * {
  border-bottom: 0;
}

.info-table th {
  width: 28%;
  font-weight: 700;
  white-space: nowrap;
  background: var(--c-green-pale);
}

@media (max-width: 640px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    padding-bottom: 8px;
    border-bottom: 0;
    white-space: normal;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq__q {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 60px 20px 20px;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::before,
.faq__a::before {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
}

.faq__q::before {
  content: "Q";
  color: #fff;
  background: var(--c-green-dark);
}

.faq__q::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--c-green);
  border-bottom: 3px solid var(--c-green);
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.faq__item[open] .faq__q::after {
  top: 34px;
  transform: rotate(-135deg);
}

.faq__a {
  display: flex;
  gap: 14px;
  padding: 0 20px 22px;
}

.faq__a::before {
  content: "A";
  color: var(--c-orange-text);
  background: var(--c-orange-pale);
}

.faq__a > div {
  flex: 1;
  padding-top: 2px;
}

.faq__a p + p {
  margin-top: 8px;
}

.faq-group + .faq-group {
  margin-top: 48px;
}

.faq-group__title {
  margin-bottom: 18px;
  padding-left: 14px;
  font-size: 21px;
  border-left: 6px solid var(--c-orange);
}

/* ページ内の目次 */
.jump-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0;
  list-style: none;
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.jump-nav a:hover {
  color: var(--c-green-dark);
  border-color: var(--c-green);
}

/* ---------- 先生 ---------- */
.teacher {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.teacher__photo {
  position: relative;
  width: min(100% - 24px, 300px);
  margin-inline: auto;
}

.teacher__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.teacher__photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 3px dashed var(--c-yellow);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to { rotate: 360deg; }
}

.teacher__role {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green-dark);
}

.teacher__name {
  font-size: clamp(24px, 3vw, 30px);
}

.teacher__name small {
  margin-left: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text-sub);
}

.teacher__lines {
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
}

.teacher__lines li {
  font-family: var(--font-round);
  font-weight: 900;
  line-height: 1.5;
}

.teacher__lines li + li {
  margin-top: 10px;
}

.teacher__lines small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-sub);
}

.teacher__lines span {
  font-size: clamp(22px, 2.8vw, 30px);
  background: linear-gradient(transparent 64%, rgb(255 217 59 / 70%) 64%);
}

.teacher__lines li:nth-child(2) span {
  background-image: linear-gradient(transparent 64%, rgb(54 197 238 / 38%) 64%);
}

.teacher__lines li:nth-child(3) span {
  background-image: linear-gradient(transparent 64%, rgb(255 138 61 / 38%) 64%);
}

.teacher__text + .teacher__text {
  margin-top: 12px;
}

.teacher__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

@media (min-width: 860px) {
  .teacher { grid-template-columns: 300px 1fr; gap: 64px; }
  .teacher__lines small { display: inline; margin-right: 6px; }
}

/* ---------- 講師プロフィール ---------- */
.profile {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile__photo {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 1;
  border: 8px solid var(--c-yellow-pale);
  border-radius: 50%;
}

.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__role {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green-dark);
}

.profile__name {
  font-size: clamp(24px, 3vw, 32px);
}

.profile__name small {
  margin-left: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-sub);
}

.profile__body {
  margin-top: 16px;
}

.profile__body p + p {
  margin-top: 12px;
}

.profile .sns {
  margin-top: 20px;
}

@media (min-width: 820px) {
  .profile { grid-template-columns: 280px 1fr; }
}

/* ---------- コンセプト（まなれぼについて） ---------- */
.concept {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: concept;
}

.concept__item {
  counter-increment: concept;
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
}

.concept__item:last-child {
  border-bottom: 1px solid var(--c-border);
}

.concept__item::before {
  content: "Concept " counter(concept, decimal-leading-zero);
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-orange-text);
}

.concept__title {
  margin: 6px 0 12px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.5;
}

.concept__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgb(255 217 59 / 80%) 62%);
}

@media (min-width: 900px) {
  .concept__item {
    display: grid;
    grid-template-columns: 150px 1fr 1.1fr;
    gap: 40px;
    align-items: start;
    padding: 44px 0;
  }
  .concept__item::before {
    padding-top: 10px;
  }
  .concept__title {
    margin: 0;
  }
}

/* ---------- 3つの方針 ---------- */
.policy {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: policy;
}

.policy li {
  counter-increment: policy;
  padding: 28px 24px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
}

.policy li::before {
  content: counter(policy, decimal-leading-zero);
  display: block;
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-yellow);
}

.policy__title {
  margin: 14px 0 10px;
  font-size: 21px;
  color: #fff;
}

.policy p {
  font-size: 15px;
  color: rgb(255 255 255 / 90%);
}

@media (min-width: 900px) {
  .policy { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- まなれぼの教科書 ---------- */
.textbooks {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .textbooks { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

.textbook {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.textbook .tile {
  min-height: 190px;
  border-radius: 0;
  box-shadow: none;
}

.textbook__toc {
  margin: 0;
  padding: 10px 24px 22px;
  list-style: none;
  counter-reset: toc;
}

.textbook__toc li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  border-bottom: 1px dotted var(--c-border);
}

.textbook__toc li::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--c-orange-text);
}

.textbook__toc li:last-child {
  border-bottom: 0;
}

/* ---------- メディア掲載 ---------- */
.press {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-border);
}

.press li {
  display: grid;
  gap: 2px 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-border);
}

.press time {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green-dark);
}

.press__media {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-sub);
}

.press__title {
  font-weight: 700;
  line-height: 1.7;
}

a.press__title {
  color: var(--c-text);
  text-decoration-color: var(--c-green);
  text-underline-offset: 4px;
}

@media (min-width: 700px) {
  .press li { grid-template-columns: 96px 1fr; }
  .press__media { grid-column: 2; }
  .press time { grid-row: span 2; padding-top: 2px; }
}

/* ---------- SNS ---------- */
.sns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sns a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  transition: transform 0.2s, color 0.2s;
}

.sns a:hover {
  color: var(--c-green-dark);
  transform: translateY(-3px);
}

.sns .icon {
  width: 20px;
  height: 20px;
}

/* ---------- 動画 ---------- */
.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.video:hover img {
  opacity: 1;
}

.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 50px;
  background: #e62117;
  border-radius: 14px;
  transform: translate(-50%, -50%);
}

.video__play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 14px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- ギャラリー（生徒作品） ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 14px;
}

@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
}

.gallery figure {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery figcaption {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- 3者の関係図（お仕事） ---------- */
.flow3 {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.flow3__box {
  padding: 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flow3__box--center {
  background: var(--c-green-pale);
  border: 3px solid var(--c-green);
}

.flow3__box img {
  width: 96px;
  margin: 0 auto 10px;
}

.flow3__title {
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 900;
}

.flow3__box .list-dot {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  text-align: left;
}

.flow3__arrow {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-green-dark);
  text-align: center;
}

.flow3__arrow::before {
  content: "⇅";
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .flow3 { grid-template-columns: 1fr 96px 1fr 96px 1fr; }
  .flow3__arrow::before { content: "⇄"; }
}

/* ---------- メッセージ（トップの最後） ---------- */
.closing {
  text-align: center;
}

.closing__title {
  margin: 16px 0 22px;
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 1.3;
}

.closing__text {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1;
}

.closing__text + .closing__text {
  margin-top: 14px;
  font-family: var(--font-round);
  font-weight: 900;
  color: var(--c-green-dark);
}

/* ---------- 問い合わせ導線 ---------- */
.cta-section {
  padding-block: clamp(56px, 8vw, 100px);
}

.cta {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  background: var(--c-green-deep);
  border-radius: clamp(28px, 4vw, 48px);
}

.cta > *:not(.dot) {
  position: relative;
  z-index: 1;
}

.cta .dot {
  opacity: 0.35;
}

.cta .section-label {
  color: var(--c-yellow);
}

.cta__title {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 42px);
}

.cta__lead {
  margin-top: 14px;
  color: rgb(255 255 255 / 92%);
}

.cta__flow {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cta;
}

.cta__flow li {
  counter-increment: cta;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.cta__flow li::before {
  content: counter(cta, decimal-leading-zero);
  flex: none;
  font-family: var(--font-en);
  font-size: 22px;
  line-height: 1;
  color: var(--c-yellow);
}

.cta__actions {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--c-text);
  background: #fff;
  border-radius: var(--radius);
}

.cta__note {
  margin-bottom: -8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--c-green-dark);
}

.cta__doc {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green-dark);
}

@media (min-width: 900px) {
  .cta { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
}

.cta-inline {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--c-orange);
}

.cta-inline__title {
  font-size: clamp(20px, 2.6vw, 26px);
}

@media (min-width: 900px) {
  .cta-inline { grid-template-columns: 1fr auto; }
}

/* ---------- フォーム ---------- */
.form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 5vw, 56px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-weight: 700;
}

.req,
.opt {
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  color: #fff;
  border-radius: 4px;
}

.req { background: var(--c-orange-text); }
.opt { background: #767676; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 4px rgb(46 158 117 / 18%);
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  line-height: 1.5;
  border: 2px solid var(--c-border);
  border-radius: 999px;
  cursor: pointer;
}

.choice-group input {
  accent-color: var(--c-green);
}

.choice-group label:has(input:checked) {
  background: var(--c-green-pale);
  border-color: var(--c-green);
}

.form__consent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
}

.form__consent input {
  width: 20px;
  height: 20px;
  accent-color: var(--c-green);
}

.form__status {
  padding: 16px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.form__status.is-success {
  color: var(--c-green-dark);
  background: var(--c-green-pale);
}

.form__status.is-error {
  color: #b42318;
  background: #fdecec;
}

.form__status.is-info {
  color: #6b4a00;
  background: var(--c-yellow-pale);
  border: 2px solid var(--c-yellow);
}

.form__gotcha {
  position: absolute;
  left: -9999px;
}

/* ---------- 文章ページ（規約など） ---------- */
.prose {
  padding: clamp(24px, 5vw, 64px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 40px 0 12px;
  padding-left: 14px;
  font-size: 20px;
  border-left: 5px solid var(--c-green);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}

.prose ul {
  margin-top: 8px;
  padding-left: 1.4em;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(48px, 7vw, 80px) 0 24px;
  background: #fff;
  border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0;
}

.site-footer__inner {
  display: grid;
  gap: 40px;
}

.site-footer__brand img {
  width: 180px;
}

.site-footer__brand p {
  margin: 12px 0 20px;
  font-weight: 700;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}

.site-footer__heading {
  margin-bottom: 6px;
  font-family: var(--font-round);
  font-weight: 900;
  color: var(--c-green-dark);
}

.site-footer__nav ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  font-size: 14px;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__nav .icon {
  width: 14px;
  height: 14px;
}

.site-footer__copy {
  margin-top: 48px;
  font-size: 12px;
  color: var(--c-text-sub);
  text-align: center;
}

.site-footer__copy small {
  font-size: inherit;
}

@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 300px 1fr; }
}

.float-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 8%);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s, visibility 0s 0.3s;
}

.float-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.3s;
}

.float-cta .btn {
  min-height: 48px;
  padding-inline: 0.6em;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--btn-shadow);
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .float-cta { display: none; }
}

/* ---------- スマホ表示の調整 ---------- */
/* 本文に重なってしまう飾りの丸は、PCのみ表示 */
.dot--pc {
  display: none;
}

@media (min-width: 768px) {
  .dot--pc { display: block; }
}

@media (max-width: 599px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery figcaption { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 859px) {
  .teacher__photo { width: min(100% - 24px, 240px); }
}

.services .tile__title {
  font-size: clamp(19px, 1.8vw, 21px);
}

.btn--block {
  padding-inline: 1em;
}

/* ---------- 追加の部品 ---------- */
/* 最後のステップに「START」ラベル（入会方法など） */
.flow--start .flow__item:last-child::before {
  color: var(--c-orange-text);
}

.flow--start .flow__item:last-child .flow__title::after {
  content: "START";
  display: inline-block;
  margin-left: 10px;
  padding: 0 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: 0.15em;
  color: #fff;
  background: var(--c-orange-text);
  border-radius: 999px;
}

/* 番号つきの短い手順 */
.numlist {
  display: grid;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: num;
}

.numlist li {
  counter-increment: num;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  line-height: 1.6;
  word-break: auto-phrase;
}

.numlist li::before {
  content: counter(num, decimal-leading-zero);
  flex: none;
  font-family: var(--font-en);
  font-size: 20px;
  line-height: 1;
  color: var(--c-orange-text);
}

@media (min-width: 900px) {
  .numlist--row { grid-template-columns: repeat(var(--cols, 5), 1fr); }
  .numlist--row li { flex-direction: column; gap: 6px; }
}

/* 写真カード内の箇条書き */
.tile__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
}

.tile__list li {
  position: relative;
  padding-left: 1.1em;
}

.tile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-yellow);
}

.tile .price-tag {
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .services--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 600px) {
  .services--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services--2 { grid-template-columns: repeat(2, 1fr); }
  .services--2 .tile { min-height: 320px; }
}

/* 写真3枚を常に横並びにするギャラリー */
.gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* カウンセリングの相談内容 */
.voice__topic {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  background: var(--c-yellow-pale);
  border-radius: var(--radius-sm);
}

.voice__topic strong {
  display: block;
  color: var(--c-green-dark);
}

/* 数字の項目が多いときは、スマホでも2列にする */
@media (max-width: 599px) {
  .stats--compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats--compact .stat { padding: 20px 8px 16px; }
  .stats--compact .stat__num { font-size: 34px; }
}

.checklist li {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 代表メッセージが長いページでは、読み進めても写真が見える位置に置く */
@media (min-width: 860px) {
  .teacher--long { align-items: start; }
  .teacher--long .teacher__photo { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* 改行位置の調整（ボタン・キャプションなど） */
.news-card__title,
.gallery figcaption,
.flow3__title,
.numlist li,
.btn {
  word-break: auto-phrase;
}

/* スマホでは、ボタンの左右の余白を詰めて1行に収める */
@media (max-width: 599px) {
  .btn:not(.btn--block),
  .btn--lg:not(.btn--block) {
    padding-inline: 1.2em;
  }
}

@media (max-width: 899px) {
  .cta-inline .btn {
    width: 100%;
  }
}

/* スマホ下部の固定ボタンは、上のボタン余白の調整より優先する */
.float-cta .btn {
  padding-inline: 0.6em;
}

/* 3枚のタイルを2列で並べるとき、余った1枚を横幅いっぱいにする */
@media (min-width: 600px) and (max-width: 1023px) {
  .services--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 相談実績などの数字を、写真の代わりに大きく見せる */
.media__stat {
  display: grid;
  place-content: center;
  gap: 4px;
  aspect-ratio: 16 / 10;
  text-align: center;
  background: var(--c-orange-pale);
}

.media__stat-label {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--c-orange-text);
}

.media__stat-num {
  font-family: var(--font-en);
  font-size: clamp(64px, 11vw, 104px);
  font-weight: 700;
  line-height: 1;
  color: var(--c-orange-deep);
}

.media__stat-num small {
  margin-left: 6px;
  font-family: var(--font-round);
  font-size: 0.3em;
}

/* 資料請求のあとに表示するダウンロードボタン */
.form__download {
  display: flex;
  width: fit-content;
  margin: 14px auto 0;
}

/* 見出しと説明文だけのパネルは、下の余白を詰める */
.panel > .section-head:last-child {
  margin-bottom: 0;
}
