@font-face {
  font-family: "Nikumaru";
  src: url("fonts/07nikumaru/07NikumaruFont.otf");
  font-weight: normal;
  font-style: normal;
}

/* =====================
   Base
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Zen Maru Gothic", sans-serif;
  color: #222;
  overflow-x: hidden;
}

main {
  position: relative;
  min-height: 100vh;
}

/* =====================
   Intro (Hex / Loading)
===================== */
#hex-layer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.hex {
  position: absolute;
  width: min(70vw, 420px); /* スマホ基準 */
  transition:
    opacity 0.4s ease,
    transform 0.6s ease;
}

.hex.cyan,
.hex.pink {
  opacity: 0;
}

#loading-brand,
#loading-brand2 {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  font-family: "Nikumaru", sans-serif;
}

.brand {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  text-align: center;
  transition:
    opacity 0.4s ease,
    transform 0.6s ease;
}

.brand1 {
  color: #32d7cd;
}
.brand2 {
  font-size: 60px;
  color: #f5a6a6;
}

/* =====================
   Hero Band / Intro Hero
===================== */
#hero,
#hero-band {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#hero-band {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 166, 166, 0.3),
    transparent 60%
  );
  z-index: 2;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body.is-loaded #hero,
body.is-loaded #hero-band {
  visibility: visible;
  pointer-events: auto;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/p0040_m.jpeg");
  background-repeat: repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* =====================
   Scroll Indicator
===================== */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 3;

  border: 2px solid #f5a6a6;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  background: aliceblue;
  display: grid;
  place-items: center;
  gap: 6px;
  padding-top: 8px;
}

.scroll-indicator p {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #f5a6a6;
  margin: 0;
}

.scroll-indicator .arrow {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-right: 2px solid #f5a6a6;
  border-bottom: 2px solid #f5a6a6;
  transform: rotate(45deg);
  animation: scroll-bounce 1.8s infinite;
}

body.is-loaded .scroll-indicator {
  opacity: 1;
}

@keyframes scroll-bounce {
  0% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    transform: rotate(45deg) translate(6px, 6px);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* navが出たらスクロール誘導は消す */
body.is-main .scroll-indicator {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =====================
   Main Header Nav
===================== */
#site-header {
  position: fixed;
  top: 0;
  right: 5vw;
  width: 90vw;
  margin-top: 10px;
  padding: 12px 14px;
  z-index: 10;

  transition:
    opacity 400ms ease,
    transform 400ms ease; /* ← 正しい書き方 */
  background: #a8e8e484;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.is-main #site-header {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 250ms;
}

#site-header .header-title {
  display: flex;
  align-items: center;
  /* min-width: 140px; */
}

.logo {
  display: none;
}

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

#site-header .nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  gap: 0;
}

#site-header .nav a{
  display: none;
}

#site-header .nav a:last-child{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 999px;

  background: #ff9aa2;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;

  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
}

/* 押したとき */
#site-header .nav a:last-child:active{
  transform: translateY(1px);
  opacity: 0.95;
}

#site-header .hamburger {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: #ff8c8c;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

#site-header .hamburger-lines {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  position: relative;
}

#site-header .hamburger-lines::before,
#site-header .hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
}
#site-header .hamburger-lines::before {
  top: -7px;
}
#site-header .hamburger-lines::after {
  top: 7px;
}

/* =====================
   Main Content fade-in
===================== */
#main-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 1s ease,
    transform 2s ease;
}

body.is-main #main-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* =====================
   Main Hero (class="hero")
===================== */
.hero {
  background: linear-gradient(to bottom, #fff7f3 0%, #ffffff 100%);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 6vw 84px;
}

.hero h2 {
  text-align: center;
  font-weight: 900;
  color: #273b5c;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-size: clamp(28px, 6vw, 40px);
  margin: 20px auto;
  width: 85%;
}

.hero-div {
  display: flex;
  flex-direction: column; /* スマホは縦 */
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.hero-img {
  width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.08));
}

.hero-text {
  width: 100%;
  background: #fffde6;
  border-radius: 16px;
  padding: 22px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
}

.hero-text p {
  margin: 0;
  color: #243654;
  line-height: 1.9;
  font-size: clamp(15px, 3.6vw, 18px);
}

/* =====================
   Problems
===================== */
.problems {
  padding: 48px 5vw;
  background: linear-gradient(to bottom, #f3fbff 0%, #ffffff 55%);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.problems-title {
  text-align: center;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  color: #223b57;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  position: relative;
}

.problems p {
  line-height: 2;
  margin-bottom: 20px;
}
.problem-list {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  /* flex-direction:column;
  align-items:center; */
  gap: 5px;
}

.problem_message p {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  /* font-weight: 600; */
}

.hex-item {
  width: min(160px, 88vw);
  position: relative;
}

.hex-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.1));
}

