@keyframes image-bannerTextRiseUp {
  0% {
    opacity: 0;
    transform: translateY(120%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

.image-banner__slider {
  display: block;
  overflow: hidden;
  position: relative;
}

.image-banner__slider-item {
  position: relative;
  padding-bottom: var(--image-banner-pc-height);
}

@media screen and (max-width: 959px) {
  .image-banner__slider-item {
    height: var(--image-banner-mobile-height);
  }
}

.image-banner__slider-item img {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  width: var(--image-banner-width);
  margin: 0 auto;
}

.image-banner-slide__text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: var(--image-banner-pc-text-position-vertical, "center");
  justify-content: var(--image-banner-pc-text-position-horizontal, "center");
  padding: 0 15%;
}

@media screen and (max-width: 959px) {
  .image-banner-slide__text-wrapper {
    height: var(--image-banner-mobile-height);
  }
}

.image-banner-slide__text {
  width: auto;
  max-width: var(--text-content-width);
  text-align: var(--image-banner-pc-text-align, "center");
  padding: 45px 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  color: var(--text-color);
}

.image-banner__slider-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, var(--image-banner-overlay-opacity));
}

.image-banner__slider-item-img {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.image-banner-slide__text > [data-animation] {
  opacity: 0;
  transform: translateY(120%);
}

.is-active .image-banner-slide__text > [data-animation] {
  animation: image-bannerTextRiseUp 0.8s cubic-bezier(0.26, 0.54, 0.32, 1)
    forwards;
}

.is-active .image-banner-slide__text .image-banner-slide__sub-title,
.is-active .image-banner-slide__text .image-banner-slide__desc {
  animation-delay: 0.6s;
}

.image-banner-slide__title {
  font-size: var(--image-banner-title-size);
}

.image-banner-slide__buttons {
  margin-top: 8px;
}

.image-banner-slide__button {
  pointer-events: all;
  opacity: 0;
  animation-duration: 2s;
  animation-timing-function: ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
  --color-button-text: var(--image-banner-btn-text-color);
}

.image-banner-slide__button + .image-banner-slide__button {
  margin-left: 14px;
  animation-delay: 1.3s;
}

.image-banner-slide__button.button--secondary {
  background-color: transparent;
}

.image-banner-slide__button:not(.button--link) {
  --color-button-background: var(--image-banner-btn-bg-color);
}

.image-banner-slide__button:not(.button--link)::after {
  box-shadow:
    0 0 0 var(--btn-border-thickness)
      rgba(var(--image-banner-btn-border-color), var(--border-opacity)),
    0 0 0 var(--btn-border-thickness)
      rgba(var(--color-button-background), var(--alpha-button-background));
}

.image-banner-slide__button:hover:not(.button--link)::after {
  box-shadow:
    0 0 0 calc(var(--btn-border-thickness) + 1px)
      rgba(var(--image-banner-btn-border-color), var(--border-opacity)),
    0 0 0 calc(var(--btn-border-thickness) + 1px)
      rgba(var(--color-button-background), var(--alpha-button-background));
}

.image-banner-slide__button + .image-banner-slide__button {
  margin-left: 14px;
  animation-delay: 1.3s;
}

.image-banner-slide__sub-title,
.image-banner-slide__desc {
  margin: 0;
}

.is-active .image-banner-slide__button {
  animation-name: fadeIn;
}

@media screen and (min-width: 960px) {
  .image-banner-slide__desc {
    margin: 8px 0;
  }
}

@media screen and (max-width: 959px) {
  .image-banner-slide__title {
    font-size: calc(var(--image-banner-title-size) / 2);
  }
}

@media screen and (max-width: 959px) {
  .image-banner-slide__text-wrapper {
    align-items: center;
    justify-content: center;
  }

  .image-banner-slide__text {
    text-align: var(--image-banner-mobile-text-align, "center");
    color: var(--text-mobile-color);
  }
}

@media screen and (max-width: 959px) {
  .image-banner-slide__text {
    padding: 30px 0;
  }
}
