/*!
 * WEBMARKS Creative CAMP — 共通スタイルシート
 * case_id: CASE-20260722-SCHOOL-WEBMARKS-CREATIVE-CAMP (TASK-157)
 *
 * 外部CDN・Webフォント読み込みなし（システムフォントのみ）。
 * カラー・寸法はCSS変数でトークン化。Bootstrap風フラットUI（角丸4-6px・影なし・薄グレー枠線）。
 * 参照元（TTP模写対象）由来のクラス名・アセット・名称は一切含まない。
 */

/* ==========================================================================
   0. リセット（最小限）
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   1. デザイントークン（CSS変数）
   ========================================================================== */
:root {
  /* --- ベースカラー --- */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-sidebar-bg: #f8f9fa;
  --color-border: #dee2e6;
  --color-border-soft: #e9ecef;
  --color-text: #333333;
  --color-text-strong: #1b2a4a;
  --color-heading-navy: #1b2a4a;
  --color-muted: #6c757d;
  --color-muted-2: #adb5bd;

  /* --- ブランドカラー --- */
  --color-btn: #1f6bff;
  --color-btn-hover: #1657d6;
  --color-btn-text: #ffffff;
  --color-link: #007bff;
  --color-link-hover: #0056c7;
  --color-accent: #0aa5bb;
  --color-accent-2: #5b9bd5;
  --color-progress-track: #e9ecef;
  --color-progress-fill: #1f6bff;

  /* --- 注記（Phase2差替マーカー） --- */
  --color-note-bg: #fff8e1;
  --color-note-border: #e9d8a0;
  --color-note-text: #8a6d00;

  /* --- 形状 --- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* --- フォント（システムフォントのみ／外部CDN禁止） --- */
  --font-body: "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic",
    "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo",
    "Noto Sans JP", sans-serif;
  --font-serif-accent: "Hiragino Mincho ProN", "HGS明朝E", "Times New Roman",
    Georgia, serif;

  /* --- レイアウト寸法 --- */
  --header-height: 56px;
  --sidebar-width: 253px;
  --content-max: 940px;
  --content-max-lesson: 1120px;
  --shell-max: 1200px;
  --shell-max-lesson: 1400px;
}

/* ==========================================================================
   2. 基本要素
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1 1 auto;
}

/* コンテンツ幅ラッパー */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

.shell--lesson {
  max-width: var(--shell-max-lesson);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .shell,
  .container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   3. ヘッダー／ロゴ／ハンバーガー
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-soft);
  flex: 0 0 auto;
}

.site-header__inner {
  max-width: var(--shell-max-lesson);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__line1 {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  /* グラデーション未対応環境向けの単色フォールバック（先に指定） */
  color: #6c4fd6;
  background-image: linear-gradient(90deg, #7c4fe0 0%, #d64fc2 55%, #4c7cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo__line2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7c6fe0;
  margin-top: 2px;
}

.header-menu {
  position: relative;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger-btn:hover {
  background: var(--color-sidebar-bg);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #495057;
}

.hamburger-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 20;
}

.hamburger-menu[hidden] {
  display: none;
}

.hamburger-menu__item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
}

.hamburger-menu__item:hover {
  background: var(--color-sidebar-bg);
}

/* ==========================================================================
   4. ボタン／バッジ／進捗バー
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn--primary {
  background: var(--color-btn);
  color: var(--color-btn-text);
}

.btn--primary:hover {
  background: var(--color-btn-hover);
}

.btn--outline {
  background: var(--color-bg);
  color: var(--color-btn);
  border-color: var(--color-btn);
}

.btn--outline:hover {
  background: rgba(31, 107, 255, 0.08);
}

.btn--muted {
  background: var(--color-border-soft);
  color: var(--color-muted);
  border-color: var(--color-border-soft);
  cursor: default;
}

.btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--done {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.badge-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.progress-bar {
  height: 8px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-progress-track);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--color-progress-fill);
  transition: width 0.3s ease;
}

.progress-bar--sidebar {
  max-width: 200px;
  margin: 10px auto 6px;
}

/* ==========================================================================
   5. ホーム画面
   ========================================================================== */
.page--home .home-toolbar {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(40px, 9vw, 140px);
  padding-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--color-bg);
}

.search-box__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
}

.search-box__btn {
  flex: 0 0 auto;
  border: none;
  border-left: 1px solid var(--color-border);
  background: var(--color-sidebar-bg);
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}

.course-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
  padding: 48px 0;
}

.course-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.course-card__thumb-link {
  text-decoration: none;
  display: block;
}

.course-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.course-card__thumb-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--color-heading-navy);
}

