/* 高度なアニメーション効果 */

/* フェードイン・アップアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左からスライドイン */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 右からスライドイン */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スケールアニメーション */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 回転フェード */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* パルスアニメーション */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* フローティングアニメーション */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* グローアニメーション */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.3);
  }
}

/* グラデーション移動 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* シマーエフェクト */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 適用クラス */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-rotate-in {
  animation: rotateIn 0.7s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* 遅延アニメーション */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ホバーエフェクト */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
  animation: glow 1s ease-in-out;
}

/* パララックス効果 */
.parallax {
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}

/* スムーズなトランジション */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* カスタムイージング */
.ease-bounce {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ease-elastic {
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* レスポンシブアニメーション制御 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 日本酒らしい波のアニメーション */
@keyframes sakeWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.sake-wave-animation {
  background: linear-gradient(45deg, #a2c4e0 0%, #6ba3d6 25%, #4a7ba7 50%, #6ba3d6 75%, #a2c4e0 100%);
  background-size: 200% 200%;
  animation: sakeWave 4s ease-in-out infinite;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .animate-glow {
    animation: glow 2s ease-in-out infinite;
  }
  
  @keyframes glow {
    0% {
      box-shadow: 0 0 5px rgba(107, 163, 214, 0.4);
    }
    50% {
      box-shadow: 0 0 20px rgba(107, 163, 214, 0.7);
    }
    100% {
      box-shadow: 0 0 5px rgba(107, 163, 214, 0.4);
    }
  }
}