.amos-feature-carousel {
  margin: 18px 0 22px;
}

.amos-feature-carousel *,
.amos-feature-carousel *::before,
.amos-feature-carousel *::after {
  box-sizing: border-box;
}

.amos-feature-carousel__tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: thin;
}

.amos-feature-carousel__tab {
  appearance: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #475467;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  min-height: 38px;
  padding: 10px 15px;
}

.amos-feature-carousel__tab.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.amos-feature-carousel__viewport {
  position: relative;
}

.amos-feature-carousel__slide {
  width: 100%;
}

.amos-feature-carousel__slide[hidden] {
  display: none !important;
}

.amos-feature-carousel__controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.amos-feature-carousel__arrow {
  align-items: center;
  appearance: none;
  background: #111827;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.amos-feature-carousel__dots {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: center;
}

.amos-feature-carousel__dot {
  appearance: none;
  background: #d0d5dd;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  width: 8px;
}

.amos-feature-carousel__dot.is-active {
  background: #111827;
  width: 22px;
}

.amos-feature-carousel__slide--breaking
  .amos-ebook-breaking,
.amos-feature-carousel__slide--breaking
  .amos-ebook-breaking-roundup,
.amos-feature-carousel__slide--campaign
  .amos-ebook-campaigns,
.amos-feature-carousel__slide--sale
  .amos-ebook-sales,
.amos-feature-carousel__slide--new-release
  .amos-enr__hero {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.amos-feature-carousel__slide--breaking
  .amos-ebook-breaking,
.amos-feature-carousel__slide--breaking
  .amos-ebook-breaking-roundup,
.amos-feature-carousel__slide--campaign
  .amos-ebook-campaigns,
.amos-feature-carousel__slide--sale
  .amos-ebook-sales {
  padding-left: 0;
  padding-right: 0;
}

.amos-feature-carousel__slide--breaking
  .amos-ebook-breaking-roundup {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .amos-feature-carousel {
    margin-top: 14px;
  }

  .amos-feature-carousel__tabs {
    gap: 6px;
  }

  .amos-feature-carousel__tab {
    font-size: .74rem;
    min-height: 36px;
    padding: 9px 13px;
  }

  .amos-feature-carousel__controls {
    margin-top: 10px;
  }

  .amos-feature-carousel__arrow {
    height: 36px;
    width: 36px;
  }
}

/* AMOS_FEATURE_STABLE_HEIGHT_V2_START */

/*
 * FEATURE CAROUSEL STABLE HEIGHT
 *
 * Breaking / Campaign / Sale / New Release の
 * 情報量差によって下のコンテンツが上下しないよう、
 * JSが算出した最大高さでviewportを固定する。
 */

.amos-feature-carousel__viewport {
    position: relative;
    box-sizing: border-box;

    height:
        var(
            --amos-feature-stable-height,
            auto
        );

    min-height:
        var(
            --amos-feature-stable-height,
            0px
        );

    overflow: hidden;
}

/*
 * 表示中のslideを固定viewportいっぱいまで伸ばす。
 */
.amos-feature-carousel__slide:not([hidden]) {
    box-sizing: border-box;
    min-height: 100%;
}

/*
 * 高さ切替時のtransitionは使わない。
 * スライド時に外枠そのものが動かないことを優先。
 */
.amos-feature-carousel__viewport {
    transition: none !important;
}

/* AMOS_FEATURE_STABLE_HEIGHT_V2_END */


