/* Google口コミセクション */

/* スマホのみ表示 */
.sp-only {
  display: none;
}

#google-reviews {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  padding: 20px 50px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  box-sizing: border-box !important;
}

.reviews-header {
  text-align: center;
  margin-bottom: 20px;
}

.reviews-catchcopy {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.reviews-catchcopy .highlight {
  color: #c62828;
  background: linear-gradient(transparent 50%, #fff176 50%);
  padding: 0 5px;
  font-size: 1.1em;
}

.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.google-icon {
  width: 24px;
  height: 24px;
}

.rating-text {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 20px;
  color: #ddd;
}

.star.filled {
  color: #fbbc04;
}

.rating-score {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.review-count {
  font-size: 14px;
  color: #666;
}

.review-date {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

.reviews-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box !important;
}

.reviews-slider-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0 45px;
  box-sizing: border-box;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #4285f4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #4285f4;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  aspect-ratio: 1 / 1;
}

.slider-btn.prev-btn {
  left: 5px;
}

.slider-btn.next-btn {
  right: 5px;
}

.slider-btn:hover {
  background: #4285f4;
  color: #fff;
}

.reviews-slider {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  box-sizing: border-box;
  -webkit-transition: -webkit-transform 0.5s ease;
  -moz-transition: -moz-transform 0.5s ease;
  -ms-transition: -ms-transform 0.5s ease;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: 280px;
  max-width: 280px;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box !important;
}

.review-card:last-child {
  margin-right: 0;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  background: #4285f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.reviewer-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.reviewer-name {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.review-stars {
  color: #fbbc04;
  font-size: 14px;
}

.review-text {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  word-break: break-word;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dot.active {
  background: #4285f4;
}

.reviews-footer {
  text-align: center;
  margin-top: 15px;
}

.view-all-reviews {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #1a73e8;
  border-radius: 20px;
  transition: all 0.3s;
}

.view-all-reviews:hover {
  background: #1a73e8;
  color: #fff;
}

/* PC専用 - カード間隔を狭める */
@media screen and (min-width: 769px) {
  .reviews-slider {
    gap: 0;
  }

  .review-card {
    margin-right: -15px;
  }

  .review-card:last-child {
    margin-right: 0;
  }
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  #google-reviews {
    margin: 10px 0;
    padding: 15px 15px;
    border-radius: 8px;
    overflow: hidden;
  }

  .reviews-catchcopy {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .reviews-slider-wrapper {
    padding: 0 40px;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    font-size: 18px;
    aspect-ratio: 1 / 1;
  }

  .slider-btn.prev-btn {
    left: 3px;
  }

  .slider-btn.next-btn {
    right: 3px;
  }

  .reviews-slider {
    gap: 10px;
    padding: 8px 3px;
  }

  .review-card {
    min-width: 220px;
    max-width: 220px;
    width: 220px;
    padding: 12px;
  }

  .google-rating {
    gap: 4px;
  }

  .rating-text {
    font-size: 14px;
  }

  .star {
    font-size: 16px;
  }

  .rating-score {
    font-size: 16px;
  }

  .review-count {
    font-size: 12px;
  }

  .reviewer-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    font-size: 12px;
  }

  .review-text {
    font-size: 12px;
  }
}

/* 超小型画面対応 */
@media screen and (max-width: 480px) {
  #google-reviews {
    padding: 12px 10px;
  }

  .reviews-slider-wrapper {
    padding: 0 35px;
  }

  .slider-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    font-size: 16px;
    aspect-ratio: 1 / 1;
  }

  .slider-btn.prev-btn {
    left: 2px;
  }

  .slider-btn.next-btn {
    right: 2px;
  }

  .review-card {
    min-width: 200px;
    max-width: 200px;
    width: 200px;
    padding: 10px;
  }
}
