/* ==========================================================================
   TOPページ USER'S VOICES（お客様の声）カルーセル
   出典: サイトデザイン参照画像（USER'S VOICES）
   背景写真はセクション全体で固定（スライドしない）。voice-cardのみSwiperでスライドする。
   背景写真はブラウザ幅にフルブリード。テキスト・カードは1040px中央寄せ。
   ========================================================================== */

.voices {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 720px;
  padding: 100px 0;
}

.voices__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.voices__overlay {
  opacity: 0.4;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---- 見出し・矢印ナビ（ブラウザ幅に合わせる） ---- */
.voices__head {
  position: relative;
  top: clamp(32px, 5vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 48px);
  max-width: var(--container-max);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.voices__nav { display: flex; gap: 12px; pointer-events: auto; }
.voices__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  transition: color 0.15s ease, transform 0.15s ease;
}
.voices__arrow:hover { color: var(--color-green-bright); }
.voices__arrow--prev:hover { transform: translateX(-2px); }
.voices__arrow--next:hover { transform: translateX(2px); }

/* ---- カードのみスライドするカルーセル ---- */
.voices__inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 116px 0 36px;
  display: flex;
  align-items: flex-start;
}

.voices-swiper { width: 100%; }

.voice-card {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  min-height: 308px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 22px;
  padding: 48px 46px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.voice-card__icon {
  flex: none;
  width: 240px;
  height: auto;
  object-fit: contain;
}
.voice-card__text { min-width: 0; }
.voice-card__quote {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent-orange);
}
.voice-card__body {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.85;
  color: #333;
}
.voice-card__attribution { margin: 0; font-size: 13px; color: #767f79; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 768px) {
  .voices {
    height: clamp(418px, 140vw, 680px);
    min-height: 0;
    padding: 0;
  }
  .voices__bg {
    object-position: center center;
  }
  .voices__overlay {
    opacity: .5;
  }
  .voices__head {
    top: clamp(42px, 15vw, 72px);
    width: 100%;
    padding: 0 clamp(20px, 7vw, 32px);
    display: block;
  }
  .voices .section-eyebrow {
    display: grid;
    gap: 3px;
  }
  .voices .section-eyebrow__en {
    font-size: clamp(24px, 7.2vw, 34px);
    line-height: 1.1;
  }
  .voices .section-eyebrow__rule {
    display: none;
  }
  .voices .section-eyebrow__ja {
    display: block;
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 400;
  }
  .voices__nav {
    position: absolute;
    top: clamp(61px, 21vw, 96px);
    right: clamp(20px, calc(10vw - 10px), 42px);
    gap: clamp(54px, calc(28.3vw - 31px), 117px);
  }
  .voices__arrow {
    width: 28px;
    height: 28px;
  }
  .voices__inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: clamp(140px, 46.5vw, 244px) clamp(20px, 6.8vw, 36px) clamp(28px, 12vw, 63px);
  }
  .voice-card {
    min-height: clamp(222px, 74.3vw, 338px);
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(13px, 4vw, 18px);
    padding: clamp(20px, 7vw, 32px);
    border-radius: clamp(13px, 4.6vw, 24px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  }
  .voice-card__icon {
    width: clamp(35px, 11.4vw, 60px);
    height: clamp(35px, 11.4vw, 60px);
  }
  .voice-card__quote {
    margin-bottom: clamp(5px, 1.5vw, 7px);
    font-size: clamp(14px, 4.3vw, 22px);
    font-weight: 600;
    color: #f57828;
    line-height: 1.4;
  }
  .voice-card__body {
    margin-bottom: clamp(17px, 5vw, 23px);
    font-size: clamp(10px, 3.2vw, 14px);
    line-height: 1.75;
  }
  .voice-card__attribution {
    font-size: clamp(8px, 2.5vw, 11px);
  }
}
