@charset "utf-8";

.p-contact {
  margin-top: -56px;
  border-radius: 40px 40px 0 0;
  background: #fff;
  padding: 114px 0 150px;

  @media (width < 768px) {
    padding: 80px 0 120px;
  }

  .p-contact__fields {
    font-family: var(--font-noto);
    margin: 0 auto;
    max-width: 924px;
    display: flex;
    flex-direction: column;
    gap: 38px;
    font-size: 14px;
    color: #454545;
  }

  .row {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .col-md-4 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .label {
    margin: 0;
  }

  .d-inline-block {
    background: #5a5a5a;
    border-radius: 2px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
  }

  .d-inline-block.requiredText {
    background: #d80e0e;
  }

  .col-md-8 {
    max-width: 100%;
    padding: 0;
    flex: 0 0 100%;
  }

  .input,
  .select,
  .textarea {
    width: 100%;
    height: 50px;
    background: #f4f4f4;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 1em;
  }

  .input::placeholder,
  .textarea::placeholder {
    color: #555555;
  }

  .fileArea .input {
    height: auto;
  }

  .fileCaution {
    margin-top: 14px;
    font-size: 13px;
    color: #7c7c7c;
    line-height: 1.923;
  }

  .textarea {
    height: 197px;
  }

  .select {
    max-width: 210px;
    width: 100%;
    padding: 0 1em;
    appearance: none;
    background: #f4f4f4 url("https://mountfield.co.jp/system_panel/uploads/images/select-arrow.svg") no-repeat center right 20px / 12px 8px;
    cursor: pointer;
  }

  .p-contact-date {
    margin-top: -6px;
    display: flex;
    align-items: center;
    gap: 8px;

    .label {
      font-size: 13px;
    }

    .selectArea {
      display: flex;
      align-items: center;
      gap: 10px;

      .d-block {
        .select {
          max-width: 57px;
          height: 40px;
          background: #f4f4f4;
        }

        .label {
          display: inline-block;
          line-height: 40px;
          margin-left: 2px;
        }
      }
    }
  }
}

.p-contact-privacy {
}

.p-contact-privacy__box {
  overflow-y: scroll;
  height: 155px;
  padding: 34px 46px 36px 28px;
  color: #2c2c2c;
  background: #f4f4f4;
  border: 1px solid #d3d3d3;
  line-height: 2;

  @media (width < 768px) {
    padding: 1em;
  }
}

.p-contact-privacy__box > * + .p-contact-privacy__text {
  margin-top: 36px;
}

.p-contact-privacy__box > * + .p-contact-privacy__heading {
  margin-top: 68px;
}

.p-contact-privacy__text {
  letter-spacing: 0.08em;

  a:hover {
    opacity: 0.7;
  }
}

.p-contact-privacy__heading {
  width: 100%;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.64;
  letter-spacing: 0.08em;
  padding-bottom: 15px;
  border-bottom: 1px solid #cecece;
  display: inline-flex;
  gap: 15px;
  align-items: center;
}

.p-contact-privacy__heading::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #303030;
  border-radius: 3px;
  flex-shrink: 0;
}

.p-contact-privacy__check {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;

  input {
    cursor: pointer;
  }

  label {
    line-height: normal;
  }
}

.p-contact__submit {
  margin: 26px auto 0;
}

.p-contact__back {
  margin: 40px auto 0;

  p {
    color: #fff;
  }
}

.p-contact__submit button,
.p-contact__back {
  background: var(--color-green);
  color: #fff;
  width: 183px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border-radius: 100px;
}

.p-contact__submit button:hover,
.p-contact__back:hover {
  opacity: 0.7;
}