.thumb-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  z-index: 1;
}

.thumb-decor--1 {
  width: 120px;
  height: 120px;
  top: -40px;
  right: -30px;
}

.thumb-decor--2 {
  width: 80px;
  height: 80px;
  bottom: -30px;
  left: -20px;
}

/* コース7バリエーション分のグラデ（青・水・紫・緑・ピンク・橙・藍の淡色） */
.thumb-gradient-blue {
  background: linear-gradient(135deg, #dcebff 0%, #b7d6ff 100%);
}
.thumb-gradient-blue .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.thumb-gradient-aqua {
  background: linear-gradient(135deg, #d2f6f5 0%, #a6e9e4 100%);
}
.thumb-gradient-aqua .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.thumb-gradient-purple {
  background: linear-gradient(135deg, #eae0fb 0%, #cbb3f0 100%);
}
.thumb-gradient-purple .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.thumb-gradient-green {
  background: linear-gradient(135deg, #def7e3 0%, #b7eac1 100%);
}
.thumb-gradient-green .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.thumb-gradient-pink {
  background: linear-gradient(135deg, #fde4ee 0%, #f7bbd3 100%);
}
.thumb-gradient-pink .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.thumb-gradient-orange {
  background: linear-gradient(135deg, #ffebd6 0%, #ffcb94 100%);
}
.thumb-gradient-orange .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.thumb-gradient-indigo {
  background: linear-gradient(135deg, #dde3fb 0%, #a9b8ef 100%);
}
.thumb-gradient-indigo .thumb-decor {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.course-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.course-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-strong);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__title a {
  text-decoration: none;
  color: inherit;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-card__percent {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ==========================================================================
   6. 2カラムレイアウト（コース頁／レッスン頁）
   ========================================================================== */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 80px;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
}

.main-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--content-max);
}

.main-content--lesson {
  max-width: var(--content-max-lesson);
}

@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex: 0 0 auto;
  }
  .main-content,
  .main-content--lesson {
    max-width: 100%;
    width: 100%;
  }
}

/* --- サイドバー：コース頁（灰色背景） --- */
.sidebar--course {
  background: var(--color-sidebar-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.sidebar--course .sidebar__course-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-strong);
  margin-bottom: 14px;
  line-height: 1.5;
}

.sidebar__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar__thumb .course-card__thumb-title {
  font-size: 13px;
}

.sidebar__percent {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
}

/* --- サイドバー：レッスン頁（白背景） --- */
.sidebar--lesson {
  background: var(--color-bg);
  padding-right: 16px;
  border-right: 1px solid var(--color-border-soft);
}

@media (max-width: 860px) {
  .sidebar--lesson {
    border-right: none;
    border-bottom: 1px solid var(--color-border-soft);
    padding-right: 0;
    padding-bottom: 16px;
    margin-bottom: 8px;
  }
}

.sidebar__nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar__back {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-link);
  text-decoration: none;
}

.sidebar__back:hover {
  text-decoration: underline;
}

.sidebar__gear {
  border: none;
  background: none;
  color: var(--color-muted-2);
  font-size: 16px;
  cursor: default;
}

.sidebar__group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.sidebar__lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar__lesson-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  color: var(--color-text);
}

.sidebar__lesson-link.is-current {
  color: var(--color-link);
  font-weight: 700;
}

.sidebar__lesson-link--disabled {
  color: var(--color-muted-2);
}

/* サイドバー内の丸チェックアイコンはコンパクトに */
.sidebar__lesson-link .lesson-row__check {
  width: 16px;
  height: 16px;
  font-size: 9px;
  margin-top: 2px;
}

/* ==========================================================================
   7. パンくず
   ========================================================================== */
.breadcrumb {
  font-size: 12px;
  color: var(--color-muted);
  margin: 16px 0;
}

.breadcrumb a {
  color: var(--color-link);
  text-decoration: none;
}

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

.breadcrumb__sep {
  margin: 0 6px;
}

/* ==========================================================================
   8. レッスングループ（カード）／レッスン行
   ========================================================================== */
.lesson-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 80px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: none;
}

.card__header {
  background: var(--color-sidebar-bg);
  color: var(--color-accent-2);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-soft);
}

.lesson-list {
  display: flex;
  flex-direction: column;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  min-height: 48px;
  border-bottom: 1px solid var(--color-border-soft);
}

.lesson-row:last-child {
  border-bottom: none;
}

.lesson-row__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ced4da;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: transparent;
  background: transparent;
}

.lesson-row__check[data-state="done"] {
  border-color: var(--color-btn);
  background: var(--color-btn);
  color: #ffffff;
}

