* {
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

html {
  font-size: clamp(10px, 1.8vw, 16px);
}

body {
  font-size: 1.6rem;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  letter-spacing: 0.1rem;
  background-color: var(--color-base-bg);
}

/* .noto-sans jp-<uniquifier> {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */

.sp-view {
  display: none;
}

.pc-view {
  display: block;
}

@media screen and (max-width: 768px) {
  .sp-view {
    display: block;
  }

  .pc-view {
    display: none;
  }
}

/* common */
.outer {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
}

.inner {
  max-width: 900px;
  width: 80%;
  margin: 0 auto;
}

/* font-size */
.tx-xs-12 {
  font-size: clamp(0.75rem, 0.7vw, 1.2rem);
}

.tx-sm-15 {
  font-size: clamp(0.9375rem, 0.9vw, 1.5rem);
}

.tx-md-18 {
  font-size: clamp(1.125rem, 1.05vw, 1.8rem);
}

.tx-lg-20 {
  font-size: clamp(1.25rem, 1.2vw, 2rem);
}

.tx-xl-24 {
  font-size: clamp(1.5rem, 1.4vw, 2.4rem);
}

.tx-2xl-28 {
  font-size: clamp(1.75rem, 1.6vw, 2.8rem);
}

.tx-3xl-30 {
  font-size: clamp(1.875rem, 1.75vw, 3rem);
}

/* color */
:root {
  --color-text: #333333;
  --color-key-bg: #c38383;
  --color-white: #ffffff;
  --color-base-bg: #f9f2f2;
  --color-accent-gold: #d6ae53;
  --color-accent-green: #00bd81;
}

/* layout */
/* ------- 共通マージン ------- */
.mt-80 {
  margin-top: 8rem;
}
.mb-80 {
  margin-bottom: 8rem;
}
.mt-60 {
  margin-top: 6rem;
}
.mb-60 {
  margin-bottom: 6rem;
}
.mt-40 {
  margin-top: 4rem;
}
.mb-40 {
  margin-bottom: 4rem;
}

/* ------- 共通パディング ------- */
.pt-80 {
  padding-top: 8rem;
}
.pb-80 {
  padding-bottom: 8rem;
}
.pt-60 {
  padding-top: 6rem;
}
.pb-60 {
  padding-bottom: 6rem;
}
.pt-40 {
  padding-top: 4rem;
}
.pb-40 {
  padding-bottom: 4rem;
}

@media screen and (max-width: 768px) {
  .mt-80 {
    margin-top: 4rem;
  }
  .mb-80 {
    margin-bottom: 4rem;
  }
  .pt-80 {
    padding-top: 4rem;
  }
  .pb-80 {
    padding-bottom: 4rem;
  }

  .mt-60 {
    margin-top: 3rem;
  }
  .mb-60 {
    margin-bottom: 3rem;
  }
  .pt-60 {
    padding-top: 3rem;
  }
  .pb-60 {
    padding-bottom: 3rem;
  }

  .mt-40 {
    margin-top: 2rem;
  }
  .mb-40 {
    margin-bottom: 2rem;
  }
  .pt-40 {
    padding-top: 2rem;
  }
  .pb-40 {
    padding-bottom: 2rem;
  }
}


/* フローティングCTA */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 上部のラベル */
.floating-label {
  background-color: var(--color-white);
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: -2.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  background-clip: padding-box;
}

/* ボタン本体 */
.floating-button {
  display: inline-flex;
  background-color: var(--color-accent-green);
  color: var(--color-white);
  font-size: clamp(1.3rem, 1.6vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  padding: 2.2rem 1.8rem;
  border-radius: 50%;
  width: 125px;
  height: 115px;
  /* line-height: 1.3; */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  text-align: center;
  transition: transform 0.2s ease;
  border: 3px solid var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.floating-button:hover {
  transform: translateY(-2px);
}

.floating-button .btn-arrow {
  display: block;
  font-size: 1.4rem;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* SPでは非表示にしたい場合 */
@media screen and (max-width: 768px) {
  .floating-cta {
    display: none;
  }
}

/* -------------------------------
  ファーストビューセクション
------------------------------- */
.fv {
  background-image: url(../images/bg-fv.jpg);
  background-size: cover;
  border-radius: 0 0 0 clamp(50px, 10vw, 100px);
}

.fv-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* 左側：テキストブロック */
.fv-title {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← 追加！ */
  gap: clamp(1rem, 1.5vw, 2rem);
}

/* 見出し画像 */
.fv-title-img img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

/* 説明文 */
.fv-title p {
  color: var(--color-white);
}

/* バッジグループ */
.badge-group {
  display: flex;
  font-weight: 700;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1.2rem); /* 5px〜12px */
  flex-wrap: nowrap;
  color: var(--color-white);
}

.badge {
  background-color: var(--color-white);
  color: var(--color-key-bg);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  padding: 0.4rem 1rem;
  border-radius: 1.6rem;
  display: inline-block;
  white-space: nowrap;
}

/* サブバッジテキスト */
.badge-text {
  background-color: var(--color-white);
  color: var(--color-text);
  display: inline-block;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  padding: 0.4rem 1rem;
  border-radius: 1.6rem;
  max-width: fit-content;
}

.badge-num {
  font-size: clamp(1.6rem, 2vw, 2.2rem); /* 通常の文字より大きめ */
  font-weight: 800;
  line-height: 1;
}

/* CTAボタン */
.cta-wrap {
  display: flex;
  justify-content: center;
}

/* ボタン全体を囲うブロック（relative） */
.btn-outer {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 2.5rem;
}

/* 上にかぶさるバッジ */
.cta-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: clamp(1rem, 1vw, 1.2rem);
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  border: 3px solid var(--color-accent-green);
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem 3rem 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-accent-green);
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  box-shadow: 0 6px 0 #2d5c4d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  width: -webkit-fill-available;
}

.btn-text {
  font-size: clamp(1.6rem, 1.6vw, 1.8rem); /* 最大1.8rem ≒ 18px */
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #2d5c4d;
}

.btn-arrow {
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem 3rem 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-accent-green);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 0 #2d5c4d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* キラーン光 */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 30%; /* ← 光の幅を狭くしてシャッと見えるように */
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 3s infinite;
  animation-timing-function: ease-in; /* ← 通過速度を速く感じさせる */
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  20% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* 右側：人物画像 */
.fv-img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.fv-img img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* -------------------------------
  レスポンシブ対応（スマホ用）
------------------------------- */
@media screen and (max-width: 768px) {
  .fv {
    padding-top: 4rem;
    position: relative;
  }
  .fv-wrap {
    flex-direction: column;
    gap: 0;
  }

  .fv-title {
    text-align: center;
  }

  .fv-img img {
    max-width: 250px;
  }

  .badge-group {
    justify-content: center;
  }

  .btn-outer {
    position: absolute;
    bottom: 0;
    transform: translateY(50%);
    width: 80%;
  }
}

/* -------------------------------
  レコメンドセクション
------------------------------- */
.recommend {
  background-color: var(--color-base-bg);
}

.recommend-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* 左カラム：テキスト */
.recommend-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 320px;
}

