:root {
  --ink: #18212b;
  --ink-soft: #344454;
  --muted: #687684;
  --line: #e4e8eb;
  --paper: #f7f8f6;
  --white: #ffffff;
  --brand: #173b67;
  --accent: #e88a27;
  --accent-soft: #fff4e7;
  --blue-soft: #eef4f9;
  --green-soft: #edf7f2;
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.72; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[data-wrap-unit] { white-space: nowrap; }
h1, h2, h3, h4, p, li, a, strong, span { word-break: auto-phrase; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: #ffe0b4; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.topbar { width: min(1120px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 285px; height: 48px; flex: 0 0 auto; background: url("/schools/assets/brand/research-room-logo.svg") left center / contain no-repeat; }
.brand > * { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbar nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; }
.topbar nav a { position: relative; padding: 7px 0; }
.topbar nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; background: var(--brand); transform: scaleX(0); transition: transform .18s ease; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a:hover::after { transform: scaleX(1); }

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 66px 0 100px; }
.hero, .school-hero, .research-hero { padding: 26px 0 70px; }
.hero-home { padding: 42px 0 82px; }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; max-width: 930px; font-size: clamp(48px, 7.4vw, 82px); line-height: 1.04; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(29px, 4vw, 44px); line-height: 1.16; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.015em; }
h4 { margin: 0; font-size: 15px; }
.lead { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.85; }
.jp-name { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.jp-name.large { margin-top: 9px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 750; transition: transform .18s ease, background-color .18s ease; }
.button.primary { color: white; background: var(--brand); border-color: var(--brand); }
.button.secondary { background: var(--white); }
.button:hover { transform: translateY(-1px); }
.text-link { color: var(--brand); font-size: 13px; font-weight: 760; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 34px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 28px; line-height: 1.1; }
.stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-block { padding: 72px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.section-heading > div { min-width: 0; }
.section-copy { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.quiet-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.panel { margin-bottom: 20px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.compact-panel { padding-bottom: 26px; }
.muted, .source-note { color: var(--muted); }
.source-note { font-size: 12px; }

.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.insight-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.insight-meta, .update-meta { margin: 0 0 11px; color: var(--accent); font-size: 11px; font-weight: 820; letter-spacing: .07em; }
.insight-card h3 { font-size: 22px; }
.insight-conclusion { margin: 13px 0 0; color: var(--ink-soft); font-size: 16px; font-weight: 680; }
.insight-card ul { margin: 16px 0 18px; padding-left: 19px; color: var(--muted); font-size: 13px; }
.insight-card li + li { margin-top: 7px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.profile-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.profile-card-top { display: block; }
.profile-card .fee { margin-top: 16px; text-align: left; }
.profile-card .fee strong { display: block; font-size: 22px; }
.profile-card .fee span { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-summary { margin: 17px 0 0; font-size: 15px; }
.profile-facts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.profile-facts p { margin: 6px 0; }
.profile-link { display: inline-block; margin-top: 16px; }
.evidence-label, .confidence { display: inline-block; padding: 4px 7px; border-radius: 999px; color: var(--brand); background: var(--blue-soft); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; }
.chips span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12px; }
.compact-chips { margin: 14px 0; }
.updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.update-card { padding: 22px 0 4px; border-top: 2px solid var(--ink); background: transparent; }
.update-card h3 { font-size: 18px; }
.update-summary { margin: 11px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.update-details { margin: 12px 0 0; padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.update-details li + li { margin-top: 6px; }
.update-meaning { margin: 12px 0 15px; padding-left: 12px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 12px; line-height: 1.75; }
.update-meaning strong { display: block; margin-bottom: 3px; color: var(--accent); font-size: 11px; font-weight: 820; letter-spacing: .06em; }
.update-status { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.update-status.status-expired { background: var(--muted); }
.update-status.status-superseded { background: var(--brand); }
.updates-timeline { display: flex; flex-direction: column; margin-top: 30px; }
.updates-timeline .update-card { padding: 30px 0 16px; }
.updates-hero { padding-bottom: 46px; }
.research-layer { background: #f2f4f3; margin-inline: calc((100vw - min(1120px, calc(100vw - 48px))) / -2); padding-inline: calc((100vw - min(1120px, calc(100vw - 48px))) / 2); }
.research-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.research-home-card { display: block; min-width: 0; padding: 24px; border: 1px solid #dbe0e2; border-radius: 16px; background: #fff; }
.research-home-card h3 { margin-top: 12px; font-size: 19px; }
.research-home-card p { min-height: 7em; margin: 12px 0 16px; color: var(--muted); font-size: 13px; }
.research-home-card .text-link { display: inline-block; }
.method-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; padding: 68px 0 10px; border-top: 1px solid var(--line); }
.method-note ul { margin: 0; padding-left: 20px; color: var(--muted); }
.method-note li + li { margin-top: 10px; }
footer { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.school-meta-line { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.comparison-unit { display: inline-block; margin: 15px 0 0; padding: 7px 10px; border-radius: 999px; color: var(--brand); background: var(--blue-soft); font-size: 12px; font-weight: 760; }
.warning-box { margin: -26px 0 20px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }
.warning-box p { margin: 5px 0 0; }
.fit-two-col, .judgment-two-col, .question-panel, .boundary-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fit-two-col > div, .judgment-two-col > div { padding: 17px; border-radius: 13px; background: var(--paper); }
.fit-two-col ul, .question-panel ul, .question-panel ol, .detail-split ul, .boundary-panel ul, .panel > ol { margin-bottom: 0; padding-left: 20px; }
.fit-two-col li, .question-panel li, .detail-split li, .boundary-panel li, .panel > ol li { margin-bottom: 7px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.fact-grid article { padding: 16px; border-radius: 13px; background: var(--paper); }
.fact-grid span { color: var(--brand); font-size: 11px; font-weight: 800; }
.fact-grid p { margin: 7px 0 0; }
.fee-rows { display: grid; gap: 9px; margin-top: 18px; }
.fee-row { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: start; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; }
.fee-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.fee-row .source-note { grid-column: 1 / -1; }
.fee-value { font-size: 19px; }
.campus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.campus-grid article { padding: 17px; border-radius: 13px; background: var(--paper); }
.campus-fee { color: var(--brand); font-weight: 800; }
.detail-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; overflow: hidden; }
.detail-split > article { padding: 27px; }
.detail-split > article + article { border-left: 1px solid var(--line); }
.detail-split h2 { font-size: 26px; }
.judgment-panel { background: var(--accent-soft); }
.judgment-two-col { margin-top: 20px; }
.judgment-two-col > div { background: white; }
.judgment-two-col span { color: var(--brand); font-size: 11px; font-weight: 850; }
.question-panel > div + div, .boundary-panel > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.related-card { display: block; margin-top: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.related-card span, .related-card small { display: block; }
.related-card span { color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.related-card strong { display: block; margin: 6px 0; font-size: 17px; }
.related-card small { color: var(--muted); }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.source-card { padding: 13px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 12px; }
.source-card a { display: block; margin-top: 7px; color: var(--brand); font-size: 12px; font-weight: 760; text-decoration: underline; }
.research-library-page, .research-reader-page, .guide-page { width: min(1050px, calc(100% - 48px)); }
.research-library-hero, .guide-hero { padding: 44px 0 62px; }
.research-library-hero h1, .guide-hero h1 { font-size: clamp(42px, 6.4vw, 72px); }
.research-library-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.research-library-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); background: transparent; }
.research-cover { min-height: 112px; overflow: hidden; border-radius: 10px; background: var(--blue-soft); }
.research-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.research-card-body { padding: 2px 0; }
.research-card-body h3 { margin-top: 8px; font-size: 23px; }
.research-card-body p { max-width: 700px; margin: 9px 0 12px; color: var(--muted); font-size: 13px; }
.research-method-callout { margin-top: 36px; background: #f2f3ef; }
.research-reader-page { width: min(1060px, calc(100% - 48px)); }
.research-reader-hero { display: block; max-width: 850px; padding: 54px 0 54px; border-bottom: 1px solid var(--line); }
.research-reader-hero h1 { max-width: 850px; font-size: clamp(40px, 5.7vw, 65px); line-height: 1.12; }
.research-reader-hero .lead { max-width: 760px; margin-top: 22px; font-size: 16px; }
.research-reader-cover { display: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.article-meta span { padding: 0; border: 0; background: none; }
.reader-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 38px; }
.reader-toc { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; padding: 0 18px 0 0; border-right: 1px solid var(--line); }
.reader-toc nav { display: grid; gap: 8px; font-size: 12px; }
.reader-toc a { color: var(--muted); line-height: 1.5; }
.reader-toc a:hover { color: var(--brand); }
.research-article, .guide-article { min-width: 0; max-width: 800px; }
.research-article > h2, .research-article > h3, .research-article > h4, .guide-article > h2, .guide-article > h3, .guide-article > h4 { margin-top: 42px; }
.research-article > h2, .guide-article > h2 { font-size: 29px; padding-top: 8px; }
.research-article > h3, .guide-article > h3 { font-size: 21px; }
.research-article p, .guide-article p { color: #334250; }
.research-article a, .guide-article a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.research-article blockquote, .guide-article blockquote { margin: 25px 0; padding: 16px 20px; border-left: 3px solid var(--ink); background: #f0f2f1; color: var(--ink); text-wrap: balance; }
.research-summary { margin-bottom: 32px; padding: 22px 0 22px 22px; border: 0; border-left: 3px solid var(--brand); border-radius: 0; background: transparent; }
.research-summary ul, .research-boundary ul { margin-bottom: 0; }
.research-table { max-width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); background: white; }
.research-table table { min-width: 680px; width: 100%; border-collapse: collapse; font-size: 12px; }
.research-table th, .research-table td { min-width: 10em; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; text-wrap: pretty; vertical-align: top; }
.research-table th { color: var(--ink); background: #f0f2f1; font-weight: 800; }
.research-table tr:last-child td { border-bottom: 0; }
.research-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 46px; padding: 24px; background: #f3f2ec; }
.research-boundary > div + div { padding-left: 24px; border-left: 1px solid rgba(100,110,115,.25); }
.reader-related { margin-top: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-eyebrow { margin-top: 34px; }
.research-references { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.research-references h2 { font-size: 25px; }
.research-references p { color: var(--muted); font-size: 12px; }
.research-reference-list { margin: 18px 0 0; padding: 0; list-style: none; }
.research-reference-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.research-reference-list a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.research-reference-list small { display: block; margin-top: 2px; color: var(--muted); }
.guide-article { padding-bottom: 30px; }
.guide-article h2 { font-size: 29px; }
.guide-article h3 { font-size: 20px; }
.back-to-top { position: fixed; right: 20px; bottom: 22px; z-index: 20; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: rgba(24,33,43,.34); background: rgba(255,255,255,.68); box-shadow: none; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(7px); transition: opacity .18s ease, transform .18s ease, color .18s ease, background .18s ease; backdrop-filter: blur(5px); }
.back-to-top span { font-size: 15px; line-height: 1; transform: translateY(-1px); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { color: rgba(24,33,43,.72); background: rgba(255,255,255,.92); }
@media (max-width: 960px) { .profile-grid, .source-grid, .updates-grid { grid-template-columns: 1fr 1fr; } .research-home-grid { grid-template-columns: 1fr; } .research-home-card p { min-height: 0; } .detail-split { grid-template-columns: 1fr; } .detail-split > article + article { border-left: 0; border-top: 1px solid var(--line); } .method-note { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 800px) { .topbar { min-height: 66px; } .topbar nav { display: none; } main { padding-top: 44px; } .insight-grid, .fit-two-col, .judgment-two-col, .question-panel, .boundary-panel { grid-template-columns: 1fr; } .reader-layout { grid-template-columns: 1fr; gap: 24px; } .reader-toc { position: static; max-height: none; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); } .reader-toc nav { display: flex; flex-wrap: wrap; gap: 7px; } .reader-toc a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: white; } .research-boundary { grid-template-columns: 1fr; } .research-boundary > div + div { padding: 22px 0 0; border-top: 1px solid rgba(100,110,115,.25); border-left: 0; } }
@media (max-width: 620px) { .brand { width: 240px; height: 42px; } main, .topbar, footer, .research-library-page, .research-reader-page, .guide-page { width: min(100% - 30px, 1120px); } .hero-home { padding-top: 26px; } h1 { font-size: clamp(42px, 13vw, 58px); } .section-block { padding: 55px 0; } .section-heading { display: block; } .section-heading .text-link, .quiet-note { display: inline-block; margin-top: 13px; } .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; } .stats strong { font-size: 23px; } .profile-grid, .source-grid, .updates-grid, .fact-grid, .campus-grid { grid-template-columns: 1fr; } .panel { padding: 23px; border-radius: 15px; } .research-layer { margin-inline: -15px; padding-inline: 15px; } .research-library-card { grid-template-columns: 1fr; gap: 14px; } .research-cover { display: none; } .research-reader-hero { padding-top: 34px; } .research-reader-hero h1 { font-size: 38px; } .related-grid { grid-template-columns: 1fr; } .back-to-top { right: 12px; bottom: max(14px, calc(14px + env(safe-area-inset-bottom))); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
