/* =========================================================
   ロゴのオープニング：矢印が外から集まってロゴになる（約2秒・1回だけ）
   ========================================================= */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: #fff; cursor: pointer; transition: opacity .5s ease, visibility .5s ease;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro-on body { overflow: hidden; }

.intro__logo { position: relative; width: min(640px, 80vw); aspect-ratio: 896 / 416; }
.intro__logo img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity; }
.intro__skip { position: absolute; right: var(--s3); bottom: var(--s3); font-size: 12px; line-height: 24px; color: var(--mute); }

/* 全パーツを「o」と同じ動きにそろえる：それぞれの中心から、ふわっと拡大しながらフェードイン */
.p--arrow-up  { transform-origin: 18.5% 56.5%; }
.p--arrow-arc { transform-origin: 50.2% 32.5%; }
.p--s-top     { transform-origin: 25.4% 36.2%; }
.p--s-bottom  { transform-origin: 24.6% 76.8%; }
.p--hyphen    { transform-origin: 40.7% 73.1%; }
.p--c         { transform-origin: 54.6% 69.7%; }
.p--o-ring    { transform-origin: 70.1% 74.3%; }
.p--r         { transform-origin: 82.3% 74.4%; }
.p--e         { transform-origin: 92.4% 74.4%; }
.p--o-inner   { transform-origin: 70.2% 74.4%; }
.p--o-dot     { transform-origin: 70.2% 74.2%; }

.intro.is-playing .p { animation: in-pop .4s cubic-bezier(.2,.8,.2,1.4) both; }
.intro.is-playing .p--arrow-up  { animation-delay: .10s; }
.intro.is-playing .p--arrow-arc { animation-delay: .30s; }
.intro.is-playing .p--s-top     { animation-delay: .50s; }
.intro.is-playing .p--s-bottom  { animation-delay: .60s; }
.intro.is-playing .p--hyphen    { animation-delay: .75s; }
.intro.is-playing .p--c         { animation-delay: .85s; }
.intro.is-playing .p--o-ring    { animation-delay: .95s; }
.intro.is-playing .p--r         { animation-delay: 1.05s; }
.intro.is-playing .p--e         { animation-delay: 1.15s; }
.intro.is-playing .p--o-inner   { animation-delay: 1.30s; }
.intro.is-playing .p--o-dot     { animation-delay: 1.45s; animation-timing-function: cubic-bezier(.2,.8,.2,1.6); }

@keyframes in-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .intro-on .intro { display: none; }
}

/* 弾む動きが画面の外にはみ出さないように */
.intro-on .intro { overflow: hidden; }
