/* ベース設定 */
:root {
  /* カラーパレット - 明るいテーマ */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #edf2ff;
  --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
  --secondary-color: #3a0ca3;
  --secondary-light: #e9e4f9;
  --success-color: #2ec4b6;
  --success-light: #e6f7f5;
  --warning-color: #ff9f1c;
  --warning-light: #fff5e9;
  --danger-color: #e71d36;
  --danger-light: #ffebee;
  --info-color: #4cc9f0;
  --info-light: #ebf9ff;
  --dark-color: #0b132b;
  --text-color: #2b2d42;
  --text-secondary: #5c6278;
  --text-light: #8d99ae;
  --text-muted: #adb5bd;
  --bg-color: #f8f9fa;
  --bg-light: #ffffff;
  --bg-dark: #f0f2f5;
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --border-light: #f1f3f5;
  
  /* 効果 */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 16px rgba(67, 97, 238, 0.1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* レイアウト */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --header-height: 64px;
  --container-padding: 30px;
  
  /* アニメーション */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 14px;
  line-height: 1.5;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* アプリレイアウト */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* サイドバー */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  transition: var(--transition);
  z-index: 1000;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  height: 30px;
  transition: var(--transition);
}

.sidebar.collapsed .logo {
  display: none;
}

.collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-light);
  border-radius: 50%;
  transition: var(--transition);
}

.collapse-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.theme-switch {
  margin-bottom: 16px;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.theme-toggle-btn i {
  margin-right: 12px;
}

.theme-toggle-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.sidebar-info {
  font-size: 12px;
  color: var(--text-light);
}

.sidebar-help {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: var(--primary-color);
}

.sidebar-help i {
  margin-right: 8px;
}

.sidebar-nav ul li {
  position: relative;
  margin-bottom: 8px;
  padding: 0 16px;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-color);
  transition: var(--transition);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.sidebar-nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.sidebar-nav ul li a i {
  font-size: 20px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-nav ul li a span {
  margin-left: 10px;
  white-space: nowrap;
  opacity: 1;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar.collapsed .sidebar-nav ul li a span {
  opacity: 0;
  width: 0;
}

.sidebar-nav ul li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sidebar-nav ul li.active a {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav ul li.active a::before {
  width: 4px;
  opacity: 1;
}

.sidebar-nav ul li a .menu-tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 10;
  pointer-events: none;
}

.sidebar.collapsed .sidebar-nav ul li a:hover .menu-tooltip {
  opacity: 1;
  visibility: visible;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin-left: var(--sidebar-width);
  transition: var(--transition);
  background-color: var(--bg-color);
}

.sidebar.collapsed + .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* トップヘッダー */
.top-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  z-index: 990;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-left {
  display: flex;
  align-items: center;
}

.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-color);
  margin-right: 15px;
  transition: var(--transition);
}

.mobile-toggle-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.search-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 20px;
  padding: 8px 15px;
  width: 300px;
}

.search-container i {
  color: var(--text-light);
  margin-right: 8px;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  color: var(--text-color);
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-light);
  margin-left: 5px;
  border-radius: 50%;
  transition: var(--transition);
}

.header-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: var(--danger-color);
  color: white;
  font-size: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User profile dropdown styles */
.user-profile {
  position: relative;
  margin-left: 15px;
}

.profile-trigger {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.profile-trigger:hover {
  background-color: var(--primary-light);
}

.profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px;
  white-space: nowrap;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-color);
}

.user-plan {
  font-size: 12px;
  color: var(--text-light);
  font-weight: normal;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1000;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.user-profile.active .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid white;
}

.dropdown-user-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary-color);
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-secondary);
}

.dropdown-body {
  padding: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-color);
  transition: var(--transition);
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--bg-color);
}

.dropdown-item i {
  width: 24px;
  font-size: 16px;
  color: var(--text-light);
  margin-right: 10px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 8px 0;
}

.logout-item {
  color: var(--danger-color);
}

.logout-item i {
  color: var(--danger-color);
}

/* ダークモード時のスタイル */
body.theme-dark .dropdown-header {
  background-color: var(--primary-dark);
}

body.theme-dark .dropdown-user-name {
  color: white;
}

body.theme-dark .dropdown-user-email {
  color: var(--text-light);
}

body.theme-dark .dropdown-item:hover {
  background-color: var(--bg-dark);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* モバイル用プロファイルドロップダウン調整 */
  .profile-dropdown {
    width: 250px;
    right: -10px;
  }
}

@media (max-width: 576px) {
  .user-info {
    display: none;
  }
  
  /* 超小型画面用プロファイルドロップダウン調整 */
  .profile-dropdown {
    width: 220px;
    right: -15px;
  }
}

