/* -----------------------
  point04
----------------------- */
.point04 {
  position: relative;
}

.point04 .loop{
  top: min(calc(70/ 750 * 100vw), 70px);
  z-index: 2;
}

.point04 .loop > p {
  flex-shrink: 0;
  width: min(calc(1580/ 750 * 100vw), 1580px);
}

.point04::before,
.point04::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.point04::before {
  background: url(../img/point04_bg_b.png) no-repeat top center/ 100%;
}

.point04.is-anim::before {
  opacity: 0;
  transition: opacity 1.4s ease 2.4s;
}

.point04::after {
  background: url(../img/point04_bg_a.png) no-repeat top center/ 100%;
  clip-path: inset(100% 0 0 0);
opacity: 0; 
  visibility: hidden;  
}

.point04.is-anim::after {
  opacity: 1;
  visibility: visible;
}


.point04_a {
  position: absolute;
  bottom: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.point04 .point_ttl img {
  display: block;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path, opacity, transform;
}

.point04 .point_num>p:first-child img {
  transform: translateX(40vw);
  opacity: 0;
}

@keyframes p04-bgWipeUp {
  0% {
    clip-path: inset(100% 0 0 0)
  }

  100% {
    clip-path: inset(0 0 0 0)
  }
}

@keyframes p04-sectionIn {
  0% {
    opacity: 0;
    transform: translateY(12px)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes p04-numSlideIn {
  0% {
    transform: translateX(40vw);
    opacity: 0
  }

  100% {
    transform: translateX(0);
    opacity: 1
  }
}

@keyframes p04-ttlReveal {
  0% {
    clip-path: inset(0 0 100% 0)
  }

  100% {
    clip-path: inset(0 0 0 0)
  }
}

@keyframes p04-ttlHide {
  0% {
    opacity: 1;
    transform: translateY(0)
  }

  100% {
    opacity: 0;
    transform: translateY(-8px)
  }
}


.point04.is-anim::after {
  animation: p04-bgWipeUp 0.9s cubic-bezier(.2, .8, .2, 1) 1.5s forwards;
}

.point04.is-anim .point04_a {
  animation: p04-sectionIn 0.7s ease 1.5s forwards;
  pointer-events: auto;
}

.point04.is-anim .point_num>p:first-child img {
  animation: p04-numSlideIn .8s cubic-bezier(.2, .8, .2, 1) 0s forwards;
}

.point04.is-anim .point_ttl img {
  animation: p04-ttlReveal 0.8s cubic-bezier(.2, .8, .2, 1) 0.5s forwards,
    p04-ttlHide 0.6s ease 3s forwards;
}

/* 戻るアニメーション */
@keyframes p04-resetBg {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(100% 0 0 0); }
}

.point04.is-reset::after {
  opacity: 1;
  visibility: visible;
  animation: p04-resetBg 0.6s cubic-bezier(.4,.0,.2,1) forwards;
}

.point04.is-reset .point_num>p:first-child img {
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: translateX(40vw);
  opacity: 0;
}

.point04.is-reset .point_ttl img {
  transition: clip-path 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transform: translateY(12px);
}