/* =========================
   タグ
========================= */

.tags a {
  display: inline-block;
  padding: 5px 12px;
  margin: 4px 6px 6px 0;
  background-color: #f3f4f5;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.88rem;
  border: 1px solid #e6e6e6;
  transition: all 0.18s ease;
}

.tags a:hover {
  background: var(--color-bland);
  color: white;
  border-color: var(--color-bland);
  transform: translateY(-2px);
}


/* =========================
   カテゴリリンク
========================= */

.category-link {
  display: inline-block;
  padding: 7px 14px;
  margin: 4px 8px 6px 0;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-bland);
  font-weight: 500;
  border: 1.8px solid var(--color-bland);
  transition: all 0.18s ease;
}

.category-link:hover {
  background: var(--color-bland);
  color: white;
  transform: translateY(-2px);
}


/* =========================
   検索サジェスト
========================= */

.search-suggestions {
  margin-top: 2em;
  padding: 1.5em;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}


/* =========================
   見出し
========================= */

.search-suggestions h3 {
  color: var(--color-bland);
  margin-bottom: 0.9em;
  font-size: 1.15rem;
  border-left: 4px solid var(--color-bland);
  padding-left: 0.7em;
}

.search-suggestions h4 {
  margin: 1.3em 0 0.5em;
  font-size: 0.98rem;
  color: #444;
}

/*** =========================
   記事リファレンス（洗練版）
========================= */
.article-card-reference {
  display: flex;
  gap: 14px;

  margin: 28px 0;
  padding: 14px;

  background: #fff; 
  border: 1px solid #f0f0f0;
  border-radius: 14px;

  text-decoration: none;
  color: inherit;

  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* ホバー*/
.article-card-reference:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #e6e6e6;
}

/* サムネ */
.article-card-image-reference {
  width: 104px;
  flex-shrink: 0;
}

.card-image-reference {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* テキスト */
.article-card-content-reference {
  flex: 1;
  min-width: 0;
}

/* タイトル */
.article-card-title-reference {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 説明 */
.article-card-intro-reference {
  font-size: 12.5px;
  color: #666;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* スマホ */
@media (max-width: 600px) {
  .article-card-reference {
    padding: 12px;
    gap: 12px;
  }

  .article-card-image-reference {
    width: 88px;
  }

  .article-card-title-reference {
    font-size: 13px;
  }

  .article-card-intro-reference {
    font-size: 12px;
  }
}