/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  color: #333;
  background: #fff;
  line-height: 1.8;
}

.page-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

p { margin: 0; }
h2, h3, h4 { margin: 0; }

/* PCでは非表示 */
.sp-only {
  display: none;
}

/* スマホ（例：767px以下）の時だけ表示 */
@media screen and (max-width: 767px) {
  .sp-only {
    display: inline; /* もしくは block */
  }
}

/* サイドバー消滅タイミング（959px）で非表示 */
@media (max-width: 959px) {
  .pc-only {
    display: none;
  }
}
/* サイドバー消滅タイミング（959px）で非表示 */
@media (max-width: 767px) {
  .pc-only2 {
    display: none;
  }
}

@media screen and (max-width: 768px) {
    
    /* 1. 帯の背景色をオレンジ（#EB6100）に変更 */
    .page-id-9969 .custom-full-width-bg {
        background-color: #EB6100 !important;
        padding: 16px 0;
        margin-bottom: 0;
    }

    /* 2. 見出しテキストを白（#ffffff）に変更 */
    .page-id-9969 .page-main-title {
        color: #ffffff !important;
        font-size: 27px;
    }

    /* 3. ロゴアイコンを白に変更 */
    .page-id-9969 .page-title-icon {
        filter: brightness(0) invert(1) !important;
        width: 27px;
    }
    .custom-title-inner{
      justify-content: center;
    }
    .page-id-9971 .custom-full-width-bg {
        padding: 16px 0;
        margin-bottom: 0;
    }
    .page-id-9971 .page-main-title {
        font-size: 27px;
    }
    .page-id-9971 .page-title-icon {
        width: 27px;
    }

    .page-id-9973 .custom-full-width-bg {
        background-color: #004d26 !important;
        padding: 16px 0;
        margin-bottom: 0;
    }

    /* 2. 見出しテキストを白（#ffffff）に変更 */
    .page-id-9973 .page-main-title {
        color: #ffffff !important;
        font-size: 27px;
    }

    /* 3. ロゴアイコンを白に変更 */
    .page-id-9973 .page-title-icon {
        filter: brightness(0) invert(1) !important;
        width: 27px;
    }
}

.bp_cta_sec{
  margin-top: 40px;
}

/* =====================
   Layout wrapper
   ===================== */
.page-wrapper {
  margin: 0 auto;
  padding: 0 32px;
}
@media (min-width: 960px) and (max-width: 1167px) {
  .page-wrapper {
    min-width: 830px;
  }
}
@media (min-width: 960px) {
  .page-wrapper {
    width: calc(100% - var(--swl-sidebar_width) - var(--swl-sidebar_margin));
  }
}
/* =====================
   Hero
   ===================== */
.hero {
  padding-top: 49px;
  padding-bottom: 0;
}

/*
  hero__visual: position:relative の基準コンテナ。
  高さは画像(261px)で決まる。
  Figma座標系:
    画像: 右寄せ、右margin 40px → 幅751pxの中で x=343px〜x=711px
    テキスト: absolute left=61px (=343-282), top=16px, 幅341px
    バッジ: absolute left=277px, top=215px, 幅474px
*/
.hero__visual {
  position: relative;
}

/* 画像: 右寄せ、右マージン20px */
.hero__image {
  width: 368px;
  margin-left: auto;
  margin-right: 20px;
}

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

/* テキストコンテンツ: 画像の左側に絶対配置 */
.hero__content {
  position: absolute;
  left: 24px;
  top: 16px;
  width: 341px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #004d26;
  font-weight: 700;
      font-family: 'BrandKaiGothic', sans-serif;
}

.hero__title {
  font-size: 31px;
  line-height: 36px;
  font-weight: 700;
  color: #004d26;
}

.hero__subtitle {
  display: flex;
  flex-direction: column;
}

.hero__subtitle p {
  line-height: 36px;
  white-space: nowrap;
}

.hero__subtitle .text-orange {
  font-size: 25px;
  font-weight: 700;
  color: #eb6100;
}

.hero__subtitle .text-medium {
  font-size: 20px;
  font-weight: 500;
  color: #004d26;
}

/* バッジ: 画像の上に半透明白背景で重ねる */
.hero__badge {
  position: absolute;
  right: 0;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__badge p {
  color: #004d26;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.hero__badge .badge-text {
  font-size: 13px;
  font-weight: 500;
}

.hero__badge .badge-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #eb6100;
}

