html, body {
  margin: 0;
  padding: 0;
}

html {
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

body {
  background: #16181c;
  color: #ededed;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
}
.Logo-Text {
  color: #ededed;
  font-family: "Quicksand", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 22px;
  line-height: 2;
  cursor: pointer;
  user-select: none;
}

.ApplicationModal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  grid-template-rows: auto 1fr auto;
  row-gap: 1px;
  width: 560px;
  height: min(640px, 100% - 64px);
  margin: auto;
}
.ApplicationModal[data-open] {
  display: grid;
}
.ApplicationModal[data-open] + .ApplicationModal-Overlay {
  display: block;
}
.ApplicationModal-Overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: none;
  background: rgba(22, 24, 28, 0.8);
}
.ApplicationModal-Header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 48px;
  background: #24272c;
  border-radius: 24px 2px 2px 24px;
}
.ApplicationModal-TabArea {
  display: flex;
  gap: 16px;
  padding-left: 32px;
}
.ApplicationModal-Tab {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 calc(8px + 3px);
  font-size: 15px;
  line-height: 23px;
  color: #ededed;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ApplicationModal-Tab-Underline {
  position: absolute;
  top: calc(50% + 15px / 2 + 8px);
  left: calc(8px + 3px - 4px);
  width: calc(100% - (8px + 3px - 4px) * 2);
  height: 1px;
  overflow: visible;
  color: #ededed;
  visibility: hidden;
  transform: scaleX(0.5);
}
.ApplicationModal-Tab[data-selected] .ApplicationModal-Tab-Underline {
  visibility: visible;
  transform: scaleX(1);
  transition: transform 0.25s cubic-bezier(0.3, 0, 0, 1);
}
.ApplicationModal-Close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ededed;
  cursor: pointer;
}
.ApplicationModal-Main {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: start;
  column-gap: 16px;
  min-height: 0;
  background: #24272c;
  border-radius: 24px 2px 2px 2px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationModal-CategoryList {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: flex-end;
  gap: 8px;
  padding: 16px;
}
.ApplicationModal-Category {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 15px;
  line-height: 23px;
  color: #ededed;
  text-decoration: none;
  white-space: nowrap;
}
.ApplicationModal-Category[data-selected] {
  background: #363b43;
}
.ApplicationModal-CountryList {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}
.ApplicationModal-Country {
  padding: calc(8px - (23px - 15px) / 2) calc(8px + 3px);
  font-size: 15px;
  line-height: 23px;
  color: #ededed;
  text-decoration: none;
  white-space: nowrap;
}
.ApplicationModal-Footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: #24272c;
  border-radius: 2px;
}
.ApplicationModal-TopPage {
  justify-self: start;
  font-size: 16px;
  line-height: 1.5;
  color: #ededed;
  text-decoration: none;
}
.ApplicationModal-Legal {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ApplicationModal-Legal-Link {
  font-size: 12px;
  line-height: 1.5;
  color: #ededed;
  text-decoration: none;
}
.ApplicationModal-Copyright {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ededed;
}

.Timeline {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 24px;
  background: rgba(22, 24, 28, 0.8);
}
.Timeline-Track {
  display: flex;
  flex-grow: 1;
  align-items: center;
}
.Timeline-Point {
  position: relative;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ededed;
  cursor: pointer;
}
.Timeline-Point::before {
  content: "";
  position: absolute;
  inset: -14px -6px;
}
.Timeline-Point[data-current] {
  width: 8px;
  height: 8px;
}
.Timeline-Point[data-change=increase] {
  background: #4ade80;
}
.Timeline-Point[data-change=decrease] {
  background: #f87171;
}
.Timeline-Segment {
  flex-grow: 1;
  height: 1px;
  background: #808080;
}
.Timeline-Control {
  display: flex;
}
.Timeline-Previous, .Timeline-Next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ededed;
  cursor: pointer;
}

.YearForeigner {
  display: flex;
  flex-direction: column;
  padding-bottom: 56px;
}

.StateSection {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
  margin-top: 44px;
  padding: 0 32px;
}

.YearForeignerMap {
  flex: 0 1 463px;
  min-width: 0;
  visibility: hidden;
}
.YearForeignerMap[data-ready] {
  visibility: visible;
}
.YearForeignerMap-Canvas {
  display: block;
}
.YearForeignerMap-Canvas[data-hover] {
  cursor: pointer;
}

.AreaForeignerPage {
  display: flex;
  flex-direction: column;
  padding-bottom: 56px;
}

.AreaForeignerTitle {
  margin: 0;
  padding-top: 48px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  text-align: center;
}

.ForeignerTotal {
  display: flex;
  align-self: center;
  align-items: baseline;
  gap: 28px;
  margin-top: 44px;
  padding: calc(24px - calc((26px - 18px) / 2)) calc(24px + 4px);
  border: 1px dotted #ededed;
  border-radius: 3px;
}
.ForeignerTotal-Label {
  font-size: 18px;
  line-height: 26px;
}
.ForeignerTotal-Value {
  font-family: "Libertinus Mono", monospace;
  font-size: 19px;
  line-height: 27px;
  font-variant-numeric: tabular-nums;
}
.ForeignerTotal-Value + .ForeignerTotal-Label {
  margin-left: 28px;
}

