/* =========================================================
   起業の経営学 第1版: サイト全体の見た目（A案「道しるべ」）
   色と書体は今のサイトのもの。アクセントは2色（2026-10-17 ユーザーの指示）: 青緑は目印と行動、からし色は道すじと「注意」
   文字を載せる面は青緑（白の文字）が基本。からし色の面に文字を載せるときは、濃いからし色（--color-mustard-deep）に白の文字
   からし色そのものは文字にも、文字を載せる面にも使わない（白と 2.33:1）。紺は骨組み（見出し、番号の丸、ヘッダー・フッター）
   持ち主: デザイナー1。デザイナー2 の pillars.css は、この変数と部品の上に重ねる
   ========================================================= */

:root {
  /* 色（0-1） */
  --color-navy: #345887;        /* 主色 */
  --color-navy-dark: #00204e;   /* 濃い紺: 見出し・濃い面 */
  --color-teal: #117d76;          /* アクセント（目印と行動）: 主ボタン、いまここの札、見出しの上の短い線、印。面の文字は白（4.98:1） */
  --color-teal-tint: #e7f2f1;     /* 青緑の薄い面 */
  --color-teal-light: #419791;    /* 濃い紺の地の文字と線（4.60:1） */
  --color-teal-dark: #0e6a64;     /* 主ボタンにマウスを乗せたとき */
  --color-mustard: #d4a23a;       /* 3色目（道すじと「注意」）: 線と印、注意の囲みの線だけ。文字は載せない（白と 2.33:1）。広い面にも使わない */
  --color-mustard-deep: #947129;  /* からし色の面に文字を載せるときの面（白の文字。4.51:1） */
  --color-mustard-tint: #fbf6eb;  /* 注意の囲みの薄い面 */
  --color-mustard-light: #f4e7cc; /* トップの絵の点の中心など */
  --color-text: #333;
  --color-text-light: #666;
  --color-link: #3d70bb;
  --color-white: #fff;
  --color-gray-bg: #f8f9fa;
  --color-line: #dee2e6;
  --color-navy-tint: #e8eef6;
  --color-navy-faint: #f1f4f9;

  /* 文字（0-2） */
  --font-body: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  --font-heading: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-mono: "Consolas", "Menlo", "Monaco", monospace;

  /* 余白・レイアウト（0-3、0-4） */
  --container: 1120px;
  --gutter: 16px;
  --section-space: 56px;
  --article-width: 720px;   /* 記事の本文の幅（1行 約40字） */
  --rail-width: 264px;      /* PC の目次の幅 */

  /* 線・角丸・影（0-5） */
  /* 線の太さ（2026-10-17 ユーザーの指摘で細くした。REQ-012）。1px の区切り、2px の枠、点線、フォーカスの印は対象外 */
  --stroke-mark: 2px;    /* 印の短い線（セクションのラベルの左、トップの小見出し、著者紹介のラベル）。本文の h2 は丸（REQ-014） */
  --stroke-route: 2px;   /* 流れの線（道すじ、手順、読む順番、柱をつなぐ線、経歴、矢印の軸） */
  --stroke-accent: 2px;  /* 飾りの線（囲みの左、ナビの今いる柱の印）。カードの上の線は REQ-014 でなくした */
  --stroke-button: 1px;  /* ボタンの枠と、ボタン風のリンクの下線（2026-10-17 ユーザーの指摘。REQ-014） */

  /* 「→」のリンクの動き（REQ-014）: ホバーとキーボードの選択で、右へ動く。動きを減らす設定の人には動かさない */
  --arrow-shift: 4px;
  --arrow-duration: 0.2s;

  /* 本文の h2 の文字の左の丸（REQ-014 で 0.6 倍、2026-10-17 ユーザーの指摘で 0.7 倍。REQ-021）。丸と文字のあいだは 0.35em */
  --heading-dot: 0.7em;
  --heading-dot-gap: 0.35em;

  /* 点線の形（点 2px・すき間 2px、太さ 1px。REQ-019）。書き方は下の「8-3 点線」 */
  /* 中身: 枠の外周に太さ 2px の点線を引き、外周の内側だけを残す（clipPath）。見える太さは 1px。
     calc() を使わない形にしてある（SVG の中の calc() は、ブラウザによっては効かないため） */
  --dash-frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3CclipPath id='c'%3E%3Crect width='100%25' height='100%25' rx='12'/%3E%3C/clipPath%3E%3Crect width='100%25' height='100%25' rx='12' fill='none' stroke='%23000' stroke-width='2' stroke-dasharray='2 2' clip-path='url(%23c)'/%3E%3C/svg%3E");   /* 角の丸み 12px の枠 */
  --dash-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3CclipPath id='c'%3E%3Ccircle cx='50%25' cy='50%25' r='50%25'/%3E%3C/clipPath%3E%3Ccircle cx='50%25' cy='50%25' r='50%25' fill='none' stroke='%23000' stroke-width='2' stroke-dasharray='2 2' clip-path='url(%23c)'/%3E%3C/svg%3E");   /* 番号の丸 */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-card: 0 1px 0 rgba(0, 32, 78, 0.04), 0 8px 24px -16px rgba(0, 32, 78, 0.35);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
    --section-space: 72px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --section-space: 104px;
  }
}

