@charset "UTF-8";

/* =========================================================
   cloth-brand 子ページ（共通）
   - トップと完全分離：#kk-clothbrand-child の中だけ効かせる
   ========================================================= */

#kk-clothbrand-child{
  margin: 18px 0 28px;
}

/* =========================================================
   生地カード（子ページ用）
   - 3列グリッド
   - 画像は角丸なし
   - タイトル小さめ、説明/価格やや大きめ
   ========================================================= */

#kk-clothbrand-child .kk-newfabrics-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 980px){
  #kk-clothbrand-child .kk-newfabrics-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  #kk-clothbrand-child .kk-newfabrics-grid{
    grid-template-columns: 1fr;
  }
}

/* カード本体（カードは角丸OK） */
#kk-clothbrand-child .kk-fabric-card{
  border: 1px solid #e6e6e6;
  border-radius: 0px;
  overflow: hidden; /* 角丸を効かせる */
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* dl/dt/dd の既定余白を殺す（Cocoonの影響回避） */
#kk-clothbrand-child .kk-fabric-card,
#kk-clothbrand-child .kk-fabric-card dl,
#kk-clothbrand-child .kk-fabric-card dt,
#kk-clothbrand-child .kk-fabric-card dd{
  margin: 0;
}

/* 画像（ここだけ角丸なし） */
#kk-clothbrand-child .kk-fabric-thumb{
  margin: 0;
  padding: 0;
  position: relative;
}
#kk-clothbrand-child .kk-fabric-thumb figure{ margin: 0; }

#kk-clothbrand-child .kk-fabric-thumb img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important; /* ← 画像だけ確実に角丸なし */
}

/* NEWバッジ */
#kk-clothbrand-child .kk-badge-new{
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}

/* meta領域 */
#kk-clothbrand-child .kk-fabric-meta{
  padding: 12px 14px 10px;
}

/* “白枠”“縦バー”になりやすい装飾を無効化 */
#kk-clothbrand-child .kk-fabric-head,
#kk-clothbrand-child .kk-fabric-title{
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* タイトル：小さめ */
#kk-clothbrand-child .kk-fabric-title{
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}
#kk-clothbrand-child .kk-fabric-title a{
  color: inherit;
  text-decoration: none;
}
#kk-clothbrand-child .kk-fabric-title a:hover{
  text-decoration: underline;
}
#kk-clothbrand-child .kk-fabric-title,
#kk-clothbrand-child .kk-fabric-title a{
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 説明：やや大きめ（3行で止める） */
#kk-clothbrand-child .kk-fabric-descwrap{
  border-top: 1px solid #eee;
  padding-top: 8px;
}
#kk-clothbrand-child .kk-fabric-desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 価格：やや大きめ */
#kk-clothbrand-child .kk-fabric-price{
  padding: 0 14px 14px;
}
#kk-clothbrand-child .kk-fabric-price p{
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: #111;
}

/* =========================================================
   本文画像（.kk-cb-img）中央寄せ
   ========================================================= */

#kk-clothbrand-child .kk-cb-img img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

/* =========================================================
   FAQ（details/summary）
   ※ 基本は kk-faq.css に任せる。マーカーだけ保険で消す。
   ========================================================= */

#kk-clothbrand-child .kk-faq-q::-webkit-details-marker{ display: none; }
#kk-clothbrand-child .kk-faq-q::marker{ content: ""; }

/* 画像を左に寄せて本文を回り込ませる */
.kk-cb-img--left{
  float: left;
  width: min(360px, 45%);
  margin: 0 18px 12px 0;  /* 右・下の余白 */
}

.kk-cb-img--left img{
  display: block;
  width: 100%;
  height: auto;
}

/* 回り込み終了（次のブロックから通常に戻す） */
.kk-cb-clear{
  clear: both;
}

/* スマホは回り込みを解除して縦積みに */
@media (max-width: 640px){
  .kk-cb-img--left{
    float: none;
    width: 100%;
    margin: 0 0 12px 0;
  }
}