/* INPASS 倍率データベース（倍率インサイト）プロトタイプ
   ・色と部品は参考書DB（assets/books.css）・院試DB（db.css）をそのまま使う
   ・このファイルは倍率DBだけの部品（irt-）。主色 --m／差し色 --a／罫線 --l／淡い背景 --bg は books.css の値を使う */

.irt { --up: #d63a2c; --down: #17a08a;
  --c-all: #12324f; --c-in: #2b8fd9; --c-dom: #0f9d8a; --c-for: #e07b00;
  --q1: #2b8fd9; --q2: #17a08a; --q3: #7d8a97; --q4: #d63a2c; }
.irt .num, .irt td.n, .irt th.n { font-variant-numeric: tabular-nums; }
.irt .up { color: var(--up); font-weight: 800; }
.irt .dn { color: var(--down); font-weight: 800; }
.irt .muted { color: var(--s); }

/* ---- 冒頭：上の帯（タイトル・言語）＋淡い本体（フィルター・数値・ポイント） ---- */
.irt-hero { border: 1px solid var(--l); border-radius: 14px; overflow: hidden; margin: 0 0 1.4em; background: #fff; box-shadow: 0 4px 18px rgba(18, 50, 79, .08); }
.irt-hero-top { position: relative; color: #fff; padding: 18px 22px 16px;
  background: radial-gradient(circle at 92% 0%, rgba(74, 120, 240, .45), transparent 45%), linear-gradient(135deg, #0d2747, #123a66 60%, #0f4d45); }
.irt-hero-eyebrow { display: inline-block; font-size: .64em; font-weight: 700; letter-spacing: .24em; padding: .2em .9em; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; margin: 0 0 .5em !important; }
.irt-hero-title { font-size: 1.45em; font-weight: 900; line-height: 1.4; margin: 0 0 .2em !important; }
.irt-hero-lead { font-size: .86em; opacity: .9; margin: 0 !important; line-height: 1.7; }
/* 言語の切り替え */
.irt-langs { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 4px 3px 8px; font-size: .74em; }
.irt-langs > span { margin-right: 2px; }
.irt-langs a { color: #fff !important; font-weight: 700; padding: .15em .65em; border-radius: 999px; white-space: nowrap; }
.irt-langs a.is-on { background: #fff; color: var(--m) !important; }
.ib-menu-hero .irt-langs { top: 14px; left: 16px; right: auto; z-index: 3; }
@media (max-width: 760px) {
  .irt-langs { position: static; display: inline-flex; margin: 0 0 .7em; }
  .irt-hero-top .irt-hero-eyebrow { display: none; }
  .ib-menu-hero .irt-langs { position: relative; left: 0; top: 0; }
}
.irt-hero-body { padding: 16px 20px 18px; background: var(--bg); }

/* フィルター（年度・課程・誰の数字を見る？） */
.irt-filters { display: flex; flex-wrap: wrap; gap: .6em 1.4em; align-items: center; background: #fff; border: 1px solid var(--l); border-radius: 10px; padding: .6em .9em; margin: 0 0 .4em; }
.irt-f { display: flex; align-items: center; gap: .5em; font-size: .82em; font-weight: 800; color: var(--m); flex-wrap: wrap; }
.irt-f select { font: inherit; font-size: 1em; font-weight: 700; color: var(--m); border: 2px solid var(--l); border-radius: 8px; padding: .3em .5em; background: #fff; }
.irt-seg { display: inline-flex; background: var(--bg); border: 1px solid var(--l); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.irt-seg button { font: inherit; font-size: .95em; font-weight: 800; border: 0; background: transparent; color: var(--s); padding: .3em 1em; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.irt-seg button:hover { color: var(--m); }
.irt-seg button.is-on { background: var(--m); color: #fff; }
.irt-seg-note { font-size: .74em; color: var(--s); margin: 0 0 .9em .3em !important; }

/* 数値カード：いちばん大事な倍率を大きく、残り3つを横に並べる */
.irt-kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; margin: 0 0 .8em; }
.irt-kpi { background: #fff; border: 1px solid var(--l); border-radius: 12px; padding: .75em .95em .7em; color: var(--m); animation: ib-rise .5s ease-out both; }
.irt-kpi:nth-child(2) { animation-delay: .08s; } .irt-kpi:nth-child(3) { animation-delay: .16s; } .irt-kpi:nth-child(4) { animation-delay: .24s; }
.irt-kpi small { display: block; font-size: .72em; font-weight: 800; color: var(--s); }
.irt-kpi b { display: block; font-size: 1.65em; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.irt-kpi b span { font-size: .5em; margin-left: .12em; }
.irt-kpi b .na { font-size: .5em; color: var(--s); }
.irt-kpi em { display: block; font-style: normal; font-size: .74em; font-weight: 700; color: var(--s); }
.irt-kpi em i { font-style: normal; font-weight: 500; }
.irt-kpi em.up { color: var(--up); } .irt-kpi em.dn { color: var(--down); }
.irt-kpi.is-main { border: 2px solid var(--a); box-shadow: 0 6px 16px color-mix(in srgb, var(--a) 18%, transparent); }
.irt-kpi.is-main small { color: var(--a); }
.irt-kpi.is-main b { font-size: 2.5em; }
.irt-def { font-size: .78em; color: var(--s); margin: 0 0 .9em !important; }
.irt-def b { background: #ffe94d; color: #123a66; border-radius: 4px; padding: 0 .45em; margin-right: .5em; font-size: .9em; }

/* データから分かるポイント（自動の文章） */
.irt-summary { background: #fff; border: 1px solid var(--l); border-left: 5px solid var(--a); border-radius: 10px; padding: .7em 1em .5em; margin: 0 0 1em; }
.irt-summary-h { font-weight: 900; color: var(--m); font-size: .92em; margin: 0 0 .3em !important; }
.irt-summary ul, .irt-says { list-style: none; margin: 0 !important; padding: 0; }
.irt-summary li, .irt-says li { position: relative; padding: .3em 0 .3em 1.2em; font-size: .9em; line-height: 1.75; border-top: 1px dashed var(--l); }
.irt-summary li:first-child, .irt-says li:first-child { border-top: 0; }
.irt-summary li::before, .irt-says li::before { content: ""; position: absolute; left: .2em; top: .95em; width: .45em; height: .45em; border-radius: 50%; background: var(--a); }
.irt-says { background: #fff; border: 1px solid var(--l); border-left: 4px solid var(--a); border-radius: 10px; padding: .4em 1em; margin: 0 0 1em !important; }
.irt-say { background: #fff; border: 1px solid var(--l); border-left: 4px solid var(--a); border-radius: 10px; padding: .55em 1em; font-size: .9em; line-height: 1.75; margin: 0 0 1em !important; }
.irt-jump { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.irt-jump a { display: flex; align-items: center; justify-content: center; gap: .4em; height: 100%; box-sizing: border-box; text-align: center; font-size: .82em; font-weight: 900; padding: .6em .5em; border-radius: 999px; background: var(--m); color: #fff !important; transition: transform .15s, filter .15s; line-height: 1.3; }
.irt-jump a::after { content: "↓"; color: #7fe3cc; }
.irt-jump a:hover { transform: translateY(-1px); filter: brightness(1.12); }
.irt-jump a.is-new { background: var(--a); }
.irt-jump a.is-new::after { color: #fff; }

/* スマホ用：横スクロールの章ナビ（PCでは左の目次を使う） */
.irt-chapnav { display: none; }
@media (max-width: 1023px) {
  .irt-chapnav { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 0; z-index: 5; background: #fff; padding: .5em 0; margin: 0 0 .4em; border-bottom: 1px solid var(--l); scrollbar-width: none; }
  .irt-chapnav::-webkit-scrollbar { display: none; }
  .irt-chapnav a { flex: 0 0 auto; font-size: .78em; font-weight: 700; color: var(--m) !important; border: 1px solid var(--l); border-radius: 999px; padding: .3em .9em; white-space: nowrap; background: #fff; }
  .irt-chapnav a.is-on { background: var(--m); border-color: var(--m); color: #fff !important; }
}

/* ---- 左の目次（参考書DBの .ib-side の中に置く） ---- */
.irt-toc { list-style: none; margin: 0 !important; padding: .2em .8em .7em; counter-reset: irttoc; }
.irt-toc li { counter-increment: irttoc; }
.irt-toc a { display: flex; gap: .55em; align-items: baseline; font-size: .82em; font-weight: 700; color: var(--t) !important; padding: .38em .5em; border-radius: 6px; line-height: 1.45; }
.irt-toc a::before { content: counter(irttoc, decimal-leading-zero); font-size: .82em; font-weight: 900; color: var(--a); flex: 0 0 auto; }
.irt-toc a:hover { background: var(--bg); }
.irt-toc a.is-on { background: color-mix(in srgb, var(--a) 14%, #fff); color: var(--m) !important; }
.irt-toc .irt-new { font-size: .7em; font-weight: 900; color: #123a66; background: #ffe94d; border-radius: 999px; padding: 0 .5em; margin-left: auto; white-space: nowrap; }

/* ---- 章の共通：見出し → 説明 → 図表 → 補足 ---- */
.irt-sec { scroll-margin-top: 16px; }
.irt-sec-lead { color: #3d4650; font-size: .94em; margin: 0 0 1em !important; }
.irt-note { font-size: .76em; color: var(--s); line-height: 1.7; margin: .6em 0 0 !important; }
.irt-note::before { content: "※"; margin-right: .2em; }
.irt-warn { font-size: .8em; border: 1px solid #e5b454; background: #fff8e6; border-radius: 8px; padding: .55em .9em; margin: .8em 0 0 !important; line-height: 1.7; }
.irt-bar { display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: center; margin: 0 0 .8em; }
.irt-bar label { display: flex; align-items: center; gap: .4em; font-size: .8em; font-weight: 700; color: var(--m); }
.irt-bar select, .irt-bar input[type=search] { font: inherit; font-size: .95em; padding: .3em .55em; border: 2px solid var(--l); border-radius: 6px; background: #fff; color: var(--t); }
.irt-bar input[type=search] { min-width: 12em; }
.irt-bar .irt-check { font-weight: 500; color: var(--t); }
.irt-bar .irt-check input { accent-color: #123a66; }
.irt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .8em; }
.irt-tabs .ib-chip { font-weight: 700; }
.irt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .irt-cols { grid-template-columns: 1fr; } }
.irt-card { border: 1px solid var(--l); border-radius: 10px; background: #fff; padding: .9em 1em; }
.irt-card-title { font-weight: 900; color: var(--m); font-size: .95em; margin: 0 0 .5em !important; }

/* ---- 表（並べ替え可能・スマホは横スクロール＋1列目固定） ---- */
.irt-tw { border: 1px solid var(--l); border-radius: 10px; overflow: auto; background: #fff; max-width: 100%; }
.irt-tw.is-tall { max-height: 560px; }
.irt-t { width: 100%; border-collapse: collapse; font-size: .88em; line-height: 1.5; margin: 0; }
.irt-t th, .irt-t td { padding: .55em .75em; border-bottom: 1px solid var(--l); text-align: left; white-space: nowrap; }
.irt-t thead th { position: sticky; top: 0; z-index: 2; background: var(--m); color: #fff; font-size: .9em; font-weight: 700; }
.irt-t thead th[data-k] { cursor: pointer; user-select: none; }
.irt-t thead th[data-k]::after { content: "⇅"; opacity: .45; margin-left: .3em; font-size: .85em; }
.irt-t thead th.is-asc::after { content: "▲"; opacity: 1; }
.irt-t thead th.is-desc::after { content: "▼"; opacity: 1; }
.irt-t td.n, .irt-t th.n { text-align: right; }
.irt-t tbody tr:nth-child(even) td { background: #fafbfc; }
.irt-t tbody tr:hover td { background: color-mix(in srgb, var(--a) 7%, #fff); }
.irt-t td:first-child, .irt-t th:first-child { position: sticky; left: 0; z-index: 1; }
.irt-t thead th:first-child { z-index: 3; }
.irt-t tbody td:first-child { background: #fff; }
.irt-t tbody tr:nth-child(even) td:first-child { background: #fafbfc; }
.irt-t td.name { white-space: normal; min-width: 10em; font-weight: 700; color: var(--m); }
.irt-t td.name small { display: block; font-weight: 500; color: var(--s); font-size: .82em; }
.irt-t tr.is-click { cursor: pointer; }
.irt-t tr.is-open td { background: color-mix(in srgb, var(--a) 10%, #fff) !important; }
.irt-t tr.irt-sub td { background: var(--bg) !important; font-size: .95em; }
.irt-t tr.irt-sub td:first-child { padding-left: 1.8em; font-weight: 500; }
.irt-t .rt { font-weight: 900; color: var(--m); font-size: 1.08em; }
.irt-t .na { color: #a3abb4; font-size: .85em; font-weight: 500; }
.irt-t .tag-small { font-size: .7em; font-weight: 700; color: #9a6a00; background: #fff3cf; border-radius: 4px; padding: 0 .4em; margin-left: .4em; vertical-align: 1px; }
.irt-t .arrow::after { content: " ›"; color: var(--a); font-weight: 900; }
.irt-mini { display: inline-block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--a) 70%, #fff); vertical-align: middle; margin-right: .4em; }
.irt-more { display: block; width: 100%; margin: .6em 0 0; padding: .6em; font: inherit; font-size: .86em; font-weight: 800; color: var(--m); background: #fff; border: 1.5px solid var(--m); border-radius: 999px; cursor: pointer; }

/* ---- ランキング ---- */
.irt-rank { list-style: none; margin: 0 !important; padding: 0; border: 1px solid var(--l); border-radius: 10px; overflow: hidden; background: #fff; counter-reset: irtrank; }
.irt-rank li { counter-increment: irtrank; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: .8em; align-items: center; padding: .6em .9em; border-bottom: 1px solid var(--l); }
.irt-rank li:last-child { border-bottom: 0; }
.irt-rank li::before { content: counter(irtrank); display: flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: 50%; background: var(--bg); color: var(--m); font-weight: 900; font-size: .9em; }
.irt-rank li:nth-child(1)::before { background: #d4a017; color: #fff; }
.irt-rank li:nth-child(2)::before { background: #9aa5b1; color: #fff; }
.irt-rank li:nth-child(3)::before { background: #b5734a; color: #fff; }
.irt-rank .rk-main b { display: block; font-weight: 900; color: var(--m); line-height: 1.4; }
.irt-rank .rk-main small { display: block; font-size: .76em; color: var(--s); }
.irt-rank .rk-val { text-align: right; }
.irt-rank .rk-val b { font-size: 1.35em; font-weight: 900; color: var(--m); font-variant-numeric: tabular-nums; }
.irt-rank .rk-val b span { font-size: .55em; margin-left: .1em; }
.irt-rank .rk-val small { display: block; font-size: .72em; color: var(--s); white-space: nowrap; }

/* ---- 出身区分の比較 ---- */
.irt-segrows { display: grid; gap: 10px; }
.irt-segrow { display: grid; grid-template-columns: 6.8em minmax(0, 1fr) 7.6em; gap: .8em; align-items: center; }
.irt-segrow > em small { white-space: nowrap; }
.irt-segrow > b { font-size: .86em; color: var(--m); }
.irt-segrow > b i { display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .4em; vertical-align: 0; }
.irt-segbar { height: 22px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.irt-segbar span { display: block; height: 100%; border-radius: 6px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.irt-segrow > em { font-style: normal; text-align: right; font-weight: 900; color: var(--m); font-size: 1.15em; font-variant-numeric: tabular-nums; }
.irt-segrow > em small { font-size: .6em; color: var(--s); display: block; font-weight: 500; }
.irt-stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin: .3em 0 .2em; }
.irt-stack span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .72em; font-weight: 800; white-space: nowrap; overflow: hidden; }
.irt-stack-label { display: flex; justify-content: space-between; font-size: .78em; font-weight: 700; color: var(--m); }
.irt-legend { display: flex; flex-wrap: wrap; gap: .3em 1em; font-size: .76em; color: var(--s); margin: .4em 0 0; }
.irt-legend i { display: inline-block; width: .8em; height: .8em; border-radius: 2px; margin-right: .35em; vertical-align: -1px; }
.irt-gapbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 1em; }
.irt-gapbox > div { border: 1px solid var(--l); border-radius: 10px; padding: .6em .8em; background: #fff; }
.irt-gapbox small { display: block; font-size: .72em; font-weight: 700; color: var(--s); }
.irt-gapbox b { font-size: 1.4em; font-weight: 900; color: var(--m); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .irt-gapbox { grid-template-columns: 1fr; } }

/* ---- グラフ（SVG） ---- */
.irt-chart { position: relative; border: 1px solid var(--l); border-radius: 10px; background: #fff; padding: .6em .4em .2em; }
.irt-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.irt-chart .ax { stroke: #c9d2db; stroke-width: 1; }
.irt-chart .grid { stroke: #edf1f4; stroke-width: 1; }
.irt-chart .tick { font-size: 11px; fill: #6a7480; font-family: inherit; }
.irt-chart .lbl { font-size: 11px; fill: #6a7480; font-weight: 700; font-family: inherit; }
.irt-tip { position: absolute; pointer-events: none; z-index: 10; background: #12324f; color: #fff; font-size: .76em; line-height: 1.6; border-radius: 8px; padding: .55em .8em; box-shadow: 0 8px 20px rgba(0,0,0,.25); max-width: 260px; opacity: 0; transition: opacity .12s; }
.irt-tip.is-on { opacity: 1; }
.irt-tip b { display: block; font-size: 1.05em; }
.irt-tip small { opacity: .8; }
.irt-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: .9em 0; }
.irt-statgrid > div { background: var(--bg); border-radius: 8px; padding: .5em .7em; }
.irt-statgrid small { display: block; font-size: .7em; font-weight: 700; color: var(--s); }
.irt-statgrid b { font-size: 1.15em; font-weight: 900; color: var(--m); font-variant-numeric: tabular-nums; }
.irt-statgrid b span { font-size: .65em; margin-left: .1em; }
.irt-statgrid em { display: block; font-style: normal; font-size: .7em; color: var(--s); }
@media (max-width: 640px) { .irt-statgrid { grid-template-columns: 1fr 1fr; } .irt-jump { grid-template-columns: 1fr 1fr; } .irt-kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; } .irt-kpi.is-main { grid-column: 1 / -1; }
  .irt-kpi:not(.is-main) { padding: .55em .6em; } .irt-kpi:not(.is-main) b { font-size: 1.2em; } .irt-kpi:not(.is-main) small { font-size: .64em; }
  .irt-hero-body { padding: 12px; } }

/* ---- 四象限 ---- */
.irt-q-new { display: inline-block; font-size: .62em; font-weight: 900; color: #123a66; background: #ffe94d; border-radius: 999px; padding: .1em .7em; vertical-align: 3px; letter-spacing: .04em; }
.irt-qcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: .8em 0; }
.irt-qcard { font: inherit; text-align: left; cursor: pointer; border: 1.5px solid var(--l); border-top: 5px solid var(--qc); border-radius: 10px; background: #fff; padding: .55em .7em .6em; color: var(--t); transition: background .15s, box-shadow .15s; }
.irt-qcard:hover { background: color-mix(in srgb, var(--qc) 6%, #fff); }
.irt-qcard.is-on { background: color-mix(in srgb, var(--qc) 10%, #fff); border-color: var(--qc); box-shadow: 0 4px 12px color-mix(in srgb, var(--qc) 25%, transparent); }
.irt-qcard small { display: flex; align-items: center; gap: .35em; font-size: .7em; font-weight: 800; color: var(--qc); }
.irt-qcard b { display: block; font-size: .92em; font-weight: 900; color: var(--m); line-height: 1.35; }
.irt-qcard em { display: block; font-style: normal; font-size: 1.5em; font-weight: 900; color: var(--qc); line-height: 1.2; font-variant-numeric: tabular-nums; }
.irt-qcard em span { font-size: .5em; color: var(--s); margin-left: .15em; }
.irt-qcard p { font-size: .7em; color: var(--s); margin: .1em 0 0 !important; line-height: 1.5; }
.irt-qcard svg { width: 11px; height: 11px; }
@media (max-width: 760px) { .irt-qcards { grid-template-columns: 1fr 1fr; } }
.irt-q1 { --qc: var(--q1); } .irt-q2 { --qc: var(--q2); } .irt-q3 { --qc: var(--q3); } .irt-q4 { --qc: var(--q4); }
.irt-qmeta { display: flex; flex-wrap: wrap; gap: .3em 1.2em; font-size: .76em; color: var(--s); margin: 0 0 .6em; }
.irt-qmeta b { color: var(--m); }
.irt-chart .qbg { opacity: .07; }
.irt-chart .qname { font-size: 12px; font-weight: 900; font-family: inherit; }
.irt-chart .pt { cursor: pointer; transition: opacity .15s; }
.irt-chart .pt:hover, .irt-chart .pt.is-hl { stroke: #12324f; stroke-width: 2; }
.irt-chart.is-filter .pt:not(.is-sel) { opacity: .18; }
.irt-qread { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 1em 0 0; padding: 0; list-style: none; }
.irt-qread li { border-left: 4px solid var(--qc); background: var(--bg); border-radius: 0 8px 8px 0; padding: .5em .8em; font-size: .84em; line-height: 1.65; }
.irt-qread li b { color: var(--qc); }
@media (max-width: 640px) { .irt-qread { grid-template-columns: 1fr; } }
.irt-qlinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 0; }

/* ---- 注目専攻のカード ---- */
.irt-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .irt-insights { grid-template-columns: 1fr; } }
.irt-ins { border: 1px solid var(--l); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.irt-ins > header { display: flex; align-items: center; gap: .6em; padding: .6em .9em; background: color-mix(in srgb, var(--ic, var(--a)) 12%, #fff); border-bottom: 1px solid var(--l); }
.irt-ins > header i { flex: 0 0 auto; width: 1.9em; height: 1.9em; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ic, var(--a)); color: #fff; font-style: normal; font-weight: 900; font-size: .85em; }
.irt-ins > header b { font-weight: 900; color: var(--m); font-size: .95em; line-height: 1.35; }
.irt-ins > p { font-size: .8em; color: #3d4650; margin: 0 !important; padding: .55em .9em 0; line-height: 1.7; }
.irt-ins ol { list-style: none; margin: .4em 0 .6em !important; padding: 0 .9em; }
.irt-ins ol li { display: flex; justify-content: space-between; gap: .8em; padding: .35em 0; border-bottom: 1px dashed var(--l); font-size: .84em; }
.irt-ins ol li:last-child { border-bottom: 0; }
.irt-ins ol li span { min-width: 0; }
.irt-ins ol li span small { display: block; font-size: .8em; color: var(--s); }
.irt-ins ol li em { font-style: normal; font-weight: 900; white-space: nowrap; color: var(--m); font-variant-numeric: tabular-nums; }
.irt-ins footer { margin-top: auto; padding: 0 .9em .8em; }
.irt-ins footer a { font-size: .78em; font-weight: 800; color: var(--a) !important; }
.irt-ins footer a::after { content: " →"; }

/* ---- 研究科カード（詳細分析への導線） ---- */
.irt-gslist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .irt-gslist { grid-template-columns: 1fr; } }
.irt-gs { border: 1px solid var(--l); border-radius: 10px; background: #fff; overflow: hidden; }
.irt-gs summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6em; align-items: center; padding: .7em .9em; }
.irt-gs summary::-webkit-details-marker { display: none; }
.irt-gs summary b { display: block; font-weight: 900; color: var(--m); line-height: 1.4; }
.irt-gs summary small { display: block; font-size: .74em; color: var(--s); }
.irt-gs summary em { font-style: normal; text-align: right; font-weight: 900; color: var(--m); font-size: 1.2em; font-variant-numeric: tabular-nums; }
.irt-gs summary em span { font-size: .55em; }
.irt-gs summary em::after { content: "＋"; display: block; font-size: .6em; color: var(--a); text-align: right; }
.irt-gs[open] summary em::after { content: "－"; }
.irt-gs ul { list-style: none; margin: 0 !important; padding: 0 .9em .6em; border-top: 1px solid var(--l); }
.irt-gs li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 4.2em; gap: .6em; align-items: center; padding: .35em 0; border-bottom: 1px dashed var(--l); font-size: .84em; }
.irt-gs li:last-child { border-bottom: 0; }
.irt-gs li a { color: var(--t) !important; font-weight: 700; }
.irt-gs li a::after { content: " ›"; color: var(--a); }
.irt-gs li b { text-align: right; color: var(--m); font-variant-numeric: tabular-nums; }

/* ---- FAQ・データの見方 ---- */
.irt-faq details { border: 1px solid var(--l); border-radius: 10px; margin: 0 0 8px; background: #fff; overflow: hidden; }
.irt-faq summary { cursor: pointer; list-style: none; padding: .75em 1em .75em 3em; font-weight: 800; color: var(--m); position: relative; line-height: 1.5; }
.irt-faq summary::-webkit-details-marker { display: none; }
.irt-faq summary::before { content: "Q"; position: absolute; left: .9em; top: .65em; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--a); color: #fff; font-size: .9em; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.irt-faq details[open] summary { border-bottom: 1px dashed var(--l); }
.irt-faq details > div { padding: .7em 1em .8em 3em; font-size: .9em; line-height: 1.85; position: relative; }
.irt-faq details > div::before { content: "A"; position: absolute; left: 1.05em; top: .75em; color: var(--a); font-weight: 900; }
.irt-method { display: grid; grid-template-columns: 9em minmax(0, 1fr); border: 1px solid var(--l); border-radius: 10px; overflow: hidden; margin: 1em 0 0; background: #fff; font-size: .88em; }
.irt-method dt, .irt-method dd { margin: 0; padding: .6em .9em; border-bottom: 1px solid var(--l); line-height: 1.7; }
.irt-method dt { background: color-mix(in srgb, var(--a) 12%, #fff); color: var(--m); font-weight: 700; border-right: 1px solid var(--l); }
.irt-method dt:last-of-type, .irt-method dd:last-of-type { border-bottom: 0; }
.irt-method code { font-size: .92em; background: var(--bg); border-radius: 4px; padding: .05em .35em; }
@media (max-width: 640px) { .irt-method { grid-template-columns: 1fr; } .irt-method dt { border-right: 0; } }

/* ---- 倍率DBトップ ---- */
.irt-top-groups { display: grid; gap: 1.2em; }
.irt-ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.irt-ucard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2em .6em; align-items: end; border: 1px solid var(--l); border-left: 5px solid var(--a); border-radius: 10px; background: #fff; padding: .7em .9em; color: var(--t) !important; transition: background .15s, transform .15s; }
.irt-ucard:hover { background: var(--bg); transform: translateY(-1px); }
.irt-ucard small { grid-column: 1 / -1; font-size: .72em; color: var(--s); }
.irt-ucard b { font-weight: 900; color: var(--m); line-height: 1.35; }
.irt-ucard em { font-style: normal; font-weight: 900; font-size: 1.25em; color: var(--m); white-space: nowrap; font-variant-numeric: tabular-nums; }
.irt-ucard em span { font-size: .55em; }
.irt-ucard em.na { font-size: .75em; color: #a3abb4; }
.irt-region { border: 1px solid var(--l); border-radius: 10px; overflow: hidden; background: #fff; }
.irt-region > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .65em 1em; background: var(--bg); font-weight: 900; color: var(--m); }
.irt-region > summary::-webkit-details-marker { display: none; }
.irt-region > summary small { font-weight: 700; color: var(--s); font-size: .78em; }
.irt-region > div { padding: .8em 1em 1em; }
.irt-pref { margin: 0 0 .6em; }
.irt-pref > b { display: block; font-size: .78em; color: var(--a); margin: 0 0 .3em; }
.irt-pref ul { list-style: none; margin: 0 !important; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.irt-pref a { display: inline-block; font-size: .84em; font-weight: 700; color: var(--m) !important; border: 1px solid var(--l); border-radius: 999px; padding: .25em .9em; background: #fff; }
.irt-pref a:hover { border-color: var(--a); background: color-mix(in srgb, var(--a) 8%, #fff); }
.irt-pref a.is-sample { border-color: var(--a); box-shadow: inset 0 0 0 1px var(--a); }

/* 検索の候補（参考書DBの .ib-search-result を使い、種類のラベルだけ足す） */
.irt-hit-kind { display: inline-block; font-size: .68em; font-weight: 800; border-radius: 4px; padding: 0 .45em; margin-right: .5em; background: var(--bg); color: var(--m); vertical-align: 1px; }
.irt-hit-kind.k-u { background: var(--m); color: #fff; }
.irt-hit-kind.k-g { background: color-mix(in srgb, var(--a) 18%, #fff); }
.ib-search-result a.irt-hit b { font-weight: 700; }
.ib-search-result a.irt-hit mark { background: #fff3a6; color: inherit; padding: 0; }

/* 下部：関連記事（仮） */
.irt-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.irt-related a { display: block; border: 1px solid var(--l); border-radius: 10px; padding: .8em .9em; color: var(--t) !important; font-weight: 700; font-size: .88em; line-height: 1.5; background: #fff; }
.irt-related a small { display: block; font-size: .78em; color: var(--a); font-weight: 800; margin-bottom: .2em; }
.irt-related a:hover { background: var(--bg); }
@media (max-width: 760px) { .irt-related { grid-template-columns: 1fr; } }

/* ---- 名称の並び：研究科（上・小）→ 専攻（下・太字）→ コース（右） ---- */
.irt-t td.name small, .irt-rank .rk-main small, .irt-ins ol li span small { display: block; font-weight: 500; color: var(--s); font-size: .78em; line-height: 1.4; }
.irt-t td.name b, .irt-rank .rk-main b, .irt-ins ol li span b { display: inline; font-weight: 800; color: var(--m); }
.irt-crs { display: inline-block; font-size: .72em; font-weight: 700; color: var(--m); background: color-mix(in srgb, var(--a) 14%, #fff); border-radius: 4px; padding: 0 .45em; margin-left: .45em; vertical-align: 1px; }
.irt-rank .rk-main b { font-size: 1.02em; font-weight: 900; }
.irt-rank li { grid-template-columns: 2.4em minmax(0, 1fr) minmax(6.5em, auto); }
.irt-rank .rk-val b { white-space: nowrap; }
.irt-dot { display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .45em; vertical-align: 0; }
.irt-t tr.is-total td { font-weight: 900; border-top: 2px solid var(--m); }
.irt-t tr.is-sel td { background: color-mix(in srgb, var(--a) 12%, #fff) !important; }
.irt-tabs-seg { font-size: .76em; color: var(--s); margin: -.3em 0 .8em !important; }
.irt-cmpbar { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; margin: 1em 0 .6em; font-size: .86em; font-weight: 800; color: var(--m); }
.irt-gapbox { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .irt-gapbox { grid-template-columns: 1fr 1fr; } }
/* 4タイプの説明（グラフと同じ配置：左上Ⅱ・右上Ⅰ・左下Ⅲ・右下Ⅳ） */
.irt-qhow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 1em; }
.irt-qhow > div { border: 1.5px solid var(--qc); border-radius: 10px; padding: .5em .8em; background: color-mix(in srgb, var(--qc) 6%, #fff); }
.irt-qhow b { display: block; color: var(--qc); font-weight: 900; font-size: .95em; }
.irt-qhow span { display: block; font-size: .82em; font-weight: 700; color: var(--m); }
.irt-qhow em { display: block; font-style: normal; font-size: .74em; color: var(--s); }
.irt-ins > p.irt-ins-desc { font-size: .74em; color: var(--s); }
.irt-ins > p.irt-ins-say { font-size: .84em; color: var(--m); font-weight: 700; padding-top: .35em; }
.irt-gs li.is-hl { background: #fff8d6; }
.ib-search-result a.irt-hit small.irt-hit-pre { margin: 0 .35em 0 0; }
/* 長い選択肢（研究科 ＞ 専攻 ＞ コース）でも画面からはみ出さない */
.irt-bar label { max-width: 100%; flex-wrap: wrap; min-width: 0; }
.irt-bar select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
/* 関連記事（最大5件） */
.irt-related { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.irt-related a { font-size: .86em; }

/* ---- 冒頭「データから分かるポイント」：枠を使わず、細い区切り線の行で並べる ---- */
.irt-points { margin: .4em 0 1.2em; }
.irt-points-h { font-size: .78em; font-weight: 800; letter-spacing: .12em; color: var(--a); margin: 0 0 .2em !important; }
.irt-pts { list-style: none; margin: 0 !important; padding: 0; }
.irt-pt { display: grid; grid-template-columns: 13.5em minmax(0, 1fr); gap: .3em 1.6em; align-items: start; padding: 1em 0; border-top: 1px solid var(--l); --pc: var(--m); }
.irt-pt:last-child { border-bottom: 1px solid var(--l); }
.irt-pt.is-up { --pc: var(--up); } .irt-pt.is-dn { --pc: var(--down); }
.irt-pt-k small { display: flex; align-items: baseline; gap: .55em; font-size: .74em; font-weight: 700; color: var(--s); }
.irt-pt-k small span { font-size: .95em; font-weight: 900; color: var(--a); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.irt-pt-k b { display: block; font-size: 1.55em; font-weight: 900; color: var(--m); line-height: 1.25; margin: .15em 0 .05em; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.irt-pt-k em { display: block; font-style: normal; font-size: .76em; font-weight: 800; color: var(--pc); }
.irt-pt:not(.is-up):not(.is-dn) .irt-pt-k em { color: var(--s); }
.irt-pt > p { margin: 0 !important; font-size: .88em; line-height: 1.85; color: #3d4650; padding-top: .15em; }
.irt-pt > p b { font-weight: 800; color: var(--m); }
@media (max-width: 640px) {
  .irt-pt { grid-template-columns: 1fr; padding: .85em 0; }
  .irt-pt-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7em; }
  .irt-pt-k small { flex: 1 0 100%; }
}

/* ---- 関連記事：サムネイル付きカード ---- */
.irt-related { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.irt-related a.irt-relcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 12px; transition: transform .15s, box-shadow .15s; }
.irt-related a.irt-relcard:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 50, 79, .12); }
.irt-rel-img { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #123a66, #0f4d45); }
.irt-rel-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.irt-related a.irt-relcard .irt-rel-img small { position: absolute; left: 8px; top: 8px; margin: 0; font-size: .7em; font-weight: 800; color: #fff; background: rgba(18, 50, 79, .85); border-radius: 999px; padding: .15em .7em; }
.irt-rel-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; padding: .6em .8em .75em; font-size: .86em; font-weight: 700; line-height: 1.55; color: var(--t); }
/* 関連記事：1件目を大きく（左2×2）、残り4件を右に2×2で並べる */
.irt-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.irt-related a.irt-relcard:first-child { grid-column: span 2; grid-row: span 2; }
.irt-related a.irt-relcard:first-child .irt-rel-img { flex: 1 1 auto; min-height: 0; }
.irt-related a.irt-relcard:first-child .irt-rel-t { font-size: 1em; -webkit-line-clamp: 2; }
.irt-related a.irt-relcard:not(:first-child) .irt-rel-t { font-size: .8em; }
@media (max-width: 760px) { .irt-related { grid-template-columns: 1fr 1fr; } .irt-related a.irt-relcard:first-child { grid-row: auto; } }
.irt-method code { font-family: inherit; font-size: 1em; font-weight: 700; color: var(--m); }

/* 各章の分析の文章：枠と左の縦線をやめ、上下の細い線と小さな見出しだけにする */
.irt .irt-say, .irt .irt-says { background: none; border: 0; border-top: 1px solid var(--l); border-bottom: 1px solid var(--l); border-radius: 0; padding: .6em 0; }
.irt .irt-say::before, .irt .irt-says::before { content: "ANALYSIS"; display: block; font-size: .64em; font-weight: 800; letter-spacing: .14em; color: var(--a); margin: 0 0 .2em; }
.irt .irt-says li { padding: .25em 0 .25em 1em; border-top: 0; font-size: .9em; }
.irt .irt-says li::before { width: .35em; height: .35em; top: 1em; left: 0; background: var(--s); }
/* 言語切り替えの地球アイコン（絵文字は使わない） */
.irt-globe { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 3px; flex: 0 0 auto; }

/* =====================================================================
   2026-11-22 改修：章見出し・分析の文章・言語プルダウン・関連記事ランキング・日本地図
   ===================================================================== */

/* ---- 章の見出し：濃い帯に白抜きの文字（番号は白い四角） ---- */
.irt .ib-h2.irt-h2 { counter-increment: none; display: flex; align-items: center; gap: .8em; font-size: 1.22em; font-weight: 900; line-height: 1.45; color: #fff;
  background: linear-gradient(110deg, #0d2747, #123a66 60%, #0f4d45); border: 0; border-radius: 10px; padding: .7em 1em; margin: 2.6em 0 .9em; box-shadow: 0 4px 14px rgba(18, 50, 79, .15); }
.irt .ib-h2.irt-h2::before { content: none; }
.irt-h2-no { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; height: 2.1em; border-radius: 8px; background: #fff; color: var(--m); font-size: .78em; font-weight: 900; letter-spacing: .02em; }
.irt-h2-t { min-width: 0; }
@media (max-width: 640px) { .irt .ib-h2.irt-h2 { font-size: 1.05em; padding: .6em .8em; gap: .6em; } }

/* ---- 各章の分析の文章：線を使わず、淡い色の面で見せる ---- */
.irt .irt-say, .irt .irt-says { background: color-mix(in srgb, var(--a) 7%, #fff); border: 0; border-radius: 12px; padding: .8em 1.1em; }
.irt .irt-say::before, .irt .irt-says::before { content: "ANALYSIS"; display: block; font-size: .64em; font-weight: 800; letter-spacing: .14em; color: var(--a); margin: 0 0 .25em; }
.irt .irt-says li { border-top: 0; padding: .2em 0 .2em 1em; }
.irt .irt-says li::before { width: .35em; height: .35em; top: .95em; left: 0; background: var(--a); }

/* ---- 言語の切り替え：地球アイコン＋今の言語のプルダウン ---- */
.irt-langs { position: absolute; top: 12px; right: 14px; z-index: 5; display: block; background: none; padding: 0; font-size: .78em; }
.irt-langs > summary { list-style: none; display: inline-flex; align-items: center; gap: .4em; cursor: pointer; color: #fff; font-weight: 700; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .3em .8em .3em .6em; white-space: nowrap; }
.irt-langs > summary::-webkit-details-marker { display: none; }
.irt-langs > summary i { width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: .2em; }
.irt-langs[open] > summary { background: #fff; color: var(--m); }
.irt-langs ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0 !important; padding: 6px; min-width: 11em; background: #fff; border: 1px solid var(--l); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.irt-langs ul a { display: block; color: var(--t) !important; font-weight: 700; padding: .45em .8em; border-radius: 6px; white-space: nowrap; background: none; }
.irt-langs ul a:hover { background: var(--bg); }
.irt-langs ul a.is-on { background: color-mix(in srgb, var(--a) 14%, #fff); color: var(--m) !important; }
.ib-menu-hero .irt-langs { top: 14px; left: 16px; right: auto; text-align: left; }
.ib-menu-hero .irt-langs ul { left: 0; right: auto; }
@media (max-width: 760px) { .irt-langs { position: relative; top: 0; right: 0; display: inline-block; margin: 0 0 .7em; } .irt-langs ul { left: 0; right: auto; } .ib-menu-hero .irt-langs { left: 0; } }

/* ---- 関連記事ランキング：順位 → サムネイル → 種類・タイトル ---- */
.irt-relh { display: flex; align-items: center; gap: .7em; font-size: 1.15em; font-weight: 900; color: var(--m); margin: 2.6em 0 .8em; }
.irt-relh span { font-size: .6em; letter-spacing: .16em; color: #fff; background: linear-gradient(90deg, #d4a017, #e07b00); border-radius: 999px; padding: .25em .9em; }
.irt-relrank { list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 10px; }
.irt-relrank a { display: grid; grid-template-columns: 3.2em 168px minmax(0, 1fr); gap: 14px; align-items: center; background: #fff; border: 1px solid var(--l); border-radius: 12px; padding: 10px 14px 10px 10px; color: var(--t) !important; transition: transform .15s, box-shadow .15s; }
.irt-relrank a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 50, 79, .12); }
.irt-relno { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 2.9em; height: 2.9em; border-radius: 50%; background: var(--bg); color: var(--m); font-size: 1.05em; font-weight: 900; line-height: 1; }
.irt-relno small { font-size: .5em; font-weight: 800; letter-spacing: .04em; opacity: .8; }
.irt-rk1 .irt-relno { background: linear-gradient(135deg, #f2c94c, #d4a017); color: #fff; }
.irt-rk2 .irt-relno { background: linear-gradient(135deg, #c9d1d9, #9aa5b1); color: #fff; }
.irt-rk3 .irt-relno { background: linear-gradient(135deg, #d9966b, #b5734a); color: #fff; }
.irt-relrank .irt-rel-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #123a66, #0f4d45); }
.irt-relrank .irt-rel-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.irt-rel-body small { display: inline-block; font-size: .7em; font-weight: 800; color: var(--a); background: color-mix(in srgb, var(--a) 12%, #fff); border-radius: 999px; padding: .1em .7em; margin: 0 0 .3em; }
.irt-rel-body b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .92em; font-weight: 800; line-height: 1.55; color: var(--m); }
.irt-relmore { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .irt-relrank a { grid-template-columns: 2.6em 110px minmax(0, 1fr); gap: 10px; padding: 8px; } .irt-relno { width: 2.4em; height: 2.4em; font-size: .95em; } .irt-rel-body b { font-size: .84em; } }

/* ---- 日本地図（タイル地図）から地域を選ぶ ---- */
.irt-mapwrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; background: #fff; border: 1px solid var(--l); border-radius: 14px; padding: 16px; }
.irt-map svg { display: block; width: 100%; height: auto; }
.irt-tile { cursor: pointer; outline: none; }
.irt-tile rect { fill: color-mix(in srgb, var(--rc) 22%, #fff); stroke: #fff; stroke-width: 1; transition: fill .15s; }
.irt-tile text { font-size: 10.5px; font-weight: 700; fill: color-mix(in srgb, var(--rc) 70%, #12324f); pointer-events: none; font-family: inherit; }
.irt-tile.is-empty rect { fill: #eef1f4; } .irt-tile.is-empty text { fill: #a3abb4; }
.irt-tile.is-hover rect { fill: color-mix(in srgb, var(--rc) 40%, #fff); }
.irt-tile.is-on rect { fill: var(--rc); } .irt-tile.is-on text { fill: #fff; }
.irt-tile.is-pref rect { stroke: #12324f; stroke-width: 2.5; }
.irt-tile:focus-visible rect { stroke: #12324f; stroke-width: 2.5; }
.irt-map-oki { fill: none; stroke: #c3cbd3; stroke-dasharray: 4 3; }
.irt-map-hint { font-size: .8em; color: var(--s); margin: 0 0 .7em !important; line-height: 1.6; }
.irt-regbtns { list-style: none; margin: 0 !important; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.irt-regbtns button { width: 100%; display: flex; align-items: center; gap: .5em; font: inherit; font-size: .84em; font-weight: 800; color: var(--m); background: #fff; border: 1.5px solid var(--l); border-radius: 10px; padding: .5em .7em; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.irt-regbtns button i { flex: 0 0 auto; width: .8em; height: .8em; border-radius: 3px; background: var(--rc); }
.irt-regbtns button small { margin-left: auto; font-size: .82em; color: var(--s); font-weight: 700; }
.irt-regbtns button:hover { border-color: var(--rc); }
.irt-regbtns button.is-on { background: var(--rc); border-color: var(--rc); color: #fff; }
.irt-regbtns button.is-on i { background: #fff; } .irt-regbtns button.is-on small { color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .irt-mapwrap { grid-template-columns: 1fr; padding: 12px; } }
.irt-maplist { margin: 14px 0 0; }
.irt-maplist-h { display: flex; align-items: baseline; gap: .8em; margin: 0 0 .6em !important; padding: .55em .9em; border-radius: 10px; background: var(--rc); color: #fff; }
.irt-maplist-h b { font-size: 1.02em; font-weight: 900; } .irt-maplist-h small { font-size: .8em; opacity: .9; }
.irt-maplist-body { background: #fff; border: 1px solid var(--l); border-radius: 12px; padding: .9em 1em .4em; }
.irt-maplist .irt-pref { padding: .3em .4em; border-radius: 8px; }
.irt-maplist .irt-pref.is-hl { background: #fff8d6; }
.irt-maplist .irt-pref a em { font-style: normal; font-weight: 900; color: var(--a); margin-left: .5em; font-size: .92em; }
.irt-maplist .irt-pref a em span { font-size: .75em; }

/* =====================================================================
   スマホ表示：各章をできるだけ1〜1.5画面に収める（行間・余白を詰め、長い部分は横スクロールや折りたたみにする）
   ===================================================================== */
.irt-swipe { display: none; }
.irt-fold > summary { cursor: pointer; font-size: .86em; font-weight: 800; color: var(--m); margin: 1em 0 0; list-style: none; }
.irt-fold > summary::-webkit-details-marker { display: none; }
.irt-fold > summary::before { content: "＋"; color: var(--a); margin-right: .4em; }
.irt-fold[open] > summary::before { content: "－"; }
@media (max-width: 760px) {
  .irt { line-height: 1.6; }
  /* 章の見出し・説明・注記 */
  .irt .ib-h2.irt-h2 { margin: 1.5em 0 .5em; padding: .5em .7em; font-size: 1em; }
  .irt-sec-lead { font-size: .8em; line-height: 1.55; margin: 0 0 .55em !important; }
  .irt-note { font-size: .68em; line-height: 1.5; margin: .35em 0 0 !important; }
  .irt-warn { font-size: .7em; line-height: 1.5; padding: .4em .65em; margin: .5em 0 0 !important; }
  .irt .ib-h3 { font-size: .9em; margin: .9em 0 .35em; }
  /* 分析の文章 */
  .irt .irt-say, .irt .irt-says { padding: .5em .75em; margin: 0 0 .6em !important; border-radius: 10px; }
  .irt .irt-say { font-size: .8em; line-height: 1.6; }
  .irt .irt-says li { font-size: .8em; line-height: 1.55; padding: .12em 0 .12em .9em; }
  .irt .irt-says li::before { top: .75em; }
  /* 表：文字を少し小さく、縦に長い表は画面の半分まで */
  .irt-t { font-size: .78em; }
  .irt-t th, .irt-t td { padding: .38em .5em; }
  .irt-tw.is-tall { max-height: 46vh; }
  .irt-bar { margin: 0 0 .5em; gap: .35em .6em; }
  .irt-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 .5em; padding-bottom: 2px; scrollbar-width: none; }
  .irt-tabs::-webkit-scrollbar { display: none; }
  .irt-tabs .ib-chip { flex: 0 0 auto; white-space: nowrap; font-size: .78em; padding: .25em .8em; }
  .irt-tabs-seg { font-size: .68em; margin: 0 0 .5em !important; }
  .irt-more { margin: .4em 0 0; padding: .45em; font-size: .8em; }

  /* 冒頭：章ナビ（上に固定）があるので、ショートカットのボタンは出さない */
  .irt-hero { margin: 0 0 .8em; }
  .irt-hero-top { padding: 12px 14px 12px; }
  .irt-hero-title { font-size: 1.15em; }
  .irt-hero-lead { font-size: .76em; line-height: 1.55; }
  .irt-hero-body { padding: 10px; }
  .irt-filters { padding: .45em .6em; gap: .4em .8em; }
  .irt-f { font-size: .76em; }
  .irt-seg button { padding: .25em .75em; }
  .irt-seg-note { font-size: .66em; margin: .1em 0 .5em .2em !important; }
  .irt-kpis { margin: 0 0 .5em; }
  .irt-kpi { padding: .5em .6em; }
  .irt-kpi.is-main b { font-size: 2em; }
  .irt-def { font-size: .68em; margin: 0 0 .5em !important; line-height: 1.5; }
  .irt-points { margin: .2em 0 0; }
  .irt-pt { padding: .55em 0; gap: .1em; }
  .irt-pt-k b { font-size: 1.25em; margin: 0; }
  .irt-pt-k em { font-size: .7em; }
  .irt-pt > p { font-size: .78em; line-height: 1.6; padding: 0; }
  .irt-jump { display: none; }

  /* 第1章：「このページで分かること」は章ナビと重なるので出さない */
  #s1 .ib-h3, #s1 .ib-contents { display: none; }

  /* 第3章：ランキングの行を詰める */
  .irt-rank li { padding: .4em .6em; gap: .5em; grid-template-columns: 2em minmax(0, 1fr) auto; }
  .irt-rank li::before { width: 1.7em; height: 1.7em; font-size: .8em; }
  .irt-rank .rk-main b { font-size: .9em; }
  .irt-rank .rk-val b { font-size: 1.1em; }
  .irt-rank .rk-val small { font-size: .64em; }

  /* 第4章：グラフ2つを詰め、比較の数字は2列 */
  .irt-cols { gap: 8px; }
  .irt-card { padding: .6em .7em; }
  .irt-card-title { font-size: .84em; margin: 0 0 .3em !important; }
  .irt-segrows { gap: 5px; }
  .irt-segrow { grid-template-columns: 4.6em minmax(0, 1fr) 6.4em; gap: .5em; }
  .irt-segrow > b { font-size: .76em; }
  .irt-segbar { height: 14px; }
  .irt-segrow > em { font-size: .95em; }
  .irt-stack { height: 20px; }
  .irt-legend { font-size: .68em; margin: .25em 0 0; }
  .irt-cmpbar { margin: .6em 0 .4em; font-size: .78em; }
  .irt-gapbox { gap: 6px; margin: 0 0 .6em; }
  .irt-gapbox > div { padding: .4em .6em; }
  .irt-gapbox small { font-size: .64em; }
  .irt-gapbox b { font-size: 1.1em; }
  #s4 .irt-tw.is-tall { max-height: 40vh; }

  /* 第5章：グラフと数字を詰める */
  .irt-chart { padding: .3em .2em 0; }
  .irt-statgrid { gap: 5px; margin: .5em 0; }
  .irt-statgrid > div { padding: .35em .5em; }
  .irt-statgrid b { font-size: 1em; }

  /* 第6章：タイプの説明は下のカードと同じ内容なので出さず、条件は2列、カードは説明文を省く */
  .irt-qhow { display: none; }
  #s6 .irt-bar { display: grid; grid-template-columns: 1fr 1fr; }
  #s6 .irt-bar label { flex-direction: column; align-items: stretch; gap: .15em; font-size: .7em; }
  #s6 .irt-bar select { width: 100%; font-size: 1.05em; padding: .25em .3em; }
  .irt-qmeta { font-size: .64em; gap: .1em .8em; margin: 0 0 .4em; }
  .irt-qcards { gap: 6px; margin: .5em 0; }
  .irt-qcard { padding: .4em .6em .45em; }
  .irt-qcard p { display: none; }
  .irt-qcard em { font-size: 1.25em; }
  #s6 .irt-tw.is-tall { max-height: 38vh; }
  .irt-qread { grid-template-columns: 1fr; gap: 5px; margin: .5em 0 0; }
  .irt-qread li { font-size: .76em; line-height: 1.55; padding: .4em .6em; }
  .irt-qlinks { margin: .6em 0 0; }
  .irt-qlinks a { font-size: .78em; padding: .4em .9em; }

  /* 第7章：カード8枚は横スクロール（1枚ずつ止まる） */
  .irt-swipe { display: block; font-size: .7em; font-weight: 700; color: var(--s); margin: 0 0 .4em !important; }
  .irt-swipe::after { content: " →"; color: var(--a); }
  .irt-insights { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 6px; scrollbar-width: thin; }
  .irt-ins { flex: 0 0 86%; scroll-snap-align: start; }
  .irt-ins > header { padding: .45em .7em; }
  .irt-ins > header b { font-size: .86em; }
  .irt-ins > p { padding: .4em .7em 0; }
  .irt-ins ol { padding: 0 .7em; margin: .3em 0 .4em !important; }
  .irt-ins ol li { padding: .25em 0; font-size: .76em; }
  .irt-ins footer { padding: 0 .7em .6em; }

  /* 第8章：研究科カードを詰める */
  .irt-gslist { gap: 6px; }
  .irt-gs summary { padding: .45em .7em; }
  .irt-gs summary b { font-size: .88em; }
  .irt-gs summary small { font-size: .66em; }
  .irt-gs summary em { font-size: 1em; }
  .irt-gs summary em::after { font-size: .55em; }

  /* 第9章：FAQは閉じた状態、データの見方も詰める */
  .irt-faq details { margin: 0 0 5px; }
  .irt-faq summary { font-size: .82em; padding: .5em .8em .5em 2.6em; }
  .irt-faq summary::before { top: .5em; left: .7em; }
  .irt-faq details > div { font-size: .8em; line-height: 1.65; padding: .5em .8em .6em 2.6em; }
  .irt-method { font-size: .76em; margin: .5em 0 0; }
  .irt-method dt, .irt-method dd { padding: .4em .7em; }

  /* 関連記事 */
  .irt-relh { margin: 1.6em 0 .5em; font-size: 1em; }
  .irt-relrank { gap: 6px; }
}
@media (max-width: 760px) {
  /* 第4章・第6章をさらに詰める（1.5画面以内が目安） */
  #s4 .irt-card .irt-note { display: none; }
  #s4 .irt-tw.is-tall { max-height: 30vh; }
  #s4 .irt-bar .irt-check { font-size: .72em; }
  .irt-qmeta, .irt-qlinks { display: none; }
  #s6 .irt-tw.is-tall { max-height: 26vh; }
  .irt-qcard small { font-size: .62em; }
  .irt-qcard b { font-size: .82em; }
  .irt-qcard em { font-size: 1.1em; line-height: 1.1; }
}

/* 院試DBの公開済みページへのリンク（新しいタブ） */
.irt .irt-ext { color: inherit; text-decoration: none; }
.irt .irt-ext b { color: var(--m); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--m) 35%, transparent); text-underline-offset: 3px; }
.irt .irt-ext:hover b { text-decoration-color: var(--m); }
.irt .irt-exti { width: .78em; height: .78em; margin-left: .3em; vertical-align: -.02em; color: var(--m); opacity: .7; }
.irt .irt-exam { display: inline-flex; align-items: center; flex: none; font-size: .7em; font-weight: 700; line-height: 1.6; color: var(--m); text-decoration: none; border: 1px solid color-mix(in srgb, var(--m) 40%, transparent); border-radius: 999px; padding: 0 .55em; margin-left: .45em; white-space: nowrap; }
.irt .irt-exam:hover { background: color-mix(in srgb, var(--m) 8%, #fff); }
.irt .irt-exam .irt-exti { margin-left: .2em; opacity: 1; }
.irt-gs .irt-gsn { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2em 0; }
.irt-gs .irt-gsn .irt-exam { margin-left: .5em; }

/* 研究科・専攻一覧：研究科のページへのリンク、研究科が1つだけのとき（研究科・専攻のページ） */
.irt-gslist.is-one { grid-template-columns: 1fr; }
.irt-gs li.irt-gslink { display: block; padding: .55em 0 .35em; }
.irt-gs li.irt-gslink a { font-size: .82em; font-weight: 700; color: var(--m); }

/* WordPress：左の検索欄（院試DBのプラグインと同じ出し分け）
   ・テーマが本文とサイドバーを縦に積む幅では、検索欄が本文の上にかぶるので出さない（ratio-common.js が body に idb-rail-stacked を付ける）
   ・画面の高さより長いときは、検索欄の中だけをスクロールする */
body.idb-rail-stacked .ib-rail { display: none !important; }
@media (min-width: 1024px) {
  body.ib-has-rail .ib-rail { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* 言語の切り替え（2026-11-23）：選べる言語をすべてボタンで並べた帯。ヒーローのいちばん上に置く
   スマホでは1行のまま横にスクロールする（縦に場所を取らない） */
.irt-langbar { display: flex; align-items: center; gap: .5em .9em; margin: 0 0 1em; padding: 0 0 .85em; border-bottom: 1px solid rgba(255,255,255,.22); font-size: .8em; position: relative; z-index: 3; }
.irt-langbar-l { display: inline-flex; align-items: center; gap: .3em; flex: none; color: #fff; font-weight: 700; white-space: nowrap; opacity: .95; }
.irt-langbar ul { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin: 0 !important; padding: 0 !important; }
.irt-langbar li { margin: 0 !important; padding: 0 !important; list-style: none; }
.irt-langbar li::before { content: none !important; }
.irt-langbar a { display: inline-block; color: #fff !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; padding: .28em .85em; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.08); line-height: 1.5; transition: background .15s; }
.irt-langbar a:hover { background: rgba(255,255,255,.22); }
.irt-langbar a.is-on { background: #fff; color: var(--m) !important; border-color: #fff; }
.ib-menu-hero .irt-langbar { justify-content: center; margin: 0 auto 1.2em; max-width: calc(100% - 150px); }   /* 右上の「2026年度データ反映」の帯をよける */
@media (max-width: 760px) {
  .irt-langbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
  .irt-langbar::-webkit-scrollbar { display: none; }
  .irt-langbar ul { flex-wrap: nowrap; }
  .ib-menu-hero .irt-langbar { justify-content: flex-start; max-width: none; }
}

/* トップページの検索結果（検索欄の下の欄。2026-11-23） */
.irt-tophits { margin: 1.4em 0 2em; }
.irt-tophits .irt-hits-sub { margin: 1.1em 0 .55em !important; font-size: .9em; font-weight: 900; color: var(--m); }
.irt-hitlist { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.irt-hitlist li { margin: 0 !important; padding: 0 !important; list-style: none; }
.irt-hitlist li::before { content: none !important; }
.irt-hitlist a { display: block; padding: .55em .8em; border: 1px solid var(--l); border-radius: 8px; background: #fff; color: var(--t, #1d2a36) !important; text-decoration: none !important; line-height: 1.45; }
.irt-hitlist a:hover { border-color: var(--a); background: color-mix(in srgb, var(--a) 6%, #fff); }
.irt-hitlist small { display: block; font-size: .74em; color: var(--s); }
.irt-hitlist b { font-weight: 800; color: var(--m); }

/* 言語の帯は折り返さない（2026-11-23）：ボタンを少し小さくして1行に並べ、入りきらない幅では横にスクロールする */
.irt-langbar { flex-wrap: nowrap; }
.irt-langbar ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .3em; min-width: 0; }
.irt-langbar ul::-webkit-scrollbar { display: none; }
.irt-langbar a { padding: .2em .7em; }
.ib-menu-hero .irt-langbar { justify-content: flex-start; max-width: calc(100% - 120px); margin-left: 0; }
@media (max-width: 1100px) { .irt-langbar-l { font-size: .92em; } }

/* 検索の候補の見出し（大学・所在地が一致した大学・研究科・専攻。2026-11-23） */
.ib-search-result li.irt-hit-h { border-bottom: 0; padding: .55em .9em .2em; font-size: .78em; font-weight: 900; color: var(--m); background: var(--bg, #f4f7f9); }
.ib-side .ib-search-result { max-height: 60vh; }
.ib-search-result a.irt-hit small { display: block; margin: 0; }
.ib-search-result a.irt-hit small.irt-hit-pre { display: block; }

/* 検索：参考書DBと同じ流れ（候補 → Enterで検索結果ページ）。2026-11-23
   左の札（参考書DBの書影の位置）に、種類と最新年度・修士の倍率 */
.irt-rcover { flex: 0 0 64px; width: 64px; height: 64px; box-sizing: border-box; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #fff; background: linear-gradient(150deg, #12324f, #1f4f73); box-shadow: 0 1px 3px rgba(0,0,0,.18); line-height: 1.1; }
.irt-rcover.k-g { background: linear-gradient(150deg, #0f6e63, #0f9d8a); }
.irt-rcover.k-m { background: linear-gradient(150deg, #2b5f9e, #2b8fd9); }
.irt-rcover small { font-size: 10px; font-weight: 700; opacity: .85; margin: 0 !important; display: block; color: #fff !important; }
.irt-rcover em { font-style: normal; font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.irt-rcover em i { font-style: normal; font-size: 10px; margin-left: 1px; }
.irt-rcover em.na { opacity: .7; }
.ib-search-result a.irt-hit2 { gap: 10px; }
.ib-search-result a.irt-hit2 .irt-rcover { flex-basis: 46px; width: 46px; height: 46px; border-radius: 6px; }
.ib-search-result a.irt-hit2 .irt-rcover em { font-size: 13px; }
.ib-search-result a.irt-hit2 .irt-rcover small { font-size: 9px; }
.ib-results .irt-res-sub { margin: 1.2em 0 .4em !important; font-weight: 900; color: var(--m); font-size: .95em; }
.ib-results .ib-table { margin-top: .3em; }
.irt-result .ib-result-body b { display: block; font-size: 1.05em; font-weight: 800; color: var(--m); line-height: 1.45; }
.irt-result .ib-result-body small { display: block; font-size: .8em; color: var(--s); margin-top: .15em; }
.irt-result .ib-result-tag { background: var(--m); }

/* 4タイプの読み方：タイプ名のあとで改行する。左の縦線はやめ、タイプ名の色で見分ける（2026-11-23） */
.irt-qread li { border-left: 0; border-radius: 8px; padding: .6em .9em; }
.irt-qread li b { display: block; margin: 0 0 .15em; font-size: 1.05em; }

/* 検索の候補・検索結果：倍率の札は行の右側（2026-11-23） */
.irt-result .ib-result-body, .ib-search-result a.irt-hit2 .ib-hit-body { flex: 1 1 auto; }
.irt-result .irt-rcover, .ib-search-result a.irt-hit2 .irt-rcover { margin-left: auto; }
.irt-result { padding-right: 1.2em; }

/* 倍率記事のカルーセル（トップページ。2026-11-23）：サムネイルを右から左へ止まらずに流し続ける */
.irt-car { overflow: hidden; margin: .4em 0 2em; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.irt-car-track { display: flex; gap: 14px; width: max-content; animation: irt-car calc(var(--n, 10) * 4s) linear infinite; }
.irt-car-item { flex: 0 0 auto; display: block; width: 240px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg, #f4f7f9); box-shadow: 0 2px 8px rgba(18, 50, 79, .12); transition: transform .2s; }
.irt-car-item:hover { transform: translateY(-3px); }
.irt-car-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes irt-car { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (max-width: 760px) { .irt-car-item { width: 180px; } .irt-car-track { gap: 10px; } }
/* 動きを減らす設定の人には流さず、指で横にスクロールできるようにする */
@media (prefers-reduced-motion: reduce) { .irt-car { overflow-x: auto; } .irt-car-track { animation: none; } }

/* 関連記事ランキング：テーマが番号付きリスト（ol）に付ける左の余白を打ち消し、箱を左端までそろえる（2026-11-23） */
.irt .irt-relrank, .irt-relsec .irt-relrank { padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.irt .irt-relrank > li, .irt-relsec .irt-relrank > li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.irt .irt-relrank > li::before, .irt-relsec .irt-relrank > li::before { content: none !important; }

/* スマホの章ナビ：サイトの固定ヘッダーの真下で止める（高さは univ.js が --irt-top に入れる）。章へ飛んだときも見出しが隠れない（2026-11-23） */
.irt-chapnav { top: var(--irt-top, 0px) !important; }
@media (max-width: 760px) { .irt .irt-sec { scroll-margin-top: calc(var(--irt-top, 0px) + 60px); } }

/* 左に線があるボックスはやめる（2026-11-23）：主要大学のカード・分析の文のボックスなど。
   枠とうすい影だけにして、カードは押すと少し浮く。倍率の数字は差し色で目立たせる */
.irt-summary, .irt-says, .irt-say { border-left: 1px solid var(--l) !important; }
.irt-ucard { border-left: 1px solid var(--l) !important; border-radius: 12px; box-shadow: 0 1px 3px rgba(18, 50, 79, .06); padding: .8em 1em; transition: box-shadow .15s, transform .15s, border-color .15s; }
.irt-ucard:hover { background: #fff; border-color: color-mix(in srgb, var(--a) 55%, #fff) !important; box-shadow: 0 6px 18px rgba(18, 50, 79, .12); transform: translateY(-2px); }
.irt-ucard em { color: var(--a); }
.irt-ucard em span { color: var(--m); }