/* ページコンテンツ */
.page-content {
  flex: 1;
  padding: 20px 30px 40px;
  overflow-y: auto;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-title p {
  color: var(--text-light);
  max-width: 600px;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* ボタンスタイル */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Add gap for spacing between elements */
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn span, .btn i {
  position: relative;
  z-index: 2;
}

.primary-btn {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.primary-btn:hover {
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
  transform: translateY(-2px);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.primary-btn:disabled {
  background: linear-gradient(135deg, #A0A6E5 0%, #9AA0E0 100%);
  cursor: not-allowed;
  box-shadow: none;
}

.primary-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background-color: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.secondary-btn:active {
  transform: translateY(0);
}

/* Coming Soon - 無効化されたボタンのスタイル */
.btn[disabled], 
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background-color: var(--bg-color) !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
  overflow: visible; /* Allow badge to be visible */
}

.btn[disabled]:hover,
.btn.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.btn[disabled]::before,
.btn.disabled::before {
  display: none;
}

/* Coming Soon Badge - 案件・タスク管理のデザインに合わせて */
.coming-soon-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--warning-color);
  color: white;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secondary-btn:disabled {
  color: var(--text-muted);
  background-color: var(--bg-light);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.secondary-btn:disabled:hover {
  transform: none;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.text-btn {
  color: var(--primary-color);
  padding: 6px 12px;
  background: transparent;
  position: relative;
}

.text-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.text-btn:hover {
  background-color: var(--primary-light);
}

.text-btn:hover::after {
  width: 100%;
}

.danger-btn {
  background-color: var(--danger-color);
  color: white;
  box-shadow: 0 4px 12px rgba(237, 66, 69, 0.2);
}

.danger-btn:hover {
  box-shadow: 0 6px 16px rgba(237, 66, 69, 0.3);
  transform: translateY(-2px);
}

.btn i {
  margin-right: 8px;
  font-size: 16px;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item i {
  margin-right: 6px;
}

.breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: var(--text-light);
}

/* リストセクション共通 */
.list-section {
  display: none;
}

.list-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.back-btn {
  display: flex;
  align-items: center;
}

.back-btn i {
  margin-right: 5px;
}

/* フィルターとビュー切り替え */
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  color: var(--text-color);
  outline: none;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

.view-toggle {
  display: flex;
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 3px;
}

.view-btn {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: var(--transition);
}

.view-btn.active {
  background-color: var(--card-bg);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* リストグリッドビュー */
.list-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  grid-auto-rows: 1fr;
  min-height: 400px;
  position: relative;
}

.list-grid.active {
  display: grid;
}

/* リストがない場合のメッセージ */
.no-lists-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  max-width: 400px;
}

.list-grid .no-lists-message {
  grid-column: 1 / -1;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
}

.list-card {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.list-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 101, 242, 0.2);
}

.list-card-header {
  position: relative;
  padding: 16px;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-size: 18px;
}

.list-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.list-badge.active {
  background-color: var(--success-light);
  color: var(--success-color);
}

.list-badge.inactive {
  background-color: var(--text-muted);
  color: white;
}

.list-badge.archived {
  background-color: var(--warning-light);
  color: var(--warning-color);
}

.card-actions {
  display: none !important; /* Coming Soon - アクションボタンを非表示 */
  gap: 8px;
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0;
  transition: var(--transition);
}

.list-card:hover .card-actions {
  /* opacity: 1; */ /* Coming Soon - ホバー時も非表示を維持 */
}

.list-card:hover .list-badge {
  /* opacity: 0; */ /* Coming Soon - バッジは常に表示 */
}

.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.card-action-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.card-action-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-color);
  color: white;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.card-action-btn[data-tooltip]:hover::after {
  opacity:
  1;
  visibility: visible;
}

/* Coming Soon - 無効化されたカードアクションボタン */
.card-action-btn.disabled,
.card-action-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.card-action-btn.disabled:hover,
.card-action-btn[disabled]:hover {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.list-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  height: 60px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  padding: 8px 5px;
  border-radius: var(--radius);
  flex: 1;
  margin: 0 3px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.metric-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
  line-height: 1;
}

.list-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-item i {
  margin-right: 5px;
  flex-shrink: 0;
}

.meta-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 12px;
  background-color: var(--bg-color);
}

.usage-info, .timestamp {
  display: flex;
  align-items: center;
}

.usage-info i, .timestamp i {
  margin-right: 5px;
}

/* 詳細を見るボタン */
.view-details-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  opacity: 0.9;
}

.view-details-btn:hover {
  opacity: 1;
  background-color: var(--primary-dark);
}

/* リストビュー */
.list-list {
  display: none;
  margin-bottom: 30px;
  min-height: 400px;
  position: relative;
}

.list-list.active {
  display: block;
}

.list-list .no-lists-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  max-width: 400px;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-table th, .list-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.list-table th {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
}

.list-table tr:last-child td {
  border-bottom: none;
}

.list-table tr:hover {
  background-color: var(--bg-color);
}

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.status-badge.active {
  background-color: var(--success-light);
  color: var(--success-color);
}

.status-badge.inactive {
  background-color: var(--text-muted);
  color: white;
}

.status-badge.archived {
  background-color: var(--warning-light);
  color: var(--warning-color);
}

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.table-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.table-action-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.table-action-btn.delete-btn:hover {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

.table-action-btn.send-form-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.table-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.table-action-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-color);
  color: white;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.table-action-btn[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text-color);
  transition: var(--transition);
  font-weight: 500;
}

.pagination-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.pagination-btn.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 詳細セクション */
.detail-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 30px;
}

.detail-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.list-profile {
  display: flex;
  align-items: center;
}

.list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
}

.list-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.meta-item i {
  margin-right: 6px;
}

.section-actions {
  display: flex;
  gap: 10px;
}

/* ドロップダウンメニュー */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-color);
  transition: var(--transition);
}

.dropdown-item i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

.dropdown-item:hover {
  background-color: var(--bg-color);
}

.dropdown-item.danger {
  color: var(--danger-color);
}

.dropdown-item.danger:hover {
  background-color: var(--danger-light);
}

/* 概要統計カード */
.summary-section {
  padding: 0 24px 24px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: -20px;
}

.summary-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 20px;
  margin-right: 16px;
  flex-shrink: 0;
}

