/*
 * 下層ページ用スタイル（TOP 以外で読み込み）
 * 投稿一覧・カテゴリ・単一投稿・固定ページ下層など
 *
 * 方針: css/style.css で定義されているクラスと同一の表現は css/style.css のクラス名を
 * テンプレートで使用し、page.css では差分配・下層専用のみ定義する。
 */

/* ========== 投稿一覧・カテゴリ・単一投稿 ========== */

.l-main--archive,
.l-main--single {
  padding-bottom: 0;
}

/* ページヒーロー（一覧・単体）SP の見た目は css/style.css の @media (max-width:768px) に任せる */
.page-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--page-hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.page-hero__title {
  width: 100%;
  margin: 0 0 16px;
  font-weight: 700;
  background-color: rgb(255 255 255 / 85%);
  display: inline-block;
}

/* PC のみ：ヒーロー高さ・タイトルサイズ */
@media (min-width: 769px) {
  .page-hero {
    min-height: 300px;
  }
  .page-hero__title {
    font-size: 2rem;
    line-height: 1.3;
    padding: 0.8em 0;
  }
}

/* SP：ヒーロータイトル */
@media (max-width: 768px) {
  .page-hero__title {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    padding: 0.5em 0.5em 0.8em !important;
    text-align: center;
  }
}

/* パンくず */
.breadcrumb {
  margin: 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb__item {
  margin: 0;
}

.breadcrumb__item:not(:last-child)::after {
  content: ' > ';
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb__item a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

.breadcrumb__item--current {
  color: #ffffff;
}

/* 一覧：記事カード */
.section--archive {
  padding: 48px 0 60px;
}

/* 一覧は TOP と同じ .news-list / .news-item を使用（css/style.css で共通スタイル。競合なし） */

.news-archive-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
}

/* ページネーション */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination .page-numbers li {
  margin: 0;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a.page-numbers:hover,
.pagination span.current {
  background-color: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
}

/* 単一投稿 */
.single-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.single-article__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-article__label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  background-color: #fff;
  color: var(--color-text);
  border: 1px solid #ccc;
  border-radius: 4px;
}

.single-article__label--primary {
  background-color: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
}

.single-article__date {
  font-size: 0.9rem;
  color: var(--color-muted);
  display: none;
}

.single-article__content {
  margin-bottom: 40px;
}

.single-article__content h3 {
  margin: 1.75em 0 0.5em;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 4px solid var(--color-main);
}

.single-article__content h4 {
  margin: 1.25em 0 0.5em;
  font-size: 1.1rem;
  font-weight: 600;
}

.single-article__content p {
  margin: 0 0 1em;
  line-height: 1.8;
}

.single-article__content ul,
.single-article__content ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.single-article__back {
  text-align: center;
}

/* コラム単一記事（single-column.php） */
.column-single__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 24px;
}

.column-single__header .column-single__category {
  margin-right: auto;
  margin-bottom: 0;
}

.column-single__header .column-single__date {
  margin-bottom: 0;
}

.column-single__header .column-single__title {
  flex-basis: 100%;
  margin-top: 12px;
}

.column-single__body h2 {
  margin: 2em 0 0.75em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-main-dark);
  padding-bottom: 0.4em;
}

.column-single__body h2:first-child {
  margin-top: 0;
}

.column-single__body h3 {
  margin: 1.75em 0 0.65em;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 4px solid var(--color-main);
  color: var(--color-text);
}

.column-single__body h4 {
  margin: 1.25em 0 0.5em;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d9488;
}

.column-single__body p {
  margin: 0 0 1em;
  line-height: 1.8;
}

.column-single__body img.alignright {
  float: right;
  margin: 0 0 1em 1em;
  max-width: 33%;
  height: auto;
}

.column-single__body img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
  max-width: 33%;
  height: auto;
}

.column-single__body::after {
  content: "";
  display: table;
  clear: both;
}

.column-single__back {
  text-align: center;
  margin-top: 40px;
}

/* ========== グノーブルとは（page-aboutus.php） ========== */
.l-main--aboutus {
  padding-bottom: 0;
}

.section-heading--about {
  text-align: center;
  margin-bottom: 16px;
}

.about-intro {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 500;
}

.about-intro--subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 60px;
  color: var(--color-main-dark2);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 40px;
}

.about-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background-color: #fff;
}

.about-feature__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.about-feature__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.about-feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.about-feature__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* カード内で link-btn-wrap の幅が潰れないように幅を確保（ボタンが縦線だけになるのを防ぐ） */
.about-feature .link-btn-wrap {
  margin-top: 0;
  width: 100%;
  flex-shrink: 0;
}

.about-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 24px;
  line-height: 1.4;
  border-bottom: 2px solid var(--color-main-dark2);
  padding-bottom: 0.6em;
}

/* SP時のみ改行を表示（PCでは非表示） */
.sp-br {
  display: none;
}

.about-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-twocol__body p {
  margin: 0 0 1em;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.about-twocol__body p:last-child {
  margin-bottom: 0;
}

.about-twocol__media {
  margin: 0;
}

.about-twocol__media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .about-intro--subtitle {
    margin-top: 30px;
    font-size: 1.5rem;
  }

  .about-intro {
    font-size: 1rem;
  }

  .about-section-title {
    font-size: 1.25rem;
    text-align: center;
    padding-bottom: 0.5em;
  }

  .sp-br {
    display: block;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .about-twocol {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-twocol--text-left .about-twocol__media {
    order: -1;
  }
}

/* ========== 代表・本部長のご挨拶（#greeting） ========== */
.section-heading--greeting {
  text-align: center;
  margin-bottom: 40px;
}

.greeting-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.greeting-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 38px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 中山：枠（罫線・背景 info-banner-bg1） */
.greeting-item:first-child {
  border: 5px solid var(--info-banner-bg1);
  background-color: var(--color-bg4);
}

/* 永井：枠（罫線・背景 color-bg2） */
.greeting-item:last-child {
  border: 5px solid var(--info-banner-bg1);
  background-color: var(--color-bg2);
}

/* 写真＋キャッチ＋役職・名前（1ブロック目） */
.greeting-item__header {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 28px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.greeting-item__media {
  margin: 0;
  width: 160px;
  height: 174px;
  flex-shrink: 0;
  overflow: hidden;
}

.greeting-item__media img {
  width: 160px;
  height: 174px;
  display: block;
  object-fit: cover;
}

.greeting-item__header-body {
  margin: 0;
}

.greeting-item__tagline {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 12px;
  text-align: center;
}

.greeting-item__name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  text-align: right;
}

/* メッセージ部分（2ブロック目） */
.greeting-item__message {
  margin: 0;
}

.greeting-item__text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text);
}

.greeting-item__text p {
  margin: 0 0 1.2em;
}

.greeting-item__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .greeting-item__header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }
  
  .greeting-item {
    padding: 20px;
  }

  .greeting-item__media {
    order: -1;
    margin-left: auto;
    margin-right: auto;
  }

  .greeting-item__tagline {
    font-size: 1.25rem;
    text-align: left;
  }

  .greeting-item__name {
    font-size: 0.9rem;
  }

  .greeting-list {
    gap: 48px;
  }
}

