.p-contact-form {
  padding: clamp(111px, 111px + (209 - 111) * (100vw - 390px) / (1440 - 390), 209px)
    clamp(28px, 28px + (48 - 28) * (100vw - 390px) / (1024 - 390), 48px)
    clamp(50px, 50px + (100 - 50) * (100vw - 390px) / (1440 - 390), 100px);
  background: #fff;
}
.p-contact-form__inner {
  max-width: 1050px;
  margin: 0 auto;
}
.p-contact-form__header {
  margin-bottom: 50px;
}
@media screen and (min-width: 768px) {
  .p-contact-form__header {
    display: flex;
    align-items: center;
    gap: 0 clamp(30px, 30px + (57 - 30) * (100vw - 768px) / (1024 - 768), 57px);
  }
}
.p-contact-form__title {
  font-size: clamp(43px, 43px + (80 - 43) * (100vw - 390px) / (1440 - 390), 80px);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}
@media screen and (min-width: 768px) {
  .p-contact-form__title {
    margin-bottom: 0;
    width: max-content;
  }
}
.p-contact-form__subtitle {
  font-size: clamp(18px, 18px + (32 - 18) * (100vw - 390px) / (1440 - 390), 32px);
  font-weight: 700;
  line-height: 1.4;
}
@media screen and (min-width: 768px) {
  .p-contact-form__subtitle {
    margin-top: clamp(8px, 8px + (20 - 8) * (100vw - 768px) / (1024 - 768), 20px);
  }
}
.p-contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.p-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: clamp(11px, 11px + (88 - 11) * (100vw - 390px) / (1440 - 390), 88px);
}
@media screen and (min-width: 576px) {
  .p-contact-form__field {
    flex-direction: row;
  }
}
@media screen and (min-width: 768px) {
  .p-contact-form__field {
    align-items: center;
  }
  .p-contact-form__field--textarea {
    align-items: flex-start;
  }
}
.p-contact-form__label {
  font-size: clamp(14px, 14px + (18 - 14) * (100vw - 390px) / (1440 - 390), 18px);
  font-weight: 500;
  min-width: 112px;
  flex-shrink: 0;
}
.p-contact-form__control {
  flex: 1;
}
@media screen and (min-width: 576px) {
  .p-contact-form__label {
    min-width: auto;
    width: 19%;
  }
}
@media screen and (min-width: 768px) {
  .p-contact-form__field--textarea .p-contact-form__label {
    padding-top: 11px;
  }
}
.p-contact-form__input,
.p-contact-form__textarea {
  flex: 1;
  width: 100%;
  max-width: 847px;
  padding: 10px clamp(10px, 10px + (23 - 10) * (100vw - 390px) / (1440 - 390), 23px);
  border: 1px solid #000;
  border-radius: 4px;
  font-size: clamp(14px, 14px + (18 - 14) * (100vw - 390px) / (1440 - 390), 18px);
  font-weight: 500;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  transition: border-color 0.3s ease;
}
.p-contact-form__input::placeholder,
.p-contact-form__textarea::placeholder {
  color: #919191;
}
.p-contact-form__input:focus,
.p-contact-form__textarea:focus {
  outline: none;
  border-color: #666;
}
@media screen and (min-width: 576px) {
  .p-contact-form__input,
  .p-contact-form__textarea {
    max-width: 100%;
  }
}
.p-contact-form__input {
  height: clamp(50px, 50px + (63 - 50) * (100vw - 390px) / (1440 - 390), 63px);
}
.p-contact-form__textarea {
  min-height: 241px;
  resize: vertical;
  padding-top: clamp(20px, 20px + (10 - 20) * (100vw - 390px) / (1440 - 390), 10px);
}
.p-contact-form__submit {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(20px, 20px + (40 - 20) * (100vw - 390px) / (1440 - 390), 40px);
}
@media screen and (min-width: 768px) {
  .p-contact-form__submit {
    justify-content: flex-end;
  }
}

.p-contact-form .wpcf7 {
  width: 100%;
}
.p-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.p-contact-form .wpcf7-form .p-contact-form__field {
  margin: 0;
}
.p-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.p-contact-form .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 14px;
  color: #c10000;
}
.p-contact-form .wpcf7-response-output {
  margin: 24px 0 0;
  border-radius: 4px;
  font-size: 14px;
}

.c-btn--with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.c-btn--with-arrow::after {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url('../_astro/icon_arrow.Dvv5jQOr_Z1edK4I.svg');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}
