.MapCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.InsetCanvas {
  display: block;
  cursor: pointer;
}

.MapAttribution {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 16px;
  text-align: right;
  word-break: break-all;
  pointer-events: none;
  z-index: 5;
}

.MapSelect {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  box-sizing: border-box;
  max-height: 240px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.MapSelect-Option {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: 28px;
  flex-shrink: 0;
  padding: 0 20px 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--color-muted);
  text-decoration: none;
  appearance: none;
  border: none;
  background: none;
  border-radius: 2px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.MapSelect-Option:hover:not([data-current]) {
  background: var(--color-panel-header-background);
}
.MapSelect-Option[data-current] {
  color: var(--color-font);
  cursor: default;
}

.MapSelect-Option-Check {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  visibility: hidden;
}
.MapSelect-Option-Check svg {
  display: block;
  width: 10px;
  height: 10px;
}

.MapSelect-Option[data-current] .MapSelect-Option-Check {
  visibility: visible;
}

.MapSelect-Option-Label {
  white-space: nowrap;
}

.MapPanel {
  position: relative;
  min-width: 180px;
  max-width: min(360px, 100vw - 32px);
  max-height: calc(100vh - 56px - 24px);
  display: flex;
  flex-direction: column;
  background: var(--color-panel-background);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  overflow: hidden;
}
.MapPanel:not([data-open]) {
  display: none;
}
.MapPanel[data-float] {
  position: fixed;
  z-index: 10;
}
.MapPanel-Header {
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.MapPanel-Header:active {
  cursor: grabbing;
}
.MapPanel-Title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  background: var(--color-panel-header-background);
  border-bottom-right-radius: 12px;
  font-size: 11px;
  color: var(--color-font);
}
.MapPanel-Close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-font);
  cursor: pointer;
}
.MapPanel-Close svg {
  width: 9px;
  visibility: hidden;
}
.MapPanel-Close:hover svg {
  visibility: visible;
}
.MapPanel-Body {
  flex: 1;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.MapPanel-Row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.MapPanel-Row + .MapPanel-Row {
  margin-top: 6px;
}
.MapPanel-Label {
  font-size: 11px;
  color: var(--color-muted);
}
.MapPanel-Value {
  font-size: 13px;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}

.MapPanel:has(.MapSelect) {
  min-width: 0;
}

.PanelResize {
  position: absolute;
  z-index: 1;
  touch-action: none;
  display: none;
}
.PanelResize[data-edge=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.PanelResize[data-edge=s] {
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  cursor: ns-resize;
}
.PanelResize[data-edge=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.PanelResize[data-edge=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.PanelResize[data-edge=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}
.PanelResize[data-edge=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.PanelResize[data-edge=se] {
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.PanelResize[data-edge=sw] {
  left: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}

.MapLegend {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  box-sizing: border-box;
  max-height: 296px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.MapLegend-Group {
  display: flex;
  flex-direction: column;
}
.MapLegend-Group + .MapLegend-Group {
  margin-top: 2px;
}
.MapLegend-Group[data-off] .MapLegend-Swatch {
  opacity: 0.25;
}
.MapLegend-Head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  flex-shrink: 0;
  padding: 0 16px 0 12px;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-font);
  text-align: left;
}
.MapLegend-Head:hover {
  background: var(--color-panel-header-background);
}
.MapLegend-Item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  flex-shrink: 0;
  padding: 0 16px 0 30px;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-muted);
  text-align: left;
}
.MapLegend-Item:hover {
  background: var(--color-panel-header-background);
}
.MapLegend-Item[data-off] .MapLegend-Dot {
  opacity: 0.2;
}
.MapLegend-Item[data-off] .MapLegend-Label {
  text-decoration: line-through;
  opacity: 0.6;
}
.MapLegend-Swatch {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.MapLegend-Dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.MapLegend-Label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.MapPanel-Link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-link);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.MapPanel-Link:hover {
  text-decoration: underline;
}

.MapInfo {
  padding: 12px 16px 14px;
  box-sizing: border-box;
}
.MapInfo-Lead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-font);
}
.MapInfo-Body {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-muted);
}
.MapInfo-Body p {
  margin: 0 0 10px;
}
.MapInfo-Body p:last-child {
  margin-bottom: 0;
}
.MapInfo-Rows {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}
.MapInfo-Links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.MapPanel:has(.MapInfo-Body) {
  width: 340px;
}

