@charset "utf-8";

form#form{
  margin-bottom: 60px;
}

form#form dl{
  display:-webkit-box;
  display:-moz-box;
  display:-webkit-flexbox;
  display:-moz-flexbox;
  display:-ms-flexbox;
  display:-webkit-flex;
  display:-moz-flex;
  display:flex;
  -webkit-box-lines:multiple;
  -moz-box-lines:multiple;
  -webkit-flex-wrap:wrap;
  -moz-flex-wrap:wrap;
  -ms-flex-wrap:wrap;
  flex-wrap:wrap;
  justify-content: center;
  margin: 60px auto 0;
  width: 85%;
}


form#form dt{
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flexbox;
  display: -moz-flexbox;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-box-lines: multiple;
  -moz-box-lines: multiple;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-left: solid 1px #D8020B;
  border-bottom: 1px solid #e6e6e6;
  box-sizing: border-box;
  color: #000;
  font-weight: bold;
  padding: 1.5em 2em;
  width: 20em;
}

form#form dd{
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  box-sizing: border-box;
  color: #000;
  padding: 1.5em 2em;
  text-align: left;
  width: calc(100% - 20em);
}


form#form dt:nth-of-type(1),
form#form dd:nth-of-type(1){
  border-top: 1px solid #e6e6e6;
}

@media screen and (max-width:768px){
  form#form dl{
    flex-direction: column;
    width: 100%;
  }

  form#form dl dt{
    border-bottom: none;
    border-right: 1px solid #e6e6e6;
    padding: 20px 15px;
    width: 100%;
  }

  form#form dl dd{
    border-left: solid 1px #D8020B;
    padding: 20px 15px;
    width: 100%;
  }
}



form#form dt > span,
form#form ul.agree_check li:nth-child(1) > span{
  display: block;
  color: #db0c0c;
  font-size: 12px;
  border: 1px solid #db0c0c;
  line-height: 1.1;
  padding: 4px 3px 2px;
}

form#form input[type="text"],
form#form input[type="tel"],
form#form input[type="email"]{
  background: #f6f8f9;
  border: none;
  box-sizing: border-box;
  color: #000;
  font-size: 16px;
  height: 55px;
  padding: 0 1em;
  width: 100%;
}

form#form select{
  border: 1px solid #dadada;
  cursor: pointer;
  color: #000;
  width: 300px;
  height: 53px;
  padding: 0 1em;
}

form#form textarea{
  background: #f6f8f9;
  border: none;
  padding: 1em;
  width: 100%;

}

div.agree_wrap{
  border: 1px solid #e6e6e6;
  box-sizing: border-box;
  padding: 40px 2em;
  padding-right: 20px;
  overflow-y: scroll;
  margin: 40px auto 0;
  width: 85%;
  height: 262px;
}

@media screen and (max-width:768px){
  div.agree_wrap{
    width: 100%;
  }
}

div.agree_wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

div.agree_wrap::-webkit-scrollbar-track {
  border-radius: 5px;
}

div.agree_wrap::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #d6d6d6;
}


form#form ul.agree_check{
  display:-webkit-box;
  display:-moz-box;
  display:-webkit-flexbox;
  display:-moz-flexbox;
  display:-ms-flexbox;
  display:-webkit-flex;
  display:-moz-flex;
  display:flex;
  -webkit-box-lines:multiple;
  -moz-box-lines:multiple;
  -webkit-flex-wrap:wrap;
  -moz-flex-wrap:wrap;
  -ms-flex-wrap:wrap;
  flex-wrap:wrap;
  justify-content: center;
  list-style: none;
  margin: 40px 0;
}
form#form ul.agree_check li:nth-child(2){
  padding-left: 20px;
}

.agree_txt{
  box-sizing: border-box;
  color: #000;
  position: relative;
  display: inline-block;
  padding-left: 42px;
  vertical-align: middle;
  cursor: pointer;
}

.agree_txt::after {
  transition: border-color .2s linear;
  position: absolute;
  top: 50%;
  left: 15px;
  display: block;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  background: #f6f8f9;
  border: 1px solid #e6e6e6;
  content: "";
}

.agree_txt::before {
  transition: opacity .2s linear;
  position: absolute;
  top: 32%;
  left: 21px;
  display: block;
  margin-top: -7px;
  width: 10px;
  height: 15px;
  border-right: 3px solid #db0c0c;
  border-bottom: 3px solid #db0c0c;
  content: "";
  opacity: 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  z-index: 2;
}

input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  z-index: -1;
}

input[type=checkbox]:checked + .agree_txt::before {
  opacity: 1;
}


p.form_btn button[type="submit"]{
  background: #D8020B;
  border: none;
  border-radius: 25px;
  color:#fff;
  font-weight: bold;
  font-size: 18px;
  margin: 0 auto;
  padding: 18px 0;
  text-align: center;
  width: 40%;
}

.agree_wrap h3{
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: bold;
  margin-bottom: 40px;
}

.text_left:first-line{
  font-weight: bold;
}

p.form_btn button[name="back"]{
  background: #d6d6d6;
  border: none;
  border-radius: 25px;
  color:#fff;
  font-weight: bold;
  font-size: 18px;
  margin: 0 30px 0 0;
  padding: 18px 0;
  text-align: center;
  width: 40%;
}
