/*headerをfixした時の記述*/
/*.mainVisual_SP, .mainVisual_PC {*/
/*    padding-top: 80px;*/
/*}*/

.contents {
  display: flex;
}

.contents_main.sp {
  display: none;
}

.contents_box {
  width: 100%;
  max-width: calc(100% - 400px);

  background: #e8f5ff;
}

.contents_box-wrap {
  margin: 24px;
}

.contents_main {
  overflow: hidden;

  padding: 32px 24px;

  background: #e8f5ff;
}

.scrollable_wrap {
  overflow-x: hidden;
  overflow-y: scroll;

  max-height: 80vh;

  scrollbar-width: thin;
}

table {
  width: 100%;
}

table th,
table td {
  font-weight: normal;

  padding: 8px 4px;

  text-align: center;
  vertical-align: middle;

  border: solid 1px #5376ca;
}

table th {
  color: #fff;
  background-color: #1a49ba;
}

table td {
  height: 56px;

  background-color: #fff;
}

.table_member th:nth-child(1),
td {
  width: 75px;
}

.life_event {
  width: 70%;
}

.table_sp,
.button_sp {
  display: none;
}

.contents_money {
  background: #e8f5ff;
}

.contents_cost,
.contents_cost_title {
  display: flex;
  align-items: center;

  vertical-align: middle;
}

.contents_cost {
  justify-content: center;

  padding: 48px;
}

.contents_cost_title {
  position: relative;

  display: flex;
}

.contents_cost_title:after {
  position: absolute;
  left: 100%;

  display: inline-block;

  width: 90px;
  height: 90px;
  margin-left: 16px;

  content: '';
  vertical-align: middle;

  background-image: url('../../images/g21premium/pig.png');
  background-repeat: no-repeat;
  background-size: contain;
}

.contents_cost_title_sentence {
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;

  color: #1a49ba;
}

.contents_cost_title_sentence > span {
  font-size: 36px;
  font-weight: bold;

  letter-spacing: 2px;
}

.contents_cost img {
  padding: 0 24px;
}

.contents_cost_title h3 {
  padding-top: 16px;
}

.contents_cost_title_sentence h5 {
  width: 100%;

  text-align: center;
}

.contents_cost_title_sentence > div:before,
.contents_cost_title_sentence > div:after {
  position: absolute;
  top: 90%;

  width: 30%;

  content: '';

  border: #1a49ba 1px solid;
}

.contents_cost_title_sentence > div:before {
  right: 70%;
}

.contents_cost_title_sentence > div:after {
  left: 70%;
}

.contents_cost_list_top,
.contents_cost_list_bottom {
  margin: 0 24px;
  padding: 24px;

  background-color: #fff;
}

.contents_cost_list_top {
  margin: 0 24px;

  border-radius: 10px 10px 0 0;
}

.contents_cost_list_bottom {
  height: 100%;
  margin-bottom: 24px;

  border-radius: 0 0 10px 10px;
}

.contents_cost_list_box {
  padding-top: 24px;
}

.contents_cost_list_box > span {
  font-size: 18px;
  font-weight: bold;

  color: #1a49ba;
}

.contents_cost_math {
  display: flex;
  align-items: flex-end;
}

.contents_cost_type {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  width: 100%;
}

.contents_cost_type {
  padding-bottom: 24px;

  border-bottom: dashed 2px #f6f6f6;
}

.formula_number {
  font-size: 16px;

  color: #1a49ba;
}

.math_number {
  font-size: 20px;
  font-weight: bold;

  color: #1a49ba;
}

.cost_formula {
  margin: 0 16px;
}

.cost_formula,
.math_number > span {
  font-size: 14px;
  font-weight: normal;

  color: black;
}

.contents_form {
  position: relative;

  width: 400px;

  background-color: #fff;
}

.multiplication {
  padding: 16px;
}

.contents_cost_equal {
  display: flex;
  align-items: flex-end;
  flex-direction: column;

  margin: 32px 0;
}

.contents_cost_equal > span {
  padding-bottom: 32px;
}

.contents_cost_equal span > span {
  font-size: 24px;
  font-weight: bold;

  padding-left: 24px;

  color: #1a49ba;
}

.contents_cost_ex {
  padding: 32px;

  border-radius: 12px;
}

