/* ============================================================
   にほんごの「ぷ」  -  スタイルシート
   テーマ: やさしいクリーム色 × まるみのある書体
   ============================================================ */

:root {
  --cream:        #faf3e2;  /* メインのクリーム背景 */
  --cream-deep:   #f3e9d2;  /* 少し濃いクリーム */
  --ink:          #4a4136;  /* 文字色（やわらかい茶） */
  --ink-light:    #8a7d6c;  /* 補助テキスト */
  --green:        #7b9e57;  /* メインの緑 */
  --green-deep:   #6a8c48;  /* 濃い緑（ホバー） */
  --terra:        #cf8160;  /* テラコッタ（アクセント） */
  --terra-deep:   #bd6f4f;  /* 濃いテラコッタ */
  --accent:       #7b9e57;  /* 基調色（= 緑） */
  --accent-soft:  #a9c489;  /* やわらかい緑 */
  --white:        #fffef9;  /* カードなどの背景 */
  --shadow:       0 10px 30px rgba(90, 80, 55, 0.10);
  --radius:       18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Maru Gothic", "Kosugi Maru", sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(900px, 90%);
  margin: 0 auto;
}
.container--wide { width: min(1180px, 94%); }
.container--flow { width: min(1360px, 96%); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.8em 2.1em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--green);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(123, 158, 87, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: 0 12px 24px rgba(123, 158, 87, 0.34);
}
/* アウトライン（白地に枠線） */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-deep);
}
.header__inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.header__badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.header__pu { color: var(--terra); }

/* 右端のナビ（お問い合わせ） */
.nav__link--btn {
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.4em;
  flex-wrap: nowrap;
}
.nav__link {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }

/* ===== 言語切り替え ===== */
.lang-switch {
  display: flex;
  align-items: center;
}
.lang-switch__select {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--cream-deep);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4136' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 0.9em;
  border: none;
  border-radius: 999px;
  padding: 0.45em 2.2em 0.45em 1.1em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background-color 0.2s ease;
}
.lang-switch__select:hover { background-color: var(--accent-soft); }
.lang-switch__select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
@media (max-width: 880px) {
  .lang-switch { margin-right: 0.4rem; }
  .lang-switch__select { padding: 0.35em 1.9em 0.35em 0.8em; font-size: 0.76rem; }
}

/* ヘッダー右側（ログイン＋言語切り替え＋ハンバーガー）をまとめる */
.header__right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* ===== ログインボタン（ヘッダー） ===== */
.login-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.login-switch svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}
.login-switch:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 880px) {
  .login-switch { padding: 0.5em; }
  .login-switch span { display: none; }
}

/* ===== ログイン中の表示（メールアドレス＋ログアウト） ===== */
.user-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85rem;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 0.4em 0.5em 0.4em 1em;
}
.user-switch__email {
  font-weight: 700;
  color: var(--ink);
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-switch__mypage {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  white-space: nowrap;
}
.user-switch__mypage:hover { text-decoration: underline; }
.user-switch__logout {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-light);
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-radius: 999px;
  padding: 0.4em 0.9em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.user-switch__logout:hover {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
@media (max-width: 880px) {
  .user-switch { padding: 0.35em 0.35em 0.35em 0.7em; gap: 0.4em; }
  .user-switch__email { max-width: 6.5em; font-size: 0.78rem; }
  .user-switch__mypage { font-size: 0.72rem; }
  .user-switch__logout { padding: 0.35em 0.7em; font-size: 0.72rem; }
}

/* ハンバーガー（モバイル用） */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero（2カラム） ===== */
.hero {
  background:
    linear-gradient(180deg, rgba(250, 243, 226, 0.55) 0%, rgba(250, 243, 226, 0.88) 100%),
    url('images/hero-bg.jpg') center 70% / cover no-repeat;
  padding: 6rem 0 6.5rem;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: min(1100px, 92%);
  margin: 0 auto;
}
.hero__text { flex: 1 1 56%; }

/* ヒーロー右側のイラスト（プロフィールへのリンク） */
.hero__figure {
  flex: 1 1 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.hero__figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  transition: transform 0.2s ease;
}
.hero__figure:hover img { transform: translateY(-5px); }
.hero__figure-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
}
.hero__figure-label::after { content: " →"; }
.hero__figure:hover .hero__figure-label { text-decoration: underline; }
.hero__eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.hero__heading {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.45;
  color: #3a342c;
  margin-bottom: 1.6rem;
}
.hero__mark {
  background: linear-gradient(transparent 62%, rgba(207, 129, 96, 0.45) 62%);
  color: var(--terra-deep);
  padding: 0 0.08em;
}
.hero__lead {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 2.2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 引用カード（右側） */
.hero__card {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}
.quote {
  background: var(--white);
  border: 2px dashed #cdd9b8;
  border-radius: 22px;
  padding: 3rem 2.4rem;
  text-align: center;
  box-shadow: 0 18px 40px rgba(90, 80, 55, 0.10);
  max-width: 420px;
  width: 100%;
}
.quote__leaf {
  width: 46px;
  height: 46px;
  display: block;
  margin: 0 auto 1.6rem;
}
.quote__text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.quote__by {
  color: var(--ink-light);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 2.6rem;
  }
  .hero__text { flex-basis: auto; }
  .hero__actions { justify-content: center; }
}

/* ===== Section 共通 ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--cream-deep); }
.narrow { width: min(720px, 90%); }
#faqAccordion { width: min(920px, 94%); margin: 0 auto; }

/* ===== 下層ページのヒーロー ===== */
.page-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 201, 122, 0.25), transparent 45%),
    var(--cream);
  text-align: center;
  padding: 5rem 1rem 4rem;
}
.page-hero__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0.4rem 0 1.2rem;
  line-height: 1.5;
}
.page-hero__lead {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 620px;
  margin: 0 auto;
}
.page-hero__zoom {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 1.6rem;
}

