 /*--------------------
 
 テキストアニメーション「グレイテキスト→フェードインテキスト」

 --------------------*/
 
 /* アニメーション全体のコンテナ「グレイテキスト→フェードインテキスト」 */
 .fade-slide-text-gray-white {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* グレーのテキスト「グレイテキスト→フェードインテキスト」 */
.text-gray-layer {
    position: relative;
    display: inline-block;
    clip-path: inset(0 100% 0 0); /* 初期状態で隠す */
    transition: clip-path 0.8s cubic-bezier(0.43, 0.05, 0.17, 1);
}
.text-gray-layer-01{
    color: rgba(255, 255, 255, 0.3);
}
.text-gray-layer-02{
    color: rgba(0, 0, 0, 0.3);
}

/* 白いテキスト（上書き用）「グレイテキスト→フェードインテキスト」 */
.text-gray-layer::after {
    content: attr(data-text);
    white-space: pre-wrap; /* ←これが改行を効かせるポイント */
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.43, 0.05, 0.17, 1);
    transition-delay: 0.3s;
}
.text-gray-layer-01::after{
    color: white;
}
.text-gray-layer-02::after{
    color: var(--base-black-color);
}

/* アニメーション開始クラス（スクロールで追加）「グレイテキスト→フェードインテキスト」 */
.fade-slide-text-gray-white.animate-gray-white .text-gray-layer {
    clip-path: inset(0 0 0 0); /* グレーの文字をスライドイン */
}
/*白い文字をスライドイン「グレイテキスト→フェードインテキスト」*/
.fade-slide-text-gray-white.animate-gray-white .text-gray-layer::after {
    clip-path: inset(0 0 0 0); 
}



/*バブルアニメーション*/
/* バブル背景（親） */
/* バブル背景 */
.bubble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
  }
  
  /* バブル共通 */
  .bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgb(0 207 247), rgba(48, 199, 207, 0.1));
    border-radius: 50%;
    animation: floatBubble var(--duration, 10s) infinite ease-in-out;
    box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.3),
                inset 4px 4px 10px rgba(0, 0, 0, 0.1),
                0 0 8px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
  }
  
  /* バブル個別（10個） */
  .bubble:nth-child(1)  { left: 5%;  width: 25px; height: 25px;  --duration: 9s; }
  .bubble:nth-child(2)  { left: 15%; width: 40px; height: 40px;  --duration: 10s; }
  .bubble:nth-child(3)  { left: 25%; width: 35px; height: 35px;  --duration: 8s; }
  .bubble:nth-child(4)  { left: 35%; width: 50px; height: 50px;  --duration: 11s; }
  .bubble:nth-child(5)  { left: 45%; width: 30px; height: 30px;  --duration: 7s; }
  .bubble:nth-child(6)  { left: 55%; width: 38px; height: 38px;  --duration: 9s; }
  .bubble:nth-child(7)  { left: 65%; width: 33px; height: 33px;  --duration: 8s; }
  .bubble:nth-child(8)  { left: 75%; width: 48px; height: 48px;  --duration: 10s; }
  .bubble:nth-child(9)  { left: 85%; width: 28px; height: 28px;  --duration: 7.5s; }
  .bubble:nth-child(10) { left: 95%; width: 45px; height: 45px;  --duration: 9.5s; }
  
  /* 浮遊アニメーション */
  @keyframes floatBubble {
    0% {
      transform: translateY(0) scale(1);
      opacity: 0;
    }
    30% {
      opacity: 0.4;
    }
    100% {
      transform: translateY(-100vh) scale(1.2);
      opacity: 0;
    }
  }