html {
  scroll-behavior: smooth;
}

.page-header {
  background: #f9f7f4;
  padding: 60px 20px 44px;
  text-align: center;
  border-bottom: 1px solid rgba(83, 71, 67, .1);
}

.page-header .breadcrumb {
  font-size: .85em;
  color: #b0a49f;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.page-header .breadcrumb a {
  color: #b0a49f;
  text-decoration: none;
}

.page-header .breadcrumb a:hover {
  color: #534743;
}

.page-header h1 {
  font-size: 2.2em;
  color: #534743;
  font-weight: 300;
  letter-spacing: .15em;
  margin-bottom: 12px;
}

.page-header .page-sub {
  font-size: .9em;
  color: #b0a49f;
  letter-spacing: .06em;
}

.reviews-page-container {
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #534743;
  font-size: .95em;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 36px;
  letter-spacing: .04em;
  transition: opacity .2s;
}

.back-btn:hover {
  opacity: .6;
}

/* サマリー */
.summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 36px;
  box-shadow: 0 2px 16px rgba(83, 71, 67, .08);
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}

.summary-score {
  text-align: center;
  min-width: 140px;
  flex-shrink: 0;
}

.score-num {
  font-size: 4.5em;
  font-weight: 800;
  color: #534743;
  line-height: 1;
  letter-spacing: -.02em;
}

.score-stars {
  font-size: 1.6em;
  color: #f59e0b;
  letter-spacing: 4px;
  margin: 10px 0 8px;
  display: block;
}

.score-count {
  font-size: .9em;
  color: #9ca3af;
  letter-spacing: .04em;
}

.summary-bars {
  flex: 1;
  min-width: 280px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-stars {
  font-size: .95em;
  color: #f59e0b;
  width: 80px;
  text-align: right;
  flex-shrink: 0;
  letter-spacing: 2px;
}

.bar-track {
  flex: 1;
  height: 10px;
  background: #f0ebe6;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 5px;
}

.bar-count {
  font-size: .9em;
  color: #9ca3af;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* フィルター（プルダウン） */
.filter-section {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(83, 71, 67, .06);
}

.filter-section-title {
  font-size: .85em;
  color: #9ca3af;
  letter-spacing: .08em;
  margin-bottom: 18px;
  font-weight: 500;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item label {
  font-size: .8em;
  color: #7a6058;
  font-weight: 600;
  letter-spacing: .04em;
}

.filter-select {
  padding: 8px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: .88em;
  color: #374151;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b0a49f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-select:focus {
  border-color: #534743;
}

.filter-select.has-value {
  border-color: #534743;
  color: #534743;
  background-color: #faf8f6;
}

.filter-reset-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: .82em;
  color: #9ca3af;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
  align-self: flex-end;
}

.filter-reset-btn:hover {
  border-color: #534743;
  color: #534743;
}

/* 件数 */
.review-count {
  display: none;
  font-size: .9em;
  color: #9ca3af;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

/* スクロールコンテナ */
.reviews-scroll-container {
  overflow: visible;
  max-height: none;
  padding-right: 0;
}

.reviews-scroll-container::-webkit-scrollbar {
  display: none;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(83, 71, 67, .08);
}

.pagination-info {
  font-size: .9em;
  color: #7a6058;
  letter-spacing: .04em;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #534743;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9em;
  min-width: 42px;
  text-align: center;
  transition: all .15s;
}

.pagination-button:hover:not(.is-disabled) {
  border-color: #534743;
  color: #fff;
  background: #534743;
}

.pagination-button.is-active {
  background: #534743;
  color: #fff;
  border-color: #534743;
  cursor: default;
}

.pagination-button.is-disabled {
  opacity: .45;
  cursor: default;
}

/* レビューカード */
.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(83, 71, 67, .06);
  transition: box-shadow .2s;
}

.review-card:hover {
  box-shadow: 0 4px 20px rgba(83, 71, 67, .11);
}

.review-card:last-child {
  margin-bottom: 0;
}

/* カードヘッダー */
.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.review-author {
  font-size: 1.1em;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: .03em;
}

.review-stars {
  font-size: 1.2em;
  color: #f59e0b;
  letter-spacing: 2px;
  margin-top: 5px;
  display: block;
}

/* 右側メタ：タグ → 日付の順（日付を右端に） */
.review-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-tag {
  background: #f9f7f4;
  color: #7a6058;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: .8em;
  font-weight: 500;
  letter-spacing: .03em;
  border: 1px solid rgba(83, 71, 67, .1);
}

.review-date {
  font-size: 1em;
  color: #665953;
  letter-spacing: .04em;
  white-space: nowrap;
  margin-top: 10px;
  margin-left: 4px;
}

.review-body {
  font-size: 1.1em;
  line-height: 1.85;
  color: #374151;
  white-space: pre-wrap;
  letter-spacing: .02em;
}

.review-reply {
  background: #f9f7f4;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
}

.review-reply-author {
  font-size: 1.1em;
  font-weight: 700;
  color: #534743;
  margin-bottom: 6px;
  display: block;
  letter-spacing: .04em;
}

.review-reply-body {
  font-size: 1.1em;
  color: #4b5563;
  line-height: 1.75;
  white-space: pre-wrap;
}

.review-reply-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}

.review-post-area {
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid rgba(83, 71, 67, .1);
  margin-top: 28px;
}

.review-post-area .back-btn {
  display: block;
  margin: 0 0 50px 0;
  text-align: left;
}

.review-post-area p {
  font-size: 1.05em;
  color: #53443d;
  margin-bottom: 30px;
  letter-spacing: .04em;
}

.review-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #534743;
  color: #fff;
  border: none;
  padding: 16px 44px;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .08em;
  transition: all .25s;
}

.review-post-btn:hover {
  background: #7a6058;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(83, 71, 67, .2);
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #b0a49f;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0ebe6;
  border-top-color: #534743;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width:768px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:480px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    padding: 20px 16px;
    gap: 24px;
  }

  .score-num {
    font-size: 3.2em;
  }

  .review-card {
    padding: 18px 16px;
  }

  .filter-section {
    padding: 18px 16px;
  }

  .reviews-page-container {
    padding: 28px 14px 60px;
  }

  .bar-stars {
    width: 56px;
    font-size: .82em;
  }
}