/* お客様の声一覧 - メインコンテナ */
.cvl-list {
  display: grid;
  gap: 20px;
  max-width: 100%;
}

/* 個別の声カード */
.cvl-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cvl-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cvl-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

.cvl-item:hover::before {
  opacity: 1;
}

/* 左側：アバター */
.cvl-left {
  flex-shrink: 0;
}

.cvl-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: block;
}

.cvl-item:hover .cvl-avatar {
  transform: scale(1.05);
  border-color: #e0e0e0;
}

.cvl-avatar--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 3px solid #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cvl-avatar--placeholder::after {
  content: '👤';
  font-size: 28px;
  opacity: 0.5;
}

/* 画像が無い場合 */
.cvl-item.cvl-no-avatar {
  gap: 0;
}

.cvl-item.cvl-no-avatar .cvl-body {
  margin-left: 0;
  width: 100%;
}

/* 右側：本文エリア */
.cvl-body {
  flex: 1;
  min-width: 0;
}

/* メタ情報（星と日付） */
.cvl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* 星の評価 */
.cvl-stars {
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1;
  color: #ffa500;
  text-shadow: 0 1px 2px rgba(255, 165, 0, 0.2);
  display: inline-block;
}

/* 日付 */
.cvl-date {
  color: #888;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* 本文テキスト */
.cvl-text {
  line-height: 1.8;
  color: #333;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.cvl-text p {
  margin: 0 0 12px 0;
}

.cvl-text p:last-child {
  margin-bottom: 0;
}

/* 空の状態 */
.cvl-empty {
  padding: 32px 24px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 2px dashed #ddd;
  border-radius: 12px;
  text-align: center;
  color: #888;
  font-size: 15px;
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cvl-list {
    gap: 16px;
  }

  .cvl-item {
    padding: 20px;
    gap: 14px;
    border-radius: 12px;
  }

  .cvl-avatar,
  .cvl-avatar--placeholder {
    width: 56px;
    height: 56px;
  }

  .cvl-stars {
    font-size: 16px;
  }

  .cvl-text {
    font-size: 14px;
    line-height: 1.7;
  }

  .cvl-meta {
    gap: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .cvl-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cvl-left {
    margin-bottom: 8px;
  }

  .cvl-meta {
    justify-content: center;
  }
}

/* エレメンター用の追加スタイル */
.elementor-widget-customer_voices_list .cvl-list {
  width: 100%;
}

/* アニメーション効果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cvl-item {
  animation: fadeInUp 0.5s ease-out;
}

.cvl-item:nth-child(1) { animation-delay: 0.05s; }
.cvl-item:nth-child(2) { animation-delay: 0.1s; }
.cvl-item:nth-child(3) { animation-delay: 0.15s; }
.cvl-item:nth-child(4) { animation-delay: 0.2s; }
.cvl-item:nth-child(5) { animation-delay: 0.25s; }
.cvl-item:nth-child(n+6) { animation-delay: 0.3s; }

/* レイアウト切替 */
.cvl-layout-compact .cvl-item {
  padding: 12px;
  gap: 12px;
}

.cvl-layout-compact .cvl-avatar {
  width: 44px;
  height: 44px;
}

.cvl-layout-compact .cvl-stars {
  font-size: 16px;
}

.cvl-layout-compact .cvl-text {
  font-size: 14px;
  line-height: 1.7;
}

.cvl-layout-legacy .cvl-item {
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cvl-layout-legacy .cvl-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: none;
}

.cvl-layout-legacy .cvl-item::before {
  display: none;
}
