/* 発注機関・企業のページの「分野ごとの分析」（2026-11-14 候補。テンプレートは _xtab.html）。
   決まり: :hover は (hover: hover) の中だけ／暗い表示は prefers-color-scheme と data-scheme="dark" の両方／スマホの文字は 13px 以上。 */
.hx-x { --hx-heat: 13 148 136; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-scheme="light"])) .hx-x { --hx-heat: 34 165 150; } }
:root:where([data-scheme="dark"]) .hx-x { --hx-heat: 34 165 150; }

.hx-x__scope { margin: -4px 0 12px; font-size: 13px; color: var(--ink-2); }
.hx-x__scope b { font-family: var(--f-num, inherit); font-variant-numeric: tabular-nums; }

.hx-x__fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hx-x__f { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); }
.hx-x__fh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; }
.hx-x__fh a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hx-x__fn { font-size: 13px; font-weight: 400; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-x__fn b { font-size: 15px; color: var(--ink); }
.hx-x__fn small { margin-left: 6px; font-size: 13px; color: var(--ink-3); }
.hx-x__bar { display: block; height: 4px; margin: 6px 0 8px; border-radius: 2px; background: rgb(var(--hx-heat) / .12); overflow: hidden; }
.hx-x__bar i { display: block; height: 100%; background: rgb(var(--hx-heat)); }
.hx-x__f dl { margin: 0; display: grid; gap: 3px; }
.hx-x__f dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.45; }
.hx-x__f dt { color: var(--ink-3); }
.hx-x__f dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-x__f dd small { margin-left: 6px; font-size: 13px; color: var(--ink-3); }
.hx-x__tk { margin: 8px 0 2px; font-size: 13px; color: var(--ink-3); }
.hx-x__tk small { margin-left: 6px; font-size: 13px; }
.hx-x__gap { display: block; height: 8px; }
.hx-x--locked h2 { color: var(--ink-3); }
.hx-x__lock { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.hx-x__lock a { margin-left: 4px; color: var(--acc); font-weight: 700; white-space: nowrap; }
.hx-x__tops { margin: 0; padding: 0 0 0 1.4em; font-size: 13px; line-height: 1.5; }
.hx-x__tops li { display: list-item; }
.hx-x__tops li > a { color: var(--ink); overflow-wrap: anywhere; }
.hx-x__tops li > span { margin-left: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.hx-x__rest { margin-top: 10px; }
.hx-x__rest > summary { cursor: pointer; font-size: 14px; color: var(--ink-2); padding: 4px 0 8px; }
.hx-x__tbl { margin-top: 16px; }
.hx-x__tbl h3 { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.hx-x__tbl h3 small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.hx-x__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: 6px; }
.hx-x__scroll:focus-visible { outline: 2px solid rgb(var(--hx-heat)); outline-offset: 1px; }
.hx-x table { border-collapse: collapse; width: 100%; max-width: 860px; font-size: 13px; font-variant-numeric: tabular-nums; }
.hx-x th, .hx-x td { padding: 5px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.hx-x thead th { font-weight: 700; color: var(--ink-2); background: var(--sheet-2, var(--sheet)); }
.hx-x tbody th { text-align: left; font-weight: 400; color: var(--ink); position: sticky; left: 0; background: var(--sheet); max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.hx-x tbody tr:last-child > * { border-bottom: 0; }
.hx-x td { background: rgb(var(--hx-heat) / calc(var(--a, 0) * .38)); color: var(--ink); }
.hx-x td.is-zero { color: var(--ink-3); }
.hx-x .hx-x__sum { color: var(--ink-2); background: transparent; border-left: 1px solid var(--line); }
.hx-x__more { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.hx-x__note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

@media (hover: hover) {
  .hx-x__fh a:hover, .hx-x__tops li > a:hover { text-decoration-color: currentColor; }
}
@media (max-width: 760px) {
  .hx-x__f dl > div { grid-template-columns: 7em minmax(0, 1fr); }
  .hx-x__tops, .hx-x__f dl > div, .hx-x table { font-size: 13px; }
}
