/* ========================================
   Base
========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #f0f2f5;
  -webkit-text-size-adjust: 100%;
}
a { text-decoration: none; }

/* ========================================
   Layout
========================================= */
.app {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* ========================================
   Header
========================================= */
.header {
  padding: 14px 20px;
  border-bottom: 2px solid #2563eb;
  background: #fff;
}
.header-logo {
  font-size: 18px;
  font-weight: 900;
  color: #2563eb;
}

/* ========================================
   Hero
========================================= */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.hero-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 24px;
  font-weight: 900;
  color: #1e3a8a;
  line-height: 1.4;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 28px;
}
.start-btn {
  display: inline-block;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 48px;
  border: 2px solid #1d4ed8;
  border-radius: 12px;
  box-shadow: 0 4px 0 #1e40af, 0 6px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.1s;
}
.start-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #1e40af;
}

/* ========================================
   Progress Bar
========================================= */
.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin: 0 20px 32px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ========================================
   Question Area
========================================= */
.question-area {
  padding: 32px 20px 40px;
}
.question-num {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.question-text {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.4;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  text-align: left;
  transition: all 0.15s;
}
.option-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.option-btn:active {
  transform: scale(0.98);
}
.option-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

/* ========================================
   Result Area
========================================= */
.result-area {
  padding: 32px 20px 40px;
}
.result-title {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}
.result-name {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: #1e3a8a;
  margin-bottom: 4px;
}
.result-match {
  text-align: center;
  font-size: 14px;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 24px;
}
.result-card {
  background: #fff;
  border: 3px solid #2563eb;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.result-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.spec-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.spec-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.spec-value {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}
.spec-value.highlight {
  color: #dc2626;
}
.result-reasons {
  list-style: none;
  margin-bottom: 24px;
}
.result-reasons li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #334155;
}
.result-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 800;
  font-size: 16px;
}
.result-cta {
  text-align: center;
}
.result-btn {
  display: block;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  padding: 18px 10px;
  border-radius: 10px;
  border: 2px solid #1d4ed8;
  box-shadow: 0 4px 0 #1e40af, 0 6px 12px rgba(0,0,0,0.15);
  margin-bottom: 8px;
  transition: transform 0.1s;
  text-decoration: none;
}
.result-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #1e40af;
}
.result-btn-sub {
  font-size: 12px;
  color: #94a3b8;
}
.result-btn-netflix {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  border-color: #b91c1c;
  box-shadow: 0 4px 0 #991b1b, 0 6px 12px rgba(0,0,0,0.15);
}
.result-btn-netflix:active {
  box-shadow: 0 0 0 #991b1b;
}
.result-btn-gray {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
  border-color: #4b5563;
  box-shadow: 0 4px 0 #374151, 0 6px 12px rgba(0,0,0,0.15);
  font-size: 16px;
  padding: 14px 10px;
}
.result-btn-gray:active {
  box-shadow: 0 0 0 #374151;
}

/* Other Results */
.other-results {
  margin-top: 32px;
}
.other-title {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 16px;
  text-align: center;
}
.other-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.other-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.other-card-name {
  font-size: 17px;
  font-weight: 800;
  color: #334155;
}
.other-card-price {
  font-size: 13px;
  color: #64748b;
}
.other-card-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}
.other-card-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Retry */
.retry-wrap {
  text-align: center;
  margin-top: 32px;
}
.retry-btn {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.retry-btn:hover {
  background: #eff6ff;
}

/* ========================================
   Utility
========================================= */
.hidden { display: none; }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.4s ease;
}

/* ========================================
   Footer
========================================= */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 11px;
  background: #1e293b;
  color: #94a3b8;
}
.footer-note {
  font-size: 9px;
  color: #64748b;
  margin-bottom: 4px;
  line-height: 1.5;
}
.footer-links {
  margin: 8px 0;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: underline;
  margin: 0 6px;
}