/* ---------- 共通の小さな部品 ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-label::before {
  content: "";
  flex: none;
  width: 28px;
  height: var(--stroke-mark);
  border-radius: 999px;
  background: var(--color-teal);
}

.heading {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.375rem);
  font-weight: 900;
}

.heading--serif {
  font-family: var(--font-serif);
  font-weight: 700;
}

.lead {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.9;
  word-break: auto-phrase;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

/* 8-1 ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 12px 28px;
  border: var(--stroke-button) solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.button--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-teal-dark);
}

.button--secondary {
  border-color: var(--color-navy);
  background: var(--color-white);
  color: var(--color-navy);
}

.button--secondary:hover {
  background: var(--color-navy-tint);
}

.button--text {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-thickness: var(--stroke-button);
  text-underline-offset: 0.4em;
}

.button--text::after {
  margin-left: 0.5em;
}

/* ---------- 8-2 「→」の付くリンク（REQ-014） ----------
   - 「→」は ::after に inline-block で置く。下線は文字の下だけに引かれ、「→」の下には引かれない
   - 下線を引くリンクは inline か inline-block にする（flex や inline-flex にすると、下線が「→」の下まで伸びる）
   - ホバーとキーボードの選択（:focus-visible）で、右へ --arrow-shift（4px）、--arrow-duration（0.2 秒）、ease-out で動く。
     動きを減らす設定（prefers-reduced-motion: reduce）の人には動かさない
   - 本文の中のリンクは class="link-arrow"（components.css）。トップの柱のリンクと段階カードのリンクは top.css */
.button--primary::after,
.button--text::after,
.reading-route__go::after,
.session-list__go::after {
  content: "→";
  display: inline-block;
  transition: transform var(--arrow-duration) ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .button--primary:is(:hover, :focus-visible)::after,
  .button--text:is(:hover, :focus-visible)::after,
  .link-arrow:is(:hover, :focus-visible)::after,
  .reading-route__body:is(:hover, :focus-within) .reading-route__go::after,
  .session-list__body:is(:hover, :focus-within) .session-list__go::after,
  .pager__link--next:is(:hover, :focus-visible) .pager__label::after {
    transform: translateX(var(--arrow-shift));
  }

  .pager__link--prev:is(:hover, :focus-visible) .pager__label::before {
    transform: translateX(calc(var(--arrow-shift) * -1));
  }
}

/* ---------- 8-3 点線（点 2px・すき間 2px、太さ 1px。2026-10-17 ユーザーの選択。REQ-019） ----------
   CSS の dashed では点の長さを決められないので、サイトの点線はすべて次の書き方にそろえる。色は CSS の変数のまま使える
   - 区切り（直線）: 線の側の枠を 1px の透明にして、その上に点線の背景を描く
       横: border-top: 1px solid transparent;
           background: repeating-linear-gradient(90deg, <色> 0 2px, transparent 2px 4px) border-box left top / 100% 1px no-repeat;
       縦: border-left: 1px solid transparent;
           background: repeating-linear-gradient(180deg, <色> 0 2px, transparent 2px 4px) border-box left top / 1px 100% no-repeat;
   - 枠（角の丸み 12px）と番号の丸: 枠を 1px の透明にし、::after を枠に重ねて、点線の形（--dash-frame / --dash-circle）で切り抜く
       .x { position: relative; border: 1px solid transparent; }
       .x::after { content: ""; position: absolute; inset: -1px; background: <色>; pointer-events: none;
                   -webkit-mask: var(--dash-frame) 0 0 / 100% 100% no-repeat; mask: var(--dash-frame) 0 0 / 100% 100% no-repeat; }
     角の丸みが 12px でない枠は、--dash-frame の rx（2か所）を、その角の丸みの数字に変えた変数を作る（8px なら rx='8'）
   - 左が実線で右の角だけ丸い枠（記入例の囲み）は components.css の .callout--example::after を見る */

