/* 学費データのページ・学費シミュレーター(resource_pages.py)だけが読む見た目。site.css は変えない。 */
.res-page .entry-content .sub{display:block;font-size:12.5px;color:var(--sub);line-height:1.6;margin-top:2px}
.res-page .entry-content .amt{font-weight:700;font-variant-numeric:tabular-nums}
.res-page .entry-content td a{display:inline-block;padding:11px 0}
.res-page .entry-content a.dl-btn .nw{white-space:normal}
.res-page .entry-content a.dl-btn{display:inline-flex;max-width:100%;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;text-decoration:none}
.tsim{display:flex;flex-wrap:wrap;gap:12px 20px;margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.tsim-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.tsim-field label{font-size:14px;font-weight:700}
.tsim-field select{font:inherit;min-height:44px;padding:6px 10px;border:1px solid #bbb;border-radius:8px;background:#fff;max-width:100%}
.tsim-head{margin:12px 0 8px}
.tsim-next{margin:14px 0}
.res-page .entry-content .tsim-table{table-layout:fixed;font-size:14px}
.res-page .entry-content .tsim-table th:nth-child(1){width:4em}
.res-page .entry-content .tsim-table th:nth-child(2){width:26%}
.res-page .entry-content .tsim-table th:nth-child(3){width:11em}
.res-page .entry-content .tsim-table th:nth-child(5){width:22%}
.res-page .entry-content .tsim-table th,.res-page .entry-content .tsim-table td{min-width:0}
.res-page .entry-content .tsim-table .formula{display:block;margin-bottom:2px}
.res-page .entry-content .tsim-table .course{display:block}
.res-page .entry-content :is(.res-main,.tsim-table) :is(.amt,.row-head) .nw{white-space:nowrap;overflow-wrap:normal}   /* 大学名と総額の束ねは折らない(幅の規則が大学名・金額まで外して「環太平洋大|学」「1,81|0,000円」と折れていた)。範囲の額は「〜」の後ろの<wbr>だけで折れる */
@media(min-width:601px){
 .res-page .entry-content .res-main table{table-layout:auto}
 .res-page .entry-content .res-main :is(th,td){min-width:0}
 .res-page .entry-content .res-main th:nth-child(1){width:13%}
 .res-page .entry-content .res-main th:nth-child(2){width:14%}
 .res-page .entry-content .res-main th:nth-child(3),.res-page .entry-content .res-main th:nth-child(4){width:17%}
 .res-page .entry-content .res-main th:nth-child(5){width:21%}
 .res-page .entry-content .res-main th:nth-child(6){width:18%}
 .res-page .entry-content :is(.res-main,.tsim-table) :is(th,td) .nw{white-space:normal;overflow-wrap:anywhere}   /* 固定幅の列で、1つの塊(「24,000円+残り62単位×…」など)が列からはみ出さない */
}
@media(min-width:601px) and (max-width:899px){
 .res-page .entry-content .res-main table{table-layout:auto;min-width:860px}   /* 狭い幅では列を詰めず、既存の .tbl の中で横に送る(案内の「表は横にスクロールできます」は table-hint が出す) */
}
@media(max-width:600px){
 .tsim{flex-direction:column}.tsim-field select{width:100%}
 .res-page .entry-content .tsim-table{table-layout:auto;min-width:0;border:0;border-radius:0;overflow:visible}
 .res-page .entry-content .tsim-table thead{display:none}
 .res-page .entry-content .tsim-table,.res-page .entry-content .tsim-table tbody{display:block}
 .res-page .entry-content .tsim-table tr,.res-page .entry-content .tsim-table tbody tr:nth-child(even){display:grid;grid-template-columns:2em minmax(0,1fr) min-content;gap:4px 8px;margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
 .res-page .entry-content .tsim-table td{display:block;min-width:0;padding:0;border:0}
 .res-page .entry-content .tsim-table td:nth-child(1){grid-column:1;font-weight:700;font-size:18px;line-height:1.3;color:var(--brand)}
 .res-page .entry-content .tsim-table td:nth-child(1){grid-row:1}
 .res-page .entry-content .tsim-table td:nth-child(2){display:contents}   /* 大学名は1行目(順位|大学名|総額)、課程名は2行目の全幅(総額の右側に押し込まれて語の途中で折れない) */
 .res-page .entry-content .tsim-table td:nth-child(2) strong{grid-row:1;grid-column:2}
 .res-page .entry-content .tsim-table td:nth-child(2) .course{grid-row:2;grid-column:1/-1}
 .res-page .entry-content .tsim-table td:nth-child(n+3){grid-column:1/-1;display:flex;gap:8px;align-items:baseline}
 .res-page .entry-content .tsim-table td:nth-child(n+3)::before{content:attr(data-label);flex:0 0 5.5em;font-size:12px;font-weight:700;color:var(--sub);line-height:1.5}
 .res-page .entry-content .tsim-table td:nth-child(n+3) .tv{flex:1 1 0;min-width:0}
 .res-page .entry-content .tsim-table td:nth-child(3) .amt{font-size:16px}
 .res-page .entry-content .tsim-table td:nth-child(3){grid-row:1;grid-column:3;display:block;text-align:right}   /* 総額は1行目の右(順位|大学名|総額)。スマホの最初の画面に入れる */
 .res-page .entry-content .tsim-table td:nth-child(3)::before{display:none}
 .res-page .entry-content .lead{padding:0;background:none;font-size:15px;line-height:1.7}   /* 説明の枠の余白と地をやめ、文字を少し小さく(スマホの最初の画面に総額を入れる) */
 .tsim{margin:12px 0;padding:12px 14px}
 .res-page .entry-content .tsim-head{font-size:15px;margin:10px 0 6px}
 .res-page .entry-content .tsim-table .nw{display:inline-block;max-width:100%;white-space:normal;word-break:normal;line-break:strict;overflow-wrap:break-word}
}
