/* ══════════════════════════════════════
   サプライDB 共通スタイル
   ══════════════════════════════════════ */

/* Cocoonレイアウト上書き: サプライDB・作品ページを全幅化 */
.supply-layout,
.work-breadcrumb,
.work-header,
.work-type-tabs,
.work-result-bar,
.work-cards-grid,
.work-more-works {
  /* Cocoonの #main 幅制限の中でも広がるように */
}
body.post-type-archive-supply #content,
body.single-work #content {
  max-width: 100%;
  padding: 0;
}
body.post-type-archive-supply #main,
body.single-work #main {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  float: none;
  overflow: visible;
}
body.post-type-archive-supply #content-in,
body.single-work #content-in {
  overflow: visible;
}
/* Cocoonサイドバーを非表示 */
body.post-type-archive-supply #sidebar,
body.single-work #sidebar {
  display: none;
}
body.post-type-archive-supply .content-in,
body.single-work .content-in {
  display: block;
  max-width: 100%;
}

/* ── アーカイブ: サイドバーレイアウト ── */
.supply-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── サイドバー ── */
.supply-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.supply-sidebar::-webkit-scrollbar { width: 4px; }
.supply-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.supply-sidebar-title {
  font-size: 13px; font-weight: 700; color: #64748b;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.supply-sidebar-search {
  width: 100%; padding: 7px 10px;
  border: 1px solid #e2e8f0; border-radius: 4px;
  font-size: 12px; font-family: inherit; margin-bottom: 10px;
}
.supply-sidebar-search:focus { outline: none; border-color: #1a56db; }

.supply-sidebar-list { list-style: none; margin: 0; padding: 0; }
.supply-sidebar-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 4px; cursor: pointer;
  font-size: 13px; transition: background 0.15s;
  text-decoration: none; color: #1e293b;
  overflow: hidden;
}
.supply-sidebar-item-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.supply-sidebar-item:hover { background: #e8eefb; }
.supply-sidebar-item.active {
  background: #e8eefb; color: #1a56db; font-weight: 700;
}
.supply-sidebar-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: #64748b; font-weight: 500;
  flex-shrink: 0; margin-left: 4px;
}
.supply-sidebar-divider {
  border: none; border-top: 1px solid #e2e8f0; margin: 6px 0;
}

/* スマホ折りたたみトグル（PCでは非表示） */
.supply-sidebar-toggle { display: none; }