/* =====================
   Common Section
   ===================== */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
}

.hero + .content-section {
  padding-top: 0px;
}

.section-header {
  background: #a9cb1c;
  padding: 10px 10px 10px 32px;
  font-family: 'BrandKaiGothic', sans-serif;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #004d26;
  line-height: 1;
  white-space: nowrap;
}

/* =====================
   Text content (カリキュラム / コース紹介)
   ===================== */
.text-content {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.text-block {
  display: flex;
  flex-direction: column;
}

.sub-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ed6c00;
  line-height: 28.8px;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 28.8px;
}

.note-text {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 28.8px;
}
.target-schools__item {
    padding-top: 16px;
}

/* =====================
   Flow Grid（授業の流れ）
   ===================== */
.flow-section .section-body {
  padding: 0 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 49px 32px;
  padding: 0 16px;
  justify-content: center;
}

.flow-step {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step__label {
  background: #eb6100;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  line-height: 1;
  white-space: nowrap;
}

.flow-step__desc {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 24px;
}

.flow-step__image {
  width: 100%;
}

.flow-step__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.flow-step__note {
  font-size: 14px;
  font-weight: 400;
  color: rgba(235, 97, 0, 0.92);
  line-height: 24px;
}

/* =====================
   Subject Cards（教科ごとの指導ポイント）
   ===================== */
.subject-section .section-body {
  padding: 0;
}

.subject-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0;
  margin: 0 auto;
}

.subject-card {
  background: #e2ecab;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.subject-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #004d26;
  line-height: 36px;
}

.subject-card__body {
  background: #fff;
  border-radius: 10px;
  padding: 23px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subject-card__sub {
  font-size: 16px;
  font-weight: 400;
  color: #ed6c00;
  line-height: 28.8px;
}

.subject-card__text {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 28.8px;
}

/* =====================
   Responsive — Tablet (≤768px)
   ===================== */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 0;
  }

  /* Hero: 絶対配置を解除して縦並びに */
  .hero {
    padding-top: 24px;
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* テキストを先頭・中央寄せに */
  .hero__content {
    position: static;
    width: 100%;
    order: 1;
    top: auto;
    left: auto;
    align-items: center;
    gap: 4px;
  }
  .hero + .content-section {
  padding-top: 40px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.35;
    text-align: center;
  }

  /* サブタイトルをコンパクトなカード化 */
  .hero__subtitle {
    background: #fff;
  }

  .hero__subtitle p {
    white-space: normal;
    line-height: 1.7;
  }

  .hero__subtitle .text-orange {
    font-size: 16px;
  }

  .hero__subtitle .text-medium {
    font-size: 12px;
  }

  /* 画像を2番目に */
  .hero__image {
    width: 94%;
    max-width: 380px;
    margin-left: 0;
    margin-right: 0;
    order: 2;
  }

  /* バッジを画像下部に絶対配置で重ねる */
  .hero__badge {
    position: absolute;
    bottom: -4%;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    width: 95%;
    padding: 8px 0;
    justify-content: center;
    border-radius: 50px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 1);
  }

  .hero__badge p {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  /* Section header */
  .section-header h2 {
    white-space: normal;
    line-height: 1.4;
    text-align: center;
  }

  /* Flow */
  .flow-grid {
    grid-template-columns: repeat(2, 200px);
    gap: 32px 24px;
    padding: 0 8px;
  }

  .flow-step__label {
    font-size: 16px;
    padding: 10px 6px;
  }

  /* Subject cards */
  .subject-cards {
    width: 100%;
  }
  .jh-hero .hero__subtitle{
    text-align: center;
  }
}