.recommend-text p {
  color: var(--color-text);
}

.recommend-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← 左寄せ */
  gap: 0.8rem;
}

.recommend-list li {
  display: inline-block;
  background-color: #fff;
  white-space: nowrap;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  font-size: clamp(1.2rem, 0.9vw, 1.4rem);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  list-style: none;
}

/* 右カラム：画像 */
.recommend-img {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.recommend-img img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

.recommend-message {
  width: 100%;
  margin-top: 4rem;
  text-align: center;
}

.recommend-message img {
  max-width: 813px;
  margin: auto;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .recommend {
    padding-top: 6rem;
  }
  .recommend-wrap {
    flex-direction: column;
    gap: 2rem;
  }

  .recommend-text {
    text-align: center;
  }

  .recommend-list {
    align-items: center;
  }

  .recommend-list li {
    max-width: 100%;
    text-align: center;
    font-size: clamp(1rem, 3.5vw, 1.2rem); /* スマホ用最適化 */
  }

  .recommend-img img {
    max-width: 300px;
  }

  .recommend-message {
    margin-top: 1rem;
  }
}

/* -------------------------------
  コース紹介セクション
------------------------------- */
.course {
  background-color: var(--color-base-bg);
}

.course-heading {
  text-align: center;
}

.course-heading p {
  color: var(--color-text);
}

/* コースカード一覧（3カラム） */
.course-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← 4カラムに変更 */
  gap: 1rem;
}

