/* ===============================
   お客様の声スライダー【CSS最終形】
   ※ JSは触らない
=============================== */

/* セクション */
.top-voice {
  padding: 60px 0;
}

/* 95%幅・右切れ防止 */
.top-voice-inner {
  width: 95%;
  margin: 0 auto;
  overflow: hidden;
}

/* Swiper */
.top-voice .swiper-slide {
  display: flex;
}

/* ===============================
   カード（高さ完全統一）
=============================== */
.top-voice-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  border : 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* 画像 */
.voice-image img {
  width: 100%;
  height: auto;
  object-fit: initial; 
	border-radius: 8px;
  display: block;
}

/* タイトル */
.voice-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  min-height: calc(1.4em * 2); /* ← ★これが肝 */
}


/* 名前 */
.voice-name {
  font-weight: 600;
  margin: 20px 0 10px 0;
  font-size : 13px;
}

/* テキスト（高さ吸収） */
.voice-text {
  font-size: 14px;
  line-height: 24px;
  flex-grow: 1;
  text-align : left;
}

/* ボタン */
.voice-btn {
  width: 100px;          /* ← 幅を固定 */
  margin: auto auto 0;   /* ← 下に揃えて中央寄せ */
  
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  color: #fff;
  background: #444;

  padding: 6px 0;        /* 横paddingは使わない */
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

/* ===============================
   矢印（黒半透明＋白）
=============================== */
.top-voice .swiper-button-prev,
.top-voice .swiper-button-next {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.55);
  border-radius: 6px;
  background-image: none !important;
}

.top-voice .swiper-button-prev::after,
.top-voice .swiper-button-next::after {
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

.top-voice .swiper-button-prev::after { content: "◀"; }
.top-voice .swiper-button-next::after { content: "▶"; }

.top-voice .swiper-button-prev { left: 8px; }
.top-voice .swiper-button-next { right: 8px; }

/* ===============================
   ドット
=============================== */

/* Swiper本体に余白を作る */
.top-voice .top-voice-swiper {
  padding-bottom: 40px;
}

/* ドットを確実に下へ */
.top-voice .swiper-pagination {
  bottom: 0 !important;
}

.top-voice .swiper-pagination {
  display: none;
}

/* 自前ドット：サイズ最適化 */
.top-voice-dots {
  display: flex;
  justify-content: center;
  gap: 8px;          /* 間隔を詰める */
  margin-top: 0px; /* 下げすぎない */
}

.top-voice-dots button {
  width: 8px;       /* ← 小さく */
  height: 8px;      /* ← 小さく */
  border-radius: 50%;
  background: #bdbdbd;
  border: none;
  padding: 0;
  cursor: pointer;
}

.top-voice-dots button.is-active {
  background: #333; /* 目立ちすぎない濃グレー */
}



/* ===============================
   高さズレの最終修正（決定版）
=============================== */
.top-voice .swiper-wrapper {
  display: flex;
  align-items: stretch;
}


/* ===============================
   枚数制御（CSSのみ）
   PC：5枚固定・絶対に切れない
=============================== */
@media (min-width: 1024px) {
  .top-voice .swiper-slide {
    width: calc((100% - 20px * 4) / 5);
  }
}

/* スマホ：1枚 */
@media (max-width: 768px) {
  .top-voice {
    padding: 40px 0;
  }

  .top-voice .swiper-slide {
    width: 100%;
  }
}
