@charset "UTF-8";

/*
 * 理科実験教室LP専用スタイル
 * 既存ページへ影響させないため、すべて .science-class-lp 配下に限定する。
 * モバイルファースト（添付デザインはスマートフォン幅を基準）。
 */

.science-class-lp {
  --sc-ink: #0f2740;
  --sc-ink-deep: #0d2846;
  --sc-muted: #4c6178;
  --sc-primary: #10559a;
  --sc-primary-deep: #0d4680;
  --sc-primary-pale: #e6f2fb;
  --sc-bg: #eef5fb;
  --sc-mint: #e6f5ec;
  --sc-mint-deep: #2f9e6a;
  --sc-sky: #e4f1f7;
  --sc-sky-deep: #2a8b9e;
  --sc-line: #dbe5ee;
  --sc-white: #fff;
  --sc-line-green: #0a9d4a;
  --sc-accent: #f0a13c;
  --sc-accent-soft: rgba(240, 161, 60, 0.4);
  --sc-shadow: 0 10px 30px rgba(20, 41, 60, 0.08);
  color: var(--sc-ink);
  background: var(--sc-white);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.8;
  overflow: hidden;
  padding-bottom: 72px;
}

/*
 * SWELLの本文幅設定の内側に配置されても、各セクションの背景を
 * ビューポートの左右端まで広げる。中身の幅は __container 側で制限する。
 */
.science-class-lp#main_content {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  /*
   * padding をショートハンドで書くと、ID指定の詳細度で
   * .science-class-lp の padding-bottom（固定CTA分の余白）まで打ち消してしまう。
   * 下だけは .science-class-lp 側の指定を活かすため、ロングハンドで書く。
   */
  padding-top: 0;
  padding-inline: 0;
}

.science-class-lp *,
.science-class-lp *::before,
.science-class-lp *::after {
  box-sizing: border-box;
}

/*
 * :where() で詳細度を0にしておく。
 * これをしないとリセット（0,1,1）が個々のクラス指定（0,1,0）に勝ってしまい、
 * ul / ol に付けた margin がすべて無効化される。
 */
.science-class-lp :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}

.science-class-lp :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.science-class-lp h1,
.science-class-lp h2,
.science-class-lp h3,
.science-class-lp strong {
  color: inherit;
  font-family: inherit;
}

.science-class-lp__container {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.science-class-lp__section {
  padding: 56px 0;
}

.science-class-lp__section.is-tint {
  background: var(--sc-bg);
}

/* 見出し */
.science-class-lp__heading {
  margin-bottom: 28px;
  text-align: center;
}

.science-class-lp__heading > p {
  margin-bottom: 6px;
  color: var(--sc-primary-deep);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.science-class-lp__heading h2 {
  font-size: clamp(1.45em, 5.4vw, 1.9em);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.science-class-lp__heading > span {
  display: block;
  margin-top: 14px;
  color: var(--sc-muted);
  font-size: 0.92em;
  line-height: 1.9;
  text-align: left;
}

/* CTAボタン */
.science-class-lp__button {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--sc-white);
  background: var(--sc-line-green);
  box-shadow: 0 10px 22px rgba(10, 157, 74, 0.28);
  font-size: 1.02em;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.science-class-lp__button:hover,
.science-class-lp__button:focus-visible {
  color: var(--sc-white);
  box-shadow: 0 13px 26px rgba(10, 157, 74, 0.38);
  transform: translateY(-2px);
}

.science-class-lp__button.is-light {
  color: var(--sc-primary-deep);
  background: var(--sc-white);
  box-shadow: 0 10px 22px rgba(20, 41, 60, 0.18);
}

.science-class-lp__button.is-light:hover,
.science-class-lp__button.is-light:focus-visible {
  color: var(--sc-primary-deep);
  box-shadow: 0 13px 26px rgba(20, 41, 60, 0.26);
}

.science-class-lp__button-icon {
  font-size: 1.15em;
}

.science-class-lp__cta-note {
  margin-top: 10px !important;
  color: var(--sc-muted);
  font-size: 0.8em;
  text-align: center;
}

.science-class-lp__cta-note a {
  color: var(--sc-primary-deep);
  text-decoration: underline;
}

/* ヒーロー */
.science-class-lp__hero {
  padding: 32px 0 48px;
  background:
    radial-gradient(circle at 88% 8%, rgba(43, 134, 197, 0.14), transparent 42%),
    linear-gradient(180deg, #f8fcff 0%, var(--sc-bg) 100%);
}

.science-class-lp__hero-eyebrow {
  width: fit-content;
  margin: 0 auto 12px !important;
  padding: 5px 12px;
  border: 1px solid rgba(27, 106, 165, 0.18);
  border-radius: 999px;
  color: var(--sc-primary-deep);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.science-class-lp__hero-title {
  margin-bottom: 16px !important;
  color: var(--sc-ink-deep);
  font-size: clamp(1.75em, 7.4vw, 2.5em);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.42;
  text-align: center;
}

.science-class-lp__hero-quiet {
  color: var(--sc-ink-deep);
}

.science-class-lp__hero-strong {
  position: relative;
  display: inline-block;
  color: var(--sc-primary-deep);
  z-index: 0;
}

.science-class-lp__hero-strong::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 0.36em;
  border-radius: 4px;
  background: var(--sc-accent-soft);
  content: "";
  z-index: -1;
}

.science-class-lp__hero-text {
  margin-bottom: 24px !important;
  color: var(--sc-muted);
  font-size: 0.92em;
  line-height: 1.95;
  text-align: center;
}

.science-class-lp__hero-text strong {
  color: var(--sc-ink-deep);
  font-weight: 800;
}

.science-class-lp__hero-points {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.science-class-lp__hero-points li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.84em;
  font-weight: 700;
}

.science-class-lp__hero-points span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--sc-white);
  background: var(--sc-mint-deep);
  font-size: 9.9px;
  font-weight: 700;
}

/* 写真枠 */
.science-class-lp__photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-white);
  box-shadow: var(--sc-shadow);
}

