/* Hintasu Links Collection front style */
/* ベースは白いページ上に、カード型レイアウトを並べるシンプルなグリッド */
/* wadopure.com のカードの雰囲気に近い、枠＋影付きのカード */

.sg-grid{
  display:grid;
  gap:24px;
  grid-template-columns:1fr;
  margin:0;
  padding:0;
}

/* 画面幅に応じて 2,3,4 カラムに自動 */
@media(min-width:600px){
  .sg-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(min-width:1100px){
  .sg-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(min-width:1400px){
  .sg-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}

/* カード本体：白背景＋薄い枠＋わずかな角丸＋ほのかな影 */
.sg-card{
  background:#ffffff;
  border-radius:16px;
  border:1px solid #e5e7eb;
  box-shadow:0 8px 20px rgba(15,23,42,0.04);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform 0.18s ease, box-shadow 0.18s ease;
}

/* ホバー時に少しだけ浮かせる */
.sg-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(15,23,42,0.10);
}

/* サムネイルは3:4固定比率（上部フル幅） */
.sg-thumb-link,
.sg-thumb{
  position:relative;
  display:block;
  width:100%;
}

.sg-thumb{
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  padding-top:133.3333%; /* 3:4 ratio (height/width = 4/3 ≒133.33%) */
}

/* テキスト部分はカード内で余白を揃えるイメージ（wadopure 風） */
.sg-title{
  font-size:16px;
  font-weight:600;
  margin:16px 16px 6px 16px;
}

.sg-title-link{
  text-decoration:none;
  color:inherit;
}

.sg-title-link:hover{
  text-decoration:underline;
}

.sg-cmt{
  margin:6px 16px 16px 16px;
  font-size:13px;
  line-height:1.6;
  color:#111827;
}

/* ベースカラーエリア */
.sg-colors{
  margin:0 16px 10px 16px;
}

.sg-colors-label{
  font-size:11px;
  font-weight:700;
  margin-bottom:4px;
  color:#4b5563;
}

.sg-colors-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

/* カラーはクリックでコピー可能なピル型チップ */
.sg-color-chip{
  border:none;
  border-radius:9999px;
  padding:4px 10px;
  font-size:11px;
  line-height:1.4;
  color:#ffffff; /* 実際の文字色は JS が明度を見て補正 */
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(0,0,0,0.08);
  background:#111827;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.sg-color-chip:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}

/* タグ */
.sg-tags{
  margin:0 16px 16px 16px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.sg-tag{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border-radius:9999px;
  background:#f3f4f6;
  font-size:11px;
  color:#374151;
}

/* 全体背景はテーマ側（ブランクテーマ）に任せるため body には触らない */


/* Read more button for one-line comment */
.sg-readmore{
  display:inline-block;
  margin-top:4px;
  font-size:12px;
  border:none;
  background:none;
  padding:0;
  color:#2563eb;
  cursor:pointer;
}
.sg-readmore:hover,
.sg-readmore:focus{
  text-decoration:underline;
}

/* 追加: 下部カードの段階的表示用 */
.sg-card-hidden{
  display:none;
}

.sg-cmt{
  margin: 6px 16px 2px 16px;
	color: #000 !important;
}

.sg-readmore{
  margin-bottom: 10px;
}

.sg-colors{
  margin: 0 16px 15px 16px;
}

.sg-tag{
  font-size: 8px;
}

.hl-fm-button{
  position: fixed;
  right: 20px !important;
  padding: 20px !important;
}

.hl-fm-icon{
  width: 30px !important;
}

.hl-fm-label{
  font-size: 7px !important;
}


/* レイジーロード（LOAD MORE）ボタン用 */
.hl-loadmore-btn{
  display: block;
  margin: 20px auto 30px;
  padding: 10px 26px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #ccc;
  cursor: pointer;
}
