*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fafafa;
  --surface:   #ffffff;
  --border:    #e5e5e5;
  --text:      #111111;
  --muted:     #666666;
  --accent:    #0057ff;
  --danger:    #c00000;
  --radius:    10px;
}

body {
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 40px 16px 80px;
  min-height: 100vh;
}

.wrapper {
  max-width: 680px;
  margin: 0 auto;
}

/* ── header ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── contract box ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contract-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
  scroll-behavior: smooth;
}

.contract-box::-webkit-scrollbar { width: 6px; }
.contract-box::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.contract-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.contract-box h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 4px;
  color: var(--text);
}
.contract-box h3:first-child { margin-top: 0; }
.contract-box p { margin-bottom: 6px; }
.contract-box ul { padding-left: 18px; margin-bottom: 6px; }
.contract-box li { margin-bottom: 3px; }

.penalty-note {
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── form ── */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

label .req {
  color: var(--danger);
  margin-left: 3px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  background: var(--surface);
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--text);
}

/* ── agree checkbox ── */
.agree-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
  cursor: pointer;
}

.agree-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--text);
}

.agree-wrap .agree-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.agree-wrap .agree-text strong {
  color: var(--text);
}

/* ── submit button ── */
.btn-submit {
  width: 100%;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s, transform .1s;
}

.btn-submit:hover:not(:disabled) { opacity: .85; }
.btn-submit:active:not(:disabled) { transform: scale(.99); }
.btn-submit:disabled { opacity: .45; cursor: not-allowed; }

/* ── states ── */
#error-msg {
  display: none;
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: 7px;
}

#success-card {
  display: none;
  border: 1px solid #d4edda;
  background: #f0fff4;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-top: 24px;
}

#success-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

#success-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .15s;
}

.btn-download:hover { opacity: .85; }

.note-small {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── setup steps ── */
.step-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-body a { color: var(--text); }

code {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.code-block {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  background: #1a1a1a;
  color: #e8e8e8;
  padding: 12px 14px;
  border-radius: 7px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── footer ── */
.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #bbb;
  text-align: center;
  line-height: 1.8;
}
