.contact {
  padding: 100px 20px;
}

.breadcrumb {
  top: 10px;
}

.contact-notice {
  max-width: 655px;
  margin: 0 auto;
}

.contact-form {
  max-width: 655px;
  margin: 50px auto 0;
}

.contact-form__field {
  margin-bottom: 40px;
}

.contact-form__label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
}

.contact-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;
}

.contact-form__required {
  background-color: #bd0000;
}

.contact-form__optional {
  background-color: #939393;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  height: 40px;
  padding: 7px 10px;
  border: 1px solid #999999;
  border-radius: 4px;
  font-size: 14px;
  line-height: 26px;
}

.contact-form__input--short {
  width: 150px;
}

.contact-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;
  cursor: pointer;
  background-color: #fff;
}

.contact-form__textarea {
  height: 180px;
  resize: vertical;
}

.contact-form__note {
  font-size: 14px;
  line-height: 26px;
  font-weight: 600;
  color: #1a1819;
  margin-top: -20px;
}

.contact-form__input-wrapper {
  display: flex;
  justify-content: space-between;
  gap: min(23px, max(10px, calc(23px + 50vw - 187px)));
}

::placeholder {
  font-size: 14px;
  line-height: 26px;
  color: #737373;
}

.contact-form__address {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form__index {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
}

.contact-form__index::before {
  content: "〒";
  font-weight: 700;
  font-size: 16px;
}

.contact-confirm .breadcrumb {
  top: 90px;
}

.contact-confirm .contact {
  padding-top: 157px;
}

.contact-confirm .contact-notice {
  margin-top: 50px;
}

.contact-confirm .contact-form__field {
  margin-bottom: 30px;
  border-bottom: 1px solid #999999;
  padding-bottom: 3px;
}

.contact-confirm .contact-form__required,
.contact-confirm .contact-form__optional {
  display: none;
}

.contact-confirm .contact-form__address {
  display: flex;
  flex-direction: row;
}

.contact-form__input-wrapper,
.contact-form__address {
  line-height: 28px;
}

.contact-form__back {
  margin-top: 16px;
}

.contact-confirm .contact-form__label {
  margin-bottom: 5px;
}

.name_error input, .kana_error input, .postal_code_error input
, .prefecture_error select, .addr01_error input, .addr02_error input
, .phone_error input, .email_error input, .contents_error textarea {
  border-color: #CF3F34;
  background: #FDF1F0
}

@media (min-width: 768px) {
  .contact {
    padding: 180px 20px 150px;
  }
  .contact-notice {
    text-align: center;
  }

  .contact-form__note {
    text-align: center;
    margin-top: -28px;
  }

  .contact-form__field {
    margin-bottom: 45px;
  }

  .common-button {
    width: 230px;
    height: 50px;
    font-size: 16px;
  }

  .common-button::after {
    right: 10px;
  }

  .common-button:hover {
    filter: brightness(1.1);
  }

  .contact-form {
    margin: 50px auto 0;
  }

  .contact-confirm .contact-notice {
    margin-top: 70px;
  }

  .contact-confirm .contact-form__field {
    display: flex;

    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid #999999;
    padding-bottom: 3px;
    gap: min(87px, max(30px, calc(87px + 50vw - 500px)));
  }

  .contact-confirm .contact-form__label {
    margin-bottom: 0px;
    min-width: 128px;
    line-height: 28px;
  }

  .contact-confirm .contact-form__field p {
    width: calc(100% - 128px);
  }

  .contact-confirm__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: row-reverse;
  }

  .contact-form__submit {
    margin: 0;
  }

  .contact-form__back {
    margin: 0;
  }
}
