/* 口コミ投稿・レビュー一覧のスタイル */
.review-form-container {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.review-form-container h3 {
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.review-form .form-group {
  margin-bottom: 1.5rem;
}

.review-form label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.review-form textarea {
  resize: vertical;
  min-height: 100px;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 0.3rem;
}

/* 星評価入力 */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s;
  margin-bottom: 0;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: #ffd700;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.prm-score-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: bold;
}

.prm-stars {
  font-size: 24px;
  color: #f5a623;
}

.prm-score {
  font-size: 24px;
  margin-left: 4px;
}

.prm-count {
  font-size: 16px;
  color: #666;
  margin-left: 6px;
}

.final-message p:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* 文字間の余白 */
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  flex-wrap: nowrap; /* 一列で表示 */
}

.rating-inline {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.rating-inline * {
  display: inline !important;   /* 全てをインライン化 */
  white-space: nowrap;
}

.final-message p.rating-inline {
  text-align: center !important;
  width: 100%;
  display: block;
}



/* 星の色をそろえる */
.final-message .prm-stars {
  color: #f5a623;
}

/* 数字の強調 */
.final-message .prm-score {
  font-size: 22px;
  font-weight: bold;
}

/* 件数の部分 */
.final-message .prm-count {
  font-size: 16px;
  color: #666;
}


/* タグボタン */
.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.tag-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-light);
}

.tag-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}


.review-stats .stats-overview .overall-rating .rating-number {
  font-size: 40px !important;
  line-height: 1.1;
  font-weight: bold;
}



/* 投稿ボタン */
.submit-review-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-review-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* レビュー統計 */
.review-stats {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.stats-overview {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.overall-rating {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.rating-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.rating-stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.review-total {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.rating-distribution {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.distribution-item {
  display: grid;
  grid-template-columns: 40px 1fr 50px;
  align-items: center;
  gap: 1rem;
}

.dist-label {
  color: #ffd700;
  font-weight: 600;
}

.dist-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.dist-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffb300);
}

.dist-count {
  text-align: right;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* 人気タグ */
.popular-tags h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* フィルター */
.review-filter {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.filter-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* レビューアイテム */
.reviews-list {
  margin-top: 2rem;
}

.review-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.review-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-dark);
}

.review-date {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.verified-badge {
  background: #4caf50;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.review-rating {
  color: #ffd700;
  font-size: 1.2rem;
}

.review-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.review-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.review-tag {
  padding: 0.3rem 0.8rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.review-content {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-content p {
  margin: 0;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.helpful-buttons {
  display: flex;
  gap: 0.5rem;
}

.helpful-btn,
.not-helpful-btn {
  padding: 0.4rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.helpful-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

.not-helpful-btn:hover {
  background: var(--bg-light);
}

.report-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.report-btn:hover {
  color: var(--accent-color);
}

/* もっと見るボタン */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  padding: 0.8rem 2rem;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.load-more-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* レスポンシブ対応（口コミセクション） */
@media (max-width: 768px) {
  .review-stats {
      grid-template-columns: 1fr;
  }

  .stats-overview {
      grid-template-columns: 1fr;
  }

  .filter-options {
      flex-direction: column;
      align-items: stretch;
  }

  .filter-buttons {
      overflow-x: auto;
      padding-bottom: 0.5rem;
  }

  .review-header {
      flex-direction: column;
      align-items: flex-start;
  }

  .reviewer-info {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
  }
}


/* rating-inline のテキストを必ず中央揃え */
.final-message .rating-inline {
  text-align: center !important;
  display: block !important;
  width: 100%;
  margin: 0 auto;
}

/* ショートコードが出す <p> も中央揃えに強制 */
.final-message .rating-inline + p {
  text-align: center !important;
  margin-top: 0.2rem;
}

/* ショートコードの <p> の内部（星・数値）のスタイル補強 */
.final-message .rating-inline + p * {
  text-align: center !important;
}