/* コラム記事：画像＋テキスト 2カラム（PC 2列 / SP 1列） */
.column-single__body .column-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin: 0 0 2em;
  clear: both;
}

.column-single__body .column-two-col__media {
  margin: 0;
}

.column-single__body .column-two-col__media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.column-single__body .column-two-col__body {
  margin: 0;
}

.column-single__body .column-two-col__body p {
  margin: 0 0 1em;
}

.column-single__body .column-two-col__body p:last-child {
  margin-bottom: 0;
}

/* 画像を右側にしたいとき：.column-two-col--img-right を付与 */
.column-single__body .column-two-col--img-right .column-two-col__media {
  order: 2;
}

.column-single__body .column-two-col--img-right .column-two-col__body {
  order: 1;
}

@media (max-width: 767px) {
  .column-single__body .column-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 1.5em;
  }

  .column-single__body .column-two-col--img-right .column-two-col__media,
  .column-single__body .column-two-col--img-right .column-two-col__body {
    order: unset;
  }
}

/* 校舎案内詳細（single-branch.php） */
.branch-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 24px;
  margin: 0 0 2em;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.branch-detail__label {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.branch-detail__value {
  margin: 0;
  color: var(--color-text);
}

.branch-detail__tel {
  color: var(--color-main);
  font-weight: 600;
  text-decoration: none;
}

.branch-detail__tel:hover {
  text-decoration: underline;
}

#branch-news {
  margin-top: 0;
  padding-top: 0px;
}

/* 校舎詳細：校舎情報セクションの背景 */
#branch-info.section-page {
  background-color: var(--info-banner-bg3);
  padding-top: 3.5em;
  padding-bottom: 1.5em;
}

.single-branch .section {
  padding: 30px 0;	
}

.single-branch .curriculum-copy{
  margin-bottom: 0;
}

.single-branch .curriculum-subcopy{
  margin-top: 1em;
}

/* 校舎詳細：授業曜日と時間帯セクションの背景 */
#branch-timetable.section-page {
  background-color: var(--color-bg5);
  padding-top: 3.5em;
}

/* 校舎詳細：授業曜日と時間帯（タブ切り替え・5px枠・重なり調整） */
.branch-schedule {
  margin-top: 2.5em;
  overflow: hidden;
}

/* .single-article__content ul より詳細度を上げて margin/padding を上書き */
.single-article__content ul.branch-schedule__tabs,
.branch-schedule__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  margin-bottom: 0;
  padding: 0;
  padding-left: 0;
  list-style: none;
}

.branch-schedule__tabs li {
  flex: 1 1 50%;
  max-width: 50%;
}

@media (max-width: 768px) {
  .branch-schedule__tabs li {
    max-width: 100%;
  }
}

.branch-schedule__tab {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background-color: #ffffff;
  color: var(--color-main-dark);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
  border-top: none;
  border-right: none;
  border-left: none;
}

.branch-schedule__tab.is-active {
  background-color: var(--color-main-dark);
  color: #ffffff;
  border-color: var(--color-main-dark);
}

.branch-schedule__tab-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

.branch-schedule__panel {
  display: none;
  padding: 0;
  background: #ffffff;
  border: 5px solid var(--info-banner-bg1);

}

.branch-schedule__panel.is-active {
  display: block;
}

.branch-schedule__panel .branch-schedule__table-wrap {
  padding: 30px;
  
}

.branch-schedule__panel .branch-schedule__notes {
  padding: 1em 1em 1em 1.2em;
  margin: 0 30px 30px;
}

.branch-schedule__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.branch-schedule__table {
  width: 100%;
  min-width: 680px;
  display: table !important;
  overflow: visible;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.branch-schedule__table th,
.branch-schedule__table td {
  padding: 10px 8px;
  border: 1px solid #C0DBD0;
  text-align: center;
  vertical-align: middle;
}

.branch-schedule__table thead th {
  background-color: var(--info-banner-bg1);
  color: var(--color-main-dark);
  font-weight: 700;
  border-color: #C0DBD0;
}

.branch-schedule__table td {
  background-color: #ffffff;
  color: var(--color-text);
}

.entry-content .branch-schedule__table td.branch-schedule__grade {
  background-color: var(--info-banner-bg1);
  font-weight: 700;
  vertical-align: middle;
  color: var(--color-main-dark);
}

.branch-schedule__table .is-day {
  color: var(--color-main);
  font-weight: 700;
}

.branch-schedule__notes {
  margin: 1em 0 0;
  padding: 1em 0 0 1.2em;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text);
}

.branch-schedule__notes li {
  margin-bottom: 0.35em;
}

@keyframes branch-schedule-scroll-hint {
  0%, 100% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
}

/* 校舎詳細：校舎情報ブロック（本文内）・添付デザイン */
.single-article--branch .branch-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.5em 0 1em;
  line-height: 1.3;
}

.single-article--branch .branch-info-title:first-child {
  margin-top: 0;
}

.single-article--branch .branch-info-title__sub {
  display: block;
  margin-top: 4px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-main-dark);
  width: fit-content;
  min-width: 6em;
}

.single-article--branch .branch-info-body {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 2em;
  border: 5px solid var(--info-banner-bg1);
  padding: 40px;
}

.single-article--branch .branch-info-content {
  flex: 1 1 45%;
  min-width: 280px;
  padding: 0;
  box-sizing: border-box;
}

.single-article--branch .branch-info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  margin: 0 0 1.5em;
  border: 1px solid #e0e0e0;
}

.single-article--branch .branch-info-list dt {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 14px;
    background-color: var(--color-main-dark);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.single-article--branch .branch-info-list dt:last-of-type {
  border-bottom: none;
}

.single-article--branch .branch-info-list dd {
  margin: 0;
  padding: 12px 14px;
  background-color: var(--color-bg5);
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.single-article--branch .branch-info-list dd:last-of-type {
  border-bottom: none;
}

.single-article--branch .branch-info-list ul {
  margin: 0;
  padding-left: 1.2em;
}

.single-article--branch .branch-info-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 0;
}

.link-btn--branch-outline::before{
  background-color: var(--color-main-dark2);
  width: 6px;
  transition: none;
}

.single-article--branch .branch-info-cta .link-btn--branch-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 60px;
  padding: 12px 2.5em 12px 20px;
  background: #ffffff;
  color: var(--color-main-dark2);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-main-dark2);
  transition: background-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.2;
}

.single-article--branch .branch-info-cta .link-btn--branch-outline .link-btn__text {
  text-align: center;
}

.single-article--branch .branch-info-cta .link-btn--branch-outline .link-btn__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
}

.single-article--branch .branch-info-cta .link-btn--branch-outline:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--color-main-dark2);
}

.single-article--branch .branch-info-cta .link-btn--branch-outline:hover::before {
  width: 6px;
}