.MapSummary {
  padding: 12px 16px 14px;
  box-sizing: border-box;
}
.MapSummary-Row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
}
.MapSummary-Row[data-total] {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
}
.MapSummary-Row[data-total] .MapSummary-Label {
  color: var(--color-font);
}
.MapSummary-Swatch {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.MapSummary-Label {
  flex: 1;
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}
.MapSummary-Value {
  font-size: 13px;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}

.MapPanel:has(.MapSummary) {
  width: 220px;
}

.TokyoUniversity {
  padding: 12px 16px 14px;
  box-sizing: border-box;
}
.TokyoUniversity-Lead {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-font);
}
.TokyoUniversity-Section + .TokyoUniversity-Section {
  margin-top: 18px;
}
.TokyoUniversity-Head {
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--color-muted);
}
.TokyoUniversity-Table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.TokyoUniversity-Table th, .TokyoUniversity-Table td {
  padding: 4px 0;
  text-align: right;
  font-weight: normal;
  color: var(--color-font);
}
.TokyoUniversity-Table th:first-child {
  text-align: left;
  color: var(--color-muted);
}
.TokyoUniversity-Table thead th {
  position: sticky;
  top: 0;
  background: var(--color-panel-background);
  font-size: 11px;
  color: var(--color-muted);
}
.TokyoUniversity-Table tbody tr + tr th, .TokyoUniversity-Table tbody tr + tr td {
  border-top: 1px solid var(--color-line-faint);
}
.TokyoUniversity-Table tbody tr[data-total] th, .TokyoUniversity-Table tbody tr[data-total] td {
  border-top: 1px solid var(--color-line);
  color: var(--color-font);
}
.TokyoUniversity-Table a {
  color: var(--color-muted);
  text-decoration: none;
}
.TokyoUniversity-Table a:hover {
  color: var(--color-link);
  text-decoration: underline;
}
.TokyoUniversity-Gap {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
}
.TokyoUniversity-Note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
}
.TokyoUniversity-Note p {
  margin: 0;
}
.TokyoUniversity-Note p + p {
  margin-top: 6px;
}

.MapPanel:has(.TokyoUniversity) {
  width: 300px;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
}
.Logo-Link {
  color: var(--color-font);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  padding: 0 24px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.PanelColumn {
  position: absolute;
  left: 0;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
}

[data-fixed] .PanelColumn .MapPanel {
  position: fixed;
  top: 56px;
  right: 16px;
  left: auto;
  z-index: 10;
}

[data-fixed] .PanelColumn .MapPanel-Header {
  cursor: default;
}

.MapPanel[data-float] .PanelResize {
  display: block;
}

.MapPanel[data-panel=inset] .PanelResize {
  display: none;
}

[data-fixed] .MapPanel .PanelResize {
  display: none;
}

:root {
  --color-background: #eef0f2;
  --color-font: #333333;
  --color-muted: #888888;
  --color-panel-background: #ffffff;
  --color-panel-header-background: #f2f3f5;
  --color-line: #e4e7ea;
  --color-line-faint: #f0f2f4;
  --color-link: #1668b3;
}

:root[data-theme=dark] {
  --color-background: #16181c;
  --color-font: #ededed;
  --color-muted: #9a9a9a;
  --color-panel-background: #24272c;
  --color-panel-header-background: #1d2025;
  --color-line: #363b43;
  --color-line-faint: rgba(54, 59, 67, 0.5);
  --color-link: #3987e5;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-background);
}

body:has(#jp-school) {
  overflow: hidden;
}

#jp-school {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#jp-school:empty {
  position: static;
  height: 0;
}

body:has(#jp-school:empty) {
  overflow: auto;
}

.School-Static {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 96px;
  color: var(--color-font);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.School-Static-Title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
}
.School-Static-Lead {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--color-muted);
}
.School-Static-Nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}
.School-Static-Nav-Item {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
}
.School-Static-Nav-Item:hover {
  color: var(--color-font);
}
.School-Static-Nav-Item[aria-current] {
  color: var(--color-font);
}

.Article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 96px;
  color: var(--color-font);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.Article-Breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}
.Article-Breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.Article-Breadcrumb a:hover {
  color: var(--color-font);
}
.Article-Breadcrumb-Sep {
  color: var(--color-muted);
}
.Article-Title {
  margin: 20px 0 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
}
.Article-Lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--color-muted);
}
.Article-Body {
  font-size: 15px;
}
.Article-Body p {
  margin: 0 0 18px;
}
.Article-Map {
  margin-top: 32px;
}
.Article-Map a {
  color: var(--color-link);
  text-decoration: none;
}
.Article-Map a:hover {
  text-decoration: underline;
}