/* 共通　*/
#contact,
#thanks {
  min-width: 1110px;
  overflow: hidden;
}
#contact main,
#thanks main {
  margin: 0 auto;
  padding-bottom: 5em;
  line-height: 1.8;
}
#contact .title h1,
#thanks .title h1 {
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.6em;
  font-size: 38px;
  font-weight: bold;
  display: inline-block;
  color: #008ba5;
}
#contact .text,
#thanks .text {
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}
#contact .text p,
#thanks .text p{
  font-size: 16px;
}
#contact footer + small,
#thanks footer + small {
    margin-bottom: 0;
}
@media (max-width: 768px) {
  #contact,
  #thanks {
    min-width: 100%;
  }
}
@media (max-width: 640px) {
  #contact .title h1,
  #thanks .title h1 {
    padding: 0 15px 10px;
    font-size: 34px;
  }
}
@media (max-width: 480px) {
  #contact .title h1,
  #thanks .title h1 {
    font-size: 25px;
  }
}

/* お問合せフォーム */
#contact .title{
  text-align: center;
  margin: 4em auto 0.5em;
  padding: 0 15px;
}
#contact .text {
  margin-bottom: 3em;
}
#form_area {
  max-width: 700px;
  margin: 0 auto 4em;
  text-align: left;
  background: #fff;
  padding: 0 15px;
}
#form_area form .form_group {
  margin-bottom: 1em;
}
#form_area form .form_legend,
#form_area form .form_label {
  font-weight: bold;
  margin-top: 1rem;
}
#form_area form .required{
  display: block;
  position: relative;
}
#form_area form .required::after{
  content: "*";
  margin-left: 0.5em;
  font-size: 1em;
  color: #dc3545;
  font-weight: normal;
}
#form_area form input[type="text"],
#form_area form input[type="email"],
#form_area form select {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.75rem;
  color: #495057;
  line-height: 1.5;
}
#form_area form input[type="checkbox"] {
  accent-color: #008ba5;
}
#form_area form input[type="checkbox"]:hover {
  background-color: transparent;
  accent-color: #008ba5;
}
#form_area form select {
  appearance: auto;
  outline:none;
  height: 41px;
}

#form_area form textarea {
  width: 100%;
  height: 90px;
  padding: 10px;
  border: solid 1px #ced4da;
  box-sizing: border-box;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
}
#contact a.link,
#thanks a.link {
  color: #EA7B12;
  text-decoration: none;
}
#contact a.link:hover,
#thanks a.link:hover {
  color: #EA7B12;
  text-decoration: underline;
}
#form_area form .g-recaptcha {
  margin: 1em 0;
}
#form_area form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: translate3d(0, 4px, 0);
}
#form_area form button {
  position: relative;
  display: block;
  padding: 1em 0.75em;
  margin: 2em auto 0;
  width: 80%;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  transition: 0.1s all ease 0s;
  line-height: 1;
  border-radius: 5px;
  border: none;
  background: #EA7B12;
  box-shadow: 0 4px 0 #b46120;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}
#form_area form button:hover {
  box-shadow: none;
  transform: translate3d(0, 4px, 0);
}

/* 送信完了ページ */
#thanks .title {
  text-align: center;
  margin: 4em auto 3em;
}
#thanks .text {
  padding: 0 15px;
}
#thanks a.link {
  margin-top: 1em;
  text-align: center;
  display: inline-block;
}
@media (max-width: 640px) {
  #thanks .title {
    margin: 4em auto 2em;
  }
}