/* トップヒーローカルーセル（index 専用）
 * style.css は変更せず、こちらで上書き・追加する。
 * スライドが2枚以上のときのみ JS が .is-carousel を付与する。
 */

.hero-carousel_viewport {
  position: relative;
  height: 100%;
}

.hero-carousel_track {
  height: 100%;
}

.hero-carousel_slide {
  position: relative;
  height: 100%;
}

/* style.css の .hero > .hero-ul 相当（DOM がラップされたため） */
.hero-carousel_slide > .hero-ul {
  position: absolute;
  top: 65%;
  left: 10.6%;
  right: 4%;
}

@media only screen and (max-width: 480px) {
  .hero-carousel_slide > .hero-ul {
    display: none;
  }
}

.hero.is-carousel {
  overflow: hidden;
}

.hero.is-carousel .hero-carousel_viewport {
  overflow: hidden;
  height: 100%;
}

.hero.is-carousel .hero-carousel_track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
}

.hero.is-carousel .hero-carousel_slide {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
}

.hero-carousel_link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel_img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.hero-carousel_controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-carousel_btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}

.hero-carousel_btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.hero-carousel_btn--prev {
  left: 12px;
}

.hero-carousel_btn--prev::before {
  -webkit-transform: rotate(-135deg);
      -ms-transform: rotate(-135deg);
          transform: rotate(-135deg);
  margin-left: 14px;
}

.hero-carousel_btn--next {
  right: 12px;
}

.hero-carousel_btn--next::before {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  margin-left: 10px;
}

.hero-carousel_dots {
  pointer-events: auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
}

.hero-carousel_dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-carousel_dot.is-active {
  background: #fff;
}

@media only screen and (max-width: 480px) {
  .hero.is-carousel,
  .hero.is-carousel .hero-carousel_viewport,
  .hero.is-carousel .hero-carousel_track,
  .hero.is-carousel .hero-carousel_slide {
    height: auto;
  }

  .hero.is-carousel .hero-carousel_slide {
    aspect-ratio: 1130 / 450;
  }

  .hero.is-carousel .hero-carousel_slide .hero-banner {
    height: 100%;
    aspect-ratio: auto;
  }

  .hero.is-carousel .hero-carousel_slide:first-child {
    background: url(../img/eyeCatch2.png) center/cover no-repeat;
  }

  .hero-carousel_btn {
    width: 28px;
    height: 28px;
  }
}
