body {
  color: #40200c;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "MS PMincho", "MS Mincho", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b3261e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.wpcf7 form .wpcf7-response-output {
  max-width: 1024px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 2px solid #bba16f;
  border-radius: 12px;
  background: #fefcf8;
  color: #035e63;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.p-contact__form--notice {
  color: #035e63;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.p-contact__head,
.p-contact__head p {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.p-contact__head p {
  margin: 0;
}

.p-contact__head br {
  display: none;
}

.p-contact__head .must {
  order: -1;
  flex: 0 0 auto;
}

.p-contact__submit p {
  position: relative;
  width: 100%;
  margin: 0;
}

.p-contact__submit br {
  display: none;
}

.p-contact__submit .wpcf7-submit {
  display: block;
  width: 100%;
}

.p-contact__submit .wpcf7-spinner {
  position: absolute;
  left: 50%;
  bottom: -32px;
  margin: 0;
  transform: translateX(-50%);
}

.p-contact__submit .p-contact__submit-icon {
  top: 50%;
}

.p-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.p-contact__actions .p-contact__submit {
  margin-inline: 0;
}

.p-contact__submit input[type="button"],
.p-contact__submit button,
.p-contact__submit .wpcf7-previous {
  width: 100%;
  padding-block: 15px 14px;
  border: 2px solid #bba16f;
  border-radius: 100vmax;
  background: linear-gradient(90deg, #fff9df 0%, #fffef9 100%);
  box-shadow: 0 2px 10px rgba(145, 119, 47, 0.25);
  color: #035e63;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.p-contact__confirm-value {
  min-height: 60px;
  padding-block: 10px;
  padding-inline: 21px;
  border: 2px solid #d09323;
  border-radius: 12px;
  background: #fefcf8;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (min-width: 768px) {
  .p-contact__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.p-confirm {
  min-height: calc(100svh - 170px);
  padding-block: clamp(56px, 9vw, 120px);
  background: linear-gradient(181deg, #fefefb 1.98%, #fbf2da 100%);
  color: #035e63;
}

.p-confirm__inner {
  max-width: 1100px;
}

.p-confirm__heading {
  text-align: center;
}

.p-confirm__eyebrow {
  color: #b6995b;
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.5;
}

.p-confirm__title {
  margin-top: 8px;
  color: #035e63;
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 900;
  line-height: 1.35;
}

.p-confirm__text {
  margin-top: 18px;
  color: #40200c;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.9;
}

.p-confirm .p-contact__form {
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: clamp(28px, 5vw, 56px);
  padding-inline: clamp(16px, 4vw, 48px);
  background: #fefcf8;
  border: 2px solid rgba(187, 161, 111, 0.55);
  border-radius: clamp(18px, 2vw, 28px);
  box-shadow: 4px 4px 4px rgba(142, 101, 54, 0.2);
}

.p-confirm .p-contact__list {
  gap: clamp(18px, 2.4vw, 28px);
}

.p-confirm .p-contact__head {
  font-size: clamp(20px, 2.6vw, 28px);
}

.p-confirm .must::before {
  font-size: clamp(20px, 2.6vw, 28px);
}

.p-confirm .p-contact__confirm-value {
  min-height: auto;
  padding-block: clamp(12px, 1.7vw, 18px);
  padding-inline: clamp(16px, 2.5vw, 28px);
  border: none;
  background: #fffef9;
  color: #40200c;
  font-size: clamp(17px, 2vw, 20px);
}

.p-confirm .wpcf7-form-control-wrap[data-name="your-name"],
.p-confirm .wpcf7-form-control-wrap[data-name="your-email"],
.p-confirm .wpcf7-form-control-wrap[data-name="your-tel"],
.p-confirm .wpcf7-form-control-wrap[data-name="your-address"],
.p-confirm .wpcf7-form-control-wrap[data-name="your-message"] {
  display: none;
}

.p-confirm .p-contact__actions {
  margin-top: clamp(4px, 1.8vw, 18px);
}

.p-confirm .p-contact__submit .wpcf7-previous {
  display: block;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .p-confirm {
    padding-block: 44px 72px;
  }
}

html,
body {
  min-height: 100%;
}

.l-main--thanks {
  --thanks-header-height: clamp(4.274rem, 1.828vw + 3.829rem, 4.705rem);
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding-block-start: var(--thanks-header-height);
  background: linear-gradient(181deg, #fefefb 1.98%, #fbf2da 100%);
}

.p-thanks {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100vh - var(--thanks-header-height));
  min-height: calc(100svh - var(--thanks-header-height));
  padding-block: clamp(40px, 8vw, 96px);
  background: linear-gradient(181deg, #fefefb 1.98%, #fbf2da 100%);
  color: #035e63;
}

.p-thanks .l-inner {
  height: auto;
}

.p-thanks__body {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 2px solid #bba16f;
  border-radius: 24px;
  background: #fefcf8;
  box-shadow: 4px 4px 4px rgba(142, 101, 54, 0.2);
  text-align: center;
}

.p-thanks__eyebrow {
  color: #b6995b;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.p-thanks__title {
  margin-top: 10px;
  color: #035e63;
  font-size: clamp(20px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.35;
  line-break: strict;
  overflow-wrap: anywhere;
  white-space: normal;
}

.p-thanks__text {
  margin-top: 24px;
  color: #333;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  line-height: 2;
}

.p-thanks__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: min(320px, 100%);
  margin-top: 34px;
  padding: 15px 30px;
  border: 2px solid #bba16f;
  border-radius: 100vmax;
  background: linear-gradient(181deg, #fefefb 1.98%, #fbf2da 100%);
  box-shadow: 0 2px 10px rgba(145, 119, 47, 0.25);
  color: #035e63;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 768px) {
  .l-main--thanks {
    --thanks-header-height: clamp(4.474rem, 5.411vw + 1.877rem, 8.37rem);
  }

  .p-thanks__title {
    overflow-wrap: normal;
  }
}

@media (max-width: 767.98px) {
  .p-thanks {
    padding-block: 36px 56px;
  }

  .p-thanks__body {
    padding-inline: 14px;
    border-radius: 18px;
  }

  .p-thanks__title {
    font-size: clamp(18px, 5.2vw, 24px);
  }

  .p-thanks__text {
    margin-top: 18px;
  }
}
