/* ================================
   Hero Slideshow — right half of hero section
   Dimensions match original data-s-28ed351a carousel container
   ================================ */

.hero-slideshow {
  width: 50%;
  max-width: 50%;
  height: auto;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 25% 0 0 0; /* dots container space: 4 square images at 25% width each = 25% of parent width */
  padding: 0 0 80px 0;
  overflow: hidden;
  box-sizing: border-box;
}

#js-hero-slideshow {
  width: 100%;
  overflow: hidden;
}

.hero-slideshow__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

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

.hero-slideshow__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  width: 100%;
  box-sizing: border-box;
}

.hero-slideshow__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  color: #000;
  text-align: center;
  margin: 0;
  font-feature-settings: "palt" 1;
}

.hero-slideshow__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: #000;
  text-align: left;
  margin: 0;
  font-feature-settings: "palt" 1;
}

/* --- Nav buttons (absolutely positioned at bottom) --- */
.hero-slideshow__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 3;
}

.hero-slideshow__btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.hero-slideshow__btn:hover {
  opacity: 0.5;
}

.hero-slideshow__btn .material-icons {
  font-size: 30px;
  color: #222;
  line-height: 1;
}

.hero-slideshow__btn--pause .material-icons {
  font-size: 24px;
}

/* ================================
   Responsive
   ================================ */

/* 1140px */
@media (max-width: 1140px) {
  .hero-slideshow {
    width: 50%;
    max-width: 50%;
    /* height: calc(74% - 1px); */
    margin-top: 0;
    padding: 0 0 80px 0;
  }

  .hero-slideshow__slide {
    gap: 12px;
  }

  .hero-slideshow__text {
    gap: 10px;
    padding: 0;
  }

  .hero-slideshow__desc {
    font-size: 13px;
  }

  .hero-slideshow__nav {
    height: auto;
    left: auto;
    right: 0;
    align-items: flex-end;
  }
}

/* 768px */
@media (max-width: 768px) {
  .hero-slideshow {
    width: 65%;
    max-width: 65%;
    /* height: calc(74% - 1px); */
    /* padding: 0 0 100px 0; */
  }

  .hero-slideshow__slide {
    gap: 17px;
  }

  .hero-slideshow__title {
    font-size: 20px;
  }

  .hero-slideshow__desc {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* 480px */
@media (max-width: 480px) {
  .hero-slideshow {
    width: 100%;
    max-width: 100%;
    /* height: calc(74% - 1px); */
    /* padding: 0 0 120px 0; */
  }

  .hero-slideshow__image {
    width: 60%;
  }

  .hero-slideshow__text {
    padding: 0 20px;
  }

  .hero-slideshow__title {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-slideshow__desc {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-slideshow__nav {
    left: 0;
    right: 0;
    padding-right: 20px;
  }
}
