#loan {
  display: grid;
  gap: 54px;
  grid-template-columns: 1fr 360px;
  /* min-height: 100%; */
  padding: 72px 36px 0;
  box-sizing: border-box;
}

#loan.hide {
  display: none !important;
}

/* result */
#ctrl {
  display: flex;
  align-items: center;
}

#ctrl .box {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  max-height: 810px;
  width: 100%;
  height: 90%;
}

#ctrl .block {
  display: grid;
  gap: 27px;
  grid-template-columns: 90px 1fr;
  width: 100%;
  height: 90px;
}

#ctrl .tmb {
  height: 90px;
}

#ctrl .item {
  display: grid;
  gap: 27px;
}

#ctrl .unit {
  display: flex;
  justify-content: space-between;
}

#ctrl .ttl {
  font-size: 2.1rem;
  font-weight: 500;
}

#ctrl .num {
  display: flex;
  align-items: baseline;
  font-size: 3rem;
  font-weight: 500;
}

#ctrl .num::after {
  margin: 0 0 0 9px;
  font-size: 1.8rem;
  font-weight: 400;
}

#ctrl .bar {
  position: relative;
}

#ctrl .bar input {
  position: relative;
  margin: 15px 0;
  width: 100%;
  height: 6px;
  background: var(--c-iron);
}

#ctrl .bar input::-webkit-slider-thumb {
  position: relative;
  left: 0;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}

#ctrl .bar .active {
  position: absolute;
  top: 15px;
  left: 0;
  width: 0%;
  height: 6px;
  pointer-events: none;
  z-index: 1;
}

#price {
  color: var(--c-purple) !important;
}

#rate {
  color: var(--c-blue) !important;
}

#deposit {
  color: var(--c-green) !important;
}

#bonus {
  color: var(--c-yellow) !important;
}

#period {
  color: var(--c-red) !important;
}

#price .bar .active,
#price .bar input::-webkit-slider-thumb {
  background: var(--c-purple) !important;
}

#rate .bar .active,
#rate .bar input::-webkit-slider-thumb {
  background: var(--c-blue) !important;
}

#deposit .bar .active,
#deposit .bar input::-webkit-slider-thumb {
  background: var(--c-green) !important;
}

#bonus .bar .active,
#bonus .bar input::-webkit-slider-thumb {
  background: var(--c-yellow) !important;
}

#period .bar .active,
#period .bar input::-webkit-slider-thumb {
  background: var(--c-red) !important;
}

#price .num::after {
  content: "万円";
}

#rate .num::after {
  content: "%";
}

#deposit .num::after {
  content: "万円";
}

#bonus .num::after {
  content: "万円 / 回";
}

#period .num::after {
  content: "年";
}

/* result */
#result {
  display: flex;
  align-items: center;
}

#result .box {
  width: 100%;
}

#result .ttl {
  width: 100%;
  margin: 0 0 27px;
  font-size: 2.7rem;
  font-weight: 500;
  text-align: right;
}

#fee {
  width: 100%;
  font-size: 6.3rem;
  font-weight: 500;
  text-align: right;
}

#fee::after {
  content: "円/月";
  margin: 0 0 0 12px;
  font-size: 2.16rem;
}

#result .block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 36px 0 9px;
  border-bottom: 1px dashed var(--c-iron);
}

#result .lbl {
  font-size: 2.1rem;
  color: var(--c-gray);
}

#result .num {
  font-size: 2.7rem;
}

#result .num::after {
  content: "円/月";
  margin: 0 0 0 9px;
  font-size: 1.8rem;
}

#result .txt {
  margin: 18px 0 0;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--c-gray);
}

#print {
  /* display: none; */
  margin: 27px 0 0 auto;
  width: 90px;
  height: 36px;
  line-height: 36px;
  font-size: 1.8rem;
  text-align: center;
  color: var(--c-blue);
  border: 1px solid var(--c-blue);
  transition:
    color 180ms var(--timing-function),
    background-color 180ms var(--timing-function);
  user-select: none;
  cursor: pointer;
}



/*  */
#ctrl.hide,
#result.hide {
  display: none;
}




/* hover */
@media (hover :hover) {
  #print:hover {
    color: #fff;
    background: var(--c-blue);
  }
}


/*  */
/*  */
@font-face {
  font-family: 'RyuminPr5-Regular';
  src: url('../../assets/fonts/RyuminPr5-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'RyuminPr5-Medium';
  src: url('../../assets/fonts/RyuminPr5-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'RyuminPr5-Bold';
  src: url('../../assets/fonts/RyuminPr5-Bold.otf') format('opentype');
}

#pwrap.hide {
  display: none;
}

#pwrap {
  margin: auto;
  padding: 60px 30px 0;
  width: 100%;
  width: 595px;
  font-family: 'RyuminPr5-Regular';
  font-size: 0;
  letter-spacing: 0.06rem;
  background: #fff;
  box-sizing: border-box;
}

#pwrap .ttl {
  margin: 0 0 54px;
  font-family: 'RyuminPr5-Medium';
  font-size: 2.7rem;
}


#pwrap table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: 1px solid #333;
}

#pwrap tr {
  border-bottom: 1px solid #333;
}

#pwrap td {
  padding: 27px;
  font-size: 2.1rem;
}

#pwrap td:nth-child(2) {
  text-align: right;
}

#pwrap .txt {
  margin: 54px 0 0;
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: center;
}

#pwrap .box {
  margin: 36px auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 36px 36px 0 36px;
  border-color: #666 transparent transparent transparent;

}

#pwrap .lbl {
  padding: 15px;
  font-size: 2.16rem;
  font-weight: 500;
  border: 1px solid #333;
  text-align: center;
}

#pwrap #p_fee {
  margin: 36px 0;
  font-size: 5.4rem;
  font-weight: 500;
  text-align: center;
}

#pwrap #p_fee::after {
  content: "円/月";
  margin: 0 0 0 6px;
  font-size: 2.1rem;
  font-weight: 400;
}

#pwrap #p_principal,
#pwrap #p_interest {
  font-size: 1.8rem;
}

#pwrap .block {
  text-align: center;
}

#pwrap .block div {
  display: inline-block;
  margin: 0 6px;
  font-size: 2.1rem;
}