.BreakdownSection {
  display: flex;
  flex-direction: column;
  gap: calc(32px - calc((26px - 18px) / 2));
  margin-top: 44px;
}
.BreakdownSection-Heading {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: #ededed;
  text-align: center;
}
.BreakdownSection-Body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
}
.BreakdownSection-Body .CountTable {
  grid-template-columns: 256px max-content max-content;
}
.BreakdownSection-Body .CountRow-Value {
  padding-left: calc(12px + 12px + 12px);
}

.PieChart {
  position: sticky;
  top: 96px;
  display: block;
  flex-shrink: 0;
  width: 240px;
  height: 240px;
}
.PieChart-Slice {
  stroke: #16181c;
  stroke-width: 2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.TrendSection {
  display: flex;
  flex-direction: column;
  gap: calc(32px - calc((26px - 18px) / 2));
  margin-top: 68px;
}
.TrendSection-Heading {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: #ededed;
  text-align: center;
}

.AreaForeignerChart[data-hover] {
  cursor: pointer;
}

.AreaForeignerMap {
  display: none;
  margin: 68px 0;
}
.AreaForeignerMap[data-ready] {
  display: block;
}
.AreaForeignerMap-Canvas {
  display: block;
}
.AreaForeignerMap-Canvas[data-hover] {
  cursor: pointer;
}

.AreaForeignerCredit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 32px 20px;
}

.YearForeignerTitle {
  margin: 0;
  padding-top: 48px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  text-align: center;
}

.RegionTable {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  row-gap: 12px;
}

.RegionRow {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: subgrid;
}
.RegionRow-Head {
  font-size: 12px;
  line-height: 20px;
  color: #808080;
  text-align: left;
}
.RegionRow-Head:nth-child(2) {
  padding-left: 28px;
}
.RegionRow-Head:nth-child(3) {
  padding-left: 12px;
}
.RegionRow-TotalLabel {
  font-size: 18px;
  line-height: 26px;
  text-align: right;
}
.RegionRow-TotalValue {
  padding-left: 28px;
  font-family: "Libertinus Mono", monospace;
  font-size: 19px;
  line-height: 27px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.RegionRow-TotalShare {
  padding-left: 12px;
  font-family: "Libertinus Mono", monospace;
  font-size: 15px;
  line-height: 27px;
  color: #808080;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.RegionRow-Name {
  justify-self: end;
  font-size: 16px;
  line-height: 24px;
  color: inherit;
  text-align: right;
  text-decoration: none;
}
.RegionRow-Value {
  justify-self: start;
  padding-left: 28px;
  font-family: "Libertinus Mono", monospace;
  font-size: 17px;
  line-height: 25px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.RegionRow-Share {
  justify-self: start;
  padding-left: 12px;
  font-family: "Libertinus Mono", monospace;
  font-size: 15px;
  line-height: 25px;
  color: #808080;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.CountTable {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  row-gap: 12px;
}

.CountRow {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: subgrid;
}
.CountRow-Name {
  justify-self: end;
  font-size: 16px;
  line-height: 24px;
  color: inherit;
  text-align: right;
  text-decoration: none;
}
.CountRow-Value {
  position: relative;
  justify-self: start;
  min-width: 9ch;
  padding-left: 28px;
  font-family: "Libertinus Mono", monospace;
  font-size: 17px;
  line-height: 25px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.CountRow-Value[data-slice]::before {
  content: "";
  position: absolute;
  top: calc((25px - 12px) / 2);
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.CountRow-Share {
  justify-self: start;
  min-width: 5ch;
  padding-left: 12px;
  font-family: "Libertinus Mono", monospace;
  font-size: 15px;
  line-height: 25px;
  color: #808080;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.PieChart-Slice[data-slice="1"] {
  fill: #3987e5;
}

.CountRow-Value[data-slice="1"]::before {
  background: #3987e5;
}

.PieChart-Slice[data-slice="2"] {
  fill: #d95926;
}

.CountRow-Value[data-slice="2"]::before {
  background: #d95926;
}

.PieChart-Slice[data-slice="3"] {
  fill: #199e70;
}

.CountRow-Value[data-slice="3"]::before {
  background: #199e70;
}

.PieChart-Slice[data-slice="4"] {
  fill: #c98500;
}

.CountRow-Value[data-slice="4"]::before {
  background: #c98500;
}

.PieChart-Slice[data-slice="5"] {
  fill: #d55181;
}

.CountRow-Value[data-slice="5"]::before {
  background: #d55181;
}

.PieChart-Slice[data-slice=eur] {
  fill: #3987e5;
}

.CountRow-Value[data-slice=eur]::before {
  background: #3987e5;
}

.PieChart-Slice[data-slice=asi] {
  fill: #d55181;
}

.CountRow-Value[data-slice=asi]::before {
  background: #d55181;
}

.PieChart-Slice[data-slice=afr] {
  fill: #008300;
}

.CountRow-Value[data-slice=afr]::before {
  background: #008300;
}

.PieChart-Slice[data-slice=ame] {
  fill: #9085e9;
}

.CountRow-Value[data-slice=ame]::before {
  background: #9085e9;
}

.PieChart-Slice[data-slice=oce] {
  fill: #e66767;
}

.CountRow-Value[data-slice=oce]::before {
  background: #e66767;
}

.PieChart-Slice[data-slice=other] {
  fill: #6b6e74;
}

.CountRow-Value[data-slice=other]::before {
  background: #6b6e74;
}

.YearForeignerCredit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 44px;
  padding: 0 32px 20px;
}

.CreditItem {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: #808080;
  overflow-wrap: anywhere;
}

.Foreigner-Credit-Link {
  color: inherit;
  text-decoration: none;
}
