/* contact */
.contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact__container {
    gap: 28px;
  }
}

.contact__form-inner {
  max-width: 1020px;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .contact__form-inner {
    margin-top: 28px;
  }
}

.contact__field {
  margin-bottom: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .contact__field {
    margin-bottom: 24px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}

.contact__field--required .contact__label::before {
  content: '必須';
  background: var(--point-red);
  color: var(--base-white);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

@media screen and (min-width: 768px) {
  .contact__field--required .contact__label::before {
    margin-right: 16px;
    font-size: 16px;
  }
}

.contact__label {
  display: block;
  color: var(--base-black);
  width: 100%;
  max-width: 200px;

  font-weight: 500;

  font-size: 14px;

  line-height: 2;
  letter-spacing: 0.02em;
}

@media screen and (min-width: 768px) {
  .contact__label {
    font-size: 16px;
  }
}

.contact__input,
.contact__select,
.contact__textarea {
  color: var(--base-dark-gray);
  width: 100%;
  border: 1px solid var(--base-dark-gray);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.02em;
  background: var(--base-white);
  transition: border-color 0.3s ease;
}

@media screen and (min-width: 768px) {
  .contact__input,
  .contact__select,
  .contact__textarea {
    padding: 8px 10px;
    font-size: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.contact__textarea {
  min-height: 280px;
  resize: vertical;
}

.contact__select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 3'%3E%3Cpath fill='%23666' d='m0 0 2 3 2-3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 8px;
  padding-right: 40px;
}

.contact__privacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--base-gray);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 32px;
}

@media screen and (min-width: 768px) {
  .contact__privacy {
    padding: 40px;
    margin-bottom: 60px;
  }
}

.contact__privacyTitle {
  text-decoration: underline;
}

.contact__privacyLabel {
  text-align: center;
  cursor: pointer;
}

.contact__checkbox {
  margin-right: 8px;
  margin-top: 2px;
}

.contact__submit {
  display: flex;
  justify-content: center;
  width: 100%;
}
