/* variable
----------------------------------------------------------------- */
/* tax simulator page (p-tax-sim)
----------------------------------------------------------------- */
.p-tax-sim {
  padding: 32px 0 48px;
  background-color: #ffffff;
}

@media screen and (min-width: 768px) {
  .p-tax-sim {
    padding-top: 48px;
  }
}
.p-tax-sim__inner,
.p-tax-sim__section-inner {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .p-tax-sim__inner,
  .p-tax-sim__section-inner {
    width: auto;
    margin: 0 16px;
  }
}
.p-tax-sim__section {
  padding: 48px 0;
  background-color: #ffffff;
}

.p-tax-sim__section--green,
.p-tax-sim__section--gray {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.p-tax-sim__section--green {
  background-color: rgba(76, 175, 80, 0.06);
}

.p-tax-sim__section--gray {
  background-color: #f5f5f5;
}

@media screen and (min-width: 768px) {
  .p-tax-sim .c-heading-notch__updated {
    display: inline-flex;
  }
}
.p-tax-sim__lead {
  margin: 0 0 24px;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__lead {
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.8;
  }
}
.p-tax-sim strong,
.p-tax-sim__section strong {
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
}

.p-tax-sim__app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media screen and (min-width: 960px) {
  .p-tax-sim__app {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    gap: 32px;
  }
  .p-tax-sim__app > .p-tax-sim__panel:last-child {
    position: sticky;
    top: calc(var(--p-header-bottom, 70px) + 16px);
  }
}
.p-tax-sim__panel {
  padding: 20px 16px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 768px) {
  .p-tax-sim__panel {
    padding: 28px;
  }
}
.p-tax-sim__panel > .c-heading-bar {
  margin-bottom: 24px;
}

.p-tax-sim__field {
  margin: 0 0 20px;
}

.p-tax-sim__field--last {
  margin-bottom: 0;
}

.p-tax-sim__field-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0 0 6px;
}

.p-tax-sim__label {
  color: #111111;
  font-size: 14px;
  font-weight: bold;
}

.p-tax-sim__hint {
  color: #6f6f6f;
  font-size: 12px;
}

.p-tax-sim__input {
  display: flex;
  align-items: center;
  min-width: 0;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}
.p-tax-sim__input:focus-within {
  border-color: #4caf50;
}
.p-tax-sim__input input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #111111;
  font-family: inherit;
  font-size: 20px;
  font-weight: bold;
  text-align: right;
  font-feature-settings: "tnum";
}
.p-tax-sim__input input:focus {
  outline: none;
}

.p-tax-sim__input--sm input {
  padding: 8px;
  font-size: 16px;
}

.p-tax-sim__unit {
  flex-shrink: 0;
  padding-right: 12px;
  color: #6f6f6f;
  font-size: 14px;
  font-weight: bold;
}

.p-tax-sim__range {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  accent-color: #4caf50;
}

.p-tax-sim__note {
  margin: 6px 0 0;
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.6;
}

.p-tax-sim__note--top {
  margin: 0 0 12px;
}

.p-tax-sim__toggle {
  border-top: 1px dashed #e0e0e0;
}

.p-tax-sim__toggle-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  background: none;
  border: 0;
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.p-tax-sim__toggle-sum {
  display: block;
  color: rgb(80%, 47.6862745098%, 0%);
  font-size: 12px;
}
.p-tax-sim__toggle-sum:empty {
  display: none;
}

.p-tax-sim__toggle-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.p-tax-sim__toggle-btn[aria-expanded=true] .p-tax-sim__toggle-icon {
  transform: rotate(180deg);
}

.p-tax-sim__toggle-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.p-tax-sim__toggle-panel.is-open {
  grid-template-rows: 1fr;
}

.p-tax-sim__toggle-inner {
  min-height: 0;
  overflow: hidden;
}
.p-tax-sim__toggle-inner > :last-child {
  margin-bottom: 16px;
}

.p-tax-sim__brokers {
  display: grid;
  gap: 8px;
}

.p-tax-sim__broker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 32px;
  gap: 8px;
  align-items: center;
}

.p-tax-sim__select {
  min-width: 0;
  padding: 9px 8px;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #111111;
  font-family: inherit;
  font-size: 14px;
}

.p-tax-sim__remove {
  width: 32px;
  height: 32px;
  padding: 0;
  background-color: #f5f5f5;
  border: 0;
  border-radius: 6px;
  color: #6f6f6f;
  font-family: inherit;
  cursor: pointer;
}

