/* Googleクチコミウィジェット v2 スライダー版（自社構築・EmbedSocial代替） 2026-10-06 */
.gr-widget {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  background: #faf7f0;
  border: 1px solid #e6dfd0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
}
.gr-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6dfd0;
}
.gr-glogo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ece5d6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gr-glogo span {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(45deg, #4285F4 0%, #EA4335 30%, #FBBC05 60%, #34A853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gr-head-main { flex: 1 1 auto; min-width: 200px; }
.gr-title {
  display: block;
  font-size: 17px;
  font-weight: bold;
  color: #4d6b3b;
}
.gr-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #333;
  margin-top: 2px;
}
.gr-rating strong { font-size: 18px; }
.gr-count { color: #888; font-size: 13px; }
.gr-stars { letter-spacing: 1px; white-space: nowrap; }
.gr-star { color: #ddd6c6; }
.gr-star.on { color: #d4a843; }
.gr-write {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: #4d6b3b;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.gr-write:hover { opacity: .85; }

/* スライダー */
.gr-slider { position: relative; }
.gr-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}
.gr-track::-webkit-scrollbar { display: none; }
.gr-card {
  flex: 0 0 280px;
  max-width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #ece5d6;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
}
.gr-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gr-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.gr-avatar-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4d6b3b;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}
.gr-card-meta { min-width: 0; }
.gr-author {
  display: block;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gr-card-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.gr-card-time { color: #999; font-size: 12px; }
.gr-store {
  margin-left: auto;
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 2px 8px;
  background: #eef2e6;
  color: #4d6b3b;
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
}
.gr-card-text {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gr-reply {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f4f0e6;
  border-radius: 8px;
  font-size: 12px;
}
.gr-reply-label {
  display: block;
  font-weight: bold;
  color: #4d6b3b;
  margin-bottom: 2px;
}
.gr-reply p { margin: 0; color: #666; line-height: 1.6; }

.gr-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e6dfd0;
  background: #fff;
  color: #4d6b3b;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.gr-prev { left: -14px; }
.gr-next { right: -14px; }
.gr-nav:hover { background: #4d6b3b; color: #fff; }
.gr-nav.gr-dis { opacity: 0; pointer-events: none; }

.gr-more {
  display: inline-block;
  margin-top: 16px;
  color: #4d6b3b;
  font-weight: bold;
  font-size: 13px;
  text-decoration: underline;
}
.gr-empty {
  color: #999;
  text-align: center;
  padding: 24px;
}
@media (max-width: 600px) {
  .gr-widget { padding: 16px; }
  .gr-card { flex-basis: 85%; max-width: 85%; }
  .gr-prev { left: -8px; }
  .gr-next { right: -8px; }
  .gr-write { padding: 7px 12px; }
}
