/*
 * swiper-pagination.css
 *
 * Swiper のデフォルトスタイル（unlayered）を上書きするため、
 * このファイルも意図的に @layer なし（unlayered）で読み込む。
 * main.css の @layer components 内に入れると Swiper に負けるため分離。
 */

/* ===========================
   コンテナ — flex + gap で間隔統一
   =========================== */
.js-services-swiper .swiper-pagination,
.js-recruit-swiper .swiper-pagination,
.js-recruit-day-swiper .swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
}

/* ===========================
   非アクティブ bullet
   =========================== */
.js-services-swiper .swiper-pagination-bullet,
.js-recruit-swiper .swiper-pagination-bullet,
.js-recruit-day-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 1;
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s ease;
}

/* hover（非アクティブのみ） */
.js-services-swiper .swiper-pagination-bullet:not(.swiper-pagination-bullet-active):hover,
.js-recruit-swiper .swiper-pagination-bullet:not(.swiper-pagination-bullet-active):hover,
.js-recruit-day-swiper .swiper-pagination-bullet:not(.swiper-pagination-bullet-active):hover {
  transform: scale(1.5);
}

/* ===========================
   アクティブ bullet — 画像表示
   34×40px = swiper-dot.webp 原寸
   =========================== */
.js-services-swiper .swiper-pagination-bullet-active,
.js-recruit-swiper .swiper-pagination-bullet-active,
.js-recruit-day-swiper .swiper-pagination-bullet-active {
  width: 17px;
  height: 20px;
  background-color: transparent;
  background-image: url('../images/common/swiper-dot.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0;
  opacity: 1;
}
