/* ==========================================================================
   お客様の声セクション (カード内正方形画像配置)
   ========================================================================== */

.wimax-voice-section-v2 {
  position: relative;
  /* background: linear-gradient(180deg, rgba(14, 17, 24, 0.95) 0%, rgba(10, 11, 15, 0.98) 100%); */
  /* border-top: 1px solid rgba(255, 107, 0, 0.3); */
  /* border-bottom: 1px solid rgba(255, 107, 0, 0.3); */
  padding: 40px 0;
}

@media (min-width: 768px) {
  .wimax-voice-section-v2 {
    padding: 80px 0;
  }
}

/* 統一フォーマット大見出し */
.voice-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 32px;
}

.voice-title-sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .voice-section-title {
    font-size: 40px;
    margin-bottom: 48px;
  }
}

/* --- カードグリッド配置 --- */
.voice-grid-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .voice-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* --- カード本体：人物 + 吹き出しを主役にしたサイバーパネル --- */
.voice-card-v2 {
  position: relative;
  min-height: 178px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  padding: 18px 18px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 100%, rgba(0, 157, 255, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(24, 29, 40, 0.96) 0%, rgba(11, 15, 24, 0.98) 100%);
  border: 1px solid rgba(76, 190, 255, 0.26);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 上辺のHUDライン。左右で途切れさせ、カード感を出す */
.voice-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(0, 179, 255, 0.05) 0%,
    rgba(52, 197, 255, 0.72) 22%,
    rgba(52, 197, 255, 0.28) 68%,
    rgba(255, 116, 0, 0.42) 100%);
}

/* 右上の小さなデータインジケーター */
.voice-card-v2::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(72, 201, 255, 0.70) 0 5px,
    transparent 5px 8px
  );
  opacity: 0.55;
}

.voice-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 190, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.68),
    0 0 18px rgba(0, 154, 255, 0.09);
}

/* ヘッダー要素をカードグリッドへ直接流し込む */
.voice-card-header-v2 {
  display: contents;
}

/* 人物イラスト：枠なし・背景なし。カード下辺から立ち上がる構成 */
.voice-avatar-box {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: end;
  justify-self: center;
  width: 126px;
  height: 148px;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 0;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.34));
}

.voice-avatar-box img {
  display: block;
  width: auto;
  height: 180px;
  max-width: 132px;
  object-fit: contain;
  object-position: center bottom;
}

/* ペルソナ：吹き出し上に置く、小型のサイバーIDタグ */
.voice-persona-badge {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 5px 28px 5px 13px;
  color: #eefaff;
  background:
    linear-gradient(90deg, rgba(0, 149, 255, 0.17) 0%, rgba(12, 19, 31, 0.92) 72%, rgba(12, 19, 31, 0.60) 100%);
  border: 1px solid rgba(76, 195, 255, 0.42);
  border-left: 2px solid #49c8ff;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  box-shadow:
    inset 0 0 12px rgba(0, 154, 255, 0.07),
    0 0 10px rgba(0, 154, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.voice-persona-badge::before {
  content: '';
  position: absolute;
  right: 9px;
  top: 50%;
  width: 12px;
  height: 2px;
  transform: translateY(-50%);
  background: #ff9500;
  box-shadow: 0 0 7px rgba(255, 115, 0, 0.65);
}

.voice-persona-badge::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translateY(-50%);
  background: #62d3ff;
  box-shadow: 0 0 6px rgba(98, 211, 255, 0.72);
}

/* 本文エリア */
.voice-content-v2 {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  padding-bottom: 18px;
}

/* コメント本文を吹き出し化 */
.voice-text-v2 {
  position: relative;
  margin: 0;
  padding: 14px 15px;
  color: #d9e0e8;
  background:
    linear-gradient(145deg, rgba(36, 45, 59, 0.90) 0%, rgba(21, 27, 38, 0.94) 100%);
  border: 1px solid rgba(124, 200, 235, 0.20);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 7px 18px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  line-height: 1.65;
}

/* 吹き出しの尻尾：人物側へ向ける */
.voice-text-v2::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 17px;
  width: 18px;
  height: 18px;
  background: rgba(31, 38, 51, 0.96);
  border-left: 1px solid rgba(124, 200, 235, 0.20);
  border-bottom: 1px solid rgba(124, 200, 235, 0.20);
  transform: rotate(45deg);
  border-radius: 0 0 0 3px;
}

@media (min-width: 768px) {
  .voice-card-v2 {
    min-height: 194px;
    grid-template-columns: 142px minmax(0, 1fr);
    column-gap: 18px;
    padding: 20px 20px 0;
  }

  .voice-avatar-box {
    width: 142px;
    height: 164px;
  }

  .voice-avatar-box img {
    height: 180px;
    max-width: 146px;
  }

  .voice-persona-badge {
    font-size: 14px;
  }

  .voice-content-v2 {
    padding-bottom: 20px;
  }

  .voice-text-v2 {
    font-size: 14px;
    padding: 15px 16px;
  }
}

@media (max-width: 480px) {
  .voice-card-v2 {
    min-height: 164px;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 11px;
    padding: 14px 13px 0;
  }

  .voice-avatar-box {
    width: 104px;
    height: 136px;
  }

  .voice-avatar-box img {
    height: 200px;
    max-width: 110px;
  }

  .voice-persona-badge {
    padding: 5px 24px 5px 10px;
  }

  .voice-content-v2 {
    padding-bottom: 14px;
  }

  .voice-text-v2 {
    padding: 11px 12px;
    line-height: 1.55;
  }

  .voice-text-v2::before {
    left: -8px;
    top: 16px;
    width: 15px;
    height: 15px;
  }
}


/* ==========================================================================
   SP専用：お客様の声 横スライダー
   PC（768px以上）の既存2列グリッドには影響させない
   ========================================================================== */
.voice-slider-nav {
  display: none;
}

@media (max-width: 767px) {
  .voice-slider-shell {
    position: relative;
    margin: 0 -8px;
  }

  .voice-grid-v2 {
    display: flex;
    flex-direction: row;
    gap: 14px;
    max-width: none;
    margin: 0;
    padding: 10px 34px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 34px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .voice-grid-v2::-webkit-scrollbar {
    display: none;
  }

  .voice-grid-v2 .voice-card-v2 {
    flex: 0 0 calc(100% - 34px);
    width: calc(100% - 34px);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* タッチ操作時はhoverによる位置ずれを出さない */
  .voice-grid-v2 .voice-card-v2:hover {
    transform: none;
  }

  .voice-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 149, 0, 0.9);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 149, 0, 0.98) 0%, rgba(255, 92, 0, 0.98) 100%);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 120, 0, 0.38), 0 5px 14px rgba(0, 0, 0, 0.45);
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .voice-slider-nav span {
    display: block;
    margin-top: -3px;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
  }

  .voice-slider-prev {
    left: 2px;
  }

  .voice-slider-next {
    right: 2px;
  }

  .voice-slider-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.94);
  }

  .voice-slider-nav:disabled {
    opacity: 0.22;
    box-shadow: none;
    cursor: default;
  }
}
