.entry {
  position: relative;
  padding: 157px 20px 100px;
}

.breadcrumb {
  top: 90px;
}

.entry-form {
  max-width: 655px;
  margin: 50px auto 0;
}

.entry-confirm .entry-form {
  margin-top: 30px;
}

.entry-form__field {
  margin-bottom: 40px;
}

.entry-form__label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
}

.entry-form__label span {
  display: inline-block;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  width: 44px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  margin-right: 15px;
}

.entry-form__required {
  background-color: #bd0000;
}

.entry-form__optional {
  background-color: #939393;
}

.entry-form__input,
.entry-form__select,
.entry-form__textarea {
  width: 100%;
  height: 40px;
  padding: 7px 10px;
  border: 1px solid #999999;
  border-radius: 4px;
  font-size: 14px;
  line-height: 26px;
}

.entry-form__input--short {
  width: 150px;
}

.entry-form__select {
  width: 150px;
  background-image: url(/img/common/select-arrow-contact.svg);
  background-size: 10px 6px;
  background-position: right 10px center;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
}

.entry-form__textarea {
  height: 180px;
  resize: vertical;
}

.entry-form__note {
  font-size: 14px;
  line-height: 26px;
  font-weight: 600;
  color: #1a1819;
  margin-top: -20px;
}

.entry-form__input-wrapper {
  display: flex;
  /* justify-content: space-between; */
  gap: min(23px, max(10px, calc(23px + 50vw - 187px)));
}

.entry-form__input-wrapper--date {
  gap: 10px;
  /* justify-content: space-between; */
  /*  max-width: 284px; */
  flex-wrap: wrap;
}

::placeholder {
  font-size: 14px;
  line-height: 26px;
  color: #737373;
}

.entry-form__address {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.entry-form__index {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
}

.entry-form__index::before {
  content: "〒";
  font-weight: 700;
  font-size: 16px;
}

.entry-confirm {
  position: relative;
  padding: 157px 20px 100px;
}

.entry-confirm .breadcrumb {
  top: 90px;
}

.entry-confirm .entry-notice {
  margin-top: 50px;
}

.entry-confirm .entry-form__field {
  margin-bottom: 30px;
  border-bottom: 1px solid #999999;
  padding-bottom: 3px;
}

.entry-confirm .entry-form__required,
.entry-confirm .entry-form__optional {
  display: none;
}

.entry-confirm .entry-form__address {
  display: flex;
  flex-direction: row;
}

.entry-form__input-wrapper,
.entry-form__address {
  line-height: 28px;
}

.entry-form__back {
  margin-top: 16px;
}

.entry-form__radio-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 6px;
}

.entry-form__radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
}

.entry-form__radio {
  margin: 0;
  width: 18px;
  height: 18px;
}

#occupation {
  width: 100%;
  max-width: 320px;
}

.common-button::after {
  display: none;
}

.entry-confirm .common-button::after {
  display: block;
}

.entry-form__buttons {
  margin-top: 40px;
}

.entry-form__not-agree {
  margin-top: 16px;
}

.entry-form__checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.entry-form__checkbox {
  width: 15px;
  height: 15px;
  position: relative;
  top: 2px;
  margin-right: 4px;
}

.entry-form__link {
  color: #870101;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  transition: all 0.2s;
}

.entry-confirm .entry-form__field p {
  font-size: 16px;
  line-height: 28px;
}

.entry-confirm .entry-form__label {
  margin-bottom: 5px;
}

.name_error input, .kana_error input, .company_error input, .postal_error input, .pref_error select, .addr01_error input, .addr02_error input, .phone_error input, .email_error input, .email_second_error input, .password_error input, .password_second_error input, .year_error select, .month_error select, .day_error select, .sex_error select, .job_error select, .user_policy_error {
  border-color: #CF3F34;
  background: #FDF1F0;
}

#entry_sex {
  display: flex;
  gap: 3px;
  align-items: center;
}

/* ラジオ＋ラベルをセットに見せる */
#entry_sex label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
}

.ec-errorMessage {
  font-size: 12px;
  color: #DE5D50;
  font-weight: bold;
  margin-top: 5px;
}

/* 選択肢の文字がspanタグに包まれているため整える */
#entry_sex label span {
  white-space: nowrap;
  margin-right: 18px;
}


@media (min-width: 768px) {
  .entry {
    padding: 180px 20px 150px;
  }

  .entry-form {
    margin: 70px auto 0;
  }

  .entry-notice {
    text-align: center;
  }

  .entry-form__note {
    text-align: center;
    margin-top: -28px;
  }

  .entry-confirm .entry-notice {
    margin-top: 70px;
  }

  .entry-confirm .entry-form {
    margin-top: 50px;
  }

  .entry-form__field {
    margin-bottom: 45px;
  }

  .entry-form__field--checkbox {
    margin-bottom: 0;
  }

  .entry-confirm .entry-form__field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    border-bottom: 1px solid #999999;
    padding-bottom: 3px;
    gap: min(145px, max(30px, calc(145px + 50vw - 500px)));
  }

  .entry-confirm .entry-form__label {
    margin-bottom: 0px;
    line-height: 28px;
    min-width: 128px;
  }

  .entry-confirm .entry-form__field p {
    width: calc(100% - 128px);
  }

  .entry-form__input-wrapper--date {
    gap: 20px;
    /* justify-content: space-between;
    max-width: 460px; */
  }

  .common-button {
    width: 230px;
    height: 50px;
    font-size: 16px;
  }

  .common-button::after {
    right: 10px;
  }

  .common-button:hover {
    filter: brightness(1.1);
  }

  .entry-form__select {
    width: 150px;
    background-image: url(/img/common/select-arrow.svg);
    background-size: 10px 6px;
    background-position: right 10px center;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
  }

  .entry-form__link:hover {
    filter: brightness(1.4);
  }

  .entry-form__checkbox-label {
    padding-top: 0px;
  }

  .entry-form__buttons {
    margin: 17px auto 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: row-reverse;
  }

  .entry-form__agree {
    margin: 0;
  }

  .entry-form__not-agree {
    margin: 0;
  }

  #entry_sex label span {
    white-space: nowrap;
    margin-right: 40px;
  }
}