.hex-item p {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  margin: 0;
  text-align: center;
  font-weight: 900;
  color: #223b57;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

/* 下段：吹き出し＋右下イラスト（スマホは縦積み） */
.problems-bottom {
  max-width: 980px;
  margin: 22px auto 0;
}

.bubble {
  padding: 18px 18px;
  border-radius: 16px;
  /* font-weight:600; */
  line-height: 2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 12px 0;
}

.bubble--navy1 {
  background: #126097;
  color: #fff;
}
.bubble--navy2 {
  background: #3c627e;
  color: #fff;
}
.bubble--light {
  background: rgb(147, 196, 231);
  color: #404040;
}

.problems-illust {
  position: relative;
  width: 100%;
  height: 175px;
  margin-top: 10px;
  pointer-events: none;
}

.illust-school {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 170px;
  height: auto;
}

.illust-shizuku {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  width: 120px;
  height: auto;
}

/* =====================
   Features
===================== */
.features {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 5vw;
  background: linear-gradient(to bottom, #fff7f3 0%, #ffffff 55%);
}

.features h3 {
  text-align: center;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホは1列 */
  gap: 18px;
}

.feature-card {
  background: #d7f5f4;
  border: 2px solid rgba(33, 95, 120, 0.35);
  border-radius: 18px;
  padding: 10px 10px 10px;
  box-shadow:
    0 12px 0 rgba(0, 0, 0, 0.1),
    0 22px 30px rgba(0, 0, 0, 0.1);
}

.feature-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(33, 95, 120, 0.35);
}

.feature-card h4 {
  margin: 0;
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  color: #1f4f64;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8fbff;
  border: 2px solid rgba(33, 95, 120, 0.25);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.feature-icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 35%,
    rgba(255, 255, 255, 0.9),
    rgba(50, 215, 205, 0.25)
  );
}

.feature-body {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  border: 2px dashed rgba(33, 95, 120, 0.25);
  height: 30vh;
  min-height: 220px;
}

.feature-body p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #243654;
  /* font-weight: 600; */
}

.feature-body .em {
  color: #fe8c8c;
  font-weight: 900;
}

/* =====================
   Teacher (wrapper + card)
===================== */
.teachers {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5vw;
  background: linear-gradient(to bottom, #fff7f3 0%, #ffffff 55%);
}

.teacher {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 26px;
  background: #fff;
  border-radius: 22px;
  border: 3px solid #2b5a7b;
  position: relative;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
}

.teacher::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 2px dashed #7db9e4;
  pointer-events: none;
}

.teacher h3 {
  text-align: center;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 6px 0 18px;
  position: relative;
  z-index: 1;
}

.teacher > * {
  position: relative;
  z-index: 1;
}

.teacher-img {
  width: 150px;
  height: auto;
  display: block;
  margin: 10px auto 0;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.1));
}

.teacher ul {
  list-style: none;
  margin: 12px auto 0;
  padding: 18px 16px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid #7db9e4;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.teacher li {
  position: relative;
  padding-left: 46px;
  font-size: 16px;
  line-height: 1.7;
  /* font-weight: 700; */
  color: #233a55;
}

.teacher li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(50, 215, 205, 0.2);
  color: #2b5a7b;
  font-weight: 900;
}

.teacher .btn {
  display: block;
  width: min(320px, 86%);
  margin: 18px auto 0;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #2b5a7b;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}
.teacher .btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* =====================
   Footer (placeholder)
===================== */
footer {
  min-height: 60vh;
}

/* =====================
   Flow (導入までの流れ)
   teacherカードのテイスト寄せ
===================== */
.flows {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5vw;
  background: linear-gradient(to bottom, #fff7f3 0%, #ffffff 55%);
}

.flow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 26px 36px;
  background: #fff;

  border-radius: 22px;
  border: 3px solid #ff9a8a; /* 外枠：ほんのりオレンジ */
  position: relative;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
}

.flow::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 2px dashed rgba(255, 154, 138, 0.55); /* 内枠：点線 */
  pointer-events: none;
}

.flow h3 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 8px 0 18px;
}

.flow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr; /* スマホは縦 */
  gap: 14px;
  margin-top: 10px;
  text-align: center;
}

/* 各ステップカード */
.flow-step {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid rgba(36, 54, 84, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}

/* カードの色味（枠の差） */
.flow-step--blue {
  border-color: rgba(98, 186, 235, 0.55);
}
.flow-step--orange {
  border-color: rgba(255, 154, 138, 0.65);
}
.flow-step--cyan {
  border-color: rgba(50, 215, 205, 0.55);
}

/* 左上の "01" バッジ */
.flow-step__num {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 40px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  flex: 0 0 auto;
  font-size: 1.5rem;
}

.flow-step--blue .flow-step__num {
  background: #6bbfe9;
}
.flow-step--orange .flow-step__num {
  background: #ff9a8a;
}
.flow-step--cyan .flow-step__num {
  background: #4fdad2;
}

.flow-step__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flow-step__label {
  margin: 0;
  font-weight: 900;
  color: #233a55;
  font-size: 15px;
}

.flow-step__lead {
  margin: 6px 0 0;
  font-weight: 900;
  color: #233a55;
  line-height: 1.25;
  font-size: clamp(16px, 4.6vw, 18px);
}

/* アイコン枠（imgは空でも枠が出るように） */
.flow-step__icon {
  margin: 12px auto 0;
  width: 45%;
  height: 110px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.9);
  /* border: 2px solid rgba(0,0,0,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); */
  display: grid;
  place-items: center;
}

.flow-step__icon img {
  width: 100%;
  object-fit: contain;
  display: block;
  /* src未設定でも崩れない */
}

