@charset "UTF-8";

/* ブログカード全体 */
.ogp-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5em 0;
  background-color: #f7fafc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ogp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
background-color: #FFF0F5;
}

/* リンクエリア */
.ogp-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
  align-items: center; /* 縦方向の中央揃え */
}

.ogp-card-link:hover {
  text-decoration: none;
}

/* 画像ラッパー（枠組み） */
.ogp-card-image-wrapper {
  width: 30%;
  max-width: 200px;
  min-width: 120px;
  background-color: #f7fafc; /* 画像余白の背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch; /* カード全体の高さに合わせる */
}

/* 画像本体 */
.ogp-card-image {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

/* テキストコンテンツエリア */
.ogp-card-content {
  padding: 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ogp-card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: #1a202c;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ogp-card-description {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ogp-card-site {
  font-size: 0.75rem;
  color: #718096;
}

/* スマホ表示（画面幅 480px 以下） */
@media screen and (max-width: 480px) {

  .ogp-card-image {
    max-height: 70px;
  }
}
