@charset "UTF-8";
/* =========================================================
   FVアニメーション（全作品共通・このファイルは編集しない）
   js/fv.js とセットで使用。詳しくは「FVアニメーション説明書.md」

   ■ 書き方：動き ＋ 位置 ＋ スクロール表示（任意）
     <h1 class="fv-h1-pop fv-center fv-scroll"><img …></h1>

   ■ hタグ用（強さ h1 ＞ オプション ＞ h2 ＞ モブ）
     h1    fv-h1-pop     ポンッと弾む
           fv-h1-slam    叩きつけ＋画面が揺れて光る
           fv-h1-focus   強いぼかしから焦点が合う
           fv-h1-wipe    光の筋で左から現れる
     h2    fv-h2-drop    上から落ちてバウンド
           fv-h2-dash    左からダッシュ
           fv-h2-curtain 中央からカーテンが開く
           fv-h2-rise    ぼかしながら下から浮かぶ
     オプ  fv-opt-pop    スタンプのように押されて着地（pop・slam・drop・dash と合う）
           fv-opt-soft   キラッと光って現れる（focus・wipe・curtain・rise と合う）
           ※ 特典・コラボ告知など、普段はない追加コンテンツを目立たせる用
     モブ  fv-mob        その場でフェード（著者・発売日など）

   ■ figure用
     統合版（キャラ背景1枚）  fv-full-zoom / fv-full-blur / fv-full-dawn / fv-full-flash
     複合版のキャラ           fv-chara-up / fv-chara-pop / fv-chara-zoom / fv-chara-dawn
     複合版の背景             fv-bg-fade / fv-bg-zoom

   ■ fv-center … 左右中央寄せ（transform: translateX(-50%) は使わない）
   ■ fv-scroll … 画面に見えたら再生（付けない要素はページ表示時に再生）
   ■ 順番 … 背景（full・bg）→ キャラ（chara）→ HTMLに書いた順
           変える場合は fv-o1〜fv-o9

   ■ FV以外のスクロール表示（このファイルの最後）
     sc-fade    … 見えたら上からフェード          <p class="sc-fade">
     sc-stagger … 親に付けると子要素が順番に出る  <ul class="sc-stagger"><li>…
========================================================= */

/* ---------- 位置 ---------- */
.fv-center{
  left: 50%;
  translate: -50% 0;
}

/* ---------- 順番の上書き ---------- */
#visual .fv-o1{ --fv-order: 1 !important; }
#visual .fv-o2{ --fv-order: 2 !important; }
#visual .fv-o3{ --fv-order: 3 !important; }
#visual .fv-o4{ --fv-order: 4 !important; }
#visual .fv-o5{ --fv-order: 5 !important; }
#visual .fv-o6{ --fv-order: 6 !important; }
#visual .fv-o7{ --fv-order: 7 !important; }
#visual .fv-o8{ --fv-order: 8 !important; }
#visual .fv-o9{ --fv-order: 9 !important; }

/* ---------- 仕組み（fv.js が .fv-item と .is-animated を付与。手で付ける必要なし） ---------- */
.fv-js #visual :is([class*="fv-h1-"], [class*="fv-h2-"], [class*="fv-opt-"], [class~="fv-mob"],
                   [class*="fv-full-"], [class*="fv-chara-"], [class*="fv-bg-"]):not(.is-animated){
  opacity: 0;
}
#visual{
  --fv-step: .3s;   /* 1つ進むごとの待ち時間 */
  --ease-out:   cubic-bezier(.16, 1, .3, 1);     /* スッと止まる */
  --ease-soft:  cubic-bezier(.22, 1, .36, 1);    /* ゆっくり止まる */
  --ease-pop:   cubic-bezier(.34, 1.56, .64, 1); /* 弾む */
  --ease-pop-s: cubic-bezier(.34, 1.3, .64, 1);  /* 少し弾む */
  --ease-in:    cubic-bezier(.55, 0, 1, .45);    /* 叩きつけ */
  --ease-slow:  cubic-bezier(.25, .1, .25, 1);
}
#visual .fv-item.is-animated{
  animation-name: var(--fv-anim, fvIn);
  animation-duration: var(--fv-dur, .6s);
  animation-timing-function: var(--fv-ease, ease-out);
  animation-delay: calc(var(--fv-order, 0) * var(--fv-step));
  animation-fill-mode: both;
}
/* スクロールで後から見えた要素は待たずに再生 */
#visual .fv-item.is-late.is-animated{
  animation-delay: .1s;
}

