/* Self-Defense Forces only: no changes to civil-service salary tables. */
.ki-jieikan { color: var(--ki-text, #182433); background: #fff; margin: 24px 0; }
.ki-jieikan [hidden] { display: none; }
.ki-jieikan .ki-jieikan__head { border-bottom: 2px solid var(--ki-navy, #17385c); padding-bottom: 16px; margin-bottom: 20px; }
.ki-jieikan .ki-jieikan__head h2 { margin: 0 0 8px; padding: 0; border: 0; background: none; color: var(--ki-navy, #17385c); font-size: 26px; line-height: 1.5; }
.ki-jieikan .ki-jieikan__head h2::before,
.ki-jieikan .ki-jieikan__head h2::after,
.ki-jieikan h3::before,
.ki-jieikan h3::after { content: none; }
.ki-jieikan p { margin: 12px 0; line-height: 1.85; }
.ki-jieikan .ki-jieikan__version { margin: 0; font-size: 15px; color: #475569; }
.ki-jieikan .ki-jieikan__lead { font-size: 17px; }
.ki-jieikan .ki-jieikan__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.ki-jieikan .ki-jieikan__filters[hidden] { display: none; }
.ki-jieikan .ki-jieikan__filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #182433; font: inherit; font-size: 15px; line-height: 1.4; box-shadow: none; cursor: pointer; }
.ki-jieikan .ki-jieikan__filters button[aria-pressed="true"] { background: #edf2f7; border-color: #17385c; box-shadow: inset 0 -2px #17385c; font-weight: 700; }
.ki-jieikan button:focus-visible, .ki-jieikan__scroll:focus-visible, .ki-jieikan input:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.ki-jieikan__dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.ki-jieikan__dot--1 { background: #2563eb; }
.ki-jieikan__dot--2 { background: #dc2626; }
.ki-jieikan__dot--3 { background: #15803d; }
.ki-jieikan__dot--4 { background: #a16207; }
.ki-jieikan__dot--5 { background: #7c3aed; }
.ki-jieikan__dot--6 { background: #0e7490; }
.ki-jieikan__dot--7 { background: #be185d; }
.ki-jieikan__dot--8 { background: #334155; }
.ki-jieikan .ki-jieikan__selection { color: #475569; font-size: 14px; }
.ki-jieikan h3 { margin: 28px 0 8px; padding: 0; border: 0; background: none; color: var(--ki-navy, #17385c); font-size: 22px; line-height: 1.5; }
.ki-jieikan__chart { position: relative; height: 380px; margin: 16px 0 24px; }
.ki-jieikan__compare { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.ki-jieikan__table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ki-jieikan__table-head span, .ki-jieikan .ki-jieikan__hint { font-size: 14px; color: #475569; }
.ki-jieikan__scroll { overflow: auto; border: 1px solid #d8dde6; max-width: 100%; overscroll-behavior-x: contain; scrollbar-color: #94a3b8 #f1f5f9; }
.ki-jieikan .ki-jieikan__table { border-collapse: separate; border-spacing: 0; table-layout: auto; width: 100%; min-width: max-content; margin: 0; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ki-jieikan .ki-jieikan__table th, .ki-jieikan .ki-jieikan__table td { padding: 12px 16px; min-width: 100px; white-space: nowrap; border: 0; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; background: #fff; color: #182433; text-align: right; }
.ki-jieikan .ki-jieikan__table thead th { position: sticky; top: 0; z-index: 2; background: var(--ki-navy, #17385c); color: #fff; font-weight: 700; text-align: center; }
.ki-jieikan .ki-jieikan__table tr > :first-child { position: sticky; left: 0; z-index: 1; min-width: 72px; background: #f4f6f8; text-align: center; font-weight: 700; }
.ki-jieikan .ki-jieikan__table thead th:first-child { z-index: 3; background: var(--ki-navy, #17385c); }
.ki-jieikan .ki-jieikan__table tbody tr:hover > * { background: #f0f5fa; }
.ki-jieikan .ki-jieikan__table small { display: block; color: #475569; font-size: 12px; }
.ki-jieikan .ki-jieikan__table small[hidden] { display: none; }
.ki-jieikan .ki-jieikan__note, .ki-jieikan__source { color: #475569; font-size: 14px; line-height: 1.8; }
.ki-jieikan__source { margin-top: 24px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.ki-jieikan__source a { color: var(--ki-navy, #17385c); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .ki-jieikan .ki-jieikan__head h2 { font-size: 22px; }
  .ki-jieikan h3 { font-size: 20px; }
  .ki-jieikan__chart { height: 320px; }
  .ki-jieikan .ki-jieikan__filters button { padding: 8px 12px; }
  .ki-jieikan .ki-jieikan__table th, .ki-jieikan .ki-jieikan__table td { padding: 10px 12px; min-width: 94px; }
}
