main {
  position: relative;
}
.heroBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1920/1080;
  z-index: -1;
}
.contactFormSection {
  width: 74%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 108px 0;
  padding: 5rem 0;
  > h1 {
    font-size: clamp(1.25rem, 0.85rem + 2vw, 3.25rem);
    text-align: center;
  }
  > form {
    width: 100%;
    margin-inline: auto;
    display: grid;
    align-content: baseline;
    gap: 60px 0;
    > div {
      display: grid;
      grid-template-columns: 30% 1fr;
      align-items: center;
      > label {
        font-weight: bold;
        &::before {
          content: "必須";
          background-color: #f33;
          color: #fbfbfb;
          padding: 6px 12px;
          margin-inline-end: 1rem;
        }
      }
      & :is(label, input, textarea) {
        font-size: clamp(0.875rem, 0.675rem + 1vw, 1.875rem);
      }
      & :is(input, textarea) {
        border: none;
        box-shadow: 2px 2px 4px #bbb;
        background-color: #f1f1f1;
        padding: 12px;
      }
    }
    > button {
      width: 27%;
      margin-inline: auto;
      margin-top: 40px;
      padding: 26px;
      border-radius: 4px;
      border-style: none;
      background-color: #de501a;
      color: #fbfbfb;
      cursor: pointer;
      font-size: clamp(1.125rem, 0.95rem + 0.88vw, 2rem);
    }
    .spinner {
      width: 1em;
      height: 1em;
      border: 2px solid #fff;
      border-top-color: #333;
      border-radius: 50%;
      display: inline-block;
      animation: spin 0.6s linear infinite;
      margin-right: 0.5em;
      vertical-align: middle;
    }
    .error-message {
      color: red;
      font-size: 0.8em;
      margin-top: 5px;
    }
  }
}
/* spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (width < 768px) {
  .heroBg {
    height: 100dvh;
  }
  .contactFormSection {
    gap: 36px 0;
    > form {
      width: 90%;
      gap: 20px 0;
      > div {
        grid-template-columns: 1fr;
        gap: 6px 0;
        > label {
          &::before {
            padding: 2px 4px;
          }
        }
      }
      > button {
        width: 74%;
        padding: 9px;
      }
    }
  }
}

/* thanks.html , short-thanks.html */
.thanksSection {
  position: relative;
  height: 100dvh;
  padding: 130px 0;
  > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }
  > div {
    width: 43.75%;
    margin-inline: auto;
    display: grid;
    gap: 64px 0;
    > h1 {
      width: 90%;
      margin-inline: auto;
    }
    > figure {
      img {
        &:first-of-type {
          width: 50%;
          margin-inline: auto;
        }
      }
    }
    > a.dl-pdf {
      width: fit-content;
      color: #fbfbfb;
      background-color: #e74d1b;
      padding: 8px 20px;
      border-radius: 100vmax;
      margin-inline: auto;
      font-size: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
    }
  }
}
@media (width < 768px) {
  .thanksSection {
    > div {
      width: 90%;
      > h1 {
        width: 80%;
      }
    }
  }
}