/* ------------------------------------------------------------------ */
/* modal */
.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
}
.modal.show{
  display: block;
}
.modal .modalbg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0,0,0,0.8);
}
.modal .modalcontent{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal .modalbody2{
  width: 600px;
  height: auto;
  max-height: calc(100% - 40px);
  background: #ffffff;
  overflow: auto;
  position: relative;
  padding: 30px 59px;
  box-sizing: border-box;
}
.modal .modalbody2 .modaltitle{
  font-size: 27px;
  line-height: 1;
  padding-bottom: 17px;
  margin-bottom: 20px;
  border-bottom: #313131 solid 1px;
}
.modal .modalbody2 .title{
  font-size: 20px;
  font-weight: normal;
  margin-left: 19px;
}
.modal .modalbody2 .list{
  border: #313131 solid 1px;
  height: 239px;
  padding: 18px 0;
  overflow: auto;
  box-sizing: border-box;
}
.modal.selectplace .modalbody2 .list{
  height: 269px;
}
.modal .modalbody2 .list.unitlist{
  border: none;
  height: auto;
  padding: 0;
  overflow: auto;
  box-sizing: border-box;
}
.modal .modalbody2 .list li{
  line-height: 1.5em;
  padding-left: 18px;
  margin-bottom: 0.5ex;
  cursor: pointer;
}
.modal .modalbody2 .list.unitlist li{
  padding-left: 7px;
  margin-bottom: 0.2ex;
}
.modal .modalbody2 .list.unitlist li.work{
  margin-left: 2em;
}
.modal .modalbody2 .list li.checkbox i{
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  width: 1em;
  height: 1em;
  border: #313131 solid 1px;
  vertical-align: text-bottom;
  position: relative;
  top: calc(-1.5em/2 + 1em/2);
  margin: 0 11px 0 6px;
  box-sizing: border-box;
}
.modal .modalbody2 .list li.checkbox.checked i:after{
  content: "\f00c";
  font-weight: 900;
  color: #e27500;
  display: block;
  position: absolute;
  font-size: 1em;
  line-height: 1em;
  top: -2px;
  left: 0;
}

.modal .modalbody2 .btn_close{
  width: 31px;
  height: 31px;
  position: absolute;
  display: block;
  background: #ffffff;
  top: 20px;
  right: 20px;
}
.modal .modalbody2 .btn_close:before,
.modal .modalbody2 .btn_close:after{
  content: "";
  position: absolute;
  width: 31px;
  height: 1px;
  transform-origin: 50%;
  top: 0;
  left: 0;
  background: #313131;
}
.modal .modalbody2 .btn_close:before{
  transform: translate(0, calc(31px / 2) ) rotate(45deg) scale(1.4142,1);
}
.modal .modalbody2 .btn_close:after{
  transform: translate(0, calc(31px / 2) ) rotate(-45deg) scale(1.4142,1);
}
.modal .modalbody2 .btn_apply{
  display: block;
  font-size: 18px;
  text-align: center;
  color: #ffffff;
  background: #e27500;
  border-radius: 5px;
  width: 130px;
  height: 35px;
  line-height: 35px;
  box-sizing: border-box;
  margin: 30px auto auto;
}

.modal .modalbody2 .placeselect{
  display: flex;
  justify-content: space-between;
}
.modal .modalbody2 .placeselect .areawrap{
  width: 200px;
  position: relative;
}
.modal .modalbody2 .placeselect .areawrap:after{
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  border: #313131 solid 2px;
  border-width: 2px 2px 0 0;
  transform-origin: 50% 50%;
  transform: rotate(45deg) scale( calc(1 / 1.4142) );
  top: 50%;
  right: calc(-10px + -11px);
}
.modal .modalbody2 .placeselect .areawrap .arealist{
  position: relative;
}
.modal .modalbody2 .placeselect .areawrap .arealist li.selected{
  background: #e27500;
  color: #ffffff;
}
.modal .modalbody2 .placeselect .prefwrap{
  width: 251px;
}

@media screen and (max-width: 767px){
  .modal .modalbody2{
    width: calc(740/750 * 100vw);
    max-width: 600px;
    height: auto;
    /* max-height: calc(100vh - 40px); */
    max-height: calc(100% - 40px);
    background: #ffffff;
    overflow: auto;
    position: relative;
    padding: 30px calc(10/750*100vw);
    box-sizing: border-box;
  }
  .modal .modalbody2 .placeselect .areawrap{
    width: calc(100%/2 - 10px);
  }
  .modal .modalbody2 .placeselect .prefwrap{
    width: calc(100%/2 - 10px);
  }
  .modal .modalbody2 .placeselect .areawrap:after{
    width: 10px;
    height: 10px;
    right: calc(-10px + -10px /2);
  }
  .modal .modalbody2 .list.unitlist li{
    padding-left: 0;
  }
  .modal .modalbody2 .list.unitlist li.checkbox i{
    margin: 0 9px 0 1px;
  }
}