/*.h-school-class-page h1,
.h-school-class-page h2,
.h-school-class-page h3,
.h-school-class-page h4,
.h-school-class-page h5,
.h-school-class-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;
}
*,
h3,
h4,
h5,
p,
li,
div,
span {
  line-height: 2;
}

div#breadcrumb {
  padding: 0;
  margin: 10px auto;
}

.mt0 {
  margin-top: 0 !important;
}

.mb60 {
  margin-bottom: 60px !important;
}
/* ============================
   中学受験ページ ヘッダー画像
   ============================ */
.h-school-class-page .main-visual-wrapper {
  overflow: hidden;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.h-school-class-page .main-visual-wrapper img.main-visual {
  width: 100%;
  display: block;
}
/* 固定高さにしたい場合（画像が縦に長い場合など） */
.h-school-class-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;
}

.h-school-class-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; /* 内側の余白を広めに */
}
.h-school-class-page .mt120 {
  margin-top: 120px;
}
.h-school-class-page h2 {
  text-align: center;
}

.title-border {
  position: relative;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ccc; /* 誠神塾ブルー */

  margin: 40px 0 24px;
  padding: 0 10px;
}

.title-border:before,
.title-border:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #ccc; /* 誠神塾ブルー */
}

.title-border:before {
  left: 0;
}

.title-border:after {
  right: 0;
}

.h-school-class-page .juken-title {
  font-size: 28px;
  font-weight: bold;
  color: #c71d22;
  text-align: center;
  margin-bottom: 5px;
}

.h-school-class-page .juken-sub {
  text-align: center;
  color: #c71d22;
  font-size: 18px;
  margin-bottom: 30px;
}

.h-school-class-page .sec-title {
  font-size: 30px;
  font-weight: bold;
  margin: 40px 0 20px;
  color: #c71d22;
}

.features-section {
  background-color: #c71d22;
  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;
}

/* 他にはない誠神塾の特徴（高校生ページ） */
.message-section {
  background: #fdf5f5;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 60px 0;
}

.message-section .sec-title {
  font-size: 2rem;
  color: #c71d22;
  text-align: center;
  font-weight: bold;
  margin-bottom: 25px;
  margin-top: 15px;
}
/* 特徴 */
.wrap-message {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.img-message {
  width: 40%;
}
.img-message img {
  width: 100%;
}
.message-section .message-inner {
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.1rem;
  color: #333;
  width: 57%;
  padding: 10px;
}

.message-section .message-inner p {
  margin: 0;
  padding: 5px 10px;
  line-height: 1.5;
}

/* カード */
.feature-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-left: 6px solid #ccc;
  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: #c71d22;
  flex-shrink: 0;
}

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

.h-school-class-page .message-box {
  background: #f3f9f6;
  border: 1px solid #e8d5d5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.h-school-class-page .voice-box {
  background: #fdfbfb;
  border: 1px solid #e8d5d5;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 25px 0;
  font-size: 18px;
  line-height: 1.7;
}
.h-school-class-page .voice-name {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #742a2a !important;
  background: none !important;
  text-indent: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  width: auto !important;
  height: auto !important;
  outline: unset;
}

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

.h-school-class-page .contentHeader {
  margin-bottom: 0 !important;
}

.h-school-class-page #main,
.h-school-class-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: #c71d22;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 10px solid #c71d22;
}
.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: #c71d22;
  color: #fff;
  padding: 22px 44px;
  font-size: 2rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}
/* 講義内容 */
.math-seminar {
  margin-bottom: 60px;
}

.lead-block {
  padding: 20px 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 20px 0 30px;
}

/* 薄い青背景＋強調ボックス */
.point-box {
  position: relative;
  background: #fdf5f5; /* 他にはない誠神塾の特徴と同系の淡いブルー */
  padding: 22px 20px 20px;
  border-left: 4px solid #b40000; /* 誠神塾ブルーのライン */
  border-radius: 4px;
  margin: 40px 0 10px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

/* POINT! ラベル */
.point-tag {
  position: absolute;
  top: -20px;
  left: 14px;
  background: #b40000; /* 濃い赤背景 */
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.grade-label {
  display: inline-block;
  background: #b40000; /* .point-tag と同じ赤 */
  color: #fff; /* 文字白抜き */
  font-weight: bold;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.unit-block {
  margin-bottom: 40px;
}

.unit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 6px solid #c53d3d; /* 赤系に変更 */
  padding-left: 20px;
}

.color-blue {
  color: #3e67b3;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}
article h3:before {
  display: none;
}
article h3.color-blue:before {
  border: none;
  margin: 0;
}
.unit-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #c53d3d; /* 赤系カラー */
  background-image: none;
  text-indent: unset;
  width: auto;
  outline: unset;
  height: auto;
  line-height: normal;
  margin-top: 10px;
}

.card-list {
  margin: 0 0 15px 20px;
}

.card-list li {
  list-style: disc;
  margin-bottom: 5px;
}

.card-lead {
  font-weight: bold;
  margin-bottom: 15px;
  color: #b83232;
}

.card-meta {
  font-size: 14px;
  color: #773333; /* 赤みのある落ち着いた文字色 */
  margin-bottom: 12px;
}

.card-text {
  line-height: 1.8;
  margin-bottom: 15px;
}

/* スマホレイアウト */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-item.wide {
    grid-column: auto;
  }
  .message-section {
    padding: 30px 15px;
  }

  .message-section .sec-title {
    font-size: 1.6rem;
  }

  .message-section .message-inner {
    font-size: 1rem;
  }
  div#breadcrumb {
    padding: 0;
    margin: 0px auto;
  }
  .h-school-class-page .main-visual-wrapper img.main-visual {
    width: 160% !important;
    max-width: none;
    display: block;
    margin: 0 auto;
    transform: translateX(-18%);
  }
  .wrap-message {
    flex-direction: column;
  }
  .img-message {
    width: 100%;
  }

  .message-section .message-inner {
    width: 100%;
    padding: 10px 0 0;
  }
  .main-visual-wrapper img {
    width: 160% !important;
    max-width: none;
    display: block;
    margin: 0 auto;
    transform: translateX(-18%);
  }
  .lead-block {
    padding: 16px 18px;
    font-size: 1rem;
  }
  .point-box {
    padding: 18px 16px 16px;
    font-size: 1rem;
  }
  .title-border:before,
  .title-border:after {
    width: 20%; /* スマホでは少し短めに */
  }
}