.single-article--branch .branch-info-cta .link-btn--branch-outline:hover .link-btn__text,
.single-article--branch .branch-info-cta .link-btn--branch-outline:hover .link-btn__icon {
  color: var(--color-main-dark2);
}

.single-article--branch .branch-info-cta .link-btn--branch-outline:hover .link-btn__icon {
  color: var(--color-main-dark2);
}

/* 資料請求：branch-outline と同じ形状で背景のみ var(--color-main-dark)、ホバーも同様 */
.link-btn--branch-solid::before {
  background-color: var(--color-main-dark2);
}

.single-article--branch .branch-info-cta .link-btn--branch-solid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 60px;
  padding: 12px 2.5em 12px 20px;
  background-color: var(--color-main-dark);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-main-dark2);
  transition: background-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.single-article--branch .branch-info-cta .link-btn--branch-solid .link-btn__text {
  text-align: center;
}

.single-article--branch .branch-info-cta .link-btn--branch-solid .link-btn__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
}

.single-article--branch .branch-info-cta .link-btn--branch-solid:hover {
  background-color: var(--color-main-dark2);
  color: #ffffff;
}

.single-article--branch .branch-info-cta .link-btn--branch-solid:hover .link-btn__icon {
  color: #ffffff;
}

.single-article--branch .branch-info-map {
  flex: 1 1 45%;
  min-width: 280px;
  min-height: 320px;
  background: #e8e8e8;
}

.single-article--branch .branch-info-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  vertical-align: top;
}

@media (max-width: 768px) {
  .single-article--branch .branch-info-body {
    flex-direction: column;
    padding: 20px;
  }

  .single-article--branch .branch-info-content {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
  }

  .single-article--branch .branch-info-list {
    grid-template-columns: 100px 1fr;
  }

  .single-article--branch .branch-info-list dt,
  .single-article--branch .branch-info-list dd {
    padding: 10px 12px;
    font-size: 0.875rem;
  }

  .single-article--branch .branch-info-cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 12px;
  }

  .single-article--branch .branch-info-cta .link-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    box-sizing: border-box;
  }

  .single-article--branch .branch-info-map {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 260px;
  }

  .single-article--branch .branch-info-map iframe {
    min-height: 260px;
  }

  .branch-schedule__tab {
    padding: 10px;
  }

  /* SP時のみ：表の横スクロール案内（左右に動くアニメーション） */
  .branch-schedule__panel .branch-schedule__table-wrap::before {
    content: "↔ 左右にスクロールしてご覧ください";
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text);
    padding-bottom: 8px;
    animation: branch-schedule-scroll-hint 1.8s ease-in-out infinite;
  }

  .branch-schedule__panel .branch-schedule__table-wrap {
    padding: 15px;
  }

  .branch-schedule__panel .branch-schedule__notes {
    margin: 15px;
  }
}

.branch-empty {
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text);
}

/* 一覧で電話番号なしのときの表示（span） */
.branch-item__tel--plain {
  display: inline-block;
  padding: 10px 20px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  background-color: #f0f0f0;
  width: 300px;
  text-align: center;
  box-sizing: border-box;
}

.link-btn--outline {
  display: inline-flex;
  max-width: 280px;
  background-color: #fff;
  border: 2px solid #999;
  color: var(--color-text);
}

.link-btn--outline:hover {
  border-color: var(--color-main-dark);
  color: var(--color-main-dark);
}

.link-btn--outline:hover::before {
  width: 0;
}

.link-btn--outline:hover .link-btn__text,
.link-btn--outline:hover .link-btn__icon {
  color: var(--color-main-dark);
}

/* ========== カリキュラム下層 (page-curriculum.php) ========== */
.section-page {
    padding: 30px 0 60px;
}

.section-page2 {
    padding: 60px 0;
}

/* ヒーロータイトルプレフィックス（他頁・cat_grade 共通）。SP 時は margin なしで改行するため page.css で一元管理 */
.page-hero__title-prefix {
  display: inline;
  font-size: 0.65em;
  font-weight: 600;
  margin-right: 1em;
}


/* リード・本文（中央揃え） */
.section--curriculum-copy {
  text-align: center;
  padding: 30px 0;
}

.curriculum-copy {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main-dark2);
  line-height: 1.5;
  margin: 0 0 1em;
}

.curriculum-subcopy {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
}

/* パンくず（ヒーロー下・section--curriculum-copy の上）は緑 */
.breadcrumb-wrap--curriculum {
  padding: 12px 20px 0;
}

.breadcrumb-wrap--curriculum .breadcrumb__list {
  justify-content: flex-start;
}

.breadcrumb-wrap--curriculum .breadcrumb__list,
.breadcrumb-wrap--curriculum .breadcrumb__item a,
.breadcrumb-wrap--curriculum .breadcrumb__item--current {
  color: var(--color-main-dark2);
}

.breadcrumb-wrap--curriculum .breadcrumb__item:not(:last-child)::after {
  color: var(--color-main-dark2);
}

/* 固定ページ本文エリア（授業内容・料金・カリキュラムなど）：TOP #result と同じ背景格子柄 */
.section--curriculum-content {
  background-color: #EDF4F1;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 35px,
      #e1eef7 35px,
      #e1eef7 36px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 35px,
      #e1eef7 35px,
      #e1eef7 36px
    );
  background-position: 0 0, 0 0;
  background-size: 100% 100%, 100% 100%;
}

.curriculum-content__body.entry-content {
  max-width: 960px;
  margin: 0 auto;
}

/* 授業内容・料金カード（固定ページ本文用） */
.curriculum-content-block {
  margin-bottom: 56px;
}

.curriculum-content-block:last-child {
  margin-bottom: 0;
}

.curriculum-fee-card {
  background-color: #ffffff;
  border: 5px solid var(--info-banner-bg1);
  overflow: hidden;
  padding: 35px;
}

.curriculum-fee-card__header {
  padding: 0;
}

.curriculum-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.curriculum-fee-table th,
.curriculum-fee-table td {
  padding: 14px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #e8e8e8;
}

.curriculum-fee-table tr:last-child th,
.curriculum-fee-table tr:last-child td {
  border-bottom: none;
}

