/* デジタル英語辞典 — 英語の見出しは Andika（子ども向けの読みやすい欧文）、日本語はクレー */
:root { --font-en: "Andika", "Klee One", "Verdana", sans-serif; }
.hit-head .word, .cand .word, .en-word { font-family: var(--font-en); letter-spacing: 0.01em; }
#q { font-family: var(--font-en), var(--font); }

/* テーマからさがす（最初の画面） */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.cats button {
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 14px; font-size: 0.9rem;
  background: var(--white); color: var(--ink);
}
.cats button:hover { border-color: var(--ai); color: var(--ai); }
.search-page.has-query .cats { display: none; }

/* 音を聞くボタン */
.speak {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--ai); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; color: var(--ai); background: var(--white);
  vertical-align: middle; margin-left: 10px;
}
.speak:hover, .speak.playing { background: var(--ai); color: var(--white); }
.speak .ic { font-size: 1rem; line-height: 1; }
.speak.small { padding: 2px 9px; font-size: 0.82rem; margin-left: 8px; }

/* 見出しの行 */
.hit-head .word { font-size: 2rem; }
.hit-head .kana { font-size: 1rem; color: var(--ink-soft); }
.hit-head .cat { font-size: 0.8rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; }
.hit .ja { font-size: 1.15rem; line-height: 1.9; margin-top: 8px; }
.hit .ex { margin-top: 10px; padding: 10px 14px; background: var(--paper); border-left: 3px solid var(--ai); }
.hit .ex .ex-en { font-family: var(--font-en); font-size: 1.1rem; line-height: 1.7; }
.hit .ex .ex-ja { font-size: 0.95rem; color: #3a4049; line-height: 1.8; margin-top: 2px; }

/* 候補の行 */
.cand .word { font-size: 1.2rem; }
.cand .kana { font-size: 0.85rem; color: var(--ink-soft); }
.cand .snip { color: var(--ink); }

@media (max-width: 600px) {
  .hit-head .word { font-size: 1.7rem; }
  .cats { gap: 6px; margin-top: 20px; }
  .cats button { font-size: 0.85rem; padding: 4px 11px; }
}