/* ===== ヒーロー：左にテキスト、右に大きな料金 ===== */
.page-hero--split .page-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  text-align: left;
}
.page-hero--split .page-hero__text {
  flex: 1 1 auto;
}
.page-hero--split .page-hero__title,
.page-hero--split .page-hero__lead {
  margin-left: 0;
  margin-right: 0;
}
.page-hero--split .page-hero__title {
  font-size: clamp(4.5rem, 13vw, 9rem);
  margin: 0;
  line-height: 1;
}
.page-hero__price {
  flex: 0 0 auto;
  text-align: center;
}
.page-hero__price-label {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.page-hero__price-amount {
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}
.page-hero__price-yen {
  font-size: 0.65em;
  margin-right: 0.05em;
  vertical-align: 0.12em;
}
.page-hero__price-note {
  display: inline-block;
  margin: 1.6rem 0 0;
  padding: 0.35em 1em;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 700;
  color: var(--green-deep);
  background: #eef4e6;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  white-space: nowrap;
}
.page-hero__price-link {
  display: block;
  margin-top: 1.2rem;
}
@media (max-width: 720px) {
  .page-hero--split .page-hero__grid {
    flex-direction: column;
    text-align: center;
  }
  .page-hero--split .page-hero__text {
    text-align: center;
  }
  .page-hero__price {
    margin-top: 0.5rem;
  }
}

/* ===== 使う教科書（画像＋テキスト） ===== */
.textbook {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 940px;
  margin: 0 auto;
}
.textbook__figure {
  margin: 0;
  flex: 0 0 440px;
  text-align: center;
}
.textbook__img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.textbook__caption {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-light);
}
.textbook__body p { margin-bottom: 1.2rem; }
.textbook__body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .textbook {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }
}

/* ===== プロフィール（画像＋テキスト） ===== */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 820px;
  margin: 0 auto;
}
.profile__figure {
  flex: 0 0 320px;
  text-align: center;
}
.profile__figure img {
  width: 100%;
  max-width: 240px;
  height: auto;
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
/* 自己紹介YouTube動画の埋め込み予定地（目印の枠）。
   実際の動画が決まったら、この枠の中身をYouTubeの<iframe>に差し替えてください。 */
.profile__video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 2px dashed var(--accent-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--ink-light);
}
.profile__video-placeholder__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.profile__video-placeholder__text {
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}
/* 実際にYouTube動画を埋め込む際は、上記の枠を撤去してこちらのiframeラッパーを使ってください */
.profile__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.profile__body { flex: 1 1 auto; }
.profile__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.profile__body > p {
  color: var(--ink);
  line-height: 2;
  margin-bottom: 1.8rem;
}
.profile__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.profile__row {
  display: flex;
  gap: 1rem;
}
.profile__row dt {
  flex: 0 0 5em;
  font-weight: 700;
  color: var(--ink);
}
.profile__row dd {
  color: var(--ink-light);
  margin: 0;
}
@media (max-width: 680px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile__row { justify-content: center; }
}

/* ===== ページ下部のCTA ===== */
.page-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.back-link {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent); }
.section__label {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
/* 「お問い合わせ」セクションは、直前の「よくある質問」と色が同化しないよう、
   テラコッタ（サイトの別アクセント色）に変える */
#contact .section__label { color: var(--terra); }
.section__title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2.8rem;
}
.section__title--left { text-align: left; }

/* ===== Intro（テキスト＋右側に画像を入れる用の2カラム） ===== */
.intro {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: min(1100px, 94%);
}
.intro__text { flex: 1 1 58%; }
.intro__text .section__title {
  margin-bottom: 1.2rem;
  white-space: nowrap;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
}
.intro__figure {
  flex: 1 1 42%;
  min-height: 260px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--ink-light);
  font-size: 0.9rem;
}
.intro__video {
  width: 100%;
  border-radius: 16px;
  display: block;
}
@media (max-width: 760px) {
  .intro { flex-direction: column; }
  .intro__text { flex-basis: auto; text-align: center; }
  .intro__text .section__title--left { text-align: center; white-space: normal; }
  .intro__figure { flex-basis: auto; width: 100%; }
}

