@charset "UTF-8";

/* =========================================================
   九大進学ゼミ 秋季体験入塾LP
   既存サイトとのCSS競合を避けるため、term2- で名前空間を統一
   ========================================================= */

.term2-lp {
  --term2-navy: #12335b;
  --term2-blue: #087fc5;
  --term2-sky: #eaf7ff;
  --term2-orange: #f47b20;
  --term2-orange-dark: #dd5f08;
  --term2-yellow: #ffd84d;
  --term2-green: #2cbf6d;
  --term2-pink: #ef4f8b;
  --term2-text: #27364a;
  --term2-muted: #617087;
  --term2-line: #dbe4ef;
  --term2-bg: #f6f9fc;
  --term2-white: #fff;
  --term2-shadow: 0 18px 50px rgba(22, 50, 86, 0.12);
  --term2-radius-lg: 28px;
  --term2-radius-md: 18px;
  --term2-container: 1180px;
  --term2-hero-container: 1360px;

  /* FV画像：ここを書き換えるだけでPC／スマホ画像を変更できます */
  --term2-fv-pc: url("https://www.sanaru-kyushu.co.jp/media/fv-26sept-pc.jpg");
  --term2-fv-sp: url("https://www.sanaru-kyushu.co.jp/media/fv-26sept-sp.jpg");
  color: var(--term2-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow: clip;
  background: var(--term2-white);
}

.term2-lp *,
.term2-lp *::before,
.term2-lp *::after {
  box-sizing: border-box;
}

.term2-lp img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.term2-lp a {
  color: inherit;
  text-decoration: none;
}

.term2-lp h1,
.term2-lp h2,
.term2-lp h3,
.term2-lp p,
.term2-lp ul,
.term2-lp ol {
  margin-top: 0;
}

.term2-container {
  width: min(calc(100% - 48px), var(--term2-container));
  margin-inline: auto;
}

.term2-container--narrow {
  max-width: 900px;
}

.term2-pc-only {
  display: inline;
}

.term2-sp-only {
  display: none;
}

/* Hero */
.term2-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 6.5vw, 96px) 0 clamp(64px, 7vw, 112px);
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 216, 77, 0.5), transparent 24%),
    radial-gradient(circle at 92% 86%, rgba(8, 127, 197, 0.22), transparent 26%),
    linear-gradient(135deg, #fff8e7 0%, #fff 44%, #eef8ff 100%);
}

/* FVだけ通常コンテンツより横幅を広くし、PC画像を大きく見せる */
.term2-hero .term2-container {
  width: min(calc(100% - 48px), var(--term2-hero-container));
}

.term2-hero::after {
  position: absolute;
  z-index: -1;
  right: -6vw;
  bottom: -120px;
  width: 38vw;
  height: 220px;
  min-width: 480px;
  content: "";
  transform: rotate(-8deg);
  border-radius: 999px;
  background: rgba(244, 123, 32, 0.12);
}

.term2-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.term2-hero__copy {
  position: relative;
  z-index: 2;
}

