/* ==========================================================================
   type-guide.css｜① 案内ページ共通CSS（第2層・v1.0）
   対象：コース・料金・医学部・自習室・問い合わせ・塾長紹介・指導事例・手紙など
   2026-11-21 新 style.css（v4.0）を土台に新規作成。
   - クラス名の頭文字は gd-（guide）で統一し、style.css（第1層）および
     ページ専用CSS（第3層：course-detail.css 等）と重複させない。
   - 地の色は白（#ffffff）。淡い帯（.band--stone / .band--cream / .band--slate）は
     話題が切り替わる箇所にだけ使う。
   - 幅は .wrap（1100px）と .wrap.wrap--narrow（本文760px）を使い分ける。
   ========================================================================== */

/* ===== 案内ページの冒頭（ヒーロー） ===== */
.gd-hero {
  background: var(--bg-white);
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}

.gd-hero-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.gd-hero p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text);
}

.gd-hero p:last-child {
  margin-bottom: 0;
}

.gd-hero-highlight {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-left: 3px solid var(--navy);
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.75;
}

/* ===== ページ内目次 ===== */
.gd-toc {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gd-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.gd-toc li {
  border-top: 1px solid var(--line);
}

.gd-toc li:nth-child(-n+2) {
  border-top: 0;
}

.gd-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}

.gd-toc a:hover,
.gd-toc a:focus-visible {
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gd-toc__num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 1.6em;
}

/* ===== 章・ブロック・小見出し ===== */
.gd-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.gd-section:not(.band) {
  background: var(--bg-white);
}

.gd-section.band {
  padding: 72px 0;
}

.gd-section--tight {
  padding: 56px 0;
}

.gd-section[id],
.gd-block[id] {
  scroll-margin-top: 84px;
}

.gd-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.gd-sec-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.gd-sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 600;
  line-height: 1.48;
  color: var(--navy);
}

.gd-block + .gd-block {
  margin-top: 44px;
}

.gd-wrap-gap {
  margin-top: 32px;
}

.gd-faq-panel {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 28px;
}

.gd-faq-panel .accordion-list {
  border-top: 0;
}

.gd-faq-panel .accordion-item:last-child {
  border-bottom: 0;
}

.gd-faq-link {
  margin-top: 10px;
}

.gd-sub {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

.gd-section p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

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

/* ===== カード・2列グリッド ===== */
.gd-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gd-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.gd-card--surface {
  background: var(--bg-surface);
}

.gd-card h3,
.gd-card h4 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

.gd-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.gd-card p:last-child {
  margin-bottom: 0;
}

/* ===== 箇条書き（チェックリスト・対象者など） ===== */
.gd-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gd-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  border-bottom: 1px solid rgba(6, 40, 82, 0.08);
}

.gd-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gd-list li:first-child {
  padding-top: 0;
}

.gd-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(7px + 0.65em);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.gd-list li:first-child::before {
  top: 0.65em;
}

/* ===== 要点ボックス ===== */
.gd-note {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-left: 3px solid var(--navy);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.gd-note strong {
  color: var(--navy);
}

.gd-note--white {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
}

.gd-note h3,
.gd-note h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

.gd-note p {
  margin: 0 0 8px;
}

.gd-note p:last-child {
  margin-bottom: 0;
}

/* ===== キー・バリュー表（料金表・案内表） ===== */
.gd-kv-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-white);
}

.gd-kv-table th,
.gd-kv-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.8;
}

.gd-kv-table th {
  width: 240px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-surface);
}

.gd-kv-table td {
  color: var(--text);
}

.gd-kv-table td strong {
  color: var(--navy);
}