/* 作品リンク（PCでは非表示、スマホのみ） */
.filter-group.filter-work-mobile { display: none; }
.filter-work-link {
  display: block; padding: 10px 16px; background: #1a56db; color: #fff;
  border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600;
  text-align: center;
}
.filter-work-link:hover { background: #1e40af; color: #fff; }

/* ── メインエリア ── */
.supply-main { min-width: 0; }
.supply-main-inner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.supply-page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.supply-page-desc { font-size: 14px; color: #64748b; margin-bottom: 16px; }
.supply-page-notice {
  background: #fffbeb; border: 1px solid #fbbf24;
  padding: 8px 12px; border-radius: 6px;
  font-size: 13px; color: #92400e; margin-bottom: 20px;
}

/* 選択中の作品バッジ */
.supply-current-work {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8eefb; color: #1a56db;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.supply-current-work-clear {
  color: #1a56db; font-size: 16px; line-height: 1;
  text-decoration: none; opacity: 0.6;
}
.supply-current-work-clear:hover { opacity: 1; }

/* ── フィルタ ── */
.supply-filter-form { margin-bottom: 16px; }
.supply-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 14px 16px; background: #f7f8fa;
  border-radius: 8px 8px 0 0; border: 1px solid #e2e8f0;
  border-bottom: none;
}
.filter-group {
  display: flex; flex-direction: column; gap: 2px;
}
.filter-group label {
  font-size: 11px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-group select,
.filter-group input[type="text"] {
  padding: 7px 10px; border: 1px solid #e2e8f0;
  border-radius: 4px; font-size: 13px; font-family: inherit;
  background: #fff; height: 36px; box-sizing: border-box;
}
.filter-group select:focus,
.filter-group input[type="text"]:focus { outline: none; border-color: #1a56db; }
.filter-keyword { flex: 2; min-width: 180px; }
.filter-select { flex: 1; min-width: 150px; }
.filter-group select { min-width: 0; width: 100%; }
.filter-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  align-self: flex-end;
}
.filter-btn,
.filter-reset {
  padding: 0 20px; border-radius: 4px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  white-space: nowrap; cursor: pointer;
  height: 36px; line-height: 34px; box-sizing: border-box;
  text-decoration: none; display: inline-block;
}
.filter-btn {
  background: #1a56db; color: #fff; border: 1px solid #1a56db;
}
.filter-btn:hover { background: #0f3a8e; border-color: #0f3a8e; }
.filter-reset {
  background: #fff; color: #64748b; border: 1px solid #e2e8f0;
}
.filter-reset:hover { color: #1a56db; border-color: #1a56db; }

/* サイズフィルタ */
.supply-size-filter {
  padding: 10px 16px;
  background: #f7f8fa;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
}
.size-filter-label {
  font-size: 11px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
/* details/summary 折りたたみ対応 */
details.supply-size-filter > summary.size-filter-label {
  cursor: pointer; list-style: none;
  user-select: none; margin-bottom: 0;
}
details.supply-size-filter > summary.size-filter-label::-webkit-details-marker { display: none; }
details.supply-size-filter > summary.size-filter-label::after {
  content: "\25BC"; font-size: 9px; margin-left: 6px; opacity: 0.5;
}
details[open].supply-size-filter > summary.size-filter-label {
  margin-bottom: 8px;
}
details[open].supply-size-filter > summary.size-filter-label::after {
  content: "\25B2";
}
.size-filter-row {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 4px 12px;
  margin-bottom: 6px;
}
.size-filter-row:last-child { margin-bottom: 0; }
.size-group-title {
  font-size: 12px; font-weight: 700; color: #1e293b;
  min-width: 90px;
}
.size-check {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; font-size: 12px; color: #1e293b;
  padding: 3px 8px; border-radius: 4px;
  transition: background 0.15s;
}
.size-check:hover { background: #e8eefb; }
.size-check input[type="checkbox"] {
  accent-color: #1a56db; width: 14px; height: 14px;
}
.size-check span { white-space: nowrap; }

/* ── 件数 ── */
.supply-result-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.supply-count { font-size: 13px; color: #64748b; }
.supply-note { font-size: 11px; color: #64748b; }

/* ── テーブル ── */
.supply-table-wrap {
  overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px;
}
.supply-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.supply-table thead { background: #f1f5f9; }
.supply-table th {
  padding: 8px 10px; text-align: left; font-weight: 700;
  font-size: 11px; color: #64748b; text-transform: uppercase;
  letter-spacing: 0.5px; border-bottom: 2px solid #e2e8f0; white-space: nowrap;
}
.supply-table td {
  padding: 6px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.supply-table tbody tr:hover { background: #fafbfd; }

.sp-col-thumb { width: 88px; }
.sp-thumb-wrap { position: relative; display: inline-block; }
.sp-thumb-wrap .work-card-new-badge { font-size: 9px; padding: 1px 3px; top: 0; left: 0; border-radius: 2px; }
.sp-col-thumb img {
  width: 80px; height: 80px; border-radius: 4px;
  object-fit: cover; border: 1px solid #e2e8f0;
}
.sp-col-thumb .no-thumb {
  display: inline-block; width: 80px; height: 80px;
  line-height: 80px; text-align: center;
  background: #f1f5f9; border-radius: 4px; color: #ccc;
}
.sp-col-name { min-width: 200px; }
.supply-product-name {
  display: block; font-weight: 500; color: #1e293b; line-height: 1.3; font-size: 13px;
}
.supply-work-name {
  display: block; font-size: 11px; color: #64748b; margin-top: 1px;
}
.sp-col-size { width: 40px; }
.size-text { font-size: 11px; color: #64748b; }
.sp-col-type { width: 50px; white-space: nowrap; }

.type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
}
.type-playmat, .type-play_mat { background: #dbeafe; color: #1e40af; }
.type-sleeve { background: #fce7f3; color: #9d174d; }
.type-deckcase, .type-deck_case { background: #d1fae5; color: #065f46; }

.sp-col-link { width: 120px; }
.buy-link {
  display: inline-block; background: #f59e0b; color: #fff;
  padding: 2px 8px; border-radius: 3px; font-size: 11px;
  text-decoration: none; margin: 1px 2px; white-space: nowrap;
}
.buy-link:hover { background: #d97706; }
.link-rakuten { background: #bf0000; }
.link-rakuten:hover { background: #9a0000; }
.link-surugaya { background: #1565c0; }
.link-surugaya:hover { background: #0d47a1; }
.link-amiami { background: #e91e8c; }
.link-yahoo { background: #ff0033; }
.link-yahoo:hover { background: #cc0029; }
.link-official { background: #6366f1; }
.link-official:hover { background: #4f46e5; }
.link-info, .cal-link-info { background: #64748b; }
.link-info:hover, .cal-link-info:hover { background: #475569; }

/* 在庫なし: V2 破線+白抜き（ショップカラー維持） */
.buy-link.oos, .card-link.oos, .cal-link.oos { border: 1px dashed currentColor; }
.buy-link.link-rakuten.oos, .card-link.link-rakuten.oos { background: transparent; color: #bf0000; }
.buy-link.link-amiami.oos, .card-link.link-amiami.oos { background: transparent; color: #e91e8c; }
.buy-link.link-official.oos, .card-link.link-official.oos { background: transparent; color: #6366f1; }
.buy-link.link-surugaya.oos, .card-link.link-surugaya.oos { background: transparent; color: #1565c0; }
.buy-link.link-yahoo.oos, .card-link.link-yahoo.oos { background: transparent; color: #ff0033; }
.buy-link.oos:hover, .card-link.oos:hover { opacity: 0.7; }

/* Amazon別枠: A3 虫メガネカプセル */
.amazon-search {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; color: #92400e; text-decoration: none;
  border: 1px solid #fbbf24; padding: 1px 8px 1px 5px;
  border-radius: 12px; background: #fffbeb;
  white-space: nowrap; margin: 1px 2px;
}
.amazon-search:hover { background: #fef3c7; }
.amazon-search svg { width: 10px; height: 10px; fill: none; stroke: #b45309; stroke-width: 2; }
.card-amazon-search {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; color: #92400e; text-decoration: none;
  border: 1px solid #fbbf24; padding: 1px 6px 1px 4px;
  border-radius: 10px; background: #fffbeb; white-space: nowrap;
}
.card-amazon-search:hover { background: #fef3c7; }
.card-amazon-search svg { width: 9px; height: 9px; fill: none; stroke: #b45309; stroke-width: 2; }

.no-results {
  text-align: center; padding: 40px 0; color: #64748b; font-size: 14px;
}

/* ── ページネーション ── */
.supply-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}
.supply-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ══════════════════════════════════════
   アーカイブ: スマホレスポンシブ
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .supply-layout {
    grid-template-columns: 1fr;
    gap: 0; padding: 12px 12px 32px;
  }
  .supply-layout {
    display: flex; flex-direction: column;
  }
  .supply-sidebar {
    display: none !important;
  }
  .filter-group.filter-work-mobile { display: block; }
  .supply-main {
    order: 1;
  }
  .supply-sidebar-toggle {
    display: flex;
    justify-content: space-between; align-items: center;
    padding: 12px 16px; cursor: pointer; user-select: none;
    background: #fff; border-radius: 8px;
  }
  .supply-sidebar-toggle:hover { background: #e8eefb; }
  .supply-sidebar-toggle-title { font-size: 14px; font-weight: 700; }
  .supply-sidebar-toggle-arrow {
    font-size: 12px; color: #1a56db; font-weight: 500;
    transition: transform 0.2s;
  }
  .supply-sidebar.open .supply-sidebar-toggle-arrow { transform: rotate(180deg); }

  .supply-sidebar-inner { display: none; padding: 0 16px 16px; }
  .supply-sidebar.open .supply-sidebar-inner { display: block; }

  .supply-main-inner { padding: 16px 12px; }
  .filter-keyword, .filter-select { flex: unset; min-width: 100%; }
  .filter-actions { width: 100%; }
  .size-group-title { min-width: 100%; }
  /* スマホ: Cocoonレスポンシブテーブル完全上書き */
  .supply-table-wrap { border: none !important; overflow: visible !important; }
  .supply-table { display: block !important; font-size: 12px !important; }
  .supply-table thead { display: none !important; }
  .supply-table tbody { display: block !important; }
  .supply-table tr {
    display: grid !important;
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 8px;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .supply-table td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    text-align: left !important;
  }
  .supply-table td::before { display: none !important; content: none !important; }
  .supply-table .sp-col-thumb {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 40px !important;
  }
  .supply-table .sp-col-thumb img,
  .supply-table .sp-col-thumb .no-thumb { width: 40px !important; height: 40px !important; }
  .supply-table .sp-col-name {
    grid-row: 1;
    grid-column: 2 / 4;
  }
  .supply-table * {
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
  }
  .supply-product-name { font-size: 12px !important; line-height: 1.4 !important; }
  .supply-work-name { font-size: 10px !important; }
  .supply-table .sp-col-size { display: none !important; }
  .supply-table .sp-col-type { display: none !important; }
  .supply-table .sp-col-link {
    grid-row: 2;
    grid-column: 2 / 4;
    margin-top: 4px;
  }
  .supply-result-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (min-width: 769px) {
  .supply-sidebar-inner { display: block !important; }
}


/* ══════════════════════════════════════
   作品個別ページ（single-work）
   ══════════════════════════════════════ */

/* パンくず */
.work-breadcrumb {
  font-size: 12px; color: #64748b; margin-bottom: 12px;
}
.work-breadcrumb a { color: #64748b; text-decoration: none; }
.work-breadcrumb a:hover { color: #1a56db; }
.work-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* 作品ヘッダー */
.work-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 60%, #3b82f6 100%);
  border-radius: 12px;
  padding: 32px 28px;
  color: #fff;
  position: relative; overflow: hidden;
  margin-bottom: 20px;
}
.work-header::after {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.work-header-title {
  font-size: 26px; font-weight: 700; margin-bottom: 6px;
  position: relative; z-index: 1;
}
.work-header-desc {
  font-size: 14px; opacity: 0.85; line-height: 1.6;
  max-width: 600px; position: relative; z-index: 1;
}
.work-header-stats {
  display: flex; gap: 20px; margin-top: 16px;
  position: relative; z-index: 1;
}
.work-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 8px; padding: 8px 16px;
}
.work-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1;
}
.work-stat-label { font-size: 11px; opacity: 0.8; margin-top: 2px; }

/* 種類タブ */
.work-type-tabs {
  display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
}
.work-type-tab {
  display: inline-block;
  padding: 8px 20px; border: 1px solid #e2e8f0;
  border-radius: 24px; background: #fff;
  font-size: 13px; font-weight: 500; color: #64748b;
  text-decoration: none; transition: all 0.15s;
}
.work-type-tab.active {
  background: #1a56db; color: #fff; border-color: #1a56db;
}
.work-type-tab:hover:not(.active) { border-color: #1a56db; color: #1a56db; }
.tab-count { margin-left: 4px; opacity: 0.7; }

/* 件数バー */
.work-result-bar { margin-bottom: 12px; }
.work-result-count { font-size: 13px; color: #64748b; }

/* カードタイルグリッド */
.work-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 540px) { .work-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .work-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.work-supply-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-supply-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.work-supply-card:hover .work-card-img img { transform: scale(1.05); }

.work-card-img {
  position: relative; aspect-ratio: 3 / 3;
  overflow: hidden; background: #f1f5f9;
}
.work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.3s;
}
.work-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
}
.work-card-type-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.badge-playmat, .badge-play_mat { background: rgba(30,64,175,0.85); color: #fff; }
.badge-sleeve { background: rgba(157,23,77,0.85); color: #fff; }
.badge-deckcase, .badge-deck_case { background: rgba(6,95,70,0.85); color: #fff; }

.work-card-new-badge {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.5px; z-index: 1;
}

.work-card-body { padding: 10px 12px 12px; }
.work-card-name {
  font-size: 12px; font-weight: 500; line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  min-height: 50px;
}
.work-card-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.work-card-links { display: flex; gap: 3px; flex-wrap: wrap; }
.card-link {
  display: inline-block; padding: 2px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 500;
  text-decoration: none; color: #fff;
}
.card-link:hover { opacity: 0.8; }

/* 他の作品セクション */
.work-more-works {
  margin-top: 8px; padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.work-more-works-title {
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
}
.work-more-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 600px) { .work-more-works-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .work-more-works-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.work-mw-card {
  position: relative;
  border-radius: 8px;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  border: 1px solid transparent;
  text-decoration: none;
  display: block;
}
.work-mw-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.08; border-radius: 8px;
  background: currentColor;
}
.work-mw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: currentColor;
}
.work-mw-card-name {
  font-size: 13px; font-weight: 700;
  line-height: 1.3; position: relative; margin-bottom: 2px;
}
.work-mw-card-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  position: relative; opacity: 0.7;
}
.work-mw-card-count span { font-size: 11px; font-weight: 500; opacity: 0.8; }

/* 作品個別ページ: スマホ */
@media (max-width: 600px) {
  .work-header { padding: 20px 16px; }
  .work-header-title { font-size: 20px; }
  .work-header-desc { font-size: 13px; }
  .work-header-stats { gap: 10px; flex-wrap: wrap; }
  .work-stat { padding: 6px 12px; }
  .work-stat-num { font-size: 18px; }
  .work-type-tab { padding: 6px 14px; font-size: 12px; }
  .work-card-body { padding: 8px 10px 10px; }
  .work-card-name { font-size: 11px; min-height: 30px; }
}


/* ══════════════════════════════════════
   サプライ個別ページ（single-supply）
   ══════════════════════════════════════ */
.supply-detail-spec { margin: 1.5em 0; }
.supply-detail-spec table {
  width: 100%; max-width: 500px; border-collapse: collapse;
}
.supply-detail-spec th {
  background: #f1f5f9; padding: 8px 12px; text-align: left;
  width: 140px; border: 1px solid #e2e8f0; font-size: 14px;
}
.supply-detail-spec td {
  padding: 8px 12px; border: 1px solid #e2e8f0; font-size: 14px;
}
.supply-buy-links { margin: 1.5em 0; }
.supply-buy-links a {
  display: inline-block; background: #f59e0b; color: #fff;
  padding: 8px 20px; border-radius: 6px; text-decoration: none;
  margin-right: 8px; margin-bottom: 8px; font-weight: bold;
}
.supply-buy-links a:hover { background: #d97706; }



/* 折りたたみセクション */
.supply-section-header {
  cursor: pointer;
  list-style: none;
}
.supply-section-title {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-weight: bold;
  font-size: 0.95em;
  color: #444;
}
.supply-section-title .supply-sidebar-count {
  margin-left: auto;
}
.supply-section-arrow::before {
  content: '▼ ';
  font-size: 0.8em;
}
.supply-section-header.collapsed .supply-section-arrow::before {
  content: '▶ ';
}
.supply-section-body.hidden {
  display: none;
}
.supply-section-body {
  padding-left: 0;
}
.supply-section-body .supply-sidebar-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  text-decoration: none;
  color: #333;
}
.supply-section-body .supply-sidebar-item:hover {
  background: #f0f4ff;
}

/* セクションタイトルの数字右揃え */
.supply-section-title .supply-sidebar-count {
  min-width: 50px;
  text-align: right;
}
/* すべてリンクを少し下に離す */
.supply-sidebar-list > li:first-child {
  margin-top: 4px;
}
.supply-sidebar-list > li:first-child .supply-sidebar-item {
  margin-bottom: 8px;
}

/* 未分類の数字右揃え */
.supply-sidebar-list > li:last-child .supply-sidebar-item {
  display: flex;
  justify-content: space-between;
}
.supply-sidebar-list > li:last-child .supply-sidebar-count {
  min-width: 50px;
  text-align: right;
}

/* ── サイドバー ジャンルグループ ── */
.supply-sidebar-group {
  border-bottom: 1px solid #f1f5f9;
}
.supply-sidebar-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  user-select: none;
  transition: background 0.15s;
}
.supply-sidebar-group-header:hover {
  background: #f8fafc;
}
.supply-sidebar-group-header::after {
  content: '▾';
  font-size: 12px;
  color: #94a3b8;
  margin-left: 6px;
  transition: transform 0.2s;
}
.supply-sidebar-group.closed .supply-sidebar-group-header::after {
  transform: rotate(-90deg);
}
.supply-sidebar-group-header .supply-sidebar-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-left: auto;
  margin-right: 4px;
}
.supply-sidebar-group-children {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 0;
}
.supply-sidebar-group.closed .supply-sidebar-group-children {
  display: none;
}
.supply-sidebar-group-children .supply-sidebar-item {
  padding-left: 20px;
  font-size: 13px;
}
.supply-sidebar-single {
  border-bottom: 1px solid #f1f5f9;
}
.supply-sidebar-single .supply-sidebar-item {
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
}
