/* ==========================================================================
   animations.css — keyframes only（利用はcomponents側のクラスで）
   定義：centralGlow / ideasToLight / sparkleEffect / fadeInUp / bounce
   ========================================================================== */

/* 中央の光の脈動 */
@keyframes centralGlow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* 粒子が中央に集まるような動き */
@keyframes ideasToLight {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-20px) translateX(-10px) rotate(90deg) scale(1.1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-40px) translateX(0) rotate(180deg) scale(0.8);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-20px) translateX(10px) rotate(270deg) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg) scale(1);
    opacity: 0.8;
  }
}

/* きらめき（スクロール演出などで使用） */
@keyframes sparkleEffect {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
    opacity: 1;
  }
  66% {
    transform: translateY(-60px) rotate(240deg);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-90px) rotate(360deg);
    opacity: 0.6;
  }
}

/* フェードイン + 上方向へ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 軽いバウンス */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* （任意）簡易ユーティリティ：クラスで手早く適用したいときに使用 */
.anim-centralGlow {
  animation: centralGlow 8s ease-in-out infinite;
}
.anim-ideasToLight {
  animation: ideasToLight 12s ease-in-out infinite;
}
.anim-sparkle {
  animation: sparkleEffect 15s linear infinite;
}
.anim-fadeInUp {
  animation: fadeInUp 1s ease-out both;
}
.anim-bounce {
  animation: bounce 2s infinite;
}

/* ==========================================================================
   ヒーローセクション 
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #ffffff);
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* 中央の光る効果 */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  border-radius: 50%;
  animation: centralGlow 8s ease-in-out infinite;
  z-index: 1;
}

/* SVGドットパターンアニメーション（白いドットが中央に集まる） */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.6"/><circle cx="80" cy="80" r="2.5" fill="%23ffffff" opacity="0.5"/><circle cx="40" cy="60" r="1.5" fill="%23ffffff" opacity="0.7"/><circle cx="70" cy="30" r="2" fill="%23ffffff" opacity="0.6"/><circle cx="15" cy="75" r="1.8" fill="%23ffffff" opacity="0.5"/><circle cx="85" cy="15" r="1.2" fill="%23ffffff" opacity="0.8"/><circle cx="30" cy="40" r="1.6" fill="%23ffffff" opacity="0.6"/><circle cx="60" cy="85" r="2.2" fill="%23ffffff" opacity="0.5"/></svg>')
    repeat;
  animation: ideasToLight 12s ease-in-out infinite;
  z-index: 1;
}

/* 中央の光るアニメーション */
@keyframes centralGlow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* アイデアが光に変わるアニメーション */
@keyframes ideasToLight {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-20px) translateX(-10px) rotate(90deg) scale(1.1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-40px) translateX(0px) rotate(180deg) scale(0.8);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-20px) translateX(10px) rotate(270deg) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    opacity: 0.8;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, rgba(219, 234, 254, 0.3), rgba(239, 246, 255, 0.2));
  z-index: 0;
  opacity: 0.6;
}

/* 追加の光の粒子効果 */
.hero-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><circle cx="75" cy="30" r="1" fill="%23ffffff" opacity="0.9"/><circle cx="120" cy="75" r="0.8" fill="%23ffffff" opacity="0.8"/><circle cx="30" cy="120" r="1.2" fill="%23ffffff" opacity="0.7"/><circle cx="45" cy="45" r="0.6" fill="%23ffffff" opacity="0.9"/><circle cx="105" cy="105" r="1" fill="%23ffffff" opacity="0.8"/></svg>')
    repeat;
  animation: sparkleEffect 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* きらめき効果 */
@keyframes sparkleEffect {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
    opacity: 1;
  }
  66% {
    transform: translateY(-60px) rotate(240deg);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-90px) rotate(360deg);
    opacity: 0.6;
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 60px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
  text-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 0 1px 2px rgba(55, 65, 81, 0.1);
}

/* ヒーローCTAボタンのコンテナ */
.hero-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}
