


  /* ========== アニメーション定義 ========== */

/* スクロールで左から */
@keyframes slideInLeftOnScroll {
  from {
      opacity: 0;
      transform: translateX(-300px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* 初期表示で左から */
@keyframes slideInLeftInitial {
  from {
      opacity: 0;
      transform: translateX(-100%);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* 下からフェードイン */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ========== クラス適用 ========== */

/* スクロールで左から */
.slide-in-left {
  opacity: 0;
  transform: translateX(-300px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.slide-in-left.visible {
  animation: slideInLeftOnScroll 0.4s ease-out forwards;
}

/* 初期表示で左から */
.slide-in-initial {
  animation: slideInLeftInitial 1s ease-out forwards;
}

/* スクロールで下から（fade-up） */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  animation: fadeInUp 1s ease-out forwards;
}

/* 横文字で一文字ずつ出て来るアニメーション */
.horizontal-title {
  font-size: clamp(18px,2.4vw,24px);
  font-weight: 400;
  line-height: 1.8;
  display: inline-block;
  white-space: normal;
}

.horizontal-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px); /* 下からふわっと */
  animation: fadeInChar 1s ease-out forwards;
}

@keyframes fadeInChar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.horizontal-title span:nth-child(1) { animation-delay: 0.2s; }
.horizontal-title span:nth-child(2) { animation-delay: 0.4s; }
.horizontal-title span:nth-child(3) { animation-delay: 0.6s; }
.horizontal-title span:nth-child(4) { animation-delay: 0.8s; }
.horizontal-title span:nth-child(5) { animation-delay: 1.0s; }
.horizontal-title span:nth-child(6) { animation-delay: 1.2s; }
.horizontal-title span:nth-child(7) { animation-delay: 1.4s; }
.horizontal-title span:nth-child(8) { animation-delay: 1.6s; }
.horizontal-title span:nth-child(9) { animation-delay: 1.8s; }
.horizontal-title span:nth-child(10) { animation-delay: 2.0s; }
.horizontal-title span:nth-child(11) { animation-delay: 2.2s; }
.horizontal-title span:nth-child(12) { animation-delay: 2.4s; }
.horizontal-title span:nth-child(13) { animation-delay: 2.6s; }
.horizontal-title span:nth-child(14) { animation-delay: 2.8s; }
.horizontal-title span:nth-child(15) { animation-delay: 3.0s; }
.horizontal-title span:nth-child(16) { animation-delay: 3.2s; }


/*--------------------

見出しの横に丸を３つ作るアニメーション

------------------------------*/
.heading-with-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  position: relative;
}

.dots {
  display: flex;
  gap: 0.3em;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #2F9F0D;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* アニメーション開始用クラス */
.dots.animate .dot:nth-child(1) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
  background-color: #72b55e;
}
.dots.animate .dot:nth-child(2) {
  transition-delay: 0.9s;
  opacity: 1;
  transform: translateY(0);
  background-color: #90ca7f;
}
.dots.animate .dot:nth-child(3) {
  transition-delay: 1.2s;
  opacity: 1;
  transform: translateY(0);
  background-color: #bde2b1;
}