.term2-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 4px 17px;
  color: var(--term2-white);
  border-radius: 999px;
  background: var(--term2-blue);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.term2-hero h1 {
  margin-bottom: 22px;
  color: var(--term2-navy);
    font-size: clamp(2.3rem, 4.2vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
	    white-space: nowrap;
    letter-spacing: -0.03em;
}

.term2-hero h1 span,
.term2-hero h1 strong {
  display: block;
}

.term2-hero h1 strong {
  color: var(--term2-orange);
  font-size: 1.06em;
  text-shadow: 0 4px 0 rgba(244, 123, 32, 0.1);
}

.term2-hero__lead {
  margin-bottom: 22px;
  color: #3f526b;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 600;
  line-height: 2;
}

.term2-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.term2-hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 13px;
  color: var(--term2-navy);
  border: 1px solid rgba(18, 51, 91, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(18, 51, 91, 0.07);
}

.term2-hero__actions {
  display: grid;
  gap: 12px;
  max-width: 470px;
}

.term2-button {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
	column-gap: 12px;
  justify-content: center;
  min-height: 62px;
  padding: 13px 18px 13px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.term2-button__label {
  grid-column: 1;
  min-width: 0;
  text-align: center;
}

.term2-button__arrow {
  grid-column: 2;
  flex-shrink: 0;
  font-size: 1.3em;
  line-height: 1;
}

.term2-button:hover {
  transform: translateY(-2px);
}

.term2-button:focus-visible,
.term2-anchor a:focus-visible,
.term2-text-link:focus-visible,
.term2-faq-item summary:focus-visible {
  outline: 3px solid var(--term2-yellow);
  outline-offset: 3px;
}

.term2-button__sub {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 50px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.term2-button--primary {
  color: var(--term2-white);
  background: linear-gradient(135deg, var(--term2-orange), #ff9b38);
  box-shadow: 0 12px 26px rgba(244, 123, 32, 0.32);
}

.term2-button--primary:hover {
  background: linear-gradient(135deg, var(--term2-orange-dark), var(--term2-orange));
  box-shadow: 0 15px 30px rgba(244, 123, 32, 0.38);
}

.term2-button--secondary {
  color: var(--term2-navy);
  border-color: rgba(18, 51, 91, 0.24);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(18, 51, 91, 0.08);
}

.term2-button--secondary:hover {
  background: var(--term2-white);
  box-shadow: 0 12px 25px rgba(18, 51, 91, 0.13);
}

.term2-button:has(.term2-button__sub) {
  padding-top: 28px;
  padding-bottom: 10px;
}

.term2-note {
  margin: 18px 0 0;
  color: var(--term2-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.term2-hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 8 / 5;
  justify-self: end;
  padding: 12px;
  transform: rotate(1.5deg);
  border: 12px solid var(--term2-white);
  border-radius: 30px;
  background-color: #ffe26a;
  background-image: var(--term2-fv-pc);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 70px rgba(18, 51, 91, 0.22);
}

.term2-hero__visual::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  width: 130px;
  height: 130px;
  content: "";
  border-radius: 50%;
  background-image: radial-gradient(var(--term2-yellow) 2.5px, transparent 2.5px);
  background-size: 14px 14px;
}

.term2-hero__mini-card {
  position: absolute;
  right: -18px;
  bottom: -32px;
  display: grid;
  min-width: 230px;
  padding: 15px 20px;
  transform: rotate(-1.5deg);
  color: var(--term2-navy);
  border-left: 6px solid var(--term2-orange);
  border-radius: 13px;
  background: var(--term2-white);
  box-shadow: 0 16px 35px rgba(18, 51, 91, 0.2);
}

.term2-hero__mini-card strong {
  color: var(--term2-orange);
  font-size: 1.08rem;
  font-weight: 900;
}

.term2-hero__mini-card span {
  font-size: 0.78rem;
  font-weight: 700;
}

.term2-hero__decor {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.7;
}

.term2-hero__decor--one {
  top: 36px;
  right: 38%;
  width: 88px;
  height: 18px;
  transform: rotate(-28deg);
  background: var(--term2-pink);
}

.term2-hero__decor--two {
  bottom: 80px;
  left: 44%;
  width: 72px;
  height: 16px;
  transform: rotate(31deg);
  background: var(--term2-green);
}

/* Anchor nav */
.term2-anchor {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(18, 51, 91, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(18, 51, 91, 0.06);
  backdrop-filter: blur(10px);
}

.term2-anchor__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

.term2-anchor a {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 8px 14px;
  transition: color 0.2s ease, background-color 0.2s ease;
  color: var(--term2-navy);
  border-right: 1px solid rgba(18, 51, 91, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.term2-anchor a:first-child {
  border-left: 1px solid rgba(18, 51, 91, 0.08);
}

.term2-anchor a:hover {
  color: var(--term2-orange);
  background: #fff8f2;
}

/* Sections */
.term2-section {
  padding: clamp(76px, 8vw, 124px) 0;
}

.term2-heading {
  max-width: 780px;
  margin: 0 auto clamp(38px, 5vw, 64px);
  text-align: center;
}

.term2-heading__en {
  margin-bottom: 6px;
  color: var(--term2-orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.term2-heading h2 {
  margin-bottom: 17px;
  color: var(--term2-navy);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.term2-heading h2 span {
  display: inline-block;
  position: relative;
  color: var(--term2-orange);
}

.term2-heading h2 span::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 216, 77, 0.65);
}

.term2-heading > p:last-child {
  margin-bottom: 0;
  color: var(--term2-muted);
  font-weight: 500;
}

.term2-section--intro {
  background:
    linear-gradient(rgba(18, 51, 91, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 51, 91, 0.03) 1px, transparent 1px),
    var(--term2-bg);
  background-size: 36px 36px;
}

.term2-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.term2-reason-card {
  position: relative;
  min-height: 340px;
  padding: 34px 30px 30px;
  overflow: hidden;
  border: 1px solid rgba(18, 51, 91, 0.08);
  border-radius: var(--term2-radius-lg);
  background: var(--term2-white);
  box-shadow: 0 12px 32px rgba(18, 51, 91, 0.08);
}

.term2-reason-card::after {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  content: "";
  border-radius: 50%;
  background: rgba(8, 127, 197, 0.06);
}

.term2-reason-card:nth-child(2)::after {
  background: rgba(244, 123, 32, 0.08);
}

.term2-reason-card:nth-child(3)::after {
  background: rgba(44, 191, 109, 0.08);
}

.term2-reason-card__number {
  position: absolute;
  top: 14px;
  right: 21px;
  color: rgba(18, 51, 91, 0.08);
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 1;
}

.term2-reason-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 25px;
  color: var(--term2-white);
  border-radius: 19px;
  background: var(--term2-blue);
  box-shadow: 0 10px 22px rgba(8, 127, 197, 0.25);
  font-size: 1.8rem;
  font-weight: 900;
}

.term2-reason-card:nth-child(2) .term2-reason-card__icon {
  background: var(--term2-orange);
  box-shadow: 0 10px 22px rgba(244, 123, 32, 0.25);
}

.term2-reason-card:nth-child(3) .term2-reason-card__icon {
  background: var(--term2-green);
  box-shadow: 0 10px 22px rgba(44, 191, 109, 0.25);
}

.term2-reason-card h3 {
  margin-bottom: 15px;
  color: var(--term2-navy);
  font-size: 1.33rem;
  font-weight: 900;
  line-height: 1.55;
}

.term2-reason-card p {
  margin-bottom: 0;
  color: var(--term2-muted);
  font-size: 0.94rem;
}

/* Courses */
.term2-section--courses {
  background: var(--term2-white);
}

.term2-course-list {
  display: grid;
  gap: 34px;
}

.term2-course-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--term2-line);
  border-radius: var(--term2-radius-lg);
  background: var(--term2-white);
  box-shadow: var(--term2-shadow);
}

.term2-course-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
}

.term2-course-card:nth-child(even) .term2-course-card__image {
  order: 2;
}

.term2-course-card__image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--term2-sky);
}

.term2-course-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(18, 51, 91, 0.32), transparent 42%);
}