.curriculum-fee-table th {
  width: 33%;
  min-width: 140px;
  background-color: var(--color-main-dark);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.curriculum-fee-table td {
  color: var(--color-text);
  text-align: left;
  background: #F5F5F5;
  font-weight: 600;
  padding-left: 40px;
}

.curriculum-fee-card__body {
  padding: 20px 24px 0 0;
}

.curriculum-fee-notes {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
}

.curriculum-fee-notes li {
  margin-bottom: 0.5em;
}

.curriculum-fee-notes li:last-child {
  margin-bottom: 0;
}

.curriculum-fee-notes a {
  color: var(--color-main);
}

.curriculum-fee-notes a:hover {
  text-decoration: underline;
}

/* ----- SP: max-width: 768px ----- */
@media (max-width: 768px) {
  .page-hero__title-prefix {
    margin-right: 0;
  }
  .section--curriculum-copy {
    padding: 30px 0 15px;
  }
  .curriculum-subcopy{
    text-align: left;
  }
  .section-page {
    padding: 30px 0;
  }
  .section-page2 {
    padding: 30px 0;
  }  
  .curriculum-fee-card {
    margin-top: 30px;
    padding: 20px 14px 20px;
  }

  .curriculum-fee-table th,
  .curriculum-fee-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .curriculum-fee-table th {
    min-width: 0;
    width: 32%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .curriculum-fee-table td {
    padding-left: 14px;
    line-height: 1.55;
  }

  .curriculum-fee-card__body {
    padding: 16px 0 0;
  }

  .curriculum-fee-notes {
    padding-left: 1.1em;
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .curriculum-fee-notes li {
    margin-bottom: 0.6em;
  }
}

/* カリキュラムタブ（算数・国語・理科・社会） */
.curriculum-tabs {
  margin-top: 0;
}

.curriculum-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end; /* タブを下揃えにし、選択中だけ高さを伸ばして上に出す */
  gap: 5px;
  justify-content: center;
  margin-bottom: 0;
  border-bottom: none;
}

/* 固定ページ本文の <br> でタブが改行されないように */
.curriculum-tabs__nav br {
  display: none;
}

.curriculum-tabs__tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.2s ease, min-height 0.2s ease, padding 0.2s ease;
  margin: 0;
  box-shadow: none;
}

.curriculum-tabs__tab:not(.is-active) {
  opacity: 0.85;
}

.curriculum-tabs__tab:hover {
  opacity: 1;
}

.curriculum-tabs__tab--math { background-color: #2588B2; }
.curriculum-tabs__tab--japanese { background-color: #E56452; }
.curriculum-tabs__tab--science { background-color: var(--color-main); }
.curriculum-tabs__tab--social { background-color: #FBC502;}

/* 選択中タブ：高さを上げてどれが選ばれているか分かりやすく */
.curriculum-tabs__tab.is-active {
  opacity: 1;
  filter: brightness(1.1);
  min-height: 58px;
  padding: 18px 16px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.curriculum-tabs__content {
  margin-top: 0;
}

.curriculum-tab-panel {
  display: none;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 0 0 8px 8px;
  border: 5px solid var(--info-banner-bg1);    
}

.curriculum-tab-panel.is-active {
  display: block;
}


.curriculum-tab-panel__inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* アイコンとその下のタブラベルを縦にまとめる */
.curriculum-tab-panel__icon-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.curriculum-tab-panel__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.curriculum-tab-panel__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main-dark);
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.curriculum-tab-panel__icon--math {
  background-image: url('../images/curriculum-tab-panel__icon--math.svg');
}

.curriculum-tab-panel__icon--japanese {
  background-image: url('../images/curriculum-tab-panel__icon--japanese.svg');
}

.curriculum-tab-panel__icon--science {
  background-image: url('../images/curriculum-tab-panel__icon--science.svg');
}

.curriculum-tab-panel__icon--social {
  background-image: url('../images/curriculum-tab-panel__icon--social.svg');
}

.curriculum-tab-panel__text {
  flex: 1;
  min-width: 0;
}

.curriculum-tab-panel__text p {
  margin: 0;
  line-height: 1.8;
}

.curriculum-tab-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 3em;
}

/* カリキュラムパネル内ボタン：背景 color-main・白文字・左に再生アイコン・角丸・下縁に立体感 */
.curriculum-tab-panel__buttons .link-btn--curriculum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 330px;
  min-height: 56px;
  padding: 12px 20px 14px;
  background-color: var(--color-main);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  text-shadow: 0 0 12px rgba(200, 235, 255, 0.4);
}

/* 共通 .link-btn の ::before がホバーで広がり文字を隠すため、ホバー時も文字色を白に固定 */
.curriculum-tab-panel__buttons .link-btn--curriculum:hover {
  opacity: 0.95;
  color: #ffffff;
  background-color: var(--color-main-dark);
}

.curriculum-tab-panel__buttons .link-btn--curriculum:hover * {
  color: #ffffff;
}

/* 共通 .link-btn::before（緑バー）を無効化し、代わりに左側に白三角を表示 */
.curriculum-tab-panel__buttons .link-btn--curriculum::before {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: 0;
  height: 0;
  min-height: 0;
  background: none;
  content: "";
  display: inline-block;
  margin-right: 0.25em;
  border-top: 0.35em solid transparent;
  border-bottom: 0.35em solid transparent;
  border-left: 0.5em solid #ffffff;
  flex-shrink: 0;
  vertical-align: middle;
}

.curriculum-tab-panel__buttons .link-btn--curriculum:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* 四角い絵文字 img を非表示にし、::before で左側に白三角を表示 */
.curriculum-tab-panel__buttons .link-btn--curriculum .emoji {
  display: none;
}

.curriculum-tab-panel__buttons .link-btn--curriculum:hover::before {
  border-left-color: #ffffff;
}

.curriculum-tab-panel__buttons .link-btn--curriculum br {
  display: none;
}

/* カリキュラムタブパネル：SP で縦並び・余白調整 */
@media (max-width: 768px) {
  .curriculum-tabs{
    margin-top: 30px;
  }
  .curriculum-tab-panel {
    padding: 20px 14px 24px;
  }

  .curriculum-tab-panel__inner {
    display: block;
  }

  .curriculum-tab-panel__icon-wrap {
    margin-bottom: 20px;
    text-align: center;
  }

  .curriculum-tab-panel__icon {
    width: 72px;
    height: 72px;
  }

  .curriculum-tab-panel__label {
    font-size: 0.9375rem;
  }

  .curriculum-tab-panel__text p {
    font-size: 0.9375rem;
    line-height: 1.75;
  }

  .curriculum-tab-panel__buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 1.75em;
  }

  .curriculum-tab-panel__buttons .link-btn--curriculum {
    max-width: none;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px 14px;
    font-size: 0.9375rem;
  }
}

/* ========== 書籍一覧ページ：入塾の流れ（背景 --color-bg5） ========== */
.book-list__enrollment-wrap {
  background-color: var(--color-bg5);
  padding: 60px 0 80px;
}

/* 書籍一覧ではタブ切り替えがないため、入塾の流れパネルを常に表示（style.css の .admission-tab-panel { display: none } を上書き） */
.book-list__enrollment-wrap .admission-tab-panel {
  display: block;
  background: transparent;
  padding: 0;
}

/* ========== 入塾までの流れ（カリキュラム固定ページ・TOP 入塾案内タブ内） ========== */
/* TOP の入塾案内タブ「入塾の流れ」で template-parts/section-enrollment-flow を表示する場合の余白調整 */
.admission-tab-panel__flow .l-container{
  width: 100%;
}

.admission-tab-panel__flow .section-page2 {
  padding-top: 0;
  padding-bottom: 32px;
}

.admission-tab-panel__flow .section--curriculum-flow .section-heading:first-child {
  margin-top: 0;
}

.section--curriculum-flow .section-heading {
  margin-bottom: 32px;
}

.flow-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  max-width: 960px;
  margin: 0 auto 40px;
}

