/* トップページ用オープニング(ロゴ表示 → 線が伸びる → フェードアウト) */
html.op-lock { overflow: hidden; scrollbar-gutter: stable; }
html.op-lock body { overflow: hidden; }

/* オープニング中はヒーローのアニメーションを止め、幕が引き始めた瞬間に再生する */
html.op-lock .hero,
html.op-lock .hero * { animation-play-state: paused !important; }

.op-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  animation: opOut 1s ease 1.5s forwards;
}
.op-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(400px, 70vw);
}
.op-logo {
  width: 100%;
  height: auto;
  max-height: none;
  opacity: 0;
  transform: scale(0.96);
  animation: opLogoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
/* 線はロゴの配置に影響しないよう流れから外し、画面幅いっぱいを scaleX で伸ばす */
.op-line {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 1.5rem;
  width: 100vw;
  height: 4px;
  background: #1675C4;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  animation: opLine 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes opLogoIn { to { opacity: 1; transform: none; } }
@keyframes opLine { to { transform: translateX(-50%) scaleX(1); } }
@keyframes opOut { to { opacity: 0; visibility: hidden; } }
