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

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: #f8f9fb;
  color: #1e293b;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 24px;
}

.description {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.3);
}

/* Notice */
.notice {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 16px;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 160px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 1rem;
  font-weight: 700;
}

.step-text {
  font-size: 0.85rem;
  color: #475569;
  text-align: center;
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-bottom: 28px;
  color: #c4b5fd;
  font-size: 1.4rem;
}

/* Progress */
.progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Questions */
.question-container {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-number {
  font-size: 0.85rem;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.question-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.answer-option {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: #334155;
  text-align: left;
}

.answer-option:hover {
  border-color: #4f46e5;
  background: #f5f3ff;
}

.answer-option.selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #1e293b;
  font-weight: 600;
}

textarea.answer-free {
  width: 100%;
  min-height: 100px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea.answer-free:focus {
  border-color: #4f46e5;
}

textarea.answer-free::placeholder {
  color: #94a3b8;
}

textarea.answer-free.supplement {
  min-height: 60px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.other-input::placeholder {
  color: #94a3b8;
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.btn-secondary {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px 32px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* Loading */
.loader {
  text-align: center;
  padding: 80px 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e2e8f0;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader p {
  color: #64748b;
  font-size: 1rem;
}

/* Result */
.result-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
}

.hours-saved {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hours-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hours-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6d28d9;
}

.hours-caption {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 20px;
}

.hours-caption strong {
  color: #4f46e5;
}

.result-summary {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.cost-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.cost-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.cost-alert p {
  color: #7f1d1d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cost-alert strong {
  color: #dc2626;
}

.section-title {
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.suggestions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.suggestion-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.suggestion-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.hours-badge {
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.suggestion-teaser {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.suggestion-free-tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 12px;
}

.suggestion-locked {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
}

.locked-content {
  padding: 16px;
  background: #f8fafc;
  filter: blur(4px);
}

.locked-line {
  height: 10px;
  background: #cbd5e1;
  border-radius: 4px;
  margin-bottom: 8px;
}

.locked-line.short {
  width: 60%;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(248, 250, 252, 0.6);
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.lock-icon {
  font-size: 1rem;
}

.btn-restart {
  display: block;
  margin: 40px auto 0;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  padding: 12px 32px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-restart:hover {
  color: #475569;
  border-color: #cbd5e1;
}

/* CTA */
.cta-box {
  margin-top: 40px;
  background: #fff;
  border: 2px solid #c4b5fd;
  border-radius: 16px;
  padding: 32px;
}

.cta-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 12px;
  text-align: center;
}

.cta-intro {
  max-width: 440px;
  margin: 0 auto 28px;
}

.cta-desc {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}

.cta-benefits {
  list-style: none;
  margin: 8px 0 0;
}

.cta-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 16px;
  line-height: 1.7;
}

.cta-benefits li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: #334155;
}

.cta-benefits li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 700;
}

/* Confirm box */
.confirm-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
}

.confirm-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.confirm-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.confirm-item:last-child {
  border-bottom: none;
}

.confirm-label {
  min-width: 170px;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.confirm-value {
  color: #1e293b;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Form */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #4f46e5;
}

.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  border-color: #4f46e5;
}

.form-textarea::placeholder,
.form-input::placeholder {
  color: #94a3b8;
}

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
  cursor: pointer;
}

.btn-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-decoration: none;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.3);
}

/* Thank you */
.thank-you {
  text-align: center;
  padding: 20px 0;
}

.thank-you h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 16px;
}

.thank-you p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .steps { flex-direction: column; gap: 4px; }
  .step-connector { transform: rotate(90deg); padding-bottom: 0; }
  .question-text { font-size: 1.1rem; }
  .score-circle { width: 100px; height: 100px; font-size: 2rem; }
}
