/* 画像の親要素に下記クラス + js-custom を付与 */
.show-gradually {
  img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.7s cubic-bezier(0.52, 0, 0, 0.99);
  }
  &.is-shown img {
    clip-path: inset(0 0 0 0);
  }
}

.title-bg {
  position: relative;
  padding: 4px 10px;
  overflow: hidden;
  margin-right: 6px;
  &::before {
    content: "";
    position: absolute;
    inset: 0 100% 0 0;
    background: #FFF;
    transition: inset 0.5s cubic-bezier(0.35, 0, 0, 1);
  }
  &.is-shown {
    &::before {
      inset: 0 0 0 0;
    }
    .title-bg__text {
      color: #820203;
      clip-path: inset(0 0 0 0);
    }
  }
}
.title-bg__text {
  display: inline-block;
  transition: color 0.2s;
  /* clip-path: inset(0 100% 0 0); */
  transition: clip-path 0.3s ease;
  transition-delay: 0.3s;
  color: #FFF;
  font-weight: bold;
}

.js-fade-in,
.js-fade-series-ele {
  opacity: 0;
  transform: translateY(15px);
  transition:
    transform 0.3s linear,
    opacity 0.4s linear;
}

.js-fade-in-right.is-shown,
.js-fade-in-left.is-shown {
  opacity: 1;
  transform: translateX(0);
}

.js-fade-in.is-shown,
.js-fade-series-ele.is-shown {
  opacity: 1;
  transform: translateY(0px);
}

.js-fade-bubble-sevral-rows-ele {
  opacity: 0;
}

.js-fade-bubble-sevral-rows-ele.is-shown {
  -webkit-animation: fadeInScale .9s ease-out forwards;
  animation: fadeInScale .9s ease-out forwards
}

.js-blur {
  opacity: 0;

  &.is-shown {
    -webkit-animation: blur .7s ease-out forwards;
    animation: blur .7s ease-out forwards
  }
}

@keyframes fadeInScale {
  0% {
    -webkit-transform: scale(.8);
    transform: scale(.8);
    opacity: 0
  }

  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 1
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1
  }
}

@keyframes blur {
  0% {
    opacity: 0;
    filter: blur(15px);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
  }
}