/* ===== About（2カラム） ===== */
.about { background: var(--cream); }
.about__grid {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.about__points {
  flex: 1 1 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.point {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-left: 5px solid var(--green);
  border-radius: 12px;
  padding: 1.4rem 1.7rem;
  box-shadow: var(--shadow);
}
.point__desc {
  flex: 1 1 auto;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.8;
  margin: 0;
  padding-left: 1.6rem;
  border-left: 1px solid #e6dcc4;
}
.point__num {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.point__text {
  flex: 0 0 17em;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.5;
  margin: 0;
}
.point__sub {
  display: block;
  margin-top: 0.6rem;
}
.point__sub-item {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.7;
}
.point--media {
  flex-wrap: wrap;
}
.point--media .point__desc {
  flex-basis: 100%;
  margin-top: 1.2rem;
  padding-left: 0;
  padding-top: 1.2rem;
  border-left: none;
  border-top: 1px solid #e6dcc4;
}
.point__desc--img {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.point__img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e6dcc4;
}
.section__lead {
  text-align: center;
  color: var(--ink-light);
  max-width: 620px;
  margin: -1.8rem auto 2.6rem;
  font-size: 1rem;
  line-height: 1.8;
}
.point__audio {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.point__desc > .point__audio:first-child {
  margin-top: 0;
}
.point__audio-label {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  white-space: nowrap;
}
.point__audio audio {
  flex: 1 1 auto;
  width: 100%;
  max-width: 520px;
  height: 46px;
  accent-color: var(--green);
}
@media (max-width: 760px) {
  .point__audio { flex-wrap: wrap; }
  .point__audio audio { max-width: 100%; }
}

/* ===== カリキュラムの強調枠＋吹き出し ===== */
.curriculum-highlight {
  position: relative;
  border: 3px solid #c0392b;
  border-radius: 20px;
  padding: 2.6rem 1.4rem 1.4rem;
}
.curriculum-highlight__bubble {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(192, 57, 43, 0.3);
}
.curriculum-highlight__bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #c0392b;
}
@media (max-width: 700px) {
  .curriculum-highlight__bubble {
    white-space: normal;
    width: 90%;
    border-radius: 18px;
  }
}

/* 2列目（言語知識（読解）・聴解）用：別の色の強調枠＋吹き出し */
.curriculum-highlight--blue {
  border-color: #2f6fae;
  padding: 1.4rem 1.4rem 4.6rem;
}
.curriculum-highlight--second .curriculum-grid__row--second {
  margin: 0;
}
.curriculum-highlight__bubble--blue {
  background: #2f6fae;
  box-shadow: 0 8px 18px rgba(47, 111, 174, 0.3);
  white-space: normal;
  width: max-content;
  max-width: 90%;
}
.curriculum-highlight__bubble--blue::after {
  border-top-color: #2f6fae;
}
/* 吹き出しを枠の下側に表示 */
.curriculum-highlight__bubble--bottom {
  top: auto;
  bottom: -1.8rem;
}
.curriculum-highlight__bubble--bottom::after {
  bottom: auto;
  top: -8px;
  border-top: none;
  border-bottom: 8px solid #2f6fae;
}

/* ===== カリキュラム項目（クリックで詳細をモーダル表示） ===== */
.curriculum-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.curriculum-grid__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.4rem;
}
.curriculum-grid__row--second {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  margin: 0;
}
/* 上の3項目のすき間（矢印の位置）にちょうど来るよう、中央に寄せて配置 */
.curriculum-grid__row--second .curriculum-grid__btn:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
  justify-self: center;
  width: 50%;
}
.curriculum-grid__row--second .curriculum-grid__btn:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: center;
  width: 50%;
}
.curriculum-grid__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.curriculum-grid__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  font-family: inherit;
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-left: 5px solid var(--green);
  border-radius: 14px;
  padding: 2rem 1.4rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.curriculum-grid__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(120, 95, 60, 0.20);
}
.curriculum-grid__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.curriculum-grid__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 700px) {
  .curriculum-grid__row { grid-template-columns: 1fr; }
  .curriculum-grid__row--second { grid-template-columns: 1fr; max-width: none; }
  .curriculum-grid__row--second .curriculum-grid__btn:nth-child(1),
  .curriculum-grid__row--second .curriculum-grid__btn:nth-child(2) {
    grid-column: auto;
    width: 100%;
  }
  .curriculum-grid__arrow { transform: rotate(90deg); }
}

/* ===== 授業一覧（3行×5列のボタン） ===== */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.lesson-grid__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 14px;
  padding: 1.6rem 0.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lesson-grid__btn:hover {
  background: var(--green-deep);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(120, 95, 60, 0.20);
}
@media (max-width: 1000px) {
  .lesson-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 授業内容モーダル（5項目） ===== */
.lesson-modal .modal__overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__dialog.lesson-modal__dialog {
  width: min(720px, 100%);
}
.lesson-modal__body { margin: 0; }
.lesson-plan__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.lesson-plan__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
}
.lesson-plan__num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.lesson-plan__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lesson-plan__title {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}
.lesson-plan__example {
  font-size: 1.3rem;
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.6;
}
.lesson-plan__highlight {
  color: #c0392b;
}
@media (max-width: 560px) {
  .lesson-plan__items { grid-template-columns: 1fr; }
}

