/* Generated by npm run build:css. Do not edit directly. */
/* Opening base shell and global timing. */

.opening {
  --opening-duration: 16s;
  --opening-tail-duration: 10s;
  --opening-total-duration: calc(var(--opening-duration) + var(--opening-tail-duration));
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff;
  color: var(--opening-blue);
  opacity: 1;
  pointer-events: auto;
  animation: opening-shell var(--opening-total-duration) linear forwards;
}

.opening.is-opening-prep .opening__stage {
  opacity: 0 !important;
  visibility: hidden !important;
}

.opening.is-opening-prep .opening__stage::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

.opening.is-opening-prep,
.opening.is-opening-prep::before,
.opening.is-opening-prep .opening__stage,
.opening.is-opening-prep .opening__stage::after,
.opening.is-opening-prep * {
  animation-play-state: paused !important;
}

.opening.is-opening-prep img,
.opening.is-opening-prep svg,
.opening.is-opening-prep .opening__layer {
  opacity: 0 !important;
  visibility: hidden !important;
}

.opening__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  pointer-events: none;
}

.opening__skip {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 12;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(29, 32, 136, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.opening__skip:hover,
.opening__skip:focus {
  color: rgba(29, 32, 136, 0.96);
}

.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--opening-blue);
  opacity: 0;
  animation: opening-blue-backdrop var(--opening-duration) linear forwards;
}

.opening.is-debug-slow {
  --opening-duration: 18s;
  --opening-tail-duration: 12s;
  --opening-total-duration: calc(var(--opening-duration) + var(--opening-tail-duration));
}

.opening.is-finished {
  opacity: 0;
  transition: opacity 0.36s ease;
}

.opening__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.opening__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  background: #ffffff;
  opacity: 0;
  animation: opening-final-paper var(--opening-total-duration) linear forwards;
}

.opening__skip {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 10;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(29, 32, 136, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.opening__skip:hover,
.opening__skip:focus {
  color: rgba(29, 32, 136, 0.96);
}


@keyframes opening-shell {
  0%, 98% { opacity: 1; }
  100% { opacity: 0; }
}


@keyframes opening-final-paper {
  0%, 72% { opacity: 0; }
  78% { opacity: 0.18; }
  84% { opacity: 0.54; }
  88% { opacity: 0.9; }
  90% { opacity: 1; }
  100% { opacity: 1; }
}

/* Opening shared layers and scene-ready element styles. */

.opening__logo-scene,
.opening__anniversary,
.opening__confetti,
.opening__burst {
  position: absolute;
  left: 50%;
  top: 50%;
}

.opening__logo-scene {
  width: min(78vw, 640px);
  aspect-ratio: 637 / 300;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.opening__company-logo,
.opening__ring,
.opening__konishi {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  transform: translate(-50%, -50%);
}

.opening__company-logo {
  width: min(63vw, 480px);
  opacity: 0;
  visibility: hidden;
  animation: opening-company-logo var(--opening-duration) ease forwards;
}

.opening__ring {
  width: min(82vw, 580px);
  opacity: 0;
  animation: opening-ring var(--opening-duration) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.opening__konishi {
  width: min(54vw, 400px);
  opacity: 0;
  animation: opening-konishi var(--opening-duration) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.opening__burst {
  width: 560px;
  aspect-ratio: 1;
  background: #ffffff;
  clip-path: polygon(50% 0%, 57% 9%, 67% 4%, 72% 15%, 84% 13%, 86% 26%, 97% 32%, 91% 43%, 100% 50%, 91% 57%, 97% 68%, 86% 74%, 84% 87%, 72% 85%, 67% 96%, 57% 91%, 50% 100%, 43% 91%, 33% 96%, 28% 85%, 16% 87%, 14% 74%, 3% 68%, 9% 57%, 0% 50%, 9% 43%, 3% 32%, 14% 26%, 16% 13%, 28% 15%, 33% 4%, 43% 9%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
  animation: opening-burst var(--opening-duration) cubic-bezier(0.33, 1, 0.68, 1) forwards;
  z-index: 2;
}

.opening__anniversary {
  width: 760px;
  height: 350px;
  opacity: 0;
  transform: translate(-50%, -48%) scale(1);
  transform-origin: center;
  animation: opening-anniversary var(--opening-duration) linear forwards;
  z-index: 4;
}

.opening__characters {
  position: relative;
  width: 760px;
  height: 284px;
  z-index: 4;
}

.opening__char,
.opening__body,
.opening__face,
.opening__hand,
.opening__th,
.opening__anniversary-text {
  position: absolute;
}

.opening__hand,
.js-opening-hand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening__body {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  z-index: 1;
  animation: opening-body var(--opening-duration) linear forwards;
}

@supports (-moz-appearance: none) {
  .opening__char {
    isolation: isolate;
  }

  .opening__body {
    display: block;
    z-index: 1;
    backface-visibility: hidden;
    will-change: auto;
    animation-name: opening-body-firefox;
  }

  .opening__face-mask {
    z-index: 20;
    backface-visibility: hidden;
    will-change: auto;
  }

  .opening__face {
    z-index: 30;
    backface-visibility: hidden;
    will-change: auto;
  }

  .opening.is-firefox-face-static .opening__face,
  .opening.is-firefox-face-static .opening__face-mask {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  @keyframes opening-body-firefox {
    0%, 39.75% {
      opacity: 0;
      visibility: hidden;
    }

    40%, 100% {
      opacity: 1;
      visibility: visible;
    }
  }
}

.opening__char {
  opacity: 0;
  transform-origin: center 70%;
}

.opening__char--one {
  left: 78px;
  top: 34px;
  width: 100px;
  height: 227px;
  --face-x: 52px;
  --face-y: 48px;
  animation: opening-one var(--opening-duration) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.opening__char--zero-left {
  left: 186px;
  top: 72px;
  width: 271px;
  height: 218px;
  --face-x: 84px;
  --face-y: 78px;
  animation: opening-zero-left var(--opening-duration) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.opening__char--zero-right {
  left: 445px;
  top: 30px;
  width: 222px;
  height: 176px;
  --face-x: 160px;
  --face-y: 58px;
  animation: opening-zero-right var(--opening-duration) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.opening__face {
  left: var(--face-x);
  top: var(--face-y);
  width: auto;
  height: auto;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.opening__face-mask {
  position: absolute;
  left: var(--face-mask-x, var(--face-x));
  top: var(--face-mask-y, var(--face-y));
  z-index: 2;
  width: var(--face-mask-w, 74px);
  height: var(--face-mask-h, 48px);
  background: var(--opening-blue);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: opening-face-mask var(--opening-duration) linear forwards;
}

.opening__face--surprised {
  animation: opening-face-surprised var(--opening-duration) linear forwards;
}

.opening__face--normal {
  animation: opening-face-normal var(--opening-duration) linear forwards;
}

.opening__face--blink {
  animation: opening-face-blink var(--opening-duration) linear forwards;
}

.opening__face--smile {
  animation: opening-face-smile var(--opening-duration) linear forwards;
}

.opening__char--one .opening__face--smile {
  transform: translate(-50%, -50%) translate(2px, 10px);
}

.opening__char--one .opening__face-mask {
  animation: opening-one-face-mask var(--opening-duration) linear forwards;
}

.opening__char--one .opening__face--normal {
  animation: opening-one-face-normal var(--opening-duration) linear forwards;
}

.opening__char--one .opening__face--blink {
  animation: opening-one-face-blink var(--opening-duration) linear forwards;
}

.opening__char--one .opening__face--smile,
.opening__char--one .opening__face--surprised {
  animation: none;
  opacity: 0;
  visibility: hidden;
}

.opening__char--zero-left .opening__face--smile {
  transform: translate(-50%, -50%) translate(2px, 12px);
}

.opening__char--zero-left .opening__face-mask {
  --face-mask-x: 84px;
  --face-mask-y: 104px;
  --face-mask-w: 162px;
  --face-mask-h: 126px;
}

.opening__char--zero-left .opening__face--blink {
  transform: translate(-50%, -50%) translate(0, 4px);
}

.opening__char--zero-right .opening__face--smile {
  transform: translate(-50%, -50%) translate(2px, 10px);
}

.opening__char--zero-right .opening__face-mask {
  --face-mask-x: 154px;
  --face-mask-y: 64px;
  --face-mask-w: 112px;
  --face-mask-h: 78px;
}

.opening__char--zero-right .opening__face--blink {
  transform: translate(-50%, -50%) translate(0, 2px);
}

/* Scene 1-3 timing and face states. */

@keyframes opening-company-logo {
  0%, 9.5% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.98); }
  11%, 37.5% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
  40%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(1); }
}

@keyframes opening-konishi {
  0% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.98); }
  2%, 7% { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
  9.5%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(1); }
}

@keyframes opening-face-mask {
  0%, 53% { opacity: 0; }
  54%, 100% { opacity: 1; }
}

@keyframes opening-face-surprised {
  0%, 39.75% { opacity: 0; }
  40%, 41.75% { opacity: 1; }
  42%, 100% { opacity: 0; }
}

@keyframes opening-face-normal {
  0%, 18.5% { opacity: 0; }
  18.75%, 27.75% { opacity: 1; }
  28%, 30% { opacity: 0; }
  30.25%, 37.5% { opacity: 1; }
  37.75%, 53% { opacity: 0; }
  55%, 79% { opacity: 1; }
  82%, 100% { opacity: 0; }
}

@keyframes opening-face-blink {
  0%, 27.75% { opacity: 0; }
  28%, 30% { opacity: 1; }
  30.25%, 79% { opacity: 0; }
  80%, 81% { opacity: 1; }
  82%, 100% { opacity: 0; }
}

@keyframes opening-face-smile {
  0%, 67% { opacity: 0; }
  69%, 79% { opacity: 1; }
  80%, 81% { opacity: 0; }
  82%, 100% { opacity: 1; }
}

@keyframes opening-one-face-mask {
  0%, 18.5% { opacity: 0; }
  18.75%, 37.5% { opacity: 1; }
  37.75%, 100% { opacity: 0; }
}

@keyframes opening-one-face-normal {
  0%, 18.5% { opacity: 0; }
  18.75%, 27.75% { opacity: 1; }
  28%, 30% { opacity: 0; }
  30.25%, 37.5% { opacity: 1; }
  37.75%, 100% { opacity: 0; }
}

@keyframes opening-one-face-blink {
  0%, 27.75% { opacity: 0; }
  28%, 30% { opacity: 1; }
  30.25%, 37.5% { opacity: 0; }
  37.75%, 100% { opacity: 0; }
}

/* Scene 4-5 character and ring motion. */

@keyframes opening-ring {
  0%, 39.75% { opacity: 0; transform: translate(-50%, -50%) scale(0.28) rotate(0deg); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(0.38) rotate(0deg); }
  48% { opacity: 1; transform: translate(-50%, -50%) scale(0.5) rotate(90deg); }
  49% { opacity: 1; transform: translate(-49.2%, -50%) scale(0.54) rotate(140deg); }
  50% { opacity: 1; transform: translate(-48.3%, -50%) scale(0.58) rotate(195deg); }
  51% { opacity: 1; transform: translate(-47.2%, -50%) scale(0.6) rotate(250deg); }
  52% { opacity: 1; transform: translate(-46%, -50%) scale(0.62) rotate(310deg); }
  52.5% { opacity: 1; transform: translate(-47.5%, -50%) scale(0.65) rotate(370deg); }
  53% { opacity: 1; transform: translate(-49%, -50%) scale(0.67) rotate(430deg); }
  53.5% { opacity: 1; transform: translate(-50.5%, -50%) scale(0.69) rotate(490deg); }
  54% { opacity: 1; transform: translate(-52%, -50%) scale(0.72) rotate(550deg); }
  54.5% { opacity: 1; transform: translate(-53.5%, -50%) scale(0.74) rotate(610deg); }
  55% { opacity: 1; transform: translate(-55%, -50%) scale(0.76) rotate(670deg); }
  55.5% { opacity: 1; transform: translate(-56%, -50%) scale(0.79) rotate(730deg); }
  56% { opacity: 1; transform: translate(-55.5%, -50%) scale(0.81) rotate(790deg); }
  56.5% { opacity: 1; transform: translate(-54%, -50%) scale(0.83) rotate(850deg); }
  57% { opacity: 1; transform: translate(-52.5%, -50%) scale(0.86) rotate(910deg); }
  57.5% { opacity: 1; transform: translate(-50.5%, -50%) scale(0.88) rotate(970deg); }
  58% { opacity: 1; transform: translate(-48.5%, -50%) scale(0.9) rotate(1030deg); }
  58.5% { opacity: 1; transform: translate(-46.5%, -50%) scale(0.93) rotate(1090deg); }
  59% { opacity: 1; transform: translate(-44.5%, -50%) scale(0.96) rotate(1150deg); }
  59.5% { opacity: 1; transform: translate(-46%, -50%) scale(0.98) rotate(1215deg); }
  60% { opacity: 1; transform: translate(-48%, -50%) scale(1) rotate(1285deg); }
  60.5% { opacity: 1; transform: translate(-48.7%, -50%) scale(1.005) rotate(1340deg); }
  61% { opacity: 1; transform: translate(-49.3%, -50%) scale(1.01) rotate(1400deg); }
  61.5% { opacity: 1; transform: translate(-50%, -50%) scale(1.015) rotate(1465deg); }
  62% { opacity: 1; transform: translate(-50.8%, -50%) scale(1.02) rotate(1535deg); }
  62.5% { opacity: 1; transform: translate(-51.5%, -50%) scale(1.025) rotate(1610deg); }
  63% { opacity: 1; transform: translate(-52.3%, -50%) scale(1.03) rotate(1690deg); }
  64% { opacity: 1; transform: translate(-52%, -50%) scale(1.04) rotate(1860deg); }
  65% { opacity: 1; transform: translate(-50%, -50%) scale(1.05) rotate(2040deg); }
  66% { opacity: 0.8; transform: translate(-48.5%, -50%) scale(0.96) rotate(2230deg); }
  66.5% { opacity: 0.4; transform: translate(-49%, -50%) scale(0.74) rotate(2380deg); }
  67% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.46) rotate(2530deg); }
  68%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.34) rotate(2530deg); }
}

@keyframes opening-body {
  0%, 39.75% { opacity: 0; }
  40%, 100% { opacity: 1; }
}
/* Scene 4-5 use the character SVGs as the face source; suppress the extra surprised overlay. */
.opening__anniversary .opening__char .opening__face--surprised {
  animation: none;
  opacity: 0;
  visibility: hidden;
}

.opening__ring,
.opening__anniversary .opening__char,
.opening__anniversary .opening__body {
  will-change: transform, opacity;
}

.opening__char--one {
  animation:
    opening-one var(--opening-duration) cubic-bezier(0.45, 0, 0.25, 1) forwards,
    opening-scene45-one-orbit var(--opening-duration) linear forwards;
}

.opening__char--zero-left {
  animation:
    opening-zero-left var(--opening-duration) cubic-bezier(0.45, 0, 0.25, 1) forwards,
    opening-scene45-zero-left-orbit var(--opening-duration) linear forwards;
}

.opening__char--zero-right {
  animation:
    opening-zero-right var(--opening-duration) cubic-bezier(0.45, 0, 0.25, 1) forwards,
    opening-scene45-zero-right-orbit var(--opening-duration) linear forwards;
}

/* Dense Scene 5 ring keyframes need continuous interpolation on Windows. */
.opening__ring {
  animation-timing-function: linear;
  backface-visibility: hidden;
}

@keyframes opening-scene45-one-orbit {
  0%, 40% { translate: 0 0; rotate: 0deg; }
  42% { translate: 2px 93px; rotate: 0deg; }
  48% { translate: -206px 0; rotate: 120deg; }
  56% { translate: 300px -69px; rotate: 240deg; }
  64% { translate: 56px 94px; rotate: 360deg; }
  67%, 100% { translate: 0 0; rotate: 360deg; }
}

@keyframes opening-scene45-zero-left-orbit {
  0%, 40% { translate: 0 0; rotate: 0deg; }
  42% { translate: -104px -11px; rotate: 0deg; }
  48% { translate: 351px -67px; rotate: 120deg; }
  56% { translate: 363px 52px; rotate: 240deg; }
  64% { translate: 95px -36px; rotate: 360deg; }
  67%, 100% { translate: 0 0; rotate: 360deg; }
}

@keyframes opening-scene45-zero-right-orbit {
  0%, 40% { translate: 0 0; rotate: 0deg; }
  42% { translate: 46px -65px; rotate: 0deg; }
  48% { translate: -148px 93px; rotate: 120deg; }
  56% { translate: -556px 37px; rotate: 240deg; }
  64% { translate: -191px -28px; rotate: 360deg; }
  67%, 100% { translate: 0 0; rotate: 360deg; }
}

/* Scene 6-8 blue backdrop and burst timing. */

@keyframes opening-blue-backdrop {
  0%, 63.25% { opacity: 0; }
  63.5% { opacity: 1; }
  69% { opacity: 1; }
  71% { opacity: 0.88; }
  72.5% { opacity: 0.52; }
  74% { opacity: 0.2; }
  74.75%, 100% { opacity: 0; }
}

@keyframes opening-burst {
  0%, 64.25% { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(0deg); }
  64.5% { opacity: 1; transform: translate(-50%, -50%) scale(2.5) rotate(4deg); }
  65.5% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.7) rotate(14deg); }
  66.5% { opacity: 0.76; transform: translate(-50%, -50%) scale(1.22) rotate(25deg); }
  67.5% { opacity: 0.56; transform: translate(-50%, -50%) scale(0.92) rotate(37deg); }
  68.5% { opacity: 0.38; transform: translate(-50%, -50%) scale(0.72) rotate(49deg); }
  69%, 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.48) rotate(56deg); }
}

