/* Kaeru Voyage — after Hokusai: washi paper, sumi ink, Prussian blue, a seigaiha band.
   No web fonts: the reader's own Japanese fonts (mincho for headings, gothic for the rest). */
:root {
  --bg: #f6f1e7; --paper: #fffdf8; --ink: #1b2433; --muted: #5a6273; --line: #e3d9c6;
  --ai: #1f4e79; --ai-soft: #e8eef4; --ai-ink: #ffffff;
  --ok: #2b6a4c; --ok-bg: #e2eee6; --edge: #8a5a10; --edge-bg: #f6e9cf; --past: #8a8f99; --bengara: #a63c28;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 var(--sans); }
a { color: var(--ai); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid #9bb6cf; outline-offset: 2px; }
h1, h2, .brand .name { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; }

/* header and the wave band */
header.site { background: var(--paper); }
header.site .inner { max-width: 980px; margin: 0 auto; padding: 14px 16px 8px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; text-decoration: none; color: var(--ink); }
.brand .name { font-size: 23px; }
.brand .name::before { content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 8px; vertical-align: -1px;
  background: url("favicon.svg") no-repeat center / contain; }
.brand .tag { font-size: 14px; color: var(--muted); }
header.site nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 8px; }
header.site nav a { padding: 6px 10px; border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; }
header.site nav a:hover { background: var(--ai-soft); }
header.site nav a[aria-current="page"], header.site nav a[aria-current="true"] { background: var(--ai); color: var(--ai-ink); }
header.site nav .short { display: none; }
@media (max-width: 560px) {   /* phones: four short labels in one row; "このサイトについて" is in the footer */
  header.site nav { flex-wrap: nowrap; gap: 2px; justify-content: space-between; }
  header.site nav a { padding: 6px 8px; font-size: 14px; }
  header.site nav .long, header.site nav a.wide { display: none; }
  header.site nav .short { display: inline; }
}
@media (max-width: 350px) { header.site nav a { padding: 6px 5px; font-size: 13.5px; } }
/* skip link: shown only when focused with the keyboard */
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ai); color: var(--ai-ink); padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }   /* hidden wins over any display set below */
.seigaiha { height: 15px; background: url("seigaiha.svg") repeat-x left top / 20px 10px; border-top: 1px solid var(--line); }

/* the print on the top page */
figure.print { margin: 0 auto; max-width: 980px; padding: 0 16px; }
figure.print img { display: block; width: 100%; height: auto; border-radius: 0 0 var(--radius) var(--radius); }
figure.print figcaption { font-size: 12px; color: var(--muted); text-align: right; padding: 4px 2px 0; line-height: 1.5; }
figure.print figcaption a { color: var(--muted); }
@media (max-width: 560px) {
  figure.print img { height: 128px; object-fit: cover; object-position: 50% 30%; }
  figure.print figcaption { font-size: 11px; }
}

