/* NHJ カテゴリー一覧（ブランド見出し + カテゴリーカード）
   ⚠ SHOPLINEテーマは @media クエリを上書きしてくることがあるため、
      レスポンシブは grid auto-fit / minmax で組む（プロジェクト共通の方針）。 */

.nhj-cols {
  padding: 48px 16px 72px;
}

.nhj-cols-head {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3ded6;
  color: #1a1916;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* 2つ目以降のグループは上に余白を取る */
.nhj-cols-grid + .nhj-cols-head {
  margin-top: 56px;
}

.nhj-cols-grid {
  display: grid;
  /* ⚠ auto-fit ではなく auto-fill。
     auto-fit は空のトラックを畳むため、カードが1枚しかないグループ（Other Brand）で
     その1枚が横幅いっぱいに引き伸ばされる。auto-fill は空トラックを残すので、
     枚数に関係なくカード幅が揃う。 */
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px 20px;
}

.nhj-cols-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nhj-cols-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f0ede8;
}

.nhj-cols-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.nhj-cols-card:hover .nhj-cols-card__img img {
  transform: scale(1.04);
}

.nhj-cols-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c9c2b7;
}

.nhj-cols-card__title {
  margin-top: 10px;
  color: #1a1916;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  line-height: 1.4;
}
