/* モバイルでのラベル表示調整 */
@media (max-width: 480px) {
  .depression-check-container::after {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.5rem;
    top: 8px;
    right: 12px;
  }
  
  .start-title::after {
    display: none;
  }
}/* 診断セクション識別用の装飾 */
.depression-check-container::after {
  content: 'セルフチェック';
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--primary-color);
  color: var(--bg-primary);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
}/* =============================================
   うつ病診断チェックCSS
   既存のデザインシステムを継承
   ============================================= */

/* コンテナ */
.depression-check-container {
  background: linear-gradient(135deg, #E6F4FB 0%, #F0F8FC 100%);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 160, 233, 0.15);
  overflow: hidden;
  position: relative;
}

.depression-check-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.depression-check-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================
   プログレスバー
   ============================================= */
.progress-bar-container {
  margin-bottom: 1.5rem;
}

.progress-bar {
  background: var(--bg-secondary);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  background: var(--primary-color);
  height: 100%;
  width: 4.76%; /* 1/21 * 100 */
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   スタート画面
   ============================================= */
.start-screen {
  text-align: center;
  padding: 1.5rem 1rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.start-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

.start-title::after {
  content: '🔍';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

.start-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.start-button {
  background: var(--primary-color);
  color: var(--bg-primary);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 160, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.start-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 160, 233, 0.4);
}

.start-button:active {
  transform: translateY(0);
}

.start-button:active::before {
  width: 200px;
  height: 200px;
}

/* =============================================
   質問エリア
   ============================================= */
.question-container {
  min-height: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.question-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.question-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.question-title {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.question-text {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
}

/* =============================================
   回答オプション
   ============================================= */
.answer-options {
  display: grid;
  gap: 0.75rem;
}

.answer-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.answer-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.answer-btn:active {
  transform: scale(0.98);
}

.answer-btn.selected {
  background: var(--primary-color);
  color: var(--bg-primary);
  border-color: var(--primary-color);
}

/* 選択時のリップルエフェクト */
.answer-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.answer-btn:active::after {
  width: 300px;
  height: 300px;
}

/* =============================================
   結果エリア
   ============================================= */
.result-container {
  animation: fadeIn 0.5s ease;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

.result-content {
  text-align: left;
  padding: 1rem 0;
}

.result-description {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
}

.result-description h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.result-description p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.result-description p:last-child {
  margin-bottom: 0;
}

.result-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 結果タイプ別のスタイル */
.result-type-mild {
  border-left: 4px solid #FFC107;
}

.result-type-moderate-mild {
  border-left: 4px solid #FF9800;
}

.result-type-moderate {
  border-left: 4px solid #FF5722;
}

.result-type-severe {
  border-left: 4px solid #F44336;
}

/* =============================================
   CTA部分
   ============================================= */
.depression-check-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.clinic-recommendation {
  text-align: left;
}

.recommendation-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.clinic-info-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.clinic-name {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.clinic-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  color: var(--primary-color);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.clinic-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.cta-primary {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 160, 233, 0.3);
}

.cta-secondary {
  background: var(--bg-primary);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
  background: var(--primary-light);
}

.button-icon {
  font-size: 1.25rem;
}

.button-arrow {
  font-size: 1.125rem;
}

.button-number {
  font-weight: 700;
}

.consultation-note {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary-color);
}

.consultation-note p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* =============================================
   ナビゲーションボタン
   ============================================= */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.nav-btn {
  padding: 0.625rem 1.25rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.restart-btn {
  background: var(--primary-color);
  color: var(--bg-primary);
  border-color: var(--primary-color);
  margin: 0 auto;
}

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

/* =============================================
   アニメーション
   ============================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* =============================================
   レスポンシブ - タブレット
   ============================================= */
@media (min-width: 768px) {
  .depression-check-container {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .start-screen {
    padding: 2rem 1.5rem;
  }
  
  .start-title {
    font-size: 1.5rem;
  }
  
  .start-title::after {
    font-size: 1.25rem;
    right: -40px;
  }
  
  .start-description {
    font-size: 0.9375rem;
    max-width: 400px;
    margin-bottom: 1.75rem;
  }
  
  .start-button {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
  }
  
  .question-container {
    padding: 1.5rem;
  }
  
  .question-text {
    font-size: 1.375rem;
  }
  
  .answer-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .result-score {
    padding: 2rem;
  }
  
  .score-value {
    font-size: 3.5rem;
  }
  
  .clinic-info-box {
    padding: 2rem;
  }
  
  .clinic-actions {
    flex-direction: row;
  }
  
  .cta-button {
    flex: 1;
  }
}

/* =============================================
   レスポンシブ - デスクトップ
   ============================================= */
@media (min-width: 1024px) {
  .depression-check-container {
    padding: 2rem;
    margin: 2.5rem 0;
  }
  
  .depression-check-wrapper {
    max-width: 800px;
  }
  
  .start-screen {
    padding: 2.5rem 2rem;
  }
  
  .answer-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   アクセシビリティ
   ============================================= */
.answer-btn:focus,
.nav-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* =============================================
   ローディング状態
   ============================================= */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}