/* Related Posts Block - style.css
   PC: 2列グリッド / モバイル: 1列 （添付画像風デザイン）
*/

.related-posts-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* PC */
@media (min-width: 900px) {
  .related-posts-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

/* 各カード */
.related-post-item {
  display: flex;
  align-items: center; /* ← ここを flex-start から center に変更 */
  gap: 16px;
  border-bottom: 1px dashed #666666;
   padding: 0px 0 16px; /* 上だけ5px少なく（16→11） */
  box-sizing: border-box;
}

/* サムネイル */
.related-post-item .thumb {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
}

.related-post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* テキスト */
.related-post-item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-post-item .title {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.related-post-item .title a {
  color: #111;
  text-decoration: none;
}

.related-post-item .title a:hover {
  text-decoration: underline;
}

/* 読むリンク */
.related-post-item .readmore {
  margin-top: 6px;
  font-size: 12px !important;
  color: #a55ca5;
  font-weight: 700;
  text-decoration: none;
}

.related-post-item .readmore:hover {
  color: #8e4b8e;
  text-decoration: underline;
}

/* モバイルでの見た目微調整（添付に近づける） */
@media (max-width: 899px) {
  .related-post-item {
 padding: 0px 0 16px; /* 上だけ5px少なく（16→11） */
  }
  .related-post-item .thumb {
    width: 84px;
    height: 84px;
  }
  .related-post-item .title {
    font-size: 1.05rem;
  }
}
