/* ================================
   Service Card Carousel
================================ */

.serviceCardCarousel {
  position: relative;
}

/* ★ 左はcontwidth基準、右はviewport */
.serviceCardCarousel__inner {
  width: calc(100vw - ((100vw - 1166px) / 2));
  margin-left: auto;
  overflow: hidden;
}

/* Swiperははみ出し許可 */
.serviceCardCarousel__swiper {
  overflow: visible;
}

@media screen and (max-width: 1280px) {
  .serviceCardCarousel__inner {
    padding-left: var(--M);
  }
}

@media screen and (max-width: 768px) {
  .serviceCardCarousel__inner {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
}

/* ================================
   Slide
================================ */

.serviceCardCarousel__slide {
  height: auto;
}

/* ================================
   Card（card-list準拠）
================================ */

.serviceCardCarousel__card {
  display: block;
  height: 100%;
  border: 1px solid var(--color-separate-primary);
  border-radius: var(--radius-l);
  text-decoration: none;
  overflow: hidden;
  background: #fff;
}

.serviceCardCarousel__cardInner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* タイトル */
.serviceCardCarousel__cardTitle {
  height: 100%;
  max-height: 144px;
  min-height: 144px;
  padding: 31px 27px;
  border-bottom: 1px solid var(--color-separate-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-xl);
  line-height: 1.4;
  color: var(--color-primary);
  text-align: center;
}

@media screen and (max-width: 767px) {
  .serviceCardCarousel__swiper {
    padding-left: 16px;
  }
}

@media screen and (max-width: 767px) {
  .serviceCardCarousel__cardTitle {
    padding: 20px 27px;
  }

  .serviceCardCarousel__cardTitle img {
    max-height: 100%;
  }
}

.serviceCardCarousel__cardTitle img {
  max-width: 100%;
  max-height: 140px;
  height: auto;
  display: block;
  /* max-height: inherit; */
}

/* テキスト */
.serviceCardCarousel__cardText {
  flex: 1;
  padding: 18px 24px;
  font-size: var(--font-s);
  line-height: 1.6;
  color: var(--color-text-primary);
}

.serviceCardCarousel__card:hover
.serviceCardCarousel__cardText {
  background-color: var(--color-bg-secondary);
}

/* ================================
   Controls（Navigation + Pagination）
================================ */

.serviceCardCarousel__controls {
  display: flex;
  align-items: center;
  gap: var(--L);
  margin-top: var(--L);
  justify-content: space-between;
}

.serviceCardCarousel__navs__wrap {
  display: flex;
  gap: var(--XS);
}

/* ナビボタン共通 */
.serviceCardCarousel__nav {
  position: static;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--radius-l);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 矢印 */
.serviceCardCarousel__nav {
  width: 56px;
  height: 56px;
  background-color: #fff;
  border: 1px solid var(--color-separate-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
}

.serviceCardCarousel__nav--prev {
  background-image: url('/bizpost/assets/img/components/service-card-carousel/arrow-prev.svg');
}

.serviceCardCarousel__nav--next {
  background-image: url('/bizpost/assets/img/components/service-card-carousel/arrow-next.svg');
}
/* ページネーション */
.serviceCardCarousel__pagination {
  position: static;
  margin: 0;
}

.serviceCardCarousel__paginationWrap {
  display: flex;
  align-items: center;
  gap: var(--M);
}

@media screen and (max-width: 767px) {
  .serviceCardCarousel__paginationWrap {
    gap: var(--X3S);
  }
}

/* アクティブドット */
.serviceCardCarousel__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.serviceCardCarousel__pagination .swiper-pagination-bullet-active {
  background: var(--color-texticon-primary);
  transform: scale(1.3); /* ★ ここで大きく */
}

.serviceCardCarousel__pagination.swiper-pagination-horizontal {
  width: auto;
}

/* 停止ボタン */
.serviceCardCarousel__toggle {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
}

.serviceCardCarousel__toggleIcon {
  width: 32px;
  height: 32px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('/bizpost/assets/img/components/service-card-carousel/stop-button.svg');
}

.serviceCardCarousel__toggle.is-paused
.serviceCardCarousel__toggleIcon {
  background-image: url('/bizpost/assets/img/components/service-card-carousel/play-button.svg');
}

.serviceCardCarousel__cardImg--compact {
  max-width: 188px !important;
}