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-TypeList {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
}
.ApplicationModal-Type {
  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-Type[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;
}

.StateIncomeChart {
  padding: 44px 0;
}
.StateIncomeChart-Canvas {
  display: block;
}
.StateIncomeChart-Canvas[data-hover] {
  cursor: pointer;
}

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

.YearIncomeMap {
  position: fixed;
  top: 96px;
  left: 16px;
  display: none;
  width: calc(50% - 16px);
}
.YearIncomeMap[data-ready] {
  display: block;
}
.YearIncomeMap-Canvas {
  display: block;
  cursor: pointer;
}

.YearIncome,
.StateIncome {
  display: flex;
  flex-direction: column;
  width: 50%;
  margin-left: auto;
  padding: 48px 32px 76px;
  box-sizing: border-box;
}

.YearIncomeTitle,
.StateIncomeTitle {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  text-align: center;
}

.IncomeTable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 12px;
  padding: 44px 0;
}

.IncomeRow {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: subgrid;
}
.IncomeRow[data-code] {
  cursor: pointer;
}
.IncomeRow-Head {
  font-size: 12px;
  line-height: 20px;
  color: #808080;
  text-align: left;
}
.IncomeRow-TotalLabel {
  font-size: 18px;
  line-height: 26px;
  text-align: right;
}
.IncomeRow-TotalValue {
  font-family: "Libertinus Mono", monospace;
  font-size: 19px;
  line-height: 27px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.IncomeRow-Name {
  justify-self: end;
  font-size: 16px;
  line-height: 24px;
  text-align: right;
}
.IncomeRow-Value {
  justify-self: start;
  font-family: "Libertinus Mono", monospace;
  font-size: 17px;
  line-height: 25px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.YearIncomeCredit,
.StateIncomeCredit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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