/* 各コースカード */
.course-card {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: none; /* ← ホバー効果オフ */
}

.course-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-key-bg);
}

.course-card p {
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 500;
  font-size: clamp(1.1rem, 1vw, 1.4rem);
}

.course-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto;
}

/* 満枠バッジ */
.course-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background-color: var(--color-accent-gold);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  line-height: 1.2;
}

/* 満枠スタイル */
.course-disabled {
  position: relative;
  pointer-events: none;
}

.course-disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  opacity: 0.5; /* ← この値で見た目の「薄さ」を調整 */
  border-radius: 12px;
  z-index: 1;
}

.course-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2; /* ← afterより上に出す */
}

/* 補足説明文 */
.course-note {
  margin-top: 4rem;
  text-align: center;
  color: var(--color-text);
  line-height: 1.8;
}

.course-note p {
  font-size: clamp(1.3rem, 1.2vw, 1.5rem);
  font-weight: 400;
}

@media screen and (max-width: 768px) {
  .course-list {
    grid-template-columns: repeat(2, 1fr); /* SP：2カラムに変更 */
    gap: 1.5rem;
  }

  .course-card {
    max-width: 100%;
  }

  .course-note p {
    font-size: 1.4rem;
    line-height: 1.7;
    text-align: left;
  }
}