.flow-step {
  flex: 1 1 0;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.flow-step__header {
  background-color: var(--color-main-dark);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 8px;
  letter-spacing: 0.05em;
}

.flow-step__body {
  padding: 0;
  display: block;
}

.flow-step__image {
  width: 100%;
  line-height: 0;
}

.flow-step__image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.flow-step__content {
  padding: 16px 18px 20px;
}

.flow-step__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

/* SP のみ改行する <br class="sp_only">：PC では非表示 */
.sp_only {
  display: none !important;
}

.flow-step__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* ステップ間：黄色の三角矢印（右向き） */
.flow-steps__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-self: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFC107' d='M10 6l8 6-8 6V6z'/%3E%3C/svg%3E") center / 40px 40px no-repeat;
  margin: 0 8px;
}

.flow-cta {
  text-align: center;
  margin-top: 0;
}

.link-btn--flow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px 16px;
  background-color: var(--color-main);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.link-btn--flow:hover {
  background-color: var(--color-main-dark);
  color: #ffffff;
  opacity: 0.98;
}

.link-btn--flow .link-btn__icon {
  color: #ffffff;
}

/* 入塾までの流れ：SP 横長カード（パネル縦積み・各パネル内は画像左・テキスト右） */
@media (max-width: 768px) {

  .section--curriculum-flow .section-heading {
    margin-bottom: 24px;
  }

  .section--curriculum-flow {
    overflow-x: hidden;
  }

  .flow-steps {
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    max-width: 100%;
  }

  .flow-steps__arrow {
    rotate: 90deg;
  }

  .flow-step {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .flow-step__body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-width: 0;
  }

  .flow-step__image {
    width: 40%;
    min-width: 0;
    flex-shrink: 0;
  }

  .flow-step__image img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    vertical-align: top;
  }

  .flow-step__content {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .flow-step__title {
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  /* SP では .sp_only の改行を表示 */
  .sp_only {
    display: block !important;
    height: 0;
    overflow: hidden;
  }

  .flow-step__desc {
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .link-btn--flow {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px 16px;
    font-size: 0.9375rem;
  }
}

/* カリキュラムポップアップモーダル */
.curriculum-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.curriculum-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.curriculum-modal__overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.curriculum-modal__box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.curriculum-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.curriculum-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.curriculum-modal__body {
  padding: 16px 16px 20px;
  overflow-y: auto;
  max-height: 80vh;
}

.curriculum-popup-source {
  display: none !important;
}

/* ポップアップ内：2つの表を横並び（左に1～18、右に19～36） */
.curriculum-modal .curriculum-popup-tables-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.curriculum-modal .curriculum-popup-tables-wrap .curriculum-popup-table {
  flex: 1;
  min-width: 280px;
}

/* ポップアップ内：カリキュラム表（セル高さを詰めて全体が見えるように） */
.curriculum-modal .curriculum-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.35;
}

.curriculum-modal .curriculum-popup-table th,
.curriculum-modal .curriculum-popup-table td {
  padding: 4px 8px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
}

.curriculum-modal .curriculum-popup-table .curriculum-popup-table__num {
  width: 50px;
  min-width: 40px;
  background-color: #f0f0f0;
  font-weight: 700;
  font-size: 0.8rem;
  color: #333;
  text-align: center;
}

.curriculum-modal .curriculum-popup-table td:last-child {
  background: #fff;
  color: #333;
}

/* 2列レイアウト（2枚目添付イメージ：左に1-18、右に19-36） */
.curriculum-modal .curriculum-popup-table--two-cols {
  table-layout: fixed;
}
.curriculum-modal .curriculum-popup-table--two-cols td {
  width: 50%;
  vertical-align: top;
  padding: 4px 8px;
}
.curriculum-modal .curriculum-popup-table--two-cols .curriculum-popup-table__num {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  margin-right: 6px;
  background-color: #e8e8e8;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
}

.curriculum-modal .curriculum-popup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.curriculum-modal .curriculum-popup-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
}

.curriculum-modal .curriculum-popup-list__num {
  flex-shrink: 0;
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
}

.curriculum-modal .curriculum-popup-list__text {
  color: #333;
}

/* ========== よくある質問（page-faq.php） ========== */
.faq-page {
  padding-top: 32px;
  padding-bottom: 48px;
}

.faq-page__title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.4;
}

.faq-page__underline {
  display: block;
  width: 150px;
  height: 6px;
  margin: 0 auto 32px;
  background-color: var(--color-main-dark);
}

.faq-page__body {
  margin: 0;
}

.faq-page__empty {
  padding: 24px;
  text-align: center;
  color: var(--color-muted);
  background: #f5f5f5;
  border: 1px dashed #ddd;
}

.faq-page__empty code {
  padding: 2px 6px;
  font-size: 0.9em;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.faq-nav {
  margin-bottom: 40px;
}

.faq-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 20px auto 40px;
}

.faq-nav__link {
    display: block;
    padding: 8px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-main-dark);
    text-decoration: none;
    background: #fff;
    border: 2px solid var(--color-main-dark);
    border-radius: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-nav__link:hover,
.faq-nav__link:focus {
  border-color: var(--color-main-dark);
  background-color: #fafafa;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section:last-child {
  margin-bottom: 0;
}

.faq-section__title {
    margin: 0px 0 30px;
    padding-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-main-dark);
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border: 5px solid var(--info-banner-bg1);
  margin: 32px auto;
}

.faq-item:last-child {
  border-bottom: 5px solid var(--info-banner-bg1);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-item__trigger:hover {
  background-color: #f9f9f9;
}

.faq-item__q-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.faq-item__q-text {
  flex: 1;
  min-width: 0;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--color-text);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform 0.25s ease;
}

.faq-item__icon::before {
  width: 14px;
  height: 2px;
  margin-left: -7px;
  margin-top: -1px;
}

.faq-item__icon::after {
  width: 2px;
  height: 14px;
  margin-left: -1px;
  margin-top: -7px;
}

.faq-item.is-open .faq-item__icon::after {
  transform: scaleY(0);
}

.faq-item__a {
  max-height: 0;
  padding: 0 20px 0 52px;
  background: #fafafa;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__a {
  max-height: 2000px;
}

