@import url("./components/h1.css");
@import url("./components/h2.css");
@import url("./components/button-large.css");

/* =============================================
   中学受験をお考えの方へ ページ
   ============================================= */

/* --- Page Title Override --- */
.junior-exam .section-title__h2 {
  font-size: var(--font-size-40);
  line-height: 1.75;
  letter-spacing: 1.6px;
}

/* =============================================
   Hero / Catchphrase
   ============================================= */
.je-hero {
  position: relative;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.je-hero__bg {
  width: 100%;
}

.je-hero__bg img {
  display: block;
  width: 100%;
  height: auto;
}

.je-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 10px;
}

.je-h1-br-sp,
.je-hero__br-sp,
.je-cta-br-sp {
  display: none;
}

.je-hero__tagline {
  font-size: 48px;
  font-weight: var(--font-weight-black);
  line-height: 1.35;
  letter-spacing: 1.92px;
  color: #ff8f8f;
}

.je-hero__text {
  margin-top: 40px;
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-medium);
  line-height: 1.75;
  letter-spacing: 0.72px;
  color: #286185;
}

/* =============================================
   中学入試に出る「理科」を体で理解する
   ============================================= */
.je-understand {
  padding: 64px 0;
}

.je-understand__title {
  text-align: left;
}

.je-understand__title .section-title__h2 {
  text-align: left;
  white-space: pre-line;
  background: var(--color-linear-to-right);
  background-clip: text;
  -webkit-background-clip: text;
}

.je-understand__title .section-title__border {
  margin-left: 0;
}

.je-understand__columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.je-understand__left {
  flex: 1;
}

.je-understand__right {
  flex: 1;
  max-width: 484px;
}

.je-understand__text {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: var(--color-body);
}

.je-understand__text strong {
  font-weight: var(--font-weight-bold);
}

.je-understand__pyramid {
  margin-top: 64px;
  padding: 0 64px;
}

.je-understand__pyramid img {
  width: 100%;
  height: auto;
}

/* =============================================
   入試問題を「実験で再現」する授業
   ============================================= */
.je-reproduce {
  background: #f2fcff;
  padding: 64px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.je-reproduce__title {
  text-align: left;
}

.je-reproduce__title .section-title__h2 {
  text-align: left;
  white-space: pre-line;
  background: var(--color-linear-to-right);
  background-clip: text;
  -webkit-background-clip: text;
}

.je-reproduce__title .section-title__border {
  margin-left: 0;
}

.je-reproduce__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 10px;
}

.je-reproduce__columns {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

.je-reproduce__card {
  flex: 1;
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
}

.je-reproduce__card-text {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: #346b8d;
}

.je-reproduce__card-text strong {
  font-weight: var(--font-weight-bold);
}

.je-reproduce__card-list {
  margin-top: 16px;
  padding-left: 24px;
  list-style: disc;
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: #346b8d;
}

.je-reproduce__image {
  width: 355px;
  flex-shrink: 0;
}

.je-reproduce__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* =============================================
   このような実験を行います（一例）
   ============================================= */
.je-examples {
  padding: 64px 0;
}

.je-examples__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
}

.je-examples__card {
  width: calc(50% - 20px);
  max-width: 400px;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.je-examples__card--chemistry {
  background: #f2f8ff;
}

.je-examples__card--electricity {
  background: #fffee0;
}

.je-examples__card--biology {
  background: #f3fff3;
}

.je-examples__card--light {
  background: #fff7f7;
}

.je-examples__card-title {
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-bold);
  line-height: 1.75;
  letter-spacing: 0.96px;
  color: #2d6f97;
}

.je-examples__card-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
}

.je-examples__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.je-examples__card-text {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: #2d6f97;
  text-align: left;
  width: 100%;
}

.je-examples__note {
  margin-top: 40px;
  text-align: center;
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.72px;
  color: var(--color-body);
}

