/* hero-town: ヒーローアニメーション（DESIGN.md §1.3）。セレクタは .yt-hero から書き、モック側の img 指定に影響されない */
.yt-hero { position:relative; width:100%; aspect-ratio:3/2; overflow:hidden; contain:layout paint; }
.yt-hero__static, .yt-hero__anim { position:absolute; inset:0; width:100%; height:100%; }
.yt-hero .yt-hero__static { display:block; max-width:none; }
.yt-hero__anim { opacity:0; transition:opacity .4s ease; pointer-events:none; }
.yt-hero.is-live .yt-hero__anim { opacity:1; }
/* 静止画を隠すのはフェードイン完了後（JS が is-settled を付ける） */
.yt-hero.is-settled .yt-hero__static { visibility:hidden; }
.yt-hero__anim .l, .yt-hero__anim .grp { position:absolute; inset:0; }
.yt-hero__anim .grp { isolation:isolate; }
/* 影は「乗数そのもの」のPNG（白=影なし）を multiply で重ねる（DESIGN.md §11.2）。.yt-hero__anim を isolate して、静止画など外側とは混ぜない */
.yt-hero__anim { isolation:isolate; }
.yt-hero__anim .sh { mix-blend-mode:multiply; }
.yt-hero__anim img { position:absolute; display:block; max-width:none; will-change:transform,opacity; user-select:none; }
.yt-hero__anim img.fill { inset:0; width:100%; height:100%; }
.yt-hero__anim img.l-bg, .yt-hero__anim img.l-fg { inset:0; width:100%; height:100%; will-change:auto; }
/* 重みづけ平均のクロスフェード（§4.3）。JS が対応を判定して .yt-hero に is-plus を付ける */
.yt-hero.is-plus .plus { mix-blend-mode:plus-lighter; }
@media (prefers-reduced-motion: reduce) {
  .yt-hero__anim { display:none; }
  .yt-hero .yt-hero__static { visibility:visible !important; }
}
