@charset "utf-8";

.p-contact-bg {
  background: linear-gradient(180deg, #aacef6 0%, #ffffff 54%, #e1f4ff 100%);
}

.p-contact {
  padding: 96px 0 360px;

  .p-contact__fields {
    margin: 0 auto;
    max-width: 924px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .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: var(--color-white);
    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: var(--color-white);
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 1em;
  }

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

  .textarea {
    height: 197px;
  }

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

.p-contact-privacy {
}

.p-contact-privacy__box {
  overflow-y: scroll;
  height: 155px;
  padding: 34px 46px 36px 28px;
  color: #2c2c2c;
  background: var(--color-white);
  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: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;

  input {
    cursor: pointer;
  }

  label {
    color: #454545;
    line-height: 1;
    letter-spacing: 0em;
  }
}

.privacyformError {
    top: 0;
    left: 0;
}

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

.p-contact__back {
  margin: 60px auto 0;
  width: fit-content;
}

.p-contact__submit button,
.p-contact__back a {
  background: var(--color-blue);
  color: var(--color-white);
  width: 183px;
  height: 47px;
  padding: 0 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.p-contact__submit button:hover,
.p-contact__back a:hover {
  color: var(--color-blue);
  background: var(--color-white);
}