/* ==========================================================================
   記事ページ（ブログ）共通スタイル
   ========================================================================== */

.breadcrumb {
  background: var(--c-ivory);
  border-bottom: 1px solid var(--c-border-soft);
  padding: 14px 0;
  overflow-x: auto;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--c-text-soft);
  white-space: nowrap;
}
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb a:hover { color: var(--c-navy); }
.breadcrumb li[aria-current] { color: var(--c-navy); font-weight: 700; }
.breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 24px;
}

/* ---- article header ---- */
.article-header { margin-bottom: 28px; }
.article-cat-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--cat-color, var(--c-navy));
  background: var(--cat-bg, var(--c-ivory));
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border-soft);
}
.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--c-text-soft);
}
.article-date svg { width: 15px; height: 15px; }

/* ---- placeholders (thumbnail / in-body images) ---- */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: var(--c-ivory);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-m);
  color: var(--c-text-soft);
  font-size: 0.85rem;
  padding: 32px 20px;
}
.media-placeholder svg { width: 30px; height: 30px; opacity: 0.5; }
.article-cover { aspect-ratio: 16 / 9; margin-bottom: 32px; }
.section-image { aspect-ratio: 16 / 9; margin: 20px 0; }
.section-image small { display: block; margin-top: 2px; font-size: 0.76rem; color: var(--c-text-soft); opacity: 0.85; }

/* ---- prose ---- */
.article-body { font-size: 0.98rem; color: var(--c-text); }
.article-body > p { margin-bottom: 20px; }
.article-lead { font-size: 1rem; }
.article-note {
  font-size: 0.82rem;
  color: var(--c-text-soft);
  border-left: 3px solid var(--c-gold);
  padding-left: 14px;
  margin-bottom: 28px;
}

/* ---- table of contents ---- */
.toc-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--c-ivory);
  border-radius: var(--radius-l);
  padding: 28px 26px;
  margin-bottom: 40px;
}
.toc-box__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-navy);
  text-align: center;
  margin-bottom: 14px;
}
.toc-box__list { flex: 1; counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.toc-box__list li { counter-increment: toc; margin-bottom: 10px; }
.toc-box__list li:last-child { margin-bottom: 0; }
.toc-box__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
}
.toc-box__list a:hover { color: var(--c-navy); }
.toc-box__list a::before {
  content: counter(toc) ".";
  flex-shrink: 0;
  color: var(--c-gold);
  font-weight: 700;
  font-family: var(--font-serif);
}
.toc-box__icon { flex-shrink: 0; color: var(--c-gold); display: none; }
.toc-box__icon svg { width: 64px; height: 64px; }

/* ---- h2 sections ---- */
.article-body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-navy);
  margin: 44px 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-gold);
  scroll-margin-top: 90px;
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body h2 .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-gold-light);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---- dialogue quote blocks ---- */
.dialogue {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--c-ivory);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.dialogue__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.dialogue__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dialogue__name { font-weight: 700; font-size: 0.84rem; color: var(--c-navy); margin-bottom: 4px; }
.dialogue__text { font-size: 0.92rem; color: var(--c-text); line-height: 1.7; }

/* ---- summary list ---- */
.article-body ul.summary-list { margin: 0 0 20px; padding-left: 0; }
.article-body ul.summary-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.94rem;
}
.article-body ul.summary-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
}

/* ---- video embed ---- */
.video-embed-wrap { margin: 28px 0; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-caption { margin-top: 10px; font-size: 0.84rem; color: var(--c-text-soft); }

.article-disclaimer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-soft);
  font-size: 0.78rem;
  color: var(--c-text-soft);
  line-height: 1.8;
}

/* ==========================================================================
   breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .article-title { font-size: 1.9rem; }
}

@media (min-width: 960px) {
  .toc-box__icon { display: block; }
  .article-title { font-size: 2.1rem; }
}