.faq-item__a-inner {
  display: block;
  padding: 12px 0 20px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .faq-item {
    margin: 14px auto;
  }

  .faq-page__title {
    font-size: 1.375rem;
  }

  .faq-nav__list {
    gap: 8px;
  }

  .faq-nav__link {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  .faq-item__trigger {
    padding: 14px 16px;
    gap: 12px;
    font-size: 0.9375rem;
  }

  .faq-item__q-mark {
    width: 28px;
    height: 28px;
  }

  .faq-item__a {
    padding-left: 44px;
    padding-right: 16px;
  }

  .faq-item__a-inner {
    padding: 10px 0 16px;
    font-size: 0.875rem;
  }
}

/* ========== 合格実績（.result-section 内で Flex 4 列・テンプレート不要） ========== */
.result-section .result-cards,
.result-page-block .result-cards {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.result-section .result-card,
.result-page-block .result-card {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.result-section .result-card__list.result-card__list--cols4,
.result-page-block .result-card__list.result-card__list--cols4 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
}

.result-section .result-card__list--cols4 .result-card__item,
.result-page-block .result-card__list--cols4 .result-card__item {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: calc((100% - 30px) / 4) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  background-color: var(--color-bg5) !important;
}

.result-section .result-card__list--cols4 .result-card__school,
.result-page-block .result-card__list--cols4 .result-card__school {
  flex: 1 !important;
  min-width: 0 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  box-sizing: border-box !important;
  color: var(--color-text) !important;
}

.result-section .result-card__list--cols4 .result-card__count,
.result-page-block .result-card__list--cols4 .result-card__count {
  flex-shrink: 0 !important;
  margin-left: 8px !important;
  color: var(--color-main) !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .result-section .result-card__list--cols4 .result-card__item,
  .result-page-block .result-card__list--cols4 .result-card__item {
    width: calc((100% - 10px) / 2) !important;
    padding: 8px 10px !important;
  }
}

/* 以下：page-result 以外で合格実績ブロックを貼った場合のフォールバック */
/* 合格実績ブロック内はすべて横書き（縦書き・1列化の継承を打ち消す） */
.result-section,
.result-section *,
.page-article__content .result-card__list--cols4,
.page-article__content .result-card__list--cols4 *,
.entry-content .result-card__list--cols4,
.entry-content .result-card__list--cols4 * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* 合格実績ブロックを含む本文エリアで横スクロール防止 */
.page-article__content:has(.result-card__list--cols4),
.entry-content:has(.result-card__list--cols4) {
  overflow-x: hidden;
  max-width: 100%;
}

/* 横スクロール防止・カードを1列に */
.page-article__content .result-cards:has(.result-card__list--cols4),
.entry-content .result-cards:has(.result-card__list--cols4) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.page-article__content .result-cards:has(.result-card__list--cols4) .result-card,
.entry-content .result-cards:has(.result-card__list--cols4) .result-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* ※ 4カラムは .result-page-block 内の Flex のみ使用。
   .entry-content の Grid 指定は削除済み（競合で Flex が効かなくなるため）。 */

/* ========== 書籍一覧（固定ページ テンプレート名: 書籍一覧） ========== */
.l-main--books {
  padding-bottom: 0;
}

.book-list {
  margin-top: 40px;
  padding-bottom: 0;
}

.book-list__tabs {
  margin-bottom: 0;
}

.book-list__tab-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.book-list__tab-list li {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #216258;
  border-radius: 0;
}

.book-list__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #216258;
  background-color: #fff;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.book-list__tab:hover {
  background-color: rgba(33, 98, 88, 0.06);
  color: #216258;
}

.book-list__tab.is-active {
  background-color: #fff;
  color: #216258;
}

.book-list__content {
  margin-top: 60px;
  scroll-margin-top: 100px;
}

.book-list .branch-region__title {
  margin-top: 40px;
  margin-bottom: 22px;
}

.book-list__subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 25px;
    padding: 1px 0 1px 16px;
    border-left: 7px solid var(--color-main-dark2);
}

.book-list__grid + .book-list__subtitle {
  margin-top: 48px;
}

.book-list__lead {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 24px;
}

.book-list__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 20px;
  align-items: start;
  margin: 50px auto 60px;
}

.book-list__grid--cols2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.book-list__grid--col1 {
  grid-template-columns: 1fr;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.book-list__grid--cols3 {
  grid-template-columns: repeat(3, 330px);
  justify-content: start;
  gap: 34px 30px;
}

.book-list__grid--cols3-center {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.book-list__grid--cols3-200 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.book-list__grid--cols3 .book-list__img {
  max-width: 330px;
}

.book-list__grid--cols4-5 {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.book-list__grid--cols4-5 .book-list__item:nth-child(5) {
  grid-column: 1 / 2;
  justify-self: start;
}

.book-list__item {
  min-width: 0;
}

.book-list__figure {
  margin: 0;
}

.book-list__img-link {
  display: block;
  text-decoration: none;
}

.book-list__img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  margin: 0 auto;
}

.book-list__caption {
  margin: 12px 0 0;
}

.book-list__caption-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 200px;
  height: 50px;
  font-size: 0.9375rem;
  line-height: 1.1;
  color: #000;
  padding: 10px 20px;
  text-align: center;
  background-color: var(--info-banner-bg1);
  border-radius: 0;
  text-decoration: none;
  margin: 0 auto;
}

.book-list__cta-wrap {
  text-align: center;
  margin: 40px 0 80px;
}

.book-list__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 20px;
  min-height: 75px;
  box-sizing: border-box;
  font-size: 1.25rem;
  font-weight: 600;
  color: #216258;
  background-color: #fff;
  border: 2px solid #216258;
  border-radius: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.book-list__cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: #216258;
  transition: width 0.35s ease;
  z-index: 0;
}

.book-list__cta .book-list__cta-amazon,
.book-list__cta .book-list__cta__text,
.book-list__cta .book-list__cta__icon {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, filter 0.3s ease;
}

.book-list__cta-amazon {
  flex-shrink: 0;
  width: 56px;
  height: 24px;
  object-fit: contain;
}

.book-list__cta__text {
  white-space: nowrap;
}

.book-list__cta__text br.sp_only {
  display: none;
}

.book-list__cta__icon {
  font-size: 1rem;
  line-height: 1;
}

.book-list__cta:hover {
  color: #fff;
}

.book-list__cta:hover::before {
  width: 100%;
}

.book-list__cta:hover .book-list__cta__text,
.book-list__cta:hover .book-list__cta__icon {
  color: #fff;
}

.book-list__cta:hover .book-list__cta-amazon {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .book-list__tabs {
    position: relative;
  }

  .book-list__tabs::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
  }

  .book-list__tabs::before {
    content: "← スライド →";
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
  }

  .book-list__tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4vw;
    padding: 0 4vw;
    gap: 10px;
  }

  .book-list__tab-list::-webkit-scrollbar {
    display: none;
  }

  .book-list__tab-list li {
    flex: 0 0 auto;
    width: auto;
  }

  .book-list__tab {
    width: auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 8px;

  }

  .book-list .branch-region__title {
    margin-top: 28px;
  }

  .book-list__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .book-list__grid--cols2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .book-list__grid--cols2 .book-list__img {
    max-width: 150px;
  }

  .book-list__grid--col1 {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: none;
  }

  .book-list__grid--cols3-200 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .book-list__grid--cols3-200 .book-list__item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .book-list__grid--cols3-200 .book-list__img {
    max-width: 150px;
  }

  .book-list__grid--cols4-5 .book-list__item:nth-child(5) {
    grid-column: auto;
    justify-self: auto;
  }

  .book-list__grid--cols3 {
    justify-content: stretch;
    margin-left: auto;
    margin-right: auto;
  }

  .book-list__grid--cols3 .book-list__img {
    max-width: 100%;
  }

  .book-list__caption {
    margin-top: 8px;
  }

  .book-list__caption-link {
    font-size: 0.8125rem;
    width: 100%;
    height: 50px;
  }

  .book-list__cta {
    font-size: 0.8125rem;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 16px;
    min-height: auto;
  }

  .book-list__cta__text {
    white-space: normal;
    text-align: center;
  }

  .book-list__cta__text br.sp_only {
    display: block;
  }

  .book-list__cta-amazon {
    width: 48px;
    height: 20px;
  }
}

