@charset "UTF-8";
/* =============================================================
   ローディング（2026-11-16）
   YouTube「そもそもRegTechって何？」のオープニング（動画 23.76 秒〜・ロゴの組み上がり約 3.4 秒）を、
   動きの順番と形はそのままに約 2.4 倍速で再現する。
     0.05s 線が中央から左右へ引かれる
     0.25s 3つの点が順に置かれる（0.12 秒おき・弾む）
     0.58s 線が縮んで消える
     0.66s 括弧が左右から閉じる
     0.88s マークが左へ寄りながら縮み、ロゴの定位置へ
     1.02s 「HANAPANA TECH」の文字が左から現れる
     1.18s 「Turn Regulation into Technology.」が浮かぶ
     1.45s 幕が上がる（main.js の data-intro-hold。幕は 0.45 秒）→ 約 1.9 秒で終わる
   地の色・線のグラデ・ロゴの色は動画と同じ値。
   style.css の .intro（固定・全画面・中央寄せ・幕の上がり方）はそのまま使う。
   ============================================================= */

.intro.io {
  background: linear-gradient(180deg, #d3ecef 0%, #e8f4f5 38%, #f7f9fb 82%);
}
.io-stage {
  --w: min(560px, 78vw);            /* ロゴの横幅（動画では画面幅の 57%） */
  position: relative;
  width: var(--w);
  aspect-ratio: 970.6 / 161.2;
}
.io-logo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* 線：動画ではロゴ幅の 82%。マークが画面中央にある間の中心に引く */
.io-line {
  position: absolute; top: 50%; left: 50%;
  width: calc(var(--w) * .818); height: 3px;
  margin: -1.5px 0 0 calc(var(--w) * -.409);
  border-radius: 2px;
  background: linear-gradient(96deg, #21b6c7 0%, #0f8e9b 38%, #087f8c 62%, #074c63 100%);
  transform: scaleX(0);
}

/* ロゴ全体：最初はマークを画面中央に置き 1.25 倍（マークの中心 = 86.8 / 970.6 = 8.94%） */
.io-logo { transform-origin: 8.943% 50%; transform: translateX(41.057%) scale(1.25); }

/* 3つの点：その場で 0 → 1 に弾む */
.io-d { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }

/* 括弧：左右 123.5（SVG の単位。動画の 140px 相当）から閉じる */
.io-lb { transform: translateX(-123.5px); opacity: 0; }
.io-rb { transform: translateX(123.5px);  opacity: 0; }

/* 文字：左から右へ現れる。clip-path は SVG 全体が基準なので、文字の左端（224.6 / 970.6 = 23.1%）から開く */
.io-word { clip-path: inset(0 76.8% 0 0); opacity: 0; }
.io-tag  { opacity: 0; transform: translateY(8px); }

/* --- 再生 --- */
.intro.io.is-in .io-line { animation: ioLineIn .32s cubic-bezier(.16,1,.3,1) .05s forwards, ioLineOut .22s cubic-bezier(.55,0,.9,.4) .58s forwards; }
.intro.io.is-in .io-d1 { animation: ioDot .24s cubic-bezier(.34,1.9,.64,1) .25s forwards; }
.intro.io.is-in .io-d2 { animation: ioDot .24s cubic-bezier(.34,1.9,.64,1) .37s forwards; }
.intro.io.is-in .io-d3 { animation: ioDot .24s cubic-bezier(.34,1.9,.64,1) .49s forwards; }
.intro.io.is-in .io-lb,
.intro.io.is-in .io-rb   { animation: ioBracket .26s cubic-bezier(.16,1,.3,1) .66s forwards; }
.intro.io.is-in .io-logo { animation: ioLock .42s cubic-bezier(.87,0,.13,1) .88s forwards; }
.intro.io.is-in .io-word { animation: ioWord .4s cubic-bezier(.16,1,.3,1) 1.02s forwards; }
.intro.io.is-in .io-tag  { animation: ioTag .26s cubic-bezier(.22,.8,.24,1) 1.18s forwards; }

/* 幕が上がるとき：ロゴは少し上へ抜けながら消える（動画の締めと同じ向き） */
.intro.io.is-out .io-stage { animation: ioStageOut .3s cubic-bezier(.5,0,.8,.4) forwards; }

@keyframes ioLineIn   { to { transform: scaleX(1); } }
@keyframes ioLineOut  { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0); opacity: 0; } }
@keyframes ioDot      { to { transform: scale(1); } }
@keyframes ioBracket  { to { transform: none; opacity: 1; } }
@keyframes ioLock     { to { transform: none; } }
@keyframes ioWord     { to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes ioTag      { to { opacity: 1; transform: none; } }
@keyframes ioStageOut { to { opacity: 0; transform: translateY(-20px); } }
