@charset "UTF-8";

.contact-form-page {
  overflow: hidden;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-primary);
}

.contact-form-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

.contact-form-hero {
  position: relative;
  padding: 31px 0 104px;
  background: var(--color-bg-beige);
}

.contact-form-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 88px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 88' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 88H1440V42C1214 58 1014 54 744 28C428-3 214 0 0 55V88Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
  pointer-events: none;
}

.contact-form-hero__en {
  margin: 0 0 8px;
  color: var(--color-green);
  font-family: var(--font-kosugi);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.contact-form-hero__title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-kosugi);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.contact-form-section {
  position: relative;
  z-index: 1;
  background: var(--color-white);
}

.contact-form {
  width: min(100%, 1040px);
  margin: 0 auto 150px;
  padding: 89px 80px 91px;
  border-radius: 18px;
  background: #fbfaf5;
}

.contact-form__rows {
  display: grid;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.contact-form__row--textarea {
  align-items: start;
}

.contact-form__label {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
  color: var(--color-text);
  font-family: var(--font-kosugi);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form__label em {
  color: var(--color-green);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #bdb9b0;
  border-radius: 7px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  box-shadow: none;
  appearance: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  height: 50px;
  padding: 0 23px;
}

.contact-form textarea {
  height: 298px;
  padding: 18px 23px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #dedbd5;
  opacity: 1;
  font-weight: 700;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-green);
}

.contact-form__agree {
  margin-top: 42px;
  padding-left: 336px;
}

.contact-form__agree label {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--color-text);
  font-family: var(--font-kosugi);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-form__agree input[type="checkbox"] {
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid #9c9890;
  border-radius: 4px;
  background: var(--color-white);
  accent-color: var(--color-green);
  flex: 0 0 auto;
}

.contact-form__submit {
  margin-top: 31px;
  padding-left: 360px;
}

.contact-form__submit button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-kosugi);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.contact-form__submit button:hover {
  opacity: 0.86;
}