.summary-data {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
}

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* タブナビゲーション */
.detail-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.tab-btn {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.tab-btn i {
  margin-right: 8px;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  width: 100%;
}

/* タブコンテンツ */
.tab-content {
  display: none;
  padding: 24px;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アクションバー */
.action-bar {
  margin-bottom: 20px;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.filter-group {
  display: flex;
  gap: 10px;
}

.detail-search {
  width: 250px;
}

.detail-filter {
  min-width: 140px;
}

/* 企業リストテーブル */
.company-table-container {
  margin-bottom: 20px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.company-table th,
.company-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.company-table th {
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  z-index: 10;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-table tr:last-child td {
  border-bottom: none;
}

.company-table tr:hover {
  background-color: var(--bg-color);
}

.checkbox-column {
  width: 40px;
  text-align: center;
}

/* 見込み度バー */
.prospect-bar {
  position: relative;
  height: 10px;
  background-color: var(--bg-color);
  border-radius: 5px;
  overflow: visible; /* overflow: hiddenからvisibleに変更して数値が見えるようにする */
  width: 100%;
  display: flex;
  align-items: center;
  margin-right: 40px; /* 数値表示のためのスペースを確保 */
}

.prospect-bar.small {
  height: 8px;
  width: 150px;
  margin-right: 20px;
}

.prospect-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 5px;
}

.prospect-value {
  position: absolute;
  right: -35px; /* 右側に十分なスペースを確保 */
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap; /* 数値が途切れないようにする */
}

/* ステータスピル */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-pill.sent {
  background-color: var(--success-light);
  color: var(--success-color);
}

.status-pill.not-sent {
  background-color: var(--bg-color);
  color: var(--text-secondary);
}

.status-pill.error {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

/* テーブルフッター */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* 一括アクション */
.bulk-actions {
  display: flex;
  align-items: center;
}

.selected-count {
  margin-right: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.bulk-action-btn {
  margin-left: 10px;
}

/* 企業テーブル用のLoad Moreボタン */
.company-load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
}

.company-load-more-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.company-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.company-load-more-btn:active {
  transform: translateY(0);
}

.company-load-more-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.company-load-more-btn.loading i {
  animation: spin 1s linear infinite;
}

.company-load-more-btn i {
  font-size: 14px;
  margin-right: 6px;
}

.company-load-more-container.hidden {
  display: none;
}

/* アクティビティタイムライン */
.activity-timeline {
  padding: 16px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  margin-bottom: 16px;
}

.timeline-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.timeline-filter {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.timeline-container {
  position: relative;
  padding-left: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.timeline-icon {
  position: absolute;
  left: -30px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.timeline-icon.send {
  background-color: var(--primary-color);
}

.timeline-icon.edit {
  background-color: var(--info-color);
}

.timeline-icon.appointment {
  background-color: var(--success-color);
}

.timeline-icon.create {
  background-color: var(--secondary-color);
}

.timeline-content {
  padding-left: 10px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-description {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-details {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}

.timeline-user {
  background-color: var(--bg-color);
  padding: 2px 8px;
  border-radius: 12px;
}

.no-activities {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 設定タブ */
.settings-container {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.settings-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.settings-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-select, .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  color: var(--text-color);
  outline: none;
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

.form-hint {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 5px;
}

.radio-group, .checkbox-group {
  display: flex;
  gap: 16px;
}

.checkbox-group.vertical {
  flex-direction: column;
  gap: 8px;
}

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-label input, .checkbox-label input {
  margin-right: 8px;
}

/* タグ入力 */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  min-height: 42px;
}

.tag-item {
  display: flex;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.tag-remove {
  margin-left: 6px;
  cursor: pointer;
  font-size: 14px;
}

.tag-input {
  flex: 1;
  min-width: 100px;
  border: none;
  outline: none;
  background: none;
  color: var(--text-color);
  font-size: 14px;
  padding: 4px 0;
}

.settings-actions {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
}

.right-actions {
  display: flex;
  gap: 10px;
}

/* 編集ページ */
.edit-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 30px;
  padding: 24px;
}

.edit-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.edit-section:last-child {
  border-bottom: none;
}

.edit-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.edit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.range-slider {
  padding: 0 10px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 12px;
}

.range-value {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary-color);
}

/* 編集可能な企業数表示のスタイル */
.range-value[contenteditable="true"] {
  display: inline-block;
  min-width: 60px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  cursor: text;
  transition: all 0.2s ease;
}

.range-value[contenteditable="true"]:hover {
  background-color: var(--bg-color);
  border-color: var(--border-light);
}

.range-value[contenteditable="true"]:focus {
  background-color: var(--background-primary);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background-color: var(--bg-color);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  gap: 16px;
}

.required {
  color: var(--danger-color);
}

/* 企業詳細モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  width: 1000px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: modalFadeIn 0.3s;
}

/* 企業詳細モーダルのサイズ調整 */
.company-modal {
  width: 1400px;
  max-width: 95%;
  max-height: 90vh;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

/* モーダルヘッダーのタイトルを小さく */
.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.close-modal {
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 30px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

/* 企業詳細モーダル専用の調整 */
.modal-content.company-modal,
#company-detail-modal .modal-content,
.modal .company-modal {
  width: 1400px !important;
  max-width: 95% !important;
}

.company-modal .modal-body {
  padding: 20px 30px;
  max-height: calc(90vh - 140px);
}

/* より詳細なセレクタで確実に適用 */
#company-detail-modal > .modal-content.company-modal {
  width: 1400px !important;
  max-width: 95% !important;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

/* フッターのボタン */
.modal-footer .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* 企業プロフィール */
.company-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-header {
  display: flex;
  align-items: center;
}

/* 企業ロゴプレースホルダーを小さく */
.company-logo-placeholder {
  width: 70px;
  height: 70px;
  font-size: 28px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 8px;
  flex-shrink: 0;
}

.company-basic-info {
  flex: 1;
}

/* 企業名を適切なサイズに */
.company-basic-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* メタ情報のフォントサイズ縮小 */
.company-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.company-industry, .company-size, .company-location {
  font-size: 12px;
}

.company-separator {
  margin: 0 8px;
  color: var(--text-light);
}

/* 見込み度表示の調整 */
.company-prospect {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.prospect-label {
  font-size: 12px;
  margin-right: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.prospect-bar.small {
  height: 6px;
  width: 130px;
  margin-right: 15px;
}

.prospect-value {
  font-size: 11px;
  right: -30px;
}

/* 企業詳細情報のサイズ調整 */
.company-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  background-color: var(--bg-color);
  padding: 12px;
  border-radius: var(--radius);
}

.detail-group {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.detail-value {
  font-size: 13px;
  font-weight: 500;
}

.detail-value .link {
  color: var(--primary-color);
}

/* AIリサーチレポート */
.ai-research-report {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

/* AIリサーチレポートのヘッダー */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border-light);
}

.report-title {
  display: flex;
  align-items: center;
}

.report-title i {
  font-size: 18px;
  margin-right: 10px;
  color: var(--primary-color);
}

.report-title h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.report-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.report-content {
  padding: 16px;
}

.report-section {
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

/* セクションヘッダー */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--bg-color);
  cursor: pointer;
  transition: var(--transition);
}

.section-header:hover {
  background-color: var(--primary-light);
}

.section-header h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.section-content {
  padding: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

.strength-weakness-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.strength-section, .weakness-section {
  padding: 15px;
  border-radius: var(--radius);
}

.strength-section {
  background-color: var(--success-light);
}

.weakness-section {
  background-color: var(--danger-light);
}

/* 強み・弱み分析のセクション */
.strength-section h6, .weakness-section h6 {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.strength-section h6 {
  color: var(--success-color);
}

.weakness-section h6 {
  color: var(--danger-color);
}

.strength-section h6 i, .weakness-section h6 i {
  margin-right: 6px;
}

.strength-section ul, .weakness-section ul,
.recommendation-points {
  font-size: 12px;
  margin: 0;
  padding-left: 20px;
}

.strength-section li, .weakness-section li {
  margin-bottom: 6px;
}

.opportunity-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.opportunity-header {
  display: flex;
  padding: 16px;
  background-color: var(--primary-light);
}

/* 商談機会評価 */
.opportunity-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
}

.opportunity-score span {
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.score-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

.opportunity-indicators {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.indicator {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
}

.indicator i {
  margin-right: 6px;
}

.indicator.positive {
  background-color: var(--success-light);
  color: var(--success-color);
}

.indicator.negative {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

.opportunity-notes {
  padding: 16px;
}

.recommendation-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recommendation-point {
  display: flex;
  gap: 16px;
}

.point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.point-content {
  flex: 1;
}

.point-content h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* コンタクト履歴 */
.contact-history {
  background-color: var(--bg-color);
  padding: 16px;
  border-radius: var(--radius);
}

.contact-history h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.history-timeline {
  position: relative;
  padding-left: 30px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.history-item {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.history-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.history-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.history-icon {
  position: absolute;
  left: -30px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.history-icon.send {
  background-color: var(--primary-color);
}

.history-icon.reply {
  background-color: var(--info-color);
}

.history-icon.document {
  background-color: var(--warning-color);
}

.history-content {
  padding-left: 10px;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.history-description {
  color: var(--text-secondary);
  font-size: 12px;
}

/* =========================================================
 * 企業レポートテーブル
 * ========================================================= */
.company-report table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.company-report table tr {
  border-bottom: 1px solid #e5e7eb;
}

.company-report table tr:last-child {
  border-bottom: none;
}

.company-report table td:first-child {
  padding: 14px 20px;
  font-weight: 600;
  width: 25%;
  min-width: 200px;
  background: #f9fafb;
  vertical-align: top;
  color: #374151;
  border-right: 1px solid #e5e7eb;
}

.company-report table td:last-child {
  padding: 14px 20px;
  white-space: pre-wrap;
  line-height: 1.8;
  color: #1f2937;
  word-break: break-word;
}

.company-report h4 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid var(--primary);
}

/* 企業レポートのコンテナ */
.company-report {
  max-width: 100%;
  margin: 0 auto;
}

/* 企業レポートのセクション間隔 */
.company-report h4 {
  margin-top: 30px;
}

.company-report h4:first-child {
  margin-top: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1400px) {
  .company-modal,
  .modal-content.company-modal {
    width: 95% !important;
  }
  
  .company-report table td:first-child {
    width: 30%;
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .company-modal .modal-body {
    padding: 20px;
  }
  
  .company-report table {
    font-size: 14px;
  }
  
  .company-report table td:first-child {
    width: 40%;
    min-width: 120px;
  }
  
  .company-report table td {
    padding: 10px 12px;
  }
}

/* =========================================================
 * AIリスト生成 & CSVインポート
 * ========================================================= */

/* 共通スタイル */
.ai-generation-content,
.csv-import-content {
  max-width: 1000px;
  margin: 0 auto;
}

.ai-generation-step,
.import-step {
  display: none;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease;
}

.ai-generation-step.active,
.import-step.active {
  display: block;
}

.step-title,
.import-step h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 20px 24px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-light);
}

.step-content {
  padding: 24px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 30px;
}

/* ステップ1: ターゲット企業の条件設定 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 120px;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

/* ステップ2: 見込み企業数と精度の設定 */
.range-slider {
  padding: 0 10px;
  margin-bottom: 20px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 12px;
}

.range-value {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary-color);
}

/* 編集可能な企業数表示のスタイル */
.range-value[contenteditable="true"] {
  display: inline-block;
  min-width: 60px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  cursor: text;
  transition: all 0.2s ease;
}

.range-value[contenteditable="true"]:hover {
  background-color: var(--bg-color);
  border-color: var(--border-light);
}

.range-value[contenteditable="true"]:focus {
  background-color: var(--background-primary);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background-color: var(--bg-color);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
}

.form-hint {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 5px;
}

/* ステップ3: 生成中表示 - 改善版 */
.generation-progress {
  margin-bottom: 30px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.progress-main {
  flex: 1;
}

.progress-percentage {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1;
}

.progress-text {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}

.progress-time {
  text-align: right;
}

.time-label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.time-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.progress-bar-container {
  margin-bottom: 30px;
}

.progress-bar {
  height: 16px;
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 8px;
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-stages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.progress-stages::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 2px;
  background-color: var(--border-light);
  z-index: 0;
}

.stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stage-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.stage-icon i {
  font-size: 16px;
  color: var(--text-light);
}

.stage-item.completed .stage-icon {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.stage-item.completed .stage-icon i {
  color: white;
}

.stage-item.active .stage-icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 8px rgba(67, 97, 238, 0.1);
}

.stage-item.active .stage-icon i {
  color: white;
}

.stage-name {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 80px;
}

.stage-item.completed .stage-name,
.stage-item.active .stage-name {
  color: var(--text-color);
  font-weight: 500;
}

.generation-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-card {
  background-color: var(--bg-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.detail-header {
  padding: 16px 20px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-color);
}

.detail-header i {
  color: var(--primary-color);
}

.log-content {
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background-color: #f8f9fa;
  border-radius: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  line-height: 1.6;
}

.log-item:last-child {
  border-bottom: none;
}

.log-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.log-item.completed {
  color: var(--text-light);
}

.log-item.completed i {
  color: var(--success-color);
}

.log-item.active {
  color: var(--text-color);
  font-weight: 500;
}

.log-item.active i {
  color: var(--primary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ダークモード対応 */
body.theme-dark .progress-percentage {
  color: var(--primary-color);
}

body.theme-dark .detail-card {
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

body.theme-dark .detail-header {
  background-color: var(--bg-dark);
  border-color: var(--border-color);
}

body.theme-dark .progress-bar {
  background-color: var(--bg-dark);
}

body.theme-dark .stage-icon {
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .progress-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .progress-time {
    text-align: left;
  }
  
  .progress-percentage {
    font-size: 36px;
  }
  
  .progress-text {
    font-size: 14px;
  }
  
  .progress-stages {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .generation-details {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-value {
    font-size: 24px;
  }
}

/* シンプルで安定したAIリスト生成UI */
.generation-header {
  text-align: center;
  margin-bottom: 40px;
}

.generation-title h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.generation-title p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* プログレス概要 */
.progress-overview {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}

.progress-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.progress-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.progress-card.main-progress {
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}

.progress-card.main-progress .progress-content {
  text-align: left;
}
.main-progress .progress-value {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
  color: var(--text-color);
}

.progress-card i {
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.progress-content {
  text-align: left;
}

.progress-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 2px;
}

.progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.main-progress .progress-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* プログレスバー */
.progress-bar-container {
  margin-bottom: 40px;
}

.progress-bar {
  height: 20px;
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100px); }
  100% { transform: translateX(100px); }
}

/* プロセスステップ */
.process-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 0 20px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.step-item.completed .step-icon {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.step-item.active .step-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 8px rgba(67, 97, 238, 0.1);
}

.step-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.step-status {
  font-size: 11px;
  color: var(--text-light);
}

.step-item.completed .step-name,
.step-item.active .step-name {
  color: var(--text-color);
}

.step-connector {
  width: 80px;
  height: 3px;
  background: var(--border-light);
  margin: 0 -20px;
  position: relative;
  top: -24px;
}

.step-connector.completed {
  background: var(--success-color);
}

/* 詳細パネル */
.generation-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-panel {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header i {
  color: var(--primary-color);
  font-size: 18px;
}

.panel-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.panel-content {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

/* ログアイテム */
.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}

.log-item:last-child {
  border-bottom: none;
}

.log-item i {
  font-size: 16px;
  flex-shrink: 0;
}

.log-item.completed {
  color: var(--text-light);
}

.log-item.completed i {
  color: var(--success-color);
}

.log-item.active {
  color: var(--text-color);
}

.log-item.active i {
  color: var(--primary-color);
}

.log-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
  font-family: monospace;
}

/* 統計アイテム */
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

/* ダークモード対応 */
body.theme-dark .progress-card {
  background: var(--bg-light);
}

body.theme-dark .progress-card.main-progress {
  background: var(--primary-gradient);
}

body.theme-dark .step-icon {
  background: var(--bg-light);
  border-color: var(--border-color);
}

body.theme-dark .detail-panel {
  background: var(--bg-light);
}

body.theme-dark .panel-header {
  background: var(--bg-dark);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .progress-overview {
    flex-direction: column;
  }
  
  .progress-card.main-progress {
    flex: 1;
  }
  
  .progress-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .process-steps {
    overflow-x: auto;
    padding: 0 20px;
  }
  
  .step-connector {
    width: 60px;
  }
  
  .generation-details {
    grid-template-columns: 1fr;
  }
  
  .progress-percentage {
    font-size: 36px;
  }
  
  .progress-value {
    font-size: 20px;
  }
}

/* ステップ4: 完了表示 - Discord Light Mode Style */
.ai-generation-step[data-step="4"] {
  --background-primary: #ffffff;
  --background-secondary: #f2f3f5;
  --background-tertiary: #e3e5e8;
  --text-normal: #2e3338;
  --text-muted: #747f8d;
  --brand: #5865f2;
  --green: #3ba55c;
  --border-color: #e3e5e8;
}

.ai-generation-step[data-step="4"] .completion-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.ai-generation-step[data-step="4"] .header {
  text-align: center;
  margin-bottom: 40px;
}

.ai-generation-step[data-step="4"] .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  position: relative;
}

.ai-generation-step[data-step="4"] .success-icon svg {
  width: 100%;
  height: 100%;
}

.ai-generation-step[data-step="4"] .circle {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawCircle 0.8s ease-out forwards;
}

.ai-generation-step[data-step="4"] .check {
  stroke: var(--green);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease-out 0.8s forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.ai-generation-step[data-step="4"] h1 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: var(--text-normal);
}

.ai-generation-step[data-step="4"] .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.ai-generation-step[data-step="4"] .highlight {
  font-weight: 500;
  color: var(--brand);
}

/* メトリクス */
.ai-generation-step[data-step="4"] .metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.ai-generation-step[data-step="4"] .metric {
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.ai-generation-step[data-step="4"] .metric-value {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 4px;
  letter-spacing: -1px;
  color: var(--text-normal);
}

.ai-generation-step[data-step="4"] .metric-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* サマリー */
.ai-generation-step[data-step="4"] .summary {
  background: var(--background-secondary);
  padding: 32px;
  margin-bottom: 32px;
  border-radius: 8px;
}

.ai-generation-step[data-step="4"] .summary-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-normal);
}

.ai-generation-step[data-step="4"] .summary-list {
  list-style: none;
}

.ai-generation-step[data-step="4"] .summary-item {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.ai-generation-step[data-step="4"] .summary-item:last-child {
  border-bottom: none;
}

.ai-generation-step[data-step="4"] .summary-label {
  color: var(--text-muted);
  font-size: 14px;
}

.ai-generation-step[data-step="4"] .summary-value {
  font-weight: 600;
  color: var(--text-normal);
  font-size: 14px;
}

/* アクション */
.ai-generation-step[data-step="4"] .actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.ai-generation-step[data-step="4"] .btn {
  padding: 12px 32px;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 4px;
}

.ai-generation-step[data-step="4"] .btn-primary {
  background: var(--brand);
  color: #fff;
}

.ai-generation-step[data-step="4"] .btn-primary:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.ai-generation-step[data-step="4"] .btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-normal);
  background: var(--background-primary);
}

.ai-generation-step[data-step="4"] .btn-secondary:hover {
  background: var(--background-secondary);
  border-color: var(--text-muted);
}

/* レスポンシブ */
@media (max-width: 600px) {
  .ai-generation-step[data-step="4"] .metrics {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ai-generation-step[data-step="4"] .actions {
    flex-direction: column;
  }

  .ai-generation-step[data-step="4"] .btn {
    width: 100%;
  }
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #4caf50;
  }
}

/* パーティクルエフェクト */
.success-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.particle {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  border-radius: 50%;
  animation: particle-animation 1.5s ease-out forwards;
}

.particle:nth-child(1) { transform: rotate(0deg) translateX(0); }
.particle:nth-child(2) { transform: rotate(60deg) translateX(0); }
.particle:nth-child(3) { transform: rotate(120deg) translateX(0); }
.particle:nth-child(4) { transform: rotate(180deg) translateX(0); }
.particle:nth-child(5) { transform: rotate(240deg) translateX(0); }
.particle:nth-child(6) { transform: rotate(300deg) translateX(0); }

@keyframes particle-animation {
  to {
    transform: rotate(var(--rotation)) translateX(100px);
    opacity: 0;
  }
}

.particle:nth-child(1) { --rotation: 0deg; }
.particle:nth-child(2) { --rotation: 60deg; }
.particle:nth-child(3) { --rotation: 120deg; }
.particle:nth-child(4) { --rotation: 180deg; }
.particle:nth-child(5) { --rotation: 240deg; }
.particle:nth-child(6) { --rotation: 300deg; }

/* 完了メッセージ */
.completion-message {
  text-align: center;
  margin-bottom: 50px;
}

.completion-message h3 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #333 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.5px;
}

.completion-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  line-height: 1.6;
}

.highlight-number {
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, #5b7fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px;
  display: inline-block;
  padding: 0 4px;
}

/* 統計グリッド */
.completion-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.completion-stats-grid .stat-card {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.completion-stats-grid .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #5b7fff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.completion-stats-grid .stat-card:hover::before {
  opacity: 1;
}

.completion-stats-grid .stat-card:nth-child(1) { animation-delay: 0.3s; }
.completion-stats-grid .stat-card:nth-child(2) { animation-delay: 0.4s; }
.completion-stats-grid .stat-card:nth-child(3) { animation-delay: 0.5s; }
.completion-stats-grid .stat-card:nth-child(4) { animation-delay: 0.6s; }

.completion-stats-grid .stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.stat-card.companies .stat-icon {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
}

.stat-card.score .stat-icon {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #388e3c;
}

.stat-card.industry .stat-icon {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #f57c00;
}

.stat-card.region .stat-icon {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
}

.stat-card .stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card .stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.stat-card .stat-trend {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  align-self: flex-start;
}

.stat-card .stat-subtext {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}

.score-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
  border-radius: 3px;
  transition: width 1.5s ease-out;
}

/* インサイトセクション */
.completion-insights {
  background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.completion-insights::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.completion-insights h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.completion-insights h4 i {
  color: #ffc107;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.insight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(67, 97, 238, 0.2);
}

.insight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
}

.insight-icon.success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.insight-icon.info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.insight-icon.primary {
  background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
  color: #5e35b1;
}

.insight-icon.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #ef6c00;
}

.insight-text {
  flex: 1;
}

.insight-text strong {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.insight-value {
  font-weight: 800;
  color: #1a1a1a;
  font-size: 16px;
}

/* 業界分布 */
.industry-distribution {
  background: white;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s ease-out 1s both;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.industry-distribution h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.industry-distribution h4 i {
  color: var(--primary-color);
}

.distribution-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.distribution-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.distribution-label {
  width: 120px;
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.distribution-bar {
  flex: 1;
  height: 40px;
  background-color: #f5f7fa;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.distribution-fill {
  height: 100%;
  background: linear-gradient(90deg, #4361ee 0%, #5b7fff 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.distribution-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shine 2s ease-out infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.distribution-value {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 推奨アクション */
.completion-recommendations {
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out 1.2s both;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.completion-recommendations h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  justify-content: center;
}

.completion-recommendations h4 i {
  color: var(--primary-color);
}

.recommendation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.recommendation-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.recommendation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recommendation-card:hover::before {
  opacity: 1;
}

.recommendation-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.rec-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1976d2;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.recommendation-card:hover .rec-icon {
  transform: rotate(-10deg) scale(1.1);
}

.rec-content h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.rec-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* アクションボタン */
.completion-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 1.4s both;
  flex-wrap: wrap;
}

.completion-actions .btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.completion-actions .secondary-btn {
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
}

.completion-actions .secondary-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
  transform: translateY(-2px);
}

.completion-actions .primary-btn {
  background: linear-gradient(135deg, #4361ee 0%, #5b7fff 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
}

.completion-actions .primary-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(67, 97, 238, 0.4);
}

.completion-actions .primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transition: left 0.5s ease;
}

.completion-actions .primary-btn:hover::before {
  left: 100%;
}

.btn.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3), 0 0 0 0 rgba(67, 97, 238, 0.4);
  }
  70% {
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3), 0 0 0 20px rgba(67, 97, 238, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3), 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブデザイン調整 */
@media (max-width: 768px) {
  .completion-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .stat-card .stat-value {
    font-size: 28px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .recommendation-cards {
    grid-template-columns: 1fr;
  }
  
  .completion-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .completion-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .distribution-label {
    width: 80px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .completion-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .completion-message h3 {
    font-size: 24px;
  }
  
  .completion-subtitle {
    font-size: 16px;
  }
}

/* CSVインポート */
/* ステップ1: CSVファイルのアップロード */
.upload-container {
  margin-bottom: 30px;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: var(--bg-color);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area.drag-over {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

.upload-area i {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.upload-area h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.upload-area p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 15px;
}

.file-info {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: var(--bg-color);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius);
  margin-right: 16px;
  font-size: 24px;
}

.file-details {
  flex: 1;
}

.file-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.file-details p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ステップ2: 列マッピング */
.column-mapping {
  margin-bottom: 30px;
}

.mapping-instructions {
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--info-light);
  border-radius: var(--radius);
  color: var(--info-color);
}

.mapping-table-container {
  overflow-x: auto;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
}

.mapping-table th,
.mapping-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.mapping-table th {
  background-color: var(--bg-color);
  font-weight: 600;
  color: var(--text-secondary);
}

.mapping-table td .form-select {
  min-width: 200px;
}

.mapping-table .sample-data {
  font-family: monospace;
  color: var(--text-secondary);
}

.mapping-select.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 2px rgba(237, 66, 69, 0.1);
}

/* ステップ3: インポート確認 */
.import-preview {
  margin-bottom: 30px;
}

.preview-header {
  margin-bottom: 20px;
}

.preview-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.preview-table-container {
  overflow-x: auto;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
}

.preview-table th,
.preview-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.preview-table th {
  background-color: var(--bg-color);
  font-weight: 600;
  color: var(--text-secondary);
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.more-rows td {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  padding: 16px;
  background-color: var(--bg-color);
}

.import-options {
  background-color: var(--bg-color);
  padding: 16px;
  border-radius: var(--radius);
}

/* ステップ4: インポート処理中 */
.import-progress {
  margin-bottom: 30px;
}

#import-progress-fill {
  background: var(--info-gradient, var(--primary-gradient));
}

.progress-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.detail-item {
  padding: 16px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.detail-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.detail-value {
  font-size: 24px;
  font-weight: 700;
}

.detail-value.success {
  color: var(--success-color);
}

.detail-value.error {
  color: var(--danger-color);
}

.detail-value.warning {
  color: var(--warning-color);
}

/* ステップ5: インポート完了 */
.import-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 20px;
  color: white;
}

.result-icon.success {
  background-color: var(--success-color);
}

.result-icon.error {
  background-color: var(--danger-color);
}

.result-icon.warning {
  background-color: var(--warning-color);
}

.result-content {
  flex: 1;
}

.result-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}


/* =========================================================
 * AI/インポート関連ボタン改善
 * ========================================================= */
/* 「前へ戻る」「リストを生成する」「次へ進む」ボタン */
.ai-generation-step .btn,
.import-step .btn {
  font-size: 14px;
  padding: 12px 20px;
  white-space: nowrap;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-generation-step .primary-btn,
.import-step .primary-btn {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(88, 101, 242, 0.2);
}

.ai-generation-step .primary-btn:hover,
.import-step .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(88, 101, 242, 0.3);
}

.ai-generation-step .secondary-btn,
.import-step .secondary-btn {
  background-color: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.ai-generation-step .secondary-btn:hover,
.import-step .secondary-btn:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.ai-generation-step .btn i,
.import-step .btn i {
  font-size: 16px;
  transition: transform 0.3s;
}

/* ナビゲーションボタンのアイコン向き */
.ai-generation-step .btn i.fa-arrow-left,
.import-step .btn i.fa-arrow-left {
  margin-right: 8px;
}

.ai-generation-step .btn i.fa-arrow-right,
.import-step .btn i.fa-arrow-right {
  margin-left: 8px;
}

.ai-generation-step .btn:hover i.fa-arrow-right,
.import-step .btn:hover i.fa-arrow-right {
  transform: translateX(3px);
}

.ai-generation-step .btn:hover i.fa-arrow-left,
.import-step .btn:hover i.fa-arrow-left {
  transform: translateX(-3px);
}

/* ファイル選択ボタン */
#file-select-btn {
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 50px;
}

/* ダークモード */
body.theme-dark {
  /* Discord風ダークテーマ */
  --primary-color: #7289DA;
  --primary-dark: #5F73BC;
  --primary-light: #414980;
  --primary-gradient: linear-gradient(135deg, #7289DA 0%, #5F73BC 100%);
  
  --text-color: #FFFFFF;
  --text-secondary: #B9BBBE;
  --text-light: #8E9297;
  --text-muted: #72767D;
  
  --bg-color: #36393F;
  --bg-light: #40444B;
  --bg-dark: #2F3136;
  
  --sidebar-bg: #2F3136;
  --card-bg: #40444B;
  
  --border-color: #202225;
  --border-light: #4F545C;
  
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 16px rgba(114, 137, 218, 0.2);
}

/* ダークモード時のヘッダーとコントロール改善 */
body.theme-dark .top-header {
  background-color: #202225 !important; /* Discord の暗めのバックグラウンド */
  border-bottom-color: #4F545C !important;
  backdrop-filter: none !important;
}

body.theme-dark .search-container {
  background-color: #202225;
}

body.theme-dark .search-input {
  color: #FFFFFF;
}

body.theme-dark .filter-select,
body.theme-dark .form-select,
body.theme-dark .form-input {
  background-color: #2F3136;
  border-color: #4F545C;
  color: #FFFFFF;
}

body.theme-dark .secondary-btn {
  background-color: #4F545C;
  border-color: #72767D;
  color: #FFFFFF;
}

body.theme-dark .secondary-btn:hover {
  background-color: #5D6269;
  border-color: #7289DA;
}

body.theme-dark .secondary-btn i {
  color: #FFFFFF;
}

body.theme-dark .sidebar-nav ul li.active a {
  background-color: #42464D; /* Discord アクティブ項目 */
  color: var(--primary-color);
}

body.theme-dark .sidebar-nav ul li a:hover {
  background-color: #42464D;
  color: var(--text-color);
}

body.theme-dark .upload-area {
  background-color: var(--bg-dark);
  border-color: var(--border-color);
}

body.theme-dark .upload-area.drag-over {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

body.theme-dark .log-content,
body.theme-dark .mapping-table th,
body.theme-dark .preview-table th {
  color: var(--text-secondary);
}

body.theme-dark .log-item,
body.theme-dark .sample-data {
  color: var(--text-light);
}

body.theme-dark .completion-message {
  background-color: rgba(59, 165, 92, 0.15);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .list-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid,
  .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-actions {
    margin-top: 16px;
  }
  
  .list-profile {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .list-icon {
    margin-bottom: 16px;
    margin-right: 0;
  }
  
  .strength-weakness-container {
    grid-template-columns: 1fr;
  }
  
  .recommendation-point {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .opportunity-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .opportunity-score {
    margin-right: 0;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 15px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar.collapsed + .main-content {
    margin-left: 0;
  }
  
  .top-header {
    padding: 0 15px;
  }
  
  .search-container {
    width: 200px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-actions {
    margin-top: 15px;
    width: 100%;
  }
  
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-toggle-btn {
    display: flex;
    margin-right: 15px;
  }
  
  .filters {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group {
    margin-bottom: 10px;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .view-toggle {
    margin-top: 10px;
  }
  
  .detail-tabs {
    flex-wrap: wrap;
  }
  
  .filter-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group {
    margin-bottom: 10px;
  }
  
  .detail-search {
    width: 100%;
  }
  
  .table-footer {
    flex-direction: column;
    gap: 20px;
  }
  
  .bulk-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .edit-form {
    grid-template-columns: 1fr;
  }
  
  .summary-cards,
  .import-results {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    flex-wrap: wrap;
  }
  
  .step-title,
  .import-step h2 {
    font-size: 18px;
    padding: 15px 20px;
  }
  
  .step-content {
    padding: 15px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .completion-message {
    flex-direction: column;
    text-align: center;
  }
  
  .completion-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .progress-details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .user-info {
    display: none;
  }
  
  .page-content {
    padding: 15px;
  }
  
  .company-table-container {
    overflow-x: auto;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .selected-count {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .bulk-action-btn {
    margin-left: 0;
    margin-right: 10px;
    margin-top: 10px;
  }
  
  .progress-details {
    grid-template-columns: 1fr;
  }
  
  .upload-area {
    padding: 20px;
  }
  
  .file-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .file-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* 企業詳細モーダルの新しいスタイル */
.company-modal {
  width: 900px;
  max-width: 95%;
  max-height: 90vh;
}

.company-name-section {
  margin-bottom: 10px;
}

.company-name-kana {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 2px 0;
}

.company-name-short {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0;
}

.company-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin: 12px 0 16px 0;
  overflow-x: auto;
  flex-wrap: wrap;
  padding-bottom: 1px;
  background-color: transparent;
  gap: 4px;
}

.company-tab-btn {
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
}

.company-tab-btn:not(.active):hover{
  background-color: rgba(88,101,242,.05); /* ← hover だけ薄く色を付けたい場合 */
}

.company-tab-btn:hover {
  color: var(--primary-color);
  background-color: rgba(88, 101, 242, 0.05);
}

.company-tab-btn.active{
  background-color: transparent;          /* ← 背景を消す */
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
  color: var(--primary-color);
}

body.theme-dark .company-tab-btn {
  color: var(--text-light);
}

body.theme-dark .company-tab-btn.active {
  background-color: rgba(114, 137, 218, 0.2);
}

.company-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.company-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.company-tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .company-tab-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.info-section {
  margin-bottom: 16px;
}

.info-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section h4 i {
  color: var(--primary-color);
  width: 18px;
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-item {
  background: var(--bg-color);
  padding: 12px;
  border-radius: var(--radius);
}

.info-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.info-value {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.6;
}

.info-value div {
  margin-bottom: 4px;
}

.info-value div:last-child {
  margin-bottom: 0;
}

.history-entry {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light);
}

.history-entry:last-child {
  border-bottom: none;
}

.link {
  color: var(--primary-color);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .company-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .company-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* レポート表示用のスタイル追加 */
.report-table-container {
  margin-top: 8px;
  overflow-x: auto;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.report-table td {
  padding: 8px 12px;
  vertical-align: top;
}

.report-table td:first-child {
  width: 180px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-color);
  border-right: 1px solid var(--border-light);
}

.report-table td:last-child {
  color: var(--text-color);
  white-space: pre-line;
}

/* タブスタイルの調整 */
.company-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin: 12px 0 16px 0;
  overflow-x: auto;
  flex-wrap: wrap;
  padding-bottom: 1px;
  background-color: transparent;
  gap: 4px;
}

.company-tab-btn {
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
}

/* ダークモード対応 */
body.theme-dark .report-table td:first-child {
  background-color: var(--bg-dark);
}

body.theme-dark .report-table-container {
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

body.theme-dark .report-table td {
  border-color: var(--border-color);
}

/* モーダルの最大高さを調整 */
.company-modal {
  max-height: 90vh;
  width: 90%;
  max-width: 1000px;
}

.modal-body {
  max-height: calc(90vh - 120px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .report-table td:first-child {
    width: 120px;
    font-size: 12px;
  }
  
  .report-table td {
    padding: 10px;
    font-size: 13px;
  }
  
  .company-tab-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* レポート表示用のスタイル追加 */
.report-table-container {
  margin-top: 8px;
  overflow-x: auto;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.report-table td {
  padding: 8px 12px;
  vertical-align: top;
}

.report-table td:first-child {
  width: 180px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-color);
  border-right: 1px solid var(--border-light);
}

.report-table td:last-child {
  color: var(--text-color);
  white-space: pre-line;
}

/* タブスタイルの調整 */
.company-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin: 12px 0 16px 0;
  overflow-x: auto;
  flex-wrap: wrap;
  padding-bottom: 1px;
  background-color: transparent;
  gap: 4px;
}

.company-tab-btn {
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
}

/* ダークモード対応 */
body.theme-dark .report-table td:first-child {
  background-color: var(--bg-dark);
}

body.theme-dark .report-table-container {
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

body.theme-dark .report-table td {
  border-color: var(--border-color);
}

/* モーダルの最大高さを調整 */
.company-modal {
  max-height: 90vh;
  width: 90%;
  max-width: 1000px;
}

.modal-body {
  max-height: calc(90vh - 120px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .report-table td:first-child {
    width: 120px;
    font-size: 12px;
  }
  
  .report-table td {
    padding: 10px;
    font-size: 13px;
  }
  
  .company-tab-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}
/* AIレポート改善スタイル */
/* 求人情報 */
.job-listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.job-item:hover {
  background-color: var(--bg-tertiary);
  transform: translateX(4px);
}

.job-title {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.job-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.job-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-link i {
  font-size: 11px;
}

/* プレスリリース */
.press-releases {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.press-item {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.press-date {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 100px;
}

.press-title {
  flex: 1;
  color: var(--text-primary);
  font-weight: 400;
}

/* 経営課題 */
.challenges-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.challenge-category {
  background-color: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.challenge-category strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 14px;
}

.challenge-list {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.challenge-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.6;
}

.challenge-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* サービスアイテム */
.service-item {
  background-color: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.service-item.mt-3 {
  margin-top: 12px;
}

.service-item h5 {
  margin: 0 0 12px 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
}

.service-item p {
  margin: 8px 0;
  line-height: 1.6;
}

.service-item p strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ケーススタディ */
.case-study {
  background-color: var(--bg-secondary);
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--success-color);
}

.case-study.mt-3 {
  margin-top: 12px;
}

.case-study p {
  margin: 6px 0;
}

/* フォーム項目テーブル */
.form-fields-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 13px;
}

.form-fields-table thead {
  background-color: var(--bg-tertiary);
}

.form-fields-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.form-fields-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.form-fields-table code {
  background-color: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 12px;
  color: var(--primary-color);
}

/* ロングテキスト */
.long-text {
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ダークテーマ対応 */
body.theme-dark .job-item,
body.theme-dark .press-item,
body.theme-dark .challenge-category,
body.theme-dark .service-item,
body.theme-dark .case-study {
  background-color: var(--dark-bg-secondary);
}

body.theme-dark .job-item:hover {
  background-color: var(--dark-bg-tertiary);
}

body.theme-dark .job-link {
  background-color: var(--dark-primary-color);
}

body.theme-dark .job-link:hover {
  background-color: var(--dark-primary-dark);
}

body.theme-dark .form-fields-table thead {
  background-color: var(--dark-bg-tertiary);
}

body.theme-dark .form-fields-table code {
  background-color: var(--dark-bg-tertiary);
  color: var(--dark-primary-color);
}

/* レスポンシブ追加 */
@media (max-width: 768px) {
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .job-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .press-item {
    flex-direction: column;
    gap: 4px;
  }
  
  .press-date {
    min-width: auto;
  }
}

/* 追加のレポート改善スタイル */
/* レポートテーブルの改善 */
.report-table {
  border-spacing: 0;
}

.report-table td.label {
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
  padding-right: 24px;
}

.report-table td.value {
  color: var(--text-primary);
}

/* 各セクション内の余白調整 */
.info-section {
  margin-bottom: 24px;
}

.info-section h4 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
}

/* リンクスタイル */
.report-table a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.report-table a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* タブボタンの改善 */
.company-tabs {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.company-tabs::-webkit-scrollbar {
  height: 4px;
}

.company-tabs::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.company-tabs::-webkit-scrollbar-thumb {
  background-color: rgba(88, 101, 242, 0.3);
  border-radius: 4px;
}

/* 組織・動向タブの特別なスタイリング */
#organization-trends-tab .info-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(88, 101, 242, 0.02) 100%);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  position: relative;
}

#organization-trends-tab .info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

#organization-trends-tab .info-section:first-child h4 {
  color: var(--success-color);
}

#organization-trends-tab .info-section:last-child h4 {
  color: var(--info-color);
}

#organization-trends-tab .report-table-container {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#organization-trends-tab .report-table td:first-child {
  background: linear-gradient(135deg, var(--bg-color) 0%, rgba(88, 101, 242, 0.03) 100%);
  font-weight: 700;
}

/* ビジネス情報内のスタイル */
.service-item {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-light);
}

.service-item h5 {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-item p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

.service-item strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.case-study {
  padding: 8px 12px;
  background: var(--success-light);
  border-radius: 4px;
  margin: 4px 0;
}

.case-study p {
  margin: 2px 0;
  font-size: 13px;
}

.form-fields-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.form-fields-table th, 
.form-fields-table td {
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  text-align: left;
  font-size: 12px;
}

.form-fields-table th {
  background: var(--bg-color);
  font-weight: 600;
}

.form-fields-table code {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
}

.press-releases .press-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
}

.press-date {
  color: var(--text-secondary);
  font-size: 12px;
  min-width: 100px;
}

.press-title {
  flex: 1;
  font-size: 13px;
}

.challenges-section .challenge-category {
  margin-bottom: 12px;
}

.challenge-list {
  margin: 4px 0;
  padding-left: 16px;
}

.challenge-list li {
  margin-bottom: 2px;
  font-size: 13px;
}

.job-listings .job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.job-title {
  font-size: 13px;
  font-weight: 500;
}

.job-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 12px;
}

.job-link:hover {
  text-decoration: underline;
}

.company-tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

/* モーダルヘッダーの改善 */
.company-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.company-basic-info {
  flex: 1;
}

.company-name-section h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.company-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.company-meta span {
  color: var(--text-secondary);
}

.company-separator {
  color: var(--border-color);
}

/* 見込み度バーの改善 */
.company-prospect {
  margin-top: 16px;
}

.prospect-bar.small {
  height: 20px;
  background-color: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.prospect-fill {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  transition: width 0.5s ease;
}

.prospect-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Load More Button Container */
.load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  margin-top: 20px;
}

.load-more-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.load-more-btn.loading i {
  animation: spin 1s linear infinite;
}

.load-more-btn i {
  font-size: 16px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Empty state for Load More */
.load-more-container.hidden {
  display: none;
}

/* Ensure Load More works in both grid and list views */
.list-grid + .load-more-container,
.list-table-wrapper + .load-more-container {
  margin-top: 30px;
}
