@charset "UTF-8";
input[type=checkbox] {
  -webkit-appearance: checkbox !important;
  -o-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  display: none;
}

.header {
  background: url(../img/contact/contact-bg.png) no-repeat top 30% right;
  background-size: contain;
}

main {
  max-width: 45rem;
  padding-inline: 0;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .contact__form {
    padding-inline: 20px;
  }
}

.contact__form__header {
  text-align: center;
  line-height: 1.5;
  -webkit-margin-after: 4rem;
          margin-block-end: 4rem;
}
@media (max-width: 768px) {
  .contact__form__header {
    text-align: left;
  }
}
.contact__form__header h3 {
  font-weight: 700;
  font-size: 1.5rem;
  -webkit-margin-after: 2rem;
          margin-block-end: 2rem;
}
@media (max-width: 768px) {
  .contact__form__header h3 {
    font-size: 20px;
  }
}

.wpcf7 {
  width: 100%;
  font-family: "Noto Sans JP" !important;
}

.wpcf7-form p {
  -webkit-margin-after: 2.5rem;
          margin-block-end: 2.5rem;
}
@media (max-width: 768px) {
  .wpcf7-form p {
    font-size: 14px;
  }
}
.wpcf7-form p br {
  display: none;
}

.wpcf7-form-control {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=url],
.wpcf7 textarea,
.wpcf7 select {
  padding-block: 0.5rem;
  padding-inline: 1rem;
  border-radius: 0.3125rem;
  border: 1px solid #cccecc;
}
.wpcf7 input[type=text]::-webkit-input-placeholder, .wpcf7 input[type=email]::-webkit-input-placeholder, .wpcf7 input[type=tel]::-webkit-input-placeholder, .wpcf7 input[type=url]::-webkit-input-placeholder, .wpcf7 textarea::-webkit-input-placeholder, .wpcf7 select::-webkit-input-placeholder {
  font-family: "Noto Sans JP" !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.wpcf7 input[type=text]::-moz-placeholder, .wpcf7 input[type=email]::-moz-placeholder, .wpcf7 input[type=tel]::-moz-placeholder, .wpcf7 input[type=url]::-moz-placeholder, .wpcf7 textarea::-moz-placeholder, .wpcf7 select::-moz-placeholder {
  font-family: "Noto Sans JP" !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.wpcf7 input[type=text]:-ms-input-placeholder, .wpcf7 input[type=email]:-ms-input-placeholder, .wpcf7 input[type=tel]:-ms-input-placeholder, .wpcf7 input[type=url]:-ms-input-placeholder, .wpcf7 textarea:-ms-input-placeholder, .wpcf7 select:-ms-input-placeholder {
  font-family: "Noto Sans JP" !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.wpcf7 input[type=text]::-ms-input-placeholder, .wpcf7 input[type=email]::-ms-input-placeholder, .wpcf7 input[type=tel]::-ms-input-placeholder, .wpcf7 input[type=url]::-ms-input-placeholder, .wpcf7 textarea::-ms-input-placeholder, .wpcf7 select::-ms-input-placeholder {
  font-family: "Noto Sans JP" !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.wpcf7 input[type=text]::placeholder,
.wpcf7 input[type=email]::placeholder,
.wpcf7 input[type=tel]::placeholder,
.wpcf7 input[type=url]::placeholder,
.wpcf7 textarea::placeholder,
.wpcf7 select::placeholder {
  font-family: "Noto Sans JP" !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.wpcf7-textarea {
  -webkit-margin-before: 0.5rem;
          margin-block-start: 0.5rem;
}

.wpcf7 label {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  display: block;
  -webkit-margin-after: 0.5rem;
          margin-block-end: 0.5rem;
  cursor: pointer;
}
.wpcf7 label:has(~ * .wpcf7-validates-as-required)::after {
  content: "必須";
  width: 2.8125rem;
  height: 1.625rem;
  border-radius: 0.3125rem;
  background-color: #1e3638;
  color: #fff;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  padding-block: 0.125rem;
  padding-inline: 0.625rem;
  -webkit-margin-start: 1rem;
          margin-inline-start: 1rem;
}

.wpcf7-form-control-wrap:has(select) {
  position: relative;
}
.wpcf7-form-control-wrap:has(select)::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: inline-block;
  width: 0.375rem;
  aspect-ratio: 1/1;
  border-top: 2px solid #000a02;
  border-right: 2px solid #000a02;
  -webkit-transform: translateY(-50%) rotate(135deg);
          transform: translateY(-50%) rotate(135deg);
}

.custom-checkbox {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}
.custom-checkbox .custom-checkmark {
  display: inline-block;
  width: 0.9375rem;
  aspect-ratio: 1/1;
  border-radius: 2px;
  border: 1px solid #999999;
  -webkit-margin-end: 1rem;
          margin-inline-end: 1rem;
  position: relative;
}
.custom-checkbox .custom-checkmark::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -2px;
  display: none;
  width: 0.5rem;
  height: 0.875rem;
  border: 1px solid #1e3638;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(40deg);
          transform: rotate(40deg);
}
.custom-checkbox:has(input[type=checkbox]:checked) .custom-checkmark::before {
  display: inline-block;
}
.custom-checkbox .cf7-link-button {
  text-decoration: underline;
  color: #0078c8;
}
.custom-checkbox .wpcf7-form-control-wrap {
  display: inline-block;
  -webkit-transform: translateX(-0.625rem);
          transform: translateX(-0.625rem);
}

.submit-wrapper p {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
  margin-bottom: 3.5rem;
}
.submit-wrapper .wpcf7-spinner {
  position: absolute;
}
.submit-wrapper .wpcf7-submit {
  width: 24.875rem;
  height: 3.90625rem;
  border-radius: 3.125rem;
  background-color: #000a02;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  position: relative;
  text-align: center;
  -webkit-padding-end: 10%;
          padding-inline-end: 10%;
  pointer-events: none;
  opacity: 0.5;
}
@media (max-width: 768px) {
  .submit-wrapper .wpcf7-submit {
    width: 327px;
  }
}
.submit-wrapper .arr-animate {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15%;
  margin-block: auto;
}

.wpcf7:has(input[type=checkbox]:checked) .wpcf7-submit {
  pointer-events: auto;
  opacity: 1;
}
.wpcf7:has(input[type=checkbox]:checked) .wpcf7-submit:hover {
  background-color: #1e3638;
}