/* ============================================
   SiteVibe テンプレート — アニメーション
   ============================================ */

/* ═══ @keyframes ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroTitle {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ═══ ヒーロー初期表示 ═══ */
.anim-fade-in { animation: fadeIn 0.6s 0.2s both; }
.anim-hero-title { animation: heroTitle 0.8s 0.3s var(--ease) both; }
.anim-hero-sub { animation: fadeInUp 0.6s 0.5s var(--ease) both; }
.anim-hero-cta { animation: heroScale 0.6s 0.7s var(--ease) both; }

/* 背景Blob */
.hero__blob--1 { animation: blobFloat 20s ease-in-out infinite; }
.hero__blob--2 { animation: blobFloat 25s ease-in-out infinite reverse; }

/* スクロールヒント */
.hero__scroll { animation: scrollBounce 2s ease-in-out infinite; }

/* ═══ スクロール連動（IntersectionObserver） ═══ */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
}

[data-anim].visible {
  animation: fadeInUp 0.6s var(--ease) both;
}

/* ═══ prefers-reduced-motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-anim] {
    opacity: 1;
    transform: none;
  }
}