/* ===== 予約受付表（カレンダー形式） ===== */
.schedule-wrap {
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.schedule-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
}
.schedule-table th,
.schedule-table td {
  border: 1px solid #e6dcc4;
  text-align: center;
}
.schedule-table thead th {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.85rem 0.4rem;
  border-color: var(--green-deep);
}
.schedule-table thead th.schedule-table__time {
  background: var(--green-deep);
  white-space: nowrap;
}
.schedule-table__time {
  background: var(--cream-deep);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
  padding: 0.7rem 0.2rem;
}
.schedule-table__time--your {
  color: var(--green-deep);
  text-align: right;
  padding-right: 0.3rem;
}
.schedule-table__time-note {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.schedule-table__time-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-deep);
  white-space: nowrap;
}
.schedule-table__cell {
  min-width: 64px;
  height: 42px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s ease;
}
/* 体験レッスンをすでに利用済みのユーザーには、予約表そのものを操作できないようにする */
.schedule-table.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.schedule-table tbody tr:nth-child(even) .schedule-table__cell {
  background: var(--cream);
}
.schedule-table__cell:hover {
  background: #dcebc9;
}
.schedule-table__cell:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: -2px;
}
.schedule-table__cell.is-selected,
.schedule-table tbody tr:nth-child(even) .schedule-table__cell.is-selected {
  background: var(--green);
}
.schedule-table__cell.is-selected::after {
  content: "\2713";
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.schedule-table__cell.is-booked,
.schedule-table tbody tr:nth-child(even) .schedule-table__cell.is-booked {
  background: #ece5d6;
  cursor: not-allowed;
}
.schedule-table__cell.is-booked::after {
  content: "×";
  color: #b9ac93;
  font-weight: 700;
}
/* 管理者用の予約表だけで使う：先生が個人の都合で手動ブロックしたコマ
   （生徒の予約によるバツとは色を分け、クリックで解除できるようにする） */
.schedule-table__cell.is-booked.is-manual,
.schedule-table tbody tr:nth-child(even) .schedule-table__cell.is-booked.is-manual {
  background: #f1ded2;
  cursor: pointer;
}
.schedule-table__cell.is-booked.is-manual::after {
  color: var(--terra-deep);
}
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin: -0.4rem 0 1.2rem;
}
.schedule-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-light);
}
.schedule-legend__swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid #e6dcc4;
}
.schedule-legend__swatch--student {
  background: #ece5d6;
}
.schedule-legend__swatch--manual {
  background: #f1ded2;
}
.schedule-hint {
  text-align: center;
  color: var(--ink-light);
  font-size: 0.9rem;
  margin: -0.6rem 0 1rem;
}
.schedule-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.schedule-book__selected {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.schedule-login-required {
  text-align: center;
  color: #c75c5c;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1rem auto 0;
  max-width: 480px;
}
.schedule-confirm {
  max-width: 720px;
  margin: 1.4rem auto 0;
  padding: 1.6rem;
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-radius: var(--radius);
}
.schedule-confirm__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.schedule-confirm__col--total {
  text-align: center;
  border-left: 1.5px dashed #e6dcc4;
  padding-left: 2rem;
}
.schedule-confirm__total-label {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.schedule-confirm__reservee-label {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.schedule-confirm__reservee-label--email {
  margin-top: 0.8rem;
}
.schedule-confirm__reservee-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--terra-deep);
  margin: 0 0 0.2rem;
}
.schedule-confirm__reservee-email {
  font-size: 0.92rem;
  color: var(--ink-light);
  margin: 0 0 0.8rem;
}
.schedule-confirm__total-amount {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1;
  margin: 0 0 0.6rem;
}
.schedule-confirm__yen {
  font-size: 0.65em;
  margin-right: 0.05em;
}
.schedule-confirm__ticket-note {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-deep);
  background: #eef4e6;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 0.35em 1em;
  margin: 0 0 1rem;
}
.schedule-confirm__paypal-bubble {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 1.1rem;
  padding: 0.75em 1.2em;
  background: #eef6ff;
  border: 2px solid #009cde;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 61, 130, 0.18);
}
.schedule-confirm__paypal-text {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #142c8e;
  text-align: center;
  margin: 0;
  white-space: nowrap;
}
.schedule-confirm__paypal-bubble::before,
.schedule-confirm__paypal-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
}
.schedule-confirm__paypal-bubble::before {
  top: -12px;
  border-width: 0 10px 12px 10px;
  border-color: transparent transparent #009cde transparent;
}
.schedule-confirm__paypal-bubble::after {
  top: -9px;
  border-width: 0 8px 10px 8px;
  border-color: transparent transparent #eef6ff transparent;
}
.schedule-confirm__paypal-logo {
  height: 20px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.schedule-confirm__note {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin: 0;
}
.schedule-confirm__error {
  color: #c75c5c;
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
}
.schedule-confirm__email-label {
  margin-top: 1.1rem;
}
.schedule-confirm__submit {
  display: block;
  width: 100%;
  margin-top: 1.4rem;
}
.schedule-confirm__sent {
  max-width: 720px;
  margin: 1.4rem auto 0;
  padding: 1.1rem 1.4rem;
  background: #eef4e6;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}
@media (max-width: 640px) {
  .schedule-confirm__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .schedule-confirm__col--total {
    border-left: none;
    padding-left: 0;
    border-top: 1.5px dashed #e6dcc4;
    padding-top: 1.2rem;
  }
}

/* ===== 利用券購入の確認パネル（bundle.html） ===== */
#bundleConfirm {
  max-width: 480px;
  text-align: center;
}
#bundleConfirm .schedule-confirm__reservee-label {
  font-size: 1.05rem;
}
#bundleConfirm .schedule-book__selected {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--terra-deep);
  margin-bottom: 1.2rem;
}
#bundleConfirm .schedule-confirm__reservee-email {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
#bundleConfirm .schedule-confirm__reservee-label--email {
  margin-top: 1.1rem;
}
#bundleConfirm .schedule-login-required {
  max-width: none;
}

