/*--------------------------
共通パーツ
--------------------------*/
div.calc_title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 25px;
  padding-bottom: 0;
  border-bottom: none;
}
h2.calc_title {
  margin-bottom: 25px;
}
div.calc_title span {
  border-bottom: 3px solid #0b904a;
  display: inline-block;
  padding-bottom: 5px;
}
.calc_content_area {
  max-width: 500px;
  margin: auto;
}
.calc_layout.bg {
  background: #edf4ef;
  width: 100%;
  margin: 0;
  padding: 25px;
}
.calc_layout .calc_layout_frame {
  background: #fff;
  padding: 20px 18px 40px;
}
.calc_layout .row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 17px;
  position: relative;
}
.calc_layout .form_title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  flex: 1 0 auto;
  min-width: 4em;
}
.calc_layout_zei .form_title {
  margin-right: 10px;
}
.calc_layout_zeirishi .form_title {
  margin-right: 0;
}
.calc_layout .form_title .s {
  font-size: 14px;
}
.calc_layout .form_title .s.ml {
  margin-left: -4px;
}
.calc_layout .form_parts {
  flex: 1 1 100%;
}
.calc_layout .unit {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  margin-left: 6px;
  flex: 1 0 auto;
  display: inline-block;
}
.calc_layout input[type="text"],
.calc_layout input[type="number"],
.calc_layout select {
  font-size: 19px;
  font-weight: 600;
  color: #000;
  border: 1px solid #cdd6dd;
  background: #fff;
  padding: 16px 20px;
  border-radius: 0px;
  line-height: 1;
}
/*セレクトボックス*/
.calc_layout .form_parts_select {
  position: relative;
  flex: 1 1 100%;
}
.calc_layout .form_parts_select::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 48px;
  height: calc(100% - 4px);
  background: #0b904a;
  pointer-events: none;
}
.calc_layout .form_parts_select::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  pointer-events: none;
  position: absolute;
  top: 19px;
  right: 20px;
  z-index: 1;
}
/*ラジオボタン*/
.calc_layout input[type="radio"] {
  display: none;
}
.calc_layout .form_parts_radio {
  display: flex;
  flex-wrap: wrap;
}
.calc_layout .form_parts_radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 15px 2px 0;
  flex: 0 0 auto;
}
.calc_layout .form_parts_radio label:last-child {
  margin-right: 0;
}
.calc_layout .radio_btnarea {
  width: 30px;
  flex: 0 0 30px;
  height: 30px;
  display: inline-block;
  border: 1px solid #cdd6dd;
  border-radius: 50%;
  background: #fff;
  position: relative;
  margin-left: 4px;
}
.calc_layout .radio_btnarea::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  background: #0b904a;
  margin-right: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.calc_layout input[type="radio"]:checked + .radio_btnarea {
  border-color: #8a9ab5;
}
.calc_layout input[type="radio"]:checked + .radio_btnarea::before {
  opacity: 1;
}
.calc_layout .cyoubun {
  flex-wrap: wrap;
}
.calc_layout .cyoubun .form_parts_select {
  flex: 1 0 auto;
}
.calc_layout .cyoubun .form_title {
  margin: 5px 0 10px 0;
  flex: 1 1 100%;
}
.calc_layout .cyoubun .unit {
  flex: 0 0 auto;
}
/*結果ボタン*/
.calc_layout .calc_button {
  margin: 30px auto 0;
  position: relative;
  max-width: 650px;
  border-radius: 100px;
  box-shadow: 0 6px 16px 0 rgba(42, 122, 80, 0.25);
}
.calc_layout .calc_button .disabled {
  display: none;
}
.calc_layout .calc_button input[type="button"] {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 23px 10px;
  padding-left: 32px;
  background: #0b904a;
  border-radius: 100px;
  background-image: url(../image/calc-icon_white.svg);
  background-repeat: no-repeat;
  background-size: 20px 28px;
  background-position: center left calc(50% - 4em);
  position: relative;
}
.calc_layout .calc_button::before {
  content: "";
  display: block;
  border-top: 18px solid #0b904a;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}
.calc_layout .calc_button_print {
  margin-top: 20px;
}
.calc_layout .calc_button_print input[type="button"] {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 23px 10px;
  padding-left: 27px;
  background: #d97e01;
  border-radius: 100px;
  background-image: url(../image/icon_pdf.svg);
  background-repeat: no-repeat;
  background-size: 32px 35px;
  background-position: top 12px left calc(50% - 3em);
}
.calc_layout .before .calc_button_print input[type="button"],
.calc_layout .calc_button_print.disable input[type="button"] {
  background-color: #d0d0d0;
  pointer-events: none;
}
.calc_layout .calc_button.flash {
  animation: flash 1s ease-in-out infinite alternate;
}
@keyframes flash {
  0% {
    box-shadow: 0px 0px 0px 0px rgba(196, 221, 255, 0, 1);
  }
  100% {
    box-shadow: 0px 0px 0px 10px rgba(196, 221, 255, 0.6);
  }
}
.caution {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 25px;
}
.errtext {
  font-size: 13px;
  color: #f00;
  position: absolute;
  bottom: -18px;
  margin-left: 72px;
  display: none;
}
.calc_layout .row.err .errtext {
  display: block;
}
.calc_layout .row.err {
  margin-bottom: 32px;
}
.calc_layout .row.err .form_parts input[type="text"],
.calc_layout .row.err .form_parts input[type="number"],
.calc_layout .row.err .form_parts select,
.calc_layout .row.err .form_parts .radio_btnarea {
  background: #ffebeb;
}
@media screen and (min-width: 768px) {
  .calc_layout.bg {
    width: auto;
    margin: auto;
  }
  .calc_layout .calc_layout_frame {
    padding: 40px 30px 50px;
    max-width: 1200px;
    margin: 0 auto;
  }
  div.calc_title {
    text-align: left;
  }
  div.calc_title span {
    font-size: 24px;
    border-bottom: none;
    border-left: 9px solid #0b904a;
    padding: 3px 0 2px 10px;
  }
  .calc_content_area {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .calc_layout input[type="text"],
  .calc_layout select {
    font-size: 19px;
  }
  .insertArea {
    flex: 1 1 0;
  }
  .calc_layout .form_title {
    font-size: 17px;
  }
  .calc_layout_zei .form_title {
    margin-right: 15px;
  }
  .calc_layout .calc_button {
    margin: 70px auto 0;
    max-width: 690px;
  }
  .calc_layout .unit {
    font-size: 15px;
  }
  .calc_layout .calc_button::before {
    border-top-width: 16px;
    border-left-width: 12px;
    border-right-width: 12px;
    top: -35px;
    bottom: initial;
  }
  .calc_layout .calc_button input[type="button"] {
    font-size: 20px;
    color: #0b904a;
    font-weight: 600;
    border: 1px solid #0b904a;
    background-color: #fff;
    background-image: url(../image/calc-icon_color.svg);
    background-position: center left calc(50% - 4em);
    transition: 0.2s;
  }
  .calc_layout .calc_button input[type="button"]:hover {
    color: #fff;
    background-color: #0b904a;
    background-image: url(../image/calc-icon_white.svg);
  }
}
/*結果*/
.resultArea {
  margin: 65px auto 0;
}
.result_title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-align: center;
  padding: 10px;
  margin: 0 auto 15px;
  border-radius: 100px;
  background: #0b904a;
}
.result_parts {
  display: flex;
  align-items: center;
}
.goukei_title {
  font-size: 18px;
  font-weight: 600;
  margin-right: 5px;
  flex: 0 0 auto;
}
.result_parts_goukei {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.result_parts_goukei .num {
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  background: #e7f4f7;
  min-width: 110px;
  flex: 1 1 110px;
  max-width: 220px;
  min-height: 40px;
  text-align: right;
  padding: 10px 7px 9px;
  margin-left: auto;
  overflow: auto;
  font-style: normal;
}
.result_parts_goukei .unit {
  flex: 0 0 auto;
  margin-left: 4px;
}
.result_parts {
  display: flex;
  border: 1px solid #000;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 8px;
}
.result_parts .name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  flex: 0 0 auto;
}
.result_parts .layout_flex {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}
.result_parts .num {
  font-size: 21px;
  font-weight: 600;
  margin-left: auto;
  font-style: normal;
}
.result_parts .subnum {
  font-size: 13px;
  font-weight: 400;
  margin-left: auto;
  margin-top: 5px;
  margin-bottom: -3px;
  flex: 1 0 auto;
  width: 100%;
}
.result_parts .unit {
  flex: 0 0 auto;
  margin-left: 2px;
}

.result_parts .r_img {
  width: 54px;
  flex: 0 0 54px;
}
.result_parts_haigusya {
  border-color: #f1927b;
}
.result_parts_haigusya .r_img img {
  width: 37px;
}
.result_parts_kodomo {
  border-color: #8fc32e;
}
.result_parts_kodomo .r_img img {
  width: 40px;
}
.result_parts_oya {
  border-color: #818eaf;
}
.result_parts_oya .r_img img {
  width: 38px;
}
.result_parts_kyodai {
  border-color: #2ea6c3;
}
.result_parts_kyodai .r_img img {
  width: 39px;
}

@media screen and (min-width: 960px) {
  .w_col1 main.main {
    margin: 20px auto 20px;
  }
}

@media screen and (min-width: 768px) {
  .resultArea {
    flex: 1 1 0;
    margin: -50px 0 0 120px;
  }
  .result_title {
    margin-bottom: 23px;
  }
  .result_parts_goukei {
    width: 280px;
    margin: 0 auto 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .goukei_title {
    font-size: 15px;
    flex: 1 1 100%;
    margin: 0 0 10px;
  }
  .result_parts {
    width: 280px;
    margin: 0 auto 8px;
    padding: 6px 8px;
  }
  .result_parts_goukei .num {
    font-size: 26px;
    flex: 0 0 170px;
    margin-left: 0;
    padding: 9px 10px;
    min-height: 44px;
  }
  .result_parts_goukei .unit {
    font-size: 16px;
    margin-left: 5px;
  }
  .caution {
    margin-top: 10px;
  }
}
@media screen and (max-width: 374px) {
  .goukei_title {
    line-height: 1.2;
    flex: 0 1 auto;
  }
}
/*--------------------------
税理士報酬シミュレーター
--------------------------*/
.calc_layout_zeirishi .form_title {
  width: 112px;
  flex: 0 0 112px;
}
.calc_layout_zeirishi .unit {
  flex: 0 0 40px;
  margin-top: 2px;
}
/*税理士 結果*/
.calc_layout_zeirishi .unit .zei {
  font-size: 80%;
}
.calc_layout_zeirishi .result_parts_goukei {
  margin-bottom: 8px;
}
.calc_layout_zeirishi .goukei_title {
  margin-right: 10px;
}
.calc_layout_zeirishi .resultArea .subnum {
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
  width: 98%;
}
.calc_layout_zeirishi .caution + .caution {
  margin-top: 10px;
}
.calc_layout_zeirishi .caution a {
  color: #46aaff;
}
@media screen and (min-width: 768px) {
  .calc_layout_zeirishi .form_title {
    width: 115px;
    flex: 0 0 115px;
  }
  .calc_layout_zeirishi .resultArea {
    margin-top: 0;
  }
  .calc_layout_zeirishi .result_parts_goukei {
    width: 270px;
  }
  .calc_layout_zeirishi .result_parts_goukei .num {
    flex: 1 1 220px;
    max-width: 220px;
  }

  .calc_layout_zeirishi .resultArea .subnum {
    display: inline-block;
    width: auto;
    margin-right: 15px;
    text-align: left;
  }
  .calc_layout_zeirishi .calc_button {
    margin-top: 70px;
  }
  .calc_layout_zeirishi .subnum_area {
    width: 270px;
    margin: 0 auto;
  }
  .calc_layout_zeirishi .caution {
    width: auto;
    margin: 23px auto 0;
  }
}
/*無効処理*/
.calc_layout .disable {
  color: #aaa;
}
.calc_layout .disable .form_parts_select::before {
  background: #d0d0d0;
}
.calc_layout .disable input,
.calc_layout .disable label,
.calc_layout .disable select {
  pointer-events: none;
  color: #aaa;
}
.calc_layout .disable .radio_btnarea::before {
  opacity: 0;
}
.calc_layout .result_parts.disable {
  display: none;
}
.resultArea.before .result_parts {
  display: none;
}
.resultArea.before .result_title {
  color: #fff;
  background: #d0d0d0;
}
.resultArea.before .result_parts_goukei .goukei_title,
.resultArea.before .result_parts_goukei .unit {
  color: #aaa;
}
.resultArea.before .result_parts_goukei .num {
  color: #f4f4f4;
  background: #f4f4f4;
}
.resultArea.before .subnum {
  color: #aaa;
}
.resultArea.before .subnum span {
  display: none;
}