/* スマホ：カード間に下向き矢印 */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #ffb3a7;
  border-radius: 3px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.flow .btn {
  display: block;
  width: min(320px, 86%);
  margin: 35px auto 0;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #2b5a7b;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}
.teacher .btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* =====================
   Fit Section（学びの場…）
===================== */
.fit {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5vw;
  background: linear-gradient(to bottom, #fff7f3 0%, #ffffff 55%);
}

.fit-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;

  border-radius: 22px;
  border: 3px solid #7db9e4; /* 外枠：水色 */
  position: relative;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);

  padding: 22px 16px 26px;
}

.fit-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 2px dashed rgba(125, 185, 228, 0.75); /* 内枠：点線 */
  pointer-events: none;
}

.fit-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 18px;
}

.fit-visual {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 210px;
  margin: 8px auto 18px;

  display: grid;
  place-items: center;
}

/* 左右の建物 */
.fit-school {
  width: 80%;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.08));
}

/* ボタン */
.fit-btn {
  position: relative;
  z-index: 1;

  display: block;
  width: min(360px, 90%);
  margin: 0 auto 6px;
  text-align: center;

  padding: 14px 18px;
  border-radius: 999px;

  background: #2b5a7b;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;

  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.fit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* =====================
   Footer
===================== */
.site-footer {
  background: #f6f0e3; /* うすいベージュ */
  padding: 34px 5vw 0;
}

.footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ロゴ */
.footer-logo {
  display: flex;
  justify-content: center;
  margin: 10px 0 24px;
}

.footer-logo img {
  width: 80%;
  margin: auto;
}

.footer-logo a {
  text-decoration: none;
  color: #333;
  text-align: center;
  display: inline-grid;
  gap: 4px;
}

.footer-logo-text {
  font-family: "Nikumaru", sans-serif;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.06em;
}

/* 右の丸（ロゴ横） */
.footer-rings {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.ring {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  background: #fff;
  border: 3px solid transparent;
}
.ring--cyan {
  border-color: #32d7cd;
}
.ring--pink {
  border-color: #f5a6a6;
}

/* ナビ */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 14px 0 28px;
  margin-left: 20%;
}

.footer-col {
  text-align: left;
  width: 75%;
}

.footer-head {
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #ddd;
}

.footer-head--spaced {
  margin-top: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-col a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

.footer-col a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* 右カラムは見た目合わせ（PCで右寄せ） */
.footer-col--right {
  text-align: left;
}

/* 下段 */
.footer-bottom {
  background: #efe7d7;
  padding: 18px 0 22px;
}

.footer-bottom-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-bottom-link {
  color: #222;
  text-decoration: none;
}

.footer-bottom-link:hover {
  text-decoration: underline;
}

.footer-line {
  width: 90%;
  max-width: 1200px;
  margin: 14px auto 12px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.45);
}

.footer-copy {
  text-align: center;
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* =====================
   Hamburger Menu (Modal)
===================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: none; /* JSで open 時に flex */
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px;
  z-index: 9999;
}

.menu-overlay.is-open {
  display: flex;
}

.menu-panel {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 26px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 18px 18px 22px;

  /* スクロール多い時 */
  max-height: calc(100vh - 40px);
  overflow: auto;
}

/* タイトル行 */
.menu-head {
  position: relative;
  padding: 10px 10px 8px;
  display: grid;
  place-items: center;
}

.menu-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* ×ボタン（右上の丸） */
.menu-close {
  position: absolute;
  right: 8px;
  top: 4px;

  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;

  background: #a8e8e4;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;

  display: grid;
  place-items: center;
}

.menu-close span {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #2b5a7b;
}

.menu-hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 10px 6px 16px;
}

/* 各グループ */
.menu-group {
  margin: 0 6px 18px;
}

.menu-group-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

/* 枠（白背景の角丸ボックス） */
.menu-box {
  border: 2px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  padding: 10px 10px;
  background: #fff;
}

/* アイテム */
.menu-item {
  display: block;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  font-weight: 900;
  line-height: 1.2;

  transition: background 0.2s ease;
}

/* PC：マウスを乗せたとき */
@media (hover: hover) {
  .menu-item:hover {
    background: rgba(168, 232, 228, 0.85);
  }
}

/* スマホ：タップ中 */
.menu-item:active {
  background: rgba(168, 232, 228, 0.85);
}

/* キーボード操作 */
.menu-item:focus-visible {
  outline: none;
  background: rgba(168, 232, 228, 0.85);
}

.menu-item + .menu-item {
  margin-top: 6px;
}

/* CTA（お問い合わせ） */
.menu-cta {
  display: block;
  width: min(320px, 86%);
  margin: 22px auto 4px;
  text-align: center;
  padding: 16px 18px;
  border-radius: 999px;
  background: #ff9aa2;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

/* 開いている間は背景スクロール禁止 */
body.is-menu-open {
  overflow: hidden;
}

/* =====================
   To Top Button
===================== */
.to-top{
  position: fixed;
  right: 5vw;
  bottom: 24px;
  z-index: 9000;

  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;

  background: #ff8c8c; /* ハンバーガーと同色 */
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);

  display: grid;
  place-items: center;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* 表示状態 */
.to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 上向き矢印 */
.to-top-arrow{
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg) translateY(2px);
}

/* 押したとき */
.to-top:active{
  transform: translateY(2px);
}

