@charset "utf-8";
/*=======================================================================
form
=======================================================================*/
#form {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}
#formbox {
  position: relative;
  padding: 20px;
  border: 1px solid #1e477a;
  border-radius: 8px;
}
#form dl div {
  padding: 16px 0;
}
@media all and (min-width: 961px) {
  #formbox {
    padding: 80px;
  }
  #form dl div {
    display: table;
    width: 100%;
    padding: 16px 0;
  }
  #form div dt,
  #form div dd {
    display: table-cell;
  }
  #form div dt,
  #form div dd {
    vertical-align: middle;
  }
  #form div dt {
    width: 35%;
    position: relative;
  }
  #form div dd {
    width: 65%;
  }
}
input,
select {
  background: #fff;
}
input[type="text"]:focus::-webkit-input-placeholder {
  color: transparent;
}
input[type="text"]:focus::-moz-placeholder {
  color: transparent;
}
[inputtype="text"]:focus::-ms-input-placeholder {
  color: transparent;
}
input[type="text"]:focus::placeholder {
  color: transparent;
}
textarea:focus::placeholder {
  color: transparent;
}
#form label {
  font-size: 100%;
  line-height: 1.6em;
  letter-spacing: 0.12em;
}
#form input[type="text"],
#form input[type="tel"],
#form input[type="number"],
#form input[type="email"],
#form textarea,
select {
  width: 100%;
  border: 1px solid #ccc;
  -moz-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  box-shadow: inner 0 0 4px rgba(0, 0, 0, 0.2);
  padding: 16px;
  font-size: 87.5%;
}
#form textarea {
  min-height: 15vh;
}
select,
option {
  padding: 16px;
  width: 100%;
  cursor: pointer;
}
input:focus,
textarea:focus,
select:focus {
  background: #ffc;
}
span.need {
  background: #1e477a;
  color: #fff;
  padding: 0.6% 16px;
  font-size: 87.5%;
  margin: 10% 0;
}
@media screen and (max-width: 767px) {
  span.need {
    display: inline-block;
  }
}
#form dl dt.need {
  padding-bottom: 8px;
}
#form dl dt.need:after {
  position: absolute;
  content: "必須";
  background: #1e477a;
  color: #fff;
  padding: 0.3% 16px;
  font-size: 87.5%;
  margin-left: 8px;
}
input[type="radio"],
input[type="checkbox"] {
  display: inline-block;
  margin: 8px 6px;
  /*-moz-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  box-shadow: inner 0 0 4px rgba(0, 0, 0, 0.2);*/
  accent-color: #ccc;
}
input[type="radio"] + label,
input[type="checkbox"] + label {
  position: relative;
  display: inline-block;
  margin: 8px 12px 8px 8px;
  line-height: 250%;
  cursor: pointer;
}
@media (min-width: 1px) {
  /*input[type="radio"],
  input[type="checkbox"] {
    display: none;
    margin: 0;
  }*/
  input#agree {
    display: block;
    opacity: 0;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    min-height: 1px;
    border: 0;
    border-radius: 0;
    font-size: 0;
  }
  input[type="radio"] + label,
  input[type="checkbox"] + label {
    padding: 0;
  }
  input[type="checkbox"] {
    width: 20px;
    height: 20px;
    transform: scale(1.5);
    margin-right: 8px;
  }
  /*input[type="radio"] + label::before,
  input[type="checkbox"] + label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 25px;
    height: 25px;
    margin-top: -12px;
    background-color: white;
  }
  input[type="radio"] + label::before {
    border: 1px solid #ccc;
    border-radius: 30px;
  }
  input[type="checkbox"] + label::before {
    border: 1px solid #ccc;
  }
  input[type="radio"]:checked + label::after,
  input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    top: 50%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
  }
  input[type="radio"]:checked + label::after {
    left: 5px;
    width: 15px;
    height: 15px;
    margin-top: -7px;
    background: #65adc9;
    border-radius: 8px;
  }
  input[type="checkbox"]:checked + label::after {
    left: 3px;
    width: 18px;
    height: 9px;
    margin-top: -8px;
    border-left: 3px solid #65adc9;
    border-bottom: 3px solid #65adc9;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }*/
}
.formbtn,
.formbtn_gray {
  text-align: center;
  width: 90%;
  max-width: 400px;
  margin: 40px auto;
  display: block;
  text-decoration: none;
  border-radius: 30px;
  padding: 16px;
  transition: 0.3s;
}
.formbtn {
  background: #1e477a;
  color: #fff;
  max-width: 200px;
  transition: 1s all;
}
.formbtn:hover {
  background: #65adc9;
  color: #fff;
  transform: scale(1.1, 1.1);
  transition: 1s all;
}
.formbtn_gray {
  background: #777;
  border: 1px solid #777;
  color: #fff;
}
.formbtn_gray:hover {
  background: #fff;
  border: 1px solid #777;
  color: #777;
}
@media screen and (min-width: 1281px) {
  #form {
    width: 100%;
  }
  #form dl dt.need:after {
    right: 40px;
    left: auto;
    margin-left: 0;
  }
}