.science-class-lp__photo.is-hero {
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
}

/*
 * 教室紹介の写真は、キャプションを画像に重ねず下の帯に置く。
 * 縦横比は figure ではなく img 側で持たせる。
 */
.science-class-lp__photo.is-thumb {
  display: flex;
  flex-direction: column;
}

.science-class-lp__photo.is-thumb img {
  height: auto;
  aspect-ratio: 3 / 2;
}

.science-class-lp__photo.is-thumb figcaption {
  position: static;
  padding: 11px 10px;
  border-radius: 0;
  color: var(--sc-primary);
  background: var(--sc-white);
  font-size: 0.82em;
  text-align: center;
}

.science-class-lp__photo.is-avatar {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: none;
}

.science-class-lp__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.science-class-lp__photo figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--sc-ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.72em;
  font-weight: 700;
}

/* 受賞バッジ */
.science-class-lp__award {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-white);
  box-shadow: var(--sc-shadow);
}

.science-class-lp__award-icon {
  font-size: 1.5em;
  line-height: 1;
}

.science-class-lp__award strong {
  display: block;
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.6;
}

.science-class-lp__award small {
  display: block;
  color: var(--sc-muted);
  font-size: 0.76em;
}

/* 保護者のお悩み */
/*
 * 悩み・理由・コースで共通のカード。
 * 上に挿絵（線画SVGまたはイラスト）、その下にバッジ・見出し・本文を積む。
 */
.science-class-lp__card-grid {
  display: grid;
  gap: 14px;
}

.science-class-lp__card {
  padding: 20px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-white);
  box-shadow: 0 10px 30px rgba(15, 39, 64, 0.05);
}

.science-class-lp__card-visual {
  display: grid;
  min-height: 132px;
  margin-bottom: 16px;
  border: 1px solid #dde8f2;
  border-radius: 11px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 92% 10%, rgba(16, 85, 154, 0.1), transparent 32%),
    linear-gradient(135deg, #f9fcff, var(--sc-bg));
}

.science-class-lp__card-icon {
  display: block;
  width: min(210px, 80%);
  height: auto;
  max-height: 118px;
}

.science-class-lp__card-illust {
  display: block;
  width: auto;
  height: 108px;
  object-fit: contain;
}

