/* ==========================
   カテゴリアーカイブ共通設定
========================== */
.archive-product-cat {
  padding: 40px 16px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "M PLUS Rounded 1c", sans-serif;
  background: #fff;
}

.archive-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
  color: #333;
  text-align: center;
}

/* ==========================
   カード一覧レイアウト
========================== */
.review-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ==========================
   各カードのデザイン
========================== */
.review-card {
  display: block;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  text-decoration: none;
}

.review-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ==========================
   アイキャッチ部分
========================== */
.review-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================
   カード本文部分
========================== */
.review-card-body {
  padding: 1rem;
}

.review-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #222;
  line-height: 1.5;
}

.review-card-meta {
  font-size: 0.85rem;
  color: #999;
}

/* ==========================
   ページネーション
========================== */
.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  background: #f5f5f5;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.pagination .page-numbers.current {
  background: #5bc3eb;
  color: #fff;
  font-weight: bold;
}

.pagination .page-numbers:hover {
  background: #e0f6fc;
}

.review-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center; /* 中央寄せ */
}

.review-card {
  max-width: 360px; /* ★ 横幅制限を追加 */
  margin: 0 auto;
}

.review-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列固定 */
  gap: 2rem;
  justify-content: start; /* ★ 左寄せ */
}

@media screen and (max-width: 1024px) {
  .review-card-list {
    grid-template-columns: repeat(2, 1fr); /* タブレットは2列 */
  }
}

@media screen and (max-width: 640px) {
  .review-card-list {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
}

.review-card {
  width: 100%; /* グリッド内でフィット */
  max-width: 100%;
}

.review-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* 横3：縦2の比率で揃える */
  overflow: hidden;
  background: #f2f2f2;
  border-bottom: 1px solid #eee;
}

.review-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← これではみ出し部分をカットしつつ比率維持 */
  display: block;
}

.review-card-title a {
  text-decoration: none;
  color: inherit;
}

.review-card-title a:hover {
  text-decoration: none;
  opacity: 0.8; /* 任意：hover時の変化 */
}

a.review-card-title {
  text-decoration: none;
}

a.review-card-title:hover {
  text-decoration: none;
}

.review-card-title a {
  text-decoration: none;
  color: inherit;
}

.review-card-title a:hover {
  text-decoration: none;
  opacity: 0.8; /* hover演出したい場合 */
}
