:root {
  --white: #fff;
  --mainColor: #E8660A;

}

.form {
  position: relative;
  font-size: 16px;
  color: var(--, #212121);
  font-style: normal;
  font-weight: 400;
  max-width: 800px;
  margin-inline: auto;

  label,
  p {
    margin: 0;
  }
  .formRow {
    gap: 8px 0;
  }
  .formRow:not(:last-child) {
    margin-bottom: 24px;

  }

  .formTh {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .formTd.addTd {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .formRow:has(.addTd) {
    margin-bottom: 48px;
  }

  .requiredText {
    background: var(--mainColor, #E8660A);
    color: var(--white, #FFF);
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 170%;
    letter-spacing: 0.6px;
    padding-inline: 4px;
  }

  input,
  textarea,
  select {
    border-radius: 3px;
    border: 1px solid #D9D9D9;
    background: #FFF;
  }

  input:not(.zipInput):not(.checkbox):not(.radio),
  textarea,
  select {
    width: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    box-sizing: border-box;
    padding: 0.5rem;
  }
  .textarea {
    min-height: 7em;
    field-sizing: content;
  }

  .addArea {
    display: flex;
    align-items: baseline;
    gap: 8px;

    label {
      flex-shrink: 0;
      white-space: nowrap;
    }

    .zipInput {
      flex: 1;
      width: 0;
      min-width: 0;
    }
  }
}


.privacyBox {
  border: 1px solid #D9D9D9;
  background: var(--white, #FFF);
  height: 22em;
  overflow-y: auto;
  padding: 16px 32px 8px 16px;
  margin-block: 32px;
  font-size: 0.9em;
  .privacyTitle {
    margin-top: 1em;
    margin-bottom: 0.25em;
    font-size: 1.1em;
    font-weight: bold;
  }
  .privacySubTitle {
    display: flex;
    gap: 0.25em;
    margin-bottom: 0.25em;
  }
  .privacyItem {
    margin-block: 1em;
  }
  .privacyList {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
  }
  .privacyListItem {
    display: flex;
    gap: 0.25em;
  }
}

.privacyNotice br {
  display: none;
}

@media (min-width: 768px) {
  .form .formRow {
    align-items: center;
  }

  .form .formRow:has(.addTd) {
    align-items: flex-start;
  }

  .form .formRow:has(.addTd) .formTh {
    padding-top: calc(0.5rem + 1px);
  }

  .privacyNotice br {
    display: inline;
  }

  .privacyBox {
    height: 10em;
  }
}

.privacyConsent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.privacyConsent .checkbox {
  flex-shrink: 0;
  margin: 0;
}

.privacyConsent .privacyLabel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
}

.privacyLabel::after {
  content: "必須";
  background: var(--mainColor, #E8660A);
  color: var(--white, #FFF);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 170%;
  letter-spacing: 0.6px;
  padding-inline: 4px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.formSend {
  border-radius: 30px;
  background: var(--mainColor, #E8660A);
  color: var(--white, #FFF);
  border: none;
  padding: 8px 80px;
  font-size: 1.1em;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}