/* -------------------------------
  共通CTAセクション（Let's Challenge）
------------------------------- */
.cta-section {
  background-image: url(../images/cta-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-inline: 1.5rem;
  overflow: hidden;
}

.cta-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cta-section-lead {
  text-align: center;
  color: var(--color-white);
  font-size: clamp(1.2rem, 1.1vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

.cta-section-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.cta-section-text {
  flex: 1;
  min-width: 300px;
}

.cta-section-title img {
  max-width: 240px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.cta-section-text p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 1vw, 1.5rem);
}

.cta-section-buttons {
  display: flex;
  gap: 1rem;
}
.cta-section-button-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: clamp(1rem, 1vw, 1.2rem); /* ← 調整済 */
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.cta-section-button-outline:hover {
  background-color: #f5f5f5;
}

.cta-section-button-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: clamp(1rem, 1vw, 1.2rem); /* ← 調整済 */
  border-radius: 8px;
  text-decoration: none;
  background-color: var(--color-accent-green);
  color: var(--color-white);
  border: none;
  transition: opacity 0.2s ease;
}

.cta-section-button-primary:hover {
  opacity: 0.85;
}

/* 右側：画像ブロック */
.cta-section-img-block {
  flex: 1;
  width: 100%;
  position: relative;
  margin: 2rem 0;
}

.cta-section-badge {
  position: absolute;
  top: 6%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 80px;
  height: auto;
}

.cta-section-woman {
  height: auto;
}

.cta-section-teacher {
  width: 40%;
  max-width: 120px;
  height: auto;
  position: absolute;
  bottom: 0;
  right: 0;
}

@media screen and (max-width: 768px) {
  .cta-section-card {
    flex-direction: column;
    padding: 2rem;
  }

  .cta-section-buttons {
    width: 100%;
  }

  .cta-section-buttons a {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .cta-section-badge {
    width: 60px;
  }

  .cta-section-title img {
    margin: auto;
  }

  .cta-section-teacher {
    transform: translate(40%, 0);
  }
}

/* 合格者の声セクション */
.voices {
  overflow: hidden;
}

.voices-title {
  color: var(--color-text);
  text-align: left;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 3rem;
  overflow: hidden;
}

.voices-slider {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.voices-slider .slick-list {
  overflow: visible !important;
}

.voices-slider .slick-track {
  display: flex;
}

.voice-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-right: 20px;
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
}

.voice-text {
  font-size: clamp(0.9rem, 1vw, 1.2rem);
  line-height: 1.9;
  color: var(--color-text);
}

.voices-slider .slick-dots {
  text-align: center;
  margin-top: 2rem;
}
.voices-slider .slick-dots li button:before {
  font-size: 12px;
  color: #bbb;
}
.voices-slider .slick-dots li.slick-active button:before {
  color: var(--color-key-bg);
}

.voices-slider .slick-prev,
.voices-slider .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  font-size: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.voices-slider .slick-prev {
  left: -24px;
}
.voices-slider .slick-next {
  right: -24px;
}
.voices-slider .slick-prev::before {
  content: \"‹\";
  font-size: 28px;
  color: var(--color-key-bg);
}
.voices-slider .slick-next::before {
  content: \"›\";
  font-size: 28px;
  color: var(--color-key-bg);
}

/* -------------------------------
  ポイントセクション
------------------------------- */
.point-section {
  background-image: url(../images/bg-point.jpg);
  background-position: center;
  background-repeat: repeat-y;
  padding-inline: 1.5rem;
}

.point-section h2 {
  text-align: center;
}

.point-title {
  text-align: center;
  color: var(--color-white);
}

/* 各行ラップ（画像＋テキスト） */
.point-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
  flex-wrap: wrap;
}

/* reverse：左右反転 */
.point-row.reverse {
  flex-direction: row-reverse;
}

/* テキストブロック */
.point-text {
  flex: 1;
  min-width: 300px;
}

.point-label img {
  width: auto;
  height: 24px;
  margin-bottom: 1rem;
  display: block;
}

/* 見出し */
.point-text h3 {
  font-size: clamp(1.4rem, 1.5vw, 1.8rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

/* 本文 */
.point-text p {
  color: var(--color-white);
  font-size: clamp(1rem, 1vw, 1.4rem);
  line-height: 1.8;
}

/* 画像ブロック */
.point-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.point-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media screen and (max-width: 768px) {
  .point-row,
  .point-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .point-text h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  }

  .point-text p {
    text-align: left;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  }

  .point-label img {
    margin: 0 auto 1rem;
  }
}

/* -------------------------------
  料金プランセクション
------------------------------- */
.price-title {
  text-align: left;
}

.price-section {
  background-color: var(--color-base-bg);
  padding-inline: 1.5rem;
}

.price-section h2 {
  color: var(--color-text);
}

/* グリッドレイアウト */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* 各プランカード */
.price-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: 0.3s ease;
  gap: 1rem;
}

/* 上部ラベル＋見出し＋価格 */
.price-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 1rem;
  align-items: flex-end;
  border-bottom: solid 1px #e2e2e2;
}

.price-badge {
  display: inline-block;
  background-color: var(--color-accent-gold);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}


.price-note {
  font-size: clamp(0.8rem, 0.9vw, 1rem);
  color: var(--color-key-bg);
  font-weight: 600;
}

.price-tag {
  text-align: right;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 700;
  color: var(--color-key-bg);
}

.price-strike {
  text-decoration: line-through;
  font-size: 0.9rem;
  color: #999;
}

.price-sale {
  color: var(--color-key-bg);
  font-weight: 700;
  font-size: 1.1rem;
}

/* プラン名 */
.price-card h3 {
  color: var(--color-text);
  font-size: clamp(1.2rem, 1.4vw, 1.5rem);
}

/* 説明文 */
.price-desc {
  color: var(--color-text);
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.7;
}

@media screen and (max-width: 768px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-tag {
    text-align: left;
  }

  .price-card {
    padding: 1.5rem;
  }
}

/* 年間スケジュールセクション */
.schedule-section {
  background-color: var(--color-base-bg);
  padding-inline: 1.5rem;
}

