/* =========================================================
   1.9.77: 教採ギルドのカスタマイザー「追加CSS」から取り込んだ記事用の装飾。
   両方の版（教採ギルド版・公務員採用版）に入るので、記事を別のサイトに貼っても同じ見た目になる。
   追加CSSと同じく、ほかのCSS（プラグインを含む）より後に読み込む（functions.php の noteleaf_article_extras_css）。
   - 取り込まなかったもの：東京都面接記事の装飾（.kg-tokyo-*、どの記事でも未使用）
   - .nl-card / .nl-hero は、テーマの記事カード・旧トップ見出しと名前が同じため、本文の中だけに効くようにした（:where で詳細度は追加CSSのときと同じ）
     （追加CSSのままだと、サイト中の記事カードに枠と余白が付いていた）
   ========================================================= */
/* FAQ */
.wp-block-heading#faq + p {
  margin-bottom: 27px;
}
.wp-block-details.kg-faq-c:first-of-type {
  margin-top: 24px;
}
.wp-block-details.kg-faq-c summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wp-block-details.kg-faq-c summary .kg-faq__q {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   kg-tabs : 校種別タブ（CSSのみ・JavaScript不要）
   Noteleaf テーマの変数（--nl-*）と角丸・余白に合わせています。
   追記先：assets/css/components.css の末尾
   - ラジオボタン + label で切り替え
   - タブは最大8つまで対応
   ========================================================== */

.kg-tabs {
  position: relative;
  margin: 28px 0;
}

/* ラジオボタンは見えなくするが、キーボード操作はできるように残す */
.kg-tabs > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* タブの見出し部分：kg-anchor-nav と同じ薄いグレーの帯 */
.kg-tabs__nav {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--nl-line, #e7e9e8);
  border-radius: 12px;
  background: var(--nl-soft, #f7f8f7);
}
.kg-tabs__nav::-webkit-scrollbar {
  display: none;
}

.kg-tabs__nav > label {
  flex: 1 1 0;
  min-width: max-content;
  min-height: 44px;
  padding: 10px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 9px;
  color: var(--nl-muted, #767b79);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.kg-tabs__nav > label:hover {
  color: var(--nl-ink, #232626);
  background: var(--nl-white, #fff);
}

/* 内容部分：初期状態はすべて非表示。枠は中の kg-box が持つので付けない */
.kg-tabs__panels > .kg-tabs__panel {
  display: none;
}

/* 選択中のタブ：theme の CTAボタンと同じ アクセント色の塗り・白文字 */
.kg-tabs > input:nth-of-type(1):checked ~ .kg-tabs__nav > label:nth-child(1),
.kg-tabs > input:nth-of-type(2):checked ~ .kg-tabs__nav > label:nth-child(2),
.kg-tabs > input:nth-of-type(3):checked ~ .kg-tabs__nav > label:nth-child(3),
.kg-tabs > input:nth-of-type(4):checked ~ .kg-tabs__nav > label:nth-child(4),
.kg-tabs > input:nth-of-type(5):checked ~ .kg-tabs__nav > label:nth-child(5),
.kg-tabs > input:nth-of-type(6):checked ~ .kg-tabs__nav > label:nth-child(6),
.kg-tabs > input:nth-of-type(7):checked ~ .kg-tabs__nav > label:nth-child(7),
.kg-tabs > input:nth-of-type(8):checked ~ .kg-tabs__nav > label:nth-child(8) {
  color: #fff;
  background: var(--nl-accent, #25866b);
}

/* 選択中のタブに対応する内容だけを表示 */
.kg-tabs > input:nth-of-type(1):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(1),
.kg-tabs > input:nth-of-type(2):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(2),
.kg-tabs > input:nth-of-type(3):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(3),
.kg-tabs > input:nth-of-type(4):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(4),
.kg-tabs > input:nth-of-type(5):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(5),
.kg-tabs > input:nth-of-type(6):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(6),
.kg-tabs > input:nth-of-type(7):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(7),
.kg-tabs > input:nth-of-type(8):checked ~ .kg-tabs__panels > .kg-tabs__panel:nth-child(8) {
  display: block;
}

/* キーボードでタブを選んだときの枠線 */
.kg-tabs > input:nth-of-type(1):focus-visible ~ .kg-tabs__nav > label:nth-child(1),
.kg-tabs > input:nth-of-type(2):focus-visible ~ .kg-tabs__nav > label:nth-child(2),
.kg-tabs > input:nth-of-type(3):focus-visible ~ .kg-tabs__nav > label:nth-child(3),
.kg-tabs > input:nth-of-type(4):focus-visible ~ .kg-tabs__nav > label:nth-child(4),
.kg-tabs > input:nth-of-type(5):focus-visible ~ .kg-tabs__nav > label:nth-child(5),
.kg-tabs > input:nth-of-type(6):focus-visible ~ .kg-tabs__nav > label:nth-child(6),
.kg-tabs > input:nth-of-type(7):focus-visible ~ .kg-tabs__nav > label:nth-child(7),
.kg-tabs > input:nth-of-type(8):focus-visible ~ .kg-tabs__nav > label:nth-child(8) {
  outline: 2px solid var(--nl-ink, #232626);
  outline-offset: 2px;
}

/* 内容の先頭・末尾の余白を整える（theme の h4 の上余白を打ち消す） */
.kg-tabs .kg-tabs__panel > :first-child {
  margin-top: 0;
}
.kg-tabs .kg-tabs__panel > :last-child {
  margin-bottom: 0;
}

/* パネル内の年度見出し：theme の h4 と同じ見た目（見出しタグにしないので目次に重複して出ない） */
.kg-tabs .kg-tabs__year {
  margin: 1.8em 0 0.8em;
  padding: 0 0 0 10px;
  border-left: 3px solid var(--nl-accent, #25866b);
  color: var(--nl-ink, #232626);
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.6;
}
.kg-tabs .kg-tabs__panel > .kg-tabs__year:first-child {
  margin-top: 0;
}

/* スマホ */
@media (max-width: 760px) {
  .kg-tabs__nav > label {
    padding: 10px 14px;
    font-size: 13px;
  }
}
/* ===== Noteleaf 追加: 倍率データページ共通（タブ・グラフ枠） ===== */
:is(.post_content,.editor-styles-wrapper) .wp-block-table :is(th,td).has-text-align-center{text-align:center}
:is(.post_content,.editor-styles-wrapper) .kg-chart{margin:12px 0 16px;padding:16px 12px;background:var(--nl-soft);border:1px solid var(--nl-line);border-radius:12px}
:is(.post_content,.editor-styles-wrapper) .kg-chart figcaption{text-align:center;font-weight:700;margin:0 0 8px}
:is(.post_content,.editor-styles-wrapper) .kg-chart svg{display:block;width:100%;height:auto}
:is(.post_content,.editor-styles-wrapper) .kg-tabs{position:relative;margin:14px 0 26px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
:is(.post_content,.editor-styles-wrapper) .kg-tab-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 8px}
:is(.post_content,.editor-styles-wrapper) .kg-tab-buttons label{display:inline-block;cursor:pointer;border:1px solid var(--nl-line);border-radius:8px;padding:9px 14px;color:var(--nl-ink);background:var(--nl-white,#fff);font-size:.88em;font-weight:700}
:is(.post_content,.editor-styles-wrapper) .kg-tab-buttons label:hover{border-color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tab-caption{margin:12px 0 0;font-weight:700;font-size:.9em}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>.kg-tab-panel{display:none}
/* タブの表示切り替え（input の並び順で判定。最大8タブ） */
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(1):checked)>.kg-tab-panel.kg-panel-0{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(2):checked)>.kg-tab-panel.kg-panel-1{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(3):checked)>.kg-tab-panel.kg-panel-2{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(4):checked)>.kg-tab-panel.kg-panel-3{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(5):checked)>.kg-tab-panel.kg-panel-4{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(6):checked)>.kg-tab-panel.kg-panel-5{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(7):checked)>.kg-tab-panel.kg-panel-6{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(8):checked)>.kg-tab-panel.kg-panel-7{display:block}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(1):checked)>.kg-tab-buttons>label:nth-of-type(1){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(2):checked)>.kg-tab-buttons>label:nth-of-type(2){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(3):checked)>.kg-tab-buttons>label:nth-of-type(3){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(4):checked)>.kg-tab-buttons>label:nth-of-type(4){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(5):checked)>.kg-tab-buttons>label:nth-of-type(5){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(6):checked)>.kg-tab-buttons>label:nth-of-type(6){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(7):checked)>.kg-tab-buttons>label:nth-of-type(7){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs:has(>input:nth-of-type(8):checked)>.kg-tab-buttons>label:nth-of-type(8){background:var(--nl-accent-soft);border-color:var(--nl-accent);color:var(--nl-accent)}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(1):focus-visible~.kg-tab-buttons>label:nth-of-type(1){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(2):focus-visible~.kg-tab-buttons>label:nth-of-type(2){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(3):focus-visible~.kg-tab-buttons>label:nth-of-type(3){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(4):focus-visible~.kg-tab-buttons>label:nth-of-type(4){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(5):focus-visible~.kg-tab-buttons>label:nth-of-type(5){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(6):focus-visible~.kg-tab-buttons>label:nth-of-type(6){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(7):focus-visible~.kg-tab-buttons>label:nth-of-type(7){outline:2px solid var(--nl-accent);outline-offset:2px}
:is(.post_content,.editor-styles-wrapper) .kg-tabs>input:nth-of-type(8):focus-visible~.kg-tab-buttons>label:nth-of-type(8){outline:2px solid var(--nl-accent);outline-offset:2px}
@media(max-width:600px){:is(.post_content,.editor-styles-wrapper) .kg-chart{padding:12px 5px}:is(.post_content,.editor-styles-wrapper) .kg-tab-buttons label{padding:8px 11px}}
/* =========================================================
   倍率記事用の追加CSS（Noteleaf テーマ用）
   色・線・角丸はテーマの変数（--nl-*）をそのまま使います。
   ========================================================= */

/* ---------- 倍率の表（noteleaf/table を グループ .kg-rate-table で囲む） ---------- */

/* 数字の列は右寄せ・桁ぞろえ */
.kg-rate-table .nl-data-table th:not(:first-child),
.kg-rate-table .nl-data-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kg-rate-table .nl-data-table td,
.kg-rate-table .nl-data-table th {
  vertical-align: middle;
}

/* 行の区別をつけやすく（1行おきに薄い背景） */
.kg-rate-table .nl-data-table--scroll tbody tr:nth-child(even) td {
  background: var(--nl-soft, #f7f8f7);
}

/* スマホの横スクロール時、1列目（自治体名・年）を固定 */
.kg-rate-table .nl-data-table--scroll th:first-child,
.kg-rate-table .nl-data-table--scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--nl-white, #fff);
  box-shadow: 1px 0 0 var(--nl-line, #e7e9e8);
  white-space: nowrap;
}
.kg-rate-table .nl-data-table--scroll thead th:first-child {
  background: var(--nl-soft, #f7f8f7);
}
.kg-rate-table .nl-data-table--scroll tbody tr:nth-child(even) td:first-child {
  background: var(--nl-soft, #f7f8f7);
}

/* 最新年の「列」を強調（自治体別の表：2列目が2026年） */
.kg-rate-table--col .nl-data-table th:nth-child(2) {
  background: var(--nl-accent, #25866b);
  color: #fff;
}
.kg-rate-table--col .nl-data-table td:nth-child(2) {
  background: var(--nl-accent-soft, #edf7f3) !important;
  color: var(--nl-accent, #25866b);
  font-weight: 700;
}

/* 最新年の「行」を強調（全国推移の表：1行目が2026年） */
.kg-rate-table--row .nl-data-table tbody tr:first-child td {
  background: var(--nl-accent-soft, #edf7f3) !important;
  color: var(--nl-accent, #25866b);
  font-weight: 700;
}

/* 倍率の列（最後の列）を太字に（全国推移・校種別の表） */
.kg-rate-table--rate .nl-data-table td:last-child {
  font-weight: 700;
}

/* ---------- 校種別の横棒グラフ ---------- */
.kg-bars {
  margin: 24px 0;
  padding: 18px 18px 14px;
  border: 1px solid var(--nl-line, #e7e9e8);
  border-radius: var(--nl-radius, 12px);
  background: var(--nl-white, #fff);
}
.kg-bars__title {
  margin: 0 0 12px !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--nl-ink, #232626);
}
.kg-bars__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kg-bars__list > li {
  display: grid;
  grid-template-columns: 7em 1fr 3.8em;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}
.kg-bars__list > li::before,
.kg-bars__list > li::marker {
  content: none;
}
.kg-bars__track {
  height: 12px;
  border-radius: 999px;
  background: var(--nl-soft, #f7f8f7);
  overflow: hidden;
}
.kg-bars__fill {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: 999px;
  background: #c9cfcc;
}
.kg-bars__val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kg-bars__list > li.is-current {
  color: var(--nl-accent, #25866b);
  font-weight: 700;
}
.kg-bars__list > li.is-current .kg-bars__fill {
  background: var(--nl-accent, #25866b);
}
@media (max-width: 480px) {
  .kg-bars { padding: 14px 14px 10px; }
  .kg-bars__list > li { grid-template-columns: 6.2em 1fr 3.6em; gap: 8px; font-size: 13px; }
}

/* ---------- 関連記事リンクと注記のあいだの余白 ---------- */
.kg-related-h + .kg-note-d {
  margin-top: 32px;
}
/* =========================================================
   教科別 倍率記事（bairitsu-<教科>）用の追加CSS
   Noteleaf のカラー変数をそのまま使用。style.css の末尾に追加してください。
   ジャンプリンク・関連記事・注釈ボックスはテーマの既存コンポーネント
   （kg-anchor-nav / kg-related-h / kg-box）を使うため、追加の指定は不要です。
   ========================================================= */

/* ---- 冒頭の数値カード ---- */
.kg-br-caption{font-size:13px;font-weight:750;color:var(--nl-muted);margin:26px 0 8px!important}
.wp-block-columns.kg-br-stats{gap:8px!important;flex-wrap:nowrap!important;margin:0 0 6px}
.kg-br-stats>.wp-block-column{flex:1 1 0!important;min-width:0;background:var(--nl-accent-soft);border-radius:var(--nl-radius);padding:13px 6px 11px;text-align:center}
.kg-br-stats>.wp-block-column:first-child{background:var(--nl-accent)}
.kg-br-stats>.wp-block-column:first-child p{color:#fff}
.kg-br-stats p{margin:0!important;line-height:1.3}
.kg-br-stats__label{font-size:13px;font-weight:750;color:var(--nl-muted)}
.kg-br-stats__num{font-size:27px;font-weight:800;color:var(--nl-accent);letter-spacing:-.03em;margin-top:3px!important}
.kg-br-stats__num span{font-size:14px;margin-left:1px}
.kg-br-stats__diff{font-size:11px;color:var(--nl-muted);margin-top:2px!important}

/* ---- 表の下などの小さな注記 ---- */
.post_content .kg-br-small{font-size:12px;color:var(--nl-muted);line-height:1.7;margin:8px 0 0}
.post_content .kg-br-legend{font-size:12px;color:var(--nl-muted);margin:0 0 14px}

/* ---- 表（共通） ---- */
.post_content .kg-br-table{margin:18px 0 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--nl-line);border-radius:var(--nl-radius)}
.post_content .kg-br-table table{min-width:0;width:100%;margin:0;border-collapse:separate;border-spacing:0;font-size:14px;font-variant-numeric:tabular-nums}
.post_content .kg-br-table th,.post_content .kg-br-table td{border:0;border-bottom:1px solid var(--nl-line);padding:7px 4px;line-height:1.45;white-space:nowrap;text-align:center}
.post_content .kg-br-table thead th{background:var(--nl-accent);color:#fff;font-size:12px;font-weight:750}
.post_content .kg-br-table tbody tr:last-child td{border-bottom:0}
.post_content .kg-br-table th:first-child,.post_content .kg-br-table td:first-child{text-align:left;padding-left:10px}
/* 志望者数で計算した倍率（丸囲み） */
.post_content .kg-br-table em,.post_content .kg-box em,.post_content .kg-br-legend em{font-style:normal;display:inline-block;border:1.5px solid currentColor;border-radius:99px;padding:0 .45em;line-height:1.35}

/* ---- 推移の表 ---- */
.kg-br-table--trend td{font-size:11px;color:var(--nl-muted)}
.kg-br-table--trend th,.kg-br-table--trend td{padding:7px 1px}
.kg-br-table--trend td:first-child{font-size:12px}
.kg-br-table--trend thead th{white-space:normal}
.kg-br-table--trend td strong{display:block;font-size:15px;color:var(--nl-ink);font-weight:800}
.kg-br-table--trend td:first-child{font-weight:750;color:var(--nl-ink);font-size:13px}
.kg-br-table--trend tbody tr:first-child td{background:var(--nl-accent-soft)}
.kg-br-table--trend td:nth-child(2) strong{color:var(--nl-accent)}

/* ---- 自治体別の表 ---- */
.kg-br-table--pref th:first-child,.kg-br-table--pref td:first-child{position:sticky;left:0;z-index:1;background:var(--nl-surface);box-shadow:1px 0 0 var(--nl-line)}
.kg-br-table--pref thead th:first-child{background:var(--nl-accent)}
.kg-br-table--pref td:nth-child(2){background:var(--nl-accent-soft);font-weight:750;color:var(--nl-ink)}
.kg-br-table--pref td:nth-child(n+3){color:var(--nl-muted)}
.kg-br-table--pref td a{color:var(--nl-accent);font-weight:750;text-decoration:none}
/* 地域の区切り行 */
.kg-br-table--pref td[colspan]{position:static;background:var(--nl-soft)!important;box-shadow:none;padding:5px 10px;font-size:12px;color:var(--nl-muted);text-align:left}
.kg-br-table--pref td[colspan] strong{position:sticky;left:10px;font-weight:750}
/* 中高共通への誘導 */
.kg-br-table--pref td a[href="#chuko"]{display:inline-block;font-size:11px;color:var(--nl-accent);border:1px dashed var(--nl-accent);border-radius:5px;padding:0 .4em;line-height:1.7}
.kg-br-table--pref td[colspan="5"]{position:static;background:var(--nl-surface)!important;box-shadow:none;text-align:center}
.kg-br-table--pref td[colspan="5"] a[href="#chuko"]{font-size:12px;padding:1px 1em}

/* ---- 注釈ボックス（kg-box）内のリスト ---- */
.post_content .kg-box--note{color:var(--nl-muted);font-size:13px}
.post_content .kg-box--note ul{margin:10px 0 0;padding-left:1.2em}
.post_content .kg-box--note li{margin-bottom:.35em}
/* 2桁の倍率が並ぶ教科（保健体育など）でも幅が収まるように */
.post_content .kg-br-table--pref th,.post_content .kg-br-table--pref td{padding-left:3px;padding-right:3px}
.post_content .kg-br-table--pref th:first-child,.post_content .kg-br-table--pref td:first-child{padding-left:10px;padding-right:6px}
/* 科目ごとに募集している自治体の合計を示す△ */
.post_content .kg-tri{font-size:8px;vertical-align:.45em;margin-right:-.1em;color:var(--kg-accent);font-weight:700;letter-spacing:-.04em}
.post_content .kg-box .kg-tri,.post_content .kg-br-legend .kg-tri{font-size:11px;vertical-align:.15em}
/* 区分が5つ以上ある教科（社会）の推移表 */
.kg-br-table--trend-wide td{font-size:9px}
.kg-br-table--trend-wide th,.kg-br-table--trend-wide td{padding-left:0;padding-right:0}
.kg-br-table--trend-wide td strong{font-size:14px}
.kg-br-table--trend-wide thead th{font-size:10.5px}
.kg-br-table--trend-wide td:first-child{font-size:11px}
/* 区分が5つある教科（社会）の数値カード */
.kg-br-stats--narrow{gap:5px!important}
.kg-br-stats--narrow>.wp-block-column{padding:10px 2px 8px}
.kg-br-stats--narrow .kg-br-stats__label{font-size:11px}
.kg-br-stats--narrow .kg-br-stats__num{font-size:20px}
.kg-br-stats--narrow .kg-br-stats__num span{font-size:11px}
.kg-br-stats--narrow .kg-br-stats__diff{font-size:10px}
/* 「高等学校（地理歴史）」など見出しが長い区分の表（社会）*/
.kg-br-table--pref td:nth-child(2){min-width:0}
.post_content .kg-br-table--pref th:first-child,.post_content .kg-br-table--pref td:first-child{padding-right:4px}
/* 
/* =========================================
   汎用ブロック装飾（テーマのCSSに追記）
   About以外のページでも「追加CSSクラス」で使い回せます。
   色はテーマの変数を使い、未定義なら共通CSS（--kg-*）→固定値の順に使います。
========================================= */

:root {
  --nlx-ink: var(--nl-ink, var(--kg-text, #333735));
  --nlx-soft: var(--nl-soft, var(--kg-primary-light, #EAF3F0));
  --nlx-line: var(--nl-line, var(--kg-border, #DCE4E1));
  --nlx-accent: var(--nl-accent, var(--kg-primary-dark, #426B60));
  --nlx-muted: var(--kg-text-light, #6F7673);
}

/* 英字ラベル（見出しの上の小さな文字） */
.nl-label {
  margin-bottom: .3em !important;
  color: var(--nlx-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
}

/* 注記・補足の小さな文字 */
.nl-note {
  color: var(--nlx-muted);
  font-size: .8rem;
}

/* 導入の強調段落 */
.nl-lead {
  color: var(--nlx-accent);
  font-weight: 700;
}

/* カード（グループブロックに付ける） */
:where(.post_content,.editor-styles-wrapper) .nl-card {
  box-sizing: border-box;
  height: 100%;
  padding: 1.25em 1.25em 1em;
  background: #fff;
  border: 1px solid var(--nlx-line);
  border-radius: 12px;
}

:where(.post_content,.editor-styles-wrapper) .nl-card > :last-child {
  margin-bottom: 0;
}

/* カラム内のカードは高さをそろえ、下の余白を付けない */
:where(.post_content,.editor-styles-wrapper) .wp-block-column > .nl-card {
  margin-bottom: 0;
}

/* 薄い背景の囲み（グループブロックに付ける） */
.nl-box {
  box-sizing: border-box;
  padding: 1.25em 1.4em;
  background: var(--nlx-soft);
  border-radius: 12px;
}

.nl-box > :last-child {
  margin-bottom: 0;
}

/* 冒頭のプロフィール帯 */
:where(.post_content,.editor-styles-wrapper) .nl-hero {
  margin-bottom: 2.5em;
  padding: 1.75em 1.5em;
  background: var(--nlx-soft);
  border-radius: 16px;
}

.nl-hero-title {
  margin-bottom: .2em !important;
  font-size: 1.5rem;
  line-height: 1.45;
}

.nl-hero-en {
  color: var(--nlx-muted);
  font-size: .8rem;
  letter-spacing: .1em;
}

.nl-profile-card {
  text-align: center;
}

.nl-avatar img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 50%;
}

/* タグ風のリスト（リストブロックに付ける） */
.nl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.nl-chips li {
  margin: 0 !important;
  padding: .3em .9em;
  font-size: .8rem;
  background: #fff;
  border: 1px solid var(--nlx-line);
  border-radius: 999px;
}

.nl-chips li::before,
.nl-chips li::marker {
  display: none;
  content: none;
}

/* 数字カード */
.nl-stat {
  text-align: center;
}

.nl-stat-label {
  margin-bottom: .2em !important;
  color: var(--nlx-muted);
  font-size: .8rem;
  font-weight: 700;
}

.nl-stat-value {
  margin-bottom: .1em !important;
  color: var(--nlx-accent);
  font-weight: 700;
}

.nl-stat-value strong {
  font-size: 2rem;
  line-height: 1.1;
}

/* 経歴などの縦に並ぶカード */
.nl-step {
  margin-bottom: 1em;
  border-left: 4px solid var(--nlx-accent);
}

/* 実績画像・スクリーンショット */
.nl-media-image img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
}

.nl-shot img,
.nl-shots img {
  border: 1px solid var(--nlx-line);
  border-radius: 8px;
}

/* 最後の案内 */
.nl-cta {
  margin-top: 3em;
  padding: 2em 1.5em;
  background: var(--nlx-soft);
  border-radius: 16px;
}

@media (max-width: 600px) {
  :where(.post_content,.editor-styles-wrapper) .nl-hero {
    padding: 1.5em 1.1em;
  }

  .nl-hero-title {
    font-size: 1.3rem;
  }

  .nl-cta {
    padding: 1.6em 1.1em;
  }
}
