/* ==============================
   Hero Slider
============================== */

.hero-slider {
  width: 100%;
  overflow: hidden;
  background-color: #222;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-slider__slides {
  position: relative;
  width: 100%;
}

/* 非表示スライド */

.hero-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

/* 表示中のスライドだけ高さを作る */

.hero-slider__slide.is-active {
  position: relative;
  z-index: 2;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 画像を切らずに全体表示 */

.hero-slider__image {
  display: block;

  width: 100%;
  height: auto;

  pointer-events: none;
}

/* オーバーレイ */

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 55%) 0%,
      rgb(0 0 0 / 25%) 55%,
      rgb(0 0 0 / 5%) 100%
    );

  pointer-events: none;
}

/* テキスト */

.hero-slider__content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;

  width: min(1180px, calc(100% - 80px));

  color: #fff;

  transform: translate(-50%, -50%);
}

.hero-slider__sub {
  margin: 0 0 18px;

  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.hero-slider__title {
  margin: 0;

  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.hero-slider__text {
  margin: 28px 0 0;

  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
}

/* 左右矢印 */

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 20;

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;

  color: #fff;
  background-color: rgb(0 0 0 / 20%);

  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transform: translateY(-50%);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.hero-slider__arrow span {
  display: block;

  margin-top: -11px;

  font-size: 40px;
  line-height: 1;
}

.hero-slider__arrow:hover {
  border-color: #fff;
  background-color: rgb(0 0 0 / 45%);
}

.hero-slider__arrow--prev {
  left: 28px;
}

.hero-slider__arrow--next {
  right: 28px;
}

/* ページャー */

.hero-slider__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 12px;

  transform: translateX(-50%);
  pointer-events: auto;


}

.hero-slider__dot {
  position: relative;

  width: 32px;
  height: 14px;
  padding: 0;

  border: 0;
  background: transparent;

  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.hero-slider__dot::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 0;

  width: 100%;
  height: 2px;

  background-color: rgb(255 255 255 / 45%);

  transform: translateY(-50%);

  transition:
    height 0.3s ease,
    background-color 0.3s ease;
}

.hero-slider__dot.is-active::before {
  height: 4px;
  background-color: #fff;
}

/* スマホ */

@media (max-width: 767px) {
  .hero-slider__content {
    width: calc(100% - 48px);
  }

  .hero-slider__sub {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .hero-slider__title {
    font-size: clamp(26px, 8vw, 42px);
  }

  .hero-slider__text {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .hero-slider__arrow span {
    font-size: 30px;
  }

  .hero-slider__arrow--prev {
    left: 10px;
  }

  .hero-slider__arrow--next {
    right: 10px;
  }

  .hero-slider__dots {
    bottom: 18px;
  }
}