/*
Template: jin
Theme Name: jin-child
Author: CrossPiece
Version: 1.00
*/

/* 口コミセクション */
.review-section {
  margin: 2rem 0;
}

.review-section__head {
  display: block !important;
  margin-bottom: 0.5rem;
}

.review-section__head h2 {
  margin-bottom: 0 !important;
}

.review-section__count {
  display: inline-block;
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
  margin-left: 8px;
  margin-bottom: 1rem;
}

/* リード文 */
.review-lead {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  background: #fff8f9;
  border-left: 3px solid #ff6b9d;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 1.25rem !important;
  text-indent: 0 !important;
}

.review-lead__cta {
  display: block;
  font-weight: 500;
  color: #ff6b9d;
  text-indent: 0 !important;
  padding-left: 0 !important;
}

/* サマリーカード */
.review-summary {
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem;
  align-items: flex-start;
  background: #fafafa;
  border: 0.5px solid #eee;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.review-summary__left {
  text-align: center;
  min-width: 90px;
}

.review-summary__score {
  font-size: 42px;
  font-weight: 500;
  color: #ff6b9d;
  line-height: 1;
}

.review-summary__stars {
  display: flex !important;
  justify-content: center;
  gap: 2px;
  margin: 6px 0 4px;
}

.review-summary__star {
  font-size: 16px;
  color: #ddd;
}

.review-summary__star.active {
  color: #ff9500;
}

.review-summary__note {
  font-size: 11px;
  color: #aaa;
}

.review-summary__divider {
  width: 0.5px;
  background: #eee;
  align-self: stretch;
}

.review-summary__bars {
  flex: 1;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px 1.5rem;
  min-width: 200px;
}

.review-bar-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.review-bar-row__label {
  font-size: 11px;
  color: #999;
  min-width: 52px;
}

.review-bar-row__bg {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.review-bar-row__fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff6b9d, #ff9500);
}

.review-bar-row__val {
  font-size: 11px;
  color: #aaa;
  min-width: 24px;
  text-align: right;
}

/* 個別レビューカード */
.review-card {
  background: #fff;
  border: 0.5px solid #eee;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.review-card__head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-card__reviewer {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.review-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff0f5;
  border: 0.5px solid #ffb3cc;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #ff6b9d;
  flex-shrink: 0;
}

.review-card__nick {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  display: block;
}

.review-card__date {
  font-size: 11px;
  color: #bbb;
  margin-top: 1px;
  display: block;
}

.review-card__stars {
  display: flex !important;
  gap: 2px;
}

.review-card__star {
  font-size: 16px;
  color: #ddd;
}

.review-card__star.active {
  color: #ff9500;
}

.review-card__comment {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px !important;
}

/* 詳細グリッド */
.review-card__details {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
}

.review-card__detail-item {
  background: #fafafa !important;
  border: 0.5px solid #eee !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
}

.review-card__detail-name {
  font-size: 10px !important;
  color: #bbb !important;
  display: block !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.review-card__detail-stars {
  display: flex !important;
  gap: 1px;
}

.review-card__detail-star {
  font-size: 11px;
  color: #ddd;
}

.review-card__detail-star.active {
  color: #ff9500;
}

/* ページネーション */
.review-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.5rem;
}

.review-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid #eee;
  background: #fff;
  color: #888;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.15s;
}

.review-pagination__btn:hover {
  border-color: #ff6b9d;
  color: #ff6b9d;
}

.review-pagination__btn.active {
  background: #ff6b9d;
  border-color: #ff6b9d;
  color: #fff !important;
  font-weight: 500;
}

/* 口コミ0件 */
.review-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #fafafa;
  border: 0.5px solid #eee;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.review-empty__icon {
  font-size: 36px;
  color: #eee;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.review-empty__text {
  font-size: 14px;
  color: #aaa;
  line-height: 1.8;
  margin: 0 !important;
}

/* 口コミ投稿フォーム */
.review-form-wrap {
  background: #fff;
  border: 0.5px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.review-form__title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid #eee;
}

.review-form__field {
  margin-bottom: 1rem;
}

.review-form__field label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111 !important;
  margin-bottom: 6px !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

.review-form__required {
  font-size: 11px;
  color: #ff6b9d;
  font-weight: 400;
  margin-left: 6px;
}

.review-form-wrap input[type="text"],
.review-form-wrap textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #111;
  margin: 0 !important;
}

.review-form-wrap textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.review-form-wrap br {
  display: none !important;
}

.review-star-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px;
  margin-top: 8px;
}

.review-star-item {
  background: #fafafa;
  border: 0.5px solid #eee;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.review-star-item__label {
  font-size: 12px;
  color: #888;
  min-width: 52px;
}

.star-selector {
  display: flex !important;
  gap: 2px;
}

.star-selector .star {
  font-size: 22px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.1s;
  line-height: 1;
}

.star-selector .star.active {
  color: #ff9500;
}

.star-selector .star.hover {
  color: #ffbc57;
}

.review-form-wrap button[type="submit"] {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #ff6b9d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.review-form-wrap button[type="submit"]:hover {
  background: #ff4d8d;
}

.review-thanks {
  color: #ff6b9d;
  font-weight: 500;
  margin-bottom: 1rem;
}

.review-form__error {
  font-size: 13px;
  color: #e00;
  background: #fff0f0;
  border: 0.5px solid #ffcccc;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 0.75rem;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .review-summary {
    flex-direction: column !important;
  }
  .review-summary__bars {
    grid-template-columns: 1fr !important;
    width: 100%;
  }
  .review-card__details {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .review-star-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 追従バナー */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  30%       { transform: translateY(-14px); }
  60%       { transform: translateY(-6px); }
}

#sticky-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 180px;
  height: 180px;
  z-index: 9999;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  display: none;
  animation: bounce 1.8s ease infinite;
}

#sticky-banner__link {
  display: block;
  width: 100%;
  height: 100%;
}

#sticky-banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
}

#sticky-banner__close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#sticky-banner__close:hover {
  background: rgba(0,0,0,0.85);
}

@media (max-width: 767px) {
  #sticky-banner {
    width: 140px;
    height: 140px;
    bottom: 16px;
    right: 16px;
  }
}