/*contact
--------------------------------------------------------*/
#contact {
  padding: 100px 0;
}

.box_title_contact {
  display: flex;
  margin: 0 auto 40px;
  align-items: center;
  justify-content: center;
}

.title_contact {
  background: #fff;
  border: 2px solid #dde8eb;
  font-size: 1.6rem;
  color: #5F9EAF;
  padding: 10px 30px;
  text-align: center;
  box-shadow: 10px 10px 0 #DDE8EB;
  line-height: 1.4;
  letter-spacing: .18rem;
}

.title_contact_en {
  color: #666;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: .14rem;
}

.container_contact {
  flex-direction: column;
  width: 500px;
  min-width: inherit;
}

form {
  margin-bottom: 0;
}

.txt_inqury_top {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

select.form-control {
  font-size: 1rem;
  font-family: 'Noto Serif JP', "Helvetica Neue", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, serif;
  border: 1px solid #777;
  border-radius: 4px;
  color: #666;
  width: 600px;
  margin: 2rem auto;
  display: block;
  padding: .4rem;
}

.form_input {
  display: flex;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.form_input_mb40 {
  margin-bottom: 40px;
}

.container_form fieldset.no_mg {
  margin: 0;
  border: none;
  padding: 0;
}

input[type=text],textarea {
  padding: .2rem 0.4rem;
  border: 1px solid #999;
  border-radius: 2px;
  width: 100%;
  line-height: 2.4rem;
}

.box_form textarea {
  height: 120px;
}

button.btn_submit {
  background: #333;
  border:  none;
  box-shadow: none;
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: none;
  border-radius: 0;
  margin: 0 auto;
  padding: 20px 30px;
  color:  #fff;
}

button.btn_submit:hover {
  box-shadow: none;
}

button.btn_submit.hide {
  visibility: hidden;
  opacity: 0;
}

button.btn_submit:before {
  content: "";
  width: 120%;
  height: 200%;
  position: absolute;
  top: -50%;
  right: 0;
  z-index: -1;
  background: #0086AD;
  border-radius: 0 100% 100% 0;
  transform: translateX(-100%);
  transition: transform ease .3s;
}

button.btn_submit:hover:before {
  transform: translateX(10%);
}

/*confirm*/
.container_confirm {
  margin-top: 80px;
  width: 100%;
  max-width: 600px;
  min-width: inherit;
  flex-direction: column;
}

.box_title_comfirm {
  margin-bottom: 30px;
}

.confirm_title {
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: .16rem;
}

.txt_confirm {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 10px;
  line-height: 2;
}

.form_table {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.form_table tr {
  line-height: 3;
}

.form_table th {
  color: #5F9EAF;
  text-align: right;
  padding-right: 2rem;
  font-weight: 500;
}

.form_table td {
  text-align: left;
  font-weight: 500;
}

input.btn {
  border: 2px solid #444;
  background: #fff;
  border-radius: 0;
  padding: 16px 30px;
  color: #444;
  display: inline-block;
  font-size: 1.2rem;
  transition: .1s;
}

.btn_back {
  width: 200px;
}

input.btn_send {
  color:  #fff;
  background: #333;
}

input.btn:hover {
  color:  #fff;
  background: #333;
  transition: inherit;
  transition: .3s;
}

input.btn_send:hover {
  color:  #333;
  background: #fff;
}

.box_btn_confirm {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 0 auto;
}

/*thanks
--------------------------------------------------------*/
.container_thanks {
  flex-direction: column;
  width: 500px;
  text-align: center;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

/*comfirm
--------------------------------------------------------*/
.header_comfirm {
  height: 55px;
}

.container_comfirm {
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

/*@media (max-width: 992px)
--------------------------------------------------------*/

@media (max-width: 992px) {
  /*contact
  --------------------------------------------------------*/
  #contact {
    padding: 70px 0 40px;
    overflow: hidden;
  }

  .box_title_contact {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .title_contact {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 0 15px;
    padding: 8px 20px;
  }

  .title_contact_en {
    font-size: .8rem;
  }

  form {
    margin-bottom: 0;
  }

  .container_contact {
    width: 90%;
  }

  select.form-control {
    width: 100%;
  }

  input[type=text],textarea {
    line-height: 2rem;
  }

  .container_form {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .container_form fieldset {
    margin: 0 0 30px;
  }

  .box_doc {
    margin-bottom: 1.4rem;
  }

  select.form-control {
    width: 100%;
    margin: 0 auto 2rem;
  }

  .sec_contact form {
    width: 100%;
  }

  /*confirm*/
  .container_confirm {
    width: 90%;
  }

  .confirm_title {
    font-size: 1.2rem;
  }

  .txt_confirm {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.9;
  }

  .form_table {
    font-size: 1rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .form_table tr {
    display: block;
    line-height: 1.5;
    padding-bottom: 1rem;
  }

  .form_table th {
    text-align: center;
    padding-right: 0;
    padding-bottom: .6rem;
    display: block;
  }

  .form_table td {
    text-align: center;
    display: inherit;
  }

  button.btn_submit {
    font-size: 1rem;
    padding: 12px 28px;
    letter-spacing: .1rem;
    margin-top: 0;
  }

  input.btn {
    font-size: 1rem;
  }

  .box_btn_confirm {
    gap: 2rem;
  }

}