.ApplicationMenu {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--color-panel-background);
  border-radius: 0 8px 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
.ApplicationMenu-Section + .ApplicationMenu-Section {
  border-top: 1px solid var(--color-line);
}
.ApplicationMenu-Link {
  padding: 0 24px;
}
.ApplicationMenu-Link-Name {
  display: block;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-font);
  text-decoration: none;
}
.ApplicationMenu-Link-Description {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo-Text {
  color: var(--color-font);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
}

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

.Attribution {
  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;
}

.Panel {
  position: relative;
  min-width: 180px;
  max-width: min(380px, 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;
}
.Panel:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
  z-index: 10;
}
.Panel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.Panel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.Panel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel-Header {
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-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);
}
.Panel-Close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-font);
  cursor: pointer;
}
.Panel-Close svg {
  visibility: hidden;
}
.Panel-Close:hover svg {
  visibility: visible;
}
.Panel-Body {
  flex: 1;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.Panel:has(.Select) {
  min-width: 0;
}

.Panel[data-panel=summary] {
  width: 260px;
}

.Panel[data-panel=info] {
  width: 340px;
}

.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;
}

.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 .Panel {
  position: fixed;
  top: 56px;
  right: 16px;
  left: auto;
  z-index: 10;
}

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

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

.Select {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.Select-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;
}
.Select-Option[data-current] {
  color: var(--color-font);
  cursor: default;
}

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

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

.Select-Option-Label {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.Select-Option-Swatch {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.Subject-Title {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-font);
}

.Summary {
  padding: 8px 16px 14px;
  box-sizing: border-box;
}
.Summary-Group + .Summary-Group {
  margin-top: 16px;
}
.Summary-Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 24px;
}
.Summary-Swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
}
.Summary-Label {
  font-size: 13px;
  color: var(--color-font);
}
.Summary-Value {
  font-size: 12px;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.Summary-Item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 26px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--color-font);
  text-decoration: none;
}
.Summary-Item:hover {
  text-decoration: underline;
}
.Summary-Item-Place {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-muted);
  text-decoration: none;
}

.Info {
  padding: 12px 16px 14px;
  box-sizing: border-box;
}
.Info-Reading {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--color-muted);
}
.Info-Lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-font);
}
.Info-Body {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--color-muted);
}
.Info-Body p {
  margin: 0 0 12px;
}
.Info-Body p:last-child {
  margin-bottom: 0;
}
.Info-Row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 16px;
}
.Info-Row + .Info-Row {
  margin-top: 6px;
}
.Info-Label {
  text-align: right;
  font-size: 11px;
  color: var(--color-muted);
}
.Info-Value {
  font-size: 13px;
  color: var(--color-font);
}
.Info-Rows {
  margin-top: 16px;
}

.Figure {
  margin: 0 0 12px;
  display: block;
}
.Figure-Image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.Figure-Caption {
  margin-top: 6px;
}

.Credit {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 10px;
  line-height: 16px;
  color: var(--color-muted);
}
.Credit-Item {
  white-space: nowrap;
}
.Credit-Link {
  color: var(--color-muted);
  text-decoration: underline;
}
.Credit-Link:hover {
  color: var(--color-font);
}

:root {
  --color-background: #eef0f2;
  --color-font: #333333;
  --color-muted: #b4b4b4;
  --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-spot) {
  overflow: hidden;
}

#jp-spot {
  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-spot:empty {
  position: static;
  height: 0;
}

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

.Spot-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;
}
.Spot-Static-Title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
}
.Spot-Static-Lead {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--color-muted);
}
.Spot-Static-Nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 32px;
}
.Spot-Static-Nav-Item {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
}
.Spot-Static-Nav-Item:hover {
  color: var(--color-font);
}
.Spot-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 4px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
}
.Article-Reading {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--color-muted);
}
.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-Rows {
  margin-top: 24px;
}
.Article-Map {
  margin-top: 32px;
}
.Article-Map a {
  color: var(--color-link);
  text-decoration: none;
}
.Article-Map a:hover {
  text-decoration: underline;
}

.Article .Figure {
  margin: 0 0 24px;
}