/* ==========================================================================
   News — ヒーロー専用スタイル
   .page-hero の基底定義は変更せず、.news-hero を併用クラスとして追加装飾する。
   記事一覧（.news-item / .news-cat）は既にモダン化済みのため対象外。
   ========================================================================== */

/* ---------- オーロラドリフト背景（ブランド2色が超低速で漂う） ---------- */
.news-hero::before,
.news-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.news-hero::before {
  width: clamp(420px, 46vw, 780px);
  height: clamp(420px, 46vw, 780px);
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.12) 0%, transparent 62%);
  animation: newsHeroDrift1 24s ease-in-out infinite alternate;
}

.news-hero::after {
  width: clamp(340px, 38vw, 620px);
  height: clamp(340px, 38vw, 620px);
  bottom: -24%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 196, 204, 0.1) 0%, transparent 62%);
  animation: newsHeroDrift2 30s ease-in-out infinite alternate;
}

@keyframes newsHeroDrift1 {
  to { transform: translate3d(-6vw, 5vh, 0) scale(1.14); }
}

@keyframes newsHeroDrift2 {
  to { transform: translate3d(5vw, -4vh, 0) scale(1.1); }
}

/* .container を背景より前面に固定（DOM順による重なり崩れを防止） */
.news-hero > .container {
  position: relative;
  z-index: 1;
}

/* ---------- 縦ドットタイムライン（お知らせが流れてくる感覚を演出） ---------- */
.news-hero-timeline {
  position: absolute;
  top: 50%;
  right: clamp(28px, 7vw, 108px);
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.2vw, 24px);
}

.news-hero-timeline::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--c-line) 12%,
    var(--c-line) 88%,
    transparent
  );
}

.news-hero-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-brand);
  opacity: 0.3;
  animation: newsHeroPulse 3.6s ease-in-out infinite;
}

.news-hero-dot:nth-child(2n) {
  background: var(--c-brand-2);
}

.news-hero-dot:nth-child(1) { animation-delay: 0s; }
.news-hero-dot:nth-child(2) { animation-delay: 0.45s; }
.news-hero-dot:nth-child(3) { animation-delay: 0.9s; }
.news-hero-dot:nth-child(4) { animation-delay: 1.35s; }
.news-hero-dot:nth-child(5) { animation-delay: 1.8s; }

@keyframes newsHeroPulse {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.85);
    box-shadow: none;
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 0 5px rgba(43, 92, 255, 0.12);
  }
}

/* 幅が狭いとテキストと干渉するため、余白が確保できる画面幅のみ表示 */
@media (max-width: 1180px) {
  .news-hero-timeline {
    display: none;
  }
}

/* ---------- reduced-motion: すべてのモーションを停止 ---------- */
@media (prefers-reduced-motion: reduce) {
  .news-hero::before,
  .news-hero::after {
    animation: none;
  }

  .news-hero-dot {
    animation: none;
    opacity: 0.55;
    transform: none;
  }

  .news-hero-dot:nth-child(odd) {
    opacity: 0.9;
  }
}
