:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #292733;
  background: #f7f7fb;
  --accent: #6d53ce;
  --line: #e3e1ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
main { width: min(100% - 40px, 640px); margin: 48px auto 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 600; color: #716b81; text-decoration: none; margin: 0 0 24px 4px; }
.brand-mark { width: 29px; height: 29px; color: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 38px 40px 36px; box-shadow: 0 6px 28px #28204404; }
h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: .015em; line-height: 1.65; margin: 0 0 12px; }
.intro { color: #7b7689; font-size: 1rem; line-height: 1.85; margin: 0 0 30px; }
fieldset { padding: 0; border: 0; margin: 0 0 26px; min-width: 0; }
legend, .field > label { color: #4c465c; font-size: .875rem; font-weight: 600; }
legend { padding: 0; margin-bottom: 11px; }
.required { font-size: .75rem; color: #a09aa9; font-weight: 400; margin-left: 7px; }
.type-options { display: flex; gap: 12px; }
.type-option { position: relative; flex: 1; display: flex; align-items: center; gap: 9px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; color: #797383; cursor: pointer; font-size: .875rem; transition: background .15s, border-color .15s; }
.type-option:has(input:checked) { border-color: #b7a6e5; background: #f7f4ff; color: #6b50be; }
.type-option:hover { border-color: #b7a6e5; }
.type-option input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: 0 0 16px; }
.field { margin-bottom: 25px; }
.field > label { display: block; margin-bottom: 11px; }
input[type="text"], textarea { width: 100%; border: 1px solid #dcd9e6; border-radius: 8px; padding: 12px 14px; color: #383342; background: #fff; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #aaa4b5; font-size: .875rem; }
textarea { display: block; resize: vertical; min-height: 164px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid #e9e0fd; border-color: #a890dc; }
button:focus-visible, a:focus-visible { outline: 3px solid #b7a6e5; outline-offset: 4px; }
.help { color: #928b9e; font-size: .8125rem; line-height: 1.8; margin: 9px 0 0; }
.privacy-note { color: #928b9e; font-size: .8125rem; line-height: 1.8; margin: 0 0 20px; }
.button { display: block; width: 100%; border: 0; border-radius: 8px; background: var(--accent); color: white; font-weight: 600; font-size: .9375rem; padding: 15px 18px; cursor: pointer; transition: background .15s; }
.button:hover { background: #5d43be; }
.button:active { background: #5039a8; }
.preview-note { text-align: center; font-size: .75rem; line-height: 1.9; color: #9b94a7; margin: 21px 0 0; }
.preview-note span { margin-right: 10px; color: #8c819f; }
.error { color: #b23f51; font-size: .875rem; line-height: 1.8; }
.success { text-align: center; padding: 26px 0 9px; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--accent); background: #f0eafa; border-radius: 50%; margin: 0 auto 22px; }
.success-icon svg { width: 30px; height: 30px; }
.success h1 { font-size: 1.375rem; }
.success .intro { margin-bottom: 15px; }
.success-note { font-size: .875rem; line-height: 1.8; color: #928b9e; margin: 0 0 32px; }
@media (max-width: 600px) {
  main { width: min(100% - 28px, 640px); margin-top: 25px; }
  .brand { margin-bottom: 17px; }
  .card { padding: 28px 22px; border-radius: 12px; }
  h1 { font-size: 1.25rem; }
  .intro { font-size: .9375rem; margin-bottom: 26px; }
  .desktop-break { display: none; }
  .type-options { gap: 10px; }
  .type-option { padding: 13px 12px; }
  .field, fieldset { margin-bottom: 23px; }
  input[type="text"], textarea { padding: 12px; }
  .preview-note span { display: block; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