.science-class-lp__card-badge {
  display: inline-grid;
  min-width: 36px;
  height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 8px;
  place-items: center;
  font-size: 0.74em;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.science-class-lp__card h3 {
  margin-bottom: 8px;
  font-size: 1.02em;
  font-weight: 800;
  line-height: 1.55;
}

.science-class-lp__card p {
  color: var(--sc-muted);
  font-size: 0.88em;
  line-height: 1.9;
}

/* トーン。バッジの色とSVGの currentColor を切り替える。 */
.science-class-lp__card.is-orange .science-class-lp__card-badge {
  color: #a5641b;
  background: rgba(240, 161, 60, 0.2);
}

.science-class-lp__card.is-mint .science-class-lp__card-badge {
  color: var(--sc-mint-deep);
  background: var(--sc-mint);
}

.science-class-lp__card.is-sky .science-class-lp__card-badge {
  color: var(--sc-sky-deep);
  background: var(--sc-sky);
}

.science-class-lp__card.is-orange .science-class-lp__card-icon {
  color: #d38a25;
}

.science-class-lp__card.is-mint .science-class-lp__card-icon {
  color: var(--sc-mint-deep);
}

.science-class-lp__card.is-sky .science-class-lp__card-icon {
  color: var(--sc-sky-deep);
}

/* 線画SVGの各パーツ。 */
.science-class-lp__card-icon .sc-fi-panel {
  fill: #fff;
  stroke: #d3e2ee;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.science-class-lp__card-icon .sc-fi-panel.is-accent {
  stroke: currentColor;
}

.science-class-lp__card-icon .sc-fi-line {
  fill: none;
  stroke: #bed2e2;
  stroke-linecap: round;
  stroke-width: 2;
}

.science-class-lp__card-icon .sc-fi-accent {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.science-class-lp__card-icon .sc-fi-accent-fill {
  fill: currentColor;
}

.science-class-lp__card-icon .sc-fi-mark {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.science-class-lp__worry-bridge {
  margin-top: 22px !important;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

/* ABOUT */
/* スマホでは1枚ずつ縦に並べる。2列だと写真が小さく、様子が伝わらないため。 */
.science-class-lp__about-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.science-class-lp__about-note {
  margin-top: 18px !important;
  color: var(--sc-muted);
  font-size: 0.88em;
  line-height: 1.9;
}

/* VOICE */
.science-class-lp__voice-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 8px !important;
  color: var(--sc-muted);
  font-size: 0.74em;
  font-weight: 700;
}

/*
 * 横スクロールのスライダー。JSは使わず scroll-snap で1枚ずつ止める。
 * tabindex="0" を付けてキーボードでもスクロールできるようにしている。
 */
.science-class-lp__voice-list {
  display: flex;
  /* 高さを揃えると短いカードに余白が残るため、内容の高さに合わせる。 */
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--sc-primary) var(--sc-line);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.science-class-lp__voice-list::-webkit-scrollbar {
  height: 6px;
}

.science-class-lp__voice-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--sc-line);
}

.science-class-lp__voice-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--sc-primary);
}

/* ドットを出せた場合はスクロールバーを隠し、位置表示をドットへ一本化する。 */
.science-class-lp__voice-list.is-enhanced {
  padding-bottom: 0;
  scrollbar-width: none;
}

.science-class-lp__voice-list.is-enhanced::-webkit-scrollbar {
  display: none;
}

.science-class-lp__voice-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.science-class-lp__voice-dots[hidden] {
  display: none;
}

.science-class-lp__voice-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  appearance: none;
  background: var(--sc-line);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.science-class-lp__voice-dot.is-active {
  width: 22px;
  background: var(--sc-primary);
}

.science-class-lp__voice-dot:focus-visible {
  outline: 2px solid var(--sc-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .science-class-lp__voice-dot {
    transition: none;
  }
}

.science-class-lp__voice-list:focus-visible {
  outline: 2px solid var(--sc-primary);
  outline-offset: 4px;
}

.science-class-lp__voice {
  display: flex;
  width: min(84%, 320px);
  flex: 0 0 min(84%, 320px);
  flex-direction: column;
  padding: 18px 16px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  /* セクションを淡色にしたため、カードは白にして浮かせる。 */
  background: var(--sc-white);
  scroll-snap-align: start;
}

.science-class-lp__voice.is-parent {
  border-color: rgba(16, 85, 154, 0.28);
}

/* クチコミサイト風のカード。アンケートの声と見分けがつくよう白背景にする。 */
.science-class-lp__voice.is-review {
  border-color: rgba(20, 41, 60, 0.1);
  background: var(--sc-white);
  box-shadow: 0 6px 18px rgba(20, 41, 60, 0.07);
}

.science-class-lp__voice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.science-class-lp__voice-avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sc-white);
  object-fit: cover;
}

