.tf-contact {
  max-width: 640px;
  margin: 0 auto;
}
.tf-form {
  color: var(--ink);
  background: var(--bg);
  min-width: 0;
  line-height: 1.85;
  text-align: left;
}
.tf-form *,
.tf-form *::before,
.tf-form *::after {
  box-sizing: border-box;
}
.tf-form [hidden] {
  display: none !important;
}
.tf-form .tf-field {
  margin: 0 0 22px;
  min-width: 0;
}
.tf-form label,
.tf-form legend {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tf-form .tf-field > label {
  display: block;
  margin-bottom: 7px;
}
.tf-form .tf-chip {
  display: inline-block;
  margin-left: .4em;
  padding: 0 .5em;
  border: 1px solid var(--acc);
  border-radius: 3px;
  color: var(--acc);
  font-size: .75rem;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}
.tf-form .tf-optional {
  border-color: var(--help);
  color: var(--help);
}
.tf-form input:not([type="checkbox"]):not([type="radio"]),
.tf-form textarea,
.tf-form select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--help);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
}
.tf-form textarea {
  resize: vertical;
}
.tf-form select {
  white-space: normal;
}
.tf-form option {
  background: var(--bg);
  color: var(--ink);
}
.tf-form input::placeholder,
.tf-form textarea::placeholder {
  color: var(--help);
  opacity: 1;
}
.tf-form fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--pld);
  border-radius: 5px;
}
.tf-form legend {
  padding: 0 6px;
  max-width: 100%;
}
.tf-form fieldset > :last-child {
  margin-bottom: 0;
}
.tf-form .tf-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  margin-top: 8px;
}
.tf-form .tf-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.tf-form .tf-option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 12px;
  accent-color: var(--acc);
}
.tf-form .tf-option label {
  flex: 1;
  padding: 8px 0;
  font-weight: 400;
  cursor: pointer;
}
.tf-form .tf-help {
  margin: 6px 0 14px;
  color: var(--help);
  font-size: .9rem;
}
.tf-form .tf-conditional {
  margin-top: 14px;
  padding: 14px;
  border-left: 2px solid var(--acc);
  background: var(--panel);
}
.tf-form .tf-error {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}
.tf-form .tf-error::before {
  content: "入力の確認：";
}
.tf-form [aria-invalid="true"] {
  border-color: var(--acc);
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.tf-form .tf-message {
  margin: 18px 0;
  padding: 14px 16px;
  border: 2px solid var(--acc);
  background: var(--panel);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tf-form .tf-privacy {
  margin: 18px 0;
  color: var(--sub);
  font-size: .9rem;
}
.tf-form a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.tf-form .tf-submit {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--acc);
  border-radius: 4px;
  background: var(--acc);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tf-form .tf-submit:disabled {
  opacity: .65;
  cursor: wait;
}
.tf-form :focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 4px;
}
.tf-form .tf-turnstile {
  min-height: 70px;
  margin-top: 24px;
  max-width: 100%;
}
.tf-form .tf-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .tf-form fieldset {
    padding: 12px;
  }
  .tf-form .tf-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .tf-form .tf-conditional {
    padding: 10px;
  }
}
