/*
  コーポレート共通：動きの土台
  - ページ切り替え：白く短くフェード
  - 端末の「視差効果を減らす」設定では動きを止める
*/
:root {
  --fs-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fs-ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- ページ切り替え ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fs-page-out 0.2s var(--fs-ease-hover) both;
}

::view-transition-new(root) {
  animation: fs-page-in 0.4s var(--fs-ease-out) both;
}

@keyframes fs-page-out {
  to {
    opacity: 0;
  }
}

@keyframes fs-page-in {
  from {
    opacity: 0;
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