.p-tax-sim__add {
  margin: 10px 0 0;
  padding: 8px 14px;
  background-color: rgba(76, 175, 80, 0.06);
  border: 2px dashed #b7de8b;
  border-radius: 8px;
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.p-tax-sim__expenses {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.p-tax-sim__expense {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #111111;
  font-size: 14px;
  cursor: pointer;
}
.p-tax-sim__expense input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #4caf50;
}

.p-tax-sim__expense-desc {
  display: block;
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.4;
}

.p-tax-sim__expense-amount {
  font-weight: bold;
  white-space: nowrap;
}

.p-tax-sim__keep {
  margin: 0 0 16px;
  padding: 20px;
  background-color: rgba(76, 175, 80, 0.06);
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 12px;
}

.p-tax-sim__keep-label {
  margin: 0;
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
  font-size: 14px;
  font-weight: bold;
}

.p-tax-sim__keep-note {
  margin: 4px 0 0;
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.6;
}

.p-tax-sim__keep-value {
  margin: 8px 0 4px;
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
  font-size: 34px;
  font-weight: bold;
  line-height: 1.2;
  font-feature-settings: "tnum";
}

@media screen and (min-width: 768px) {
  .p-tax-sim__keep-value {
    font-size: 40px;
  }
}
.p-tax-sim__keep-unit {
  margin-left: 2px;
  font-size: 18px;
}

.p-tax-sim__keep-sub {
  margin: 0;
  color: #6f6f6f;
  font-size: 13px;
  font-feature-settings: "tnum";
}

.p-tax-sim__keep-part {
  display: inline-block;
}

.p-tax-sim__bar {
  display: flex;
  height: 12px;
  margin: 14px 0 8px;
  overflow: hidden;
  background-color: #e8e8e8;
  border-radius: 999px;
}

.p-tax-sim__bar-item {
  display: block;
  width: 0;
  transition: width 0.4s ease;
}

.p-tax-sim__bar-item--keep {
  background-color: #4caf50;
}

.p-tax-sim__bar-item--expense {
  background-color: #b7de8b;
}

.p-tax-sim__bar-item--tax {
  background-color: #cfd8cf;
}

.p-tax-sim__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-tax-sim__legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6f6f6f;
  font-size: 12px;
}
.p-tax-sim__legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.p-tax-sim__legend-item--keep::before {
  background-color: #4caf50;
}

.p-tax-sim__legend-item--expense::before {
  background-color: #b7de8b;
}

.p-tax-sim__legend-item--tax::before {
  background-color: #cfd8cf;
}

.p-tax-sim__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.p-tax-sim__stat {
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.p-tax-sim__stat-label {
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.4;
}

.p-tax-sim__stat-value {
  margin: 4px 0 0;
  color: #111111;
  font-size: 18px;
  font-weight: bold;
  font-feature-settings: "tnum";
}

.p-tax-sim__tips {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.p-tax-sim__tip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background-color: rgba(76, 175, 80, 0.06);
  border-radius: 8px;
}

.p-tax-sim__tip--caution {
  background-color: #fff7e8;
}

.p-tax-sim__tip-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background-color: #4caf50;
  border-radius: 50%;
  color: #ffffff;
}
.p-tax-sim__tip-icon svg {
  width: 14px;
  height: 14px;
}

.p-tax-sim__tip--caution .p-tax-sim__tip-icon {
  background-color: #ff9800;
}

.p-tax-sim__tip-text {
  margin: 0;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}

.p-tax-sim__reverse {
  padding: 20px 16px;
  background-color: #f5f5f5;
  border-radius: 8px;
}
.p-tax-sim__reverse > .c-heading-arrow {
  margin-bottom: 16px;
  font-size: 16px;
}

.p-tax-sim__reverse-result {
  margin: 10px 0 0;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}
.p-tax-sim__reverse-result:empty {
  display: none;
}
.p-tax-sim__reverse-result strong {
  font-size: 18px;
}

.p-tax-sim__reverse-breakdown {
  display: block;
  margin-top: 4px;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.6;
}

.p-tax-sim__mybrokers {
  margin: 0 0 24px;
  padding: 24px 16px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 768px) {
  .p-tax-sim__mybrokers {
    margin-bottom: 32px;
    padding: 28px 32px 32px;
  }
}
.p-tax-sim__mybrokers > .c-heading-bar {
  font-size: 16px;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__mybrokers > .c-heading-bar {
    font-size: 18px;
  }
}
.p-tax-sim__mybrokers-lead {
  margin: 12px 0 24px;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}

.p-tax-sim__mybroker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 600px) {
  .p-tax-sim__mybroker-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (min-width: 960px) {
  .p-tax-sim__mybroker-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
}
.p-tax-sim__mybroker {
  min-width: 0;
}

.p-tax-sim__mybroker-link,
.p-tax-sim__mybroker-link:link,
.p-tax-sim__mybroker-link:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #111111;
  text-decoration: none;
}

.p-tax-sim__mybroker-link:hover {
  opacity: 1;
  text-decoration: none;
}

