@charset "utf-8";

main {
  margin-top: 60px;
}

h2 {
  font-size: 3.2rem;
  color: #0095DB;
  background-color: #fff;
  border-left: 6px solid #0095DB;
  padding: 1rem 2rem;
  margin-bottom: 25px;
  -webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.contact_form {
  margin-top: 40px;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #0095DB;
}

.contact_form > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
.contact_form > div:not(:last-of-type) {
  border-bottom: 1px solid #0095DB;
}

.contact_form dt {
  width: 25%;
  padding: 20px;
  border-right: 1px solid #0095DB;
}

.contact_form dt .required {
  font-size: 80%;
  color: #ff0000;
  vertical-align: text-top;
}

.contact_form dd {
  width: 75%;
  padding: 20px;
}

.contact_form dd .error {
  font-size: 1.2rem;
  margin-top: 4px;
}

.contact_form input,
.contact_form textarea {
  border: 1px solid #bbb;
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
}
.contact_form input:hover,
.contact_form textarea:hover {
  border: 1px solid #0095DB;
}

.contact_form input {
  width: 100%;
  font-size: 1.4rem;
  padding: 5px;
}

.contact_form textarea {
  width: 100%;
  height: 14rem;
  resize: none;
}

button[type="submit"],
input[type="submit"] {
  /*初期化*/
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  font-weight: normal;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button.submit,
input[type="submit"],
a.submit {
  display: block;
  color: #0095DB;
  font-size: 1.8rem;
  border: 1px solid #0095DB;
  padding: 1.5rem;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
  max-width: 500px;
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
}

a.submit {
  margin-top: 60px;
  text-decoration: none;
  text-align: center;
}

button.submit:hover,
input[type="submit"]:hover,
a.submit:hover {
  color: #fff;
  background-color: #0095DB;
}


/*ウィンドウサイズが1200px以下の場合*/
@media screen and (max-width:1200px) {
  
  
  
}

/*ウィンドウサイズが600px以下の場合*/
@media screen and (max-width:600px) {
  
  .contact_form > div {
    padding: 20px 4%;
  }
  
  .contact_form dt,
  .contact_form dd {
    width: 100%;
    padding: 0;
  }
  
  .contact_form dt {
    border-right: none;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #0095DB;
  }
  
}