/* ---------- 共通の動き ----------
   各クラスは開始状態だけを変数で指定する
   --fx/--fy 移動  --fs 拡大率  --fr 回転  --fk 傾き  --fb ぼかし  --fbr 明るさ */
@keyframes fvIn {
  0% {
    opacity: 0;
    transform: translate(var(--fx, 0), var(--fy, 0)) scale(var(--fs, 1)) rotate(var(--fr, 0deg)) skewX(var(--fk, 0deg));
    filter: blur(var(--fb, 0px)) brightness(var(--fbr, 1));
  }
  100% { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   hタグ用
========================================================= */
/* h1（一番強い） */
.fv-h1-pop    { --fv-dur: .7s;  --fv-ease: var(--ease-pop);  --fs: .3; --fr: -6deg; }
.fv-h1-slam   { --fv-dur: .45s; --fv-ease: var(--ease-in);   --fs: 1.8; --fb: 4px; }
.fv-h1-focus  { --fv-dur: 1.6s; --fv-ease: var(--ease-soft); --fs: 1.1; --fb: 18px; }
.fv-h1-wipe   { --fv-dur: 1.8s; --fv-ease: cubic-bezier(.65, 0, .35, 1); --fv-anim: fvWipe; }

/* h2 */
.fv-h2-drop   { --fv-dur: .7s;  --fv-anim: fvDrop; }
.fv-h2-dash   { --fv-dur: .55s; --fv-ease: var(--ease-out);  --fx: -20%; --fk: -15deg; }
.fv-h2-curtain{ --fv-dur: 1.4s; --fv-ease: cubic-bezier(.65, 0, .35, 1); --fv-anim: fvCurtain; }
.fv-h2-rise   { --fv-dur: 1s;   --fv-ease: var(--ease-soft); --fy: 24px; --fb: 8px; }

/* オプション（追加コンテンツ用。h1 と h2 の間の目立ち方） */
.fv-opt-pop   { --fv-dur: .6s;  --fv-anim: fvStamp; }                                  /* スタンプ */
.fv-opt-soft  { --fv-dur: 1.2s; --fv-anim: fvShine; }                                  /* キラッ */

/* モブ（一番控えめ：その場でフェードのみ） */
.fv-mob       { --fv-dur: .8s;  --fv-ease: ease-out; }

/* =========================================================
   figure用
========================================================= */
/* 統合版（キャラと背景が1枚） */
.fv-full-zoom { --fv-dur: .9s;  --fv-ease: var(--ease-out);  --fs: 1.12; }
.fv-full-blur { --fv-dur: 1.6s; --fv-ease: var(--ease-soft); --fs: 1.04; --fb: 10px; }
.fv-full-dawn { --fv-dur: 2.4s; --fv-ease: var(--ease-slow); --fs: 1.1; --fbr: 0; }
.fv-full-flash{ --fv-dur: .8s;  --fv-ease: var(--ease-out);  --fs: 1.05; --fbr: 3; }

/* 複合版：キャラ */
.fv-chara-up  { --fv-dur: 1s;   --fv-ease: var(--ease-out);  --fy: 8%; }
.fv-chara-pop { --fv-dur: .8s;  --fv-ease: var(--ease-pop);  --fy: 6%; --fs: .92; }
.fv-chara-zoom{ --fv-dur: .8s;  --fv-ease: var(--ease-out);  --fs: 1.15; --fb: 6px; }
.fv-chara-dawn{ --fv-dur: 1.8s; --fv-ease: var(--ease-slow); --fbr: 0; --fb: 6px; }

/* 複合版：背景（シンプル） */
.fv-bg-fade   { --fv-dur: 1s;   --fv-ease: ease-out; }
.fv-bg-zoom   { --fv-dur: 1.6s; --fv-ease: var(--ease-soft); --fs: 1.06; }

/* =========================================================
   特殊な動き
========================================================= */
/* opt-pop：スタンプのように押されて着地し、少し跳ね返る */
@keyframes fvStamp {
  0%   { opacity: 0; transform: scale(2) rotate(-12deg); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  55%  { opacity: 1; transform: scale(.92) rotate(2deg); animation-timing-function: ease-out; }
  75%  { transform: scale(1.04) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}

/* opt-soft：光った状態で現れ、少しその明るさを保ってから落ち着く */
@keyframes fvShine {
  0%   { opacity: 0; transform: scale(1.12); filter: blur(6px) brightness(2.5); animation-timing-function: ease-out; }
  35%  { opacity: 1; transform: scale(1.02); filter: blur(0px) brightness(2.2); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: none; filter: none; }
}

/* h2-drop：上から落ちてバウンド */
@keyframes fvDrop {
  0%   { opacity: 0; transform: translateY(-40px); animation-timing-function: ease-in; }
  50%  { opacity: 1; transform: translateY(6px); animation-timing-function: ease-out; }
  75%  { transform: translateY(-3px); }
  100% { opacity: 1; transform: none; }
}

/* h1-wipe：光の筋で左から現れる */
#visual .fv-h1-wipe.is-animated{
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
}
@keyframes fvWipe {
  0%   { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: brightness(1.8); }
  70%  { filter: brightness(1.3); }
  100% { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; filter: none; }
}

/* h2-curtain：中央からカーテンが開く */
@keyframes fvCurtain {
  0%   { opacity: 0; clip-path: inset(0 50% 0 50%); }
  20%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* h1-slam：着地で画面を揺らして光らせる（fv.js が #visual に fv-hit を付与） */
#visual > div::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
#visual.fv-hit > div{ animation: fvShake .45s linear; }
#visual.fv-hit > div::after{ animation: fvFlash .5s ease-out; }
@keyframes fvShake {
  0%, 100% { transform: none; }
  15% { transform: translate(-6px, 4px); }
  30% { transform: translate(5px, -5px); }
  45% { transform: translate(-4px, -2px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(-1px, 1px); }
}
@keyframes fvFlash {
  0%   { opacity: .6; }
  100% { opacity: 0; }
}

/* =========================================================
   FV以外のスクロール表示（ストーリー・キャラクターなど）
   sc-fade    … その要素が見えたら上からフェード
   sc-stagger … 親に付けると、子要素が見えた順に少しずつずれて出る
========================================================= */
.fv-js .sc-fade:not(.is-shown),
.fv-js .sc-stagger > :not(.is-shown){
  opacity: 0;
}
.sc-fade.is-shown,
.sc-stagger > .is-shown{
  animation: scFadeDown .5s ease-out var(--sc-delay, 0s) both;
}
@keyframes scFadeDown {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: none; }
}

/* 視差効果を減らす設定のユーザーにはアニメーションなしで表示 */
@media (prefers-reduced-motion: reduce) {
  .sc-fade.is-shown,
  .sc-stagger > .is-shown{
    animation: none !important;
  }
  .fv-js .sc-fade:not(.is-shown),
  .fv-js .sc-stagger > :not(.is-shown){
    opacity: 1 !important;
  }
  #visual .fv-item,
  #visual > div,
  #visual > div::after{
    animation: none !important;
  }
  .fv-js #visual :is([class*="fv-h1-"], [class*="fv-h2-"], [class*="fv-opt-"], [class~="fv-mob"],
                     [class*="fv-full-"], [class*="fv-chara-"], [class*="fv-bg-"]):not(.is-animated){
    opacity: 1 !important;
  }
}
