/* =============================
   口コミ投稿フォーム専用スタイル
   ============================= */

/* スター評価グループ */
.review-star-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-star-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.15s;
  font-size: 1.08rem;
  font-weight: bold;
}

.review-star-label:hover {
  background-color: #fff8e1;
}

.review-star-label.is-selected {
  background-color: #fff3cd;
}

.review-star-radio {
  display: none;
}

.review-star-icon {
  font-size: 1.6rem;
  color: #ccc;
  transition: color 0.15s;
  line-height: 1;
}

.review-star-label:hover .review-star-icon,
.review-star-label.is-selected .review-star-icon {
  color: #f5a623;
}

.review-star-text {
  color: #333;
  min-width: 5em;
}

/* 注意書き */
.review-note {
  font-size: 0.88rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.6;
}

/* 単位（枚・円） */
.review-unit {
  display: inline-block;
  margin-left: 8px;
  font-size: 1rem;
  font-weight: bold;
}

/* 続きを読むリンク */
.review-more-link {
  font-size: 0.9rem;
  color: #dc0000;
  text-decoration: none;
  font-weight: bold;
}
.review-more-link:hover {
  text-decoration: underline;
}

/* 口コミ本体：左テキスト・右写真 */
.reviewList-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.reviewList-text {
  flex: 1;
  min-width: 0;
}

.reviewList-body .reviewList-photos {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.reviewList-body .reviewList-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #eee;
}

@media screen and (max-width: 834px) {
  .reviewList-body {
    flex-direction: column;
  }
  .reviewList-body .reviewList-photos {
    flex-direction: row;
  }
  .reviewList-body .reviewList-photo {
    width: 80px;
    height: 80px;
  }
}

/* 詳細ページの写真 */
.reviewDetail-photos {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.reviewDetail-photos .reviewDetail-photo {
  object-fit: cover;
  border: 1px solid #eee;
  width: 100%;
}

.reviewDetail-photos--single .reviewDetail-photo {
  max-width: 600px;
}

.reviewDetail-photos--double .reviewDetail-photo {
  width: calc(50% - 8px);
}

@media screen and (max-width: 834px) {
  .reviewDetail-photos {
    flex-direction: column;
    gap: 10px;
  }
  .reviewDetail-photos--double .reviewDetail-photo {
    width: 100%;
  }
}

/* 口コミ表示（業者ページ用） */
.reviewList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reviewList-item {
  border-bottom: 1px dotted #ccc;
  padding: 24px 0;
}

.reviewList-item:last-child {
  border-bottom: none;
}

.reviewList-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.reviewList-stars {
  color: #f5a623;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.reviewList-date {
  font-size: 0.88rem;
  color: #999;
}

.reviewList-ratings {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.reviewList-rating-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reviewList-rating-label {
  color: #666;
}

.reviewList-rating-star {
  color: #f5a623;
}

.reviewList-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #666;
}

.reviewList-meta span::before {
  content: '■ ';
  color: #ccc;
}

.reviewList-content {
  line-height: 1.8;
  white-space: pre-wrap;
}

.reviewList-photos {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.reviewList-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* 評価サマリー */
.reviewSummary {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.reviewSummary-score {
  text-align: center;
  min-width: 80px;
}

.reviewSummary-score-num {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1;
  color: #333;
}

.reviewSummary-score-max {
  font-size: 1rem;
  color: #999;
}

.reviewSummary-score-stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 4px;
}

.reviewSummary-items {
  flex: 1;
}

.reviewSummary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.reviewSummary-item-label {
  width: 5em;
  color: #666;
}

.reviewSummary-item-bar {
  flex: 1;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.reviewSummary-item-bar-fill {
  height: 100%;
  background-color: #f5a623;
  border-radius: 4px;
}

.reviewSummary-item-score {
  color: #f5a623;
  font-weight: bold;
  min-width: 2em;
}

@media screen and (max-width: 834px) {
  /* フォーム */
  .review-star-group {
    gap: 4px;
  }
  .review-star-label {
    padding: 8px 6px;
  }

  /* サマリー */
  .reviewSummary {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
  }
  .reviewSummary-score {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 0;
  }
  .reviewSummary-items {
    width: 100%;
    min-width: 0;
  }
  .reviewSummary-item {
    gap: 8px;
  }
  .reviewSummary-item-bar {
    min-width: 0;
  }

  /* 一覧 */
  .reviewList-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .reviewList-ratings {
    flex-wrap: wrap;
    gap: 6px;
  }
  .reviewList-meta {
    gap: 8px;
  }
  .reviewList-content {
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .reviewList-photo {
    width: 90px;
    height: 90px;
  }
}
