/* 職業診断ページ - モダンデザイン */

.diagnosis-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ヘッダー */
.diagnosis-header {
  text-align: center;
  margin-bottom: 3rem;
}

.diagnosis-header h1 {
  font-size: 2.5rem;
  color: #1a202c;
  margin-bottom: 1rem;
}

.diagnosis-header p {
  font-size: 1.125rem;
  color: #4a5568;
  line-height: 1.6;
}

/* 空状態（近日追加予定） */
.diagnosis-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.diagnosis-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.diagnosis-empty h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.diagnosis-empty p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

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

.diagnosis-empty-btn {
  padding: 0.875rem 2rem;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.diagnosis-empty-btn:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}

/* スタートカード */
.diagnosis-start-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.diagnosis-start-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.diagnosis-start-card h2 {
  font-size: 2rem;
  color: #1a202c;
  margin-bottom: 1rem;
}

.diagnosis-start-card p {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.diagnosis-start-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.diagnosis-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  font-weight: 600;
}

.diagnosis-start-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

.diagnosis-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* プログレスバー */
.diagnosis-progress {
  margin-bottom: 2rem;
}

.diagnosis-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.diagnosis-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.diagnosis-progress-text {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
  font-weight: 600;
}

/* 質問カード */
.diagnosis-question-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  animation: slideIn 0.4s ease;
}

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

.diagnosis-question-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.diagnosis-question-text {
  font-size: 1.5rem;
  color: #1a202c;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.diagnosis-question-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 2rem;
  display: block;
  object-fit: cover;
}

.diagnosis-help-text {
  font-size: 0.938rem;
  color: #718096;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border-left: 4px solid #667eea;
  border-radius: 8px;
}

/* 選択肢 */
.diagnosis-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.diagnosis-choice {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #f7fafc;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.diagnosis-choice:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateX(4px);
}

.diagnosis-choice.selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-color: #667eea;
}

.diagnosis-choice-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.diagnosis-choice-text {
  flex: 1;
  font-size: 1.125rem;
  color: #2d3748;
  font-weight: 500;
}

.diagnosis-choice-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* ナビゲーションボタン */
.diagnosis-navigation {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.diagnosis-nav-btn {
  padding: 0.875rem 2rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: #4a5568;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diagnosis-nav-btn:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
  transform: translateY(-2px);
}

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

.diagnosis-nav-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.diagnosis-nav-btn.primary:hover {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* 結果カード */
.diagnosis-result-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  animation: slideIn 0.4s ease;
}

.diagnosis-result-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
}

.diagnosis-result-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.diagnosis-result-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.diagnosis-result-catch {
  font-size: 1.125rem;
  opacity: 0.95;
}

.diagnosis-result-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 2rem;
  display: block;
  object-fit: cover;
}

.diagnosis-result-summary {
  font-size: 1.125rem;
  color: #2d3748;
  line-height: 1.8;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 12px;
}

.diagnosis-result-detail {
  margin-bottom: 2rem;
  color: #4a5568;
  line-height: 1.8;
}

.diagnosis-result-section {
  margin-bottom: 2rem;
}

.diagnosis-result-section h3 {
  font-size: 1.25rem;
  color: #1a202c;
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diagnosis-result-list {
  list-style: none;
  padding: 0;
}

.diagnosis-result-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.diagnosis-result-list li:last-child {
  border-bottom: none;
}

.diagnosis-result-list li::before {
  content: "✓";
  color: #667eea;
  font-weight: 700;
  flex-shrink: 0;
}

/* スコアバー */
.diagnosis-scores {
  margin-bottom: 2rem;
}

.diagnosis-score-item {
  margin-bottom: 1rem;
}

.diagnosis-score-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.938rem;
  font-weight: 600;
  color: #4a5568;
}

.diagnosis-score-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.diagnosis-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* アクションボタン */
.diagnosis-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.diagnosis-action-btn {
  padding: 0.875rem 2rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.diagnosis-action-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.diagnosis-action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.diagnosis-action-btn.primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .diagnosis-container {
    padding: 1rem 0.5rem;
  }

  .diagnosis-header h1 {
    font-size: 1.875rem;
  }

  .diagnosis-start-card,
  .diagnosis-question-card,
  .diagnosis-result-card {
    padding: 1.5rem;
  }

  .diagnosis-question-text {
    font-size: 1.25rem;
  }

  .diagnosis-choice {
    padding: 1rem;
  }

  .diagnosis-choice-text {
    font-size: 1rem;
  }

  .diagnosis-navigation {
    flex-direction: column;
  }

  .diagnosis-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .diagnosis-actions {
    flex-direction: column;
  }

  .diagnosis-action-btn {
    width: 100%;
    justify-content: center;
  }
}
