@charset "UTF-8";
/*
	Products インデックス（/products）用スタイル.
*/
.products-index .entry-header {
  margin: 0 0 1rem;
}

/* タイトルのサイズとリビールは theme.scss の .entry-title に委ねる（ここでは追加の上書きをしない）. */
.product-card-grid {
  display: grid;
  gap: 0.5rem; /* モバイルでは間隔を保ちつつ、視認性を優先する. */
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 480px) {
  .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .product-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .product-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .product-card-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #fff;
  overflow: clip;
  transition: transform 0.12s ease, box-shadow 0.16s ease;
}

.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.product-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
}

.product-thumb {
  aspect-ratio: 16/9;
  background: #fafafa;
  display: block;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 0.6rem 0.7rem 0.8rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.product-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.product-excerpt {
  margin: 0;
  color: #444;
  font-size: 0.85rem;
}

.product-cta {
  display: inline-block;
  margin-top: 0.2rem;
  color: #111;
  opacity: 0.75;
  font-size: 0.9rem;
}
