body {
      font-family: sans-serif;
      line-height: 1.6;
    }
		.review-container{
  max-width: 960px;   /* Amazon系なら900〜1100pxが鉄板 */
  margin: 20px auto;
  padding: 0 16px;    /* スマホの端くっつき防止 */
}
h1{
	text-align: center;
	padding:10px 0;
font-size: 22px;
font-weight: bold;
}
    .filters {
      margin: 16px;
    }
  .review {
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.review-text { 
  white-space: pre-wrap;
 }
.review strong {
  background: #fff3cd;
}

.filters .group {
  margin-bottom: 12px;
}

.filters button {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.filters button.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
select {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}
.search input {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}
.search input:focus {
  outline: none;
  border-color: #333;
}
.search input::placeholder {
  color: #999;
}
.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
}

.star {
  color: #ddd; /* 未評価（グレー） */
}

/* ★の塗りつぶし制御 */
.stars[data-rating="1"] .star:nth-child(-n+1),
.stars[data-rating="2"] .star:nth-child(-n+2),
.stars[data-rating="3"] .star:nth-child(-n+3),
.stars[data-rating="4"] .star:nth-child(-n+4),
.stars[data-rating="5"] .star:nth-child(-n+5) {
  color: #f5a623; /* Amazon系オレンジ */
}
.stars {
  font-size: 20px;
}
.review .stars {
  margin-bottom: 4px;
}
.review-title {
  font-weight: bold;
  margin: 6px 0;
  font-size: 15px;
}
#review-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding:10px 0;
}
.search-footer {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

#apply {
  background: #222;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}

#reset {
  background: #eee;
}

@media (max-width: 640px) {

  .group {
    align-items: flex-start;
  }

  .group strong {
    display: block;
    margin-bottom: 8px;
  }
}
#pagination,
#pagination-top {
  margin: 24px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

#pagination button,
#pagination-top button {
  min-width: 36px;
  padding: 6px 10px;
  border: 1px solid #d5d9d9;
  background: #fff;
  color: #0f1111;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#pagination button:hover,
#pagination-top button:hover {
  background: #f7fafa;
}

/* 現在ページ */
.active-page {
  background: #f0c14b;
  border-color: #a88734;
  font-weight: bold;
}

/* 前へ・次へ */
#pagination button:first-child,
#pagination button:last-child,
#pagination-top button:first-child,
#pagination-top button:last-child {
  border: none;
  background: none;
  padding: 6px 4px;
  color: #007185;
}

#pagination button:first-child:hover,
#pagination button:last-child:hover,
#pagination-top button:first-child:hover,
#pagination-top button:last-child:hover {
  text-decoration: underline;
  background: none;
}

@media (max-width: 640px) {
  #pagination button,
  #pagination-top button {
    font-size: 16px;
    padding: 8px 12px;
  }
}