.science-class-lp__voice-avatar.is-text {
  color: var(--sc-white);
  background: var(--sc-primary-deep);
  font-size: 0.8em;
  font-weight: 700;
}

/* アバターの色を少しずつ変えて、同じ記号が並んで見えないようにする。 */
.science-class-lp__voice:nth-child(3n) .science-class-lp__voice-avatar.is-text {
  background: var(--sc-mint-deep);
}

.science-class-lp__voice:nth-child(3n + 1) .science-class-lp__voice-avatar.is-text {
  background: var(--sc-sky-deep);
}

.science-class-lp__voice-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.science-class-lp__voice-name strong {
  color: var(--sc-ink);
  font-size: 0.8em;
  font-weight: 700;
}

.science-class-lp__voice-meta small {
  color: var(--sc-muted);
  font-size: 0.72em;
  font-weight: 500;
}

.science-class-lp__voice-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px !important;
  color: #f0a52a;
}

.science-class-lp__icon-star {
  width: 16px;
  height: 16px;
}

.science-class-lp__voice-text {
  font-size: 0.92em;
  line-height: 1.9;
}

.science-class-lp__voice:not(.is-review) .science-class-lp__voice-text::before {
  content: "「";
}

.science-class-lp__voice:not(.is-review) .science-class-lp__voice-text::after {
  content: "」";
}

/* TEACHER */
.science-class-lp__teacher {
  padding: 20px 16px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-white);
  box-shadow: var(--sc-shadow);
}

.science-class-lp__teacher-profile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--sc-line);
  margin-bottom: 16px;
}

.science-class-lp__teacher-profile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1em;
  font-weight: 700;
}

.science-class-lp__teacher-profile p {
  color: var(--sc-muted);
  font-size: 0.88em;
  line-height: 1.85;
}

.science-class-lp__records-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px !important;
  font-size: 0.88em;
  font-weight: 700;
}

.science-class-lp__teacher-records {
  display: grid;
  gap: 10px;
}

.science-class-lp__teacher-records li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88em;
  line-height: 1.75;
}

.science-class-lp__teacher-records span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  border-radius: 50%;
  color: var(--sc-white);
  background: var(--sc-mint-deep);
  font-size: 10.6px;
  font-weight: 700;
}

/* FAQ */
.science-class-lp__faq-list {
  display: grid;
  gap: 10px;
}

.science-class-lp__faq-item {
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-white);
}

.science-class-lp__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
}

.science-class-lp__faq-item summary::-webkit-details-marker {
  display: none;
}

.science-class-lp__faq-item summary i {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.science-class-lp__faq-item summary i::before,
.science-class-lp__faq-item summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--sc-primary-deep);
  content: "";
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.science-class-lp__faq-item summary i::before {
  width: 14px;
  height: 2px;
}

.science-class-lp__faq-item summary i::after {
  width: 2px;
  height: 14px;
}

.science-class-lp__faq-item[open] summary i::after {
  opacity: 0;
}

.science-class-lp__faq-item > div {
  padding: 0 16px 16px;
  color: var(--sc-muted);
  font-size: 0.88em;
  line-height: 1.9;
}

/* FEE */
.science-class-lp__fee-table {
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-white);
}

.science-class-lp__fee-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--sc-line);
  font-size: 0.85em;
  grid-template-columns: 68px 1fr 78px;
}

.science-class-lp__fee-row:last-child {
  border-bottom: none;
}

.science-class-lp__fee-row.is-head {
  color: var(--sc-primary-deep);
  background: var(--sc-primary-pale);
  font-size: 0.76em;
  font-weight: 700;
}

.science-class-lp__fee-row .is-price {
  font-weight: 700;
  text-align: right;
}

.science-class-lp__fee-note {
  margin-top: 14px !important;
  color: var(--sc-muted);
  font-size: 0.78em;
  line-height: 1.8;
}

.science-class-lp__access {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-white);
}

.science-class-lp__access-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sc-primary);
  font-size: 0.86em;
  font-weight: 700;
}

