@charset "UTF-8";

.hub-link {
  display: block;
  text-decoration: none;
  margin: 32px 0 0;
  cursor: pointer;
}

/* 上部バッジ */
.hub-link-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
}

/* 本体 */
.hub-link-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* ← 高さを揃える */
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

/* 左：テキストブロック */
.hub-link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* タイトル */
.hub-link-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* 説明文 */
.hub-link-text {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

/* CTAボタン */
.hub-link-btn {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* 右：画像（高さ＝左ブロック） */
.hub-link-thumb {
  width: 110px;              /* ← サイズは固定 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-link-thumb picture,
.hub-link-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;       /* ← 全体が見える */
}

/* hover */
.hub-link:hover .hub-link-inner {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

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

/* mobile */
@media (max-width: 640px) {
  .hub-link-inner {
    flex-direction: row;
    align-items: center;
  }

  .hub-link-thumb {
    width: 88px;
  }
}
