@charset "UTF-8";
#contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 30px 80px;
}
#contact .title-wrapper {
  margin: 0 0 40px;
  text-align: center;
}
#contact .title-wrapper h1 {
  margin: 0 0 10px;
  font-size: 4rem;
  font-family: "Noto Serif JP", serif;
}
#contact .title-wrapper p {
  margin: 0;
  font-size: 2rem;
}
#contact table {
  width: 100%;
  margin: 0 0 40px;
  padding: 0;
  border-collapse: collapse;
  border-spacing: 0;
}
#contact table input[type=text],
#contact table select,
#contact table textarea {
  display: block;
  margin: 0;
  padding: 15px;
  border: none;
  box-sizing: border-box;
  background-color: #F4F4F4;
  outline: none;
  font: inherit;
  font-size: 1.6rem;
}
#contact table input[type=text],
#contact table textarea {
  width: 100%;
}
#contact table .required {
  position: relative;
}
#contact table .required::after {
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #F2260B;
  font-size: 2.2rem;
  content: "※必須";
}
#contact table .required input[type=text] {
  padding: 15px calc(10px + 6.6rem + 10px) 15px 15px;
}
#contact table th {
  width: 10em;
  padding: 12px 15px 3px 0;
  font-size: 2.2rem;
  font-weight: normal;
  text-align: right;
  vertical-align: top;
}
#contact table td {
  padding: 3px 0;
  font-size: 2.2rem;
}
#contact table .error {
  margin: 0.5em 0 1em;
  color: #F2260B;
  font-size: 1.6rem;
}
#contact .privacy {
  margin: 0 0 40px;
  font-size: 2rem;
  text-align: center;
}
#contact .privacy a {
  text-decoration: underline;
}
#contact .privacy a:hover {
  text-decoration: none;
}
#contact .btns {
  display: flex;
  justify-content: center;
}
#contact .submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 235px;
  height: 44px;
  margin: 0 20px 0 0;
  padding: 0;
  border: none;
  outline: none;
  background-color: #F68D00;
  color: #F4F4F4;
  font-size: 1.8rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
}
#contact .reset,
#contact .back {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 235px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background-color: #FDE8CC;
  color: #F68D00;
  font-size: 1.8rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
}

@media (max-width: 767px) {
  #contact {
    padding: 40px 20px 60px;
  }
  #contact .title-wrapper h1 {
    font-size: 3rem;
  }
  #contact .title-wrapper p {
    font-size: 1.8rem;
  }
  #contact table,
  #contact tbody,
  #contact tr,
  #contact th,
  #contact td {
    display: block;
  }
  #contact table .required::after {
    font-size: 1.8rem;
  }
  #contact table .required input[type=text] {
    padding: 15px calc(10px + 5.4rem + 10px) 15px 15px;
  }
  #contact table tr {
    margin: 0 0 20px;
  }
  #contact table tr:last-child {
    margin: 0;
  }
  #contact table th {
    width: auto;
    padding: 0;
    margin: 0 0 5px;
    font-size: 1.8rem;
    text-align: left;
  }
  #contact table td {
    padding: 0;
  }
  #contact .btns {
    display: block;
  }
  #contact .submit {
    margin: 0 auto 20px;
  }
  #contact .reset,
  #contact .back {
    margin: 0 auto;
  }
}