*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

a,
button,
div,
h1,
h2,
h3,
input[type=text],
li,
ol,
option,
p,
select,
span,
strong,
ul {
  color: var(--color-font);
}

a,
body,
br,
button,
canvas,
div,
h1,
h2,
h3,
html,
img,
input,
li,
ol,
option,
p,
select,
span,
strong,
ul {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

html,
body {
  overflow: hidden;
}

body {
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  background: transparent;
  font-size: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: baseline;
}

img {
  font-size: 0;
  max-width: 100%;
}

svg {
  border: 0;
  stroke-width: 0;
}

ol,
ul {
  list-style: none;
}

input[type=text] {
  background-color: transparent;
}

input[type=file],
input[type=checkbox] {
  display: none;
}

button {
  cursor: pointer;
  background-color: transparent;
  font-family: inherit;
}

select {
  cursor: pointer;
  background-color: transparent;
  font-family: inherit;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-calendar-picker-indicator {
  display: none;
}

::-webkit-resizer {
  display: none;
}

:root {
  --color-font: #f4f4f4;
  --color-muted: #646464;
  --color-icon: #adadad;
  --color-input-background: #3c3c3c;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-body-background: #3a3a3a;
  --color-item-selected: #393939;
  --color-track: #2a2a2a;
  --color-principal: #4e8fbf;
  --color-interest: #d6a83e;
  --color-prepayment: #5fa57c;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo a {
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 21px;
  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;
}

.Panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
}
.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 {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-icon);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  visibility: hidden;
}
.Panel-CloseIcon:hover svg {
  visibility: visible;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel-Main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 268px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Panel-Handle {
  position: absolute;
  z-index: 1;
}
.Panel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}

.ChildPanel,
.GrandChildPanel {
  position: fixed;
  display: none;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 8px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ChildPanel[data-open],
.GrandChildPanel[data-open] {
  display: block;
}

.GrandChildPanel {
  width: 236px;
}

.Mortgage[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}
.Mortgage[data-fixed] .Panel-Header {
  cursor: default;
}

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
}

.ActionItem {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ActionItem[data-selected] {
  color: var(--color-font);
}
.ActionItem[data-disabled] {
  opacity: 0.3;
  cursor: default;
}

.ActionAdd {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-principal);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.ActionRemove {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.FieldGroup {
  display: flex;
  flex-direction: column;
  padding: 10px 14px 14px;
}
.FieldGroup-Caption {
  display: flex;
  align-items: center;
  height: 24px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  user-select: none;
}

.FieldRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.FieldRow-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
  user-select: none;
}
.FieldRow-Pair {
  display: flex;
  gap: 4px;
}
.FieldRow-Value {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
}

.SliderField {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}
.SliderField-Head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.SliderField-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  user-select: none;
}
.SliderField-Amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.SliderField-Value {
  width: 72px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-font);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.SliderField-Unit {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  user-select: none;
}
.SliderField-Note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.SliderField input[type=range] {
  width: 100%;
  height: 20px;
  margin: 4px 0 2px;
  background: transparent;
  cursor: pointer;
}
.SliderField input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--color-track);
  border-radius: 1px;
}
.SliderField input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5px;
  background: var(--color-principal);
  border-radius: 50%;
}
.SliderField input[type=range]::-moz-range-track {
  height: 3px;
  background: var(--color-track);
  border-radius: 1px;
}
.SliderField input[type=range]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: var(--color-principal);
  border-radius: 50%;
}

.SegmentSelect {
  display: flex;
  background: var(--color-track);
  border-radius: 2px;
  overflow: hidden;
}
.SegmentSelect-Option {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.SegmentSelect-Option[data-selected] {
  background: var(--color-input-background);
  color: var(--color-font);
}

.ToggleSwitch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}
.ToggleSwitch-Track {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 17px;
  background: var(--color-track);
  border-radius: 9px;
}
.ToggleSwitch-Knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  background: var(--color-muted);
  border-radius: 50%;
}
.ToggleSwitch-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.ToggleSwitch[data-on] .ToggleSwitch-Track {
  background: var(--color-prepayment);
}
.ToggleSwitch[data-on] .ToggleSwitch-Knob {
  left: 15px;
  background: var(--color-font);
}
.ToggleSwitch[data-on] .ToggleSwitch-Label {
  color: var(--color-font);
}

.SelectField {
  height: 26px;
  padding: 0 8px;
  background: var(--color-input-background);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}

.RoundNumberInput {
  justify-self: start;
  display: flex;
  height: 24px;
  border-radius: 12px;
  background: var(--color-input-background);
  overflow: hidden;
}
.RoundNumberInput-Previous, .RoundNumberInput-Next {
  flex-shrink: 0;
  width: 12px;
  cursor: pointer;
}
.RoundNumberInput-Input {
  flex-shrink: 0;
  width: 44px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

.ZoomControl {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 32px;
}
.ZoomControl-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}

.Mortgage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-body-background);
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.Mortgage-Stage {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 112px;
  overflow: hidden;
  overscroll-behavior: none;
  cursor: grab;
}

.MortgageBody {
  display: block;
  flex-shrink: 0;
}