.science-class-lp__icon-pin {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.science-class-lp__access-address {
  margin-top: 6px !important;
  font-size: 0.92em;
  font-weight: 700;
}

.science-class-lp__access-landmark {
  margin-top: 4px !important;
  color: var(--sc-muted);
  font-size: 0.8em;
  line-height: 1.8;
}

/* 地図へのリンクは、押せると分かるよう白地＋青枠のボタンにする。 */
.science-class-lp__access-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0 20px;
  border: 2px solid var(--sc-primary);
  border-radius: 10px;
  color: var(--sc-primary);
  background: var(--sc-white);
  font-size: 0.86em;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.science-class-lp__access-link:hover,
.science-class-lp__access-link:focus-visible {
  color: var(--sc-white);
  background: var(--sc-primary);
}

/* 中間CTA */
.science-class-lp__midcta {
  padding: 44px 0;
  color: var(--sc-white);
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary-deep));
  text-align: center;
}

.science-class-lp__midcta-lead {
  margin-bottom: 10px !important;
  font-size: 1.1em;
  font-weight: 900;
  line-height: 1.5;
}

.science-class-lp__midcta-text {
  margin-bottom: 20px !important;
  font-size: 0.88em;
  line-height: 1.85;
}

/* 無料体験の流れ（申込直前のブロックなので濃紺で締める） */
.science-class-lp__trial {
  color: var(--sc-white);
  background: var(--sc-ink-deep);
  scroll-margin-top: 80px;
}

.science-class-lp__trial-lead {
  margin-bottom: 22px !important;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88em;
  text-align: center;
}

.science-class-lp__trial .science-class-lp__cta-note {
  color: rgba(255, 255, 255, 0.88);
}

.science-class-lp__trial .science-class-lp__cta-note a {
  color: var(--sc-white);
}

.science-class-lp__trial-title {
  margin-bottom: 8px !important;
  font-size: clamp(1.35em, 5.2vw, 1.7em);
  font-weight: 900;
  text-align: center;
}

/* 3ステップを縦に積んだボックス。番号を左、文言を右に置く。 */
.science-class-lp__step-list {
  display: grid;
  width: min(560px, 100%);
  gap: 12px;
  margin: 0 auto 24px;
}

.science-class-lp__step {
  display: grid;
  align-items: center;
  gap: 2px 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  grid-template-columns: 36px 1fr;
  text-align: left;
}

.science-class-lp__step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--sc-white);
  background: var(--sc-accent);
  font-size: 0.9em;
  font-weight: 700;
  grid-row: span 2;
}

.science-class-lp__step strong {
  color: var(--sc-white);
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.6;
}

/*
 * 紺地の上の説明文。薄すぎると読めないため、
 * 白に対して十分なコントラストが残る濃さにする。
 */
.science-class-lp__step small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82em;
  line-height: 1.7;
}

/*
 * 普段の授業の様子。
 * 直前の「無料体験の流れ」が濃紺なので、ここを濃紺にすると境目が消える。
 * 淡色にして最終CTAの青へつなぐ。
 */
.science-class-lp__news {
  background: var(--sc-bg);
}

.science-class-lp__news-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px !important;
  font-size: 1em;
  font-weight: 700;
}

.science-class-lp__news-list {
  display: grid;
  gap: 2px;
}

.science-class-lp__news-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--sc-line);
  color: var(--sc-ink);
  font-size: 0.85em;
  text-decoration: none;
}

.science-class-lp__news-list a:hover,
.science-class-lp__news-list a:focus-visible {
  color: var(--sc-primary-deep);
}

.science-class-lp__news-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.science-class-lp__news-date {
  flex: none;
  color: var(--sc-muted);
  font-size: 0.74em;
}

/* 最終CTA */
.science-class-lp__final {
  padding: 64px 0;
  color: var(--sc-white);
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-primary-deep));
  text-align: center;
}

.science-class-lp__final > div > p:first-child {
  margin-bottom: 10px !important;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 0.9;
}

.science-class-lp__final h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35em, 5.2vw, 1.9em);
  font-weight: 900;
  line-height: 1.5;
}

.science-class-lp__final > div > span {
  display: block;
  margin-bottom: 24px;
  font-size: 0.88em;
  line-height: 1.85;
}

.science-class-lp__final-note {
  margin-top: 10px !important;
  font-size: 0.8em;
  opacity: 0.9;
}