/* =========================================================
   Flow Page (画像デザイン版)
   競合回避：.flow-page と ft- 接頭辞でスコープ
========================================================= */

.flow-page{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 5vw 60px;
}

/* タイトル */
.flow-page .ft-hero{
  text-align: center;
  padding: 10px 0 16px;
}

.flow-page .ft-hero__title{
  font-size: clamp(20px, 6vw, 32px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 0;
  color: #233a55;
}

/* リスト */
.flow-page .ft-flow{
  width: min(520px, 100%);
  margin: 0 auto;
}

.flow-page .ft-flow__list{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

/* 1ステップ = 左(レール) + 右(カード) */
.flow-page .ft-step{
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
}

/* 左レール */
.flow-page .ft-step__rail{
  position: relative;
  display: grid;
  justify-items: center;
}

.flow-page .ft-step__bubble{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}

.flow-page .ft-step__bubble-label{
  font-size: 12px;
  line-height: 1;
  opacity: 0.95;
}

.flow-page .ft-step__bubble-num{
  font-size: 18px;
  line-height: 1.1;
}

/* 点線の縦ライン */
.flow-page .ft-step__line{
  width: 2px;
  height: calc(100% - 64px + 18px);
  margin-top: 8px;
  background-image: linear-gradient(to bottom, rgba(80,120,170,0.55) 50%, rgba(255,255,255,0) 0%);
  background-size: 2px 10px;
  background-repeat: repeat-y;
  border-radius: 99px;
}

/* 右カード */
.flow-page .ft-step__card{
  background: #fff;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  overflow: hidden;

  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 86px;
}

/* 左の淡色パネル（アイコン枠） */
.flow-page .ft-step__iconpane{
  background: rgba(168,232,228,0.28);
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.flow-page .ft-step__iconpane img{
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.flow-page .ft-step__icon{
  font-size: 34px; /* 絵文字の仮置き用 */
}

/* テキスト */
.flow-page .ft-step__body{
  padding: 14px 14px 14px;
}

.flow-page .ft-step__title{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: #233a55;
  letter-spacing: 0.02em;
}

.flow-page .ft-step__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(35,58,85,0.85);
  font-weight: 700;
}

/* =========================
   カラーバリエーション
   （丸バッジ色 + 左パネル淡色）
========================= */

/* STEP丸 */
.flow-page .ft-step--blue .ft-step__bubble{ background: #6bbfe9; }
.flow-page .ft-step--cyan .ft-step__bubble{ background: #63d2c9; }
.flow-page .ft-step--mint .ft-step__bubble{ background: #7fd7cf; }
.flow-page .ft-step--green .ft-step__bubble{ background: #7ac8a6; }
.flow-page .ft-step--lime .ft-step__bubble{ background: #7fce78; }
.flow-page .ft-step--orange .ft-step__bubble{ background: #e2a07c; }

/* 左パネル */
.flow-page .ft-step--blue .ft-step__iconpane{ background: rgba(107,191,233,0.22); }
.flow-page .ft-step--cyan .ft-step__iconpane{ background: rgba(99,210,201,0.18); }
.flow-page .ft-step--mint .ft-step__iconpane{ background: rgba(127,215,207,0.20); }
.flow-page .ft-step--green .ft-step__iconpane{ background: rgba(122,200,166,0.18); }
.flow-page .ft-step--lime .ft-step__iconpane{ background: rgba(127,206,120,0.18); }
.flow-page .ft-step--orange .ft-step__iconpane{ background: rgba(226,160,124,0.18); }

/* 点線の色を少し寄せたい場合（任意） */
.flow-page .ft-step--blue .ft-step__line{ background-image: linear-gradient(to bottom, rgba(107,191,233,0.65) 50%, rgba(255,255,255,0) 0%); }
.flow-page .ft-step--cyan .ft-step__line{ background-image: linear-gradient(to bottom, rgba(99,210,201,0.65) 50%, rgba(255,255,255,0) 0%); }
.flow-page .ft-step--mint .ft-step__line{ background-image: linear-gradient(to bottom, rgba(127,215,207,0.70) 50%, rgba(255,255,255,0) 0%); }
.flow-page .ft-step--green .ft-step__line{ background-image: linear-gradient(to bottom, rgba(122,200,166,0.70) 50%, rgba(255,255,255,0) 0%); }
.flow-page .ft-step--lime .ft-step__line{ background-image: linear-gradient(to bottom, rgba(127,206,120,0.70) 50%, rgba(255,255,255,0) 0%); }
.flow-page .ft-step--orange .ft-step__line{ background-image: linear-gradient(to bottom, rgba(226,160,124,0.70) 50%, rgba(255,255,255,0) 0%); }

.flow-page .ft-step__line::after{
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);

  width: 10px;
  height: 10px;

  border-right: 2px solid rgba(80,120,170,0.7);
  border-bottom: 2px solid rgba(80,120,170,0.7);
}

.flow-page .ft-step__line{
  position: relative;
  width: 2px;
  height: 60px; /* ← ここが重要（線の長さ） */
  margin: 6px auto 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(80,120,170,0.6),
    rgba(80,120,170,0.6) 4px,
    transparent 4px,
    transparent 8px
  );
}

.flow-page .ft-step__line::after{
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);

  width: 10px;
  height: 10px;

  border-right: 2px solid rgba(80,120,170,0.7);
  border-bottom: 2px solid rgba(80,120,170,0.7);
}

.flow-page .ft-step:last-child .ft-step__line{
  display: none;
}

/* =========================
   Teacher Page (scoped)
   既存CSSと被らないように .teacher-page でスコープ
========================= */

.teacher-page{
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 80px 14px 80px;
}

.teacher-page__hero{
  text-align: center;
  padding: 14px 0 18px;
}

.teacher-page__title{
  font-size: clamp(22px, 6.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 0;
  color: #233a55;
  text-shadow: 0 2px 0 rgba(255,255,255,0.9);
}

/* 右上の小さいメニューボタン（flow/coursesと同系統） */
.teacher-page__fab-menu{
  position: fixed;
  right: 14px;
  top: 10px;
  z-index: 1000;

  width: 66px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #a8e8e4;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  cursor: pointer;

  display: grid;
  place-items: center;
}

.teacher-page__fab-lines{
  width: 18px;
  height: 2px;
  background: #ff8c8c;
  border-radius: 99px;
  position: relative;
  display: block;
}

.teacher-page__fab-lines::before,
.teacher-page__fab-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: #ff8c8c;
  border-radius: 99px;
}

.teacher-page__fab-lines::before{ top: -6px; }
.teacher-page__fab-lines::after{ top: 6px; }

/* 代表講師カード */
.teacher-page__card{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  overflow: hidden;
}

.teacher-page__card-title{
  margin: 0;
  padding: 16px 16px 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #233a55;
}

/* 上段：キャラ＋本文 */
.teacher-page__intro{
  padding: 10px 16px 16px;
}

.teacher-page__avatar{
  display: grid;
  place-items: start center;
  padding: 20px;
}

.teacher-page__avatar img{
  width: 110px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.10));
}

.teacher-page__bio p{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 2;
  color: rgba(35,58,85,0.88);
  font-weight: 500;
}

.teacher-page__bio-strong{
  font-weight: 900;
  color: rgba(35,58,85,0.95);
}

/* 下段：水色の大パネル */
.teacher-page__support-panel{
  background: #dff1fb;
  border-top: 2px solid rgba(0,0,0,0.08);
  padding: 18px 14px 22px;
}

.teacher-page__support-inner{
  background: #fff;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  padding: 16px 14px 16px;
}

.teacher-page__support-title{
  margin: 0 0 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #233a55;
  position: relative;
}

/* タイトル左右の線 */
.teacher-page__support-title::before,
.teacher-page__support-title::after{
  content:"";
  position:absolute;
  top:50%;
  width: 20%;
  max-width: 140px;
  height: 2px;
  background: rgba(0,0,0,0.10);
}
.teacher-page__support-title::before{ left: 0; transform: translateY(-50%); }
.teacher-page__support-title::after{ right: 0; transform: translateY(-50%); }

.teacher-page__support-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.teacher-page__support-item{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.teacher-page__check{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(50,215,205,0.22);
  position: relative;
  margin-top: 3px;
}

.teacher-page__check::after{
  content:"";
  position:absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 3px solid #2b5a7b;
  border-bottom: 3px solid #2b5a7b;
  transform: rotate(-45deg);
}

.teacher-page__support-head{
  font-size: 16px;
  font-weight: 900;
  color: #233a55;
  margin-bottom: 6px;
}

.teacher-page__support-text p{
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(35,58,85,0.88);
  font-weight: 600;
}

.teacher-page__note{
  font-weight: 900;
  color: rgba(35,58,85,0.75);
}

.teacher-page__support-cta{
  margin-top: 14px;
  background: rgba(180, 245, 220, 0.60);
  border: 2px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 900;
  color: #233a55;
  line-height: 1.7;
}

/* =========================
   FAQ Page (scoped)
========================= */

.faq-page{
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 80px 14px 80px;
}

.faq-page__hero{
  text-align: center;
  padding: 14px 0 18px;
}

.faq-page__title{
  font-size: clamp(22px, 6.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 6px;
  color: #233a55;
  text-shadow: 0 2px 0 rgba(255,255,255,0.9);
}

.faq-page__lead{
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(35,58,85,0.85);
  font-weight: 700;
}

/* 右上の小さいメニューボタン */
.faq-page__fab-menu{
  position: fixed;
  right: 14px;
  top: 10px;
  z-index: 1000;

  width: 66px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #a8e8e4;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  cursor: pointer;

  display: grid;
  place-items: center;
}

.faq-page__fab-lines{
  width: 18px;
  height: 2px;
  background: #ff8c8c;
  border-radius: 99px;
  position: relative;
  display: block;
}
.faq-page__fab-lines::before,
.faq-page__fab-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: #ff8c8c;
  border-radius: 99px;
}
.faq-page__fab-lines::before{ top: -6px; }
.faq-page__fab-lines::after{ top: 6px; }

/* Notice */
.faq-page__notice{
  margin: 16px auto 18px;
  background: #dff1fb;
  border: 2px solid rgba(125,185,228,0.55);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.faq-page__notice-title{
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 6px 0 10px;
  color: #1e3556;
}

.faq-page__notice-box{
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.faq-page__notice-item{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.faq-page__notice-item + .faq-page__notice-item{
  border-top: 1px solid rgba(0,0,0,0.10);
}

.faq-page__notice-icon{
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  border: 2px solid rgba(125,185,228,0.45);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.faq-page__notice-text{
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #233a55;
  font-weight: 800;
}

/* Sections */
.faq-page__section{
  margin: 18px auto 22px;
}

.faq-page__section-title{
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 10px 0 14px;
  color: #233a55;
  position: relative;
}

.faq-page__section-title::before,
.faq-page__section-title::after{
  content:"";
  position:absolute;
  top:50%;
  width: 20%;
  max-width: 140px;
  height: 2px;
  background: rgba(0,0,0,0.10);
}
.faq-page__section-title::before{ left: 0; transform: translateY(-50%); }
.faq-page__section-title::after{ right: 0; transform: translateY(-50%); }

/* =========================
   Accordion
========================= */

.faq-acc{
  display: grid;
  gap: 12px;
}

.faq-acc__item{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* summaryのデフォルトマーカー消し */
.faq-acc__summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display: grid;
  grid-template-columns: 26px 1fr 22px;
  gap: 10px;
  align-items: center;
}
.faq-acc__summary::-webkit-details-marker{ display:none; }

.faq-acc__q{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #2b5a7b;
  background: rgba(50,215,205,0.22);
}

.faq-acc__question{
  font-weight: 900;
  color: #233a55;
  font-size: 16px;
  line-height: 1.5;
}

.faq-acc__chev{
  width: 10px;
  height: 10px;
  border-right: 3px solid rgba(35,58,85,0.70);
  border-bottom: 3px solid rgba(35,58,85,0.70);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  justify-self: end;
}

/* 開いたとき */
.faq-acc__item[open] .faq-acc__chev{
  transform: rotate(-135deg);
}

/* content */
.faq-acc__content{
  border-top: 1px solid rgba(0,0,0,0.10);
  padding: 12px 14px 14px;
  background: rgba(223,241,251,0.45); /* うっすら水色 */
}

.faq-acc__content p,
.faq-acc__content li{
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(35,58,85,0.88);
  font-weight: 500;
}

.faq-acc__content ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

/* hover（PCだけ） */
@media (hover:hover){
  .faq-acc__summary:hover{
    background: rgba(168,232,228,0.35);
  }
}

/* =========================
   Support Card
========================= */
.support-card{
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  padding: 16px 14px 16px;
}

.support-card__title{
  margin: 2px 0 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #233a55;
  letter-spacing: 0.04em;
}

.support-card__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.support-card__list li{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.support-card__check{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(50,215,205,0.22);
  position: relative;
  margin-top: 2px;
}
.support-card__check::after{
  content:"";
  position:absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 3px solid #2b5a7b;
  border-bottom: 3px solid #2b5a7b;
  transform: rotate(-45deg);
}

.support-card__head{
  font-size: 16px;
  font-weight: 900;
  color: #233a55;
  margin: 0 0 6px;
}

.support-card p{
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(35,58,85,0.88);
  font-weight: 500;
}

.support-card__cta{
  display: block;
  width: min(320px, 92%);
  margin: 16px auto 2px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #ff9aa2;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(0,0,0,0.16);
}

/* 右下：トップへ */
.faq-page__to-top{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ff8c8c;
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 1000;
}

.faq-page__to-top::before{
  content:"";
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg) translateY(1px);
}

.faq-page .notice{
  width: 100%;
  max-width: 980px;
  margin: 0 auto 16px;
  background: #dff1fb;
  border: 2px solid rgba(125,185,228,0.55);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.faq-page .notice-title{
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 6px 0 10px;
  color: #1e3556;
}

.faq-page .notice-items{
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.faq-page .notice-item{
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 20px;
  align-items: center;
  padding: 10px 0;
}

.faq-page .notice-item + .notice-item{
  border-top: 1px solid rgba(0,0,0,0.10);
}

.faq-page .notice-icon{
  width: 100%;
  max-width: 130px;
  text-align: center;
  /* height: 50px; */
  /* border-radius: 10px; */
  /* background: rgba(255,255,255,0.9); */
  /* border: 2px solid rgba(125,185,228,0.45); */
  /* display: grid;
  place-items: center;
  font-size: 26px; */
}

.faq-page .notice-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #233a55;
  font-weight: 800;
}

/* =========================================================
   contact.html 専用（スマホファースト）
   ※ 他ページと被らないように .contact-page スコープ
========================================================= */

.contact-page {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 84px 14px 80px;
}

/* タイトル */
.contact-page__hero {
  text-align: center;
  padding: 8px 0 14px;
}

.contact-page__title {
  font-size: clamp(20px, 6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 8px 0 0;
  color: #233a55;
}

/* 外枠カード */
.contact-card {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  padding: 16px 14px 20px;
}

/* 上部：キャラ＋文章 */
.contact-card__intro {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 10px 6px 14px;
}

.contact-card__char {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.contact-card__char img {
  width: 96px;
  height: auto;
  display: block;
}

.contact-card__message p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.9;
  font-weight: 800;
  color: rgba(35, 58, 85, 0.92);
}

.contact-card__message-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  font-weight: 800;
  color: rgba(35, 58, 85, 0.80);
}

/* フォーム全体 */
.contact-form {
  padding-top: 6px;
}

.contact-form__fieldset {
  border: none;
  padding: 0;
  margin: 10px 0 14px;
}

.contact-form__legend {
  font-size: 14px;
  font-weight: 900;
  color: #233a55;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

.contact-form__hint {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(35, 58, 85, 0.55);
  font-weight: 700;
}

/* Segmented（3つの角丸ボタン） */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.segmented__item {
  display: block;
  position: relative;
}

.segmented__item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented__label {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-weight: 900;
  font-size: 12px;
  color: rgba(35, 58, 85, 0.85);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* 選択状態 */
.segmented__item input:checked + .segmented__label {
  background: rgba(223, 241, 251, 1);
  border-color: rgba(125, 185, 228, 0.55);
}

/* hoverできる環境だけ */
@media (hover: hover) {
  .segmented__item:hover .segmented__label {
    transform: translateY(-1px);
  }
}

/* 入力欄 */
.contact-form__grid {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 900;
  color: #233a55;
  letter-spacing: 0.03em;
}

.field__input,
.field__textarea {
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}

.field__input:focus,
.field__textarea:focus {
  border-color: rgba(125, 185, 228, 0.70);
}

.field__textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}

/* 下部2カラム（画像のレイアウト） */
.contact-form__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.pick {
  border: none;
  padding: 0;
  margin: 0;
}

.pick__title {
  font-size: 14px;
  font-weight: 900;
  color: #233a55;
  margin: 0 0 10px;
}

.pick__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: rgba(35, 58, 85, 0.85);
  margin: 10px 0;
  font-size: 13px;
}

/* ラジオの見た目（丸） */
.pick__row input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: rgba(125, 185, 228, 0.95);
}

/* 送信ボタン */
.contact-form__actions {
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.contact-submit {
  width: min(320px, 92%);
  height: 52px;
  border-radius: 999px;
  border: none;
  background: #2b5a7b;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 14px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

@media (hover: hover) {
  .contact-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
  }
}


/* =====================
   Reduced Motion
===================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   PC上書き（ここだけ！）
   1100px以上でレイアウトを横並び・2列化・ナビ表示など
========================================================= */
@media (min-width: 1100px) {
  .logo {
    width: 280px;
    display: block;
  }
  body:not(.is-main) #site-header {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
  }

  /* Hex（PCは少し大きく） */
  .hex {
    width: min(50vw, 600px);
  }

  /* Header：PCはナビ表示 */
  #site-header {
    padding: 14px 18px;
    gap: 16px;
    position: fixed;
    top: 0;
    left: 5vw;
    right: auto;
    width: 90vw;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #a8e8e4;
  }
  #site-header .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
    white-space: nowrap;
  }
  #site-header .nav a {
    display: inline-block;
    text-decoration: none;
    color: #2a3b3b;
    font-weight: 800;
    font-size: 15px;
    padding: 6px 4px;
    border-radius: 10px;
    transition:
      background 160ms ease,
      transform 160ms ease;
  }
  #site-header .nav a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
  }

  /* Hero：PCは横並び */
  .hero {
    padding: 110px 6vw 120px;
  }
  .hero h2 {
    font-size: clamp(40px, 2.5vw, 56px);
    margin-bottom: 5vh;
  }
  .hero-div {
    flex-direction: row;
    gap: 60px;
  }
  .hero-img {
    width: min(250px, 18vw);
  }
  .hero-text {
    width: min(780px, 60vw);
    padding: 34px 42px;
  }

  .hero-text p {
    font-size: 20px;
  }

  /* Problems：PCは横に並べる */
  .problem-list {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(16px, 2.5vw, 32px);
    flex-wrap: wrap;
  }

  .problems p {
    font-size: 20px;
  }

  .hex-item {
    flex: 0 1 30%;
    max-width: 230px;
    width: auto;
  }

  .hex-item p {
    top: 65px;
    font-size: 20px;
    width: 70%;
  }

  /* Problems bottom：PCは絶対配置（あなたの元の配置に近い） */
  .problems-bottom {
    position: relative;
    /* height:45vh; */
    min-height: 260px;
    padding-bottom: 20px;
  }
  .bubbles {
    position: relative;
    min-height: 460px;
  }
  .bubble {
    position: absolute;
    width: auto;
    margin: 0;
    max-width: 360px;
    font-size: 18px;
  }

  .bubble--left {
    left: 10%;
    top: 6px;
  }
  .bubble--right {
    right: 140px;
    top: 10px;
  }
  .bubble--center {
    left: 30%;
    top: 180px;
    max-width: 420px;
  }

  .bubble--left::after,
  .bubble--right::after,
  .bubble--center::after {
    content: "";
    position: absolute;
    bottom: -14px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
  }
  .bubble--left::after {
    right: 34px;
    border-top: 16px solid #2b5a7b;
  }
  .bubble--right::after {
    left: 34px;
    border-top: 16px solid #2b5a7b;
  }
  .bubble--center::after {
    right: 90px;
    border-top: 16px solid rgb(147, 196, 231);
  }

  .problems-title::before,
  .problems-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18vw;
    max-width: 160px;
    height: 2px;
    background: rgba(34, 59, 87, 0.18);
  }
  .problems-title::before {
    left: 0;
    transform: translateY(-50%);
  }
  .problems-title::after {
    right: 0;
    transform: translateY(-50%);
  }

  .problems-illust {
    position: absolute;
    right: 30%;
    bottom: 0;
    width: 40%;
    max-width: 350px;
    height: 200px;
  }
  .illust-school {
    right: 0;
    bottom: 14px;
    width: 180px;
  }
  .illust-shizuku {
    left: 0;
    bottom: 0;
    width: 130px;
    transform: none;
  }

  /* Features：PCは2列 */
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 28px);
  }

  .features h3::before,
  .features h3::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18vw;
    max-width: 160px;
    height: 2px;
    background: rgba(0, 0, 0, 0.12);
  }
  .features h3::before {
    left: 0;
    transform: translateY(-50%);
  }
  .features h3::after {
    right: 0;
    transform: translateY(-50%);
  }

  .feature-body {
    height: 30vh;
  }

  .feature-body p {
    font-size: 18px;
    /* font-weight: 600; */
  }

  /* Teacher：PCは「画像左・リスト右」に */
  .teachers {
    padding: 80px 5vw;
  }

  .teacher {
    padding: 30px 26px 36px;
    display: grid;
    grid-template-columns: 230px 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
  }
  .teacher h3 {
    grid-column: 1 / -1;
  }

  .teacher h3::before,
  .teacher h3::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18vw;
    max-width: 180px;
    height: 2px;
    background: rgba(0, 0, 0, 0.12);
  }
  .teacher h3::before {
    left: 0;
    transform: translateY(-50%);
  }
  .teacher h3::after {
    right: 0;
    transform: translateY(-50%);
  }

  .teacher-img {
    margin: 0;
    width: 190px;
    align-self: center;
    justify-self: start;
    grid-row: 2;
  }
  .teacher ul {
    margin: 0;
    padding: 22px 22px;
    grid-row: 2;
  }
  .teacher .btn {
    grid-column: 1 / -1;
  }

  .teacher li {
    font-size: 22px;
    font-weight: 600;
  }

  flows {
    padding: 120px 5vw;
  }

  .flow h3::before,
  .flow h3::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18vw;
    max-width: 180px;
    height: 2px;
    background: rgba(0, 0, 0, 0.12);
  }
  .flow h3::before {
    left: 0;
    transform: translateY(-50%);
  }
  .flow h3::after {
    right: 0;
    transform: translateY(-50%);
  }

  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .flow-step__icon {
    height: 105px;
  }

  /* スマホの下矢印は消す */
  .flow-step:not(:last-child)::after {
    display: none;
  }

  /* 代わりに、カード間の右向き矢印（擬似要素で） */
  .flow-step:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 16px solid #ffb3a7;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
  }

  .fit {
    padding: 100px 5vw;
  }

  .fit-title::before,
  .fit-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10vw;
    max-width: 180px;
    height: 2px;
    background: rgba(0, 0, 0, 0.12);
  }
  .fit-title::before {
    left: 0;
    transform: translateY(-50%);
  }
  .fit-title::after {
    right: 0;
    transform: translateY(-50%);
  }
  .fit-card {
    padding: 30px 26px 36px;
  }
  .fit-visual {
    height: 260px;
  }

  .fit-school {
    width: 65%;
    bottom: 52px;
  }
  .fit-shizuku {
    width: 210px;
    bottom: 18px;
  }
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
  }

  .to-top{
    width: 60px;
    height: 60px;
  }

  .flow-page .ft-flow{
    width: min(720px, 100%);
  }
  .flow-page .ft-step{
    grid-template-columns: 86px 1fr;
    gap: 14px;
  }
  .flow-page .ft-step__card{
    grid-template-columns: 110px 1fr;
  }
  .flow-page .ft-step__title{ font-size: 18px; }
  .flow-page .ft-step__text{ font-size: 14px; }

  .teacher-page{
    padding: 100px 14px 100px;
  }
  .teacher-page__intro{
    grid-template-columns: 160px 1fr;
    gap: 18px;
  }
  .teacher-page__avatar img{
    width: 140px;
  }
  .teacher-page__bio p{
    font-size: 14px;
  }
  .teacher-page__support-head{
    font-size: 18px;
  }
  .teacher-page__support-text p{
    font-size: 13px;
  }
  .faq-page{
    padding: 100px 14px 100px;
  }
  .faq-page__lead{
    font-size: 14px;
  }
  .faq-acc__question{
    font-size: 16px;
  }
  .faq-acc__content p,
  .faq-acc__content li{
    font-size: 16px;
  }

  .faq-page .notice-title{ font-size: 16px; }
  .faq-page .notice-text{ font-size: 16px; }

  .contact-page {
    width: min(520px, 100%);
  }
  .contact-card__intro {
    grid-template-columns: 120px 1fr;
  }
  .contact-card__char img {
    width: 110px;
  }
}

/* =========================================================
   PC上書き（ここだけ！）
   900px以上でレイアウトを横並び・2列化・ナビ表示など
========================================================= */
@media (min-width: 900px) {
  .hex-item {
    flex: 0 1 30%;
    max-width: 230px;
    width: auto;
  }
  .hex-item p {
    top: 65px;
    font-size: 18px;
    width: 70%;
  }
  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
  }
  .contact-form__two {
    grid-template-columns: 1fr;
  }
}
