/* 01 スプラッシュ（約2.4秒）
   島がぽよんと現れる → 雲が流れる → 種が落ちてはねる → 双葉がひらく → 名前が浮かぶ
   おだやかモードでも動かす（base.css の止める指定から外してある） */

.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #FDE7EE 0%, #E4F0FB 100%);
  cursor: pointer;
  transition: opacity .45s ease;

  /* 画面が見えるまでは止めておく（--go が付いたら動く） */
  &:not(.splash--go) * {
    animation-play-state: paused !important;
  }
}

.splash--out {
  opacity: 0;
  pointer-events: none;
}

.splash__art {
  width: min(62vw, 250px);
  height: auto;
  overflow: visible;
}

/* SVG の部品を、それぞれの中心で拡大・縮小させる */
.splash__part {
  transform-box: fill-box;
}

.splash__island {
  transform-origin: 50% 60%;
  animation: splash-island .7s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}

.splash__cloud {
  animation: splash-cloud .9s ease-out .35s both;
}

.splash__seed {
  animation: splash-seed .75s cubic-bezier(.3, .9, .4, 1) .55s both;
}

.splash__shadow {
  transform-origin: 50% 50%;
  animation: splash-shadow .75s ease-out .55s both;
}

.splash__sprout {
  transform-origin: 50% 100%;
  animation: splash-sprout .55s cubic-bezier(.34, 1.56, .64, 1) 1.15s both;
}

.splash__dot {
  transform-origin: 50% 50%;
  animation: splash-dot .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

.splash__word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: splash-word .6s ease-out 1.25s both;
}

.splash__ja {
  font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: .08em;
  color: var(--ink);
}

.splash__ja-tail {
  color: var(--mint);
}

.splash__en {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .06em;
  color: var(--sub);
}

@keyframes splash-island {
  0% { transform: scale(0, 0); }
  60% { transform: scale(1.08, .92); }
  100% { transform: scale(1, 1); }
}

@keyframes splash-cloud {
  0% { transform: translateX(36px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

@keyframes splash-seed {
  0% { transform: translateY(-190px); opacity: 0; }
  15% { opacity: 1; }
  62% { transform: translateY(0) scale(1.12, .86); }
  78% { transform: translateY(-14px) scale(.96, 1.05); }
  100% { transform: none; }
}

@keyframes splash-shadow {
  0% { transform: scale(.2); opacity: 0; }
  62% { transform: scale(1.1); opacity: .1; }
  100% { transform: scale(1); opacity: .1; }
}

@keyframes splash-sprout {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes splash-dot {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes splash-word {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
