canvas {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.simulate {
  margin-bottom: 55px;
}
@media screen and (max-width: 768px) {
  .simulate .lp-nenkin__heading_inner-text03 {
    height: auto;
    min-height: 30px;
    padding: 5px 0;
    line-height: 1.5;
  }
}

.simulate__form-box {
  padding: 35px 10px;
  margin: 45px 0 55px;
  background-color: #f5f5f5;
  border: 1px solid #b4b4b4;
}

.simulate__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 580px;
  margin: 10px auto 20px;
}

.simulate__label {
  flex: 0 1 100%;
  max-width: 100%;
}

.simulate__input {
  flex: 0 1 100%;
  max-width: calc(100% - 1.5em);
}
.simulate__input input {
  max-width: 100%;
  border: 1px solid #333;
  text-align: right;
}
.simulate__input input:not(:disabled) {
  background-color: #fff;
}

.simulate__unit {
  flex: 0 0 1em;
  max-width: 1em;
}

.simulate__submit,
.simulate__reset {
  flex: 0 1 100%;
  width: 100%;
  padding: .5em 0;
  margin-top: 10px;
  font-size: 2.4rem;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border-radius: .5em;
  outline: none;
}
.simulate__submit:hover,
.simulate__reset:hover {
  opacity: .65;
}
.simulate__submit {
  background: #00a281;
}
.simulate__reset {
  background: #969696;
}

@media screen and (min-width: 769px) {
  .simulate__form {
    position: relative;
    padding-right: 1.5em;
    margin-bottom: 10px;
    font-size: 2.2rem;
  }
  .simulate__label {
    flex: 0 1 290px;
    max-width: 290px;
    padding-bottom: 5px;
    border-bottom: 1px solid #5f6a70;
  }
  .simulate__input {
    flex: 0 1 195px;
    max-width: 195px;
  }
  .simulate__unit {
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -1em;
  }
  .simulate__submit,
  .simulate__reset {
    flex: 0 1 265px;
    max-width: 265px;
    font-size: 2.9rem;
  }
}

.simulate__note {
  padding: 1px 10px 20px;
  border: 1px solid #333;
}
.simulate__note dt {
  padding-bottom: 10px;
  margin: 10px 0;
  font-size: 1.6rem;
  line-height: 1.5;
  border-bottom: 1px solid #333;
}
.simulate__note dd {
  margin-left: 1em;
  font-size: 1.3rem;
  text-indent: -1em;
}

@media screen and (min-width: 769px) {
  .simulate__note {
    padding-right: 20px;
    padding-left: 20px;
  }
  .simulate__note dt {
    font-size: 1.9rem;
  }
  .simulate__note dd {
    font-size: 1.6rem;
  }
}

.simulate__output {
  height: 0;
  padding-top: 1px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: all .3s ease-in, height 0s ease;
}
.simulate__output.show {
  height: auto;
  visibility: visible;
  opacity: 1;
}

.simulate__table-container {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.simulate__table {
  margin-bottom: 55px;
  line-height: 1.35;
}
.simulate__table th,
.simulate__table td {
  padding: 10px 2px;
  font-weight: 500;
  text-align: center;
  border: 1px solid #333;
}
.simulate__table th {
  background-color: #eff1f2;
}
.simulate__table .bg-yellow {
  background-color: #fff3c3;
}
.simulate__table .bg-yellow-pale {
  background-color: #fff8df;
}

.simulate__table--big {
  margin-top: 55px;
  font-size: 2.4rem;
}
.simulate__table--big thead th {
  border-bottom: 1px solid #cfd0d1;
}

.simulate__table--small thead {
  font-size: 1.7rem;
}
.simulate__table--small tbody {
  font-size: 1.5rem;
}
.simulate__table--small tfoot {
  font-size: 2.1rem;
}
.simulate__table--small th,
.simulate__table--small td {
  border-top: 1px solid #cfd0d1;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #cfd0d1;
}
.simulate__table--small tr th:nth-child(1),
.simulate__table--small tr th:nth-child(2),
.simulate__table--small tr td:nth-child(1),
.simulate__table--small tr td:nth-child(2) {
  border-left: 1px solid #333;
}
.simulate__table--small tr th:last-child,
.simulate__table--small tr td:last-child {
  border-right: 1px solid #333;
}
.simulate__table--small thead th {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.simulate__table--small tfoot th,
.simulate__table--small tfoot td {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.simulate__table--small tbody td:not(:first-child),
.simulate__table--small tfoot td:not(:first-child) {
  padding-right: 15px;
  text-align: right;
}
.simulate__table--small .simulate__table__spaace {
  border-top: 1px solid #333;
  border-right: none !important;
  border-bottom: none !important;
  border-left: 1px solid #333;
}

@media screen and (max-width: 768px) {
  .simulate__table--big {
    font-size: 1.6rem;
  }
  .simulate__table--big,
  .simulate__table--big tbody,
  .simulate__table--big tr,
  .simulate__table--big th,
  .simulate__table--big td {
    display: block;
    width: 100%;
  }
  .simulate__table--big thead {
    display: none;
  }
  .simulate__table--big td {
    padding: 0 0 5px;
    margin-top: -1px;
  }
  .simulate__table--big td:before {
    display: block;
    padding: 5px;
    margin-bottom: 5px;
    content: attr(data-label);
    background-color: #eff1f2;
    border-bottom: 1px solid #cfd0d1;
  }

  .simulate__table--small thead {
    font-size: 1rem;
  }
  .simulate__table--small thead br {
    display: none;
  }
  .simulate__table--small tbody,
  .simulate__table--small tfoot {
    font-size: 1.1rem;
  }
  .simulate__table--small tbody td:not(:first-child),
  .simulate__table--small tfoot td:not(:first-child) {
    padding-right: 5px;
    padding-left: 5px;
  }
}

@media screen and (min-width: 769px) {
  .simulate__table--big th {
    width: 25%;
  }
  .simulate__table--small thead th:nth-child(1) {
    width: 6%;
  }
  .simulate__table--small thead th:nth-child(2) {
    width: 20%;
  }
  .simulate__table--small thead th:nth-child(3) {
    width: 20%;
  }
  .simulate__table--small thead th:nth-child(4) {
    width: 27%;
  }
  .simulate__table--small thead th:nth-child(5) {
    width: 27%;
  }
}

.simulate__graph {
  position: relative;
  height: 500px;
  margin-bottom: 55px;
}

@media screen and (max-width: 768px) {
  .simulate__graph-container {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
  }
  .simulate__graph {
    width: 700px;
    margin-bottom: 0;
  }
}