.term2-course-card__image img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  transition: transform 0.45s ease;
  object-fit: cover;
}

.term2-course-card:hover .term2-course-card__image img {
  transform: scale(1.035);
}

.term2-course-card__image span {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  padding: 7px 18px;
  color: var(--term2-white);
  border-radius: 999px;
  background: var(--term2-pink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.term2-course-card--junior .term2-course-card__image span {
  background: var(--term2-green);
}

.term2-course-card--high .term2-course-card__image span {
  background: var(--term2-blue);
}

.term2-course-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
}

.term2-course-card__grade {
  margin-bottom: 6px;
  color: var(--term2-orange);
  font-size: 0.9rem;
  font-weight: 900;
}

.term2-course-card__body h3 {
  margin-bottom: 18px;
  color: var(--term2-navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.term2-course-card__body > p:not(.term2-course-card__grade) {
  margin-bottom: 18px;
  color: var(--term2-muted);
}

.term2-course-card__body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
}

.term2-course-card__body li {
  position: relative;
  padding-left: 26px;
  color: #3e526b;
  font-size: 0.94rem;
  font-weight: 700;
}

.term2-course-card__body li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  content: "✓";
  color: var(--term2-white);
  border-radius: 50%;
  background: var(--term2-orange);
  font-size: 0.65rem;
  line-height: 1;
}

.term2-text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  color: var(--term2-blue);
  border-bottom: 2px solid rgba(8, 127, 197, 0.28);
  font-weight: 900;
}