.contents_cost_ex_sentence span {
  font-size: 24px;
  font-weight: bold;

  display: flex;
  align-items: center;

  padding: 16px 0;

  color: #1a49ba;
}

.contents_cost_ex_sentence span:before {
  display: inline-block;

  width: 90px;
  height: 90px;

  content: '';
  vertical-align: middle;

  background-image: url('../../images/g21premium/sika.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

.contents_cost_ex p {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.8;

  color: #000;
}

.contents_form_box {
  width: 350px;
  padding: 40px 32px;

  border-top: 1px solid #9a9a9a;
  border-bottom: 1px solid #9a9a9a;
}

.contents_form_family,
.contents_form_housePrice,
.contents_form_houseLoan,
.contents_form_child,
.contents_form_marryHelp,
.contents_form_image,
.contents_form_open,
.contents_form_reform,
.contents_form_otherMain,
.contents_form_otherSub {
  margin-bottom: 40px;
  padding-bottom: 40px;

  border-bottom: 1px dashed #9a9a9a;
}

.contents_form_family > .contents_form_pick > .form_pick_number > .pick_number_box:nth-child(n+1):nth-child(-n+3) {
  margin-right: 16px;
}

.contents_form_name {
  overflow: hidden;

  margin-bottom: 48px;
}

.form_name_title {
  font-size: 18px;

  max-width: calc(100% - 30px);
}

.form_name_title span {
  font-size: clamp(18px, 2.0vw, 22px);
  font-weight: bold;

  position: relative;

  color: #232323;
}

.form_name_title .require::before {
  font-size: 10px;
  line-height: 1em;

  position: absolute;
  top: 33%;
  right: -3px;

  padding: 2px;

  content: '必須';
  transform: translate(100%, -33%);

  color: #fff;
  background-color: #fd5454;
}

.contents_form_name svg {
  margin: 0 8px;
}

.birth,
.add_child {
  font-size: 14px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  vertical-align: middle;

  color: #232323;
  border: #232323 1px solid;
  border-radius: 8px;
}

.birth:hover,
.add_child:hover {
  color: #1a49ba;
  border: #1a49ba 1px solid;
}

.birth:hover svg,
.add_child:hover svg {
  stroke: #1a49ba;
}

.birth {
  margin-bottom: 40px;
  padding: 8px 24px;

  vertical-align: middle;
}

.add_child {
  margin-top: 32px;
  padding: 8px 40px;
}

.contents_form_pick span,
.pick_number_box span {
  vertical-align: bottom;
}

.pick_title.require::before {
  font-size: 10px;
  line-height: 1em;

  position: absolute;
  top: 33%;
  right: -3px;

  padding: 2px;

  content: '必須';
  transform: translate(100%, -33%);

  color: #fff;
  background-color: #fd5454;
}

.pick_title {
  font-size: clamp(18px, 2.0vw, 22px);
  font-weight: bold;

  position: relative;

  max-width: calc(100% - 18px);
  margin-bottom: 12px;

  color: #232323;
}

.pick_ex {
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: normal;
  line-height: 1.5;

  margin-top: 12px;
}

span.unit {
  font-size: 16px;
}

.pick_number_box {
  width: 100%;
}

.pick_number_box input {
  max-width: 160px;
}

.pick_number_box p {
  margin-top: 12px;
}

.form_pick_number {
  margin-bottom: 40px;
}

.money {
  max-width: 160px;
}

.contents_form_houseLoan > .contents_form_pick > .form_pick_number {
  margin-top: 32px;
}

.contents_form_houseLoan select,
.contents_form_houseLoan input {
  margin: 0;
}

.contents_form_houseLoan span {
  margin-right: 8px;
}

.loan_back:nth-child(1) {
  margin-right: 24px;
}

.loan_back {
  display: flex;
  align-items: center;

  margin-bottom: 12px;
}

.loan_back.form_pick_number.contents_form_pick {
  display: flex;
  align-items: flex-end;
}

.school_box {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;

  margin-bottom: 16px;
}

.school_box span {
  font-size: clamp(18px, 2.0vw, 22px);
  font-weight: bold;

  margin-bottom: 12px;

  color: #232323;
}

.school_box select {
  margin-right: 16px;
}

.kindergarten,
.elementary,
.junior_highschool,
.highschool,
.college,
.course_pick {
  min-width: 100px;
}

.school_box .pick_number_box {
  display: flex;
  align-items: baseline;
}

.Supple {
  font-size: 14px;
  line-height: 1.5;

  color: #232323;
}

.job_box {
  display: block;

  margin-bottom: 32px;
}

.job_box p {
  margin-top: 12px;
}

.job_box input {
  max-width: 150px;
}

.job_box .pick_number_box {
  margin-right: 16px;
}

.contents_form_open > .contents_form_pick,
.contents_form_reform > .contents_form_pick,
.contents_form_otherMain > .contents_form_pick,
.contents_form_otherSub > .contents_form_pick {
  margin-bottom: 32px;
}

.contents_form_open p {
  font-size: 16px;

  margin-bottom: 48px;

  color: #232323;
}

.reform_title {
  margin-bottom: 32px;

  color: #fff;
}

.reform_box {
  display: flex;
  flex-direction: column;
}

.reform_box > .pick_title {
  padding-bottom: 8px;
}

.contents_form .contents_form_cashBack {
  position: sticky;
  z-index: 1;
  bottom: 0;
  left: 0;

  visibility: hidden;

  width: 350px;
  margin: 0;
  padding: 32px;

  transition: .3s;

  opacity: 0;
  background: rgba(165, 196, 233, .5);
}

.contents_form .contents_form_cashBack.show {
  visibility: visible;

  opacity: 1;
}

.contents_form_cashBack span {
  font-size: 16px;
  font-weight: bold;

  display: flex;
  justify-content: center;

  padding-top: 24px;
}

.form_cashBack_btn {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;

  gap: 8px;
}

.form_cashBack_btn:nth-last-child(1) {
  margin-bottom: 0;
}

.form_cashBack_btn .blank {
  min-width: 40%;
  padding: 8px;
}

.dataInput,
.reference,
.keep {
  min-width: 40%;
  padding: 8px;

  text-align: center;

  border-radius: 5px;
}

.keep {
  width: calc(80% + 8px);
}

.dataInput {
  display: none;
}

.reference {
  color: #1a49ba;
  border: #1a49ba 1px solid;
  background: #fff;
}

.reference:hover {
  opacity: 1.0;
  color: #fff;
  border: #1a49ba 1px solid;
  background: #1a49ba;
}

.form_cashBack_btn a {
  text-decoration: none;
}

.keep {
  color: #fff;
  border: #c82f7b 1px solid;
  background: #c82f7b;
}

.keep:hover {
  opacity: 1.0;
  border: #a10151 1px solid;
  background: #a10151;
}

.scroll_btn {
  display: none;
}

.mainVisual {
  position: relative;
}

.mainVisual .popup_life_plan {
  font-weight: bold;

  position: absolute;
  bottom: 2%;
  left: 6%;

  padding: 12px 56px;
}

.is-completed-store {
  font-size: 18px;
  font-weight: bold;

  position: fixed;
  z-index: 1;
  top: 30vh;
  left: 0;

  visibility: hidden;

  width: 100%;
  padding: 24px;

  transition: .3s;
  text-align: center;

  opacity: 0;
  color: #1a49ba;
  background: rgba(165, 196, 233, .7);
}

.is-completed-store.show {
  visibility: visible;

  opacity: 1;
}

.printable .contents_cost {
  display: none !important;
}

.printable .contents_cost_ex_sentence {
  display: none !important;
}

.printable .print_comment {
  display: block !important;
}

.printable .contents_table table tr th {
  color: #3e3a39 !important;
}

.text_box {
  color: #c82f7b;
}

.errorEvent {
  border: 2px solid #c82f7b !important;
}

/*レイアウト調整*/
@media screen and (max-width: 1510px) {
  .contents_cost_type {
    flex-direction: column;

    padding-top: 8px;
  }

  .contents_cost_type > span {
    width: 100%;
  }

  .contents_cost_math {
    align-items: flex-end;
    justify-content: space-between;

    width: 100%;
  }

  .contents_cost_math > span {
    margin: 0;
  }
}

@media screen and (max-width: 1070px) {
  .contents_table th {
    font-size: 12px;
  }

  .mainVisual .popup_life_plan {
    padding: 10px 36px;
  }
}

@media screen and (max-width: 768px) {
  .is-completed-store {
    top: 56px;
  }
}

/*スマホ・タブレット用画面*/
@media screen and (max-width: 900px) {
  .l-content {
    padding: 24px 0;
  }

  .contents {
    flex-direction: column;
  }

  .scrollable_wrap {
    overflow: inherit;

    max-height: inherit;
  }

  .contents_box,
  .contents_form {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .contents_box-wrap {
    margin: auto;
  }

  .contents_form_box {
    width: 100%;
  }

  .contents_form,
  .contents_box {
    overflow-y: initial;
  }

  .contents_box {
    background: #fff;
  }

  .contents_main {
    padding: 0;

    background: transparent;
  }

  .contents_table {
    display: none;
  }

  .button_sp {
    display: block;

    margin: auto;
    padding: 8px 32px;

    color: #1a49ba;
    border: #1a49ba 1px solid;
    border-radius: 5px;
    background: #fff;
  }

  .button_sp:hover {
    color: #fff;
    background: #1a49ba;
  }

  .table_sp {
    display: block;
    overflow-x: scroll;

    white-space: nowrap;

    -webkit-overflow-scrolling: touch;
  }

  .table_sp th {
    padding: 8px 24px;
  }

  .table_sp th span {
    writing-mode: vertical-lr;
  }

  .table_box_one th {
    background: #1c58c7;
  }

  .table_box_three th,
  .table_box_four th:nth-child(2),
  .table_box_five th,
  .table_box_six th,
  .table_box_seven th,
  .table_box_eight th,
  .table_box_nine th,
  .table_box_ten th,
  .table_box_eleven th {
    background: #396ccd;
  }

  .contents_money {
    background: #fff;
  }

  .contents_cost {
    margin: 0;
    padding: 48px 0 24px;
  }

  .contents_cost_list_top,
  .contents_cost_list_bottom {
    margin: 0;
  }

  .contents_cost_list_bottom {
    background: #e8f5ff;
  }

  .contents_cost_list_box,
  .contents_cost_ex > p {
    font-size: 20px;
  }

  .contents_cost_type {
    flex-direction: column;

    padding-top: 0;
  }

  .contents_cost_type > span {
    width: 100%;
    margin: 16px 0;
    padding: 8px 16px;

    background: #ededed;
  }

  .contents_cost_math {
    align-items: flex-end;
    justify-content: space-between;

    width: 100%;
  }

  .contents_cost_title_sentence > div > span {
    font-size: 14px;
  }

  .contents_cost_title:after {
    display: none;
  }

  .contents_cost_ex {
    background: #fff;
  }

  .contents_cost_ex_sentence span:before {
    display: inline-block;

    width: 70px;
    min-width: 70px;
    height: 70px;
    min-height: 70px;

    content: '';
    vertical-align: middle;

    background-image: url('../../images/g21premium/sika.svg');
    background-repeat: no-repeat;
    background-size: contain;
  }

  .contents_cost_ex p {
    font-size: 16px;
  }

  .dataInput {
    display: inline-block;

    color: #fff;
    border: #a5c4e9 1px solid;
    background: #1a49ba;
  }

  .scroll_btn {
    position: fixed;
    right: 24px;
    bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    opacity: .8;
    border-radius: 4px;
    background: #fff;
  }

  .contents_form .contents_form_cashBack {
    width: calc(100% + 48px);
    margin: 0 -24px;
  }

  .contents_form .contents_form_cashBack {
    left: 0;
  }

  .mainVisual .popup_life_plan {
    bottom: 5%;
    left: 4%;

    width: 50%;
    padding: 16px 0;
  }
}

/*レイアウト調整*/
@media screen and (max-width: 470px) {
  .contents_cost_math {
    align-items: flex-start;
    flex-direction: column;

    margin-top: 8px;
  }

  .contents_cost_math h3 {
    margin-top: 16px;
  }

  .contents_cost_equal {
    align-items: flex-start;
  }

  .el-dialog {
    width: 100%;
  }

  .mainVisual .popup_life_plan {
    font-size: 12px;

    left: 0;

    padding: 8px 0;
  }
}