/* モバイルでは検討中の保護者がいつでも体験相談へ進めるようにする */
.science-class-lp__sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(20, 41, 60, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -8px 24px rgba(20, 41, 60, 0.12);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.science-class-lp__sticky-cta a {
  display: flex;
  width: min(520px, 100%);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--sc-white);
  background: var(--sc-line-green);
  box-shadow: 0 7px 18px rgba(10, 157, 74, 0.25);
  font-size: 0.96em;
  font-weight: 800;
  text-decoration: none;
  margin-inline: auto;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .science-class-lp {
    padding-bottom: 0;
  }

  .science-class-lp__container {
    width: min(1040px, calc(100% - 56px));
  }

  .science-class-lp__section {
    padding: 88px 0;
  }

  .science-class-lp__sticky-cta {
    display: none;
  }

  .science-class-lp__hero {
    padding: 64px 0 80px;
  }

  .science-class-lp__heading > span {
    text-align: center;
  }

  .science-class-lp__hero-text {
    font-size: 1.12em;
  }

  /* display:flex のままだと width:auto が親幅いっぱいになるため fit-content にする */
  .science-class-lp__button {
    width: fit-content;
    min-width: 340px;
    margin-inline: auto;
    font-size: 1.14em;
  }

  .science-class-lp__about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .science-class-lp__about-note {
    text-align: center;
  }

  .science-class-lp__hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
  }

  .science-class-lp__card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .science-class-lp__card {
    padding: 26px;
  }

  /* PCでは3枚見せて、残りは横スクロールで送る。 */
  .science-class-lp__voice {
    width: calc((100% - 28px) / 3);
    flex-basis: calc((100% - 28px) / 3);
  }

  .science-class-lp__midcta {
    padding: 64px 0;
  }

  .science-class-lp__midcta-lead {
    font-size: 1.55em;
  }

  .science-class-lp__teacher {
    display: grid;
    align-items: center;
    gap: 28px;
    padding: 32px;
    grid-template-columns: 1fr 1fr;
  }

  .science-class-lp__teacher-profile {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }

  .science-class-lp__faq-list {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    display: grid;
    gap: 12px;
  }

  .science-class-lp__fee-row {
    padding: 16px 24px;
    font-size: 1.05em;
    grid-template-columns: 120px 1fr 120px;
  }

  .science-class-lp__step strong {
    font-size: 1.05em;
  }

  .science-class-lp__step small {
    font-size: 0.9em;
  }

  .science-class-lp__news-title {
    font-size: 1.3em;
  }

  /*
   * PC表示の文字サイズ。
   * 見出しはモバイルで clamp を使っているが、768px以上では常に上限値に
   * 張り付くため、ここで固定値に置き換えている。
   */
  .science-class-lp__hero-title {
    font-size: 2.85em;
  }

  .science-class-lp__heading h2,
  .science-class-lp__final h2 {
    font-size: 2.15em;
  }

  .science-class-lp__trial-title {
    font-size: 1.95em;
  }

  .science-class-lp__card h3,
  .science-class-lp__worry-bridge,
  .science-class-lp__teacher-profile strong {
    font-size: 1.14em;
  }

  .science-class-lp__heading > span,
  .science-class-lp__about-note,
  .science-class-lp__card p,
  .science-class-lp__voice-text,
  .science-class-lp__teacher-profile p,
  .science-class-lp__records-title,
  .science-class-lp__teacher-records li,
  .science-class-lp__faq-item summary,
  .science-class-lp__faq-item > div,
  .science-class-lp__midcta-text,
  .science-class-lp__trial-lead,
  .science-class-lp__final > div > span {
    font-size: 1em;
  }

  .science-class-lp__cta-note,
  .science-class-lp__final-note,
  .science-class-lp__fee-note,
  .science-class-lp__hero-points li,
  .science-class-lp__news-list a,
  .science-class-lp__award strong,
  .science-class-lp__step-number {
    font-size: 0.9em;
  }

  .science-class-lp__heading > p,
  .science-class-lp__photo figcaption,
  .science-class-lp__award small,
  .science-class-lp__card-badge,
  .science-class-lp__voice-meta small,
  .science-class-lp__fee-row.is-head,
  .science-class-lp__news-date,
  .science-class-lp__final > div > p:first-child {
    font-size: 0.82em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .science-class-lp__button {
    transition: none;
  }

  .science-class-lp__button:hover,
  .science-class-lp__button:focus-visible {
    transform: none;
  }
}
