/* ========================================
   リセット & 基本設定
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b35;
  --primary-dark: #e85a2a;
  --primary-light: #ff8c61;
  --secondary: #f4a261;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --danger: #e76f51;
  --gray-50: #fefaf6;
  --gray-100: #fdf5ed;
  --gray-200: #fbe9d7;
  --gray-300: #f5d5b8;
  --gray-400: #d4a574;
  --gray-500: #a67c52;
  --gray-600: #7a5a3d;
  --gray-700: #5c442e;
  --gray-800: #3d2e1f;
  --gray-900: #2b1f15;
  
  --type-E: #ff6b35; /* 寄り添い型: Warm Orange */
  --type-C: #f4a261; /* 背中押し型: Sandy Orange */
  --type-I: #e9c46a; /* ひらめき型: Golden Yellow */
  --type-S: #2a9d8f; /* 整理整頓型: Teal */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #ff6b35 0%, #f4a261 50%, #e9c46a 100%);
  min-height: 100vh;
  color: var(--gray-900);
  line-height: 1.6;
}

/* ========================================
   画面切り替え
   ======================================== */
.screen {
  display: none;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.screen.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   START画面
   ======================================== */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.supervisor-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.05em;
}

.title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.title .icon {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.intro-box {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  margin-bottom: 2rem;
}

.intro-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.intro-box p {
  margin-bottom: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.types-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.type-card.mini {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s;
}

.type-card.mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.type-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.type-name {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.info-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-large {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  justify-content: center;
}

/* ========================================
   質問画面
   ======================================== */
.progress-container {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-text {
  text-align: center;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.question-category {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.question-text {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  line-height: 1.6;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  background: white;
  border: 3px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.option-card:hover {
  border-color: var(--primary-light);
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.option-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.option-content {
  flex: 1;
}

.option-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.option-description {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.option-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.option-card.selected .option-check {
  background: var(--primary);
}

.option-check i {
  color: var(--gray-300);
  font-size: 1.25rem;
  transition: all 0.3s;
}

.option-card.selected .option-check i {
  color: white;
}

.navigation-buttons {
  display: flex;
  gap: 1rem;
}

.navigation-buttons .btn {
  flex: 1;
}

/* ========================================
   結果画面
   ======================================== */
.result-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-type-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.type-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.type-badge .type-icon {
  font-size: 4rem;
}

.type-badge .type-info {
  text-align: left;
}

.type-badge .type-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.type-badge .type-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hybrid-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--warning) 0%, #fb923c 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.type-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* チャート */
.chart-container {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--primary);
}

.chart-wrapper {
  max-width: 500px;
  margin: 2rem auto;
  height: 400px;
}

.score-details {
  margin-top: 2rem;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-item {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all 0.3s;
}

.score-item.highest {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  box-shadow: var(--shadow);
}

.score-label {
  display: block;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.score-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}

.confidence-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.confidence-label {
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}

.confidence-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.confidence-value {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* 詳細 */
.type-details {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.strength-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.strength-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.strength-list i {
  color: var(--success);
  margin-top: 0.2rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.situation-card {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.3s;
}

.situation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.advice-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid var(--warning);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--gray-800);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* 2位タイプ */
.secondary-type {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
}

.secondary-type-card .section-title {
  margin-bottom: 1.5rem;
}

.secondary-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.secondary-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.secondary-text {
  flex: 1;
}

.secondary-description {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.combination-tip {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.combination-tip strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* 講座CTA */
.course-cta {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 3px solid #f59e0b;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cta-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.cta-text {
  text-align: left;
  flex: 1;
  max-width: 500px;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

.btn-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
}

/* SNSシェアセクション */
.share-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.share-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-buttons .btn {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.btn-twitter {
  background: #000000;
  color: white;
}

.btn-twitter:hover {
  background: #333333;
}

.btn-facebook {
  background: #1877f2;
  color: white;
}

.btn-facebook:hover {
  background: #0c63d4;
}

/* アクションボタン */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.action-buttons .btn {
  min-width: 200px;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .intro-box {
    padding: 1.5rem;
  }
  
  .types-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .question-text {
    font-size: 1.125rem;
    padding: 1.5rem;
  }
  
  .option-card {
    padding: 1.25rem;
  }
  
  .option-text {
    font-size: 1rem;
  }
  
  .navigation-buttons {
    flex-direction: column;
  }
  
  .type-badge {
    flex-direction: column;
    text-align: center;
  }
  
  .type-badge .type-info {
    text-align: center;
  }
  
  .type-badge .type-name {
    font-size: 1.5rem;
  }
  
  .chart-wrapper {
    height: 300px;
  }
  
  .secondary-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-text {
    text-align: center;
  }
  
  .cta-title {
    font-size: 1.375rem;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-buttons .btn {
    width: 100%;
    max-width: 100%;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.75rem;
  }
  
  .types-preview {
    grid-template-columns: 1fr;
  }
  
  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .situation-grid {
    grid-template-columns: 1fr;
  }
}
