/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #0d0d0d;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Typography */
.title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.95rem;
  color: #999;
  text-align: center;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
  min-height: 48px;
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #e84393, #fd79a8);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-share {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  width: auto;
}

/* Age Gate */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.age-gate.hidden {
  display: none;
}

.age-gate-box {
  text-align: center;
  padding: 40px 24px;
  max-width: 360px;
  width: 100%;
}

.age-gate-box h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.age-gate-box p {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Quiz */
.quiz-container {
  width: 100%;
  max-width: 480px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e84393, #fd79a8);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.question-card {
  animation: fadeIn 0.3s ease;
}

.question-text {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ddd;
  font-size: 0.95rem;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  min-height: 48px;
}

.choice-btn:active {
  background: rgba(232, 67, 147, 0.2);
  border-color: #e84393;
}

/* Result */
.result-container {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.result-type-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e84393, #fd79a8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.result-type-name {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.result-description {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.result-tag {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(232, 67, 147, 0.15);
  color: #fd79a8;
  font-size: 0.8rem;
  font-weight: 500;
}

.radar-section {
  margin-bottom: 32px;
}

.radar-canvas {
  display: block;
  margin: 0 auto;
}

.compatibility {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
}

.compatibility h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.compatibility p {
  color: #bbb;
  font-size: 0.9rem;
}

/* Share */
.share-section {
  margin-bottom: 32px;
}

.share-section h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-twitter {
  background: #1da1f2;
  color: #fff;
}

.btn-line {
  background: #06c755;
  color: #fff;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.12);
  color: #ddd;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.1), rgba(253, 121, 168, 0.1));
  border: 1px solid rgba(232, 67, 147, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.cta-section h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cta-section p {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.cta-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #999;
  font-size: 0.75rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PC */
@media (min-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .question-text {
    font-size: 1.25rem;
  }

  .result-type-name {
    font-size: 2.5rem;
  }
}