.opening__burst {
  animation-timing-function: linear;
  backface-visibility: hidden;
}

/* Scene 9-10 continuation, isolated from the earlier scene motion file. */

@keyframes opening-anniversary {
  0%, 18.5% { opacity: 0; transform: translate(-50%, -50%) scale(0.63); }
  18.75%, 40% { opacity: 1; transform: translate(-50%, -50%) scale(0.63); }
  52% { opacity: 1; transform: translate(-50%, -50%) scale(0.69); }
  64% { opacity: 1; transform: translate(-50%, -50%) scale(0.74); }
  68%, 73.25% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.34); }
  73.5% { opacity: 1; transform: translate(-50%, -50%) scale(0.42); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(0.46); }
  76.5% { opacity: 1; transform: translate(-50%, -50%) scale(0.51); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(0.61); }
  79.25% { opacity: 1; transform: translate(-50%, -50%) scale(0.75); }
  80.25% { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
  81.25% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes opening-one {
  0%, 18.5% { opacity: 0; transform: translate(250px, 5px) rotate(0deg) scale(1); }
  18.75%, 40% { opacity: 1; transform: translate(250px, 5px) rotate(0deg) scale(1); }
  48% { opacity: 1; transform: translate(238px, -2px) rotate(-4deg) scale(0.98); }
  52% { opacity: 1; transform: translate(190px, -16px) rotate(-18deg) scale(1.16); }
  56% { opacity: 1; transform: translate(132px, 12px) rotate(-46deg) scale(1.55); }
  60% { opacity: 1; transform: translate(250px, -4px) rotate(-72deg) scale(1.92); }
  64% { opacity: 1; transform: translate(196px, 4px) rotate(-88deg) scale(1.96); }
  66.5% { opacity: 0.35; transform: translate(164px, 2px) rotate(-98deg) scale(1.22); }
  67% { opacity: 0; visibility: hidden; transform: translate(150px, 0) rotate(-100deg) scale(0.62); }
  73.25% { opacity: 0; visibility: hidden; transform: translate(122px, 0) rotate(-124deg) scale(0.36); }
  73.5% { opacity: 1; transform: translate(-112px, -6px) rotate(-3deg) scale(0.42); }
  75% { opacity: 1; transform: translate(-108px, -6px) rotate(-3deg) scale(0.46); }
  76.5% { opacity: 1; transform: translate(-103px, -5px) rotate(-3.5deg) scale(0.51); }
  78% { opacity: 1; transform: translate(-98px, -4px) rotate(-4deg) scale(0.61); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  78.75% { opacity: 1; transform: translate(-94px, -3.5px) rotate(-4.5deg) scale(0.69); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  79.25% { opacity: 1; transform: translate(-90px, -3px) rotate(-5deg) scale(0.76); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  79.75% { opacity: 1; transform: translate(-86px, -2.5px) rotate(-5.5deg) scale(0.84); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  80.25% { opacity: 1; transform: translate(-83px, -2px) rotate(-6deg) scale(0.92); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  80.625% { opacity: 1; transform: translate(-80px, -1.5px) rotate(-7deg) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  80.875% { opacity: 1; transform: translate(-77px, -1px) rotate(-8.5deg) scale(1.19); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81% { opacity: 1; transform: translate(-77.5px, -0.5px) rotate(-7.8deg) scale(1.17); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81.25% { opacity: 1; transform: translate(-78px, 0px) rotate(-8deg) scale(1.18); }
  100% { opacity: 1; transform: translate(-78px, 0px) rotate(-8deg) scale(1.18); }
}

@keyframes opening-zero-left {
  0%, 18.5% { opacity: 0; transform: translate(-58px, -25px) rotate(0deg) scale(1); }
  18.75%, 40% { opacity: 1; transform: translate(-58px, -25px) rotate(0deg) scale(1); }
  48% { opacity: 1; transform: translate(-112px, -24px) rotate(-3deg) scale(0.98); }
  52% { opacity: 1; transform: translate(-225px, -10px) rotate(-18deg) scale(1.16); }
  56% { opacity: 1; transform: translate(-304px, 12px) rotate(-46deg) scale(1.55); }
  60% { opacity: 1; transform: translate(-320px, -8px) rotate(-72deg) scale(1.92); }
  64% { opacity: 1; transform: translate(-256px, 0) rotate(-88deg) scale(1.96); }
  66.5% { opacity: 0.35; transform: translate(-218px, 2px) rotate(-98deg) scale(1.22); }
  67% { opacity: 0; visibility: hidden; transform: translate(-204px, 0) rotate(-100deg) scale(0.62); }
  73.25% { opacity: 0; visibility: hidden; transform: translate(-170px, 0) rotate(-124deg) scale(0.36); }
  73.5% { opacity: 1; transform-origin: center 70%; transform: translate(-32px, -6px) rotate(-3deg) scale(0.42); }
  75% { opacity: 1; transform: translate(-30px, -5px) rotate(-3deg) scale(0.46); }
  76.5% { opacity: 1; transform: translate(-28px, -4px) rotate(-3deg) scale(0.51); }
  78% { opacity: 1; transform: translate(-26px, -2px) rotate(-2.75deg) scale(0.61); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  78.75% { opacity: 1; transform: translate(-24px, -7.5px) rotate(-1.5deg) scale(0.7); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  79.25% { opacity: 1; transform: translate(-22px, -10px) rotate(-0.5deg) scale(0.78); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  79.75% { opacity: 1; transform: translate(-21px, -14px) rotate(0.5deg) scale(0.86); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  80.25% { opacity: 1; transform: translate(-20px, -16.5px) rotate(1.5deg) scale(0.94); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  80.625% { opacity: 1; transform: translate(-14px, -24px) rotate(3.8deg) scale(1.04); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  80.875% { opacity: 1; transform: translate(-16px, -22px) rotate(3.7deg) scale(1.13); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81% { opacity: 1; transform: translate(-17px, -21px) rotate(3.6deg) scale(1.1); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81.25% { opacity: 1; transform: translate(-18px, -20px) rotate(3.5deg) scale(1.12); }
  100% { opacity: 1; transform-origin: center 70%; transform: translate(-18px, -20px) rotate(3.5deg) scale(1.12); }
}

@keyframes opening-zero-right {
  0%, 18.5% { opacity: 0; transform: translate(-42px, 37px) rotate(0deg) scale(1); }
  18.75%, 40% { opacity: 1; transform: translate(-42px, 37px) rotate(0deg) scale(1); }
  48% { opacity: 1; transform: translate(-28px, 34px) rotate(4deg) scale(0.98); }
  52% { opacity: 1; transform: translate(60px, 14px) rotate(18deg) scale(1.16); }
  56% { opacity: 1; transform: translate(160px, -10px) rotate(46deg) scale(1.55); }
  60% { opacity: 1; transform: translate(135px, 8px) rotate(72deg) scale(1.92); }
  64% { opacity: 1; transform: translate(195px, 0) rotate(88deg) scale(1.96); }
  66.5% { opacity: 0.35; transform: translate(237px, -3px) rotate(98deg) scale(1.22); }
  67% { opacity: 0; visibility: hidden; transform: translate(246px, -2px) rotate(100deg) scale(0.62); }
  73.25% { opacity: 0; visibility: hidden; transform: translate(226px, 0) rotate(124deg) scale(0.36); }
  73.5% { opacity: 1; width: 240px; height: 190px; transform-origin: left 70%; transform: translate(52px, -10px) rotate(5deg) scale(0.42); }
  75% { opacity: 1; width: 240px; height: 190px; transform: translate(50px, -10px) rotate(4deg) scale(0.46); }
  76.5% { opacity: 1; width: 240px; height: 190px; transform: translate(49px, -11px) rotate(4deg) scale(0.51); }
  78% { opacity: 1; width: 240px; height: 190px; transform: translate(48px, -11px) rotate(4deg) scale(0.61); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  78.75% { opacity: 1; width: 240px; height: 190px; transform: translate(26.5px, -34.5px) rotate(4deg) scale(0.72); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  79.25% { opacity: 1; width: 240px; height: 190px; transform: translate(12px, -49px) rotate(4deg) scale(0.82); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  79.75% { opacity: 1; width: 240px; height: 190px; transform: translate(-8px, -69px) rotate(3.8deg) scale(0.92); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  80.25% { opacity: 1; width: 240px; height: 190px; transform: translate(-24.5px, -83.5px) rotate(3.6deg) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  80.625% { opacity: 1; width: 240px; height: 190px; transform: translate(-41.25px, -110px) rotate(3.4deg) scale(1.1); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  80.875% { opacity: 1; width: 240px; height: 190px; transform: translate(-52.5px, -103px) rotate(3.2deg) scale(1.16); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81% { opacity: 1; width: 240px; height: 190px; transform: translate(-60px, -106px) rotate(3.1deg) scale(1.19); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81.25% { opacity: 1; width: 240px; height: 190px; transform: translate(-62px, -108px) rotate(3deg) scale(1.2); }
  100% { opacity: 1; width: 240px; height: 190px; transform-origin: left 70%; transform: translate(-62px, -108px) rotate(3deg) scale(1.2); }
}

.opening__char--zero-right .opening__body {
  width: 100%;
  height: auto;
}

/* Scene 9-10: repeat the zero characters' expression change three times. */
.opening__char--zero-left .opening__face--normal,
.opening__char--zero-right .opening__face--normal {
  animation-name: opening-zero-face-normal;
}

.opening__char--zero-left .opening__face--blink,
.opening__char--zero-right .opening__face--blink {
  animation-name: opening-zero-face-blink;
}

.opening__char--zero-left .opening__face--wink-smile,
.opening__char--zero-right .opening__face--wink-smile {
  animation: opening-zero-face-wink-smile var(--opening-duration) linear forwards;
}

.opening__char--zero-left .opening__face--wink-smile {
  transform: translate(-50%, -50%) translate(0, 4px) scale(1.18);
  transform-origin: center;
}

.opening__char--zero-right .opening__face--wink-smile {
  transform: translate(-50%, -50%) translate(0, 2px);
}

.opening__char--zero-left .opening__face--smile,
.opening__char--zero-right .opening__face--smile {
  animation-name: opening-zero-face-smile;
}

@keyframes opening-zero-face-normal {
  0%, 18.5% { opacity: 0; visibility: hidden; }
  18.75%, 27.75% { opacity: 1; visibility: visible; }
  28%, 30% { opacity: 0; visibility: hidden; }
  30.25%, 37.5% { opacity: 1; visibility: visible; }
  37.75%, 53% { opacity: 0; visibility: hidden; }
  55%, 76% { opacity: 1; visibility: visible; }
  76.25%, 77% { opacity: 0; visibility: hidden; }
  77.25%, 83.75% { opacity: 1; visibility: visible; }
  84%, 84.75% { opacity: 0; visibility: hidden; }
  85%, 91.5% { opacity: 1; visibility: visible; }
  91.75%, 92.5% { opacity: 0; visibility: hidden; }
  92.75%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes opening-zero-face-blink {
  0%, 27.75% { opacity: 0; visibility: hidden; }
  28%, 30% { opacity: 1; visibility: visible; }
  30.25%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes opening-zero-face-wink-smile {
  0%, 76% { opacity: 0; visibility: hidden; }
  76.25%, 77% { opacity: 1; visibility: visible; }
  77.25%, 83.75% { opacity: 0; visibility: hidden; }
  84%, 84.75% { opacity: 1; visibility: visible; }
  85%, 91.5% { opacity: 0; visibility: hidden; }
  91.75%, 98.75% { opacity: 1; visibility: visible; }
  99%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes opening-zero-face-smile {
  0%, 67% { opacity: 0; visibility: hidden; }
  69%, 73.25% { opacity: 1; visibility: visible; }
  73.5%, 98.75% { opacity: 0; visibility: hidden; }
  99%, 100% { opacity: 1; visibility: visible; }
}

/* Scene 11 typography and confetti. */

.opening__th,
.opening__anniversary-text {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #1d2088;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  visibility: hidden;
  animation-play-state: paused;
}

.opening__th {
  left: 590px;
  top: 196px;
  width: auto;
  height: auto;
  font-size: 124px;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  animation: opening-th var(--opening-tail-duration) cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 5;
}

.opening__anniversary-text {
  left: 22px;
  top: 304px;
  width: 716px;
  height: auto;
  font-size: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: opening-anniversary-text var(--opening-tail-duration) ease forwards;
  z-index: 5;
}

.opening__th span,
.opening__anniversary-text span {
  display: inline-block;
  animation-name: openingBounceText;
  animation-timing-function: cubic-bezier(0.22, 1.12, 0.36, 1);
  animation-iteration-count: infinite;
  animation-duration: 3.4s;
  animation-delay: calc(var(--i) * 0.12s);
  animation-play-state: paused;
  will-change: transform;
}

.opening__th span {
  --bounce-y: 12px;
}

.opening__anniversary-text span {
  --bounce-y: 9px;
}

.opening__anniversary-text span.is-space {
  width: 0.35em;
}

.opening__confetti {
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: opening-confetti-layer var(--opening-tail-duration) linear forwards;
  visibility: hidden;
  animation-play-state: paused;
  --confetti-start: 0.56s;
}

.opening__confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size, 10px);
  height: var(--size, 10px);
  background: var(--color, #f5a7af);
  opacity: 0;
  transform: translate3d(var(--from-x), var(--from-y), 0);
  animation-name: opening-confetti;
  animation-duration: var(--duration, 7s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
  animation-delay: calc(var(--confetti-start) + var(--delay, 0s));
  animation-play-state: paused;
  will-change: transform, opacity;
}

.opening__confetti-piece--circle {
  border-radius: 50%;
}

.opening__confetti-piece--square {
  border-radius: 2px;
}

.opening__confetti-piece--triangle {
  width: 0;
  height: 0;
  background: transparent;
  color: var(--color, #f5a7af);
  border-left: calc(var(--size, 10px) * 0.5) solid transparent;
  border-right: calc(var(--size, 10px) * 0.5) solid transparent;
  border-bottom: var(--size, 10px) solid currentColor;
}

.opening__confetti-piece:nth-child(1) { --from-x: -258px; --from-y: -88px; --drift-x: -18px; --drift-y: 224px; --size: 12px; --color: #f5a7af; --duration: 6.8s; --delay: 0s; }
.opening__confetti-piece:nth-child(2) { --from-x: -198px; --from-y: -46px; --drift-x: -12px; --drift-y: 210px; --size: 11px; --color: #8ed7f1; --duration: 7.1s; --delay: 0.18s; }
.opening__confetti-piece:nth-child(3) { --from-x: -140px; --from-y: -104px; --drift-x: 10px; --drift-y: 228px; --size: 12px; --color: #d9bd82; --duration: 6.7s; --delay: 0.08s; }
.opening__confetti-piece:nth-child(4) { --from-x: -82px; --from-y: -22px; --drift-x: 8px; --drift-y: 204px; --size: 14px; --color: #f5a7af; --duration: 7.3s; --delay: 0.28s; }
.opening__confetti-piece:nth-child(5) { --from-x: -18px; --from-y: -74px; --drift-x: 0px; --drift-y: 216px; --size: 10px; --color: #8ed7f1; --duration: 6.9s; --delay: 0.38s; }
.opening__confetti-piece:nth-child(6) { --from-x: 54px; --from-y: -52px; --drift-x: 12px; --drift-y: 208px; --size: 12px; --color: #d9bd82; --duration: 7.0s; --delay: 0.12s; }
.opening__confetti-piece:nth-child(7) { --from-x: 116px; --from-y: -92px; --drift-x: 20px; --drift-y: 226px; --size: 13px; --color: #f5a7af; --duration: 7.4s; --delay: 0.24s; }
.opening__confetti-piece:nth-child(8) { --from-x: 182px; --from-y: -32px; --drift-x: 16px; --drift-y: 198px; --size: 11px; --color: #8ed7f1; --duration: 6.8s; --delay: 0.46s; }
.opening__confetti-piece:nth-child(9) { --from-x: 246px; --from-y: 18px; --drift-x: 18px; --drift-y: 174px; --size: 12px; --color: #d9bd82; --duration: 7.2s; --delay: 0.52s; }
.opening__confetti-piece:nth-child(10) { --from-x: -250px; --from-y: 74px; --drift-x: -10px; --drift-y: 184px; --size: 13px; --color: #8ed7f1; --duration: 6.9s; --delay: 0.32s; }
.opening__confetti-piece:nth-child(11) { --from-x: -76px; --from-y: 88px; --drift-x: -6px; --drift-y: 176px; --size: 10px; --color: #d9bd82; --duration: 7.3s; --delay: 0.48s; }
.opening__confetti-piece:nth-child(12) { --from-x: 160px; --from-y: 86px; --drift-x: 14px; --drift-y: 170px; --size: 11px; --color: #f5a7af; --duration: 6.8s; --delay: 0.62s; }

@keyframes opening-th {
  0% { opacity: 1; transform: translateY(18px) scale(0.88); }
  14% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes opening-anniversary-text {
  0% { opacity: 1; transform: translateY(30px); }
  16% { opacity: 1; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(30px); }
}

@keyframes opening-confetti {
  0% { opacity: 0; transform: translate3d(var(--from-x), calc(var(--from-y) - 12px), 0); }
  6% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(calc(var(--from-x) + var(--drift-x)), calc(var(--from-y) + var(--drift-y)), 0); }
}

@keyframes opening-confetti-layer {
  0%, 5% { opacity: 0; }
  6%, 100% { opacity: 1; }
}

.opening.is-opening-scene11 .opening__th,
.opening.is-opening-scene11 .opening__anniversary-text,
.opening.is-opening-scene11 .opening__confetti {
  opacity: 1;
  visibility: visible;
  animation-play-state: running;
}

.opening.is-opening-scene11 .opening__confetti-piece {
  animation-name: opening-confetti;
  animation-play-state: running;
}

.opening.is-opening-scene11 .opening__th span,
.opening.is-opening-scene11 .opening__anniversary-text span {
  animation-play-state: running;
}

@keyframes openingBounceText {
  0%, 100% { transform: translateY(0); }
  28% { transform: translateY(calc(var(--bounce-y, 8px) * -1.25)); }
  48% { transform: translateY(4px); }
  64% { transform: translateY(calc(var(--bounce-y, 8px) * -0.28)); }
  78% { transform: translateY(0); }
}

/* Scene 12 hands, debug final, and reduced motion fallbacks. */

.opening__hand,
.js-opening-hand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: auto;
  z-index: 3;
}

.opening__hand--left {
  left: 50%;
  top: 50%;
  width: 122px;
  transform: translate(-322px, -13px);
  transform-origin: 76% 26%;
  z-index: 2;
  animation: opening-left-hand var(--opening-tail-duration) linear forwards;
  animation-delay: var(--opening-duration);
}

.opening__hand--middle {
  left: 50%;
  top: 50%;
  width: 104px;
  transform: translate(29px, -92px) scale(1.3);
  transform-origin: left 38%;
  animation: opening-middle-hand var(--opening-tail-duration) linear forwards;
  animation-delay: var(--opening-duration);
}

.opening__hand--right {
  left: 50%;
  top: 50%;
  width: 92px;
  transform: translate(233px, -166px) scale(1.3);
  transform-origin: left 78%;
  animation: opening-right-hand var(--opening-tail-duration) linear forwards;
  animation-delay: var(--opening-duration);
}

.opening.is-opening-scene12 .opening__hand,
.opening.is-debug-scene12 .opening__hand,
.opening.is-opening-scene12 .js-opening-hand,
.opening.is-debug-scene12 .js-opening-hand {
  display: block !important;
  opacity: 0;
  visibility: visible;
  animation-play-state: running;
}

.opening.is-opening-scene12 .opening__hand--left,
.opening.is-debug-scene12 .opening__hand--left,
.opening.is-opening-scene12 .opening__hand--middle,
.opening.is-debug-scene12 .opening__hand--middle {
  display: block !important;
  opacity: 0;
  visibility: visible;
  animation: opening-hand-fadein 3.5s ease forwards, opening-left-hand-bob 1.7s ease-in-out infinite alternate;
  animation-delay: 0s, 0s;
}

.opening.is-opening-scene12 .opening__hand--middle,
.opening.is-debug-scene12 .opening__hand--middle {
  animation-name: opening-hand-fadein, opening-middle-hand-bob;
}

.opening.is-opening-scene12 .opening__hand--right,
.opening.is-debug-scene12 .opening__hand--right {
  display: block !important;
  opacity: 0;
  visibility: visible;
  transform-origin: left 85%;
  animation: opening-hand-fadein 3.5s ease forwards, opening-right-hand-wave 1.2s ease-in-out infinite alternate;
  animation-delay: 0s, 0s;
}

@keyframes opening-left-hand {
  0%, 100% { opacity: 1; visibility: visible; transform: translate(-322px, -13px); }
}

@keyframes opening-middle-hand {
  0%, 100% { opacity: 1; visibility: visible; transform: translate(29px, -92px) scale(1.3); }
}

@keyframes opening-right-hand {
  0%, 100% { opacity: 1; visibility: visible; transform: translate(233px, -166px) scale(1.3); }
}

@keyframes opening-hand-fadein {
  0% { opacity: 0; visibility: visible; }
  100% { opacity: 1; visibility: visible; }
}

@keyframes opening-right-hand-wave {
  0% { transform: translate(233px, -166px) rotate(-24deg) scale(1.3); }
  50% { transform: translate(233px, -166px) rotate(18deg) scale(1.3); }
  100% { transform: translate(233px, -166px) rotate(-24deg) scale(1.3); }
}

@keyframes opening-left-hand-bob {
  0% { transform: translate(-322px, -20px); }
  100% { transform: translate(-322px, -6px); }
}

@keyframes opening-middle-hand-bob {
  0% { transform: translate(29px, -94px) scale(1.3); }
  100% { transform: translate(29px, -90px) scale(1.3); }
}

@media (max-width: 860px) {
  .opening__anniversary,
  .opening__confetti {
    transform: translate(-50%, -50%) scale(0.82);
  }
}

@media (max-width: 680px) {
  .opening__anniversary,
  .opening__confetti {
    transform: translate(-50%, -50%) scale(0.68);
  }

  .opening__company-logo {
    width: min(90vw, 480px);
  }

  .opening__ring {
    width: min(82vw, 420px);
  }

  .opening__konishi {
    width: min(74vw, 390px);
  }
}

@media (max-width: 520px) {
  .opening__anniversary,
  .opening__confetti {
    transform: translate(-50%, -50%) scale(0.42);
  }

  .opening__burst {
    width: 360px;
  }
}

.opening.is-debug-final,
.opening.is-debug-scene12,
.opening.is-debug-final::before,
.opening.is-debug-scene12::before,
.opening.is-debug-final .opening__stage::after,
.opening.is-debug-scene12 .opening__stage::after,
.opening.is-debug-final *,
.opening.is-debug-scene12 * {
  animation: none !important;
  transition: none !important;
}

/* Debug final: hide logos/ring/burst/backdrop per storyboard */
.opening.is-debug-final .opening__company-logo,
.opening.is-debug-final .opening__ring,
.opening.is-debug-final .opening__konishi,
.opening.is-debug-final .opening__burst,
.opening.is-debug-final::before {
  display: none !important;
  opacity: 0 !important;
}

/* Scene 12 debug: keep the final layout visible without the whiteout cover. */
.opening.is-debug-scene12 .opening__company-logo,
.opening.is-debug-scene12 .opening__ring,
.opening.is-debug-scene12 .opening__konishi,
.opening.is-debug-scene12 .opening__burst,
.opening.is-debug-scene12::before {
  display: none !important;
  opacity: 0 !important;
}


.opening.is-debug-final {
  opacity: 1;
  background: #ffffff;
}

.opening.is-debug-final::before,
.opening.is-debug-final .opening__logo-scene,
.opening.is-debug-final .opening__burst,
.opening.is-debug-final .opening__company-logo,
.opening.is-debug-final .opening__konishi,
.opening.is-debug-final .opening__ring {
  opacity: 0;
}

.opening.is-debug-final .opening__stage::after {
  opacity: 0;
}

.opening.is-debug-scene12 .opening__stage::after {
  opacity: 0;
}

.opening.is-debug-final .opening__anniversary {
  opacity: 1;
  transform: translate(-50%, -48%) scale(1);
}

.opening.is-debug-scene12 .opening__anniversary {
  opacity: 1;
  transform: translate(-50%, -48%) scale(1);
}

.opening.is-opening-scene12 .opening__char,
.opening.is-debug-final .opening__char {
  animation: none !important;
  opacity: 1;
  visibility: visible;
}

.opening.is-opening-scene11 .opening__char--one,
.opening.is-opening-scene12 .opening__char--one,
.opening.is-debug-final .opening__char--one {
  transform: translate(-78px, 0px) rotate(-8deg) scale(1.18) !important;
  transform-origin: center 72%;
}

.opening.is-opening-scene12 .opening__char--one {
  transform: translate(-78px, 0px) rotate(-8deg) scale(1.18) !important;
  transform-origin: center 72%;
}

.opening.is-debug-scene12 .opening__char--one {
  transform: translate(-78px, 0px) rotate(-8deg) scale(1.18) !important;
  transform-origin: center 72%;
}

.opening.is-opening-scene11 .opening__char--zero-left,
.opening.is-opening-scene12 .opening__char--zero-left,
.opening.is-debug-final .opening__char--zero-left,
.opening.is-debug-scene12 .opening__char--zero-left {
  transform: translate(-18px, -20px) rotate(3.5deg) scale(1.12) !important;
  transform-origin: center 70%;
}

.opening.is-opening-scene11 .opening__char--zero-right,
.opening.is-opening-scene12 .opening__char--zero-right,
.opening.is-debug-final .opening__char--zero-right {
  width: 240px;
  height: 190px;
  transform: translate(-62px, -108px) rotate(3deg) scale(1.2) !important;
  transform-origin: left 70%;
}

.opening.is-opening-scene12 .opening__char--zero-right {
  width: 240px;
  height: 190px;
  transform: translate(-62px, -108px) rotate(3deg) scale(1.2) !important;
  transform-origin: left 70%;
}

.opening.is-debug-scene12 .opening__char--zero-right {
  width: 240px;
  height: 190px;
  transform: translate(-62px, -108px) rotate(3deg) scale(1.2) !important;
  transform-origin: left 70%;
}

.opening.is-opening-scene12 .opening__char--zero-right .opening__body,
.opening.is-debug-scene12 .opening__char--zero-right .opening__body {
  width: 100%;
  height: auto;
}

.opening.is-debug-final .opening__char,
.opening.is-debug-scene12 .opening__char,
.opening.is-debug-final .opening__face-mask,
.opening.is-debug-scene12 .opening__face-mask,
.opening.is-debug-final .opening__hand,
.opening.is-debug-scene12 .opening__hand,
.opening.is-debug-scene12 .js-opening-hand,
.opening.is-debug-final .opening__th,
.opening.is-debug-scene12 .opening__th,
.opening.is-debug-final .opening__anniversary-text,
.opening.is-debug-scene12 .opening__anniversary-text,
.opening.is-debug-final .opening__confetti,
.opening.is-debug-scene12 .opening__confetti,
.opening.is-debug-final .opening__confetti-piece,
.opening.is-debug-scene12 .opening__confetti-piece {
  opacity: 1;
  visibility: visible;
}

.opening.is-debug-scene12 .opening__char .opening__face--normal,
.opening.is-debug-scene12 .opening__char .opening__face--smile,
.opening.is-debug-scene12 .opening__char .opening__face--blink,
.opening.is-debug-scene12 .opening__char .opening__face--surprised,
.opening.is-debug-scene12 .opening__char .opening__face-mask {
  opacity: 0;
  visibility: hidden;
}

.opening.is-debug-scene12 .opening__char--one .opening__face--normal {
  opacity: 1;
  visibility: visible;
}

.opening.is-debug-scene12 .opening__char--zero-left .opening__face--smile,
.opening.is-debug-scene12 .opening__char--zero-right .opening__face--smile,
.opening.is-debug-scene12 .opening__char--zero-left .opening__face-mask,
.opening.is-debug-scene12 .opening__char--zero-right .opening__face-mask {
  opacity: 1;
  visibility: visible;
}

.opening.is-debug-scene12 .opening__char--zero-left .opening__face--blink,
.opening.is-debug-scene12 .opening__char--zero-right .opening__face--blink,
.opening.is-debug-scene12 .opening__char--zero-left .opening__face--surprised,
.opening.is-debug-scene12 .opening__char--zero-right .opening__face--surprised {
  opacity: 0;
  visibility: hidden;
}

.opening.is-debug-final .opening__face--smile {
  opacity: 1;
  visibility: visible;
}

.opening.is-debug-final .opening__hand--left {
  display: block !important;
}

.opening.is-opening-scene12 .opening__hand--left,
.opening.is-debug-scene12 .opening__hand--left {
  display: block !important;
}

.opening.is-debug-final .opening__hand--middle {
  display: block !important;
}

.opening.is-opening-scene12 .opening__hand--middle,
.opening.is-debug-scene12 .opening__hand--middle {
  display: block !important;
}

.opening.is-debug-final .opening__hand--right {
  display: block !important;
  transform: translate(233px, -166px) scale(1.3) !important;
}

.opening.is-debug-final .opening__th,
.opening.is-debug-scene12 .opening__th,
.opening.is-debug-final .opening__anniversary-text {
  transform: translateY(0) scale(1);
}

.opening.is-debug-final .opening__confetti-piece {
  transform: translate3d(calc(var(--from-x) + var(--drift-x)), calc(var(--from-y) + var(--drift-y)), 0);
}

.opening.is-debug-scene12 .opening__confetti-piece {
  transform: translate3d(calc(var(--from-x) + var(--drift-x)), calc(var(--from-y) + var(--drift-y)), 0);
}

.opening.is-debug-final .opening__face--normal,
.opening.is-debug-scene12 .opening__face--normal,
.opening.is-debug-final .opening__face--blink,
.opening.is-debug-scene12 .opening__face--blink,
.opening.is-debug-final .opening__face--wink-smile,
.opening.is-debug-scene12 .opening__face--wink-smile,
.opening.is-debug-final .opening__face--surprised,
.opening.is-debug-scene12 .opening__face--surprised {
  opacity: 0;
}
﻿.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 120px 40px;
}

.section__inner,
.section-fv__container,
.section-message__container,
.section-history__container,
.section-voices__container,
.section-logo__container,
.section-next__container {
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
}
.section-message,
.section-voices,
.section-logo,
.section-next {
  position: relative;
  transform-origin: center top;
}

.section-message { z-index: 1; }
.section-voices { z-index: 2; }
.section-logo { z-index: 3; }
.section-next { z-index: 4; }

@media (min-width: 1025px) {
  .section-voices,
  .section-logo,
  .section-next {
    margin-top: -72px;
  }
}


h2,
h3,
.section-message__title,
.history-card__intro-title,
.history-card__title,
.section-voices__title,
.section-logo__title,
.section-next__title,
.topic-modal__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
}

.section-message__title,
.history-card__intro-title,
.section-voices__title,
.section-logo__title,
.section-next__title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.section-message__label,
.history-card__label,
.section-voices__label,
.section-logo__label,
.section-next__label,
.topic-modal__eyebrow {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
}

.section-message__label,
.history-card__label,
.section-voices__label,
.section-logo__label,
.section-next__label {
  margin: 0 0 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.48em;
  line-height: 1.5;
}

.section-fv {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: flex-start;
  padding-top: 148px;
  padding-bottom: 120px;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url("../img/bk.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}

.section-fv__container {
  display: flex;
  justify-content: center;
}

.section-fv__visual {
  position: static;
  width: min(100%, 980px);
  min-height: 520px;
  display: grid;
  place-items: center;
}

.section-fv__title {
  margin: 0;
}

.fv-hero-visual {
  position: static;
  width: min(100%, 900px);
  animation: fv-hero-float 5.8s ease-in-out infinite;
}

.fv-hero-visual__image {
  display: block;
  width: 100%;
  height: auto;
}

.fv-opening-replay {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 5;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(29, 32, 136, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #1d2088;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(29, 32, 136, 0.08);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fv-opening-replay:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(29, 32, 136, 0.24);
  box-shadow: 0 6px 18px rgba(29, 32, 136, 0.12);
}

.fv-opening-replay:focus-visible {
  outline: 2px solid #1d2088;
  outline-offset: 2px;
}

.fv-opening-replay__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.fv-opening-replay__icon::before {
  content: "";
  position: static;
  transform: translateX(1px);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.fv-opening-replay__text {
  display: block;
  white-space: nowrap;
}

.fv-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fv-confetti__piece {
  position: absolute;
  display: block;
  width: var(--size, 18px);
  height: var(--size, 18px);
  background: var(--color, #8ed7f1);
  opacity: 0.58;
  animation: fv-confetti-drift var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.fv-confetti__piece--circle {
  border-radius: 50%;
}

.fv-confetti__piece--diamond {
  transform: rotate(45deg);
}

.fv-confetti__piece--triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-right: calc(var(--size, 18px) / 2) solid transparent;
  border-bottom: var(--size, 18px) solid var(--color, #d9bd82);
  border-left: calc(var(--size, 18px) / 2) solid transparent;
}

.fv-confetti__piece--01 { --size: 22px; --color: #f5a7af; --duration: 9s; --delay: -1.2s; left: 11%; top: 23%; }
.fv-confetti__piece--02 { --size: 16px; --color: #8ed7f1; --duration: 8.4s; --delay: -3s; left: 6%; top: 58%; }
.fv-confetti__piece--03 { --size: 18px; --color: #8ed7f1; --duration: 10s; --delay: -2s; left: 47%; top: 10%; }
.fv-confetti__piece--04 { --size: 18px; --color: #d9bd82; --duration: 8.8s; --delay: -4.2s; right: 12%; top: 24%; }
.fv-confetti__piece--05 { --size: 24px; --color: #f5a7af; --duration: 9.6s; --delay: -1.8s; right: 9%; top: 70%; }
.fv-confetti__piece--06 { --size: 16px; --color: #8ed7f1; --duration: 8.6s; --delay: -5.2s; right: 3%; top: 48%; }
.fv-confetti__piece--07 { --size: 18px; --color: #8ed7f1; --duration: 10.2s; --delay: -3.8s; left: 61%; top: 86%; }
.fv-confetti__piece--08 { --size: 18px; --color: #d9bd82; --duration: 9.2s; --delay: -2.6s; left: 3%; top: 83%; }

@keyframes fv-hero-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes fv-confetti-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg));
  }

  50% {
    transform: translate3d(0, 14px, 0) rotate(calc(var(--rotate, 0deg) + 12deg));
  }
}

@media (min-width: 1025px) {
  .fv-opening-replay {
    display: inline-flex;
  }
}

.fv-logo {
  position: relative;
  width: 760px;
  height: 420px;
  margin: 0 auto;
  color: #1d2088;
}

.fv-logo__characters {
  position: relative;
  width: 760px;
  height: 284px;
}

.fv-logo__part,
.fv-logo__anniversary-text {
  position: absolute;
  display: block;
  height: auto;
}

.fv-logo__face,
.fv-logo__face-mask {
  position: absolute;
  z-index: 3;
  display: block;
}

.fv-logo__face {
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
}

.fv-logo__face-mask {
  background: #1d2088;
  transform: translate(-50%, -50%);
}

.fv-logo__face-mask--one {
  left: 130px;
  top: 84px;
  width: 70px;
  height: 58px;
  border-radius: 16px;
}

.fv-logo__face--one {
  left: 132px;
  top: 92px;
}

.fv-logo__face-mask--zero-left {
  left: 300px;
  top: 176px;
  width: 162px;
  height: 126px;
  border-radius: 999px;
}

.fv-logo__face--zero-left {
  left: 320px;
  top: 162px;
}

.fv-logo__face-mask--zero-right {
  left: 597px;
  top: 96px;
  width: 124px;
  height: 82px;
  border-radius: 999px;
}

.fv-logo__face--zero-right {
  left: 589px;
  top: 98px;
}

.fv-logo__part--one {
  left: 78px;
  top: 34px;
  width: 100px;
  transform: rotate(-3deg);
}

.fv-logo__part--zero-left {
  left: 186px;
  top: 72px;
  width: 271px;
  transform: rotate(-1deg);
}

.fv-logo__part--zero-right {
  left: 445px;
  top: 30px;
  width: 222px;
  transform: rotate(3deg);
}

.fv-logo__part--hand-left {
  left: 264px;
  top: 138px;
  width: 122px;
  transform: rotate(-9deg);
  transform-origin: 76% 26%;
}

.fv-logo__part--hand-right {
  left: 604px;
  top: 88px;
  width: 92px;
  transform: rotate(6deg);
  transform-origin: 16% 78%;
}

.fv-logo__part--th {
  left: 590px;
  top: 196px;
  width: 118px;
}

.fv-logo__anniversary-text {
  left: 22px;
  top: 304px;
  width: 716px;
}

.fv-logo__company {
  position: absolute;
  left: 50%;
  top: 372px;
  margin: 0;
  color: #1d2088;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
  transform: translateX(-50%);
}

.fv-logo__company::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 16px;
  margin-right: 12px;
  border: 4px solid currentColor;
  border-radius: 50%;
  vertical-align: -3px;
}

.section-fv__confetti {
  position: absolute;
  display: block;
  width: var(--size, 20px);
  height: var(--size, 20px);
  background: var(--color, #8ed7f1);
}

.section-fv__confetti--circle {
  border-radius: 50%;
}

.section-fv__confetti--diamond {
  transform: rotate(45deg);
}

.section-fv__confetti--triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-right: calc(var(--size, 20px) / 2) solid transparent;
  border-bottom: var(--size, 20px) solid var(--color, #d9bd82);
  border-left: calc(var(--size, 20px) / 2) solid transparent;
}

.section-fv__confetti--01 { --size: 28px; --color: #f5a7af; left: 17%; top: 28%; }
.section-fv__confetti--02 { --size: 20px; --color: #8ed7f1; left: 8%; top: 46%; transform: rotate(-18deg); }
.section-fv__confetti--03 { --size: 24px; --color: #8ed7f1; left: 53%; top: 12%; }
.section-fv__confetti--04 { --size: 24px; --color: #d9bd82; right: 16%; top: 22%; transform: rotate(42deg); }
.section-fv__confetti--05 { --size: 30px; --color: #f5a7af; right: 11%; top: 64%; }
.section-fv__confetti--06 { --size: 21px; --color: #8ed7f1; right: 2%; top: 48%; transform: rotate(-18deg); }
.section-fv__confetti--07 { --size: 24px; --color: #8ed7f1; left: 58%; top: 86%; }
.section-fv__confetti--08 { --size: 24px; --color: #d9bd82; left: 3%; top: 79%; transform: rotate(-28deg); }

.section-message {
  min-height: 900px;
  display: flex;
  align-items: center;
  background-color: #f8f5ed;
  background-image: url("../img/bk.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}

.section-message__container {
  max-width: 620px;
  text-align: center;
}

.section-message__label {
  color: #1b2f4a;
}

.section-message__title {
  color: #08213d;
}

.section-message__body {
  margin-top: 34px;
  color: #202b36;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 2.15;
}

.section-message__body p {
  margin: 0;
}

.section-message__body p + p {
  margin-top: 24px;
}

.section-history {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 120px;
  background-color: #1D2088;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1.4px, transparent 1.6px);
  background-size: 32px 32px;
  background-position: top center;
}

.section-history__container {
  width: min(100%, 1180px);
}

.history-stack {
  display: grid;
  gap: 24px;
}

.history-stack.is-history-stack-ready {
  position: relative;
  gap: 0;
  align-items: start;
}

.history-stack.is-history-stack-ready .history-card {
  grid-area: 1 / 1;
  width: 100%;
  will-change: transform, opacity;
  pointer-events: none;
}

.history-stack.is-history-stack-ready .history-card.is-history-card-active {
  pointer-events: auto;
}

.history-skip {
  appearance: none;
  position: fixed;
  right: max(32px, calc((100vw - 1180px) / 2 + 18px));
  bottom: 44px;
  z-index: 9000;
  display: block;
  width: 88px;
  padding: 8px;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.history-skip.is-history-skip-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.history-skip img {
  display: block;
  width: 100%;
  height: auto;
}

.history-skip:hover,
.history-skip:focus-visible {
  opacity: 0.9;
}

.history-skip:focus-visible {
  outline: 3px solid #8ed7f1;
  outline-offset: 4px;
}

.history-card {
  position: relative;
  min-height: 600px;
}

.history-card__paper {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
}

.history-card__paper--back {
  z-index: 0;
  background: rgba(29, 32, 136, 0.08);
  transform: translate(34px, 26px) rotate(3deg);
}

.history-card__paper--middle {
  z-index: 1;
  background: rgba(29, 32, 136, 0.08);
  transform: translate(14px, 14px) rotate(-2deg);
}

.history-card--intro {
  display: grid;
  place-items: start center;
  min-height: 640px;
  padding: 80px;
  border-radius: 6px;
  background: #1d2088;
  color: #ffffff;
  text-align: center;
}

.history-card--intro .history-card__paper--back {
  background: rgba(29, 32, 136, 0.04);
  transform: translate(56px, 34px) rotate(4deg);
}

.history-card--intro .history-card__paper--middle {
  background: rgba(29, 32, 136, 0.09);
  transform: translate(30px, 20px) rotate(-2deg);
}

.history-card__intro-content {
  position: relative;
  z-index: 2;
}

.history-card__intro-text {
  margin: 34px 0 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 2.1;
}

.history-card__content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  padding: 32px 66px 40px 40px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(29, 32, 136, 0.08);
}

.history-card__bar {
  width: 113px;
  height: auto;
  align-self: center;
  justify-self: center;
}

.history-card__bar-sp {
  display: none;
}

.history-card__main {
  min-width: 0;
}

.history-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 20px;
  border-bottom: 3px double #d9d9d9;
}

.history-card__header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.history-card__eyebrow {
  margin: 0 0 10px;
  color: #b27d1c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.history-card__title {
  margin: 0;
  color: #08213d;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.history-card__topics {
  flex: 0 0 228px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

@media (min-width: 1025px) {
  .history-card__topics:not(:has(.topic-button)) {
    display: none;
  }
}

.topic-button {
  appearance: none;
  display: block;
  flex: 0 0 108px;
  width: 108px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  cursor: pointer;
}

.topic-button img {
  display: block;
  width: 100%;
  height: auto;
}

.topic-button:hover,
.topic-button:focus-visible {
  opacity: 0.88;
}

.topic-button:focus-visible {
  outline: 3px solid #8ed7f1;
  outline-offset: 4px;
}
.history-card__layout {
  display: grid;
  align-items: start;
  gap: 24px;
  margin-top: 26px;
}

.history-card__layout--one,
.history-card__layout--two,
.history-card__layout--gallery {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.history-card--images-1 .history-card__layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 22px 30px;
}

.history-card--images-1 .history-card__primary {
  display: contents;
}

.history-card--images-1 .history-card__figure--large {
  grid-column: 1 / -1;
}

.history-card--images-1 .history-card__figure--large img {
  aspect-ratio: 894 / 330;
}

.history-card--images-1 .history-card__summary {
  grid-column: 1 / 2;
  max-width: none;
  margin-top: 0;
}

.history-card--images-1 .history-card__note {
  grid-column: 2 / 3;
  align-self: start;
}

.history-card--images-4 .history-card__layout,
.history-card--images-5 .history-card__layout {
  grid-template-columns: minmax(0, 1fr) 418px;
  align-items: start;
  gap: 24px;
}

.history-card--images-4 .history-card__secondary--gallery,
.history-card--images-5 .history-card__secondary--gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.history-card--images-4 .history-card__secondary--gallery .history-card__figure:first-child {
  grid-row: span 2;
}

.history-card--images-4 .history-card__secondary--gallery .history-card__note,
.history-card--images-5 .history-card__secondary--gallery .history-card__note {
  grid-column: 1 / -1;
}

.history-card__primary,
.history-card__secondary {
  align-self: start;
  min-width: 0;
}

.history-card__secondary {
  display: grid;
  align-content: start;
  gap: 18px;
}



.history-card__figure {
  margin: 0;
}

.history-card__figure img {
  width: 100%;
  aspect-ratio: 282 / 291;
  object-fit: cover;
  border-radius: 12px;
}

.history-card__figure--large img {
  aspect-ratio: 546 / 395;
}

.history-card--images-4 .history-card__secondary--gallery .history-card__figure img {
  aspect-ratio: 1 / 1;
}

.history-card--images-4 .history-card__secondary--gallery .history-card__figure:first-child img {
  aspect-ratio: 202 / 331;
}

.history-card--images-5 .history-card__secondary--gallery .history-card__figure img {
  aspect-ratio: 202 / 150;
}

@media (min-width: 1025px) {
  .history-card--images-5 .history-card__layout {
    display: block;
  }

  .history-card--images-5 .history-card__media-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 418px;
    align-items: start;
    gap: 24px;
  }

  .history-card--images-5 .history-card__text-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 24px;
    margin-top: 18px;
    padding-top: 10px;
  }

  .history-card--images-5 .history-card__text-area .history-card__summary {
    max-width: none;
    margin-top: 0;
  }
}

.history-card__figure figcaption {
  margin-top: 8px;
  color: #6c7280;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.history-card--images-4 .history-card__figure figcaption,
.history-card--images-5 .history-card__figure figcaption {
  margin-top: 7px;
  font-size: 11px;
}

.history-card__summary {
  align-self: start;
  max-width: 720px;
  margin: 18px 0 0;
  color: #202b36;
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .history-card__summary {
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 1025px) and (min-height: 820px) {
  .history-card__summary {
    max-height: 280px;
  }
}

@media (min-width: 1280px) and (min-height: 900px) {
  .history-card__summary {
    max-height: 320px;
  }
}

@media (min-width: 1600px) and (min-height: 980px) {
  .history-card__summary {
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .history-card__summary {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.history-card__summary .history-card__text-link {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: linear-gradient(
    transparent 62%,
    rgba(205, 185, 255, 0.55) 62%,
    rgba(205, 185, 255, 0.55) 88%,
    transparent 88%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-decoration-break: clone;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  vertical-align: baseline;
  cursor: pointer;
  transition: color 0.25s ease;
  -webkit-box-decoration-break: clone;
}

.history-card__summary .history-card__text-link:hover {
  color: #5a45a0;
}

.history-card__summary .history-card__text-link:focus-visible {
  color: #5a45a0;
  outline: 2px solid rgba(90, 69, 160, 0.7);
  outline-offset: 2px;
}

.history-card--images-1 .history-card__summary,
.history-card--images-4 .history-card__summary,
.history-card--images-5 .history-card__summary {
  margin-top: 20px;
}

.history-card__note {
  align-self: start;
  padding: 22px 26px;
  border-left: 3px solid #1d2088;
  background: #eeeeF8;
  color: #5b6270;
}

.history-card__note h4 {
  margin: 0 0 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.history-card__note p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.section-voices {
  padding-top: 80px;
  padding-bottom: 112px;
  background-color: #f7f6f1;
  background-image: url("../img/bk.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}

.section-voices__container {
  width: min(100%, 1180px);
}

.section-voices__header {
  text-align: center;
}

.section-voices__label {
  color: #20314a;
}

.section-voices__title {
  color: #08213d;
}

.section-voices__lead {
  margin: 34px 0 0;
  color: #202b36;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 2;
}

.voice-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 30px 28px;
  margin-top: 56px;
}

.voice-card {
  --voice-card-line-color: #1d2088;
  --voice-card-bg: #ffffff;
  --voice-card-line-inset: 10px;
  --voice-card-line-width: 2px;
  --voice-card-shape: inset(0 0 0 0);
  --voice-card-shape-inner: inset(0 0 0 0);
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 226px;
  padding: 31px 30px 24px;
  border: 0;
  background: var(--voice-card-bg);
  box-shadow: 8px 8px 18px rgba(96, 96, 96, 0.16);
  color: #202b36;
}

.voice-card::before,
.voice-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.voice-card::before {
  inset: var(--voice-card-line-inset);
  z-index: 0;
  background: var(--voice-card-line-color);
  clip-path: var(--voice-card-shape);
}

.voice-card::after {
  inset: calc(var(--voice-card-line-inset) + var(--voice-card-line-width));
  z-index: 1;
  background: var(--voice-card-bg);
  clip-path: var(--voice-card-shape-inner);
}

.voice-card > * {
  position: relative;
  z-index: 2;
}

.voice-card--round {
  border-radius: 30px;
}

.voice-card--round::before {
  border-radius: 25px;
}

.voice-card--round::after {
  border-radius: 22px;
}

.voice-card--square {
  border-radius: 0;
}

.voice-card--cut-lt-rb {
  --voice-card-shape: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  --voice-card-shape-inner: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
}

.voice-card--cut-rt-lb {
  --voice-card-shape: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  --voice-card-shape-inner: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.voice-card--polygon {
  --voice-card-shape: polygon(10% 0, 90% 0, 100% 15%, 100% 85%, 90% 100%, 10% 100%, 0 85%, 0 15%);
  --voice-card-shape-inner: polygon(10% 0, 90% 0, 100% 15%, 100% 85%, 90% 100%, 10% 100%, 0 85%, 0 15%);
}

.voice-card__message {
  position: relative;
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding-right: 42px;
  color: #202b36;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.voice-card__message::after {
  content: "…";
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 24px;
  background: #ffffff;
  color: #202b36;
  font-weight: 700;
  line-height: 1.9;
  text-align: right;
  pointer-events: none;
}

.voice-card__message p {
  margin: 0;
}

.voice-card__more {
  position: absolute;
  right: 22px;
  bottom: 104px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 4px solid #1d2088;
  border-radius: 50%;
  background: #ffffff;
  color: #1d2088;
  cursor: pointer;
}

.voice-card__more:focus-visible {
  outline: 3px solid #8ed7f1;
  outline-offset: 3px;
}

.voice-card__more-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.voice-card__more-icon::before,
.voice-card__more-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.voice-card__more-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}


.voice-card__profile {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: calc(100% - 58px);
  margin-top: auto;
  margin-left: auto;
  padding-top: 28px;
  text-align: right;
}

.voice-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: #edede7;
}

.voice-card__person {
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  text-align: right;
}

.voice-card__company {
  margin: 0 0 5px;
  color: #202b36;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.voice-card__name {
  margin: 0;
  color: #1d2088;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.voice-card-list .voice-card {
  cursor: pointer;
}

.voice-card-list .voice-card:focus-visible {
  outline: 3px solid #8ed7f1;
  outline-offset: 4px;
}

html.is-voice-modal-open,
body.is-voice-modal-open {
  overflow: hidden;
}

body.is-voice-modal-open {
  padding-right: var(--voice-modal-scrollbar-width, 0px);
}

.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 32px;
  visibility: visible;
  pointer-events: auto;
}

.voice-modal[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.voice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 34, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.voice-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100dvh - 64px);
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.voice-modal__content {
  max-height: calc(100dvh - 64px);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.26s ease 0.08s,
    transform 0.3s ease 0.08s;
  overscroll-behavior: contain;
}

.voice-modal.is-visible .voice-modal__backdrop,
.voice-modal.is-visible .voice-modal__dialog,
.voice-modal.is-visible .voice-modal__content {
  opacity: 1;
}

.voice-modal.is-visible .voice-modal__dialog {
  transform: scale(1);
}

.voice-modal.is-visible .voice-modal__content {
  transform: translateY(0);
}

.voice-modal__close {
  appearance: none;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1d2088;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(29, 32, 136, 0.22);
}

.voice-modal__close:focus-visible {
  outline: 3px solid #8ed7f1;
  outline-offset: 3px;
}

.voice-modal__close-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.voice-modal__close-icon::before,
.voice-modal__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.voice-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.voice-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.voice-modal .voice-card {
  width: 100%;
  min-height: 0;
  padding: 48px 52px 40px;
  cursor: default;
  box-shadow: 0 18px 42px rgba(13, 19, 42, 0.2);
}

.voice-modal .voice-card__message {
  display: block;
  overflow: visible;
  height: auto;
  padding-right: 0;
  font-size: 15px;
  line-height: 2;
  -webkit-line-clamp: initial;
}

.voice-modal .voice-card__message::after,
.voice-modal .voice-card__more {
  display: none;
}

.voice-modal .voice-card__profile {
  width: 100%;
  padding-top: 40px;
}

@media (max-width: 768px) {
  .voice-modal {
    padding: 12px;
  }

  .voice-modal__dialog,
  .voice-modal__content {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .voice-modal__close {
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
  }

  .voice-modal .voice-card {
    padding: 52px 24px 30px;
  }

  .voice-modal .voice-card__message {
    font-size: 14px;
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-modal__backdrop,
  .voice-modal__dialog,
  .voice-modal__content {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }

  .voice-modal__dialog,
  .voice-modal.is-visible .voice-modal__dialog {
    transform: none;
  }
}



.section-logo {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 120px;
  background-color: #1D2088;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1.4px, transparent 1.6px);
  background-size: 32px 32px;
  background-position: top center;
  color: #ffffff;
}

.section-logo__container {
  width: min(100%, 1140px);
}

.section-logo__header {
  text-align: center;
}

.section-logo__label {
  color: #ffffff;
}

.section-logo__title {
  color: #ffffff;
}

.section-logo__lead {
  margin: 34px 0 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 2;
}

.logo-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin-top: 48px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  min-height: 398px;
  padding: 36px 38px 34px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.1);
  color: #202b36;
}

.logo-card__image-wrap {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin-bottom: 30px;
}

.logo-card__image {
  max-width: 100%;
  max-height: 178px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-card__text {
  margin: auto 0 0;
  color: #202b36;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.95;
}

.section-next {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background-color: #f7f6f1;
  background-image: url("../img/bk.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  color: #08213d;
}

.section-next__container {
  position: relative;
  width: min(100%, 1180px);
  min-height: 630px;
  padding: 0 40px;
}

.section-next__message {
  text-align: center;
}

.section-next__label {
  color: #687386;
}

.section-next__title {
  color: #08213d;
}

.section-next__body {
  margin-top: 34px;
  color: #333d4c;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 2.15;
}

.section-next__body p {
  margin: 0;
}

.section-next__body p + p {
  margin-top: 40px;
}

.section-next__mascots {
  position: absolute;
  left: 50%;
  bottom: -4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 62px;
  width: min(100%, 560px);
  transform: translateX(-50%);
}

.section-next__mascot {
  display: block;
  height: auto;
  animation: mascot-bounce 3.2s ease-in-out infinite;
}

.section-next__mascot--one {
  width: 66px;
  animation-delay: -0.3s;
}

.section-next__mascot--two {
  width: 122px;
  animation-delay: -1.1s;
}

.section-next__mascot--three {
  width: 132px;
  animation-delay: -1.8s;
}

.next-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  width: 100%;
  margin-top: -2px;
  background: #1d2088;
  color: #ffffff;
}

.next-ticker__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: max-content;
  padding: 12px 0;
  font-family: "Josefin Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.4;
  white-space: nowrap;
  animation: ticker-flow 28s linear infinite;
}

.next-ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.next-ticker__group span {
  display: inline-block;
}

.section-next__footer {
  position: relative;
  padding: 62px 0 34px;
}

.section-next__footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.8fr) 110px;
  gap: 40px;
  align-items: start;
  width: min(100%, 1080px);
  padding: 0 32px;
}

.section-next__company {
  min-width: 0;
}

.section-next__company-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

.section-next__company-name-en {
  margin: 4px 0 0;
  color: #1b2f4a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.section-next__site-link {
  display: inline-block;
  margin-top: 18px;
  color: #1b2f4a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
}

.section-next__address {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px 34px;
  min-width: 0;
  margin: 0;
  color: #1b2f4a;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.section-next__address p,
.section-next__contact p {
  margin: 0;
}

.section-next__address-column {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.section-next__address-item p + p {
  margin-top: 4px;
}

.section-next__address-title {
  color: #1d2088;
  font-weight: 800;
}

.section-next__contact {
  color: #1b2f4a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.section-next__pagetop {
  justify-self: end;
  align-self: start;
  width: 94px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.section-next__pagetop img {
  width: 100%;
  height: auto;
}

.section-next__copyright {
  margin: 66px 0 0;
  color: #1b2f4a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

@keyframes mascot-bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes ticker-flow {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv-hero-visual {
    animation-duration: 9s;
  }

  .fv-confetti__piece {
    animation: none;
  }

  .section-next__mascot {
    animation-duration: 5.5s;
  }

  .next-ticker__track {
    animation-duration: 56s;
  }

}

@media (max-width: 1024px) {
  .section-fv__visual {
    min-height: 440px;
  }

  .fv-hero-visual {
    width: min(100%, 760px);
  }
}
@media (max-width: 1024px) {
  .section {
    padding-right: 28px;
    padding-left: 28px;
  }

  .section-fv__visual {
    min-height: 360px;
  }

  .fv-logo {
    transform: scale(0.82);
    transform-origin: top center;
  }
}

@media (max-width: 768px) {
  .section-fv__visual {
    min-height: 320px;
  }

  .fv-hero-visual {
    width: min(100%, 520px);
  }

  .fv-confetti__piece {
    opacity: 0.42;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }



.section-fv {
    min-height: 620px;
    padding-top: 96px;
  }

  .section-fv__visual {
    min-height: 280px;
  }

  .fv-logo {
    transform: scale(0.46);
  }

  .section-message {
    min-height: auto;
  }

  .section-message__label,
  .history-card__label,
  .section-voices__label,
  .section-logo__label,
  .section-next__label {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .section-message__title {
    font-size: 28px;
  }

  .section-message__body {
    font-size: 14px;
    line-height: 2;
  }
}
@media (max-width: 1024px) {
  .section-fv__visual {
    min-height: 440px;
  }

  .fv-hero-visual {
    width: min(100%, 760px);
  }
}
@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .section {
    padding: 88px 24px;
  }

  .section__inner,
  .section-fv__container,
  .section-message__container,
  .section-history__container,
  .section-voices__container,
  .section-logo__container,
  .section-next__container {
    width: 100%;
  }

  .section-fv {
    min-height: 680px;
    padding-top: 96px;
  }

  .section-fv__visual {
    min-height: 360px;
  }

  .fv-logo {
    transform: scale(0.72);
    transform-origin: top center;
  }

  .section-message {
    min-height: auto;
  }

  .section-history {
    overflow: hidden;
    padding: 84px 20px 104px;
  }

  .history-stack,
  .history-stack.is-history-stack-ready {
    display: grid;
    gap: 0;
    min-height: 0 !important;
  }

  .history-stack.is-history-stack-ready .history-card,
  .history-card {
    grid-area: auto;
    width: 100%;
    min-height: 0;
    pointer-events: auto;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: auto;
  }

  .history-card + .history-card {
    margin-top: -24px;
  }

  .history-card__paper {
    display: none;
  }

  .history-card--intro {
    min-height: 0;
    padding: 64px 24px;
  }

  .history-card__content {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 24px 32px;
  }

  .history-card__bar {
    display: none;
  }

  .history-card__bar-sp {
    display: block;
    width: min(100%, 420px);
    height: auto;
    justify-self: start;
  }

  .history-card__header {
    display: block;
    padding-bottom: 18px;
  }

  .history-card__title {
    font-size: 24px;
  }

  .history-card__topics {
    justify-content: flex-start;
    flex: none;
    gap: 8px;
    margin-top: 18px;
  }

  .topic-button {
    flex: 0 0 92px;
    width: 92px;
  }

  .history-card__layout,
  .history-card__layout--one,
  .history-card__layout--two,
  .history-card__layout--gallery,
  .history-card--images-1 .history-card__layout,
  .history-card--images-4 .history-card__layout,
  .history-card--images-5 .history-card__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .history-card--images-5 .history-card__media-area,
  .history-card--images-5 .history-card__text-area {
    display: contents;
  }

  .history-card--images-5 .history-card__media-area .history-card__primary {
    order: 1;
  }

  .history-card--images-5 .history-card__text-area .history-card__summary {
    order: 2;
    margin-top: 0;
  }

  .history-card--images-5 .history-card__media-area .history-card__secondary {
    order: 3;
  }

  .history-card--images-5 .history-card__text-area .history-card__note {
    order: 4;
  }

  .history-card--images-1 .history-card__primary {
    display: block;
  }

  .history-card--images-1 .history-card__figure--large,
  .history-card--images-1 .history-card__summary,
  .history-card--images-1 .history-card__note {
    grid-column: auto;
  }

  .history-card__secondary,
  .history-card--images-4 .history-card__secondary--gallery,
  .history-card--images-5 .history-card__secondary--gallery {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .history-card__note,
  .history-card--images-4 .history-card__secondary--gallery .history-card__note,
  .history-card--images-5 .history-card__secondary--gallery .history-card__note {
    grid-column: 1 / -1;
  }

  .history-card__figure img,
  .history-card__figure--large img,
  .history-card--images-1 .history-card__figure--large img,
  .history-card--images-4 .history-card__secondary--gallery .history-card__figure:first-child img,
  .history-card--images-5 .history-card__secondary--gallery .history-card__figure img {
    width: 100%;
    aspect-ratio: auto;
    max-height: 320px;
    object-fit: cover;
  }

  .history-skip {
    right: 18px;
    bottom: 18px;
    width: 72px;
    padding: 6px;
  }

  .voice-card-list,
  .logo-card-list {
    grid-template-columns: 1fr;
  }

  .voice-card {
    min-height: 0;
  }

  .section-logo {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .section-next {
    padding-top: 92px;
  }

  .section-next__container {
    min-height: 600px;
    padding: 0 24px;
  }

  .section-next__footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 24px;
  }

  .section-next__company {
    text-align: center;
  }

  .section-next__company-logo {
    width: min(70vw, 190px);
    margin: 0 auto;
  }

  .section-next__address {
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  .section-next__address-column {
    gap: 18px;
  }

  .section-next__pagetop {
    justify-self: center;
    width: 82px;
  }

  .topic-modal {
    padding: 48px 18px 30px;
  }

  .topic-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 78px);
    padding: 44px 24px 34px;
    border-radius: 20px;
  }

  .topic-modal__content {
    max-height: calc(100vh - 156px);
  }

  .topic-modal__close {
    right: -8px;
    top: -28px;
    width: 56px;
    height: 56px;
  }

  .topic-modal__photo {
    float: none;
    clear: both;
    width: min(100%, 300px);
    margin: 8px auto 28px;
    transform: none;
  }

  .topic-modal__photo::before {
    top: 10px;
    right: -10px;
    left: 10px;
    height: 220px;
    transform: none;
  }

  .topic-modal__image {
    transform: none;
  }

  .topic-modal__body-wrap {
    display: block;
  }

  .topic-modal__body {
    font-size: 15px;
    line-height: 1.9;
  }
}

@media (max-width: 768px) {
  .section-fv__visual {
    min-height: 320px;
  }

  .fv-hero-visual {
    width: min(100%, 520px);
  }

  .fv-confetti__piece {
    opacity: 0.42;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 72px 18px;
  }

  .section-message__title,
  .history-card__intro-title,
  .section-voices__title,
  .section-logo__title,
  .section-next__title {
    font-size: 28px;
    line-height: 1.5;
  }

  .section-message__body,
  .section-voices__lead,
  .section-logo__lead,
  .section-next__body {
    font-size: 14px;
    line-height: 1.9;
  }

  .fv-logo {
    transform: scale(0.45);
  }

  .history-card__secondary,
  .history-card--images-4 .history-card__secondary--gallery,
  .history-card--images-5 .history-card__secondary--gallery {
    grid-template-columns: 1fr;
  }

  .history-card__content {
    padding: 30px 20px 28px;
  }

  .voice-card {
    padding: 30px 24px 24px;
  }

  .logo-card {
    min-height: 0;
    padding: 30px 24px 28px;
  }

  .section-next__mascots {
    gap: 32px;
  }
}
body.is-topic-modal-open {
  overflow: hidden;
}

.topic-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 92px 32px 56px;
  overflow-x: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.topic-modal[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.topic-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}

.topic-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  box-sizing: border-box;
  max-height: calc(100vh - 148px);
  padding: 70px 76px 74px;
  overflow: visible;
  border-radius: 30px;
  background: #ffe99b;
  box-shadow: 0 22px 48px rgba(29, 32, 136, 0.18);
  color: #202b36;
  overscroll-behavior: contain;
}

.topic-modal__content {
  display: block;
  max-height: calc(100vh - 292px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.topic-modal__content::-webkit-scrollbar {
  display: none;
}

.topic-modal__close {
  appearance: none;
  position: absolute;
  right: -28px;
  top: -28px;
  display: grid;
  place-items: center;
  z-index: 10;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: #1d2088;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(29, 32, 136, 0.24);
}

.topic-modal__close:focus-visible {
  outline: 3px solid #8ed7f1;
  outline-offset: 4px;
}

.topic-modal__close-icon {
  position: relative;
  width: 26px;
  height: 26px;
}

.topic-modal__close-icon::before,
.topic-modal__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
}

.topic-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.topic-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.topic-modal__eyebrow {
  margin: 0 0 10px;
  color: #b27d1c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.topic-modal__title {
  margin: 0;
  color: #08213d;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.topic-modal__rule {
  width: 100%;
  height: 2px;
  margin: 30px 0 32px;
  background: #1d2088;
  opacity: 0.42;
}


.topic-modal__body-wrap::after {
  content: "";
  display: block;
  clear: both;
}
.topic-modal__body {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 2.05;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.topic-modal__photo {
  position: relative;
  float: right;
  max-width: calc(100% - 24px);
  width: 292px;
  height: auto;
  margin: 4px 24px 30px 34px;
}

.topic-modal__photo figcaption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: #4a3a22;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.topic-modal__photo::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -12px;
  left: 12px;
  height: 220px;
  border-radius: 4px;
  background: rgba(29, 32, 136, 0.16);
  transform: rotate(3.5deg);
  transform-origin: center center;
}

.topic-modal__image {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  box-sizing: border-box;
  border: 12px solid #ffffff;
  border-radius: 4px;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  transform: rotate(3.5deg);
  transform-origin: center center;
}
.topic-modal__photo.is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .section-fv__visual {
    min-height: 440px;
  }

  .fv-hero-visual {
    width: min(100%, 760px);
  }
}
@media (max-width: 1024px) {
  .topic-modal {
    padding: 48px 18px 30px;
  }

  .topic-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 78px);
    padding: 44px 24px 34px;
    border-radius: 20px;
  }

  .topic-modal__content {
    max-height: calc(100vh - 156px);
  }

  .topic-modal__close {
    right: -8px;
    top: -28px;
    width: 56px;
    height: 56px;
  }

  .topic-modal__photo {
    float: none;
    clear: both;
    width: min(100%, 300px);
    height: auto;
    margin: 8px auto 28px;
    transform: none;
  }

  .topic-modal__photo::before {
    top: 10px;
    right: -10px;
    left: 10px;
    height: 220px;
    transform: none;
  }

  .topic-modal__image {
    transform: none;
  }

  .topic-modal__body-wrap {
    display: block;
  }

  .topic-modal__body {
    font-size: 15px;
    line-height: 1.9;
  }
}
@media (max-width: 1024px) {
  .section-fv__visual {
    min-height: 440px;
  }

  .fv-hero-visual {
    width: min(100%, 760px);
  }
}

@media (max-width: 768px) {
  .section-fv__visual {
    min-height: 320px;
  }

  .fv-hero-visual {
    width: min(100%, 520px);
  }

  .fv-confetti__piece {
    opacity: 0.42;
  }
}
/* Step 14-B: FV completion state */
.section-fv {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vh, 80px) 24px clamp(44px, 6vh, 72px);
}

.section-fv__container {
  display: grid;
  place-items: center;
}

.section-fv__visual {
  width: min(100%, 980px);
  min-height: 0;
  display: grid;
  place-items: center;
}

.fv-hero-visual {
  width: min(86vw, 920px);
  margin: 0 auto;
}

.fv-hero-visual__image {
  max-height: calc(100svh - 140px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
}

.fv-confetti,
.fv-confetti__piece {
  display: none;
}

@media (max-width: 1024px) {
  .section-fv {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 48px 20px 44px;
  }

  .section-fv__visual {
    min-height: 0;
  }

  .fv-opening-replay {
    display: none;
  }

  .fv-hero-visual {
    width: min(92vw, 760px);
  }

  .fv-hero-visual__image {
    max-height: calc(100svh - 112px);
    max-height: calc(100dvh - 112px);
  }
}

@media (max-width: 768px) {
  .section-fv {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 42px 18px 38px;
  }

  .section-fv__visual {
    min-height: 0;
  }

  .fv-hero-visual {
    width: min(94vw, 520px);
  }

  .fv-hero-visual__image {
    max-height: calc(100svh - 96px);
    max-height: calc(100dvh - 96px);
  }
}

/* Step 14-C: LP base paper background */
body {
  background-color: #f8f5ed;
  background-image: url("../img/bk.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}

.site-main {
  background: transparent;
}

@media (min-width: 1025px) {
  .section-voices,
  .section-logo,
  .section-next {
    padding-top: 152px;
  }

  .section-voices {
    padding-top: 210px;
  }

  .section-next {
    padding-top: 220px;
  }

  .history-card--intro {
    place-items: center;
  }
}

.section-fv,
.section-message,
.section-voices,
.section-next {
  background-color: transparent;
  background-image: none;
}

:root {
  --opening-blue: #1d2088;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
  color: #1b1c33;
  font-family:
    "Helvetica Neue",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    YuGothic,
    Meiryo,
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-main {
  min-height: 0;
}
