main {
  margin-top: 130px;
}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
}
.contact-title {
  text-align: center;
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
}

.contact * {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
}

.contact {
  max-width: 936px;
  margin: 0 auto;
  padding: 50px 20px;
  box-sizing: content-box;
}

.contact__item {
  padding-bottom: 40px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact__item--address {
  padding-bottom: 20px;
}

.contact_form > .contact__item {
  padding-bottom: 0px;
}

.contact_form > .contact__item:last-of-type {
  padding-bottom: 0;
}

.contact__item.region {
  margin-left: 0;
}

.contact__label {
  padding-bottom: 16px;
  font-weight: 700;
}

.contact__required {
  background-color: #ca3c38;
  border-radius: 4px;
  margin-right: 10px;
  width: 44px;
  padding: 2px 8px 0 8px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  height: 25px;
  line-height: normal;
}

.contact__optional {
  background-color: #888a86;
  border-radius: 4px;
  margin-right: 8px;
  width: 44px;
  min-width: 44px;
  padding: 2px 8px 0px 8px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  height: 25px;
  line-height: normal;
}

.contact__item--optional .contact__label {
  width: calc(100% + 10px);
  display: flex;
  align-items: center;
}

.contact__item--optional span:last-of-type {
  line-height: 20px;
}

.contact__checkbox-wrap {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 32px;
  max-width: 604px;
}

.contact__checkbox-wrap .contact__checkbox span {
  font-size: 14px;
  line-height: 2;
  font-weight: 700;
}
.contact__checkbox-wrap .contact__checkbox input {
  width: 16px;
  height: 16px;
  position: relative;
  top: 2px;
  margin-right: 2px;
  margin-left: 0;
}

@media (min-width: 375px) {
  .contact__item--optional br {
    display: none;
  }
}

.contact__input {
  border: 1px solid #707070;
  padding: 8px 16px;
  height: 40px;
  width: 100%;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.contact__small-input {
  max-width: 235px;
  display: block;
  position: relative;
}

.contact__textarea {
  border: 1px solid #707070;
  border-radius: 4px;
  padding: 8px 16px;
  height: 200px;
  width: 100%;
  background-color: #f8f8f8;
}
.contact__select {
  background-image: url(/images/common/select-arrow.png);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 13px 7px;
  border-radius: 4px;
  width: 235px;
}

.contact__radio-wrapper {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.contact__radio {
  font-size: 14px;
  line-height: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.contact__radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #707070;
  border-radius: 50%;
  position: relative;
  background-color: #f7f7f7;
  top: -2px;
  margin-left: 0;
}

.contact__radio input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0px;
  height: 0px;
  background-color: black;
  border-radius: 50%;
  transition: all 0.1s ease;
}

.contact__radio input[type="radio"]:checked::after {
  width: 10px;
  height: 10px;
  transition: all 0.1s ease;
}

.contact__radio input[type="radio"]:hover {
  cursor: pointer;
}

.link-button {
  font-family: "Shippori Mincho B1", serif;
  margin-top: 0;
}

::placeholder {
  font-weight: 700;
  color: #c7c7c7;
}

.is-empty {
  color: #c7c7c7;
}

select {
  color: rgb(201, 201, 201);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

:disabled {
  color: #3b4043;
  background-color: #ffffff;
  border: 1px solid #707070;
}

.contact__item.region {
  width: 132px;
}

.contact__item.region select span {
  font-size: 10px;
}

.contact__item--address {
  position: relative;
}

.contact__item--address .contact__label {
  padding-bottom: 50px;
}

.index-search {
  position: absolute;
  font-size: 16px;
  line-height: 28px;
  color: #0069a0;
  top: 42px;
  left: 0px;
}

.index-search::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url(/images/common/icon-question.png);
  background-size: cover;
  margin-right: 8px;
  position: relative;
  top: 1px;
}

.policy {
  width: 100%;
  height: 190px;
  border-radius: 4px;
  border: 1px solid #707070;
  padding: 16px;
  overflow: scroll;
  margin-top: 0;
  font-size: 14px;
}

.contact__date-time {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.contact__date {
  position: relative;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #707070;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 20px;
  width: 155px;
}

.contact__date::after {
  content: "";
  display: block;
  width: 24px;
  height: 22px;
  background-image: url(/images/common/icon-calendar.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 13px;
}

select[name="reservation-time"] {
  padding-top: 6px;
  border-radius: 8px;
  width: 155px;
  background-position: right 7px center;
}

.reservation-comment {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  main {
    margin-top: 180px;
  }
  .contact {
    padding-top: 80px;
    padding-bottom: 160px;
  }

  .contact__item--address .contact__label {
    padding-bottom: 16px;
  }

  .index-search {
    left: 251px;
    top: 35px;
  }

  .submit_button {
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
  }

  .submit_button:hover {
    background-color: #fff;
    color: #2a2a2a;
  }
}