/* ===== 無料体験レッスンの確認パネル（index.html）：料金を右側中央に大きく表示 ===== */
#trialScheduleConfirm .schedule-confirm__col--total {
  align-self: center;
}
#trialScheduleConfirm .schedule-confirm__total-amount {
  font-size: clamp(3.2rem, 7vw, 4.4rem);
  margin-bottom: 1rem;
}
#trialScheduleConfirm .schedule-confirm__col--total .schedule-confirm__note {
  font-size: 0.85rem;
}
#trialLoggedOutView {
  text-align: center;
}
#trialLoggedOutView .schedule-login-required {
  margin-bottom: 1.4rem;
}
.btn:disabled {
  background: #cfc7b3;
  border-color: #cfc7b3;
  color: #8a7d6c;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn:disabled:hover {
  background: #cfc7b3;
  border-color: #cfc7b3;
  transform: none;
  box-shadow: none;
}
.schedule-table__dow {
  display: block;
}
.schedule-table__date {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.25rem;
}
.schedule-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.schedule-nav__range {
  min-width: 15em;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
}
.schedule-nav__btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: var(--white);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.schedule-nav__btn:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
}
.schedule-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
ruby {
  ruby-align: center;
}
rt {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--ink-light);
  user-select: none;
}

@media (max-width: 760px) {
  .point { flex-wrap: wrap; }
  .point__text { flex-basis: auto; }
  .point__desc {
    flex-basis: 100%;
    padding-left: 0;
    border-left: none;
    margin-top: 0.5rem;
  }
}
.about__body {
  flex: 1 1 auto;
  text-align: left;
}
.about__body p { margin-bottom: 1.4rem; }
.about__body p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .about__grid {
    flex-direction: column;
    gap: 2.2rem;
  }
  .about__points { flex-basis: auto; width: 100%; }
}

/* ===== Contents ===== */
.contents { background: var(--cream-deep); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}
/* カードが2枚のときは中央寄せで少し幅を抑える */
.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .cards--two { grid-template-columns: 1fr; }
}
/* コンテンツ欄の2枚カードは、大きく見せる／横並びではなく縦に並べ、画面の左右いっぱいに広げる */
#contents .cards--two {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
  gap: 2.2rem;
}
#contents .cards--two .card {
  padding: 3.4rem 2.6rem;
}
#contents .cards--two .card__title {
  display: inline-block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 14px;
  padding: 0.35em 0.9em;
  margin-bottom: 0.6rem;
  box-shadow: 0 6px 0 var(--green);
}
#contents .cards--two .card__text {
  font-size: 1.1rem;
  line-height: 1.8;
}
#contents .cards--two .card__more {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.4rem;
}
.card__levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.card__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.card__level:hover {
  background: var(--green-deep);
  transform: translateY(-4px);
}
/* コンテンツ欄のJLPTカードだけ、丸を大きくしてカードの左右いっぱいに広げる */
#contents .cards--two .card__levels {
  justify-content: space-between;
  gap: 0.6rem;
}
#contents .cards--two .card__level {
  width: 150px;
  height: 150px;
  font-size: 3.4rem;
}
@media (max-width: 640px) {
  #contents .cards--two .card__levels {
    justify-content: center;
    gap: 0.8rem;
  }
  #contents .cards--two .card__level {
    width: 68px;
    height: 68px;
    font-size: 1.15rem;
  }
}
/* カードが3枚のときは3カラムで、幅にあわせて折り返す */
.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  gap: 2.2rem;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards--three { grid-template-columns: 1fr; }
}
/* コンテンツの3枚カードは、ひとまわり大きく表示 */
.cards--three .card { padding: 2.8rem 2.2rem; }
.cards--three .card__icon {
  width: 84px;
  height: 84px;
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
}
.cards--three .card__title { font-size: 1.4rem; margin-bottom: 1rem; }
.cards--three .card__text { font-size: 1.05rem; }
.cards--three .card__more { font-size: 1rem; margin-top: 1.5rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(120, 95, 60, 0.16);
}
.card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
/* 特に目立たせたいカードタイトル用 */
.card__title--highlight {
  display: inline-block;
  font-size: 1.3em;
  color: var(--terra-deep);
  background: #fdf1ea;
  border: 2px solid var(--terra);
  border-radius: 10px;
  padding: 0.25em 0.7em;
}
.card__text {
  font-size: 0.95rem;
  color: var(--ink-light);
}
/* リンクになっているカード */
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card__more {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}
.card--link:hover .card__more { text-decoration: underline; }
.contents__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 2.4rem;
}

