/* --- ブログカード全体 --- */
.simpleblogcard_wrap {
  position: relative; /* 「併せて読みたい」ラベルの位置の基準にする */
  background-color: #ffffff;
  border-radius: 12px; /* 角を丸くする */
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 影を付けて立体感を出す */
  transition: all 0.3s ease; /* ホバー時のアニメーション */
  overflow: hidden; /* はみ出した要素を隠す */
  margin: 2em 0; /* カードの上下に余白を設ける */
}

/* --- ホバーエフェクト --- */
.simpleblogcard_wrap:hover {
  transform: translateY(-5px); /* 少し浮き上がる */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* 影を濃くする */
}

/* --- カードのリンクエリア --- */
.simpleblogcard_wrap > a {
  display: flex; /* Flexboxレイアウトに変更 */
  align-items: stretch; /* 子要素の高さを揃える */
  padding: 20px;
  text-decoration: none;
}

/* --- 「併せて読みたい」ラベル --- */
.simpleblogcard_wrap::before {
  content: '併せて読みたい';
  position: absolute;
  top: 0;
  right: 0;
  background-color: #334155; /* 落ち着いた紺色 */
  color: #ffffff;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: bold;
  border-bottom-left-radius: 8px; /* ラベルの左下を丸くする */
  z-index: 2; /* 他の要素より手前に表示 */
}

/* --- 画像エリア --- */
[class^="simpleblogcard_img_block"] {
  flex-shrink: 0; /* 画像が縮まないようにする */
  width: 120px;
  height: auto; /* 高さを自動に */
  margin: 0 20px 0 0 !important;
  align-self: center; /* 上下中央に配置 */
}

/* --- 画像自体 --- */
[class^="simpleblogcard_img_block"] img {
  width: 100%;
  height: 120px; /* 高さを固定 */
  object-fit: cover; /* 画像の比率を保ったままトリミング */
  border-radius: 8px; /* 画像の角を丸くする */
}

/* --- テキスト全体のコンテナ --- */
.simpleblogcard_inner {
  display: flex;
  flex-direction: column;
  justify-content: center; /* テキストを垂直方向の中央に配置 */
  flex: 1; /* 残りのスペースをすべて使う */
  min-width: 0; /* Flexboxのはみ出し防止 */
}

/* --- サイトURLなどを含む枠線 --- */
[class^="simpleblogcard_border"] {
  border: none !important; /* 元の枠線を消す */
  padding: 0 !important;
  color: #64748B; /* サイトURLの色 */
  font-size: 12px;
  font-weight: 500;
}

/* --- タイトル --- */
[class^="simpleblogcard_title"] {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  margin: 6px 0 8px 0;
  /* タイトルが長すぎる場合に2行で省略 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 説明文 --- */
[class^="simpleblogcard_description"] {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  /* 説明文が長すぎる場合に2行で省略 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- プラグインのclear: bothを無効化 --- */
.simpleblogcard_wrap > a > div[style="clear: both;"] {
  display: none;
}