/* ランキングカード内「〇〇の脱毛機」スライダー
   濃いピンク: #f0a0a5 / 薄いピンク: #F5E6E8 / テキスト: #630 */
.hair-machine {
  width: 95%;
  margin: 12px auto 0;
  padding: 10px 0 12px;
  border-radius: 8px;
  background: #F5E6E8;
  color: #630;
}

.hair-machine__title {
  width: 92%;
  margin: 0 auto 10px;
  padding: 0.4em 0.6em;
  border-radius: 1.4em;
  background: #f0a0a5;
  color: #630;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.hair-machine__slider {
  position: relative;
  padding: 0 0 0 4%;
}

.hair-machine__swiper {
  position: relative;
  overflow: hidden;
}

.hair-machine__card {
  box-sizing: border-box;
  height: auto;
  padding: 10px 10px 12px;
  border: 1px solid #f0a0a5;
  border-radius: 8px;
  background: #fff;
}

.hair-machine__name {
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 2px solid #f0a0a5;
  color: #630;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}

.hair-machine__img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  margin: 0 0 10px;
  border-radius: 6px;
  background: #fff;
}

.hair-machine__img img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.hair-machine__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  line-height: 1.4;
}

.hair-machine__table th,
.hair-machine__table td {
  padding: 5px 6px;
  border: 1px solid #f0a0a5;
  color: #630;
  text-align: left;
  vertical-align: middle;
}

.hair-machine__table th {
  width: 30%;
  background: #F5E6E8;
  font-weight: bold;
  white-space: nowrap;
}

.hair-machine__table td {
  background: #fff;
}

/* 矢印 */
.hair-machine__prev,
.hair-machine__next {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: #f0a0a5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.hair-machine__prev {
  left: 2px;
}

.hair-machine__next {
  right: 2px;
}

.hair-machine__prev::after,
.hair-machine__next::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

.hair-machine__prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.hair-machine__next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.hair-machine__prev.swiper-button-disabled,
.hair-machine__next.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* ページネーション */
.hair-machine__pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.hair-machine__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: #ccc;
  opacity: 1;
}

.hair-machine__pagination .swiper-pagination-bullet-active {
  background: #f0a0a5;
}

/* 1台のみ: スライドなし */
.hair-machine--single .hair-machine__slider {
  padding: 0 4%;
}

.hair-machine--single .hair-machine__prev,
.hair-machine--single .hair-machine__next,
.hair-machine--single .hair-machine__pagination {
  display: none;
}

@media screen and (min-width: 768px) {
  .hair-machine {
    padding: 14px 0 16px;
  }

  .hair-machine__title {
    font-size: 1.8rem;
  }

  .hair-machine__name {
    font-size: 1.8rem;
  }

  .hair-machine__img {
    height: 200px;
  }

  .hair-machine__img img {
    max-height: 190px;
  }

  .hair-machine__table {
    font-size: 1.4rem;
  }

  .hair-machine__prev,
  .hair-machine__next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
}