.lesson-row__check--disabled {
  border-color: var(--color-border-soft);
  color: var(--color-muted-2);
}

.lesson-row__title {
  flex: 1 1 auto;
  font-size: 15px;
  color: var(--color-text-strong);
  min-width: 0;
}

.lesson-row--disabled .lesson-row__title {
  color: var(--color-muted-2);
}

.lesson-row__action {
  flex: 0 0 auto;
}

/* ==========================================================================
   9. レッスン頁：見出し・ヒーローカード
   ========================================================================== */
.lesson-title {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  color: var(--color-text-strong);
  line-height: 1.5;
  margin-bottom: 8px;
}

.hero-card {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 40px);
  margin: 24px 0 32px;
  background-image: linear-gradient(
    135deg,
    #ffffff 0%,
    #efe7fb 55%,
    #e5f0fe 100%
  );
}

.hero-card__badge {
  display: inline-block;
  margin-bottom: 16px;
}

.hero-card__heading {
  font-size: clamp(21px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--color-heading-navy);
  line-height: 1.45;
  margin-bottom: 16px;
}

.hero-card__lead {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px 6px 6px;
  font-size: 13px;
  color: var(--color-text);
}

.pill__num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #ffffff;
  background-image: linear-gradient(135deg, #7c6fe0 0%, #4c8dff 100%);
}

/* ==========================================================================
   10. 動画プレースホルダ
   ========================================================================== */
.video-placeholder {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1a1a2e;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 0;
}

.video-placeholder__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #1a1a2e;
  padding-left: 4px; /* 三角形の視覚的重心補正 */
}

.video-placeholder__note {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  margin: 8px 0 32px;
}

/* ==========================================================================
   11. コンテンツブロック共通（qa_ai / download / mindmap / text / points / links / worksheet）
   ========================================================================== */
.content-block {
  margin: 28px 0;
}

.content-block__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-strong);
  margin-bottom: 12px;
}

.info-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--color-bg);
}

.info-box__body {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.replace-note {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-note-text);
  background: var(--color-note-bg);
  border: 1px dashed var(--color-note-border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
}

.text-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 12px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.points-list,
.worksheet-list,
.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-list__item {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

.points-list__item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.worksheet-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.worksheet-list__box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
}

.links-list__item a {
  font-size: 14px;
  color: var(--color-link);
  text-decoration: none;
}

.links-list__item a:hover {
  text-decoration: underline;
}

.links-list__ext {
  font-size: 11px;
  color: var(--color-muted);
  margin-left: 4px;
}

/* --- バナー型ブロック（原色寄り・単発告知） --- */
.banner-block {
  border-radius: var(--radius-sm);
  padding: 32px;
  color: #ffffff;
  background-image: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-btn) 100%
  );
}

.banner-block__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.banner-block__body {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.95;
}

.banner-block .btn--primary {
  background: #ffffff;
  color: var(--color-btn);
}

.banner-block .btn--primary:hover {
  background: #eef3ff;
}

.banner-block .replace-note {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* --- アーカイブ型ブロック（複数動画） --- */
.archive-block__item {
  margin-bottom: 24px;
}

.archive-block__item:last-child {
  margin-bottom: 0;
}

.archive-block__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-strong);
  margin-bottom: 8px;
}

/* --- Coming Soon 専用ページ --- */
.coming-soon-card {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 56px 24px;
  text-align: center;
  color: var(--color-muted);
  margin: 32px 0 48px;
}

.coming-soon-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  background: var(--color-sidebar-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 16px;
}

.coming-soon-card__text {
  font-size: 14px;
  line-height: 1.8;
}

/* ==========================================================================
   12. 受講完了トグル／前後ナビ
   ========================================================================== */
.lesson-complete-toggle {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.lesson-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-soft);
}

.lesson-pager__slot {
  flex: 1 1 0;
  display: flex;
}

.lesson-pager__slot--end {
  justify-content: flex-end;
}

/* ==========================================================================
   13. フッター
   ========================================================================== */
.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--color-border-soft);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--color-muted-2);
}

/* ==========================================================================
   14. 404
   ========================================================================== */
.notfound-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
}

.notfound-page__code {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-border);
}

.notfound-page__text {
  font-size: 15px;
  color: var(--color-muted);
}

/* ==========================================================================
   15. モバイル（390px対応）微調整
   ========================================================================== */
@media (max-width: 480px) {
  .site-header__inner {
    padding: 0 16px;
  }
  .hero-card {
    padding: 24px 18px;
  }
  .course-card__thumb-title {
    font-size: 15px;
  }
  .lesson-pager {
    flex-wrap: wrap;
  }
}
