/* Google風レビュースタイル - お客様の声ページ用 */

.google-reviews-list {
  margin: 20px 0 40px;
}

/* レビューサマリーセクション */
.google-reviews-summary {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.reviews-header h3 {
  font-size: 20px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}

.reviews-rating {
  display: flex;
  align-items: center;
}

.rating-number {
  font-size: 28px;
  font-weight: 500;
  color: #202124;
  margin-right: 10px;
}

.rating-stars {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.rating-count {
  font-size: 14px;
  color: #70757a;
}

/* レビューグリッド */
.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* カードスタイル */
.voice-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.voice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 詳細ページ用 */
.voice-card.full-detail {
  max-width: 100%;
  margin-bottom: 30px;
}

.voice-content-full {
  font-size: 16px;
  line-height: 1.6;
  color: #3c4043;
  margin-top: 20px;
}

.voice-content-full p {
  margin-bottom: 15px;
}

/* カードヘッダー */
.voice-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
}

.voice-user-info {
  display: flex;
  align-items: center;
}

.voice-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar {
  font-size: 20px;
  color: #fff;
  background-color: #4285F4;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-user-details {
  display: flex;
  flex-direction: column;
}

.voice-user-name {
  font-weight: 500;
  font-size: 16px;
  color: #202124;
}

.voice-date {
  font-size: 12px;
  color: #70757a;
  margin-top: 2px;
}

/* 評価スター */
.voice-rating {
  display: flex;
  align-items: center;
}

.star {
  font-size: 18px;
  color: #e0e0e0;
  margin-right: 2px;
}

.star.filled {
  color: #fbbc04;
}

.star.half-filled {
  color: #fbbc04;
  position: relative;
}

/* レビュー内容 */
.voice-content {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #3c4043;
  margin-top: 10px;
}

.voice-content p {
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

.read-more {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-top: 5px;
}

.read-more:hover {
  text-decoration: underline;
}

/* レビューがない場合のメッセージ */
.no-reviews {
  text-align: center;
  padding: 40px 0;
  color: #70757a;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ページナビゲーション */
.page-single-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.page-single-nav a {
  color: #1a73e8;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.page-single-nav a:hover {
  background-color: #f1f3f4;
  text-decoration: underline;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .google-reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .reviews-rating {
    margin-top: 10px;
  }
  
  .voice-content-full {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .google-reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .voice-card {
    padding: 15px;
  }
  
  .rating-number {
    font-size: 24px;
  }
}

/* カスタムページネーション */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  justify-content: center;
}

.pagination li {
  margin: 0 2px;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  color: #1a73e8;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pagination li.active span {
  background-color: #1a73e8;
  color: #fff;
}

.pagination li a:hover {
  background-color: #f1f3f4;
}
