/* ============================================================
   Google口コミ カルーセル
   VOICE（白背景）と TOPICS の間に入るため、背景をわずかに落として
   セクションの切れ目が分かるようにしている。
   見出し・ナビの寸法は voice.css に合わせてある。
   ============================================================ */

.gr-section {
  width: 100%;
  background: #f6f6f4;
  padding: 120px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* 画面外のスライドがページ全体の横スクロールを生むのを防ぐ。
     テーマに html/body への overflow-x 指定がないため、セクション側で止める。 */
  overflow: hidden;
}

.gr-section__inner {
  width: 1320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

.gr-section__heading {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.gr-section__label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: #000;
}

.gr-section__subtitle {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #000;
}

/* 画面幅いっぱいに流す（voice と同じ手法） */
.gr-section__carousel-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  padding-bottom: 50px;
}

.gr-section .swiper {
  padding: 0 60px;
}

.gr-section .swiper-slide {
  width: 380px;
  max-width: 82vw;
  height: auto;          /* カードの高さを行で揃える */
  display: flex;
}

/* ---- カード ---- */

.gr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 32px 30px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 4px;
}

.gr-card__stars {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #e8a400;
}

.gr-card__shop {
  margin: 0;
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid #d6d6d0;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.gr-card__body {
  margin: 6px 0 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 2;
  color: #222;
  /* 長い口コミでカードの高さが崩れないよう行数で切る */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---- ナビ（voice.css と同じ寸法）---- */

.gr-section__nav {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1320px;
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding-right: 50px;
  box-sizing: border-box;
}

.gr-section__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gr-section__btn:hover {
  opacity: 0.5;
}

.gr-section__btn .material-icons {
  font-size: 36px;
  color: #222;
  line-height: 1;
}

.gr-section__btn--pause .material-icons {
  font-size: 28px;
}

.gr-section__source {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  line-height: 1.8;
  color: #777;
}

/* ---- レスポンシブ（voice.css と同じ区切り）---- */

@media screen and (max-width: 1140px) {
  .gr-section {
    padding: 100px 40px;
  }
  .gr-section__inner {
    gap: 40px;
  }
  .gr-section__label {
    font-size: 48px;
  }
  .gr-section .swiper {
    padding: 0 40px;
  }
  .gr-section .swiper-slide {
    width: 340px;
  }
}

@media screen and (max-width: 768px) {
  .gr-section {
    padding: 80px 30px;
  }
  .gr-section__nav {
    padding-right: 0;
  }
  .gr-section__label {
    font-size: 40px;
  }
  .gr-section .swiper {
    padding: 0 30px;
  }
  .gr-section .swiper-slide {
    width: 300px;
  }
  .gr-card {
    padding: 26px 24px;
  }
  .gr-card__body {
    -webkit-line-clamp: 8;
    line-clamp: 8;
  }
}

@media screen and (max-width: 480px) {
  .gr-section {
    padding: 64px 20px;
  }
  .gr-section .swiper {
    padding: 0 20px;
  }
  .gr-section .swiper-slide {
    width: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gr-section__btn {
    transition: none;
  }
}
