/* ============================================================
   glossary.css — 用語集・格言集の、記事の中のリンク（[[用語]]）と、イメージ画像の見た目
   点線の下線 + 文字の色は本文のまま。押せることは、マウスを乗せると実線＋色で分かる。
   ============================================================ */
.article-body a.term-link,
a.term-link {
  color: inherit !important;
  text-decoration-line: underline !important;
  text-decoration-style: dotted !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent, currentColor) !important;
}
.article-body a.term-link:hover,
a.term-link:hover {
  color: var(--accent-strong, inherit) !important;
  text-decoration-style: solid !important;
}

/* 目次のリンクで飛んだとき、見出しが画面の上端にくっつかないように、少し余白をあける */
.article-body h2.wiki-section-heading{ scroll-margin-top: 72px; }

/* イメージ画像（記事の先頭の項目「画像」があるときだけ。16:9 の画像が前提） */
/* 個別ページ：見出しの下に、本文の幅いっぱいで大きく */
.term-hero{ margin:0 0 22px; }
.term-hero img{ display:block; width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; border-radius: var(--radius-md, 12px); background: var(--glass-border, #ddd); }
/* 一覧：画像がある行だけ、左にサムネイルを付けて、行の高さが画像の分だけ大きくなる。画像のない行は、今のまま */
.wiki-item.has-image{ display:flex; align-items:center; gap:18px; }
.wiki-item.has-image .wiki-item-body{ flex:1 1 0; min-width:0; }
.wiki-item-thumb{ flex:none; width:176px; aspect-ratio:16 / 9; border-radius: var(--radius-md, 10px); overflow:hidden; background: var(--glass-border, #ddd); }
.wiki-item-thumb img{ display:block; width:100%; height:100%; object-fit:cover; }
/* スマホ：サムネイルを行の上に、横いっぱいで出す */
@media (max-width: 640px){
  .wiki-item.has-image{ flex-wrap:wrap; gap:10px; }
  .wiki-item-thumb{ width:100%; }
}
