.header_title#contact_title {
  background: url(../image/contacttitleimage.jpg) no-repeat center center;
  background-size: cover;
}

@media (max-width: 576px) {
  .header_title#contact_title {
    background-size: auto 100%;
  }
}

.contact {
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 576px) {
  .contact {
    padding: 0 1rem;
  }
}
.contact_input:not(:first-child) {
  margin-top: 44px;
}
.contact_input label {
  display: block;
  margin-bottom: 10px;
  color: #020202;
  font-size: 16px;
}
.contact_input label small {
  margin-right: 10px;
  color: #419BB5;
  font-size: 100%;
}
.contact_input input,
.contact_input textarea,
.contact_input select {
  display: block;
  padding: 1em 1.1em;
  border: 1px solid #AAAAAA;
  border-radius: 4px;
  box-sizing: border-box;
  color: #020202;
  font-size: 14px;
}
.contact_input input.is-error,
.contact_input textarea.is-error,
.contact_input select.is-error {
  border-color: #f30000;
}
.contact_input input,
.contact_input textarea {
  width: 100%;
}
.contact_input input::placeholder,
.contact_input textarea::placeholder {
  color: #8F8F8F;
}
.contact_input textarea {
  height: 12em;
  resize: vertical;
}
.contact_input_error {
  color: #f30000;
}
.contact_input_notes {
  margin-top: 10px;
  color: #8F8F8F;
  font-size: 12px;
}

.contact_select {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.contact_select:after {
  position: absolute;
  right: 20px;
  top: calc( 50% - 3px );
  width: 10px;
  height: 7px;
  background: url(../image/select_arrow.svg) no-repeat left top / 100% 100%;
  pointer-events: none;
  content: '';
}
.contact_select select {
  width: auto;
  max-width: 100%;
  padding-right: 50px;
  appearance: none;
}
.contact_select select.placeholder {
  color: #8F8F8F;
}

.contact_tel {
  display: flex;
  align-items: flex-start;
  column-gap: 20px;
  row-gap: 20px;
}
@media (max-width: 576px) {
  .contact_tel {
    flex-wrap: wrap;
  }
}
.contact_tel_code {
  display: none;
}
.contact_tel_code.is-visible {
  display: flex;
  column-gap: 8px;
}
.contact_tel_code > span {
  display: flex;
  align-items: center;
}
.contact_tel_code > input {
  width: 4.65em;
}
.contact_tel_number > input {
  width: 22em;
}

.contact_notes {
  margin-top: 20px;
  color: #7C7C7C;
}
.contact_notes small {
  color: #419BB5;
  font-size: 100%;
}

.contact_privacy {
  margin-top: 48px;
}
.contact_privacy p {
  text-align: center;
}
.contact_privacy p a {
  text-decoration: underline;;
}
.contact_privacy br {
  display: none;
}
@media (max-width: 576px) {
  .contact_privacy br {
    display: inline;
  }
}

.contact_submit {
  display: flex;
  justify-content: center;
  column-gap: 20px;
  margin-top: 48px;
}
.contact_submit button {
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  width: 17.6em;
  height: 3.125em;
  border: 0;
  border-radius: 4px;
  outline: 0;
  background-color: #387F9F;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.contact_submit button.back {
  background-color: #A0A0A0;
}


.contact_thanks h2 {
  font-size: 22px;
}
.contact_thanks_text {
  margin-top: 34px;
}
.contact_thanks_text p {
  text-align: center;
}
.contact_thanks_text p img {
  vertical-align: middle;
  margin-left: 0.2em;
}
.contact_thanks_back {
  margin-top: 60px;
  text-align: center;
  font-size: 22px;
  font-weight: 400;
}
.contact_thanks_back a {
  color: #387F9F;
}