/**
 * 講座詳細 (mb_lesson single) 専用スタイル — magazine から分離 (issue: lesson/magazine 分割)。
 *
 * magazine.css から複製し .mag-* → .lesson-* へ改名。今後 magazine と独立に管理する。
 * .mb-lesson-* の本文装飾クラス (chapter/points/goal/section) は据え置き。
 * hub 専用ルール (hub__* / pagination / empty) は講座詳細で未使用のため削除済。
 */

.lesson {
  background: var(--color-surface, #f0f5fa);
  padding: var(--space-6, 48px) 0 var(--space-8, 64px);
}

.lesson__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-4, 24px);
}

.lesson-breadcrumb {
  margin-bottom: var(--space-4, 24px);
  font-size: var(--text-caption, 13px);
}

.lesson-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-text-secondary, #64748b);
}

.lesson-breadcrumb__item:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--color-text-secondary, #94a3b8);
}

.lesson-breadcrumb a {
  color: var(--color-accent, #046bd2);
  text-decoration: none;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4, 24px);
}

.lesson-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.lesson-card {
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lesson-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.lesson-card__link {
  display: block;
  padding: var(--space-4, 24px);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.lesson-card__thumb {
  aspect-ratio: 16 / 9;
  margin: calc(var(--space-4, 24px) * -1) calc(var(--space-4, 24px) * -1) var(--space-4, 24px);
  overflow: hidden;
  background: var(--color-accent-bg, #eff6ff);
}

.lesson-card__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: var(--text-tiny, 12px);
  color: var(--color-text-secondary, #64748b);
  margin-bottom: 10px;
}

.lesson-card__cat {
  color: var(--color-accent, #046bd2);
  font-weight: var(--weight-semibold, 600);
}

.lesson-card__title {
  font-size: var(--text-h4, 1.05rem);
  font-weight: var(--weight-bold, 700);
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--color-text-primary, #1e293b);
}

.lesson-card__excerpt {
  font-size: var(--text-small, 14px);
  line-height: 1.75;
  color: var(--color-text-secondary, #64748b);
  margin: 0 0 12px;
}

.lesson-card__more {
  font-size: var(--text-small, 14px);
  color: var(--color-accent, #046bd2);
  font-weight: var(--weight-semibold, 600);
}

.lesson-article__title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 var(--space-3, 16px);
}

.lesson-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--text-caption, 13px);
  color: var(--color-text-secondary, #64748b);
  margin-bottom: var(--space-5, 32px);
}

.lesson-article__cat {
  color: var(--color-accent, #046bd2);
  font-weight: var(--weight-semibold, 600);
}

.lesson--detail .lesson-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: var(--space-4, 24px);
  margin-bottom: var(--space-5, 32px);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.lesson--detail .lesson-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson--detail .lesson-video__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-layout--with-curriculum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: var(--space-6, 48px);
  align-items: start;
}

.lesson-layout--with-curriculum .lesson-article {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.lesson-layout--with-curriculum .lesson-curriculum {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 80px;
}

.lesson-layout--with-curriculum .lesson-layout__footer {
  grid-column: 1;
  grid-row: 2;
}

.lesson-curriculum {
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: var(--space-4, 24px);
  background: var(--color-surface, #fff);
}

.lesson-curriculum__label {
  font-weight: var(--weight-bold, 700);
  margin-bottom: var(--space-3, 16px);
}

.lesson-curriculum__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-curriculum__item a {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--text-caption, 13px);
  color: var(--color-text-secondary, #64748b);
}

.lesson-curriculum__item a:hover {
  background: var(--color-accent-bg, #eff6ff);
  color: var(--color-accent, #046bd2);
}

.lesson-curriculum__item.is-current a {
  background: var(--color-accent-bg, #eff6ff);
  font-weight: var(--weight-bold, 700);
  color: var(--color-text-primary, #0f172a);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-6, 48px);
}

.lesson-summary {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: var(--space-4, 24px);
  margin-bottom: var(--space-5, 32px);
}

.lesson-summary__label {
  font-size: var(--text-tiny, 12px);
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.05em;
  color: var(--color-accent, #046bd2);
  margin-bottom: 8px;
}

.lesson-summary__text {
  margin: 0;
  line-height: 1.85;
  font-size: var(--text-body, 16px);
}

.lesson-toc-wrap {
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: var(--space-4, 24px);
  margin-bottom: var(--space-5, 32px);
}

.lesson-toc-wrap__label {
  font-weight: var(--weight-bold, 700);
  margin-bottom: 10px;
}

.lesson-toc__list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.lesson-toc__list a {
  color: var(--color-accent, #046bd2);
  text-decoration: none;
}

/* 講座アジェンダを本文内へ移した際、本文用 ol/li 装飾(番号バッジ/1.85em字下げ/17px)
   が目次に混入する。従来の目次デザインを維持するため打ち消す (specificity 0,4,1)。 */
body[class*="zone-"] .lesson-article__body .lesson-toc__list {
  padding-left: 1.25rem;
  list-style: decimal;
}
body[class*="zone-"] .lesson-article__body .lesson-toc__list > li {
  position: static;
  padding-left: 0;
  margin: 0;
  line-height: 1.8;
  font-size: var(--text-body, 15px);
}
body[class*="zone-"] .lesson-article__body .lesson-toc__list > li::before {
  content: none;
}
/* 章番号付き目次(講座): 「第N章：」表記に一本化するため decimal マーカーを消す */
body[class*="zone-"] .lesson-article__body .lesson-toc__list--numbered {
  list-style: none;
  padding-left: 0;
}
body[class*="zone-"] .lesson-article__body .lesson-toc__list a {
  text-decoration: none;
}

.lesson-article__body {
  line-height: 2.05;
  margin-bottom: var(--space-6, 48px);
}

/* --- 本文タイポgrafi: h2/h3/h4, リスト, 表, 引用 (issue: lesson body design) --- */
.lesson-article__body h2 {
  margin-top: var(--space-7, 56px);
  margin-bottom: var(--space-4, 24px);
  padding: 14px 20px;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: var(--weight-bold, 700);
  line-height: 1.5;
  color: var(--color-text-primary, #1e293b);
  background: var(--color-accent-bg, #eff6ff);
  border-left: 6px solid var(--color-accent, #046bd2);
  border-radius: 0 8px 8px 0;
}

.lesson--detail .lesson-article__body > h2:first-child {
  margin-top: 0;
}

/* 章番号バッジ: H2 テキストには番号を入れず CSS カウンタで採番 (mb-lesson-chapter) */
.lesson-article__body {
  counter-reset: mb-chapter;
}
.lesson-article__body h2.mb-lesson-chapter {
  counter-increment: mb-chapter;
}
.lesson-article__body h2.mb-lesson-chapter::before {
  content: "第" counter(mb-chapter) "章";
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--color-accent, #046bd2);
}

.lesson-article__body h3 {
  position: relative;
  margin-top: var(--space-5, 32px);
  margin-bottom: var(--space-3, 16px);
  padding-bottom: 10px;
  font-size: var(--text-h4, 1.15rem);
  font-weight: var(--weight-bold, 700);
  line-height: 1.65;
  color: var(--color-text-primary, #1e293b);
  border-bottom: 2px solid var(--color-border, #e2e8f0);
}

.lesson-article__body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--color-accent, #046bd2);
}

/* --- QA / まとめ 専用セクション (mb_lesson_decorate_special_sections) --- */
.lesson-article__body .mb-lesson-section {
  margin: var(--space-7, 56px) 0;
}

/* QA: カード地 + Q&A バッジ見出し + Q/A バッジ */
.lesson-article__body .mb-lesson-section--qa {
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: var(--space-4, 24px) var(--space-5, 32px);
}
.lesson-article__body .mb-lesson-section--qa h2 {
  margin: 0 0 var(--space-4, 24px);
  padding: 0 0 14px;
  background: none;
  border-left: 0;
  border-radius: 0;
  border-bottom: 2px solid var(--color-accent, #046bd2);
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lesson-article__body .mb-lesson-section--qa h2::before {
  content: "Q&A";
  flex: none;
  font-size: 12px;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--color-accent, #046bd2);
  padding: 4px 10px;
  border-radius: 999px;
}
.lesson-article__body .mb-lesson-section--qa h3 {
  position: relative;
  margin: var(--space-4, 24px) 0 var(--space-2, 8px);
  padding: 2px 0 0 38px;
  border-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
.lesson-article__body .mb-lesson-section--qa h3::after {
  content: none;
}
.lesson-article__body .mb-lesson-section--qa h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--weight-bold, 700);
  color: #fff;
  background: var(--color-accent, #046bd2);
  border-radius: 6px;
}
.lesson-article__body .mb-lesson-section--qa h3 + p {
  position: relative;
  margin: 0 0 var(--space-3, 16px);
  padding: 2px 0 0 38px;
  color: var(--color-text-secondary, #475569);
}
.lesson-article__body .mb-lesson-section--qa h3 + p::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--weight-bold, 700);
  color: var(--color-accent, #046bd2);
  background: var(--color-accent-bg, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
}

/* まとめ: 淡いグラデーション箱 + チェックバッジ見出し */
.lesson-article__body .mb-lesson-section--summary {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: var(--space-5, 32px);
}
.lesson-article__body .mb-lesson-section--summary h2 {
  margin: 0 0 var(--space-3, 16px);
  padding: 0;
  background: none;
  border-left: 0;
  border-radius: 0;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lesson-article__body .mb-lesson-section--summary h2::before {
  content: "\2713"; /* ✓ */
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--weight-bold, 700);
  color: #fff;
  background: var(--color-accent, #046bd2);
  border-radius: 50%;
}
.lesson-article__body .mb-lesson-section--summary > :last-child {
  margin-bottom: 0;
}

/* この章のゴール: 左アクセント枠のコールアウト (章ごとに繰り返し出現) */
.lesson-article__body .mb-lesson-goal {
  margin: var(--space-4, 24px) 0 var(--space-5, 32px);
  padding: var(--space-4, 24px);
  background: var(--color-accent-bg, #eff6ff);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--color-accent, #046bd2);
  border-radius: 0 10px 10px 0;
}
.lesson-article__body .mb-lesson-goal__label {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 13px;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--color-accent, #046bd2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lesson-article__body .mb-lesson-goal__label::after {
  content: none;
}
.lesson-article__body .mb-lesson-goal__label::before {
  content: "\1F3AF"; /* 🎯 */
  font-size: 15px;
}
.lesson-article__body .mb-lesson-goal > :last-child {
  margin-bottom: 0;
}

/* この講座のポイント: 冒頭の要点サマリ枠 (各章ゴールを集約, カオナビ風) */
.lesson-article__body .mb-lesson-points {
  margin: 0 0 var(--space-6, 48px);
  padding: var(--space-5, 32px);
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}
.lesson-article__body .mb-lesson-points__label {
  margin: 0 0 var(--space-3, 16px);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: var(--weight-bold, 700);
  color: var(--color-text-primary, #1e293b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lesson-article__body .mb-lesson-points__label::before {
  content: "\1F4CC"; /* 📌 */
  font-size: 1.1em;
}
.lesson-article__body .mb-lesson-points__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lesson-article__body .mb-lesson-points__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
}
.lesson-article__body .mb-lesson-points__list li:last-child {
  margin-bottom: 0;
}
.lesson-article__body .mb-lesson-points__list li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--weight-bold, 700);
  color: #fff;
  background: var(--color-accent, #046bd2);
  border-radius: 50%;
}

.lesson-article__body h4 {
  margin-top: var(--space-4, 24px);
  margin-bottom: var(--space-2, 8px);
  font-size: 1.05rem;
  font-weight: var(--weight-bold, 700);
  color: var(--color-accent, #046bd2);
}

.lesson-article__body p {
  margin: 0 0 var(--space-4, 24px);
}

.lesson-article__body a {
  color: var(--color-accent, #046bd2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lesson-article__body strong {
  color: var(--color-text-primary, #1e293b);
  font-weight: var(--weight-bold, 700);
  background: linear-gradient(transparent 60%, #fff176 60%);
}

/* 見出し・リスト内の太字はマーカーなし (本文中の強調のみ対象) */
.lesson-article__title strong,
.lesson-article__body :is(h1, h2, h3, h4, li) strong {
  background: none;
}

/* リスト: 独自マーカー (ul=丸, ol=採番バッジ) */
.lesson-article__body ul,
.lesson-article__body ol {
  margin: 0 0 var(--space-4, 24px);
  padding-left: 0;
  list-style: none;
}

.lesson-article__body ul > li,
.lesson-article__body ol > li {
  position: relative;
  padding-left: 1.85em;
  margin-bottom: 14px;
  line-height: 2.0;
}

.lesson-article__body ul > li::before {
  content: "";
  position: absolute;
  left: 0.4em;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent, #046bd2);
}

.lesson-article__body ol {
  counter-reset: lesson-ol;
}

.lesson-article__body ol > li {
  counter-increment: lesson-ol;
}

.lesson-article__body ol > li::before {
  content: counter(lesson-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  font-size: 0.78em;
  font-weight: var(--weight-bold, 700);
  color: #fff;
  background: var(--color-accent, #046bd2);
  border-radius: 50%;
}

/* 表: ヘッダ着色 + ゼブラ + 角丸枠 */
.lesson-article__body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 var(--space-5, 32px);
  font-size: var(--text-small, 15px);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
}

.lesson-article__body thead th {
  background: var(--color-accent, #046bd2);
  color: #fff;
  font-weight: var(--weight-bold, 700);
  text-align: left;
}

.lesson-article__body th,
.lesson-article__body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  line-height: 1.7;
  vertical-align: top;
}

.lesson-article__body tbody tr:nth-child(even) {
  background: var(--color-surface, #f8fafc);
}

.lesson-article__body tbody tr:last-child td {
  border-bottom: 0;
}

/* 引用 / インラインコード */
.lesson-article__body blockquote {
  margin: 0 0 var(--space-4, 24px);
  padding: 16px 20px;
  background: var(--color-accent-bg, #eff6ff);
  border-left: 4px solid var(--color-accent, #046bd2);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-secondary, #475569);
}

.lesson-article__body blockquote p:last-child {
  margin-bottom: 0;
}

.lesson-article__body code {
  padding: 2px 6px;
  font-size: 0.9em;
  background: var(--color-surface, #f1f5f9);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .lesson-article__body table {
    display: block;
    overflow-x: auto;
  }
}

.lesson-faq {
  margin: var(--space-6, 48px) 0;
  padding-top: var(--space-5, 32px);
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.lesson-faq__title {
  font-size: var(--text-h3, 1.25rem);
  margin-bottom: var(--space-4, 24px);
}

.lesson-faq__list {
  margin: 0;
}

.lesson-faq__q {
  font-weight: var(--weight-bold, 700);
  margin: var(--space-3, 16px) 0 6px;
}

.lesson-faq__a {
  margin: 0 0 var(--space-3, 16px);
  line-height: 1.85;
  color: var(--color-text-secondary, #475569);
}

.lesson-cta {
  margin: var(--space-6, 48px) 0;
}

.lesson-cta__label {
  font-size: var(--text-tiny, 12px);
  font-weight: var(--weight-bold, 700);
  color: var(--color-accent, #046bd2);
  margin-bottom: 8px;
}

.lesson-cta__title {
  font-size: var(--text-h3, 1.25rem);
  margin: 0 0 8px;
}

.lesson-cta__text {
  margin: 0 0 var(--space-3, 16px);
  line-height: 1.75;
}

.lesson-related {
  margin-top: var(--space-6, 48px);
}

.lesson-related__title {
  font-size: var(--text-h3, 1.25rem);
  margin-bottom: var(--space-4, 24px);
}

.lesson-author {
  margin-top: var(--space-5, 32px);
  padding-top: var(--space-4, 24px);
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.lesson-author__label {
  font-size: var(--text-tiny, 12px);
  font-weight: var(--weight-bold, 700);
  color: var(--color-text-secondary, #64748b);
}

.lesson-author__name {
  font-size: var(--text-h4, 1.05rem);
  font-weight: var(--weight-bold, 700);
  margin: 4px 0 8px;
}

.lesson-author__bio {
  margin: 0;
  line-height: 1.75;
  color: var(--color-text-secondary, #475569);
  font-size: var(--text-small, 14px);
}

@media (max-width: 900px) {
  .lesson-layout--with-curriculum {
    grid-template-columns: 1fr;
    gap: var(--space-5, 32px);
  }

  .lesson-layout--with-curriculum .lesson-article,
  .lesson-layout--with-curriculum .lesson-curriculum,
  .lesson-layout--with-curriculum .lesson-layout__footer {
    grid-column: 1;
    grid-row: auto;
  }

  .lesson-layout--with-curriculum .lesson-curriculum {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .lesson-nav .btn-primary,
  .lesson-nav .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
 * 記事/講座本文タイポの復活
 * astra-reset.css の `body[class*="zone-"] .entry-content :where(h1..h6){font-size:inherit;margin-bottom:0}`
 * (詳細度 0,2,0) が上の `.lesson-article__body h2/h3/p` (0,1,1) を上書きし、
 * 見出しが本文サイズ・段落余白ゼロに潰れていた。ここで詳細度 0,2,1 で復活させる。
 * ========================================================================== */
body[class*="zone-"] .lesson-article__body h2 {
  font-size: clamp(1.4rem, 3vw, 25.7px); /* カオナビ水準 25.7px */
  margin-bottom: var(--space-4, 24px);
}
body[class*="zone-"] .lesson-article__body h3 {
  font-size: var(--text-h4, 1.15rem);
  margin-bottom: var(--space-3, 16px);
}
body[class*="zone-"] .lesson-article__body p,
body[class*="zone-"] .lesson-article__body li {
  font-size: 17px; /* 記事メディア標準の可読サイズ(カオナビ水準) */
}
body[class*="zone-"] .lesson-article__body p {
  margin-bottom: 25.7px;
}

/* ─────────────────────────────────────────────────────────
   本文コールアウト（blockquoteマーカー装飾）＋コーチ吹き出し
   mb_lesson_decorate_callouts() が blockquote に class を付与。
   マーカー無しの blockquote は従来の引用スタイルのまま。
   ───────────────────────────────────────────────────────── */
.mb-callout {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.96em;
  line-height: 1.85;
}
.mb-callout > p { margin: 0; }
.mb-callout > p + p { margin-top: 8px; }

/* 解説：青。概念を一段深く */
.mb-callout--kaisetsu { border-left-color: #3b82f6; background: #eff6ff; }
/* Point：黄。要点の凝縮 */
.mb-callout--point { border-left-color: #f59e0b; background: #fffbeb; }
.mb-callout--point > p:first-child { font-weight: 700; }
/* 用語：紫。語の補足 */
.mb-callout--term { border-left-color: #8b5cf6; background: #f5f3ff; }
/* コピペ：緑。そのまま使える文例 */
.mb-callout--copy { border-left-color: #10b981; background: #ecfdf5; }
.mb-callout--copy > p:last-child {
  margin-top: 6px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px dashed #6ee7b7;
  border-radius: 6px;
  font-family: "SFMono-Regular", "Consolas", "Noto Sans Mono CJK JP", monospace;
  font-size: 0.92em;
}
/* メモ：手書き風の付箋。ponytail: Webフォント依存を避け斜体+付箋色で代替 */
.mb-callout--memo {
  border-left: none;
  background: #fffdf0;
  border: 1px solid #fde68a;
  box-shadow: 1px 2px 0 rgba(0,0,0,.05);
  font-style: italic;
  color: #6b5e2a;
}

/* コーチ・マナの吹き出し */
.mb-coach {
  position: relative;
  margin: 26px 0;
  padding: 16px 18px 16px 60px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  font-size: 0.96em;
  line-height: 1.9;
}
.mb-coach::before {
  content: "🎓";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 50%;
}
.mb-coach > p { margin: 0; }
.mb-coach strong { color: #0369a1; }