/* ===== Curriculum（カリキュラム表） ===== */
.curriculum-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.curriculum {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}
.curriculum th,
.curriculum td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-deep);
}
.curriculum thead th {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.curriculum tbody th,
.curriculum tbody td:first-child {
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
}
.curriculum tbody tr:nth-child(even) { background: var(--cream); }
.curriculum tbody tr:last-child td { border-bottom: none; }
.curriculum tbody td { color: var(--ink); }

/* ===== Schedule（JLPTの実施時期） ===== */
.timeline {
  position: relative;
  margin-top: 3.2rem;
}
.timeline__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 4px;
  background: var(--cream-deep);
  border-radius: 2px;
}
.timeline__track {
  position: relative;
  display: flex;
  z-index: 1;
}
.timeline__month {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline__month--now { position: relative; }
.timeline__now-icon {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  width: 30px;
  height: 30px;
  fill: var(--terra);
}
.timeline__exam-label {
  display: inline-block;
  visibility: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terra-deep);
  background: #fdf1ea;
  border: 1.5px solid var(--terra);
  border-radius: 8px;
  padding: 0.15em 0.6em;
  margin-top: 0.6rem;
  white-space: nowrap;
}
.timeline__month--exam .timeline__exam-label { visibility: visible; }
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink-light);
  opacity: 0.5;
  margin-bottom: 0.7rem;
}
.timeline__month--exam .timeline__dot {
  width: 18px;
  height: 18px;
  background: var(--terra);
  border-color: var(--terra);
  opacity: 1;
}
.timeline__month-label {
  font-size: 0.82rem;
  color: var(--ink-light);
}
.timeline__month--exam .timeline__month-label {
  color: var(--terra-deep);
  font-weight: 700;
}
.timeline__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 1.6rem;
}
@media (max-width: 700px) {
  .timeline__exam-label { font-size: 0.65rem; padding: 0.1em 0.4em; }
  .timeline__month-label { font-size: 0.7rem; }
}

