/* 用語集。style.css と flow.css の上に重ねる */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#find { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 8px; margin: 0 0 10px; }
.gsearch { display: flex; align-items: center; gap: 12px; }
.gsearch input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 14px; color: var(--ink); }
.gsearch input:focus-visible { outline: 3px solid #2563eb; outline-offset: 1px; }
.gcount { font-family: var(--latin); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.gcats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gcats button { appearance: none; font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); border-radius: 999px; padding: 5px 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; }
.gcats button small { font-family: var(--latin); font-size: 11px; color: var(--muted); }
.gcats button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gcats button[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.gcats button:focus-visible, .gidx a:focus-visible, .gl a:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.gidx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.gidx a, .gidx span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 4px 6px; }
.gidx a { background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gidx a:hover { border-color: #94a3b8; }
.gidx span { color: #cbd5e1; border: 1px solid transparent; }
.gh { margin: 22px 0 10px; font-size: 18px; scroll-margin-top: 170px; }
.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gl { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gl.ai { background: #faf8ff; border-color: #ddd6fe; }
.glh { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.glh h3 { margin: 0; font-size: 15px; }
.glh .en { font-family: var(--latin); font-size: 11px; color: var(--muted); }
.gcat { margin-left: auto; font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: var(--line2); color: var(--ink2); }
.gcat.c-AI { background: #ede9fe; color: #5b21b6; }
.gcat.c-守り { background: #fee2e2; color: #991b1b; }
.gcat.c-作り方 { background: #dcfce7; color: #166534; }
.gcat.c-基礎 { background: #dbeafe; color: #1e40af; }
.gl p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.gl a { margin-top: auto; font-size: 12px; color: #1d4ed8; }
.gnone { font-size: 14px; color: var(--muted); }
@media (max-width: 1100px) { .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ggrid { grid-template-columns: 1fr; }
  #find { position: static; padding-top: 0; }
  .gh { scroll-margin-top: 12px; }
  .gidx a, .gidx span { min-width: 26px; padding: 3px 4px; font-size: 12px; }
}
