:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: #1a1a1a;
  --line-dark: #000000;
  --border: #e3e6ea;
  --error: #d14343;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

body {
  background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.65)), url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.card { max-width: 640px; margin: 0 auto; padding: 32px 20px 56px; }

.card__header h1 {
  font-size: 24px;
  margin: 0 0 16px;
  color: #1a1a1a;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lead {
  color: #3d3d3d;
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.8;
}

.form {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-top: 3px solid #1a1a1a;
}

.field { padding: 16px 0; border-bottom: 1px solid var(--border); }
.field:last-of-type { border-bottom: none; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  color: #1a1a1a;
}

.req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #1a1a1a;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  vertical-align: middle;
  letter-spacing: 0.08em;
}

.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

textarea { resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.radios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.radios label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radios label:hover {
  background: #f0f0f0;
  border-color: #999;
}

.consent {
  margin: 20px 0;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid #1a1a1a;
  border-radius: 2px;
}

.consent label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #1a1a1a;
}

.consent a {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 500;
}

.submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #1a1a1a;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.15em;
  transition: all 0.2s ease;
}

.submit:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.submit:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

.message { margin-top: 12px; font-size: 14px; min-height: 1em; }
.message.error { color: var(--error); }
.message.success { color: #1a1a1a; font-weight: 500; }

.note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin: 16px 0 0;
  letter-spacing: 0.03em;
}

.note a {
  color: #1a1a1a;
  text-decoration: underline;
}