/* ===== Level（対応レベル） ===== */
.levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
}
@media (max-width: 900px) {
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.level {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.6rem 1.6rem;
}
.level--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.level--link:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(120, 95, 60, 0.16);
}
.level__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}
.level__text {
  font-size: 1.02rem;
  color: var(--ink-light);
  line-height: 1.8;
}
.level__more {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.level__more:hover { text-decoration: underline; }

/* ===== Pricing ===== */
.pricing { background: var(--cream-deep); padding-bottom: 2.4rem; }
#bundle-flow { padding-top: 2.4rem; }
.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.6rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card__label {
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink);
  margin-bottom: 1rem;
  white-space: nowrap;
}
.price-card__amount {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.price-card__yen {
  font-size: 1.4rem;
  margin-right: 0.1em;
}
.price-card__unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-light);
  margin-left: 0.3em;
}
.price-card__form { margin-bottom: 1.2rem; }
.price-card__form .btn {
  width: 100%;
  border: none;
  font-family: inherit;
}
.price-card__note {
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

/* まとめ買いページ（bundle.html）のように、3枚を横並びグリッドの中に置く場合は
   カード単体用の幅制限・中央寄せを外し、グリッドのマスいっぱいに広げる */
.cards--three .price-card {
  max-width: none;
  margin: 0;
}
.price-card.is-selected {
  box-shadow: 0 0 0 3px var(--green), var(--shadow);
}
.bundle-select-btn {
  width: 100%;
  border: none;
  font-family: inherit;
}
.bundle-back {
  text-align: center;
  margin-top: 2.4rem;
}

/* ===== レッスンの受講まで（利用券の購入〜受講までの流れ） ===== */
.steps-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}
.steps-flow--trial {
  margin-bottom: 2.6rem;
}
.schedule-book__title {
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.steps-flow__step {
  flex: 1 1 220px;
  max-width: 270px;
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.8rem 1.5rem;
  text-align: center;
}
.steps-flow__num {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.3rem;
}
.steps-flow__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0;
}
.steps-flow__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2.4rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .steps-flow {
    flex-direction: column;
    align-items: center;
  }
  .steps-flow__step { width: 100%; max-width: 380px; }
  .steps-flow__arrow { transform: rotate(90deg); }
}
.steps-flow__note-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  background: #eef4e6;
  border: 1.5px solid var(--green);
  border-radius: calc(var(--radius) - 6px);
  text-align: left;
}
.steps-flow__note-list li {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
  padding-left: 1em;
  position: relative;
}
.steps-flow__note-list li + li { margin-top: 0.4rem; }
.steps-flow__note-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ===== よくある質問（アコーディオン式） ===== */
.faq-accordion {
  border: 1px solid #e6dcc4;
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-row { background: var(--cream-deep); }
.faq-row + .faq-row { border-top: 1px solid #fff; }
.faq-row__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
  cursor: pointer;
  list-style: none;
  padding: 2rem 2.4rem;
}
.faq-row__q::-webkit-details-marker { display: none; }
.faq-row__q-text {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.7;
}
.faq-row__q-text::before {
  content: "Q. ";
  color: var(--green);
  font-weight: 800;
}
.faq-row__icon {
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1.7;
  color: var(--ink-light);
}
.faq-row__icon::before { content: "+"; }
.faq-row[open] .faq-row__icon::before { content: "\2212"; }
.faq-row__a {
  display: flex;
  gap: 0.5em;
  margin: 0;
  padding: 0 2.4rem 2rem 2.4rem;
  color: var(--ink-light);
  font-size: 1.2rem;
  line-height: 1.9;
}
.faq-row__a::before {
  content: "A.";
  flex-shrink: 0;
  font-weight: 800;
}

/* ===== Contact（2カラム） ===== */
.contact { background: var(--cream); }
.contact__inner { text-align: center; }
.contact__text {
  color: var(--ink-light);
  margin-bottom: 2rem;
}
.trial-apply-hint {
  color: var(--ink-light);
  font-size: 0.86rem;
  margin: -0.6rem 0 0;
}
.contact__grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3rem;
}
.contact__col {
  flex: 1 1 50%;
  text-align: center;
  padding: 0 1rem;
}
.contact__col:only-child { flex: 0 1 480px; }
.contact__col .section__title { margin-bottom: 1.4rem; }
.contact__col + .contact__col {
  border-left: 1px solid #e6dcc4;
}
@media (max-width: 720px) {
  .contact__grid { flex-direction: column; gap: 0; }
  .contact__col + .contact__col {
    border-left: none;
    border-top: 1px solid #e6dcc4;
    margin-top: 2.6rem;
    padding-top: 2.6rem;
  }
}
.contact__badge {
  text-align: center;
  margin-top: 3rem;
}
.contact__badge img {
  width: 140px;
  height: auto;
  border-radius: 20px;
}

/* ===== Footer ===== */
.footer {
  background: var(--cream-deep);
  padding: 2.4rem 0;
  border-top: 1px solid #ecdfc2;
}
.footer__inner { text-align: center; }
.footer__logo-img {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 auto 0.9rem;
}
.footer__copy {
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* ============================================================
   予約モーダル
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 50, 40, 0.45);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(60, 50, 40, 0.30);
  width: min(520px, 100%);
  padding: 2.4rem 2rem;
}
.modal__dialog--wide {
  width: min(920px, 100%);
}
.reschedule-current {
  color: var(--ink-light);
  margin: -0.4rem 0 1.2rem;
}
.reschedule-sent {
  text-align: center;
  color: var(--green-deep);
  font-weight: 700;
  margin-top: 1rem;
}
.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-light);
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); }
.modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

/* フォーム要素 */
.field { margin-bottom: 1.4rem; }
.field__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #e6dcc4;
  border-radius: 10px;
  padding: 0.7em 0.9em;
}
.input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
textarea.input { resize: vertical; }
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-light) 50%),
                     linear-gradient(135deg, var(--ink-light) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.rform__error {
  color: #c75c5c;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.rform__submit { width: 100%; margin-top: 0.4rem; }

/* 完了画面 */
.done { text-align: center; }
.done__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
}
.done__lead { color: var(--ink-light); margin-bottom: 1.4rem; }
.done__summary {
  text-align: left;
  background: var(--cream);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.6rem;
}
.done__summary div {
  display: flex;
  gap: 0.8rem;
  padding: 0.25rem 0;
}
.done__summary dt {
  flex: 0 0 5.5em;
  font-weight: 700;
  color: var(--ink);
}
.done__summary dd { color: var(--ink-light); }
.done__back { width: 100%; margin-top: 0.8rem; }

/* ============================================================
   ログイン／新規登録モーダル（デザインのモックアップ）
   ============================================================ */
.auth-mock-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terra-deep);
  background: #fdf1ea;
  border: 1.5px solid var(--terra);
  border-radius: 8px;
  padding: 0.35em 0.8em;
  margin-bottom: 1.4rem;
}
.auth-switch {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-light);
}
.auth-switch__link {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.35em;
  cursor: pointer;
  text-decoration: underline;
}
.auth-switch__link:hover { color: var(--green-deep); }