.contact-form__submit input[type="submit"],
.contact-form__submit button,
.contact-form .mwform-back-button,
input.contact-form-confirm__button {
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__notice {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.contact-form--mw .mw_wp_form {
  margin: 0;
}

.contact-form--mw br {
  display: none;
}

.contact-form--mw p {
  margin: 0;
}

.contact-form--mw .contact-form__fields > p,
.contact-form--mw .contact-form__rows > p,
.contact-form--mw .contact-form__row > p {
  display: contents;
}

.contact-form--mw .mwform-tel-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.contact-form--mw .mwform-tel-field input[type="text"] {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.contact-form--mw .mwform-checkbox-field,
.contact-form--mw .mwform-checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.contact-form--mw .mwform-checkbox-field-text {
  line-height: 1.4;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__rows {
  max-width: 980px;
  margin: 0 auto;
  padding: 74px 117px 87px;
  border: 1px solid var(--color-green);
  border-radius: 18px;
  background: var(--color-white);
}

.contact-form--mw .mw_wp_form_confirm .contact-form__rows::before {
  content: 'こちらの内容で送信してよろしいですか？';
  display: block;
  margin: 0 0 76px;
  color: var(--color-green);
  font-family: var(--font-kosugi);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__row {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 52px;
  margin: 0;
  padding: 0 0 27px;
  border-bottom: 1px solid #bdb9b0;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__row + .contact-form__row {
  padding-top: 31px;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__label {
  justify-content: flex-end;
  margin: 0;
  text-align: right;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__label em,
.contact-form--mw .mw_wp_form_confirm .contact-form__agree {
  display: none;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__row > :not(.contact-form__label) {
  color: #dedbd5;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.contact-form--mw .mw_wp_form_confirm .contact-form__submit {
  display: flex;
  justify-content: center;
  gap: 49px;
  margin-top: 64px;
  padding-left: 0;
}

.contact-form__submit input[type="submit"],
.contact-form .mwform-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 45px;
  border: 0;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-kosugi);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.contact-form__submit input[type="submit"]:hover,
.contact-form .mwform-back-button:hover {
  opacity: 0.86;
}

.contact-form-confirm {
  color: var(--color-text);
}

.contact-form.is-confirming {
  width: min(100%, 1120px);
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.contact-form-confirm__panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 74px 117px 87px;
  border: 1px solid var(--color-green);
  border-radius: 18px;
  background: var(--color-white);
}

.contact-form-confirm__title {
  margin: 0 0 76px;
  color: var(--color-green);
  font-family: var(--font-kosugi);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.contact-form-confirm__list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-form-confirm__row {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 22px 52px;
  margin: 0;
  padding: 0 0 21px;
  border-bottom: 1px solid #bdb9b0;
}

.contact-form-confirm__row + .contact-form-confirm__row {
  padding-top: 31px;
}

.contact-form-confirm__row dt {
  color: var(--color-text);
  font-family: var(--font-kosugi);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
}

.contact-form-confirm__row dd {
  min-width: 0;
  margin: 0;
  color: #dedbd5;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.contact-form-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 49px;
  margin-top: 64px;
}

.contact-form-confirm__button,
input.contact-form-confirm__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px !important;
  height: 45px;
  min-height: 45px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-kosugi);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.contact-form-confirm__button:hover {
  opacity: 0.86;
}

.contact-form-confirm__button--submit,
input.contact-form-confirm__button--submit {
  background: var(--color-green) !important;
  color: var(--color-white) !important;
}

.contact-form-confirm__button--back,
input.contact-form-confirm__button--back {
  background: var(--color-green);
  color: var(--color-white);
}

.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

@media screen and (max-width: 767px) {
  .contact-form-hero {
    padding: 20px 0 61px;
  }

  .contact-form-hero::after {
    height: 52px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 52' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 52H375V25C296-2 210 3 124 15C66 23 30 25 0 30V52Z'/%3E%3C/svg%3E");
  }

  .contact-form-hero__en {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .contact-form-hero__title {
    font-size: 18px;
  }

  .contact-form {
    width: 100%;
    padding: 48px 17px 61px;
    border-radius: 14px;
    margin-top: 50px;
  }

  .contact-form__rows {
    gap: 25px;
  }

  .contact-form__row {
    display: block;
  }

  .contact-form__label {
    gap: 14px;
    margin-bottom: 9px;
    font-size: 14px;
  }

  .contact-form__label em {
    font-size: 11px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"] {
    height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }

  .contact-form textarea {
    height: 200px;
    padding: 15px 14px;
    font-size: 13px;
  }

  .contact-form__agree {
    margin-top: 30px;
    padding-left: 0;
    justify-content: center;
    display: flex;
  }

  .contact-form__agree label {
    gap: 9px;
    font-size: 12px;
  }

  .contact-form--mw .mwform-checkbox-field,
  .contact-form--mw .mwform-checkbox-field label {
    gap: 9px;
  }

  .contact-form__agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 3px;
  }

  .contact-form__submit {
    margin-top: 23px;
    padding-left: 0;
    text-align: center;
  }

  .contact-form__submit button {
    width: min(100%, 219px);
    height: 47px;
    font-size: 16px;
  }

  .contact-form--mw .mwform-tel-field {
    gap: 7px;
  }

  .contact-form--mw .mw_wp_form_confirm {
    padding: 61px 38px 64px;
    border: 1px solid var(--color-green);
    border-radius: 14px;
    background: var(--color-white);
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__rows {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__rows::before {
    margin-bottom: 46px;
    font-size: 16px;
    text-align: left;
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__row {
    display: block;
    padding: 0 0 19px;
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__row + .contact-form__row {
    padding-top: 32px;
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__label {
    justify-content: flex-start;
    margin-bottom: 9px;
    text-align: left;
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__row > :not(.contact-form__label) {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.75;
  }

  .contact-form--mw .mw_wp_form_confirm .contact-form__submit {
    flex-direction: column;
    align-items: center;
    gap: 43px;
    margin-top: 62px;
  }

  .contact-form__submit input[type="submit"],
  .contact-form .mwform-back-button {
    width: min(100%, 164px);
    height: 52px;
    font-size: 18px;
  }

  .contact-form-confirm__title {
    margin-bottom: 46px;
    font-size: 16px;
    text-align: left;
  }

  .contact-form.is-confirming {
    padding: 0;
  }

  .contact-form-confirm {
    padding: 61px 38px 64px;
    border: 1px solid var(--color-green);
    border-radius: 14px;
    background: var(--color-white);
  }

  .contact-form-confirm__panel {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .contact-form-confirm__row {
    display: block;
    padding: 0 0 19px;
  }

  .contact-form-confirm__row + .contact-form-confirm__row {
    padding-top: 32px;
  }

  .contact-form-confirm__row dt {
    margin-bottom: 9px;
    font-size: 15px;
    text-align: left;
  }

  .contact-form-confirm__row dd {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.75;
  }

  .contact-form-confirm__actions {
    flex-direction: column;
    align-items: center;
    gap: 43px;
    margin-top: 62px;
  }

  .contact-form-confirm__actions p {
    display: flex;
    flex-direction: column;
  }

  .contact-form-confirm__button {
    width: min(100%, 164px);
    height: 52px;
    font-size: 18px;
  }
}

/* Final lower-page hero alignment: match guide-page */
.contact-form-hero {
  position: relative;
  z-index: 0;
  overflow: visible;
  padding: 31px 0 84px;
  background: #faf9f4;
}

.contact-form-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -61px;
  left: 0;
  width: 100%;
  height: 184px;
  background-color: #fff;
  background-image: url("../images/wave_up_bg_beige.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% 130%;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
}

.contact-form-hero .contact-form-container {
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 767px) {
  .contact-form-hero {
    padding-top: 20px;
    padding-bottom: 41px;
  }

  .contact-form-hero::after {
    bottom: -98px;
    height: 156px;
    background-size: 111% 80%;
  }
}