/* =============================================
   reviews.css — レビュー一覧スタイル
   テーマの style.css か、wp_enqueue_style() で読み込む
   ============================================= */

/* ---------- 変数 ---------- */
:root {
  --rv-accent:   #2563eb;
  --rv-accent-h: #1d4ed8;
  --rv-text:     #1a1a2e;
  --rv-muted:    #6b7280;
  --rv-border:   #e5e7eb;
  --rv-bg:       #f8fafc;
  --rv-white:    #ffffff;
  --rv-radius:   12px;
  --rv-shadow:   0 2px 12px rgba(0,0,0,.08);
  --rv-shadow-h: 0 8px 28px rgba(0,0,0,.14);
  --rv-font:     'Noto Sans JP', sans-serif;
}

/* ---------- ラッパー ---------- */
.rv-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: var(--rv-font);
}

/* ---------- カテゴリ絞り込みバー ---------- */
.rv-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.rv-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 2px solid var(--rv-border);
  border-radius: 999px;
  background: var(--rv-white);
  color: var(--rv-muted);
  font-size: .85rem;
  font-family: var(--rv-font);
  cursor: pointer;
  transition: all .2s ease;
  font-weight: 500;
}

.rv-filter__btn:hover {
  border-color: var(--rv-accent);
  color: var(--rv-accent);
}

.rv-filter__btn.is-active {
  background: var(--rv-accent);
  border-color: var(--rv-accent);
  color: var(--rv-white);
}

.rv-filter__count {
  display: inline-block;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 0 6px;
  font-size: .75rem;
  line-height: 1.6;
  min-width: 20px;
  text-align: center;
}

.rv-filter__btn:not(.is-active) .rv-filter__count {
  background: var(--rv-bg);
  color: var(--rv-muted);
}

/* ---------- グリッド ---------- */
.rv-grid {
  display: grid;
  grid-template-columns: 1fr;   /* モバイルは1列 */
  gap: 28px;
}

@media (min-width: 640px) {
  .rv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .rv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- カード ---------- */
.rv-card {
  background: var(--rv-white);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rv-shadow-h);
}

/* サムネイル：横長 16:9 */
.rv-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rv-bg);
}

.rv-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.rv-card:hover .rv-card__img {
  transform: scale(1.04);
}

.rv-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rv-muted);
  font-size: .85rem;
}

/* カテゴリバッジ（画像上） */
.rv-card__badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rv-card__badge {
  background: rgba(37,99,235,.85);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: .03em;
}

/* テキストエリア */
.rv-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rv-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--rv-text);
}

.rv-card__title a {
  color: inherit;
  text-decoration: none;
}

.rv-card__title a:hover {
  color: var(--rv-accent);
}

.rv-card__excerpt {
  font-size: .88rem;
  color: var(--rv-muted);
  line-height: 1.75;
  margin: 0 0 14px;
  flex: 1;
  /* 3行で切る */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--rv-muted);
  border-top: 1px solid var(--rv-border);
  padding-top: 12px;
}

.rv-card__date {
  font-variant-numeric: tabular-nums;
}

.rv-card__cats {
  margin-left: auto;
  color: var(--rv-accent);
  font-weight: 600;
}

/* ---------- 非表示カード（JS絞り込み用） ---------- */
.rv-card.is-hidden {
  display: none;
}

/* ---------- 「件数なし」メッセージ ---------- */
.rv-empty,
.rv-no-result {
  text-align: center;
  color: var(--rv-muted);
  padding: 60px 0;
  font-size: .95rem;
  grid-column: 1 / -1;
}

/* ---------- ページネーション ---------- */
.rv-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.rv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--rv-border);
  border-radius: 8px;
  color: var(--rv-text);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s;
}

.rv-pagination .page-numbers:hover,
.rv-pagination .page-numbers.current {
  background: var(--rv-accent);
  border-color: var(--rv-accent);
  color: #fff;
}

/* =============================================
   レビュー画像グリッド
   ============================================= */

.rv-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2カラム固定 */
  gap: 16px;
  padding: 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.rv-photo-item {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.rv-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}

.rv-photo-item:hover img {
  transform: scale(1.04);
}

/* モバイルは1カラム */
@media (max-width: 600px) {
  .rv-photo-grid {
    grid-template-columns: 1fr;
  }
}

.mv {
  width: 100%;
  aspect-ratio: 16 / 6;
  background: center / cover no-repeat #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 48px;
}

/* 暗めのオーバーレイ */
.mv::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}

.mv__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.mv__catch {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: .04em;
}

.mv__sub {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  opacity: .85;
  margin: 0;
  line-height: 1.8;
}