/* 6-8 カテゴリーのラベル: 柱は番号つきの紺、柱の外（起業の土台）と講座は灰 */
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 4px;
  border-radius: 999px;
  background: var(--color-navy-tint);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}

a.category-label:hover {
  box-shadow: inset 0 0 0 1px var(--color-navy);
}

.category-label__num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.6875rem;
  line-height: 1;
}

.category-label--foundation,
.category-label--course {
  padding-left: 10px;
  background: var(--color-gray-bg);
  color: var(--color-text-light);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

/* 9-2 公開日・更新日 */
.post-date {
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

.post-date time {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.list-empty {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ---------- 6-2 ヘッダー / 6-3 グローバルナビ ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.site-logo {
  color: var(--color-navy-dark);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-logo a {
  text-decoration: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: var(--stroke-button) solid var(--color-navy);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-button::before {
  content: "";
  width: 14px;
  height: 10px;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}

.global-nav__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-navy-dark);
  font-weight: 700;
  text-decoration: none;
}

.global-nav__num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.75rem;
  line-height: 1;
}

/* 今いるページ（aria-current="page"）と、今いる柱や区分（aria-current="true"） */
.global-nav__list a[aria-current] {
  color: var(--color-navy);
}

.site-header.has-js .global-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px var(--gutter) 16px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 16px 24px -20px rgba(0, 32, 78, 0.5);
}

.site-header.has-js.is-open .global-nav {
  display: block;
}

@media (max-width: 959.98px) {
  .global-nav__list a[aria-current] {
    padding-left: 14px;
    box-shadow: inset var(--stroke-accent) 0 0 var(--color-teal);
  }
}

@media (min-width: 960px) {
  .site-header__inner {
    min-height: 72px;
  }

  .menu-button {
    display: none;
  }

  .site-header.has-js .global-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .global-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .global-nav__list a {
    position: relative;
    gap: 7px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px; /* キーボードの選択の枠の角 */
    font-size: 0.9375rem;
  }

  /* 今いるページとホバーの印は、背景ではなく下線だけ（2026-10-17 ユーザーの指摘。REQ-016）。
     下線はリンクの下に置いた線で描く（角の丸みに沿って曲がらない、まっすぐな線）。長さは文字の幅（左右の余白の内側） */
  .global-nav__list a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: var(--stroke-accent);
    background: transparent;
    transition: background-color 0.2s;
  }

  /* ホバー: 薄い灰の下線（今いるページの青緑と見分けられるように） */
  .global-nav__list a:hover::after {
    background: #adb5bd;
  }

  /* 今いるページ（あとに書いて、ホバーしても青緑のまま） */
  .global-nav__list a[aria-current]::after {
    background: var(--color-teal);
  }

  .global-nav__num {
    width: 20px;
    height: 20px;
  }
}

/* ---------- 6-9 フッター ---------- */

.site-footer {
  padding-block: 56px 24px;
  background: var(--color-navy-dark);
  color: #dfe6f0;
}

.site-footer__inner {
  display: grid;
  gap: 40px;
}

.site-logo--footer {
  color: var(--color-white);
}

.site-footer__tagline {
  margin-top: 10px;
  color: #c9d6e8;
  font-weight: 700;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

/* スマートフォンでは、柱の名前が長いので、最初の列（3つの柱）だけ横いっぱいに使う */
.site-footer__nav > :first-child {
  grid-column: 1 / -1;
}

/* 濃い紺の地の見出しは、明るい青緑（4.60:1） */
.site-footer__heading {
  margin-bottom: 10px;
  color: var(--color-teal-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer__nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  list-style: none;
}

.site-footer__nav a {
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__copy {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #c9d6e8;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  /* 「3つの柱」の列を少し広く（幅 1000px 前後で「2 ビジネスフレームワーク」が2行に分かれないように。2026-10-18 ユーザーの判断。REQ-030） */
  .site-footer__nav {
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  }

  .site-footer__nav > :first-child {
    grid-column: auto;
  }
}

@media (min-width: 960px) {
  .site-footer {
    padding-block: 72px 28px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
  }
}

/* ---------- 6-4 パンくず ---------- */

.breadcrumb {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-light);
}

.breadcrumb li + li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 10px 0 7px;
  border-top: 1.5px solid #8a94a3;
  border-right: 1.5px solid #8a94a3;
  transform: rotate(45deg);
}

.breadcrumb a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}

/* ---------- 1-1 ページの見出し部 ---------- */

.page-header {
  padding-block: 18px 32px;
  background: var(--color-navy-faint);
  border-bottom: 1px solid var(--color-line);
}

.page-header__inner {
  margin-top: 22px;
}

.page-header__category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 12px;
}

