/* ========================================
   お客様の声詳細ページ専用CSS
======================================== */

/* ========================================
   Page Hero
======================================== */
.voice-hero {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, #2a4d7a 0%, #3a6ea5 100%);
  text-align: center;
  margin-top: 80px;
}

.voice-hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

.voice-hero p {
  font-size: 1.125rem;
  color: #dfeefd;
  margin-bottom: 40px;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 1rem;
  color: white;
  font-weight: 600;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.star {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.star.filled {
  color: var(--color-accent);
}

/* ========================================
   Voice Categories
======================================== */
.voice-categories-section {
  padding: 80px 0;
  background: white;
}

.voice-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  padding: 20px;
  background: var(--color-light-blue);
  border-radius: 8px;
}

.voice-category {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.voice-category:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.voice-category.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ========================================
   Voice Grid
======================================== */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.voice-card {
  background: white;
  border: 2px solid var(--color-gray);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
}

.voice-card.hide {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voice-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Voice Header */
.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-gray);
}

.voice-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.user-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.user-meta {
  font-size: 0.875rem;
  color: var(--color-text);
}

.voice-rating {
  text-align: right;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-top: 4px;
  font-family: var(--font-serif);
}

/* Voice Tags */
.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 12px;
  background: var(--color-light-blue);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--color-primary);
}

/* Voice Title */
.voice-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Voice Content */
.voice-content {
  margin-bottom: 20px;
}

.voice-content p {
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 12px;
}

.voice-content p:last-child {
  margin-bottom: 0;
}

/* Voice Footer */
.voice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid var(--color-gray);
}

.voice-date {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.voice-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-serif);
}

/* ========================================
   CTA Section
======================================== */
.voice-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a4d7a 100%);
  text-align: center;
  color: white;
}

.voice-cta h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

.voice-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Responsive - Tablet
======================================== */
@media (max-width: 1024px) {
  .voice-hero h1 {
    font-size: 2.5rem;
  }

  .voice-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ========================================
   Responsive - Mobile
======================================== */
@media (max-width: 768px) {
  .voice-hero {
    padding: 120px 0 60px;
    margin-top:60px;
  }

  .voice-hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .voice-categories {
    gap: 8px;
    padding: 12px;
  }

  .voice-category {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .voice-card {
    padding: 24px;
  }

  .voice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .voice-rating {
    text-align: left;
  }

  .voice-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .voice-cta h2 {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* ========================================
   CTAセクション - 強制表示
======================================== */
.voice-cta .cta-buttons,
section .cta-buttons {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

/* fade-in-upクラスがついていても強制表示 */
.cta-buttons.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
