/* メールでお問い合わせの下の必須案内 */
.page-contact__required-note {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

.page-contact__required-asterisk {
  color: #e00;
  font-weight: 700;
}

/* 必須表示をラベルテキストの後ろに * 赤色で表示 */

.contact-form__required {
  display: none;
}

.contact-form__label:has(.contact-form__required) .label::after {
  content: " *";
  color: #e00;
  font-weight: 700;
}

/* 個人情報の取り扱いエリアの高さをテキスト量に応じて自動調整 */
.contact-form__privacy-terms {
  height: auto;
  overflow-y: visible;
}

/* 送信ボタンと下の文言を左揃え */
.contact-form__submit-wrapper {
  text-align: left;
}

.contact-form__submit-wrapper .contact-form__submit {
  margin-left: 0;
  margin-right: auto;
}

/* 送信ボタン下の文言 */
.contact-form__submit-note {
  padding-left: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  max-width: 500px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: left;
}

/* PC時、同意エリアのpを中央揃え（bundledのtext-align: leftを上書き） */
@media (min-width: 48rem) {
  .contact-form__acceptance-wrapper p {
    text-align: center!important;
  }

  .contact-form__submit-note {
    padding-left: 81px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    max-width: 500px;
  }
}

/* SP時、フォーム全体を左揃え */
@media (max-width: 767px) {
  .contact-form__label {
    grid-template-columns: 1fr;
  }

  .contact-form__label .label {
    grid-column: 1 / span 1;
  }

  .contact-form__acceptance-wrapper {
    text-align: center;
  }

  .contact-form__accept-note {
    text-align: center;
  }

  .contact-form__submit-note {
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
}
