/* トップページを開いたときの導入映像 */

html.tsj-intro-lock,
html.tsj-intro-lock body {
  overflow: hidden !important;
  height: 100%;
}

.tsj-intro {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  background: #f4f2ee;
  overflow: hidden;
  touch-action: none;
  font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;
}

.tsj-intro__video,
.tsj-intro__fog,
.tsj-intro__veil,
.tsj-intro__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tsj-intro__video {
  z-index: 0;
  object-fit: cover;
  background: #d9d5ce;
  transform: translateZ(0);
}

.tsj-intro__fog {
  z-index: 1;
  opacity: 0;
  transform: translateZ(0);
}

.tsj-intro__veil {
  display: none;
}

.tsj-intro__wash {
  z-index: 6;
  background: #fff;
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.tsj-intro__center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(420px, 68vw);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tsj-intro-in 1.5s ease 0.35s forwards;
}

.tsj-intro__logo {
  display: block;
  width: auto;
  max-width: none;
  height: 84%;
}

.tsj-intro__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  animation: tsj-intro-in 1.5s ease 0.7s forwards;
  font-family: "Times New Roman", "游明朝", YuMincho, serif;
}

.tsj-intro__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.tsj-intro__scroll-gleam {
  position: absolute;
  left: 0;
  top: -22px;
  width: 1px;
  height: 22px;
  background: #fff;
  animation: tsj-scroll-fall 2.2s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

.tsj-intro__scroll-label {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1;
}

.tsj-intro__scroll:focus-visible {
  outline: 1px solid rgba(0, 0, 0, 0.45);
  outline-offset: 6px;
}

.tsj-page-mist {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.tsj-page-mist.is-shown {
  opacity: 1;
}

html.tsj-content-in {
  background: #fff;
}

html.tsj-content-in body {
  animation: tsj-content-in 0.8s ease 0.4s both;
}

.tsj-page-mist.is-shown {
  animation: tsj-content-in 0.5s ease 0.1s both;
}

@keyframes tsj-content-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tsj-intro.is-leaving .tsj-intro__video {
  filter: brightness(1.7);
  transition: filter 0.45s ease-in;
}

.tsj-intro.is-leaving .tsj-intro__center,
.tsj-intro.is-leaving .tsj-intro__scroll {
  animation: tsj-intro-out 0.45s ease forwards;
}

.tsj-intro.is-leaving .tsj-intro__wash {
  opacity: 1;
}

.tsj-intro.is-gone {
  opacity: 0;
  transition: opacity 0.75s ease;
}

@keyframes tsj-intro-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tsj-intro-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes tsj-scroll-fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(90px);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .tsj-intro__veil {
    width: 92vw;
    height: 22vh;
  }

  .tsj-intro__center {
    width: min(300px, 74vw);
  }

  .tsj-intro__scroll {
    bottom: 3vh;
  }

  .tsj-intro__scroll-line {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.tsj-intro-lock,
  html.tsj-intro-lock body {
    overflow: auto !important;
    height: auto !important;
  }

  .tsj-intro,
  .tsj-page-mist {
    display: none !important;
  }
}

@media print {
  .tsj-intro,
  .tsj-page-mist {
    display: none !important;
  }
}
