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

.InsetCanvas {
  display: block;
}

.MapAttribution {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  color: #9a9a9a;
  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: #9a9a9a;
  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: #1d2025;
}
.MapSelect-Option[data-current] {
  color: #ededed;
  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: absolute;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  background: #24272c;
  border: 1px solid #363b43;
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
}
.MapPanel[data-hidden] {
  display: none;
}
.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: #1d2025;
  border-bottom-right-radius: 12px;
  font-size: 11px;
  color: #ededed;
}
.MapPanel-Close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ededed;
  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: #9a9a9a;
}
.MapPanel-Value {
  font-size: 13px;
  color: #ededed;
  font-variant-numeric: tabular-nums;
}

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

.PanelResize {
  position: absolute;
  z-index: 1;
  touch-action: 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: #ededed;
  text-align: left;
}
.MapLegend-Head:hover {
  background: #1d2025;
}
.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: #9a9a9a;
  text-align: left;
}
.MapLegend-Item:hover {
  background: #1d2025;
}
.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;
  font-size: 12px;
  color: #3987e5;
  text-decoration: none;
}
.MapPanel-Link:hover {
  text-decoration: underline;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #16181c;
}

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

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

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

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

.Article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 96px;
  color: #ededed;
  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: #9a9a9a;
}
.Article-Breadcrumb a {
  color: #9a9a9a;
  text-decoration: none;
}
.Article-Breadcrumb a:hover {
  color: #ededed;
}
.Article-Breadcrumb-Sep {
  color: #555;
}
.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: #b9b9b9;
}
.Article-Body {
  font-size: 15px;
}
.Article-Body p {
  margin: 0 0 18px;
}
.Article-Map {
  margin-top: 32px;
}
.Article-Map a {
  color: #3987e5;
  text-decoration: none;
}
.Article-Map a:hover {
  text-decoration: underline;
}