/* 共通フォント */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* セクション見出し */
.c-section__heading--title span {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: #222;
}
.c-section__heading--sub-title {
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  color: #aaa;
}

/* 商品リスト（PC4列 → SP2列） */
.c-product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 1200px;
}

/* 商品カード */
.c-product-list__item {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.c-product-list__item:hover {
  transform: scale(1.02);
}

.product-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #222;
}

/* 商品画像：PCは正方形比率 */
.product-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 正方形を作る */
  overflow: hidden;
}
.product-card__image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 商品テキスト */
.product-card__text {
  padding: 0 8px;
}
.product-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin: 12px 0 4px;
  transition: color 0.3s;
}
.product-card__price {
  font-family: 'Playfair Display', sans-serif;
  font-size: 20px;
  color: #555;
  margin-bottom: 12px;
}
.product-card__name:hover {
  color: #d33;
}

/* バッジ */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d33;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  z-index: 10;
}
.product-card__badge.soldout {
  background: #999;
}
.product-card__badge.rank {
 left: auto;
  right: 10px;
  background: #222; /* 黒背景で高級感 */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.product-card__badge.rank-image {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  margin: 0;
  background: none;
  z-index: 10;
}

.product-card__badge.rank-image img {
  width: 80px;
  height: 80px;
  display: block;
}

/* ピックアップカテゴリ */
.pickup-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 60px auto 40px;
  max-width: 1200px;
}
.pickup-item {
  flex: 0 1 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  text-align: center;
  text-decoration: none;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.3s;
}
.pickup-item:hover {
  transform: translateY(-4px);
}
.pickup-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pickup-caption {
  margin-top: 8px;
  font-size: 14px;
}

/* カテゴリグリッド（アイコン） */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}
.category-item {
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}
.category-item:hover {
  transform: scale(1.05);
}
.category-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;         /* ← 切り抜かないでそのまま表示 */
  border-radius: 12px;         /* ← 自然な角丸に */
  margin-bottom: 8px;
  background: transparent;     /* ← 念のため背景なしに */
  box-shadow: none;            /* ← 不要なら影も外す */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .pickup-item {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .c-product-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 商品画像：モバイルでは自然な比率 */
  .product-card__image-wrap {
    padding-top: 0;
    height: auto;
    position: static;
  }

  .product-card__image-wrap img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}
