@charset "UTF-8";

/* =========================================================
   page-cloth-brand.css
   - 生地ブランド一覧（固定ページHTML直書き版）
   ========================================================= */

#kk-clothbrands{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* 見出し */
#kk-clothbrands .kk-cb-head{ margin-bottom: 18px; }

#kk-clothbrands .kk-cb-h1{
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 10px;
}

#kk-clothbrands .kk-cb-lead,
#kk-clothbrands .kk-cb-desc{
  margin: 0 0 8px;
  line-height: 1.7;
}

#kk-clothbrands .kk-cb-section{ margin: 28px 0 0; }

#kk-clothbrands .kk-cb-h2{
  font-size: 18px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid #222;
}

/* グリッド */
#kk-clothbrands .kk-cb-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px){
  #kk-clothbrands .kk-cb-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px){
  #kk-clothbrands .kk-cb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  #kk-clothbrands .kk-cb-grid{ grid-template-columns: 1fr; }
}

/* カード */
#kk-clothbrands .kk-cb-card{
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#kk-clothbrands .kk-cb-card:hover{
  transform: translateY(-2px);
  border-color: #d0d0d0;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* 画像枠：正方形（ロゴ安定） */
#kk-clothbrands .kk-cb-media{
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #f6f6f6;
  display: grid;
  place-items: center;
}

/* 通常：ロゴは切らない */
#kk-clothbrands .kk-cb-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 10px;
}

/* 画像が無い時 */
#kk-clothbrands .kk-cb-noimg{
  width: 100%;
  height: 100%;
  display: block;
  background: repeating-linear-gradient(45deg,#f2f2f2,#f2f2f2 10px,#fafafa 10px,#fafafa 20px);
  border-radius: 10px;
}

/* テキスト */
#kk-clothbrands .kk-cb-body{ padding: 12px 12px 14px; }

#kk-clothbrands .kk-cb-name{
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.35;
  font-size: 14px;
  color: #111;
}
#kk-clothbrands .kk-cb-text{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #444;
}

/* DJA：2枚縦積み（.is-stack をHTMLに付けた時だけ効く） */
#kk-clothbrands .kk-cb-media.is-stack{
  padding: 10px;
  gap: 10px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-content: center;
}
#kk-clothbrands .kk-cb-media.is-stack img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 白場を削る */
  object-position: center;
  transform: scale(1.12);  /* 詰め具合：1.06〜1.18 */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}