.sef-form-wrap {
  max-width: 720px;
  margin: 2em auto;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "ヒラギノ角ゴシック", "Helvetica Neue", Arial, sans-serif;
  color: #2d2d2d;
  line-height: 1.7;
}

.sef-header {
  margin-bottom: 1.5em;
  text-align: center;
}

.sef-header-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 1em;
}

.sef-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #2a7a4d;
  margin: 0;
}

.sef-description {
  background: #f6faf3;
  padding: 1em 1.2em;
  margin-bottom: 1.8em;
  border-radius: 4px;
  white-space: pre-wrap;
}

.sef-description p { margin: 0.4em 0; }

.sef-form { background: #fff; padding: 0; }

.sef-field {
  margin-bottom: 1.6em;
}

.sef-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4em;
  font-size: 0.95em;
}

.sef-required {
  color: #c53030;
  font-size: 0.85em;
  margin-left: 0.2em;
}

.sef-help {
  font-size: 0.82em;
  color: #555;
  margin: 0.2em 0 0.6em 0;
  line-height: 1.5;
}

.sef-form input[type=text],
.sef-form input[type=email],
.sef-form input[type=tel],
.sef-form textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}

.sef-form input:focus,
.sef-form textarea:focus {
  outline: 2px solid #2a7a4d;
  outline-offset: -1px;
  border-color: #2a7a4d;
}

.sef-form textarea {
  min-height: 96px;
  resize: vertical;
}

.sef-radio {
  display: block;
  padding: 0.6em 0.9em;
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.4em;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.sef-radio:hover { background: #f0f4ed; }
.sef-radio input { margin-right: 0.5em; }

/* :has() で「中の input が checked のときだけ」枠と背景を強調 */
.sef-radio:has(input:checked) {
  background: #e7f5ec;
  border-color: #2a7a4d;
  font-weight: 700;
  color: #1f5a39;
}
.sef-radio-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f0f0f0;
}
.sef-radio-disabled:hover { background: #f0f0f0; }
.sef-cap-full {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.5em;
  background: #c53030;
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 3px;
}
.sef-cap-low {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.5em;
  background: #fff3cd;
  color: #b07b00;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 3px;
}

.sef-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.7em;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: background 0.12s, border-color 0.12s;
}
.sef-checkbox:hover { background: #f0f4ed; }
.sef-checkbox:has(input:checked) {
  background: #e7f5ec;
  border-color: #2a7a4d;
  font-weight: 700;
  color: #1f5a39;
}

.sef-consent {
  background: #fff8e1;
  border: 2px solid #f5d96b;
  border-radius: 4px;
  padding: 1em;
  transition: background 0.12s, border-color 0.12s;
}
.sef-consent:has(input:checked) {
  background: #e7f5ec;
  border-color: #2a7a4d;
}
.sef-consent:has(input:checked) .sef-checkbox {
  background: transparent;
  border-color: transparent;
}
.sef-consent-title {
  font-weight: 700;
  margin: 0 0 0.4em 0;
}
.sef-consent-link {
  margin: 0 0 0.6em 0;
  font-size: 0.9em;
}
.sef-consent-link a {
  color: #2a7a4d;
  text-decoration: underline;
}

.sef-actions {
  text-align: center;
  margin-top: 2em;
}

.sef-submit {
  background: #2a7a4d;
  color: #fff;
  border: none;
  padding: 0.9em 2.5em;
  font-size: 1.05em;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.15s;
}
.sef-submit:hover:not(:disabled) { background: #1f5a39; }
.sef-submit:disabled { background: #999; cursor: not-allowed; }

.sef-status {
  margin-top: 1.2em;
  padding: 0.8em 1em;
  border-radius: 4px;
  display: none;
}
.sef-status.show { display: block; }
.sef-status.success {
  background: #e7f5ec;
  color: #2a7a4d;
  border: 1px solid #b3dcc1;
}
.sef-status.error {
  background: #fde8e8;
  color: #9c2222;
  border: 1px solid #f5b5b5;
}

/* フィールドごとのエラー強調 */
.sef-field.has-error > input,
.sef-field.has-error > textarea {
  border: 2px solid #c53030 !important;
  background: #fef5f5;
}
.sef-field.has-error .sef-label {
  color: #c53030;
}
.sef-field.has-error .sef-radio,
.sef-field.has-error .sef-checkbox,
.sef-field.has-error .sef-consent {
  border-color: #c53030;
}
.sef-field-error {
  display: block;
  margin: 0.5em 0 0;
  padding: 0.5em 0.7em;
  background: #fef5f5;
  border-left: 3px solid #c53030;
  color: #9c2222;
  font-size: 0.88em;
  font-weight: 600;
  border-radius: 2px;
}

.sef-closed {
  max-width: 720px;
  margin: 2em auto;
  padding: 2em;
  background: #fef3f0;
  border: 1px solid #f5b5b5;
  border-radius: 8px;
  text-align: center;
  color: #9c2222;
  font-weight: 700;
}

.sef-form-wrap .sef-thanks {
  text-align: center;
  padding: 2em 1em;
  background: #f6faf3;
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.8;
}