.schedule-section h2 {
  color: var(--color-text);
}

/* タブボタン */
.schedule-tabs {
  display: flex;
  overflow-x: auto; /* モバイル時スクロール */
  gap: 1rem;
  -webkit-overflow-scrolling: touch;
}

.schedule-tab {
  flex: 0 0 auto; /* 幅固定 */
  white-space: nowrap; /* 折り返さない */
  min-width: 220px;
  max-width: 260px;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  border: 2px solid var(--color-key-bg);
  background: #fff;
  color: var(--color-text);
  transition: 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}

.schedule-tab.active {
  background-color: var(--color-key-bg);
  color: var(--color-white);
}

.schedule-tab-month {
  font-weight: 700;
  font-size: 1.1rem;
}

.schedule-tab-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.schedule-tab-time {
  font-size: 0.9rem;
  opacity: 0.7;
}

.schedule-tab-label {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background-color: var(--color-key-bg);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem 0.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* タブごとの中身（デフォルト非表示） */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* スケジュールカードグリッド */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  background-color: var(--color-key-bg);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 2rem;
}

.schedule-card {
  background-color: var(--color-white);
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.schedule-date {
  font-size: 0.95rem;
  color: var(--color-key-bg);
  font-weight: 600;
}

.schedule-topic {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 500;
  white-space: pre-line;
}

/* 試験日案内 */
.schedule-note {
  text-align: center;
  font-size: clamp(1.2rem, 1vw, 1.4rem);
  color: var(--color-text);
  font-weight: 500;
  margin-top: 3rem;
}

.schedule-note .highlight {
  font-weight: 700;
  color: var(--color-key-bg);
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
  .schedule-tabs {
    flex-direction: column;
    align-items: center;
  }

  .schedule-tab {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .schedule-grid {
    padding: 1.5rem;
  }
}

/* -------------------------------
  代表メッセージセクション
------------------------------- */
.message-section {
  background-image: url(../images/bg-message.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-inline: 1.5rem;
  color: var(--color-white);
}

.message-lead {
  border-radius: 12px;
  line-height: 1.9;
  color: var(--color-white);
  font-size: clamp(1rem, 1vw, 1.2rem);
  font-weight: bold;
}

/* 講師カード */
.message-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.tx-teacher {
  width: 12%;
  max-width: 100px;
}

.message-img {
  width: 40%;
}

.message-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.message-text {
  flex: 1;
  width: 60%;
}

.message-role {
  font-size: 0.9rem;
  color: var(--color-key-bg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.message-text h3 {
  font-size: clamp(1.3rem, 1.5vw, 1.6rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}

.message-text p {
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.8;
  color: var(--color-text);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .message-card {
    flex-direction: column;
    text-align: center;
  }

  .tx-teacher {
    min-width: 80px;
  }

  .message-img {
    width: 100%;
    margin-bottom: 1rem;
  }

  .message-text h3 {
    margin-top: 0;
  }

  .message-text {
    width: 100%;
    text-align: left;
  }
}

/* -------------------------------
  メディア紹介セクション（MEDIA）
------------------------------- */
.media-section {
  background-color: var(--color-white);
  padding-inline: 1.5rem;
  color: var(--color-key-bg);
}

.media-section h2 {
  color: var(--color-key-bg);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}


/* 埋め込み動画をレスポンシブにする */
.media-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.media-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}


.faq-section {
  background-color: var(--color-base-bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-box {
  border: 1px solid #ddd;
  display: flex;
  gap: 1rem;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  flex-direction: column;
}

.faq-q {
  font-weight: 700;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  font-size: clamp(1rem, 1vw, 1.2rem);
  color: var(--color-text);
}

.faq-q .faq-num {
  color: var(--color-key-bg);
  margin-right: 0.5rem;
}

.faq-a {
  font-size: clamp(0.95rem, 0.95vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-text);
}

.footer {
  background-color: var(--color-key-bg);
  color: var(--color-white);
  text-align: center;
  padding: 20px 0;
}
