/* 沿革の初期表示。生成済みの history.css とは分けて管理する。 */
/* 全体1秒のうち、最初の0.3秒は非表示、残り0.7秒でフェードイン。 */
@keyframes historyIntroFade {
  0%, 30% { opacity: 0; }
  100% { opacity: 1; }
}

.history__decor,
.hero__stack {
  animation: historyIntroFade 1s ease-out both paused;
}

html.history-intro-ready .history__decor,
html.history-intro-ready .hero__stack {
  animation-play-state: running;
}

/* 子要素の段階表示を外し、親要素のフェードインに統一する。 */
.hero__row--gap-medium,
.hero__lux-title,
.hero__text {
  animation: none;
}

.hero__title.jp-reveal .jp-reveal__char {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .history__decor,
  .hero__stack {
    animation: none;
  }
}

/* 幅と100度の傾斜を維持し、中央行（SUCCEED）の左端から光を入れる。
   0.11em は3行×行高1.04と傾斜10度に対する開始・終了位置の補正。 */
@keyframes luxSheen {
  from { background-position: calc(105% - 0.11em) 0; }
  to { background-position: calc(-5% + 0.11em) 0; }
}

.hero__the-label {
  background-color: #0e2d63;
  background-image: linear-gradient(
    100deg,
    #0e2d63 0%,
    #0e2d63 30%,
    #1d55b0 40%,
    #4d9bef 45%,
    #e8d9a8 50%,
    #b78a3c 54%,
    #1d55b0 60%,
    #0e2d63 70%,
    #0e2d63 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: calc(105% - 0.11em) 0;
  /* フェードイン中から光を動かし、文字の出現と左端への進入を重ねる。 */
  animation: luxSheen 7s linear 0s infinite both paused;
}

html.history-intro-ready .hero__the-label {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .hero__the-label {
    animation: none;
  }
}