.page-header__position {
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 700;
}

.page-header__title {
  max-width: 24em;
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  font-weight: 900;
  line-height: 1.35;
}

/* 講座の回のページ: その講座の回の一覧（閉じた開閉。今の回に印） */
.course-outline {
  max-width: 720px;
  margin-top: 18px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-white);
}

.course-outline > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--color-navy);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.course-outline > summary::-webkit-details-marker {
  display: none;
}

.course-outline > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.course-outline[open] > summary::after {
  transform: rotate(-135deg) translateX(-3px);
}

.course-outline__list {
  display: grid;
  margin: 0 16px 14px;
  padding: 10px 0 0;
  border-top: 1px solid transparent;
  background: repeating-linear-gradient(90deg, var(--color-line) 0 2px, transparent 2px 4px) border-box left top / 100% 1px no-repeat;
  list-style: none;
}

.course-outline__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  word-break: auto-phrase;
}

.course-outline__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.course-outline__item a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}

.course-outline__item--current {
  background: var(--color-teal-tint);
  color: var(--color-navy-dark);
  font-weight: 700;
}

.course-outline__here {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 1px;
}

.course-outline__item--soon {
  color: var(--color-text-light);
}

.course-outline__item--soon .course-outline__num {
  position: relative;
  border: 1px solid transparent;
  background: var(--color-white);
  color: var(--color-text-light);
}

.course-outline__item--soon .course-outline__num::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: #adb5bd;
  pointer-events: none;
  -webkit-mask: var(--dash-circle) 0 0 / 100% 100% no-repeat;
  mask: var(--dash-circle) 0 0 / 100% 100% no-repeat;
}

/* 題名の主と副（区切りの「─」は読み上げにだけ残す） */
.title-main,
.title-sub {
  display: block;
}

.title-sub {
  margin-top: 8px;
  color: var(--color-navy);
  font-size: 0.56em;
  font-weight: 700;
  line-height: 1.5;
}

.page-header__lead {
  max-width: 38em;
  margin-top: 16px;
  color: var(--color-text);
  font-size: 1rem;
  word-break: auto-phrase;
}

.page-header__actions {
  margin-top: 20px;
}

/* 著者、公開日・更新日、読む時間 */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.article-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 700;
}

.article-meta__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

.article-meta__author a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.article-meta time {
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* 柱の中の位置（読む順番の何本目か） */
.series-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid transparent;
  background: repeating-linear-gradient(90deg, #c9d3e1 0 2px, transparent 2px 4px) border-box left top / 100% 1px no-repeat;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.series-route__stops {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.series-route__stops::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: var(--stroke-route);
  margin-top: calc(var(--stroke-route) / -2);
  border-radius: 999px;
  background: var(--color-mustard);
}

.series-route__stop {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-white);
}