/* ========== 書籍詳細（固定ページ テンプレート名: 書籍一覧・書籍詳細） ========== */
.book-detail {
  margin-top: 20px;
  padding-bottom: 60px;
}

/* 書籍詳細：タイトル＋メリットの中央揃えブロック */
.book-detail__title___wrapper {
  padding: 48px 90px;
  text-align: center;
  margin-bottom: 80px;
  border: 5px solid var(--info-banner-bg1);
  background-color: var(--color-bg2);
}

.book-detail__title___wrapper .curriculum-copy {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main-dark2);
  line-height: 1.5;
  margin: 0 0 36px;
}

.book-detail__title___wrapper .book-detail__title___wrapper__intro{
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 600;
}

.book-detail__title___wrapper .book-detail__benefits {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: max-content;
  text-align: left;
}

.book-detail__title___wrapper .book-detail__benefits li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 600;
}

.book-detail__title___wrapper .book-detail__benefits li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: 1em;
  vertical-align: middle;
  line-height: 1.8;
}

.book-detail__title___wrapper .book-detail__benefits li:last-child {
  margin-bottom: 0;
}

/* 資料請求・お問い合わせページ上部：水色背景・緑枠 */
.book-detail__title___wrapper--contact {
  background-color: #e8f4f8;
  border: 3px solid var(--color-main);
  margin-bottom: 40px;
}

.book-detail__title___wrapper--contact .book-detail__title___wrapper__intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 24px;
}

.book-detail__title___wrapper--contact .book-detail__benefits {
  margin-bottom: 28px;
}

.book-detail__title___wrapper--contact a {
  color: #0398E3;
  text-decoration: underline;
}

.book-detail__title___wrapper--contact a:hover {
  color: #015CAC;
}

.contact-page__cta-wrap {
  margin: 0;
}

.contact-page__cta-wrap .link-btn {
  margin-left: auto;
  margin-right: auto;
  color: #333;
  border-color: var(--color-main-dark2);
}

.contact-page__cta-wrap .link-btn .link-btn__text,
.contact-page__cta-wrap .link-btn .link-btn__icon {
  color: #333;
}

.contact-page__cta-wrap .link-btn:hover {
  border-color: var(--color-main-dark);
  color: #333;
}

.contact-page__cta-wrap .link-btn:hover .link-btn__text,
.contact-page__cta-wrap .link-btn:hover .link-btn__icon {
  color: #333;
}

@media (max-width: 768px) {
  .book-detail__title___wrapper--contact {
    padding: 40px 24px 40px;
  }
}

/* 資料請求・お問い合わせページ：入室テストについて */
.contact-page__exam-section {
  margin-top: 48px;
}

.contact-page__exam-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.contact-page__exam-table-wrap {
  overflow-x: auto;
  margin: 40px auto;
}

.contact-page__exam-table {
  width: 100%;
  max-width: 980px;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0 auto;
}

.contact-page__exam-table th,
.contact-page__exam-table td {
    padding: 12px 16px;
    border: 1px solid #C0DBD0;
    vertical-align: top;
    text-align: center;
}

.contact-page__exam-table thead th {
    background-color: #EDF4F1;
    font-weight: 700;
    color: var(--color-main-dark);
}

.contact-page__exam-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.contact-page__exam-table tbody tr:nth-child(even) {
  background-color: #fff;
}

.contact-page__exam-notes {
    list-style: disc;
    margin: 0 auto;
    padding-left: 1.4em;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: left;
    max-width: 980px;
}

.contact-page__exam-notes li {
  margin-bottom: 8px;
}

.contact-page__exam-notes li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .contact-page__exam-table th,
  .contact-page__exam-table td {
    padding: 10px 12px;
    font-size: 0.875rem;
  }
}

.book-detail__section {
  margin-top: 50px;
  padding-top: 40px;
}

/* 404 */
.error-404-box {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px;
  border: 5px solid var(--info-banner-bg1);
  background-color: #ffffff;
  text-align: center;
}

.error-404-box__title {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-main-dark);
}

.error-404-box__text {
  margin: 20px 0 0;
  line-height: 1.9;
}

.error-404-box__actions {
  margin-top: 28px;
}

.book-detail__section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.book-detail__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 28px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--color-main-dark2);
}

.book-detail__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.book-detail__two-col--reverse {
  grid-template-columns: 1fr 300px;
}

.book-detail__text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 1em;
}

.book-detail__text p:last-child {
  margin-bottom: 0;
}

.book-detail__text p.book-detail__emtext{
  font-size: 1.125rem;
  font-weight: 600;
}
.book-detail__figure {
  margin: 0;
  text-align: center;
}

.book-detail__img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eee;
}

.book-detail__caption {
  font-size: 0.8125rem;
  color: #666;
  margin-top: 12px;
  line-height: 1.5;
}

.book-detail__feature {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.book-detail__feature:last-child {
  margin-bottom: 0;
}

.book-detail__feature-media .book-detail__img {
  width: 100%;
}

.book-detail__feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
}

.book-detail__feature-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 1em;
}

.book-detail__feature-content p:last-child {
  margin-bottom: 0;
}

.book-detail__box {
  padding: 20px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
}

.book-detail__box--blue {
  background-color: #e8f4f3;
  border-left: 4px solid var(--color-main-dark2);
}

.book-detail__box p {
  margin: 0;
}

.book-detail__section--cta .book-list__cta-wrap {
  margin-bottom: 16px;
}

.book-detail__note {
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
  text-align: center;
}

.book-detail__note-link {
  color: var(--color-main);
  text-decoration: underline;
}

.book-detail__note-link:hover {
  color: var(--color-main-dark);
}

.book-detail__related {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1080px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 50px;
    width: 92%;
}

.book-detail__related-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 2.5em 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.book-detail__related-item:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.book-detail__related-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  font-size: 1rem;
}

