@charset "utf-8";

main {
  display: grid;
  gap: 72px 0;
}

.heroSection {
  > .heroSectionBox {
    position: relative;
    > .heroImage {
      width: 100%;
      height: 100dvh;
      aspect-ratio: 1926/843;
      object-fit: cover;
      opacity: 0.9;
    }
  }
  .heroContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-black);
    width: 90%;
    max-width: 800px;
    background-color: rgba(251, 251, 251, 0.85);
    padding: 2rem;
    border-radius: 8px;

    h1 {
      font-size: var(--font-h1);
      margin-bottom: 1rem;
      font-weight: 700;
    }

    p {
      font-size: var(--font-base);
      opacity: 0.9;
    }
  }
}
.pageDescription {
  width: 70%;
  margin-inline: auto;
  display: grid;
  justify-content: center;
  gap: 32px 0;
  text-align: center;
  font-size: clamp(0.75rem, 0.45rem + 1.5vw, 2.25rem);
  padding: 120px 0;
  > h2 {
    font-size: clamp(0.875rem, 0.45rem + 2.13vw, 3rem);
    font-weight: normal;
  }
}
.contactSection {
  width: 60%;
  display: grid;
  gap: 32px 0;
  margin-inline: auto;
  > .errorsBox {
    background-color: #dfdfdf;
    > li {
      font-size: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
      padding: 8px;
      color: rgb(255, 109, 109);
      font-weight: bold;
    }
  }
  > form {
    display: grid;
    gap: 32px 0;
    > h4 {
      text-align: center;
      font-size: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
    }
    > label,
    > input,
    > select,
    > span,
    > p {
      font-size: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
      padding: 8px;
    }
    > .requiredMark::after {
      content: "必須";
      padding: 0 6px;
      margin-inline-start: 6px;
      background-color: #ff5c00;
      color: white;
    }
    > .formButtonBox {
      display: flex;
      justify-content: center;
      gap: 32px;
      margin-top: 32px;
      margin-bottom: 100px;
      > button {
        width: fit-content;
        padding: 12px 139px;
        background-color: #ff5c00;
        color: white;
        border-style: none;
        border-radius: 100vmax;
        font-size: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
        cursor: pointer;
      }
    }
  }
  /* 入力確認ページ */
  .confirm {
    > p {
      &:nth-of-type(even) {
        font-weight: bold;
        background-color: #dddddd;
      }
    }
  }
}

/* media query --------------------------------------------------- */
@media (width < 768px) {
  main {
    gap: 48px 0;
  }
  .heroSection {
    > .heroSectionBox {
      > .heroImage {
        aspect-ratio: 375/324;
        object-position: center center;
      }
      > .pageTitle {
        letter-spacing: 0.2em;
      }
    }
  }
  .pageDescription {
    gap: 8px 0;
    padding: 32px 0;
    > h2 {
      white-space: nowrap;
      letter-spacing: 4px;
    }
  }
  .contactSection {
    width: 100%;
    > form {
      width: 95%;
      margin-inline: auto;
      gap: 16px 0;
      > .formButtonBox {
        > button {
          width: 50%;
          padding: 12px 24px;
        }
      }
    }
  }
}