.gd-price {
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.gd-small {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 段落の注記：.gd-section p・.gd-card p・.gd-note p より優先させる */
.gd-section p.gd-small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* カード内の小見出しラベル：.gd-card p より優先させる（style.css の .item-kicker と同じ見た目） */
.gd-card p.item-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* 冒頭のページ名ラベル：.gd-hero p より優先させる */
.gd-hero p.item-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ===== 2列ブロック（番号付き解説＋写真） ===== */
.gd-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
  margin-top: 16px;
}

.gd-feature--reverse .gd-feature-images {
  order: -1;
}

.gd-feature--align-start {
  align-items: start;
}

.gd-num-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.gd-num-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.gd-num-list li strong {
  display: block;
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

.gd-num-list li p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.gd-feature-images {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gd-feature-images figure {
  margin: 0;
}

.gd-feature-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.gd-feature-img--single {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.gd-feature-images figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===== 段階タイムライン（縦線付き） ===== */
.gd-timeline {
  border-left: 2px solid var(--line-strong);
  padding-left: 22px;
  margin: 18px 0;
}

.gd-timeline h4 {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

.gd-timeline h4:first-child {
  margin-top: 0;
}

.gd-timeline p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.gd-timeline p:last-child {
  margin-bottom: 0;
}

/* ===== リンク群・横帯導線 ===== */
.gd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-top: 22px;
}

.gd-link-strip {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.gd-link-strip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ===== 塾長メッセージ帯（band--cream 内で使う） ===== */
.gd-message {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gd-message h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

.gd-message-body p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--text);
}

.gd-message-body p:last-child {
  margin-bottom: 0;
}

/* ===== 相談案内ブロック（band--slate 等の中で使う） ===== */
.gd-cta {
  text-align: center;
  padding: 8px 0 12px;
}

.gd-cta h2,
.gd-cta h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

.gd-cta p {
  margin: 0 auto 14px;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.gd-cta .cta-actions {
  margin: 22px 0 16px;
}

.gd-cta-sub {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ===== 関連ページ（「あわせてご覧いただけます」） ===== */
.gd-related {
  background: var(--bg-stone);
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.gd-related h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
}

.gd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gd-related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 22px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gd-related-card:hover,
.gd-related-card:focus-visible {
  border-color: var(--navy);
  background: var(--bg-surface);
}

.gd-related-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

.gd-related-card span {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.gd-crosslink {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.gd-crosslink p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

/* ===== レスポンシブ（<= 960px） ===== */
@media (max-width: 960px) {
  .gd-hero {
    padding: 32px 0 28px;
  }

  .gd-section,
  .gd-section.band {
    padding: 52px 0;
  }

  .gd-section--tight {
    padding: 44px 0;
  }

  .gd-toc ol,
  .gd-grid-2,
  .gd-feature,
  .gd-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gd-toc ol {
    gap: 0;
  }

  .gd-toc li:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .gd-feature--reverse .gd-feature-images {
    order: 0;
  }

  .gd-card {
    padding: 20px 18px;
  }

  .gd-faq-panel {
    padding: 4px 18px;
  }

  .gd-related {
    padding: 48px 0;
  }
}

/* ==========================================================================
   v1.1 拡張：スプリット冒頭・スリム目次帯・2列/3列編集グリッド・濃紺パネル
   ========================================================================== */
.gd-hero--split {
  padding: 48px 0 44px;
}

.gd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 44px;
  align-items: center;
}

/* 冒頭の2列の下に続くブロック（contact.php の連絡方法など） */
.gd-hero-grid + .gd-block {
  margin-top: 36px;
}

.gd-hero-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-stone);
  overflow: hidden;
}

.gd-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.gd-hero-sublink {
  margin: 12px 0 0;
  text-align: right;
}

.gd-toc-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.gd-toc-bar-list {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.gd-toc-bar-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0 3px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gd-toc-bar-list a:hover,
.gd-toc-bar-list a:focus-visible {
  color: var(--navy-soft);
  text-decoration: none;
  border-bottom-color: var(--navy);
}

/* 2列エディトリアル・対象＋濃紺環境2列 */
.gd-split-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.gd-split-env {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
}

/* 横罫線3行リスト（脱・3連ボックス） */
.gd-principles-rows {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.gd-principles-rows li {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: 12px 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.gd-principles-rows .gd-principle-title {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

.gd-principles-rows p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.gd-principles-rows p + p {
  margin-top: 10px;
}

/* 相談エリア左揃え見出し＋中央CTA */
.gd-cta--left {
  text-align: left;
}

.gd-cta--left .gd-sec-head--compact {
  margin-bottom: 20px;
}

.gd-cta--left p {
  margin: 0 0 14px;
  max-width: 760px;
}

.gd-cta--left .gd-cta-lead-note {
  margin: 26px 0 0;
  max-width: none;
  text-align: center;
  font-weight: 500;
}

.gd-cta--left .gd-cta-sub {
  max-width: none;
  text-align: center;
}

.gd-cta h3.gd-cta-title {
  margin: 0 0 12px;
  font-size: 20px;
  text-align: center;
}

.gd-cta--left p.gd-cta-text {
  margin: 0 auto 14px;
  max-width: 680px;
  text-align: center;
}

/* 濃紺の重厚パネル（学習環境・専門性強調） */
.gd-navy-panel {
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #ffffff;
  border: 1px solid var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 32px rgba(6, 40, 82, 0.12);
}

.gd-navy-panel .gd-sub {
  color: #ffffff;
  margin-bottom: 14px;
}

.gd-navy-panel p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14.5px;
  line-height: 1.85;
}

.gd-navy-panel .gd-actions {
  margin-top: 22px;
  gap: 12px;
}

.gd-btn-light {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.gd-btn-light:hover {
  background: var(--bg-slate);
  border-color: var(--bg-slate);
  color: var(--navy);
}

.gd-btn-light-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.gd-btn-light-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

/* 白地版の関連リンク */
.gd-related--white {
  background: var(--bg-white);
  border-top: 0;
}

.gd-related--white .gd-related-card {
  background: var(--bg-surface);
}

.gd-related--white .gd-related-card:hover,
.gd-related--white .gd-related-card:focus-visible {
  background: var(--bg-white);
}

@media (max-width: 960px) {
  .gd-hero--split {
    padding: 32px 0;
  }

  .gd-hero-grid,
  .gd-split-editorial,
  .gd-split-env,
  .gd-principles-rows li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gd-hero-grid,
  .gd-split-editorial,
  .gd-split-env {
    gap: 24px;
  }

  .gd-hero-sublink {
    text-align: left;
  }

  .gd-hero-photo {
    max-width: 520px;
  }

  /* スマホ幅では冒頭の写真を出さず、すぐ下の内容（連絡手段など）を先に見せる */
  .gd-hero-photo--pc-only {
    display: none;
  }

  .gd-toc-bar-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .gd-navy-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .gd-feature-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 580px;
    margin: 0 auto;
  }
}

/* ===== レスポンシブ（<= 600px） ===== */
@media (max-width: 600px) {
  .gd-toc {
    padding: 14px 16px;
  }

  .gd-toc-bar-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gd-btn-light,
  .gd-btn-light-ghost {
    width: 100%;
  }

  .gd-sec-head {
    gap: 10px;
    margin-bottom: 24px;
  }

  .gd-link-strip {
    padding: 16px 18px;
  }

  .gd-kv-table,
  .gd-kv-table tbody,
  .gd-kv-table tr,
  .gd-kv-table th,
  .gd-kv-table td {
    display: block;
    width: 100%;
  }

  .gd-kv-table th {
    padding: 12px 14px 4px;
    border-bottom: none;
    font-size: 13.5px;
  }

  .gd-kv-table td {
    padding: 4px 14px 14px;
    font-size: 14.5px;
  }

  .gd-cta h3.gd-cta-title {
    font-size: 18px;
  }

  .gd-cta--left p.gd-cta-text {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .gd-feature-images {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 340px;
  }
}

/* ==========================================================================
   v1.9 拡張：行長制御・3列カード・メール枠・手順h3・地図枠・写真付きステップカード
   ========================================================================== */
.gd-measure {
  max-width: 760px;
}

.gd-sec-head h2[id] {
  scroll-margin-top: 84px;
}

.gd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gd-card--flex {
  display: flex;
  flex-direction: column;
}

.gd-card-action {
  margin-top: auto;
  padding-top: 16px;
}

.gd-card-action .btn-line-rect,
.gd-card-action .btn-form-rect {
  width: 100%;
  min-width: 0;
  padding: 11px 16px;
  white-space: normal;
  text-align: center;
}

.gd-contact-email {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.gd-section .flow-step h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

.gd-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
}

.gd-map iframe {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
}

.gd-step-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gd-step-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-stone);
  border-bottom: 1px solid var(--line);
}

.gd-step-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.gd-step-card-body {
  padding: 16px 18px 20px;
}

.gd-step-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.gd-step-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.gd-step-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

.gd-section .gd-step-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.gd-cta--left p.gd-cta-privacy {
  margin: 16px auto 0;
  max-width: 680px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .gd-grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gd-grid-3.gd-grid-3--route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .gd-grid-3.gd-grid-3--route {
    grid-template-columns: 1fr;
  }

  .gd-map iframe {
    height: 320px;
  }

  .gd-cta--left p.gd-cta-privacy {
    text-align: left;
  }
}

/* ==========================================================================
   v2.2 拡張：FAQページ向け調整（冒頭注記余白・アンカー余白・番号幅・回答内リンク・2列関連カード）
   ========================================================================== */
.gd-hero .gd-note {
  margin: 20px 0 0;
}

.gd-hero .gd-note p {
  font-size: 14.5px;
  line-height: 1.85;
}

.gd-faq-panel .accordion-item[id] {
  scroll-margin-top: 96px;
}

.gd-faq-panel .faq-question-number {
  min-width: 2.6em;
}

.gd-faq-panel .accordion-body a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gd-faq-panel .accordion-body a:hover {
  color: var(--accent);
}

.gd-faq-panel .accordion-body p.faq-related-link {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.gd-related-grid.gd-related-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .gd-related-grid.gd-related-grid--2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gd-faq-panel .faq-question-number {
    min-width: 2.3em;
  }
}

/* ==========================================================================
   v2.3 拡張：FAQカテゴリー背景・上端濃紺ライン・回答淡色枠・白地目次・コンパクト相談帯
   ========================================================================== */
.gd-toc-bar.gd-toc-bar--white {
  background: var(--bg-white);
}

.gd-section.band.gd-faq-cat {
  padding: 48px 0;
}

.gd-faq-cat .gd-faq-panel {
  border-top: 2px solid var(--navy);
}

.gd-faq-cat .accordion-body {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.gd-section.band.gd-section--compact {
  padding: 48px 0;
}

.gd-section--compact .gd-sec-head {
  margin-bottom: 20px;
}

.gd-section--compact .gd-cta {
  padding: 0;
}

.gd-section--compact .gd-cta .cta-actions {
  margin: 18px 0 0;
}

@media (max-width: 960px) {
  .gd-section.band.gd-faq-cat,
  .gd-section.band.gd-section--compact {
    padding: 36px 0;
  }
}

@media (max-width: 600px) {
  .gd-faq-cat .accordion-body {
    margin: 0 0 14px;
    padding: 14px;
  }
}

/* ===== 淡い青の帯（2026-11-22 追加） =====
   質問対応など、塾長が直接関わる仕組みを示す章に使う。
   青い画像（LINEの画面など）と並べても色がぶつからない。中のカードは白にする。 */
.band--blue {
  background: #e4ecf6;
}

/* 語尾の孤立防止：行頭に「す。」などが1〜2文字だけ残らないよう、文末の数文字を改行させない */
.gd-keep-end {
  white-space: nowrap;
}

/* 冒頭の写真を小さめに置く（contact.php：写真は飾りなので、見出しより目立たせない） */
.gd-hero-photo--small {
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

@media (min-width: 961px) {
  /* 写真を小さくしたときは、左の文の列を広げる */
  .gd-hero-grid--photo-small {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
