/* ============================================================
   UIブラッシュアップ(視覚的な磨き込み)
   - 読了プログレスバー
   - スクロール・リビール
   - 記事末尾オーナメント
   - マストヘッド登場アニメ
   ============================================================ */

/* ============================================================
   1. 読了プログレスバー(記事ページ上部)
   ============================================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9998;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0;
  background: var(--bz-accent, #e11d48);
  transition: width 0.1s linear;
}

/* ============================================================
   2. スクロール・リビール(カードのフェードアップ)
   - JSが .reveal を付与した要素のみ対象(JS無効時は通常表示)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   3. 記事末尾オーナメント
   ============================================================ */

.single-article .article-body::after {
  content: '◆';
  display: block;
  text-align: center;
  margin: 48px 0 8px;
  font-size: 14px;
  color: var(--bz-accent, #e11d48);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

/* ============================================================
   4. マストヘッド登場アニメ(ページロード時)
   ============================================================ */

@keyframes bz-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.audience-hero__masthead-title {
  animation: bz-fade-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.audience-hero__masthead-issue {
  animation: bz-fade-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

.audience-hero__tagline,
.audience-hero__lane-title {
  animation: bz-fade-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.15s both;
}

.audience-hero__lead,
.audience-hero__lane-sub {
  animation: bz-fade-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.25s both;
}

.audience-hero__cards {
  animation: bz-fade-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.35s both;
}

/* ============================================================
   アクセシビリティ: モーション低減設定を尊重
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reading-progress { display: none; }
  .audience-hero__masthead-title,
  .audience-hero__masthead-issue,
  .audience-hero__tagline,
  .audience-hero__lane-title,
  .audience-hero__lead,
  .audience-hero__lane-sub,
  .audience-hero__cards {
    animation: none !important;
  }
}