.term2-text-link:hover {
  color: var(--term2-orange);
  border-bottom-color: var(--term2-orange);
}

.term2-center-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.term2-center-action .term2-button {
  min-width: min(100%, 410px);
}

/* Support */
.term2-section--support {
  position: relative;
  background: linear-gradient(145deg, #0d2b51, #114f7d);
}

.term2-section--support::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
  background-size: 25px 25px;
}

.term2-section--support .term2-container {
  position: relative;
}

.term2-heading--light h2,
.term2-heading--light > p:last-child {
  color: var(--term2-white);
}

.term2-heading--light .term2-heading__en {
  color: var(--term2-yellow);
}

.term2-heading--light h2 span {
  color: var(--term2-yellow);
}

.term2-heading--light h2 span::after {
  background: rgba(244, 123, 32, 0.55);
}

.term2-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.term2-support-card {
  display: flex;
  position: relative;
  min-height: 290px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--term2-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--term2-radius-lg);
  background: rgba(221, 95, 8, 0.98);
  box-shadow: 0 18px 45px rgba(3, 17, 36, 0.2);
  backdrop-filter: blur(7px);
}

.term2-support-card--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
  min-height: 370px;
}

.term2-support-card__image {
  min-height: 100%;
}

.term2-support-card__image img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
}

.term2-support-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 48px);
}

.term2-support-card__label {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 11px;
  color: var(--term2-navy);
  border-radius: 999px;
  background: var(--term2-yellow);
  font-size: 0.75rem;
  font-weight: 900;
}

.term2-support-card h3 {
  margin-bottom: 13px;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 900;
  line-height: 1.4;
}

.term2-support-card p:not(.term2-support-card__label) {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.term2-support-card__symbol {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(255, 255, 255, 0.13);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
}

.term2-text-link--white {
  color: var(--term2-white);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.term2-text-link--white:hover {
  color: var(--term2-yellow);
  border-bottom-color: var(--term2-yellow);
}

/* Flow */
.term2-section--flow {
  background: #fffaf1;
}

.term2-flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.term2-flow-item {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(244, 123, 32, 0.16);
  border-radius: var(--term2-radius-lg);
  background: var(--term2-white);
  box-shadow: 0 13px 34px rgba(144, 77, 18, 0.08);
  text-align: center;
}

.term2-flow-item:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -37px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  content: "→";
  transform: translateY(-50%);
  color: var(--term2-orange);
  border: 5px solid #fffaf1;
  border-radius: 50%;
  background: var(--term2-white);
  font-size: 1.4rem;
  font-weight: 900;
}

.term2-flow-item__number {
  margin-bottom: 17px;
  color: var(--term2-orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.term2-flow-item__number strong {
  display: inline-block;
  margin-left: 4px;
  font-size: 1.7rem;
  line-height: 1;
}

.term2-flow-item__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--term2-orange);
  border-radius: 25px;
  background: #fff1e4;
  font-size: 2rem;
  font-weight: 900;
}

.term2-flow-item h3 {
  margin-bottom: 11px;
  color: var(--term2-navy);
  font-size: 1.22rem;
  font-weight: 900;
}

.term2-flow-item p {
  margin-bottom: 0;
  color: var(--term2-muted);
  font-size: 0.9rem;
}

/* FAQ */
.term2-section--faq {
  background: var(--term2-white);
}

.term2-faq-list {
  display: grid;
  gap: 14px;
}

.term2-faq-item {
  overflow: hidden;
  border: 1px solid var(--term2-line);
  border-radius: var(--term2-radius-md);
  background: var(--term2-white);
  box-shadow: 0 7px 20px rgba(18, 51, 91, 0.05);
}

.term2-faq-item summary {
  display: flex;
  position: relative;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 17px 58px 17px 20px;
  cursor: pointer;
  color: var(--term2-navy);
  font-weight: 800;
  list-style: none;
}

.term2-faq-item summary::-webkit-details-marker {
  display: none;
}

.term2-faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  content: "+";
  transform: translateY(-50%);
  color: var(--term2-orange);
  font-size: 1.7rem;
  font-weight: 500;
}

