/* Google reviews widget — distinct from the .review-card employee-ratings design.
   Grid uses auto-fill so it reflows without extra breakpoints down to ~320px. */

.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2rem;
}

.google-review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 1.2rem;
  padding: 1.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.google-review-card .g-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.google-review-card .g-avatar {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.google-review-card .g-meta {
  min-width: 0;
}

.google-review-card .g-author {
  font-family: "Inter_Regular";
  font-size: 1.5rem;
  color: #202124;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-review-card .g-location {
  font-size: 1.1rem;
  color: #980264;
  margin-top: 0.2rem;
}

.google-review-card .g-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.google-review-card .g-stars img {
  width: 1.6rem;
  height: 1.6rem;
}

.google-review-card .g-time {
  font-size: 1.1rem;
  color: #70757a;
  margin-bottom: 0.8rem;
}

.google-review-card .g-text {
  font-family: "Inter_Regular";
  font-size: 1.3rem;
  color: #3c4043;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.google-review-card .g-read-more {
  align-self: flex-start;
  margin-top: 1rem;
  font-family: "Inter_Regular";
  font-size: 1.2rem;
  color: #1a73e8;
  border: 1px solid #1a73e8;
  border-radius: 999px;
  padding: 0.4rem 1.4rem;
  text-decoration: none;
}

.google-review-card .g-read-more:hover {
  background: #1a73e8;
  color: #fff;
}

@media screen and (max-width: 480px) {
  .google-reviews-grid {
    grid-template-columns: 1fr;
  }
  .google-review-card {
    padding: 1.4rem;
  }
}

/* Homepage + testimonials page: fixed 3-per-row grid on desktop, stepping down on smaller screens. */
.google-reviews-grid--home,
.google-reviews-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 768px) {
  .google-reviews-grid--home,
  .google-reviews-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .google-reviews-grid--home,
  .google-reviews-grid--3col {
    grid-template-columns: 1fr;
  }
}

/* "続きを読む" modal body for a Google review — distinct from the ratings modal. */
#reviewModalBody.g-modal-body {
  padding: 2.5rem 2.5rem 2rem;
}

.g-modal-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.g-modal-avatar {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.g-modal-meta {
  min-width: 0;
}

.g-modal-author {
  font-family: "Inter_Regular";
  font-size: 1.8rem;
  color: #202124;
}

.g-modal-location {
  font-size: 1.2rem;
  color: #980264;
  margin-top: 0.2rem;
}

.g-modal-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.g-modal-stars img {
  width: 1.8rem;
  height: 1.8rem;
}

.g-modal-time {
  font-size: 1.2rem;
  color: #70757a;
  margin-left: 0.8rem;
}

.g-modal-text-wrap {
  overflow-y: auto;
  flex: 1;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.g-modal-text {
  font-family: "Inter_Regular";
  font-size: 1.4rem;
  color: #3c4043;
  line-height: 1.7;
  white-space: pre-wrap;
}

.g-modal-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #1a73e8;
  font-size: 1.4rem;
  text-decoration: none;
}

.g-modal-link:hover {
  text-decoration: underline;
}