.series-route__stop--current {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.series-route__text {
  color: var(--color-text-light);
}

.series-route__text a {
  color: var(--color-link);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

@media (min-width: 960px) {
  .page-header {
    padding-block: 22px 44px;
  }

  .page-header__inner {
    margin-top: 30px;
  }

  .page-header__lead {
    font-size: 1.0625rem;
  }
}

/* ---------- 7-1 カード、7-2 カードの並べ方 ---------- */

.card-list {
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.card:hover,
.card:focus-within {
  border-color: var(--color-navy);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.55;
}

.card__title a {
  color: inherit; /* 本文の中に置いても、リンクの青にしない */
  text-decoration: none;
}

/* カード全体を押せるようにする（リンクは題名だけ） */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card__meta {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 700;
}

.card .post-date {
  margin-top: auto;
}

/* 講座の回数を、道の上の駅の数で見せる */
.course-stops {
  display: block;
  width: calc(var(--stops) * 18px - 6px);
  max-width: 100%;
  height: 12px;
  margin-top: auto;
  background:
    radial-gradient(circle at 6px 6px, var(--color-navy) 4px, transparent 4.6px) 0 0 / 18px 12px repeat-x,
    linear-gradient(var(--color-mustard), var(--color-mustard)) center / calc(100% - 12px) var(--stroke-route) no-repeat;
}

@media (min-width: 640px) {
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  /* 講座は4つなので、2つずつ並べる（3つと1つに分かれないように） */
  .card-list--courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .card-list--courses {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 読む順番（柱の記事）と、講座の回の一覧: 紺の駅を、からし色の道でつなぐ ---------- */

.reading-route,
.session-list {
  display: grid;
  max-width: 820px;
}

.reading-route__item,
.session-list__item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 20px;
}

.reading-route__item:not(:last-child)::before,
.session-list__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  left: calc(20px - var(--stroke-route) / 2);
  width: var(--stroke-route);
  background: var(--color-mustard);
}

.reading-route__num,
.session-list__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  box-shadow: 0 0 0 4px var(--color-white);
  color: var(--color-white);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
}

.reading-route__body,
.session-list__body {
  padding: 14px 18px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.reading-route__title,
.session-list__title {
  color: var(--color-navy-dark);
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.55;
}

/* 押せるカードだとわかるように: 題名に薄い下線、下に「読む →」。カード全体を押せる（リンクは題名だけ） */
.reading-route__body,
.session-list__body {
  position: relative;
  transition: border-color 0.2s;
}

.reading-route__body:hover,
.reading-route__body:focus-within,
.session-list__body:hover,
.session-list__body:focus-within {
  border-color: var(--color-navy);
}

.reading-route__title a,
.session-list__title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(52, 88, 135, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.reading-route__title a::after,
.session-list__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-m);
}

.reading-route__body:hover a,
.session-list__body:hover a {
  text-decoration-color: currentColor;
}

/* 読む時間の目安と「読む →」 */
.reading-route__meta,
.session-list__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid transparent;
  background: repeating-linear-gradient(90deg, var(--color-line) 0 2px, transparent 2px 4px) border-box left top / 100% 1px no-repeat;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.reading-route__time,
.session-list__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-light);
}

/* 時計の印 */
.reading-route__time::before,
.session-list__time::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3Cpath d='M8 4.5V8l2.5 1.5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.reading-route__go,
.session-list__go {
  flex: none;
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.reading-route__go::after,
.session-list__go::after {
  margin-left: 0.25em;
}

.reading-route__desc,
.session-list__desc {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.75;
}

.session-list__item--soon .session-list__num {
  border: 1px solid transparent;
  background: var(--color-white);
  color: var(--color-text-light);
}

.session-list__item--soon .session-list__body {
  border-color: transparent;
  box-shadow: none;
  color: var(--color-text-light);
}

.session-list__item--soon .session-list__body::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--color-line);
  pointer-events: none;
  -webkit-mask: var(--dash-frame) 0 0 / 100% 100% no-repeat;
  mask: var(--dash-frame) 0 0 / 100% 100% no-repeat;
}

.session-list__item--soon .session-list__num::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: #adb5bd;
  pointer-events: none;
  -webkit-mask: var(--dash-circle) 0 0 / 100% 100% no-repeat;
  mask: var(--dash-circle) 0 0 / 100% 100% no-repeat;
}

.session-list__item--soon .session-list__title {
  color: var(--color-text-light);
  font-weight: 700;
}
