/* 患者様の声ページ用CSS */

.customer-voice-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  padding: 20px 40px;
  background-color: #2a6480;
  border-radius: 20px;
  color: #fff;
}

.customer-voice-page-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px auto;
  text-align: center;
}

.customer-voice-lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: #000;
  margin: 40px auto 80px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 70%;
}

.customer-voice-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

.customer-voice-container {
  width: 100%;
}

/* タグ一覧 */
.customer-voice-tag-list {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.tag-list-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2a6480;
  margin-bottom: 16px;
  text-align: center;
}

.customer-voice-tag-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.customer-voice-tag-list li a {
  display: block;
  padding: 10px 20px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.customer-voice-tag-list li a:hover {
  background: #2a6480;
  color: #ffffff;
  border-color: #2a6480;
  text-decoration: none;
}

.customer-voice-tag-list li.active a {
  background: #2a6480;
  color: #ffffff;
  border-color: #2a6480;
}

/* 投稿一覧 */
.customer-voice-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.customer-voice-post-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #f0f0f0;
  cursor: pointer;
  position: relative;
}

.customer-voice-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #2a6480;
}

.customer-voice-post-link {
  text-decoration: none;
  color: inherit;
}

.customer-voice-post-link:hover {
  text-decoration: none;
}

/* タイトルリンクをカード全体に拡張 */
.customer-voice-post-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.customer-voice-post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-voice-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a6480;
  margin: 0;
  line-height: 1.4;
}

.customer-voice-post-date {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.customer-voice-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.customer-voice-post-tags .tag-item {
  display: inline-block;
  padding: 4px 12px;
  background: #2a6480;
  border-radius: 15px;
  font-size: 0.85rem;
  color: #ffffff;
}

.customer-voice-post-excerpt {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.no-posts {
  text-align: center;
  padding: 80px 20px;
}

.no-posts p {
  font-size: 1.2rem;
  color: #666;
}

/* ページネーション */
.navigation.pagination {
  margin-top: 60px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  background-color: #ffffff;
  color: #2a6480;
  border: 2px solid #2a6480;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links .page-numbers:hover {
  background-color: #2a6480;
  color: #ffffff;
  text-decoration: none;
}

.nav-links .page-numbers.current {
  background-color: #2a6480;
  color: #ffffff;
  border-color: #2a6480;
}

.nav-links .dots {
  padding: 10px 8px;
  color: #2a6480;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .customer-voice-page-title {
    font-size: 1.5rem;
    padding: 15px 30px;
  }

  .customer-voice-page-title-container {
    margin: 40px auto;
  }

  .customer-voice-lead {
    font-size: 1rem;
    padding: 0 30px;
    width: 100%;
    margin: 20px auto 40px auto;
    line-height: 1.6;
  }

  .customer-voice-main-content {
    padding: 0 16px 40px 16px;
  }

  .customer-voice-tag-list {
    padding: 16px;
    margin-bottom: 30px;
  }

  .tag-list-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .customer-voice-tag-list ul {
    gap: 8px;
  }

  .customer-voice-tag-list li a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .customer-voice-posts {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .customer-voice-post-content {
    padding: 16px;
  }

  .customer-voice-post-title {
    font-size: 1.2rem;
  }

  .customer-voice-post-date {
    font-size: 0.85rem;
  }

  .customer-voice-post-tags .tag-item {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .customer-voice-post-excerpt {
    font-size: 0.9rem;
  }

  .no-posts {
    padding: 40px 20px;
  }

  .no-posts p {
    font-size: 1rem;
  }

  .nav-links .page-numbers {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
