/*.chugaku-juken-page h1,
.chugaku-juken-page h2,
.chugaku-juken-page h3,
.chugaku-juken-page h4,
.chugaku-juken-page h5,
.chugaku-juken-page h6 {
  background: none !important;
  background-image: none !important;
  text-indent: 0 !important;
  height: auto !important;
  width: auto !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  margin: 0 0 15px !important;
  outline: none !important;
  display: block !important;
}*/
h1.visual {
  max-width: 1020px;
  margin: 15px auto;
}
div#breadcrumb {
  padding: 0;
  margin: 10px auto;
}
/* ============================
   中学受験ページ ヘッダー画像
   ============================ */
.chugaku-juken-page .main-visual-wrapper {
  overflow: hidden;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.chugaku-juken-page .main-visual-wrapper img.main-visual {
  width: 100%;
  display: block;
}
/* 固定高さにしたい場合（画像が縦に長い場合など） */
.chugaku-juken-page .main-visual-wrapper .main-visual {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
/* メインビジュアル（中学受験ページ） */
.main-visual-wrapper {
  width: 100%;
  max-width: 1020px; /* ページ幅に合わせる */
  margin: 0 auto;
  overflow: hidden;
}

.main-visual-wrapper img.main-visual {
  width: 100%;
  height: auto;
  display: block;
}

.chugaku-juken-page {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: #fff; /* 白背景 */
  padding: 40px 30px; /* 内側の余白を広めに */
}

.chugaku-juken-page h2 {
  text-align: center;
}

.chugaku-juken-page .juken-title {
  font-size: 28px;
  font-weight: bold;
  color: #185c42;
  text-align: center;
  margin-bottom: 5px;
}

.chugaku-juken-page .juken-sub {
  text-align: center;
  color: #2e6f57;
  font-size: 18px;
  margin-bottom: 30px;
}

.chugaku-juken-page .sec-title {
  font-size: 30px;
  font-weight: bold;
  margin: 40px 0 20px;
  color: #185c42;
}

.features-section {
  background-color: #3da76b;
  padding: 15px 20px 30px;
  border-radius: 8px;
}

.features-section .sec-title {
  color: #fff;
  text-align: center;
  margin: 30px;
}

/* Grid レイアウト */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 最後の2つを1列（PC）*/
.feature-item.wide {
  grid-column: 1 / -1;
}

/* カード */
.feature-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-left: 6px solid #e0e411; /* 誠神塾グリーン */
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.feature-item i {
  font-size: 32px;
  color: #3ba86a;
  flex-shrink: 0;
}

.feature-item p {
  margin: 0;
  line-height: 1.5;
  font-size: 18px;
  font-weight: bold;
}

/* 塾長メッセージセクション */
.jukucho-section {
  position: relative;
  background: #e9f7ec; /* 優しいグリーン */
  padding: 50px 40px;
  border-radius: 12px;
  overflow: hidden;
  margin: 60px 0;
}
.jukucho-message h2 {
  text-align: center;
}

/* テキスト */
.jukucho-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.jukucho-content p {
  line-height: 1.9;
  font-size: 1.05rem;
  color: #333;
}

/* 塾長画像 */
.jukucho-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 280px; /* 大きすぎたら調整可能 */
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* 塾長メッセージ */
.jukucho-message {
  position: relative;
  padding: 0 40px 0px;
  background: #e8f6e8;
  border-radius: 12px;
  margin: 60px 0;
  overflow: hidden;
}

/* 背景に塾長画像を配置 */
.jukucho-message::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 430px;
  height: 340px;
  background-image: url(https://seisinjuku.com/wp-content/uploads/2025/11/jukucho-1.png);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

.jukucho-message .message-inner {
  position: relative;
  margin-left: 260px;
  z-index: 2;
  background-color: #ffffff8a;
  padding: 40px 40px;
  margin-bottom: 30px;
  border-radius: 60px;
}

.jukucho-message p {
  font-size: 17px;
  line-height: 1.8;
}

.chugaku-juken-page .message-box {
  background: #f3f9f6;
  border: 1px solid #d5e8df;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.chugaku-juken-page .voice-box {
  background: #fbfdfc;
  border: 1px solid #e0ebe5;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 25px 0;
  font-size: 18px;
  line-height: 1.7;
}
.chugaku-juken-page .voice-name {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #3e67b3 !important;
  background: none !important;
  text-indent: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

/* このページだけ main カラムを全幅に修正 */
.chugaku-juken-page #main,
.chugaku-juken-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important; /* 好きな余白に調整 */
  box-sizing: border-box;
}

.chugaku-juken-page .contentHeader {
  margin-bottom: 0 !important;
}

.chugaku-juken-page #main,
.chugaku-juken-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*CTA*/
.trial-banner {
  background: linear-gradient(135deg, #f3f3f3, #f3f3f2);
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  margin: 0px 40px 40px;
  color: #3da76b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 10px solid #3da76b;
}
.trial-catch {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.trial-desc {
  line-height: 1.6;
  margin-bottom: 20px;
}
.trial-button {
  display: inline-block;
  background: #3da76b;
  color: #fff;
  padding: 22px 44px;
  font-size: 2rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

/* スマホレイアウト */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-item.wide {
    grid-column: auto;
  }
  div#breadcrumb {
    padding: 0;
    margin: 0px auto;
  }
  .chugaku-juken-page .main-visual-wrapper img.main-visual {
    width: 160% !important;
    max-width: none;
    display: block;
    margin: 0 auto;
    transform: translateX(-18%);
  }
  .jukucho-section {
    padding-bottom: 280px; /* 画像分のスペース作成 */
  }

  .jukucho-message .message-inner {
    margin-left: 100px;
    padding: 20px;
  }

  .jukucho-image {
    width: 220px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
  }

  .jukucho-content {
    max-width: 100%;
  }
  .jukucho-message::before {
    width: 250px;
    height: 200px;
  }
  .main-visual-wrapper img {
    width: 160% !important;
    max-width: none;
    display: block;
    margin: 0 auto;
    transform: translateX(-18%);
  }
}
