/* ========================================
   アニメーション：キーフレーム定義
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLetter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drip {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(80px);
    opacity: 0;
  }
}

/* ========================================
   アニメーション：ユーティリティクラス
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateX(120px);
  transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1),
              transform 2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animation {
  opacity: 0;
}

.scroll-animation.animated {
  animation: fadeInUp 0.6s ease forwards;
}

.js-typing span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInLetter 0.6s forwards;
}

/* ========================================
   ロゴアニメーション
======================================== */
.logo-animation {
  height: 40px;
  width: auto;
  overflow: visible;
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 100%;
  width: auto;
  overflow: visible;
}

/* ========================================
   topヒーローセクションの演出（アニメーション含む）
======================================== */
.hero {
  position: relative;
  background-color: #f5f5f5;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 50%);
  z-index: -1;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: translateY(-10px);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}
