/* titleテキストのアニメーション関連 */

/* ホバーエフェクト */
.work-card-image {
  transition: transform 0.4s ease;
}
.group:hover .work-card-image {
  transform: scale(1.05);
}

/* タイトルアニメーション */
@keyframes float-and-slant {
  0% {
    transform: rotate(-7deg) translateY(0px);
  }
  50% {
    transform: rotate(-7deg) translateY(-20px);
  }
  100% {
    transform: rotate(-7deg) translateY(0px);
  }
}
.ryumofu-heading {
  animation: float-and-slant 4s ease-in-out infinite;
}

/* 各文字にアニメーションを適用する */

/* 色の違い */
.head-letter {
  color: #D7743B;
}
.rest-letters {
  color: #F4B54E;
}

.wave-wrapper {
  position: absolute; /* ★追加 */
  top: 0;             /* ★追加 */
  left: 0;            /* ★追加 */
  display: flex;
  justify-content: flex-start; /* タイトル全体を左側に寄せる */
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding-top: 5.5rem;
  padding-left: 3rem;
}

.wavy-text {
  display: inline-block;
  flex-direction: column;
  align-items: center; /* 各行の中央揃え */
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 4rem);
  line-height: 1;
  font-weight: bold;
}

.wavy-text::before {
  /* 以下、文字色やサイズなど、必要なスタイルを追加 */
  color: white;
  font-size: 2.5rem;
  /* (例)文字のスタイル */
}

.wavy-text span {
  display: inline-block;
  position: relative;
}

/* モバイルで読みやすいように調整 */
@media (max-width: 700px) {
  .wavy-text {
    font-size: 2.5rem;
  }
}

@media (max-width: 450px) {
    .wave-wrapper {
        justify-content: center;
        padding-left: 0rem;
    }
}

@media (orientation: landscape) and (max-height: 450px) {
  .wave-wrapper {
    padding-left: 10rem;
  }
  .wavy-text {
    font-size: 2.3rem;
  }
}

.wavy-line {
  display: block; /* ブロック要素として扱う */
  margin-bottom: 1.5rem; /* ← この値で行間の高さを自由に調整できます */
}

/* 最後の行には余白が不要な場合 */
.wavy-line:last-child {
  margin-bottom: 0;
}


