/* Google口コミ導線用CSS（トップページのセクション / 店舗案内ページの店舗別バナー） */

/* ------------------------------------------------------------------
   共通: 星評価（front の width はGoogle Places APIの取得値でJSが設定する）
------------------------------------------------------------------ */
.google-review-star {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

.google-review-star__back {
  display: block;
  color: #dcdcdc;
}

.google-review-star__front {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 0;
  overflow: hidden;
  color: #f7931e;
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   トップページ: Google口コミセクション
------------------------------------------------------------------ */
.google-review-section {
  background: #f2f6ef;
  padding: 20px 0 50px;
}

.google-review-section__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.google-review-section__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-review-section__heading-icon {
  width: 26px;
  height: 26px;
}

.google-review-section__lead {
  margin-top: 15px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.google-review-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.google-review-card {
  flex: 1 1 0;
  max-width: 235px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.google-review-card__link {
  display: block;
  padding: 18px 15px 15px;
  text-decoration: none;
  color: #231815;
}

.google-review-card__link:hover {
  opacity: 0.7;
}

.google-review-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: bold;
}

.google-review-card__logo {
  width: 24px;
  height: 24px;
}

.google-review-card__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.google-review-card__rate {
  font-size: 17px;
  font-weight: bold;
  color: #3e9e37;
}

.google-review-card__star,
.google-review-card__separator,
.google-review-card__count-inline {
  display: none;
}

.google-review-card__count {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #5c5754;
}

/* 取得前は数値が空のまま露出しないように場所だけ確保する */
.google-review-card:not(.is-loaded) .google-review-card__score,
.google-review-card:not(.is-loaded) .google-review-card__count {
  visibility: hidden;
}

.google-review-card__more {
  display: block;
  position: relative;
  margin-top: 12px;
  padding: 10px 15px 0 0;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #3e9e37;
}

.google-review-card__more::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: 2px;
  border-top: 1px solid #3e9e37;
  border-right: 1px solid #3e9e37;
  transform: translateY(-50%) rotate(45deg);
}

.home .c-button.google-review-section__btn {
  width: 300px;
  max-width: 100%;
  height: 48px;
  margin: 25px auto 0;
  font-size: 16px;
  font-weight: bold;
}

@media only screen and (max-width: 750px) {
  .google-review-section {
    padding: 10px 0 35px;
  }

  .google-review-section__inner {
    padding: 0 15px;
  }

  .google-review-section__lead {
    margin-top: 10px;
    font-size: 13px;
  }

  .google-review-list {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }

  .google-review-card {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }

  .google-review-card__link {
    padding: 12px 12px 13px;
  }

  .google-review-card__logo,
  .google-review-card .google-review-star,
  .google-review-card__count,
  .google-review-card__more {
    display: none;
  }

  .google-review-card__name {
    position: relative;
    justify-content: flex-start;
    padding-right: 16px;
    font-size: 15px;
  }

  .google-review-card__name::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1px solid #5c5754;
    border-right: 1px solid #5c5754;
    transform: translateY(-50%) rotate(45deg);
  }

  .google-review-card__score {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 9px;
  }

  .google-review-card__star {
    display: inline-block;
    font-size: 14px;
    color: #f7931e;
  }

  .google-review-card__rate {
    font-size: 16px;
  }

  .google-review-card__separator {
    display: inline-block;
    font-size: 12px;
    color: #c6c6c6;
  }

  .google-review-card__count-inline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #5c5754;
  }

  .home .c-button.google-review-section__btn {
    height: 44px;
    margin-top: 18px;
    font-size: 15px;
  }
}

/* ------------------------------------------------------------------
   店舗案内ページ: 店舗ごとのGoogle口コミバナー
------------------------------------------------------------------ */
.shop-review {
  display: flex;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #c6c6c6;
  text-decoration: none;
  color: #231815;
}

.shop-review:hover {
  opacity: 0.7;
}

.shop-review__logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.shop-review__rate {
  margin: 0 10px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.shop-review__more {
  position: relative;
  margin-left: auto;
  padding-right: 18px;
  font-size: 14px;
  color: #3e9e37;
}

.shop-review__more::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #3e9e37;
  border-right: 1px solid #3e9e37;
  transform: translateY(-50%) rotate(45deg);
}

/* Google Places APIの取得可否でラベルを切り替える */
.shop-review__more-loaded,
.shop-review.is-loaded .shop-review__more-default {
  display: none;
}

.shop-review.is-loaded .shop-review__more-loaded {
  display: inline;
}

.shop-review:not(.is-loaded) .shop-review__rate,
.shop-review:not(.is-loaded) .google-review-star {
  display: none;
}

@media only screen and (max-width: 750px) {
  .shop-review__logo {
    width: 22px;
    height: 22px;
  }

  .shop-review__rate {
    margin: 0 8px;
    font-size: 18px;
  }

  .shop-review__more {
    font-size: 13px;
  }
}