.term2-faq-item[open] summary::after {
  content: "−";
}

.term2-faq-item summary > span,
.term2-faq-item__answer > span {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--term2-white);
  border-radius: 10px;
  background: var(--term2-blue);
  font-size: 1.05rem;
  font-weight: 900;
}

.term2-faq-item__answer {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid var(--term2-line);
  background: #f8fbfe;
}

.term2-faq-item__answer > span {
  background: var(--term2-orange);
}

.term2-faq-item__answer p {
  margin: 2px 0 0;
  color: var(--term2-muted);
}

/* Final CTA */
.term2-final-cta {
  position: relative;
  padding: clamp(72px, 8vw, 120px) 0;
  overflow: hidden;
  color: var(--term2-white);
  background: linear-gradient(135deg, #f47b20, #ff9d32 58%, #ffc84f);
}

.term2-final-cta::before,
.term2-final-cta::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.term2-final-cta::before {
  top: -180px;
  left: -130px;
  width: 430px;
  height: 430px;
}

.term2-final-cta::after {
  right: -100px;
  bottom: -210px;
  width: 520px;
  height: 520px;
}

.term2-final-cta__inner {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.75fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.term2-final-cta__eyebrow {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.term2-final-cta h2 {
  margin-bottom: 17px;
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  font-weight: 900;
  line-height: 1.23;
  letter-spacing: -0.045em;
}

.term2-final-cta__inner > div:first-child > p:last-child {
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.term2-final-cta__actions {
  display: grid;
  gap: 12px;
}

.term2-button--white {
  color: var(--term2-orange-dark);
  background: var(--term2-white);
  box-shadow: 0 13px 30px rgba(106, 52, 6, 0.17);
}

.term2-button--white:hover {
  background: #fffaf4;
  box-shadow: 0 17px 35px rgba(106, 52, 6, 0.23);
}

.term2-button--outline-white {
  color: var(--term2-white);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.term2-button--outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
}

.term2-phone {
  display: grid;
  margin-top: 7px;
  text-align: center;
}

.term2-phone span {
  font-size: 0.78rem;
  font-weight: 800;
}

.term2-phone a {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.term2-phone small {
  font-size: 0.72rem;
  font-weight: 600;
}

.term2-mobile-cta {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .term2-hero__inner {
    grid-template-columns: 1fr;
  }

  .term2-hero__copy {
    text-align: center;
  }

  .term2-hero__badges,
  .term2-hero__actions {
    justify-content: center;
    margin-inline: auto;
  }

  .term2-note {
    text-align: left;
  }

  .term2-hero__visual {
    width: min(100%, 820px);
    margin-inline: auto;
    justify-self: center;
  }

  .term2-reason-grid {
    grid-template-columns: 1fr;
  }

  .term2-reason-card {
    min-height: 0;
  }

  .term2-course-card,
  .term2-course-card:nth-child(even) {
    grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.15fr);
  }

  .term2-course-card:nth-child(even) .term2-course-card__image {
    order: 0;
  }

  .term2-support-card--wide {
    grid-template-columns: 1fr;
  }

  .term2-support-card__image img {
    min-height: 0;
  }

  .term2-final-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .term2-final-cta__actions {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .term2-lp {
    padding-bottom: 70px;
    font-size: 15px;
  }

  .term2-container {
    width: min(calc(100% - 32px), var(--term2-container));
  }

  .term2-hero .term2-container {
    width: min(calc(100% - 32px), var(--term2-hero-container));
  }

  .term2-pc-only {
    display: none;
  }

  .term2-sp-only {
    display: inline;
  }

  .term2-hero {
    padding-top: 42px;
  }

  .term2-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .term2-hero__lead {
    line-height: 1.8;
  }

  .term2-hero__actions {
    width: 100%;
  }

  .term2-hero__visual {
    aspect-ratio: 3 / 4;
    transform: none;
    border-width: 8px;
    border-radius: 22px;
    /*
      1枚目がスマホ用FVです。
      topvisual-autumn-sp.jpg が未設置の場合は、2枚目のPC用画像を代替表示します。
    */
    background-image: var(--term2-fv-sp), var(--term2-fv-pc);
    background-position: center top, center;
    background-size: cover, cover;
  }

  .term2-hero__mini-card {
    right: 8px;
    bottom: -28px;
    min-width: 190px;
  }

  .term2-anchor {
    position: relative;
  }

  .term2-anchor__inner {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-inline: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .term2-anchor__inner::-webkit-scrollbar {
    display: none;
  }

  .term2-anchor a {
    min-width: 122px;
    min-height: 51px;
    flex: 0 0 auto;
    border-left: 0;
    scroll-snap-align: start;
  }

  .term2-heading {
    margin-bottom: 36px;
  }

  .term2-heading h2 {
    font-size: clamp(1.85rem, 8.7vw, 2.65rem);
  }

  .term2-course-card,
  .term2-course-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .term2-course-card__image,
  .term2-course-card__image img {
    min-height: 240px;
    max-height: 330px;
  }

  .term2-course-card__body {
    padding: 30px 24px 34px;
  }

  .term2-support-grid {
    grid-template-columns: 1fr;
  }

  .term2-support-card--wide {
    grid-column: auto;
  }

  .term2-support-card__body {
    padding: 28px 24px;
  }

  .term2-flow-list {
    grid-template-columns: 1fr;
  }

  .term2-flow-item:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -39px;
    transform: translateX(50%) rotate(90deg);
  }

  .term2-faq-item summary {
    align-items: flex-start;
    min-height: 0;
    padding: 17px 48px 17px 16px;
  }

  .term2-faq-item__answer {
    padding: 17px 16px;
  }

  .term2-final-cta__inner {
    grid-template-columns: 1fr;
  }

  .term2-final-cta h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .term2-mobile-cta {
    display: grid;
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 0.82fr 1.18fr;
    min-height: 64px;
    padding: 7px;
    border-top: 1px solid rgba(18, 51, 91, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 25px rgba(18, 51, 91, 0.16);
    backdrop-filter: blur(10px);
  }

  .term2-mobile-cta a {
    display: grid;
    place-items: center;
    color: var(--term2-navy);
    border: 2px solid var(--term2-navy);
    border-radius: 10px 0 0 10px;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: center;
  }

  .term2-mobile-cta a:last-child {
    color: var(--term2-white);
    border-color: var(--term2-orange);
    border-radius: 0 10px 10px 0;
    background: var(--term2-orange);
  }
}

@media (prefers-reduced-motion: reduce) {
  .term2-lp *,
  .term2-lp *::before,
  .term2-lp *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 768px) {
  .term2-hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .term2-button {
    box-sizing: border-box;
    width: 95%;
    max-width: 100%;
    min-width: 0;
    min-height: 64px;

    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;

    padding: 14px 14px 14px 16px;
    font-size: 0.95rem;
  }

  .term2-button__label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .term2-button__arrow {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .term2-button__sub {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .term2-button:has(.term2-button__sub) {
    min-height: 72px;
    padding-top: 28px;
  }
}

/* ===================================
   Campaign
=================================== */

.term2-campaign{
  margin-top:-30px;
  margin-bottom: 40px;
  position:relative;
  z-index:20;
}

.term2-campaign .term2-container{
  max-width:980px;
  margin:auto;
  padding:34px 40px;
  border-radius:22px;
  background:linear-gradient(135deg,#fff8cf,#fff1a7);
  border:3px solid #ffd44a;
  box-shadow:0 16px 40px rgba(0,0,0,.12);
  text-align:center;
}

.term2-campaign__badge{
  display:inline-block;
  margin-bottom:16px;
  padding:.45em 1.2em;
  border-radius:999px;
  background:#e53935;
  color:#fff;
  font-size:.9rem;
  font-weight:700;
}

.term2-campaign__title{
  margin:0;
  color:#d84315;
  font-size:clamp(2rem,3vw,2.8rem);
  font-weight:900;
  line-height:1.3;
}

.term2-campaign__text{
  max-width:760px;
  margin:18px auto 0;
  color:#444;
  font-size:1.08rem;
  line-height:1.9;
}

.term2-campaign strong{
  color:#d32f2f;
  font-weight:900;
}

/* =========================================================
   下層ページ用 フルワイドFV
   小学部・中学部・高等部・きょうだい割
========================================================= */

.term2-subpage .term2-hero {
  position: relative;

  min-height: 620px;

  display: flex;
  align-items: center;

  padding:
    clamp(70px, 8vw, 120px)
    0;

  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.65) 38%,
      rgba(255, 220, 100, 0.25) 65%,
      rgba(255, 220, 100, 0.05) 100%
    ),
    var(--term2-fv-pc);

  background-repeat: no-repeat;

  background-position: center center;

  background-size: cover;
}


/* 元の装飾を非表示 */
.term2-subpage .term2-hero::after {
  display: none;
}


/* FV内部を1カラムに */
.term2-subpage .term2-hero__inner {
  display: block;

  max-width: 650px;
}


/* テキストカラー */
.term2-subpage .term2-hero h1 {
  color: #12335b;
}

.term2-subpage .term2-hero__lead {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.0);
  color: var(--term2-navy);
}

.term2-subpage .term2-hero__badges span {
  color: #12335b;

  border-color: rgba(255, 255, 255, 0.35);

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(5px);
}


/* PCでは左側にコピー */
.term2-subpage .term2-hero__copy {
  max-width: 620px;
}


/* =========================================================
   小学部・中学部・高等部
   スマホFV調整
========================================================= */

@media (max-width: 720px) {
	
	.term2-school .term2-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    white-space: normal;

    /* h1だけ上へ移動 */
    transform: translateY(-150px);
  }
		

  .term2-school .term2-hero {
    min-height: 720px;

    /* 顔を見せるスペースを上部に確保 */
    padding-top: 50px;
    padding-bottom: 36px;

    align-items: flex-end;

    background-position: center top;
  }

  .term2-school .term2-hero__copy {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .term2-school .term2-hero h1 {
    margin-bottom: 14px;

    /* 現在より小さく */
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);

    line-height: 1.25;
    letter-spacing: -0.03em;

    /* PCのnowrapを解除 */
    white-space: normal;
  }

  .term2-school .term2-hero h1 strong {
    font-size: 1em;
  }

  .term2-school .term2-hero__lead {
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .term2-school .term2-eyebrow {
    margin-bottom: 10px;
    font-size: 0.78rem;
  }

}

/* =========================================
   下層ページ FV：スマホ画像を強制適用
========================================= */
@media (max-width: 720px) {

  .term2-subpage .term2-hero {
    background-image:
      linear-gradient(
        90deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.65) 38%,
      rgba(255, 220, 100, 0.25) 65%,
      rgba(255, 220, 100, 0.05) 100%
      ),
      var(--term2-fv-sp) !important;

    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
  }

}