.p-tax-sim__mybroker-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding: 8px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.p-tax-sim__mybroker-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 113px);
  max-height: 46px;
  object-fit: contain;
}

.p-tax-sim__mybroker-logo--sm img {
  max-width: min(100%, 90.4px);
  max-height: 36.8px;
}

.p-tax-sim__mybroker-logo--xs img {
  max-width: min(100%, 70.06px);
  max-height: 28.52px;
}

.p-tax-sim__mybroker-logo--vantage img {
  max-width: min(100%, 88.14px);
  max-height: 35.88px;
  transform: translateY(1px);
}

.p-tax-sim__mybroker-logo--axi img {
  max-width: min(100%, 81.36px);
  max-height: 33.12px;
  transform: translate(-3px, -4px);
}

.p-tax-sim__mybroker-link:hover .p-tax-sim__mybroker-logo {
  background-color: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.4);
}

.p-tax-sim__mybroker-name {
  max-width: 100%;
  color: #111111;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: break-word;
  transition: color 0.2s ease;
}

.p-tax-sim__mybroker-link:hover .p-tax-sim__mybroker-name {
  color: #4caf50;
}

.p-tax-sim__mybroker-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}
.p-tax-sim__mybroker-more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.p-tax-sim__mybroker-link:hover .p-tax-sim__mybroker-more svg {
  transform: translateX(3px);
}

.p-tax-sim__cards,
.p-tax-sim__points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .p-tax-sim__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
.p-tax-sim__card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__card {
    padding: 28px;
  }
}
.p-tax-sim__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p-tax-sim__card-title,
.p-tax-sim__point-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__card-title,
  .p-tax-sim__point-title {
    font-size: 18px;
  }
}
.p-tax-sim__card-title {
  color: #111111;
}

.p-tax-sim__card-text {
  flex: 1;
  margin: 0 0 24px;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}

.p-tax-sim__card-btn {
  width: 100%;
}

.p-tax-sim__line {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px;
  border: 2px solid #00b900;
  border-radius: 12px;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__line {
    padding: 32px 40px;
  }
}
.p-tax-sim__line-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.p-tax-sim__line-item {
  position: relative;
  padding-left: 26px;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}
.p-tax-sim__line-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid #00b900;
  border-left: 2px solid #00b900;
  transform: rotate(-45deg);
}

@media screen and (min-width: 768px) {
  .p-tax-sim__line-item {
    font-size: 15px;
  }
}
.c-btn.p-tax-sim__line-btn {
  width: 100%;
  font-family: inherit;
}

.c-btn--fill.p-tax-sim__line-btn {
  background-color: #00b900;
}

.c-btn--fill.p-tax-sim__line-btn:hover {
  color: #00b900;
  border-color: #00b900;
}

.p-tax-sim__point {
  padding: 24px 20px;
  background-color: #ffffff;
  border-radius: 12px;
}

@media screen and (min-width: 768px) {
  .p-tax-sim__point {
    padding: 28px;
  }
}
.p-tax-sim__point-title {
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
}

.p-tax-sim__point-text {
  margin: 0;
  color: #111111;
  font-size: 14px;
  line-height: 1.7;
}

.p-tax-sim__note--kome {
  padding-left: 1em;
  text-indent: -1em;
}

.p-tax-sim__memo-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  color: #111111;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}

@media screen and (max-width: 767px) {
  .p-tax-sim__memo-title {
    display: none;
  }
}
.p-tax-sim__memos {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}
.p-tax-sim__memos .c-memo {
  margin-top: 0;
}

.p-tax-sim__memo-list {
  margin: 0 0 12px;
  padding-left: 1.5em;
  list-style: disc;
  color: #111111;
  font-size: 14px;
  line-height: 1.6;
}
.p-tax-sim__memo-list li + li {
  margin-top: 8px;
}

.p-tax-sim__memo-list--num {
  list-style: decimal;
}

.p-tax-sim__memo-list:last-child {
  margin-bottom: 0;
}

.p-tax-sim__refs {
  margin-top: 32px;
}

.p-tax-sim__refs-title {
  margin: 0 0 8px;
  color: #111111;
  font-size: 14px;
  font-weight: bold;
}

.p-tax-sim__refs-list {
  margin: 0;
  padding-left: 1.5em;
  list-style: disc;
  font-size: 14px;
  line-height: 1.6;
}
.p-tax-sim__refs-list li + li {
  margin-top: 6px;
}
.p-tax-sim__refs-list a {
  color: rgb(22.5369892977%, 51.8943832513%, 23.7231466292%);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-tax-sim__disclaimer-short {
  margin: 20px 0 0;
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.6;
}
.p-tax-sim__disclaimer-short a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-tax-sim__disclaimer {
  scroll-margin-top: 100px;
}
