/* 給与統計セクションのスタイル（SEO最適化版） */

._salary-statistics-wrapper {
  margin-bottom: 1rem;
}

._salary-statistics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

._salary-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.875rem;
}

._salary-type-selector {
  display: flex;
  gap: 0.5rem;
}

._salary-type-btn {
  min-width: 80px;
  transition: all 0.2s ease;
}

._salary-type-btn.active {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

._salary-summary-section {
  padding: 1rem 0;
  animation: fadeIn 0.3s ease;
}

._salary-stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bs-gray-100);
  border-radius: 0.375rem;
  height: 100%;
  transition: transform 0.2s ease;
}

._salary-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

._salary-stat-item .text-muted {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

._salary-stat-item .fw-bold {
  font-size: 1.125rem;
  color: var(--bs-dark);
}

/* チャートコンテナのスタイル */
#salary-chart-root {
  min-height: 300px;
  position: relative;
}

#salary-chart-root canvas {
  max-height: 400px;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
  ._salary-statistics-header {
    flex-direction: column;
    align-items: flex-start;
  }

  ._salary-type-selector {
    width: 100%;
  }

  ._salary-type-btn {
    flex: 1;
  }

  ._salary-stat-item {
    padding: 0.5rem;
  }

  ._salary-stat-item .fw-bold {
    font-size: 1rem;
  }

  #salary-chart-root {
    min-height: 250px;
  }
}

/* 外れ値説明セクションのスタイル */
._outlier-explanation {
  background: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

._outlier-explanation h6 {
  color: var(--bs-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 0.5rem;
}

._outlier-explanation .badge {
  font-weight: normal;
}

._outlier-explanation .card {
  transition: transform 0.2s ease;
}

._outlier-explanation .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

._outlier-explanation .card-header {
  font-weight: 600;
}

._outlier-explanation .card-body {
  background: white;
}

._salary-outlier-section {
  transition: opacity 0.3s ease;
}

/* パーセンタイル分布の表示 */
._outlier-explanation .row .col {
  min-width: 80px;
}

@media (max-width: 768px) {
  ._outlier-explanation .row .col-md-6 {
    margin-bottom: 1rem;
  }

  ._outlier-explanation .card-body .row .col-4 {
    padding: 0.25rem;
  }
}
