/* 愛知溶業 購買申請システム - カスタムスタイル */

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --navy-800: #0a192f;
  --navy-900: #061120;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: #f1f5f9;
}

/* ========== ヘッダー ========== */
.app-header {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 60%, #1d4ed8 100%);
  box-shadow: 0 2px 20px rgba(30,58,138,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.header-brand {
  display: flex;
  flex-direction: column;
}

.header-brand-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
}

.header-brand-sub {
  font-size: 0.65rem;
  color: #93c5fd;
  letter-spacing: 0.1em;
}

/* ========== 検索バー ========== */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 2px solid rgba(147,197,253,0.3);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }

.search-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.active { display: block; }

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}

.search-item:hover { background: #eff6ff; }

.search-item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.search-item-info { flex: 1; min-width: 0; }

.search-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 0.75rem;
  color: #64748b;
}

/* ========== カートバッジ ========== */
.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 8px 16px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.cart-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.cart-badge {
  background: #ef4444;
  color: white;
  border-radius: 50px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ========== ナビゲーション ========== */
.nav-bar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar { display: none; }

.nav-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover { color: #2563eb; }

.nav-item.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* ========== ページコンテンツ ========== */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ========== 商品カード ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ===== リスト表示 ===== */
.product-list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.product-list-row:hover {
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  background: #f8fbff;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.12);
  border-color: #bfdbfe;
}

.product-img-wrap {
  position: relative;
  padding-top: 75%;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-img { transform: scale(1.05); }

.product-img-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2.5rem;
}

.product-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #94a3b8;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-fav-btn.active { color: #ef4444; }
.product-fav-btn:hover { transform: scale(1.15); }

.product-body {
  padding: 12px;
}

.product-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.product-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.product-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

.add-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-cart-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.add-cart-btn:active { transform: translateY(0); }

/* ========== セクションタイトル ========== */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.section-title .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

/* ========== バナー / ヒーロー ========== */
.hero-banner {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 60%, #2563eb 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -50px; right: 80px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* ========== カートスライドオーバー ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
  backdrop-filter: blur(2px);
}

.cart-overlay.active { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 301;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
}

.cart-panel.active { right: 0; }

.cart-header {
  background: linear-gradient(135deg, #0a192f, #1e3a8a);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.cart-item-meta { font-size: 0.72rem; color: #64748b; margin-bottom: 6px; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #1e3a8a;
  font-weight: 700;
  transition: all 0.1s;
}

.qty-btn:hover { background: #eff6ff; border-color: #bfdbfe; }

.qty-display {
  min-width: 32px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.cart-footer {
  padding: 16px 24px;
  border-top: 2px solid #e2e8f0;
  flex-shrink: 0;
  background: white;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-total-label { font-size: 0.9rem; color: #64748b; }

.cart-total-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e3a8a;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

/* ========== モーダル ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: white;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  background: linear-gradient(135deg, #0a192f, #1e3a8a);
  color: white;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #f8fafc;
  border-radius: 0 0 16px 16px;
}

/* ========== フォーム ========== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.form-label.required::after {
  content: ' *';
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1e293b;
  outline: none;
  transition: all 0.2s;
  background: white;
}

.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

select.form-control { cursor: pointer; }

/* ========== ボタン ========== */
.btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-1px); }

.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
}

.btn-success:hover { background: linear-gradient(135deg, #047857, #065f46); }

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}

.btn-danger:hover { background: linear-gradient(135deg, #b91c1c, #991b1b); }

.btn-outline {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover { border-color: #3b82f6; color: #2563eb; background: #eff6ff; }

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 24px; font-size: 0.95rem; }

/* ========== バッジ ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* ========== テーブル ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.data-table tr:hover td { background: #f8fafc; }

/* ========== ステータス ========== */
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-ordered { background: #dbeafe; color: #1e40af; }
.status-draft { background: #f1f5f9; color: #475569; }

/* ========== 通知 ========== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 4px solid #2563eb;
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: #059669; }
.toast.error { border-left-color: #dc2626; }
.toast.warning { border-left-color: #d97706; }

/* ========== ローディング ========== */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #64748b;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 商品詳細 ========== */
.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-main-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: zoom-in;
}

.product-detail-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-detail-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.product-detail-thumb.active, .product-detail-thumb:hover {
  border-color: #2563eb;
}

.product-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.product-info-table tr { border-bottom: 1px solid #f1f5f9; }

.product-info-table th {
  padding: 10px 12px;
  width: 35%;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
}

.product-info-table td {
  padding: 10px 12px;
  color: #1e293b;
}

/* ========== PDF プリント ========== */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .print-area {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .header-brand-sub { display: none; }
  
  .page-content { padding: 16px 12px; }
  
  .cart-panel { width: 100vw; }
  
  .search-wrapper { max-width: none; flex: 1; }
  
  .hero-banner { padding: 20px; }

  .cart-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 画像拡大モーダル ========== */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.img-zoom-overlay.active { display: flex; }

.img-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ========== フィルターサイドバー ========== */
.filter-sidebar {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 120px);
  overflow: hidden; /* 内部の2列が各自スクロール */
}

/* 商品リスト側も独立スクロール */
.products-scroll-area {
  flex: 1;
  min-width: 0;
  height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* サイドバーのスクロールバーを細く */
.filter-sidebar::-webkit-scrollbar,
.products-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.filter-sidebar::-webkit-scrollbar-track,
.products-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.filter-sidebar::-webkit-scrollbar-thumb,
.products-scroll-area::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}
.filter-sidebar::-webkit-scrollbar-thumb:hover,
.products-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #475569;
  transition: all 0.1s;
}

.filter-option:hover { background: #eff6ff; color: #2563eb; }
.filter-option.active { background: #dbeafe; color: #1e40af; font-weight: 600; }

/* ===== 商品カード: カメラボタン（右下） ===== */
.product-camera-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  z-index: 3;
}
.product-img-wrap:hover .product-camera-btn {
  opacity: 1;
}
.product-camera-btn:hover {
  background: rgba(37,99,235,0.9);
}

/* リスト表示用カメラボタン */
.product-camera-btn-list {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
}
.product-list-row:hover .product-camera-btn-list {
  opacity: 1;
}

/* 区分タグ（横並び） */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}
.filter-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tag:hover { background: #eff6ff; border-color: #93c5fd; color: #2563eb; }
.filter-tag.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }

/* 注文先・メーカー 2列グリッド（各列独立スクロール） */
.filter-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
  margin-top: 10px;
  flex: 1;
  min-height: 0;
}
.filter-2col > div {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.filter-col-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.filter-col-scroll::-webkit-scrollbar { width: 3px; }
.filter-col-scroll::-webkit-scrollbar-track { background: transparent; }
.filter-col-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.filter-col-scroll::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========== 承認ページ ========== */
.order-detail-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 16px;
}

.order-detail-header {
  background: linear-gradient(135deg, #0a192f, #1e3a8a);
  color: white;
  padding: 16px 20px;
}

.order-detail-body { padding: 20px; }

.comment-bubble {
  background: #f0f9ff;
  border-radius: 10px;
  padding: 10px 14px;
  border-left: 3px solid #0ea5e9;
  margin-bottom: 8px;
}

.comment-bubble.mine {
  background: #f0fdf4;
  border-left-color: #22c55e;
}

/* ========== スクロールバー ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== ホバー効果 ========== */
.hoverable { transition: all 0.2s; }
.hoverable:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* ========== ステップインジケーター ========== */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.step {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

.step-circle.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.step-circle.done {
  background: #059669;
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
}

.step-line.done { background: #059669; }