/* ===== レスポンシブ ===== */
/* ログイン中は右側（マイページ・メールアドレス・ログアウト・言語切り替え）の表示が
   長くなるため、通常のログインボタンだけの場合より早めに、ナビをハンバーガー
   メニューへ折りたたむ必要があります。720pxではなく880pxを基準にしています。 */
@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 320px; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav__list li { text-align: center; }
  .nav__link {
    display: block;
    padding: 0.9em 0;
  }
  .nav__toggle { display: flex; }
}

/* ===== マイページ ===== */
.mypage-guest {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}
.mypage-guest p { margin-bottom: 1.4rem; color: var(--ink-light); }

.mypage-welcome { margin-bottom: 2rem; font-size: 1.05rem; }
.mypage-welcome strong { color: var(--terra-deep); }

.mypage-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

/* 「レッスンを予約する」の予約ボタン直後の「学習予定」、
   予約一覧の表の直後の「学習履歴」は、直前の要素に余白が無いため
   見出しの上にすき間ができるよう、この2箇所にだけ余白を追加する */
#mypageContent h2[data-i18n="mypage_schedule_title"],
#mypageContent h2[data-i18n="mypage_history_title"] {
  margin-top: 2.4rem;
}

.mypage-empty {
  color: var(--ink-light);
  font-size: 0.92rem;
  padding: 1.4rem 0.2rem;
}

.myschedule-time-sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-light);
}

.admin-panel {
  margin-top: 3.5rem;
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.admin-panel .rform { max-width: 480px; }
.admin-panel .curriculum-scroll { margin-bottom: 1rem; }

/* 管理者パネル内で、性質の異なるブロック同士（予約表／新規登録ユーザー一覧／
   学習記録の追加 など）を視覚的に区切るための区切り線 */
.admin-section-divider {
  margin: 3rem 0 2.2rem;
  border: none;
  border-top: 1px dashed #d8c9a3;
}

/* 管理者パネル内の、クリックで開閉できる見出し（例：「予約表の管理」） */
.admin-collapse-toggle {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.2rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.admin-collapse-toggle:hover { color: var(--green-deep); }
.admin-collapse-toggle__icon {
  font-size: 0.85em;
  color: var(--green);
  transition: transform 0.2s ease;
}
.admin-collapse-toggle[aria-expanded="true"] .admin-collapse-toggle__icon {
  transform: rotate(180deg);
}
.admin-collapse-body { margin-top: 0; }

.admin-student-info { margin-top: 1.8rem; }
.admin-student-info > p { margin-bottom: 1rem; font-weight: 700; }

/* ===== 利用券の残数（本人用マイページ表示） ===== */
.ticket-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7em;
  background: #eef4e6;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 0.8em 1.4em;
  margin: 1.2rem 0 2rem;
}
.ticket-balance__label {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.ticket-balance__count {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1;
}
.ticket-balance__unit {
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 0.15em;
}

/* ===== 利用券の付与（管理者パネル） ===== */
.admin-ticket-box {
  background: var(--cream);
  border: 1.5px solid #e6dcc4;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
}
.admin-ticket-box__balance {
  font-weight: 700;
  margin: 0 0 1rem;
}
.rform--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem;
}
.rform--inline .field { flex: 1 1 240px; margin-bottom: 0; }
.rform--inline .btn { flex: 0 0 auto; }
.rform--inline .rform__error { flex-basis: 100%; margin: 0; }

.history-action-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-light);
  background: var(--white);
  border: 1.5px solid #e6dcc4;
  border-radius: 999px;
  padding: 0.3em 0.8em;
  margin-right: 0.4em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.history-action-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.history-action-btn--danger:hover { background: #c75c5c; border-color: #c75c5c; }

.admin-cancel-edit { width: auto; margin-top: 0.6rem; }

/* ===== 管理者が「学習予定」から授業を選んでコメントを付けているときの案内 ===== */
.admin-completing-note {
  background: #eef4e6;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8em 1.1em;
  margin: 0 0 1rem;
}

.danger-zone {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1.5px dashed #e6dcc4;
}
.danger-zone__label {
  font-weight: 700;
  color: #c75c5c;
  margin-bottom: 0.3rem;
}
.danger-zone__note {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 0.9rem;
}
.danger-zone__btn {
  background: #c75c5c;
  border-color: #c75c5c;
  box-shadow: 0 8px 18px rgba(199, 92, 92, 0.28);
}
.danger-zone__btn:hover {
  background: #b34848;
  border-color: #b34848;
  box-shadow: 0 12px 24px rgba(199, 92, 92, 0.34);
}
.danger-zone__confirm {
  margin-top: 1rem;
  max-width: 360px;
}
.danger-zone__confirm .danger-zone__btn {
  width: 100%;
  margin-top: 0.4rem;
}
.danger-zone__confirm .btn--outline {
  width: 100%;
  margin-top: 0.6rem;
}
