.p-contact__main {
  padding-block: 7.5rem 10rem;
  width: min(736px + 5rem, 100%);
  padding-inline: 2.5rem;
  margin-inline: auto;
}
@media screen and (max-width: 767.99px) {
  .p-contact__main {
    padding-block: 3.75rem 5rem;
    padding-inline: 1.5rem;
  }
}

.p-contact__head-text {
  font-size: max(1.25rem, 16px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-block-end: 5rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__head-text {
    font-size: 1.25rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__head-text {
    font-size: max(1rem, 12.8px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0em;
    margin-block-end: 2.5rem;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__head-text {
    font-size: 1rem;
  }
}

.p-contact__form {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__form {
    row-gap: 1.25rem;
  }
}

.p-contact__form-head {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-size: max(1rem, 12.8px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0em;
  margin-block-end: 0.5rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__form-head {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__form-head {
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__form-head {
    font-size: 0.875rem;
  }
}
.p-contact__form-head span {
  display: block;
  padding: 0.25rem 0.625rem;
  background: #0D46B7;
  border-radius: 4px;
  font-size: max(0.625rem, 8px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
}
@media screen and (max-width: 767.99px) {
  .p-contact__form-head span {
    font-size: 0.625rem;
  }
}

.p-contact__form .wpcf7-radio .wpcf7-list-item {
  margin: 0;
}
.p-contact__form .wpcf7-radio .wpcf7-list-item + .wpcf7-list-item {
  margin-inline-start: 1.5rem;
}
.p-contact__form .wpcf7-radio input[type=radio] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.p-contact__form .wpcf7-radio input[type=radio]:focus .wpcf7-list-item-label::before {
  border: 1px solid #0D46B7;
}
.p-contact__form .wpcf7-radio input[type=radio]:focus-visible .wpcf7-list-item-label::before {
  border: 1px solid #0D46B7;
}
.p-contact__form .wpcf7-radio input[type=radio]:checked + span::after {
  opacity: 1;
}
.p-contact__form .wpcf7-radio .wpcf7-list-item-label {
  padding-inline-start: 2rem;
  font-size: max(1rem, 12.8px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0em;
  position: relative;
}
@media screen and (max-width: 767.99px) {
  .p-contact__form .wpcf7-radio .wpcf7-list-item-label {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__form .wpcf7-radio .wpcf7-list-item-label {
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__form .wpcf7-radio .wpcf7-list-item-label {
    font-size: 0.875rem;
  }
}
.p-contact__form .wpcf7-radio .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  left: 0;
  width: 1.5rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #CACACA;
}
.p-contact__form .wpcf7-radio .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  left: 0.375rem;
  width: 0.75rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0D46B7;
  opacity: 0;
}
.p-contact__form .wpcf7-form-control-wrap {
  width: 100%;
}
.p-contact__form input[type=text], .p-contact__form input[type=email], .p-contact__form textarea {
  width: 100%;
  border: 1px solid #ABACC9;
  border-radius: 4px;
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0em;
  padding: 1rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__form input[type=text], .p-contact__form input[type=email], .p-contact__form textarea {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__form input[type=text], .p-contact__form input[type=email], .p-contact__form textarea {
    padding: 0.75rem;
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__form input[type=text], .p-contact__form input[type=email], .p-contact__form textarea {
    font-size: 0.875rem;
  }
}
.p-contact__form input[type=text]::placeholder, .p-contact__form input[type=email]::placeholder, .p-contact__form textarea::placeholder {
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0em;
  color: #797A7B;
}
@media screen and (max-width: 767.99px) {
  .p-contact__form input[type=text]::placeholder, .p-contact__form input[type=email]::placeholder, .p-contact__form textarea::placeholder {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__form input[type=text]::placeholder, .p-contact__form input[type=email]::placeholder, .p-contact__form textarea::placeholder {
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__form input[type=text]::placeholder, .p-contact__form input[type=email]::placeholder, .p-contact__form textarea::placeholder {
    font-size: 0.875rem;
  }
}
.p-contact__form input[type=text]:focus, .p-contact__form input[type=email]:focus, .p-contact__form textarea:focus {
  border: 1px solid #0D46B7;
}
.p-contact__form input[type=text]:focus-visible, .p-contact__form input[type=email]:focus-visible, .p-contact__form textarea:focus-visible {
  border: 1px solid #0D46B7;
}
.p-contact__form textarea {
  height: 180px;
  resize: vertical;
}

.p-contact__acceptance {
  margin-block-start: 2.5rem;
  width: min(622px + 5rem, 100%);
  padding-inline: 2.5rem;
  margin-inline: auto;
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance {
    padding-inline: 0;
  }
}
.p-contact__acceptance input[type=checkbox] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.p-contact__acceptance input[type=checkbox]:focus .wpcf7-list-item-label::before {
  border: 1px solid #0D46B7;
}
.p-contact__acceptance input[type=checkbox]:focus-visible .wpcf7-list-item-label::before {
  border: 1px solid #0D46B7;
}
.p-contact__acceptance input[type=checkbox]:checked + span::after {
  opacity: 1;
}
.p-contact__acceptance .wpcf7-list-item-label {
  padding-inline-start: 2rem;
  font-size: max(1rem, 12.8px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0em;
  position: relative;
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance .wpcf7-list-item-label {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance .wpcf7-list-item-label {
    padding-inline-start: 1.75rem;
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__acceptance .wpcf7-list-item-label {
    font-size: 0.875rem;
  }
}
.p-contact__acceptance .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  left: 0;
  width: 1.5rem;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #CACACA;
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance .wpcf7-list-item-label::before {
    width: 1.125rem;
  }
}
.p-contact__acceptance .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  left: 0.375rem;
  width: 0.75rem;
  height: auto;
  aspect-ratio: 1;
  background: #0D46B7;
  opacity: 0;
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance .wpcf7-list-item-label::after {
    left: 0.28125rem;
    width: 0.5625rem;
  }
}
.p-contact__acceptance a {
  color: #1B5BD9;
  text-decoration: underline;
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 2.1875;
  letter-spacing: 0.05em;
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance a {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__acceptance a {
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__acceptance a {
    font-size: 0.875rem;
  }
}

.p-contact__submit {
  margin-block-start: 2.5rem;
  text-align: center;
}
@media screen and (max-width: 767.99px) {
  .p-contact__submit {
    margin-block-start: 1.5rem;
  }
}
.p-contact__submit .wpcf7-spinner {
  display: none;
}
.p-contact__submit input[type=submit],
.p-contact__submit input[type=button] {
  border-radius: 0px;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  background: transparent;
}
.p-contact__submit input[type=submit]::-webkit-search-decoration,
.p-contact__submit input[type=button]::-webkit-search-decoration {
  display: none;
}
.p-contact__submit .row.jc-center {
  justify-content: center;
}
.p-contact__submit input[type=submit] {
  padding: 1rem 1.25rem;
  width: 18.75rem;
  text-align: center;
  border-radius: 12px;
  background: #0D46B7;
  color: #fff;
  font-size: max(1rem, 12.8px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0em;
  margin-inline: auto;
}
@media screen and (max-width: 767.99px) {
  .p-contact__submit input[type=submit] {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__submit input[type=submit] {
    max-width: 100%;
    font-size: max(0.875rem, 11.2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0em;
  }
}
@media screen and (max-width: 767.99px) and (max-width: 767.99px) {
  .p-contact__submit input[type=submit] {
    font-size: 0.875rem;
  }
}
.p-contact__submit input[type=submit]:disabled {
  opacity: 0.7;
}

.wpcf7-not-valid-tip {
  margin-block-start: 0.75rem;
}
@media screen and (max-width: 767.99px) {
  .wpcf7-not-valid-tip {
    margin-block-start: 0.5rem;
  }
}

.wpcf7-response-output {
  opacity: 0;
  visibility: hidden;
}

.p-contact__thanks {
  padding-block: 13.75rem 10rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks {
    padding-block: 9.375rem 5rem;
  }
}

.p-contact__thanks-inner {
  width: min(50.75rem, 100%);
  padding-inline: 2.5rem;
  margin-inline: auto;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-inner {
    padding-inline: 1.5rem;
  }
}

.p-contact__thanks-title {
  font-size: max(1.875rem, 24px);
  font-weight: 700;
  line-height: 1.3333333333;
  letter-spacing: 0.05em;
  margin-block-end: 1.25rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-title {
    font-size: 1.875rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-title {
    font-size: 1.25rem;
    margin-block-end: 1rem;
  }
}

.p-contact__thanks-text {
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-block-end: 1.25rem;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-text {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-text {
    font-size: 0.875rem;
    margin-block-end: 1rem;
  }
}

.p-contact__thanks-tel {
  font-size: max(1.25rem, 16px);
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.075em;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-tel {
    font-size: 1.25rem;
  }
}
.p-contact__thanks-tel a {
  text-decoration: underline;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-tel {
    font-size: 1rem;
  }
}

.p-contact__thanks-btn {
  margin-block-start: 3.75rem;
  margin-inline: auto;
  flex-direction: row-reverse;
  padding: 0.875rem 1.25rem !important;
  position: relative;
  overflow: hidden;
}
@media screen and (max-width: 767.99px) {
  .p-contact__thanks-btn {
    margin-block-start: 3.75rem;
  }
}
.p-contact__thanks-btn:before {
  display: none;
}
.p-contact__thanks-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: #343434;
  transition: width 0.3s ease;
  transform-origin: right center;
}
@media (any-hover: hover) {
  .p-contact__thanks-btn:hover:after {
    width: 100%;
  }
}
.p-contact__thanks-btn svg path {
  rotate: 180deg;
  transform-origin: center;
}