#p_contact {
  padding-bottom: 100px;
}

#p_contact .catch {
  color: #202020;
  margin: 50px 0;
  line-height: 1.6;
}

#p_contact .form_tb {
  width: 100%;
  margin-bottom: 50px;
}

#p_contact table tbody tr td,
#p_contact table tbody tr th {
  border: none;
}

#p_contact .form_tb th {
  width: 30%;
  min-width: 250px;
  padding: 15px 0;
  font-size: 17px;
  font-weight: bold;
  position: relative;
  text-align: left;
}

#p_contact .form_tb th span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
  color: #c8161d;
}

#p_contact .form_tb td {
  width: 70%;
  padding: 15px 0;
}

#p_contact .form_tb input,
#p_contact .form_tb textarea,
#p_contact .form_tb select {
  width: 100%;
  border: 1px solid #cccccc;
  height: 50px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 3px;
  box-sizing: border-box;
}

input::placeholder {
  color: #ccc;
}

#p_contact .form_tb textarea {
  min-height: 150px;
  min-width: 80%;
  padding: 10px;
}

#p_contact .form_tb th.top {
  vertical-align: top;
}

#p_contact .form_tb th.top span {
  position: absolute;
  top: 15px;
  transform: initial;
}

@media screen and (max-width: 767px) {
  #p_contact .form_tb th {
    display: block;
    width: 100%;
    padding: 15px 0 0;
    text-align: left;
  }

  #p_contact .form_tb td {
    display: block;
    width: 100%;
  }
}

#thanks {
  padding: 60px 0px 100px;
}

#thanks .ttl {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 30px;
}

#thanks .catch {
  color: #202020;
  margin: 50px 0;
  line-height: 1.6;
  text-align: center;
}

@media screen and (max-width: 767px) {
  #thanks .ttl {
    font-size: 26px;
  }

  #thanks .catch {
    text-align: left;
    margin: 40px 0 60px;
  }
}
