/* =========================================
   juku.css
   塾別ページ専用CSS
   対象: /juku/ 配下の全ページ
   依存: course-redesign.css（ベーススタイル）
   ========================================= */

/* -----------------------------------------
   Hub: 塾カードグリッド
   ----------------------------------------- */
.jk-hub-intro {
  font-size: 16px;
  line-height: 1.9;
  margin: 32px 0 40px;
  text-align: center;
}

.jk-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.jk-hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--cr-text);
  transition: box-shadow 0.25s, transform 0.25s;
  border-top: 4px solid var(--cr-navy);
}

.jk-hub-card:hover {
  box-shadow: 0 8px 24px rgba(27, 43, 101, 0.12);
  transform: translateY(-4px);
}

.jk-hub-card__header {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--cr-border);
}

.und_wrap.cr-page .jk-hub-card__name {
  font-size: 20px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1.5;
}

.jk-hub-card__body {
  padding: 20px 24px;
  flex: 1;
}

.jk-hub-card__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--cr-text-light);
  margin: 0 0 16px;
}

.jk-hub-card__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jk-hub-card__links li {
  border-top: 1px solid var(--cr-border);
}

.jk-hub-card__links a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: bold;
  color: var(--cr-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.jk-hub-card__links a::after {
  content: " →";
}

.jk-hub-card__links a:hover {
  color: var(--cr-red);
}

/* -----------------------------------------
   Sub pages: 目次
   ----------------------------------------- */
.jk-toc {
  background: var(--cr-bg-alt);
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
}

.und_wrap.cr-page .jk-toc__title {
  font-size: 16px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border: none !important;
  border-bottom: 2px solid var(--cr-navy) !important;
  background: none !important;
  box-shadow: none !important;
}

.jk-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.jk-toc__list li {
  counter-increment: toc;
  border-bottom: 1px solid var(--cr-border);
}

.jk-toc__list li:last-child {
  border-bottom: none;
}

.jk-toc__list a {
  display: block;
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 15px;
  color: var(--cr-text);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.6;
}

.jk-toc__list a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: var(--cr-navy);
}

.jk-toc__list a:hover {
  color: var(--cr-navy);
}

/* -----------------------------------------
   Sub pages: セクション見出し（h2相当）
   ----------------------------------------- */
.und_wrap.cr-page .jk-section-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 0 24px !important;
  padding: 16px 0 !important;
  text-align: left !important;
  border-bottom: 3px solid var(--cr-navy) !important;
  background: none !important;
  position: static !important;
  left: auto !important;
  transform: none !important;
  display: block !important;
  line-height: 1.5 !important;
}

/* -----------------------------------------
   Sub pages: 塾の概要ボックス
   ----------------------------------------- */
.jk-overview {
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0;
}

.jk-overview__header {
  padding: 16px 24px;
  background: var(--cr-navy);
  color: #fff;
}

.und_wrap.cr-page .jk-overview__header h3 {
  color: #fff !important;
  font-size: 18px;
  font-weight: bold;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.jk-overview__body {
  padding: 24px;
}

.jk-overview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.jk-overview__table th,
.jk-overview__table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cr-border);
  text-align: left;
  line-height: 1.7;
  vertical-align: top;
}

.jk-overview__table th {
  background: var(--cr-bg-alt);
  font-weight: bold;
  color: var(--cr-navy);
  white-space: nowrap;
  width: 160px;
}

.jk-overview__table tr:last-child th,
.jk-overview__table tr:last-child td {
  border-bottom: none;
}

/* -----------------------------------------
   Sub pages: 特徴カード
   ----------------------------------------- */
.jk-features {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}

.jk-feature-card {
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  border-left: 4px solid var(--cr-navy);
  padding: 24px 24px 24px 28px;
}

.und_wrap.cr-page .jk-feature-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1.6;
}

.jk-feature-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--cr-text);
  margin: 0;
}

/* -----------------------------------------
   Sub pages: ポイント（番号付きリスト）
   ----------------------------------------- */
.jk-points {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  counter-reset: point;
}

.jk-points__item {
  counter-increment: point;
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  padding: 24px 24px 24px 72px;
  margin-bottom: 16px;
  position: relative;
}

.jk-points__item::before {
  content: counter(point);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 32px;
  height: 32px;
  background: var(--cr-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
}

.und_wrap.cr-page .jk-points__title {
  font-size: 17px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1.5;
}

.jk-points__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--cr-text);
  margin: 0;
}