/* =====================
   Responsive — Mobile (≤480px)
   ===================== */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 0;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.35;
  }

  .hero__subtitle .text-orange {
    font-size: 20px;
  }

  .hero__subtitle .text-medium {
    font-size: 16px;
  }

  .hero__badge .badge-text {
    font-size: 13px;
  }

  .hero__badge .badge-highlight {
    font-size: 16px;
  }

  .hero__badge {
    padding: 8px 16px;
  }

  .section-header {
    padding: 10px 16px;
  }

  /* Flow: 1 column */
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }

  .flow-step {
    width: 100%;
  }

  .sub-heading {
    font-size: 15px;
  }

  .body-text,
  .note-text,
  .subject-card__text {
    font-size: 14px;
    line-height: 25px;
  }

  .subject-card {
    padding: 16px;
  }

  .subject-card__body {
    padding: 16px;
  }

  .subject-card__title {
    font-size: 17px;
  }

  .subject-card__sub {
    font-size: 14px;
  }
  .jh-hero .hero__subtitle .text-orange{
    font-size: 16px;
  }
  .jh-hero .hero__subtitle .text-medium{
    font-size: 12px;
  }
  .jh-hero .hero__title{
    font-size: 26px;
  }
}


/* ========================================
   成績保証制度セクション
======================================== */

.seiseki-hosho {
  background: #fff;
  padding: 0;
  margin: 0 auto;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.seiseki-hosho__inner {
  position: relative;
}

/* ---- タイトル ---- */
.seiseki-hosho__title {
  background: #6dac3c;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 10px 16px;
  letter-spacing: 0.05em;
}

.seiseki-hosho__title-icon {
  margin-right: 6px;
}

/* ---- コンテンツ本体（左テキスト + 右画像） ---- */

.seiseki-hosho__image-wrap {
  position: absolute;
  bottom: 0;
  right: 0.2px;
  width: clamp(100px, 38%, 280px); 
  height: auto;
}

.seiseki-hosho__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- リード文 ---- */
.seiseki-hosho__lead {
  margin: 0 0 10px;
}

.seiseki-hosho__lead-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #004d26;
  margin: 0 0 2px;
}

.seiseki-hosho__lead-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: #004d26;
  margin: 0;
  line-height: 1.5;
}

.seiseki-hosho__lead-em {
  color: #eb6100;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* ---- 入塾後説明文 ---- */
.seiseki-hosho__condition-intro {
  font-size: 0.78rem;
  color: #004d26;
  margin: 0 0 8px;
}

/* ---- 保証ボックス ---- */
.seiseki-hosho__guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seiseki-hosho__guarantee-item {
  background: #fff;
  border: 8px solid #fff46e;
  border-radius: 4px;
  padding: 6px;
}

.seiseki-hosho__guarantee-label {
  font-size: 1rem;
  color: #eb6100;
  margin: 0 0 2px;
}

.seiseki-hosho__guarantee-body {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.seiseki-hosho__guarantee-em {
  color: #eb6100;
  font-size: 1.2rem;
  font-weight: 900;
}

/* ---- 注記 ---- */
.seiseki-hosho__note {
  font-size: 0.68rem;
  color: #888;
  margin: 0;
  text-align: right;
  padding-right: 4px;
}

/* ========================================
   PC幅（769px以上）では画像を大きく
======================================== */
@media (min-width: 769px) {
  .seiseki-hosho__content {
  padding: 16px 16px 0 16px;
  /* 画像が右に回り込む余白を確保 */
  }

  .seiseki-hosho__image-wrap {
    width: 280px;
    right: 2px;
  }

  .seiseki-hosho__title {
    font-size: 1.6rem;
    padding: 12px 20px;
  }

  .seiseki-hosho__lead-text {
    font-size: 1.3rem;
  }

  .seiseki-hosho__lead-highlight {
    font-size: 1.1rem;
  }

  .seiseki-hosho__lead-em {
    font-size: 2rem;
  }

  .seiseki-hosho__guarantee-body {
    font-size: 1.3rem;
  }

  .seiseki-hosho__guarantee-em {
    font-size: 1.4rem;
  }

  .seiseki-hosho__condition-intro {
    font-size: 0.85rem;
  }
  .seiseki-hosho__guarantee-label{
        font-size: 0.8rem;
  }
}


@media (max-width: 480px) {
  .seiseki-hosho__guarantee-label {
  font-size: 0.8rem;
  }
  .seiseki-hosho__guarantee-body {
  font-size: 0.8rem;
  }
  .seiseki-hosho__guarantee-em {
  font-size: 1rem;
  }
  .seiseki-hosho__lead-text {
  font-size: 0.95rem;
  }
  .seiseki-hosho__lead-highlight {
  font-size: 0.95rem;
  }
  .seiseki-hosho__lead-em {
  font-size: 1.45rem;
  }
}