main { max-width: 980px; margin: 0 auto; padding: 4px 16px 40px; }
h1 { font-size: 25px; line-height: 1.5; margin: 18px 0 8px; }
.nb { display: inline-block; }
h2 { font-size: 21px; margin: 32px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--ai); }
h3.month { font-size: 15px; color: var(--muted); margin: 22px 0 8px; font-weight: 600; letter-spacing: .04em; }
.intro p { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; line-height: 1.75; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.crumb { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

/* cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; }
.card.past { opacity: .6; }
.card.single { margin: 8px 0 18px; }
.card .date { margin: 0; font-weight: 700; color: var(--ai); font-size: 15px; }
.card h4 { margin: 2px 0 8px; font-family: var(--serif); font-size: 18.5px; line-height: 1.45; }
.card h4 a { color: var(--ink); text-decoration: none; }
.card h4 a:hover { text-decoration: underline; }
.chip { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.65; padding: 0 8px; border-radius: 999px; margin-left: 6px; vertical-align: 3px; white-space: nowrap; }
.chip.pref { background: var(--ai-soft); color: var(--ai); }
.chip.sex { background: #f1ebe0; color: #6b5636; }
.chip.past { background: #ebe7df; color: var(--past); }
.card dl { margin: 0; display: grid; grid-template-columns: 7.4em 1fr; gap: 4px 10px; font-size: 14.5px; line-height: 1.7; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.card dd ul { margin: 0; padding-left: 1.1em; }
.card .notes { font-size: 13.5px; background: var(--ai-soft); border-radius: 6px; padding: 4px 9px; margin: 10px 0 0; }
.src { margin: 10px 0 0; font-size: 13.5px; }
@media (max-width: 420px) { .card dl { grid-template-columns: 1fr; gap: 0; } .card dd { margin-bottom: 6px; } }
.d { white-space: nowrap; }
.d.done { color: var(--past); }
.d.done::after { content: "（済）"; font-size: .85em; }

/* the top page: what the site does, why to trust it, three steps */
.intro .lead { font-size: 16px; line-height: 1.85; }
ul.trust { list-style: none; padding: 0; margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
ul.trust li { font-size: 12.5px; color: var(--ai); background: var(--ai-soft); border-radius: 999px; padding: 3px 10px; }
ol.steps { margin: 12px 0 8px; padding-left: 1.5em; }
ol.steps li { margin: 8px 0; line-height: 1.75; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick a { font-size: 13.5px; padding: 6px 11px; border: 1px solid var(--ai); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.quick a:hover, .btn:hover { background: var(--ai-soft); }
.quick a.main { background: var(--ai); color: var(--ai-ink); font-weight: 600; }
.quick a.main:hover { background: var(--ai); opacity: .9; }
.combo-row:target { outline: 2px solid var(--ai); outline-offset: 6px; border-radius: var(--radius); scroll-margin-top: 16px; }

/* buttons: open the official document, add to a calendar, send the page */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--ai); border-radius: var(--radius); background: var(--paper); color: var(--ai); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.btn.primary { background: var(--ai); color: var(--ai-ink); }
.btn.primary:hover { background: #173d61; }
p.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; }
p.share[hidden], p.share button[hidden] { display: none; }
p.share button { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer; }
p.share button:hover { border-color: var(--ai); }
p.share .done { font-size: 13px; color: var(--ok); }

/* deadlines and recent updates */
p.latest { margin-top: 10px; }
ul.recent { list-style: none; padding: 0; margin: 6px 0; font-size: 14px; }
ul.recent li { padding: 2px 0; }
ul.recent .when { display: inline-block; min-width: 4.6em; color: var(--muted); }
.deadlines-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; margin: 18px 0 8px; }
.deadlines-box h2 { font-size: 18px; margin: 12px 0 6px; }
ul.deadlines { list-style: none; padding: 0; margin: 6px 0; font-size: 14.5px; }
ul.deadlines li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 9.4em 1fr; column-gap: .6em; align-items: baseline; }
ul.deadlines li:last-child { border-bottom: 0; }
ul.deadlines li .when { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
ul.deadlines li .when .d { font-weight: 700; color: var(--bengara); font-size: 14.5px; }
ul.deadlines li .when .d.done { color: var(--past); font-weight: 400; }
ul.deadlines li .what { display: flex; flex-wrap: wrap; column-gap: .6em; align-items: baseline; }
ul.deadlines li .what a { color: var(--ink); }
ul.deadlines li .sub { color: var(--muted); font-size: 13px; }
.how { color: var(--muted); font-size: 13px; }
dd .win { display: flex; flex-wrap: wrap; column-gap: .6em; align-items: baseline; }
dd .win + .win { margin-top: 6px; }
dd .win > .nb:first-child { margin-right: -.6em; }
dd .win .why { flex-basis: 100%; }
ul.deadlines li .why { flex-basis: 100%; }
.deadlines-box ul.deadlines li.past, .deadlines-box ul.deadlines li.over, .deadlines-box.empty { display: none; }
ul.deadlines.all li { grid-template-columns: 1fr; row-gap: 2px; }
ul.deadlines.all li .when { font-size: 13.5px; white-space: normal; }
@media (max-width: 520px) {   /* phones: the day on its own line, then the school and the exam */
  .deadlines-box ul.deadlines li { grid-template-columns: 1fr; row-gap: 1px; }
}
ul.deadlines.all li .what { padding-left: 1em; }
ul.deadlines.all li.past .what { opacity: .65; }
h2.month { font-size: 17px; }

/* tables on the school pages *//* tables on the school pages */
.tablewrap { overflow-x: auto; }
table.elig { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; }
table.elig th, table.elig td { border-bottom: 1px solid var(--line); padding: 8px 8px; text-align: left; vertical-align: top; }
table.elig th { background: var(--ai-soft); font-size: 13px; }
table.elig td.name { font-weight: 600; }
th.c-name { width: 17%; } th.c-date { width: 13%; }
.track { color: var(--muted); font-size: 13px; font-weight: 400; }
.why { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 719px) {
  table.elig, table.elig tbody, table.elig tr, table.elig td { display: block; width: 100%; }
  table.elig thead { display: none; }
  table.elig tr { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; padding: 8px 12px; }
  table.elig td { border: 0; padding: 3px 0; }
  table.elig td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  table.elig td.name { font-size: 15.5px; }
}

/* 受験資格から探す: the combinations, as links (no input fields) */
.combos h3 { font-size: 15px; margin: 20px 0 6px; }
.cells { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 720px) { .cells { grid-template-columns: repeat(5, 1fr); } }
.cell { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px; text-decoration: none; color: var(--ink); min-height: 44px; font-size: 14px; line-height: 1.45; }
a.cell:hover { border-color: var(--ai); background: var(--ai-soft); }
.cell .n { font-weight: 700; color: var(--ok); white-space: nowrap; }
.cell .sub { font-weight: 400; color: var(--edge); font-size: 12.5px; margin-left: 4px; }
.cell.none { color: var(--muted); background: transparent; }
.cell.none .n { color: var(--muted); font-weight: 400; }
@media (min-width: 720px) { .cell { flex-direction: column; align-items: flex-start; } }

/* one combination */
.status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.mostly { background: #fff; color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.status.edge { background: var(--edge-bg); color: var(--edge); }
ul.hits { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
ul.hits li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
ul.hits li.past { opacity: .6; }
ul.hits .head { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
ul.hits .head .status { margin-right: 8px; vertical-align: 1px; }
ul.hits .head a { color: var(--ink); font-family: var(--serif); }
ul.hits .why { margin: 0 0 4px; font-size: 13px; color: var(--edge); }
ul.hits .rule { margin: 4px 0; font-size: 14px; }

/* this year's changes */
ul.events { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
ul.events li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
ul.events p { margin: 2px 0; }
ul.events .ev { font-weight: 700; }
ul.events .ev a { color: var(--ink); font-family: var(--serif); }
ul.events .kind { display: inline-block; font-size: 12px; background: var(--ai); color: var(--ai-ink); border-radius: 4px; padding: 0 7px; margin-right: 8px; vertical-align: 2px; }

/* 中学校・高校・小学校の一覧：はじめは見出しだけ。押すと開く（動きは site.js。動きを減らす設定では動かさない） */
section.level { margin-top: 12px; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--ai); border-radius: var(--radius);
  padding: 14px 16px; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::marker { content: ""; }
details.fold > summary:hover { background: var(--ai-soft); box-shadow: 0 2px 8px rgba(31, 78, 121, .12); }
details.fold > summary:active { transform: scale(.985); }
details.fold > summary:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; }
details.fold[open] > summary { background: var(--ai-soft); }
details.fold > summary h2 { flex: 1; margin: 0; padding: 0; border: 0; font-size: 21px; line-height: 1.4; }
details.fold > summary .count { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 12px; vertical-align: 2px; }
details.fold > summary .fold-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ai); white-space: nowrap; }
details.fold > summary .fold-hint::before { content: "ひらく"; }
details.fold[open] > summary .fold-hint::before { content: "とじる"; }
details.fold > summary .fold-hint::after { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
details.fold[open] > summary .fold-hint::after { transform: translateY(2px) rotate(225deg); }
.fold-body { padding: 0 2px 6px; }
.fold-body > h3.month:first-child { margin-top: 16px; }
.fold-body > ul.hits { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  details.fold > summary, details.fold > summary .fold-hint::after { transition: none; }
  details.fold > summary:active { transform: none; }
}

.prose h2 { font-size: 19px; }
.prose li { margin: 4px 0; }
.prose figure { margin: 12px 0; }
.prose figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* the note lists and the jump links (受験資格から探す, 出願の締め切り) */
ul.notes { margin: 8px 0; padding-left: 1.2em; color: var(--muted); font-size: 14px; line-height: 1.75; }
ul.notes li { margin: 2px 0; }
nav.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 4px; }
nav.jump .lbl { font-size: 13.5px; color: var(--muted); margin-right: 2px; }
nav.jump a { display: inline-block; padding: 5px 11px; border: 1px solid var(--ai); border-radius: 999px; background: var(--paper); font-size: 13.5px; text-decoration: none; line-height: 1.4; }
nav.jump a:hover { background: var(--ai-soft); }
nav.jump a.next { background: var(--ai); color: var(--ai-ink); }
nav.jump a.done { border-color: var(--line); color: var(--past); }
h2.month { scroll-margin-top: 12px; }

/* results pages: the legend and the other combinations */
ul.legend { list-style: none; margin: 10px 0 4px; padding: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
ul.legend li { margin: 4px 0; }
ul.legend .status { margin-right: 8px; }
.other-combos h2 { font-size: 19px; }
.other-combos .lbl { font-size: 13.5px; color: var(--muted); margin: 12px 0 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pill { display: inline-flex; flex-direction: column; padding: 6px 12px; border: 1px solid var(--ai); border-radius: var(--radius); background: var(--paper); font-size: 14px; line-height: 1.4; text-decoration: none; }
.pill .n { font-size: 12px; color: var(--muted); }
a.pill:hover { background: var(--ai-soft); }
.pill.here { background: var(--ai); color: var(--ai-ink); border-color: var(--ai); }
.pill.here .n { display: none; }
.pill.none { border-color: var(--line); color: var(--past); }

/* school pages: the stay and return grid, other schools */
table.grid { border-collapse: collapse; background: var(--paper); font-size: 13.5px; min-width: 100%; text-align: center; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 0; }
table.grid thead th { background: var(--ai-soft); font-size: 12.5px; font-weight: 600; padding: 6px 4px; line-height: 1.4; }
table.grid th.corner { font-size: 11.5px; color: var(--muted); }
table.grid tbody th { background: var(--ai-soft); font-size: 12.5px; font-weight: 600; padding: 6px 6px; white-space: nowrap; }
table.grid td a, table.grid td > span { display: block; padding: 8px 4px; font-size: 17px; line-height: 1.2; text-decoration: none; }
table.grid td a:hover { background: var(--ai-soft); }
table.grid td.ok a { color: var(--ok); font-weight: 700; }
table.grid td.mostly a { color: var(--ai); font-weight: 700; }
table.grid td.edge a { color: var(--edge); font-weight: 700; }
table.grid td.no a, table.grid td.no > span { color: var(--past); }
.grid-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 8px; font-size: 13px; }
.grid-legend .ok { color: var(--ok); } .grid-legend .mostly { color: var(--ai); } .grid-legend .edge { color: var(--edge); } .grid-legend .no { color: var(--past); }
section.more h3 { font-size: 15px; margin: 14px 0 6px; }
ul.related { list-style: none; margin: 0; padding: 0; }
ul.related li { padding: 6px 0; border-bottom: 1px dashed var(--line); line-height: 1.6; }
ul.related li a { font-weight: 600; }
ul.related .chip { margin-left: 8px; }
ul.related .ex { display: block; font-size: 13px; color: var(--muted); }

/* 受験資格から探す: the month picker (sagasu.js) */
section.keisan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; margin: 16px 0 22px; }
section.keisan > h2 { margin-top: 4px; }
.ks-form fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.ks-form legend { padding: 0; margin: 0 0 4px; font-weight: 600; font-size: 14.5px; }
.ks-form legend .sub { margin-left: 8px; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.ks-form select { font: inherit; font-size: 16px; min-height: 44px; padding: 6px 10px; margin: 0 6px 6px 0; border: 1px solid #b4bdca; border-radius: 8px; background: #fff; color: var(--ink); }
.ks-form select:disabled { background: #f1f0ec; color: var(--past); }
.ks-form select:focus-visible, .ks-form input:focus-visible { outline: 3px solid #9bb6cf; outline-offset: 1px; }
.ks-form label.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.ks-form input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ai); }
.ks-form .ks-opt { margin: 0; }
.ks-out { margin: 8px 0; }
.ks-msg { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--ai-soft); font-size: 14.5px; }
.ks-sum { margin: 8px 0 4px; padding: 10px 12px; border-left: 4px solid var(--ai); background: #fff; border-radius: 0 8px 8px 0; }
.ks-sum p { margin: 0 0 4px; }
.ks-sum ul { margin: 4px 0 8px; padding-left: 1.2em; font-size: 14.5px; }
.ks-count { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.ks-count a { text-decoration: none; color: var(--ink); }
.status.no { background: #ecebe6; color: var(--muted); }
section.keisan details.fold > summary h3 { flex: 1; margin: 0; padding: 0; border: 0; font-size: 18px; line-height: 1.4; }
section.keisan .ks-group { margin: 6px 0; }
/* the next years' reference: marked as such, without this year's exam days */
.ref-only, .ref-mark { display: none; }
section.keisan.is-ref .ref-only { display: inline; font-weight: 600; color: var(--muted); }
section.keisan.is-ref .ref-mark { display: inline; font-size: 15px; color: var(--muted); }
section.keisan.is-ref .exam, section.keisan.is-ref .past-slot { display: none; }
.ks-sum.ref { border-left-color: var(--edge); }
.ks-ref { margin: 6px 0 4px; padding: 8px 10px; border-radius: 6px; background: var(--edge-bg); font-size: 14px; line-height: 1.7; }
#keisan, #kumiawase, .ks-group { scroll-margin-top: 12px; }

/* back to the top */
.totop { position: fixed; right: 14px; bottom: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ai); color: var(--ai-ink); text-decoration: none; font-size: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); opacity: .92; }
.totop:hover { opacity: 1; }
.totop[hidden] { display: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

footer.site { background: var(--paper); color: var(--muted); font-size: 13px; }
footer.site .inner { max-width: 980px; margin: 0 auto; padding: 12px 16px 16px; }
footer.site p { margin: 0 0 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 12px; font-size: 14px; }
.foot-schools { margin: 0 0 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot-schools h2 { font-size: 15px; border: 0; margin: 0 0 4px; padding: 0; color: var(--ink); }
.foot-schools h3 { font-size: 13px; margin: 8px 0 2px; color: var(--ink); }
.foot-schools p { display: flex; margin: 0; line-height: 1.9; }
.foot-schools .pref { flex: 0 0 4.5em; font-weight: 600; color: var(--muted); }
.foot-schools .list { flex: 1 1 auto; min-width: 0; }
.foot-schools a { display: inline-block; margin-right: 12px; }
.foot-schools a[aria-current="page"] { color: var(--ink); text-decoration: none; }

@media print {
  header.site nav, .seigaiha, figure.print, footer.site, .totop, nav.jump, .skip, .other-combos .pills { display: none; }
  body { background: #fff; }
  .card, ul.hits li { break-inside: avoid; }
  details.fold > summary { background: none; border: 0; border-bottom: 2px solid var(--ai); border-radius: 0; padding: 0 0 4px; }
  details.fold > summary .fold-hint { display: none; }
}
