@charset "UTF-8";
/*
  /asuracore/asset/css/object/module/m-form-entry.css
  事前登録フォーム（左：リード文＋ビジュアル／右：入力フォーム）
*/

.m-form-entry {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 580px);
  gap: 120px;
  justify-content: center;

  @media screen and (max-width: 1280px) {
    gap: 60px;
  }

  @media screen and (max-width: 1024px) {
    grid-template-columns: minmax(0, 580px);
    gap: 48px;
  }
}

/* 左カラム */
.m-form-entry__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 46px;

  @media screen and (max-width: 1024px) {
    gap: 32px;
  }
}

.m-form-entry__lead-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 395px;
  text-align: center;
}

.m-form-entry__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.83;
  color: var(--navy);

  @media screen and (max-width: 840px) {
    font-size: 20px;
    line-height: 1.6;
  }
}

.m-form-entry__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);

  @media screen and (max-width: 840px) {
    font-size: 16px;
  }
}

.m-form-entry__image-wrap {
  width: 100%;
  max-width: 460px;

  @media screen and (max-width: 1024px) {
    max-width: 380px;
  }
}

.m-form-entry__image {
  width: 100%;
  height: auto;
}

/* 右カラム（フォーム本体） */
.m-form-entry__body {
  min-width: 0;
  padding: 48px 53px;
  border-radius: 4px;
  background-color: var(--white);
  filter: drop-shadow(0 0 5px rgb(29 43 86 / 10%));

  @media screen and (max-width: 1024px) {
    padding: 40px 32px;
  }

  @media screen and (max-width: 840px) {
    padding: 32px 20px;
  }
}

.m-form-entry__form {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

/* 入力項目のまとまり */
.m-form-entry-field-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* 入力項目1つ分。fieldsetのUAスタイルを上書きするため display:flex を明示する */
.m-form-entry-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* 注意書き＋同意チェック */
.m-form-entry__agreement {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m-form-entry__note {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
}

/* 送信失敗時のメッセージ。初期状態はhidden属性で非表示 */
.m-form-entry__error {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--form-error-color);
  border: 1px solid var(--form-error-color);
  border-radius: 8px;
  text-align: center;

  /* paddingを持つためブラウザ既定のdisplayが勝たないよう明示する */
  &[hidden] {
    display: none;
  }
}

/* 送信ボタン */
.m-form-entry__submit {
  display: flex;
  justify-content: center;
}
