/* ベース設定 */
: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);
}

.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 {
  margin: 0 10px;
  white-space: nowrap;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
}

.user-role {
  font-size: 12px;
  color: var(--text-light);
}

.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);
}

.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-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: 800px;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* ボタンスタイル */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  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);
}

.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);
}

.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(231, 29, 54, 0.2);
}

.danger-btn:hover {
  box-shadow: 0 6px 16px rgba(231, 29, 54, 0.3);
  transform: translateY(-2px);
}

.btn i {
  margin-right: 8px;
  font-size: 16px;
}

.mini-btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* 企業・プロダクト管理ダッシュボード */
.company-product-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.dashboard-card {
  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);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(67, 97, 238, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  display: flex;
  align-items: center;
}

.card-title i {
  font-size: 20px;
  color: var(--primary-color);
  margin-right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
}

.card-title h2 {
  font-size: 18px;
  font-weight: 600;
}

.card-status {
  display: flex;
  align-items: center;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-indicator.complete {
  background-color: var(--success-color);
  box-shadow: 0 0 0 2px var(--success-light);
}

.status-indicator.incomplete {
  background-color: var(--warning-color);
  box-shadow: 0 0 0 2px var(--warning-light);
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

.card-body {
  padding: 16px;
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.progress-container {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  background-color: var(--bg-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
}

.progress-text {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.product-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.product-list-empty h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-list-empty p {
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 16px;
}

.mini-progress {
  height: 6px;
  width: 80px;
  background-color: var(--bg-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mini-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.mini-progress-text {
  font-size: 11px;
  color: var(--text-light);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th, .product-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.product-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.product-table tr:last-child td {
  border-bottom: none;
}

.product-table tr:hover {
  background-color: var(--bg-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[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;
}

/* 編集セクション共通スタイル */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.back-btn {
  display: flex;
  align-items: center;
}

.back-btn i {
  margin-right: 8px;
}

/* 作成方法選択UI */
.creation-method-selection {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.creation-method-selection h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.method-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.method-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.method-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.method-icon i {
  font-size: 28px;
}

.method-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.method-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 60px;
}

/* 編集フォームスタイル */
.edit-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.company-edit-form, .product-edit-form {
  max-width: auto;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.col-full {
  flex: 1;
}

.col-half {
  flex: 0 0 calc(50% - 10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  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);
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.required {
  color: var(--danger-color);
}

/* 電話番号入力フィールド */
.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-segment {
  flex: 1;
  min-width: 60px;
  text-align: center;
}

.phone-separator {
  color: var(--text-secondary);
  font-weight: 500;
  user-select: none;
}

.form-hint {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 5px;
}

/* タグ入力 */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  min-height: 90px;
  align-content: flex-start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: flex;
  align-items: center;
  background-color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 16px;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 500;
}

.tag-remove {
  cursor: pointer;
  margin-left: 5px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.tag-remove:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.tag-input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  background: none;
  color: var(--text-color);
  font-family: inherit;
  padding: 4px 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

/* AI インタビューUI */
.ai-interview-container {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.interview-header {
  padding: 20px;
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border-color);
}

.interview-title {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.interview-title i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 12px;
}

.interview-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
}

.interview-description {
  color: var(--text-secondary);
  line-height: 1.5;
}

.chat-container {
  height: 500px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-color);
}

.message {
  display: flex;
  max-width: 80%;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.ai-message .message-avatar {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.user-message {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.user-message .message-avatar {
  margin-right: 0;
  margin-left: 12px;
  background-color: var(--success-light);
  color: var(--success-color);
}

.message-content {
  display: flex;
  flex-direction: column;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: white;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

.ai-message .message-bubble {
  border-top-left-radius: 4px;
}

.user-message .message-bubble {
  background-color: var(--primary-light);
  border-top-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: var(--text-light);
  align-self: flex-end;
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.chat-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  background-color: var(--bg-color);
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: var(--transition);
}

.chat-send-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.interview-actions {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-light);
}

/* 詳細表示セクションスタイル */
.details-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.details-header {
  display: flex;
  align-items: center;
  padding: 24px;
  background: var(--primary-gradient);
  color: white;
  position: relative;
}

.company-avatar, .product-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  margin-right: 20px;
}

.company-avatar i, .product-avatar i {
  font-size: 30px;
}

.company-title, .product-title {
  flex: 1;
}

.company-title h1, .product-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.company-meta, .product-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  opacity: 0.9;
}

.separator {
  margin: 0 10px;
}

.details-actions {
  display: flex;
  gap: 10px;
}

.details-actions .btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
}

.details-actions .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.details-body {
  padding: 30px;
}

.details-summary {
  margin-bottom: 30px;
}

.details-summary h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.detail-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.details-section {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.details-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table th, 
.details-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.details-table tr:last-child th,
.details-table tr:last-child td {
  border-bottom: none;
}

.details-table th {
  width: 40%;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.details-table th i {
  margin-right: 8px;
  color: var(--primary-color);
}

.details-table td {
  font-weight: 500;
}

.details-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.details-list li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: disc;
  color: var(--text-secondary);
}

.details-list li:last-child {
  margin-bottom: 0;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
}

/* モーダル */
.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: 400px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: modalFadeIn 0.3s;
}

@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: 18px;
  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: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

/* ダークモード */
body.theme-dark {
  --primary-color: #7289da;
  --primary-dark: #6379c9;
  --primary-light: #3e447e;
  --primary-gradient: linear-gradient(135deg, #7289da 0%, #6379c9 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);

  color: var(--text-color);
  background-color: var(--bg-color);
}

/* ダークモード時のヘッダーとコントロール改善 */
body.theme-dark .top-header {
  background-color: #202225 !important; /* Discord の暗めのバックグラウンド */
  border-bottom-color: #4f545c !important;
  backdrop-filter: none !important;
}

body.theme-dark .date-range-picker {
  background-color: #4f545c; /* より明るい背景色 */
  border-color: #72767d;
  color: #ffffff;
}

body.theme-dark .date-range-picker i,
body.theme-dark .date-range-picker span {
  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 .search-container {
  background-color: #202225;
}

body.theme-dark .search-input {
  color: #ffffff;
}

/* ダークモード時のフォーム要素 */
body.theme-dark .form-input,
body.theme-dark .form-textarea,
body.theme-dark .form-select,
body.theme-dark .tag-input-container {
  background-color: #2f3136;
  border-color: #4f545c;
  color: #ffffff;
}

body.theme-dark .form-input:focus,
body.theme-dark .form-textarea:focus,
body.theme-dark .form-select:focus {
  border-color: var(--primary-color);
}

/* ダークモード時の直接背景色適用 */
body.theme-dark .main-content,
body.theme-dark .page-content {
  background-color: var(--bg-color);
}

/* ダークモード時のAIインタビュー */
body.theme-dark .message-bubble {
  background-color: #4f545c;
}

body.theme-dark .user-message .message-bubble {
  background-color: #3e447e;
}

/* ダークモード時の詳細ページ */
body.theme-dark .details-section {
  background-color: #2f3136;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .dashboard-row {
      grid-template-columns: 1fr;
  }

  .method-cards {
      grid-template-columns: 1fr;
  }

  .details-grid {
      grid-template-columns: 1fr;
  }
}

@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;
  }
  
  .section-header {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .section-header .back-btn {
      margin-top: 10px;
  }
  
  .form-row {
      flex-direction: column;
      gap: 10px;
  }
  
  .col-half {
      flex: 1;
  }

  .details-header {
      flex-direction: column;
      text-align: center;
  }

  .company-avatar, .product-avatar {
      margin-right: 0;
      margin-bottom: 15px;
  }

  .details-actions {
      margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .user-info {
      display: none;
  }
  
  .page-content {
      padding: 15px;
  }
  
  .product-table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }
}

/* AIインタビューメッセージのスタイル改善 */
.message-bubble p {
  white-space: pre-line !important; /* 改行を保持 */
  line-height: 1.6;
}

.ai-message .message-bubble {
  max-width: 100%;
  padding: 12px 16px;
}

.ai-message .message-bubble ul,
.ai-message .message-bubble ol {
  padding-left: 20px;
  margin: 10px 0;
}

.ai-message .message-bubble li {
  margin-bottom: 5px;
}

.ai-message .message-bubble strong {
  font-weight: 600;
}

/* インタビュー確認モーダルのスタイル */
.confirm-data-section {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  background-color: #f8f9fa;
}

.confirm-data-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #4361ee;
}

.edit-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.edit-list-remove-btn {
  color: #e71d36;
  cursor: pointer;
}

.edit-list-add-btn {
  color: #4361ee;
  border: 1px dashed #ccc;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* インタビュー情報サマリーモーダル用スタイル */
.summary-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.summary-modal-content {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.summary-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.summary-modal-body {
  padding: 20px;
}

.summary-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.summary-textarea {
  width: 100%;
  min-height: 300px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  color: var(--text-color);
  resize: vertical;
}

/* ダークモード対応 */
body.theme-dark .summary-modal-content {
  background-color: var(--bg-dark);
}

body.theme-dark .summary-textarea {
  background-color: var(--bg-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .summary-modal-content {
    width: 95%;
  }
  
  .summary-textarea {
    min-height: 200px;
  }
}

/* 
このCSSをcompany-product-styles.cssファイルに追加してください。
既存のスタイルがある場合は上書きします。
*/

/* AIインタビューメッセージのスタイル改善 */
.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: white;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
  max-width: 100%; /* 最大幅を確保 */
  word-wrap: break-word; /* 長い単語も折り返す */
  overflow-wrap: break-word; /* 長い単語も折り返す (モダンブラウザ向け) */
}

.message-bubble p {
  white-space: pre-line !important; /* 改行を保持 */
  line-height: 1.6;
  margin: 0; /* 余計な余白を削除 */
}

.ai-message .message-bubble {
  border-top-left-radius: 4px;
  width: 100%; /* 幅を確保 */
}

.user-message .message-bubble {
  background-color: var(--primary-light);
  border-top-right-radius: 4px;
}

/* メッセージコンテナの調整 */
.message-content {
  display: flex;
  flex-direction: column;
  max-width: 80%; /* メッセージコンテンツの最大幅 */
}

/* チャットコンテナの調整 */
.chat-container {
  height: 500px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-color);
}

/* メッセージ全体のレイアウト調整 */
.message {
  display: flex;
  max-width: 95%; /* メッセージの最大幅を広げる */
}

/* 
インタビューステータスとツールチップ表示用のモダンなCSSスタイル
company-product-styles.cssファイルに追加してください
*/

/* インタビュー進行状況バー */
.interview-status {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  margin-right: 16px;
  position: relative;
}

.status-progress {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.status-message {
  margin-left: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.progress-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  background-color: var(--border-color);
  transition: all 0.3s ease;
}

.progress-circle.active {
  background-color: var(--primary-color);
}

/* 完了ボタンのスタイル */
.finish-interview-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 8px 20px;
  border-radius: 8px;
}

.finish-interview-btn:not(:disabled)::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
  pointer-events: none;
  z-index: 1;
}

.finish-interview-btn:not(:disabled):hover::after {
  transform: scale(1);
}

.finish-interview-btn:disabled {
  background-color: var(--bg-dark);
  color: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
}

/* 完了ボタンが有効になったときのエフェクト */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

.finish-interview-btn.ready {
  animation: pulse-border 2s 3;
}

/* 処理中表示のスタイル */
.finish-interview-btn.processing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.finish-interview-btn.processing .btn-text {
  margin-right: 8px;
}

.finish-interview-btn.processing .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* モダンなステータスバッジ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 20px;
}

.status-badge.incomplete {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.status-badge.progress {
  background-color: var(--warning-light);
  color: var(--warning-color);
}

.status-badge.ready {
  background-color: var(--success-light);
  color: var(--success-color);
}

/* ツールチップ - モダンなデザイン */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
  --tooltip-color: var(--dark-color);
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

[data-tooltip]::before {
  content: '';
  border: 5px solid transparent;
  border-top-color: var(--tooltip-color);
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) translateY(10px);
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  background-color: var(--tooltip-color);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ユーザーのアクション呼び出し */
.action-needed {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0 2px;
}

  /* フォームセクション用のスタイル */
  .form-section {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
  }
  
  .section-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
    color: var(--primary-color);
    margin: 0;
  }
  
  .section-title i {
    margin-right: 10px;
    font-size: 20px;
  }
  
  .form-subsection {
    padding: 20px;
    border-bottom: 1px dashed var(--border-light);
  }
  
  .form-subsection:last-child {
    border-bottom: none;
  }
  
  .form-subsection h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--text-secondary);
  }
  
  /* チェックボックス用のスタイル */
  .checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  
  .checkbox-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    min-width: 150px;
  }
  
  .checkbox-item input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
  }
  
  .checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
  }
  
  /* タグ入力欄の高さ調整 */
  .tag-input-container {
    min-height: 100px;
  }
  
  /* ダークモード対応 */
  body.theme-dark .form-section {
    background-color: var(--bg-light);
  }
  
  body.theme-dark .section-title {
    background-color: var(--bg-dark);
  }
  
  body.theme-dark .form-subsection {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .form-subsection {
      padding: 15px;
    }
    
    .checkbox-container {
      flex-direction: column;
      gap: 5px;
    }
    
    .checkbox-item {
      min-width: auto;
      margin-right: 0;
    }
  }
  
  /* 必須項目のスタイル強化 */
  .required {
    color: var(--danger-color);
    font-weight: bold;
    margin-left: 3px;
  }
  
  /* フォームヒントのスタイル改善 */
  .form-hint {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
  }
  
  /* フォーム全体の余白調整 */
  .product-edit-form {
    padding: 10px;
  }

  .form-hint.ai-usage {
    margin-top: 5px;
    color: #4361ee;
    background-color: rgba(67, 97, 238, 0.05);
    padding: 5px 8px;
    border-radius: 4px;
    border-left: 3px solid #4361ee;
  }

  .form-hint.ai-usage i {
    margin-right: 5px;
  }

  .ai-usage-section {
    background-color: rgba(67, 97, 238, 0.05);
    border-left: 4px solid #4361ee;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
  }

  .ai-usage-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #4361ee;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
  }

  .ai-usage-section h4 i {
    margin-right: 8px;
  }

  .ai-usage-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  /* ダークモード対応 */
  body.theme-dark .form-hint.ai-usage {
    background-color: rgba(114, 137, 218, 0.1);
    border-left: 3px solid #7289da;
  }

  body.theme-dark .ai-usage-section {
    background-color: rgba(114, 137, 218, 0.1);
    border-left: 4px solid #7289da;
  }

  body.theme-dark .ai-usage-section h4 {
    color: #7289da;
  }

/* Coming Soon表示用スタイル */
.coming-soon-btn {
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.coming-soon-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--warning-color);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
  z-index: 10;
}

.method-card {
  position: relative;
}

/* Firebase連携時のロード表示 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.disabled-btn {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #ccc !important;
  color: #666 !important;
}

/* アニメーション効果を追加して削除時の視覚的効果を強化 */
.product-list-empty, .product-list {
  transition: all 0.3s ease-in-out;
}