.contact-page {
  font-family:
    "Zen Maru Gothic",
    system-ui,
    -apple-system,
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}

/* ================================================
   Hero
   ================================================ */

.contact-hero {
  background-color: #e7f2bc;
  text-align: center;

  .contact-hero__inner {
    padding: 50px 24px 0;
  }

  .contact-hero__icon-container {
    height: 42px;
    margin: 0 auto 12px;
    width: 42px;

    @media (max-width: 567px) {
      height: clamp(28px, 8.05vw + -3.62px, 42px);
      width: clamp(28px, 8.05vw + -3.62px, 42px);
    }

    img {
      height: auto;
      width: 100%;
    }
  }

  .contact-hero__sub {
    color: #a9c37a;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin-bottom: 6px;

    @media (max-width: 567px) {
      font-size: 12px;
    }
  }

  .contact-hero__title {
    color: #333333;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 20px;

    @media (max-width: 567px) {
      font-size: clamp(22px, 6.9vw + -4.9px, 34px);
    }
  }

  .contact-hero__lead {
    color: #4c4c4c;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 40px;

    @media (max-width: 567px) {
      font-size: clamp(13px, 1.72vw + 6.22px, 16px);
      margin-bottom: 32px;
    }
  }

  .contact-hero__wave {
    display: block;
    line-height: 0;

    svg {
      display: block;
      width: 100%;
    }
  }
}

/* ================================================
   Form Section
   ================================================ */

.contact-form-section {
  background-color: #fffff4;

  .contact-form-section__inner {
    margin-inline: auto;
    max-width: 680px;
    padding: 50px 24px 70px;

    @media (max-width: 567px) {
      padding: 40px 20px 60px;
    }
  }

  .contact-form-section__lead {
    color: #4c4c4c;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 40px;
    text-align: center;

    @media (max-width: 567px) {
      font-size: clamp(13px, 1.72vw + 6.22px, 16px);
      margin-bottom: 32px;
    }
  }

  .contact-form-section__error-general {
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 32px;
    padding: 16px 20px;
    text-align: center;
  }

  /* 送信完了 */

  .contact-form-section__success {
    background-color: #fff9fb;
    border: 2px solid #f7d0d9;
    border-radius: 20px;
    padding: 50px 32px;
    text-align: center;

    @media (max-width: 567px) {
      padding: 36px 20px;
    }
  }

  .contact-form-section__success-icon {
    height: 60px;
    margin: 0 auto 20px;
    width: 60px;

    svg {
      height: auto;
      width: 100%;
    }
  }

  .contact-form-section__success-title {
    color: #e7a1ab;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;

    @media (max-width: 567px) {
      font-size: clamp(17px, 2.87vw + 5.7px, 22px);
    }
  }

  .contact-form-section__success-text {
    color: #4c4c4c;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 28px;

    @media (max-width: 567px) {
      font-size: clamp(12px, 1.72vw + 5.22px, 15px);
    }
  }

  .contact-form-section__back-link {
    background-color: #fff9fb;
    border: none;
    border-radius: 25px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.05);
    color: #e7a1ab;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 36px;
    text-decoration: none;
    transition:
      color 0.3s,
      background-color 0.3s;

    &:hover {
      background-color: #e7a1ab;
      color: #fff9fb;
    }
  }

  /* 電話番号補足 */

  .contact-form-section__tel-note {
    border-top: 1.5px dashed #f0d4d8;
    margin-top: 48px;
    padding-top: 36px;
    text-align: center;

    @media (max-width: 567px) {
      margin-top: 36px;
      padding-top: 28px;
    }
  }

  .contact-form-section__tel-note-text {
    color: #4c4c4c;
    font-size: 14px;
    margin-bottom: 10px;

    @media (max-width: 567px) {
      font-size: 13px;
    }
  }

  .contact-form-section__tel-link {
    align-items: center;
    color: #4c4c4c;
    column-gap: 6px;
    display: inline-flex;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: #e7a1ab;
    }

    @media (max-width: 567px) {
      font-size: clamp(20px, 3.45vw + 6.45px, 26px);
    }
  }

  .contact-form-section__tel-icon {
    height: 1em;
    width: 1em;

    svg {
      height: 100%;
      width: 100%;
    }
  }

  .contact-form-section__tel-hours {
    color: #888;
    font-size: 13px;

    @media (max-width: 567px) {
      font-size: 12px;
    }
  }
}

/* ================================================
   Form
   ================================================ */

.contact-form {
  display: grid;
  row-gap: 28px;

  @media (max-width: 567px) {
    row-gap: 22px;
  }

  .contact-form__field {
    display: grid;
    row-gap: 8px;
  }

  .contact-form__label {
    color: #333333;
    font-size: 15px;
    font-weight: bold;

    @media (max-width: 567px) {
      font-size: 14px;
    }
  }

  .contact-form__required {
    color: #e7a1ab;
    font-size: 14px;
    margin-left: 4px;
  }

  .contact-form__optional {
    color: #aaa;
    font-size: 13px;
    font-weight: normal;
    margin-left: 4px;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea {
    appearance: none;
    background-color: #fff9fb;
    border: 1.5px solid #f0d4d8;
    border-radius: 12px;
    color: #333333;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    padding: 14px 18px;
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease;
    width: 100%;

    @media (max-width: 567px) {
      padding: 12px 16px;
    }

    &::placeholder {
      color: #c8a8b0;
    }

    &:focus {
      border-color: #e7a1ab;
      box-shadow: 0 0 0 3px rgba(231, 161, 171, 0.18);
    }
  }

  .contact-form__textarea {
    line-height: 1.8;
    min-height: 160px;
    resize: vertical;

    @media (max-width: 567px) {
      min-height: 130px;
    }
  }

  .contact-form__select-wrapper {
    position: relative;

    &::after {
      border-color: #e7a1ab transparent transparent transparent;
      border-style: solid;
      border-width: 6px 5px 0 5px;
      content: "";
      height: 0;
      pointer-events: none;
      position: absolute;
      right: 18px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
    }
  }

  .contact-form__select {
    cursor: pointer;
    padding-right: 44px;
  }

  .contact-form__field--error {
    .contact-form__input,
    .contact-form__select,
    .contact-form__textarea {
      border-color: #dc2626;

      &:focus {
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
      }
    }
  }

  .contact-form__error {
    color: #dc2626;
    font-size: 13px;
    padding-left: 2px;
  }

  .contact-form__submit {
    margin-top: 8px;
    text-align: center;
  }

  .contact-form__submit-btn {
    background-color: #fff9fb;
    border: none;
    border-radius: 25px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.05);
    color: #e7a1ab;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    font-size: 20px;
    font-weight: bold;
    max-width: 280px;
    padding: 17px 48px;
    transition:
      color 0.3s,
      background-color 0.3s;
    width: 100%;

    &:hover {
      background-color: #e7a1ab;
      color: #fff9fb;
    }

    &:focus-visible {
      outline: 2px solid #e7a1ab;
      outline-offset: 3px;
    }

    @media (max-width: 567px) {
      font-size: clamp(14px, 3.45vw + 0.45px, 20px);
      max-width: clamp(200px, 46vw + 18px, 280px);
    }
  }
}
