/* container (存在しない場合の保険) */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

.page-header { text-align: center; margin: 24px 0 8px; }
/* 見出しを確実に中央寄せ（上位CSSの影響を受けないように） */
.page-header { 
  display: flex;
  justify-content: center;
}
.page-header .page-title {
  margin: 0 auto;
  text-align: center;
}
.page-title { font-weight: 800; letter-spacing: .02em; margin: 0; }

/* グリッド */
.product-grid {
  --gap: 24px;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .product-grid { grid-template-columns: 1fr; --gap: 16px; }
}

/* カード */
.product-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.10);
}

/* サムネイル（16:10） */
.product-card__thumb { aspect-ratio: 16 / 10; background: #f4f5f7; overflow: hidden; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(.95); }
.product-card:hover .product-card__img { transform: scale(1.03); }

/* 本文 */
.product-card__body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.product-card__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  font-weight: 800;
  color: #111;
  position: relative;
  padding-bottom: 12px;
}
.product-card__title::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: #d9dbe1;
  position: absolute;
  left: 0;
  bottom: 0;
}
.product-card__cta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: .02em;
}
.product-card__noimage {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 12px,#e5e7eb 12px,#e5e7eb 24px);
}
.pagination { margin: 24px 0 40px; text-align: center; }