.intro-container {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: url(../image/intro/bg-intro.jpg) no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-container.main-type {
  position: static;
  height: 100vh;
}

.card-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-logo {
  width: 100%;
  max-width: 700px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 100px;
  margin-bottom: 80px;
}
.text-box{
  height: 138px;
}
.logo-item {
  max-width: 420px;
  display: block;
  will-change: transform, opacity;
  animation-name: rise-from-bottom;
  animation-duration: 1.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 0.8s;
  opacity: 0;
}
.card-logo .box-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  will-change: clip-path, opacity;
  animation-name: reveal-from-top;
  animation-duration: 2.2s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 0.4s;
  opacity: 0;
}
.card-logo .box-line img {
  max-width: 100%;
}

.text-box .top-line {
  width: 100%;
  max-width: 920px;
  height: 36px;
  overflow: hidden;
  will-change: clip-path, opacity;
  animation-name: reveal-from-left;
  animation-duration: 2.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 1.6s;
  opacity: 0;
}
.text-box .bottom-line {
  width: 100%;
  max-width: 720px;
  height: 36px;
  margin: 0 auto;
  overflow: hidden;
  will-change: clip-path, opacity;
  animation-name: reveal-from-right;
  animation-duration: 2.4s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 1.9s;
  opacity: 0;
}

.text-box .top-line img,
.text-box .bottom-line img {
  display: block;
  width: 100%;
  height: 100%;
}
.text-box .value {
  padding: 10px 0;
  text-align: center;
  font-size: 30px;
  color: #fff;
  font-weight: 500;
  min-height: 56px;
  white-space: nowrap;
}

.text-box .value.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: #fff;
  vertical-align: -3px;
  animation: caret-blink 0.7s step-end infinite;
}

.text-box .value.is-typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: #fff;
  vertical-align: -3px;
  opacity: 0;
  animation: caret-blink 0.7s step-end 4;
}

.card-etc {
  width: 100%;
  margin-top: 40px;
  text-align: center;
}
.card-etc img {
  max-width: 400px;
  display: inline-block;
  will-change: transform, opacity;
  animation-name: rise-from-bottom;
  animation-duration: 1.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 2.4s;
  opacity: 0;
}
.home-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}
.home-button a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 290px;
  height: 54px;
  border-radius: 27px;
  background: #2a9dff;
  font-size: 27px;
  color: #fff;
  font-weight: 700;
  will-change: transform, opacity;
  animation-name: rise-from-bottom;
  animation-duration: 1.4s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 4.4s;
  opacity: 0;
}

.intro-container.main-type .logo-item {
  animation-name: rise-from-bottom-loop;
  animation-duration: 8s;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.intro-container.main-type .card-logo .box-line {
  animation-name: reveal-from-top-loop;
  animation-duration: 8s;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.intro-container.main-type .text-box .top-line {
  animation-name: reveal-from-left-loop;
  animation-duration: 8s;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.intro-container.main-type .text-box .bottom-line {
  animation-name: reveal-from-right-loop;
  animation-duration: 8s;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.intro-container.main-type .text-box .value.is-waiting {
  opacity: 0;
  transition: none;
}

.intro-container.main-type .text-box .value.is-fading {
  opacity: 0;
  transition: opacity 0.7s ease;
}

@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes rise-from-bottom {
  0% {
    opacity: 0;
    transform: translateY(48px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-from-bottom-loop {
  0%,
  10% {
    opacity: 0;
    transform: translateY(48px);
  }
  32% {
    opacity: 1;
    transform: translateY(0);
  }
  86% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes reveal-from-top-loop {
  0%,
  5% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  32% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  86% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
}

@keyframes reveal-from-left-loop {
  0%,
  20% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  52% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  86% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
}

@keyframes reveal-from-right-loop {
  0%,
  24% {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  54% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  86% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
}

@keyframes reveal-from-top {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes reveal-from-left {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes reveal-from-right {
  0% {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .intro-container {
    padding: 40px 24px;
    overflow-y: auto;
    align-items: flex-start;
  }

  .card-container {
    min-height: 100%;
    padding: 20px 0 40px;
  }

  .card-logo {
    max-width: 520px;
    padding-top: 72px;
    margin-bottom: 48px;
    height: 158px;
  }

  .logo-item {
    max-width: 300px;
    width: 72%;
  }

  .text-box {
    width: 100%;
    padding: 0 12px;
    height: 105px;
  }

  .text-box .top-line,
  .text-box .bottom-line {
    height: 28px;
  }

  .text-box .top-line {
    max-width: 100%;
  }

  .text-box .bottom-line {
    max-width: 86%;
  }

  .text-box .value {
    font-size: 22px;
    min-height: 44px;
    padding: 8px 0;
  }

  .card-etc {
    margin-top: 28px;
  }

  .card-etc img {
    max-width: 300px;
    width: 70%;
  }

  .home-button {
    margin-top: 28px;
  }

  .home-button a {
    width: 240px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .intro-container {
    padding: 24px 16px;
  }

  .card-container {
    padding: 8px 0 32px;
  }

  .card-logo {
    max-width: 100%;
    padding-top: 48px;
    margin-bottom: 32px;
    height: 112px;
  }

  .logo-item {
    max-width: 220px;
    width: 64%;
  }

  .text-box {
    padding: 0 4px;
    height: 76px;
  }

  .text-box .top-line,
  .text-box .bottom-line {
    height: 20px;
  }

  .text-box .bottom-line {
    max-width: 82%;
  }

  .text-box .value {
    font-size: 15px;
    min-height: 36px;
    padding: 6px 0;
    letter-spacing: -0.4px;
  }

  .card-etc {
    margin-top: 20px;
  }

  .card-etc img {
    max-width: 240px;
    width: 68%;
  }

  .home-button {
    margin-top: 20px;
    width: 100%;
  }

  .home-button a {
    width: 100%;
    max-width: 260px;
    height: 46px;
    border-radius: 23px;
    font-size: 16px;
  }
}