/* -----------------------------------------
   Sub pages: 併用メリットボックス
   ----------------------------------------- */
.jk-combo {
  background: linear-gradient(135deg, #f0f3fa 0%, #fff 100%);
  border: 2px solid var(--cr-navy);
  border-radius: 10px;
  padding: 32px;
  margin: 40px 0;
}

.und_wrap.cr-page .jk-combo__title {
  font-size: 20px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  text-align: center;
}

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

.jk-combo__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cr-text);
}

.jk-combo__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cr-navy);
  font-weight: bold;
  font-size: 16px;
}

.jk-combo__note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cr-border);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  color: var(--cr-text);
}

/* -----------------------------------------
   Sub pages: 悩みカテゴリグリッド
   ----------------------------------------- */
.jk-worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.jk-worry-card {
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  padding: 24px;
  border-top: 3px solid var(--cr-red);
}

.und_wrap.cr-page .jk-worry-card h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--cr-text) !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1.5;
}

.jk-worry-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--cr-text-light);
  margin: 0 0 12px;
}

.jk-worry-card .jk-solution {
  font-size: 14px;
  line-height: 1.8;
  color: var(--cr-navy);
  font-weight: bold;
  padding-top: 12px;
  border-top: 1px solid var(--cr-border);
  margin: 0;
}

.jk-worry-card .jk-solution::before {
  content: "→ 個別の会なら：";
  display: block;
  font-size: 12px;
  color: var(--cr-red);
  font-weight: bold;
  margin-bottom: 4px;
}

/* -----------------------------------------
   Sub pages: 本文テキスト
   ----------------------------------------- */
.jk-text {
  font-size: 15px;
  line-height: 1.9;
  margin: 16px 0;
  color: var(--cr-text);
}

.jk-text--emphasis {
  font-weight: bold;
  color: var(--cr-navy);
}

/* -----------------------------------------
   Sub pages: 関連ページリンク
   ----------------------------------------- */
.jk-related {
  background: var(--cr-bg-alt);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 40px 0;
}

.und_wrap.cr-page .jk-related__title {
  font-size: 16px;
  font-weight: bold;
  color: var(--cr-navy) !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.jk-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jk-related__list a {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  color: var(--cr-navy);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.jk-related__list a:hover {
  background: var(--cr-navy);
  color: #fff;
  border-color: var(--cr-navy);
}

/* -----------------------------------------
   Sub pages: パンくず補助（塾名バッジ）
   ----------------------------------------- */
.jk-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--cr-navy);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* =========================================
   Responsive: Tablet (768px)
   ========================================= */
@media (max-width: 768px) {
  .jk-hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .jk-hub-card__header {
    padding: 20px 20px 12px;
  }

  .und_wrap.cr-page .jk-hub-card__name {
    font-size: 18px;
  }

  .jk-hub-card__body {
    padding: 16px 20px;
  }

  .und_wrap.cr-page .jk-section-title {
    font-size: 20px;
  }

  .jk-overview__table th {
    width: 120px;
  }

  .jk-worry-grid {
    grid-template-columns: 1fr;
  }

  .jk-combo {
    padding: 24px;
  }

  .jk-points__item {
    padding-left: 64px;
  }
}

/* =========================================
   Responsive: Mobile (480px)
   ========================================= */
@media (max-width: 480px) {
  .jk-hub-grid {
    grid-template-columns: 1fr;
  }

  .und_wrap.cr-page .jk-hub-card__name {
    font-size: 17px;
  }

  .jk-hub-intro {
    font-size: 14px;
    text-align: left;
  }

  .und_wrap.cr-page .jk-section-title {
    font-size: 18px;
  }

  .jk-overview__table th,
  .jk-overview__table td {
    display: block;
    width: 100%;
    padding: 8px 12px;
  }

  .jk-overview__table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .jk-toc {
    padding: 20px;
  }

  .jk-toc__list a {
    font-size: 14px;
  }

  .jk-feature-card {
    padding: 20px 20px 20px 24px;
  }

  .jk-points__item {
    padding: 20px 16px 20px 56px;
  }

  .jk-points__item::before {
    left: 16px;
    top: 20px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .jk-combo {
    padding: 20px;
  }

  .und_wrap.cr-page .jk-combo__title {
    font-size: 17px;
  }

  .jk-related__list {
    flex-direction: column;
  }

  .jk-related__list a {
    text-align: center;
  }
}