.book-detail__related-item--1 { background-color: #E75495; }
.book-detail__related-item--2 { background-color: #0398E3; }
.book-detail__related-item--3 { background-color: #EF8539; }
.book-detail__related-item--4 { background-color: #8FC62E; }
.book-detail__related-item--5 { background-color: #7C509C; }
.book-detail__related-item--6 { background-color: #46BAB9; }
.book-detail__related-item--7 { background-color: #D49339; }
.book-detail__related-item--8 { background-color: #015CAC; }
.book-detail__related-item--9 { background-color: #E75495; }

@media (max-width: 768px) {
  .book-detail__two-col,
  .book-detail__two-col--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .book-detail__two-col--reverse {
    grid-template-columns: 1fr;
  }

  .book-detail__feature {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .book-detail__related {
    grid-template-columns: 1fr;
  }

  .book-detail__title___wrapper {
    padding: 40px 24px 40px;
  }

  .book-detail__title___wrapper .curriculum-copy {
    font-size: 1.25rem;
  }
}

/* ========== お問い合わせフォーム（Contact Form 7 .cf-table） ========== */

.wpcf7-form .cf-table {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 0;
}

.wpcf7-form .cf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.wpcf7-form .cf-row:last-child {
  border-bottom: none;
}

/* 必須：左列は薄い緑背景 */
.wpcf7-form .cf-row.required .cf-label {
  background-color: #eaf5ee;
}

/* 任意：左列も薄い緑（統一） */
.wpcf7-form .cf-row:not(.required) .cf-label {
  background-color: #eaf5ee;
}

.wpcf7-form .cf-label {
  width: 38%;
  min-width: 140px;
  padding: 8px 12px;
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
  border-right: 1px solid #ddd;
}

/* 必須バッジ：緑 */
.wpcf7-form .cf-row.required .cf-label p::before {
  content: "必須";
  display: inline-block;
  background-color: var(--color-main);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 0;
}

/* 任意バッジ：ベージュ・オレンジ系 */
.wpcf7-form .cf-row:not(.required) .cf-label p::before {
  content: "任意";
  display: inline-block;
  background-color: #fff;
  color: var(--color-main);
  font-size: 0.75rem;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 0;
  border: 1px solid var(--color-main);
}

.wpcf7-form .cf-input {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.9375rem;
  background-color: #fff;
  box-sizing: border-box;
}

.wpcf7-form .cf-input p {
  margin: 0 0 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.wpcf7-form .cf-input p:last-child {
  margin-bottom: 0;
}

.wpcf7-form .cf-input input[type="text"],
.wpcf7-form .cf-input input[type="email"],
.wpcf7-form .cf-input input[type="tel"],
.wpcf7-form .cf-input select,
.wpcf7-form .cf-input textarea {
  background: #fff;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  transition: 0.2s ease;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wpcf7-form .cf-input input::placeholder,
.wpcf7-form .cf-input textarea::placeholder {
  color: #aaa;
}

.wpcf7-form .cf-input textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-form .cf-input .wpcf7-list-item {
  display: block;
  margin-bottom: 8px;
}

.wpcf7-form .cf-input .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

.wpcf7-form .cf-input .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #333;
}

.wpcf7-form .cf-input input[type="radio"],
.wpcf7-form .cf-input input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    align-self: center;
    vertical-align: middle;
    transform: scale(1.3);
    margin-right: 8px;
}

.cf-input input:focus,
.cf-input select:focus,
.cf-input textarea:focus {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.wpcf7-form .cf-input .wpcf7-list-item-label {
  line-height: 1.4;
  align-self: center;
}

/* 申し込み・確認ボタン */
.wpcf7-form p:has(.wpcf7-submit),
.wpcf7-form p:has(.wpcf7-previous) {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 12px;
}

.wpcf7-form p:has(.wpcf7-previous) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.wpcf7-form .wpcf7-submit {
    display: inline-block;
    padding: 14px 84px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--color-main-dark);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    width: 360px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.wpcf7-form .wpcf7-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.wpcf7-form .wpcf7-submit.has-spinner {
  position: relative;
}

.wpcf7 form .wpcf7-response-output {
    border: none;
}

.wpcf7-form p:has(.wpcf7-submit) + p,
.wpcf7-form .wpcf7-response-output {
  font-size: 0.8125rem;
  color: #666;
  text-align: center;
  margin-top: 8px;
}
.wpcf7-form-control-wrap{
    width: 100%;
    margin: 5px auto;
    max-width: 420px;
}
.wpcf7-form .cf-input > p + p {
  font-size: 0.8125rem;
  color: #666;
  margin-top: 8px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}


@media (max-width: 768px) {
  .wpcf7-form .cf-row {
    flex-direction: column;
    padding: 0;
    align-items: start;
  }

  /* SP：必須・任意ラベルの左端に余白（左右同じ） */
  .wpcf7-form .cf-label {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    font-size: 0.875rem;
  }
  
  .wpcf7-form .cf-label p{
    margin: 5px 0;
  }
  
  .wpcf7-form-control-wrap {
    width: 100%;
    margin: 10px 0;
  }

  .wpcf7-form .cf-input {
    padding: 10px 20px;
    align-items: flex-start;
    width: 100%;
  }

  .wpcf7-form .cf-input p {
    align-items: flex-start;
  }

  /* チェックボックス・ラジオ：左寄せ。長いラベルは折り返す */
  .wpcf7-form .cf-input .wpcf7-list-item {
    margin-bottom: 8px;
    min-width: 0;
    max-width: 100%;
  }

  .wpcf7-form .cf-input .wpcf7-list-item label {
    align-items: center;
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
  }

  .wpcf7-form .cf-input .wpcf7-list-item-label {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .wpcf7-form .cf-input input[type="text"],
  .wpcf7-form .cf-input input[type="email"],
  .wpcf7-form .cf-input input[type="tel"],
  .wpcf7-form .cf-input select,
  .wpcf7-form .cf-input textarea {
    max-width: 100%;
    padding: 15px;
  }
}

/* ========== 会社概要ページ（固定ページ本文で .company-outline を使用） ========== */
.company-outline {
  margin-bottom: 2em;
}

.company-outline__intro {
  margin-bottom: 2.5em;
}

.company-outline__block {
  margin-bottom: 2em;
}

.company-outline__block:last-child {
  margin-bottom: 0;
}

.company-outline__block-title {
  margin: 0 0 0.75em;
  padding-bottom: 0.35em;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-main, #009260);
  color: var(--color-text, #000);
}

.company-outline__block-body {
  line-height: 1.8;
}

.company-outline__block-body p {
  margin: 0 0 1em;
}

.company-outline__block-body p:last-child {
  margin-bottom: 0;
}

.company-outline__data {
  overflow-x: auto;
}

.company-outline__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.company-outline__row {
  border-bottom: 1px solid var(--color-border, #d5d5d5);
}

.company-outline__row:first-child {
  border-top: 1px solid var(--color-border, #d5d5d5);
}

.company-outline__label {
  width: 40%;
  max-width: 200px;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  background-color: var(--info-banner-bg1);
  color: var(--color-text, #000);
}

.company-outline__value {
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .company-outline__label {
    width: 35%;
    max-width: none;
    padding: 10px 12px;
    font-size: 0.875rem;
  }
  .company-outline__value {
    padding: 10px 12px;
    font-size: 0.875rem;
  }
}