/* =============================================
   Palm Tree でしかできない理由
   ============================================= */
.je-reasons {
  background: #f2fcff;
  padding: 64px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.je-reasons__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 10px;
}

.je-reasons__cards {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.je-reasons__card {
  flex: 1;
  background: var(--color-white);
  border: 2px solid var(--color-main);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.je-reasons__card-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-linear);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-black);
  line-height: 1.75;
  letter-spacing: 0.96px;
  color: var(--color-white);
}

.je-reasons__card-heading {
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-black);
  line-height: 1.75;
  letter-spacing: 0.96px;
  text-align: center;
  background: var(--color-linear);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.je-reasons__card-body {
  background: var(--color-linear);
  border-radius: 6px;
  padding: 16px;
  width: calc(100% - 32px);
  flex: 1;
}

.je-reasons__card-body p {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: var(--color-white);
}

.je-reasons__card-body ul {
  padding-left: 16px;
  margin: 24px 0;
}

.je-reasons__card-body li {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: var(--color-white);
  list-style: disc;
}

.je-reasons__plan-link {
  display: block;
  margin-top: 40px;
  text-align: center;
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: var(--color-main);
  text-decoration: underline;
}

.je-reasons__plan-link:hover {
  opacity: 0.7;
}

.je-reasons__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.je-reasons__cta-btn {
  width: auto;
  padding: 10px 40px;
  font-size: var(--font-size-24);
}

/* =============================================
   SP Responsive (max-width: 768px)
   ============================================= */
@media screen and (max-width: 768px) {
  /* H2 override */
  .junior-exam .section-title__h2 {
    font-size: var(--font-size-26);
  }

  /* Hero */
  .je-hero {
    width: auto;
    margin-left: -10px;
    margin-right: -10px;
  }

  .je-hero__bg {
    position: absolute;
    inset: 0;
  }

  .je-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .je-hero__content {
    position: relative;
    padding: 40px 16px;
  }

  .je-h1-br-sp,
  .je-hero__br-sp,
  .je-cta-br-sp {
    display: block;
  }

  .je-hero__tagline {
    font-size: var(--font-size-32);
    letter-spacing: 1.28px;
  }

  .je-hero__text {
    margin-top: 24px;
    font-size: var(--font-size-16);
  }

  .je-hero__text br {
    display: none;
  }

  /* Understand */
  .je-understand {
    padding: 40px 0;
  }

  .je-understand__columns {
    flex-direction: column;
    gap: 24px;
  }

  .je-understand__title .section-title__h2 {
    white-space: normal;
  }

  .je-understand__pyramid {
    margin-top: 40px;
    padding: 0;
  }

  /* Reproduce */
  .je-reproduce {
    padding: 40px 0;
  }

  .je-reproduce__inner {
    padding: 0 16px;
  }

  .je-reproduce__columns {
    flex-direction: column;
    gap: 24px;
  }

  .je-reproduce__image {
    width: 100%;
  }

  /* Examples */
  .je-examples {
    padding: 40px 0;
  }

  .je-examples__grid {
    gap: 16px;
  }

  .je-examples__card {
    width: 100%;
    max-width: none;
  }

  .je-examples__card-title {
    font-size: var(--font-size-20);
  }

  .je-examples__card-image {
    width: 140px;
    height: 140px;
  }

  .je-examples__note {
    margin-top: 24px;
    font-size: var(--font-size-16);
  }

  /* Reasons */
  .je-reasons {
    padding: 40px 0;
  }

  .je-reasons__inner {
    padding: 0 16px;
  }

  .je-reasons__cards {
    flex-direction: column;
    gap: 16px;
  }

  .je-reasons__card-heading {
    min-height: auto;
    font-size: var(--font-size-20);
  }

  .je-reasons__cta-btn {
    width: 100%;
    font-size: var(--font-size-18);
    padding: 10px 24px;
    text-align: center;
  }
}
