/*
  英単語ページ（/words/・/words/<id>/）のスタイル。/legal/style.css の上に重ねる。
  ページ本体は tools/build_word_pages.py の生成物（gitignore）で、このファイルだけ追跡している。
  色は style.css のトークンだけを使う（新しい色を足すと contrast.test.ts の外に出るため）。
*/

.crumbs { margin: 0 2px 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.word-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1;
  margin: 4px auto 18px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--app-bg);
}

.word h1 {
  margin: 0;
  font-family: ui-rounded, "Arial Rounded MT Bold", -apple-system, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.word .word-ja { margin: 4px 0 8px; font-size: 20px; font-weight: 700; text-align: center; }

.word .word-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.word-pos {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--app-bg);
  font-weight: 700;
}

.word-play {
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.word-play:hover { border-color: var(--blue); color: var(--blue); }

.word-examples { list-style: none; padding: 0 !important; }
.word-examples li { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--app-bg); }
.word-sent-ja { color: var(--muted); font-size: 14px; }

.word-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.word-chips li { margin: 0 !important; }
.word-chips a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink) !important;
  font-size: 14px;
  text-decoration: none;
}
.word-chips a:hover { border-color: var(--blue); }
.word-chips a span { font-weight: 700; }

.word-cta {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
}
.word-cta p { margin: 6px 0; font-size: 14px; }
.word-cta .word-cta-lead { font-size: 16px; font-weight: 800; }
.word-cta-btn {
  display: block;
  margin-top: 12px;
  min-height: 50px;
  padding: 12px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  /* 白×--blue は 3.8:1。WCAG の大テキスト（太字 18.66px 以上＝3:1）に入れるため 19px */
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
