:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --border: #d8e0ea;
  --text: #0c1222;
  --muted: #5b6b7c;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --up: #059669;
  --down: #dc2626;
  --shadow: 0 1px 3px rgba(12, 18, 34, 0.08);
  --radius: 10px;
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-display: "Outfit", "IBM Plex Sans JP", sans-serif;
  --ink: #0c1222;
  --ink-soft: #1a2740;
  --paper: #f7f9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand:hover { color: var(--accent); }

.brand-sub { color: var(--muted); font-size: 0.875rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-toggle-label {
  white-space: nowrap;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: currentColor;
  background-clip: content-box;
  padding: 4px 0;
  box-sizing: border-box;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  position: relative;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.header-nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 0.9375rem;
  flex-wrap: wrap;
  align-items: center;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover { color: var(--accent); }

.main-content { padding: 24px 20px 48px; }

.site-footer {
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.site-footer .footer-disclaimer {
  max-width: 52rem;
}

.site-footer a {
  color: var(--accent, #2563eb);
}

.header-nav .nav-user {
  color: var(--muted, #64748b);
  font-size: 0.875rem;
}

.header-nav .nav-cta {
  font-weight: 600;
}

.product-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
  max-width: 42rem;
}

.affiliate-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.affiliate-label {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.affiliate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-batch {
  margin-top: 18px;
}

.store-batch-group {
  margin: 0 0 14px;
}

.store-batch-group-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.store-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 8px;
}

.store-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper, #f7f9fc);
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.store-check:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.store-check input {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.store-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

.store-batch-actions .btn,
.store-batch-actions .btn-secondary {
  min-height: 44px;
}

.store-batch-status {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--up);
}

.store-batch-status.is-error {
  color: var(--down);
}

@media (max-width: 900px) {
  .store-check-grid {
    grid-template-columns: 1fr 1fr;
  }

  .store-batch-actions {
    flex-direction: column;
  }

  .store-batch-actions .btn,
  .store-batch-actions .btn-secondary {
    width: 100%;
  }
}

.affiliate-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.seo-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
  max-width: 44rem;
}

.category-intro {
  margin-top: 8px;
}

.category-week-link {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.list-movers-summary {
  margin: 0 0 14px;
}

.list-movers-line {
  margin: 0 0 6px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.products-cat-links {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.products-cat-links-label {
  font-weight: 600;
  margin-right: 4px;
  color: var(--text);
}

.products-cat-links a {
  color: inherit;
  text-decoration: none;
}

.products-cat-links a:hover {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}

.price-window-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  background: rgba(15, 118, 110, 0.04);
}

.price-window-label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.price-window-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 0.875rem;
}

.movers-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.movers-tabs a {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
}

.movers-tabs a.active,
.movers-tabs a:hover {
  border-color: var(--accent, #0f766e);
  background: rgba(15, 118, 110, 0.06);
}

.mover-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 4px;
}

.mover-row-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}

.hub-mover-list .mover-row-main:hover .hub-mover-title {
  text-decoration: underline;
}

.aff-mini {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  padding-left: 2px;
}

.aff-mini a {
  color: var(--muted);
  text-decoration: none;
}

.aff-mini a:hover {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}

.movers-ranked {
  list-style: none;
  counter-reset: none;
}

.rank-num {
  flex-shrink: 0;
  width: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.875rem;
}

.movers-cat-filter {
  margin: 0 0 16px;
  padding-top: 4px;
}

.movers-cat-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.movers-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movers-cat-chips a {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 0.8125rem;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movers-cat-chips a.active,
.movers-cat-chips a:hover {
  border-color: var(--accent, #0f766e);
  background: rgba(15, 118, 110, 0.06);
}

.mover-row-cat {
  margin: 0;
  font-size: 0.75rem;
}

.mover-row-cat a {
  color: var(--muted);
  text-decoration: none;
}

.mover-row-cat a:hover {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}

.weekly-grid {
  margin-top: 8px;
}

.chart-insight {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent, #0f766e);
  background: rgba(15, 118, 110, 0.05);
  border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
}

.chart-insight-title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.45;
}

.chart-insight p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text, #0f172a);
}

.chart-insight p + p {
  margin-top: 8px;
}

.history-load-more-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.history-load-status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted, #64748b);
}

.history-load-status.is-error {
  color: var(--down, #dc2626);
}

.history-chunk-note {
  margin-bottom: 10px;
}

.chart-range-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.chart-range-nav .chart-range-btn {
  margin: 0;
  line-height: 1.3;
  box-shadow: none;
}

.chart-range-nav .chart-range-btn.btn-secondary {
  background: var(--surface, #fff);
  color: var(--text, #0c1222);
  border: 1px solid var(--border, #d8e0ea);
}

.chart-range-nav .chart-range-btn.btn-secondary:hover {
  background: var(--bg, #eef2f6);
  color: var(--text, #0c1222);
  border-color: color-mix(in srgb, var(--accent, #0f766e) 35%, var(--border, #d8e0ea));
}

.chart-range-nav .chart-range-btn.is-active,
.chart-range-nav .chart-range-btn.is-active:hover {
  background: var(--accent, #0f766e);
  color: #fff;
  border: 1px solid var(--accent, #0f766e);
}

.chart-range-locked-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border, #d8e0ea);
  border-radius: 6px;
  background: var(--surface, #fff);
  font-size: 0.875rem;
  color: var(--muted);
}

.chart-sale-note {
  color: #9a3412 !important;
}

.chart-sale-note a {
  color: #c2410c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.member-gate {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px dashed var(--border, #cbd5e1);
  border-radius: var(--radius, 8px);
  background: rgba(15, 23, 42, 0.03);
}

.member-gate p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.member-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}

.member-gate-actions .btn,
.member-gate-actions .btn-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.list-guest-note {
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat-label { font-size: 0.8125rem; color: var(--muted); margin: 0 0 4px; }
.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card h2 { margin: 0 0 16px; font-size: 1.125rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.filters input[type="text"],
.filters select {
  min-width: 200px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9375rem;
}

.filters .checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg); color: var(--text); }

.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data-table th,
table.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data-table th {
  background: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
}

table.data-table th a {
  color: inherit;
  text-decoration: none;
}

table.data-table th a:hover { color: var(--accent); }

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

.title-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delta-up { color: var(--up); font-weight: 600; }
.delta-down { color: var(--down); font-weight: 600; }
.delta-neutral { color: var(--muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.pagination .btn { padding: 6px 12px; font-size: 0.8125rem; }

.pagination .current { font-weight: 600; color: var(--text); }

.product-header { margin-bottom: 20px; }
.product-header h1 { margin: 0 0 8px; font-size: 1.375rem; }

.product-related h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
}

.related-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 20px;
  font-size: 0.875rem;
}

.related-hub-links a {
  color: var(--accent, #0f766e);
  text-decoration: none;
  font-weight: 500;
}

.related-hub-links a:hover {
  text-decoration: underline;
}

.related-subhead {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.related-subhead-up { color: var(--up); }
.related-subhead-down { color: var(--down); }

.related-product-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.related-product-list li {
  border-bottom: 1px solid var(--border);
}

.related-product-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 2px;
  text-decoration: none;
  color: var(--text);
}

.related-product-list a:hover .related-title {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}

.related-title {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  font-size: 0.875rem;
  white-space: nowrap;
}

.related-price {
  font-weight: 600;
}

.related-week-grid,
.related-section-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.related-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 4px;
}

.related-lazy-status {
  padding: 8px 0 4px;
}

.related-lazy-msg {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

.related-lazy-skeleton {
  display: grid;
  gap: 10px;
}

.related-lazy-skeleton span {
  display: block;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.12) 50%,
    rgba(15, 23, 42, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: related-shimmer 1.2s ease-in-out infinite;
}

@keyframes related-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .related-lazy-skeleton span {
    animation: none;
  }
}

@media (max-width: 700px) {
  .related-week-grid,
  .related-section-pair {
    grid-template-columns: 1fr;
  }
}

.price-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  margin: 16px 0;
}

.price-hero .current-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.chart-wrap { position: relative; height: 380px; margin-top: 8px; }

.breadcrumb { font-size: 0.875rem; margin-bottom: 16px; color: var(--muted); }

.empty-msg { color: var(--muted); margin: 0; }

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.layout-with-sidebar > * {
  min-width: 0;
  max-width: 100%;
}

.main-panel {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
}

.sidebar { position: sticky; top: 16px; }
.sidebar h2 { font-size: 1rem; margin: 0 0 12px; }

.category-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}

.category-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.category-nav a:hover { background: #f1f5f9; }
.category-nav a.active {
  background: #eff6ff;
  color: var(--accent);
  font-weight: 600;
}

.category-nav .badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.category-nav-group {
  margin: 0;
}

.category-nav-details {
  border-radius: 6px;
}

.category-nav-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--text);
  font-weight: 600;
}

.category-nav-summary::-webkit-details-marker {
  display: none;
}

.category-nav-summary::marker {
  content: "";
}

.category-nav-summary:hover {
  background: #f1f5f9;
}

.category-nav-parent-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-nav-parent-label::before {
  content: "▸";
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.7rem;
  width: 0.8em;
}

.category-nav-details[open] > .category-nav-summary .category-nav-parent-label::before {
  content: "▾";
}

.category-nav-children {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--border);
  margin-left: 12px;
}

.category-nav-children a {
  font-size: 0.8125rem;
}

.category-children {
  margin: 0 0 16px;
}

.category-children-label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.category-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.category-child-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
}

.category-child-link:hover {
  border-color: var(--accent);
  text-decoration: none;
  background: #f8fafc;
}

.category-child-name { font-weight: 500; }
.category-child-count { color: var(--muted); font-size: 0.8125rem; flex-shrink: 0; }

.category-card-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.category-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 10px;
  text-decoration: none;
  color: var(--text);
}

.category-card-main:hover {
  text-decoration: none;
  background: #f8fafc;
}

.category-card-details {
  border-top: 1px solid var(--border);
  padding: 0 16px 12px;
  font-size: 0.8125rem;
}

.category-card-details > summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0 4px;
  list-style: none;
}

.category-card-details > summary::-webkit-details-marker {
  display: none;
}

.category-card-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-card-children a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.category-card-children li:last-child a {
  border-bottom: none;
}

.category-card-children a:hover {
  color: var(--accent);
}

.sidebar-more {
  margin: 12px 0 0;
  font-size: 0.8125rem;
}

.category-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #eff6ff;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}

.category-card-name { font-weight: 600; font-size: 0.9375rem; }
.category-card-count { font-size: 0.8125rem; color: var(--muted); }
.category-card-views { font-size: 0.75rem; color: var(--accent, #0f766e); }
.category-card-id { font-size: 0.75rem; color: var(--muted); }

.list-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.list-meta strong { color: var(--text); }

.list-meta-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
}

table.data-table th a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

table.data-table th a:hover {
  color: var(--accent);
  text-decoration: none;
}

.rakuten-intro {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin: 0 0 12px;
}

.alert-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.rakuten-card {
  color: inherit;
  cursor: default;
}

.rakuten-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

/* --- ユーティリティ --- */
.hide-mobile { display: block; }
.hide-desktop { display: none; }

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-block-mobile {
  display: inline-block;
}

.cell-muted {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --- 折りたたみサイドバー --- */
.sidebar-details { margin: 0; }

.sidebar-toggle {
  display: none;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 12px;
  margin: -4px -4px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  user-select: none;
}

.sidebar-toggle::-webkit-details-marker { display: none; }

.sidebar-toggle::after {
  content: " ▼";
  font-size: 0.75rem;
  color: var(--muted);
}

.sidebar-details[open] .sidebar-toggle::after {
  content: " ▲";
}

.sidebar-title {
  font-size: 1rem;
  margin: 0 0 12px;
}

/* --- スマホ用商品カード --- */
.product-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.product-card:active {
  background: #f8fafc;
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.product-card-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* --- 商品詳細メタ --- */
.product-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.product-meta li {
  margin: 0;
}

.meta-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.product-meta span + span::before,
.product-meta li + li::before {
  content: none;
}

.category-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ========== スマホ・タブレット ========== */
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: flex !important; }

  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .brand {
    font-size: 1.0625rem;
    grid-column: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-sub { display: none; }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    padding: 10px 12px;
  }

  .nav-toggle-label {
    display: none;
  }

  .header-nav {
    display: none;
    grid-column: 1 / -1;
    margin-left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
  }

  body.nav-open .header-nav {
    display: flex;
  }

  .header-nav a {
    flex: none;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    font-size: 0.975rem;
  }

  .header-nav a:last-child { border-bottom: none; }

  .header-nav .nav-cta {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    font-weight: 700;
  }

  .main-content {
    padding-top: 16px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  .stat-card { padding: 12px 10px; }

  .stat-value {
    font-size: 0.875rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  .stat-label { font-size: 0.75rem; }

  .card {
    padding: 16px;
    border-radius: 8px;
    min-width: 0;
  }

  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  .sidebar,
  .main-panel,
  .main-panel > .card {
    max-width: 100%;
    min-width: 0;
  }

  .list-movers-line,
  .products-cat-links,
  .seo-intro,
  .list-meta {
    overflow-wrap: anywhere;
  }

  .product-card-title {
    overflow-wrap: anywhere;
  }

  .sidebar {
    position: static;
  }

  .sidebar-toggle {
    display: block;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-details:not([open]) .category-nav,
  .sidebar-details:not([open]) .sidebar-more {
    display: none;
  }

  .category-nav {
    max-height: 50vh;
  }

  .category-nav a {
    padding: 12px 10px;
    min-height: 44px;
    font-size: 0.875rem;
  }

  .category-nav-summary {
    padding: 12px 10px;
    min-height: 44px;
    font-size: 0.875rem;
  }

  .category-child-link {
    min-height: 44px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filters label {
    width: 100%;
  }

  .filters input[type="text"],
  .filters select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px; /* iOS ズーム防止 */
  }

  .filters .checkbox-label {
    min-height: 44px;
    padding-bottom: 0;
  }

  .filters .btn,
  .filters .btn-secondary {
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pagination {
    justify-content: center;
  }

  .pagination .btn {
    flex: 1;
    max-width: 140px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 16px;
    min-height: 44px;
  }

  .chart-wrap {
    height: 260px;
  }

  .product-header h1 {
    font-size: 1.125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .product-meta {
    flex-direction: column;
    gap: 10px;
  }

  .btn-block-mobile {
    display: block;
    width: 100%;
    text-align: center;
    min-height: 44px;
    line-height: 32px;
  }

  .price-hero {
    flex-direction: column;
    gap: 8px;
  }

  .price-hero .current-price {
    font-size: 1.75rem;
  }

  .member-gate-actions {
    flex-direction: column;
  }

  .member-gate-actions .btn,
  .member-gate-actions .btn-secondary {
    width: 100%;
  }

  .movers-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .movers-tabs a {
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
  }

  .movers-cat-chips {
    max-height: 11rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }

  .movers-cat-chips a {
    font-size: 0.8125rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hub-search {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    gap: 8px;
  }

  .hub-search input[type="search"] {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 12px;
    font-size: 16px;
  }

  .hub-search-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
  }

  .hub-section,
  .list-guest-note,
  .member-gate {
    max-width: 100%;
  }

  .hub-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hub-lead,
  .seo-intro,
  .list-guest-note p,
  .member-gate p {
    overflow-wrap: anywhere;
  }

  .mover-row-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hub-mover-meta {
    width: 100%;
    justify-content: space-between;
  }

  .ali-coupon-table td,
  .ali-coupon-table th {
    white-space: normal;
  }

  .table-wrap,
  .hub-cashback-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 商品詳細の履歴テーブル → カード風 */
  .table-wrap .data-table thead {
    display: none;
  }

  .table-wrap .data-table tbody tr {
    display: block;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
  }

  .table-wrap .data-table tbody tr:hover td {
    background: transparent;
  }

  .table-wrap .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border: none;
    text-align: right;
  }

  .table-wrap .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }

  .table-wrap .data-table td:first-child {
    padding-top: 0;
  }

  .table-wrap .data-table td:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1rem;
  }
}

/* —— Hub home (案A) —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-home .site-header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.page-home .site-header .brand,
.page-home .header-nav a,
.page-home .header-nav .nav-user,
.page-home .nav-toggle {
  color: rgba(247, 249, 252, 0.88);
}

.page-home .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(247, 249, 252, 0.28);
}

.page-home .header-nav a:hover,
.page-home .site-header .brand:hover,
.page-home .nav-toggle:hover {
  color: #fff;
}

.page-home .header-nav .nav-cta {
  color: #5eead4;
}

@media (max-width: 900px) {
  .page-home .header-nav {
    background: rgba(12, 18, 34, 0.98);
    border-color: rgba(247, 249, 252, 0.18);
  }

  .page-home .header-nav a {
    border-bottom-color: rgba(247, 249, 252, 0.12);
  }

  .page-home .header-nav .nav-cta {
    background: rgba(94, 234, 212, 0.12);
  }

  /* メニュー展開時: 透明ヘッダー越しに白い本文が見えるのを防ぐ */
  body.page-home.nav-open .site-header {
    background: #0c1222;
    border-bottom: 1px solid rgba(247, 249, 252, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  body.page-home.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.72);
    z-index: 1;
    pointer-events: none;
  }

  body.page-home.nav-open .site-header {
    z-index: 3;
  }
}

.page-home .hub-main {
  padding-top: 8px;
}

.hub-hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  margin-top: -72px;
  padding-top: 88px;
}

.hub-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 148, 136, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(37, 99, 235, 0.18), transparent 50%),
    linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 48%, #122033 100%);
  z-index: 0;
}

.hub-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hub-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  padding-bottom: 48px;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  line-height: 1.15;
  animation: hub-rise 0.7s ease both;
}

.hub-brand-logo {
  width: clamp(2.5rem, 6vw, 3.5rem);
  height: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: 12px;
  flex-shrink: 0;
}

.hub-headline {
  font-family: var(--font);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 12px;
  color: rgba(247, 249, 252, 0.92);
  animation: hub-rise 0.7s ease 0.08s both;
}

.hub-lead {
  margin: 0 0 28px;
  color: rgba(247, 249, 252, 0.68);
  font-size: 0.975rem;
  max-width: 34rem;
  animation: hub-rise 0.7s ease 0.14s both;
}

.hub-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 32rem;
  margin-bottom: 16px;
  animation: hub-rise 0.7s ease 0.2s both;
}

.hub-search input[type="search"] {
  flex: 1 1 12rem;
  flex-grow: 0;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  box-sizing: border-box;
}

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

.hub-search input:focus {
  outline: 2px solid rgba(45, 212, 191, 0.55);
  outline-offset: 1px;
}

.hub-search-btn {
  padding: 14px 20px;
  background: #14b8a6;
  border: none;
  white-space: nowrap;
}

.hub-search-btn:hover {
  background: #2dd4bf;
  color: var(--ink);
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
  animation: hub-rise 0.7s ease 0.26s both;
}

.hub-text-link {
  color: rgba(153, 246, 228, 0.95);
  font-size: 0.9rem;
  text-underline-offset: 3px;
}

.hub-text-link:hover {
  color: #fff;
}

.hub-hero-visual {
  display: flex;
  justify-content: center;
  animation: hub-fade 1s ease 0.15s both;
}

.hub-spark {
  width: min(100%, 360px);
  height: auto;
}

.hub-spark-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.hub-spark-line {
  stroke: #5eead4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: hub-draw 1.4s ease 0.35s forwards;
}

.hub-spark-dot {
  fill: #99f6e4;
  opacity: 0;
  animation: hub-fade 0.4s ease 1.5s forwards;
}

@keyframes hub-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes hub-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hub-draw {
  to { stroke-dashoffset: 0; }
}

.hub-section {
  padding: 40px 0 8px;
}

@media (max-width: 900px) {
  /* /movers の .card 内リストと同じ左右余白 */
  .page-home .hub-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin: 0 0 14px;
  }

  .page-home .hub-section-head {
    margin-bottom: 14px;
  }

  .page-home .hub-section-head h2 {
    font-size: 1.25rem;
  }

  .page-home .list-guest-note {
    margin-bottom: 14px;
  }

  .page-home .hub-mover-list li {
    margin-left: 0;
    margin-right: 0;
  }

  .page-home .mover-row {
    padding-left: 2px;
    padding-right: 2px;
  }
}

.hub-section-head {
  margin-bottom: 20px;
}

.hub-section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.hub-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hub-movers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hub-mover-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hub-mover-up { color: var(--up); }
.hub-mover-down { color: var(--down); }

.hub-new-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.hub-new-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, #0f766e);
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 35%, transparent);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  flex-shrink: 0;
}

.hub-new-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hub-mover-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.hub-mover-list li {
  border-bottom: 1px solid var(--border);
  animation: hub-rise 0.5s ease both;
  animation-delay: calc(0.04s * var(--i, 0));
}

.hub-mover-list > li > a,
.mover-row-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}

.hub-mover-list > li > a {
  padding: 12px 4px;
}

.hub-mover-list > li > a:hover,
.mover-row:hover {
  background: rgba(15, 118, 110, 0.04);
}

.hub-mover-title {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-mover-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.hub-mover-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hub-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.hub-section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.hub-cashback-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hub-cashback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.hub-cashback-table th,
.hub-cashback-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.hub-cashback-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hub-cashback-table tbody th {
  font-weight: 600;
}

.hub-cashback-rate {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent, #0f766e);
}

.hub-cashback-delta {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hub-cashback-empty {
  color: var(--muted);
  font-size: 0.875rem;
}

.hub-cashback-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.hub-cashback-updated {
  display: inline-block;
  margin-left: 0.5em;
}

.hub-section-more {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
}

.hub-section-more a {
  color: var(--accent, #0f766e);
  font-weight: 600;
  text-decoration: none;
}

.hub-section-more a:hover {
  text-decoration: underline;
}

.cashback-store-histories {
  display: grid;
  gap: 1.5rem;
}

.cashback-store-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.cashback-overview-chart {
  height: 360px;
}

.cashback-store-chart {
  height: 260px;
}

.cashback-history-table td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .cashback-overview-chart {
    height: 300px;
  }
  .cashback-store-chart {
    height: 220px;
  }
}

.hub-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hub-cat-list li {
  animation: hub-rise 0.45s ease both;
  animation-delay: calc(0.05s * var(--i, 0));
}

.hub-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-cat-list a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.hub-cat-name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.hub-cat-count {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .hub-hero {
    min-height: auto;
    align-items: flex-start;
    overflow: visible;
    margin-top: -64px;
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .hub-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    min-width: 0;
    width: 100%;
    padding-bottom: 8px;
  }

  .hub-hero-copy {
    min-width: 0;
    max-width: 100%;
  }

  .hub-hero-visual {
    display: none; /* スマホでは装飾チャートを省き、本文の切れを防ぐ */
  }

  .hub-cat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-lead {
    max-width: none;
  }

  .hub-cta-row .hub-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hub-hero {
    padding-top: 68px;
    padding-bottom: 24px;
  }

  .hub-brand {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .hub-movers-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hub-new-list {
    grid-template-columns: 1fr;
  }

  .hub-br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-brand,
  .hub-headline,
  .hub-lead,
  .hub-search,
  .hub-cta-row,
  .hub-hero-visual,
  .hub-spark-line,
  .hub-spark-dot,
  .hub-mover-list li,
  .hub-cat-list li {
    animation: none !important;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

/* —— Auth (login) —— */
.auth-panel {
  max-width: 420px;
  margin: 24px auto 48px;
}

.auth-panel h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.auth-lead {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.auth-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--down);
  background: rgba(220, 38, 38, 0.06);
  color: var(--down);
  font-size: 0.9375rem;
}

.auth-ok {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--up);
  background: rgba(5, 150, 105, 0.06);
  color: var(--up);
  font-size: 0.9375rem;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
}

.auth-form input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
}

.auth-form .btn {
  margin-top: 4px;
  padding: 12px 16px;
  width: 100%;
}

.auth-foot {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— My page —— */
.mypage {
  max-width: 640px;
  margin: 8px auto 48px;
}

.mypage-head h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.mypage-lead {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.mypage-profile {
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.mypage-profile > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.mypage-profile dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.mypage-profile dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

.mypage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mypage-logout {
  margin: 28px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .mypage-profile > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* —— Legal / contact —— */
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 12px;
}

.legal-page .legal-meta {
  margin: 0 0 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.legal-section {
  margin: 0 0 24px;
}

.legal-section h2 {
  font-size: 1.0625rem;
  margin: 0 0 10px;
}

.legal-section p {
  margin: 0 0 8px;
  line-height: 1.75;
  color: var(--text);
  font-size: 0.9375rem;
}

.legal-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.legal-list li {
  margin-bottom: 6px;
}

.legal-note {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-email {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-email a {
  color: var(--accent, #0f766e);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.about-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent, #2563eb) 8%, transparent);
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-handle {
  color: var(--muted);
  font-size: 0.9375rem;
}

.article-body {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.article-body h3 {
  font-size: 1.0625rem;
  margin: 1.35rem 0 0.5rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body a {
  color: var(--accent, #0f766e);
  word-break: break-all;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border, #e2e8f0);
  margin: 1.5rem 0;
}

.article-body code {
  font-size: 0.9em;
  background: var(--bg, #f8fafc);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.article-index-list,
.hub-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-index-list li,
.hub-article-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.article-index-list a,
.hub-article-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  text-decoration: none;
  color: inherit;
}

.article-index-title,
.hub-article-title {
  font-weight: 600;
  color: var(--text);
}

.article-index-meta,
.hub-article-date {
  color: var(--muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.article-index-summary,
.hub-article-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.hub-articles .hub-section-foot {
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 12px;
  font-size: 0.8125rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}

.affiliate-label-sub {
  margin-top: 16px;
}

.affiliate-subhint {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.point-site-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.point-site-cards li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.point-site-cards li:last-child {
  border-bottom: none;
}

.point-site-name {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.point-site-highlight {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent, #0f766e);
}

.point-site-blurb {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.point-referral-code {
  margin: 0 0 12px;
  font-size: 0.9375rem;
}

.point-referral-code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.point-invitee {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(15, 118, 110, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
}

.point-invitee-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.point-invitee .legal-list {
  font-size: 0.875rem;
}

.point-site-cta {
  margin: 0;
}

.point-invitee-mini {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.point-invitee-mini li {
  margin: 0 0 4px;
}

.point-invitee-mini strong {
  color: var(--text);
  font-weight: 600;
}

/* —— AliExpress board —— */
.ali-period-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ali-period {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ali-period.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.ali-period-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  grid-row: 1 / span 2;
  align-self: center;
}

.ali-period-badge.upcoming {
  color: var(--ink-soft);
  border-color: var(--border);
}

.ali-period-badge.past {
  color: var(--muted);
  border-color: var(--border);
}

.ali-period-name {
  font-weight: 600;
}

.ali-period-range {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ali-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.ali-glyph {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.15em;
}

.ali-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.ali-muted {
  color: var(--muted);
  font-size: 0.85em;
}

.ali-family {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  vertical-align: middle;
}

.ali-row-active td {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.ali-coupon-table td,
.ali-coupon-table th {
  white-space: nowrap;
}

.ali-coupon-table td:nth-child(2) {
  white-space: normal;
}

.ali-trend-summary {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.ali-trend-h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.ali-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 8px;
}

.ali-trend-chart {
  height: 280px;
}

.ali-trend-chart-sm {
  height: 220px;
}

.ali-event-kind {
  font-weight: 600;
  font-size: 0.875rem;
}

.ali-event-restock {
  color: #0f766e;
}

.ali-event-deplete {
  color: #be123c;
}

@media (max-width: 720px) {
  .ali-trend-grid {
    grid-template-columns: 1fr;
  }

  .ali-trend-chart,
  .ali-trend-chart-sm {
    height: 200px;
  }
}

/* —— 404 —— */
.page-404 .main-content {
  padding-top: 32px;
  padding-bottom: 64px;
}

.error-404 {
  max-width: 36rem;
  margin: 0 auto;
  padding: 48px 8px 24px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(15, 118, 110, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 55%);
  border-radius: var(--radius);
  animation: hub-rise 0.55s ease both;
}

.error-404-brand {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  animation: hub-rise 0.55s ease 0.05s both;
}

.error-404-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--accent) 22%, var(--border));
  user-select: none;
  animation: hub-rise 0.6s ease 0.08s both;
}

.error-404-title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: hub-rise 0.6s ease 0.12s both;
}

.error-404-lead {
  margin: 0 auto 24px;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
  animation: hub-rise 0.6s ease 0.16s both;
}

.error-404-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 20px;
  max-width: 28rem;
  animation: hub-rise 0.6s ease 0.2s both;
}

.error-404-search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.error-404-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
  animation: hub-rise 0.6s ease 0.24s both;
}

@media (max-width: 640px) {
  .error-404 {
    padding: 28px 0 16px;
  }

  .error-404-search {
    flex-direction: column;
  }

  .error-404-search .btn {
    width: 100%;
  }
}


/* ECセール横断 */
.sales-platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5rem;
}

.sales-platform-nav a {
  padding: 6px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.sales-platform-nav a.active,
.sales-platform-nav a:hover {
  color: var(--accent, #0f766e);
  border-color: color-mix(in srgb, var(--accent, #0f766e) 45%, var(--border, #e2e8f0));
  background: color-mix(in srgb, var(--accent, #0f766e) 8%, transparent);
}

.sales-year-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -0.5rem 0 0.35rem;
}

.sales-year-nav-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-right: 2px;
}

.sales-year-nav a {
  padding: 5px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8125rem;
}

.sales-year-nav a.active,
.sales-year-nav a:hover {
  color: #1e3a5f;
  border-color: color-mix(in srgb, #1e3a5f 40%, var(--border, #e2e8f0));
  background: color-mix(in srgb, #1e3a5f 8%, transparent);
}

.sales-year-hint {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.sales-ali-banner {
  margin: 0.75rem 0 1rem;
}

.sales-ali-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.sales-subhead {
  font-size: 1rem;
  margin: 1.1rem 0 0.55rem;
  color: var(--muted);
  font-weight: 600;
}

.sales-extra-link {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.sales-event-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sales-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
  align-items: baseline;
}

.sales-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.sales-period {
  grid-column: 3;
  grid-row: 1;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.sales-shop-btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent, #0f766e);
  text-decoration: none;
}

.sales-shop-btn:hover {
  text-decoration: underline;
}

.sales-aff-note {
  margin-top: 1.5rem;
}

.sales-badge {
  grid-row: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--up, #b45309);
  background: color-mix(in srgb, var(--up, #b45309) 12%, transparent);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.sales-badge.upcoming {
  color: var(--accent, #0f766e);
  background: color-mix(in srgb, var(--accent, #0f766e) 12%, transparent);
}

.sales-badge.past,
.sales-badge.unknown {
  color: var(--muted);
  background: var(--bg, #f8fafc);
}

.sales-title {
  grid-column: 2;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

a.sales-title:hover {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}

.sales-bonus,
.sales-desc {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.hub-sales-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 800px) {
  .hub-sales-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hub-sales-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--surface, #fff);
  min-height: 88px;
}

.hub-sales-grid a:hover {
  border-color: color-mix(in srgb, var(--accent, #0f766e) 40%, var(--border, #e2e8f0));
}

.hub-sales-label {
  font-weight: 700;
  font-family: var(--font-display);
}

.hub-sales-active {
  color: var(--up, #b45309);
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-sales-next {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.4;
}

.hub-sales-period {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .sales-event {
    grid-template-columns: auto 1fr;
  }

  .sales-period {
    grid-column: 2;
    text-align: left;
  }

  .sales-shop-btn {
    grid-column: 2;
  }
}

/* AliExpress 月カレンダー */
.sale-month-cal {
  margin: 0 0 1.5rem;
}

.sale-month-cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.sale-month-cal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.sale-month-cal-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}

.sale-month-cal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8125rem;
}

.sale-month-cal-table th {
  padding: 8px 4px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border, #d8e0ea);
}

.sale-cal-cell {
  vertical-align: top;
  height: 88px;
  padding: 6px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
}

.sale-cal-cell.is-out {
  background: var(--bg, #eef2f6);
  opacity: 0.55;
}

.sale-cal-cell.is-today {
  outline: 2px solid var(--accent, #0f766e);
  outline-offset: -2px;
}

.sale-cal-cell.has-sale {
  background: color-mix(in srgb, var(--accent, #0f766e) 4%, var(--surface, #fff));
}

.sale-cal-day {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.sale-cal-sales {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sale-cal-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  line-height: 1.35;
  font-weight: 600;
  color: #0c1222;
  background: #e2e8f0;
}

.sale-cal-chip.c0 { background: #99f6e4; }
.sale-cal-chip.c1 { background: #fde68a; }
.sale-cal-chip.c2 { background: #bfdbfe; }
.sale-cal-chip.c3 { background: #fecaca; }
.sale-cal-chip.c4 { background: #ddd6fe; }
.sale-cal-chip.c5 { background: #bbf7d0; }

.sale-month-cal-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.sale-month-cal-legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* 買取店横断 */
.buyback-compare-wrap {
  overflow-x: auto;
}

.buyback-compare-table th.buyback-compare-product {
  min-width: 12rem;
  font-weight: 600;
}

.buyback-compare-jan {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted, #64748b);
  margin-top: 2px;
}

.buyback-compare-best,
.buyback-compare-best-col {
  background: color-mix(in srgb, var(--accent, #0f766e) 10%, transparent);
  font-weight: 700;
}

.buyback-compare-miss {
  color: var(--muted, #64748b);
  font-size: 0.8125rem;
}

.buyback-compare-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #0f766e);
  border-radius: 4px;
}

.buyback-compare-inline {
  margin: 1rem 0 1.25rem;
}

/* --- GPU hub (/gpu) --- */
.page-gpu .hub-main {
  padding-top: 0;
}

.gpu-hero .hub-headline {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.gpu-family-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gpu-family-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 28%, #e2e8f0);
  border-radius: 6px;
  color: var(--text, #0f172a);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--accent, #0f766e) 6%, #fff);
}

.gpu-family-chips a:hover {
  border-color: var(--accent, #0f766e);
  color: var(--accent, #0f766e);
}

.gpu-family-section {
  scroll-margin-top: 5rem;
}

.gpu-top-section {
  scroll-margin-top: 5rem;
}

.gpu-section-nav a {
  font-weight: 600;
}

.gpu-family-subhead {
  margin-top: 1.25rem;
}

.gpu-family-subhead h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.gpu-table td.num,
.gpu-table th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gpu-jan {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted, #64748b);
  word-break: break-all;
}

.gpu-cli-hint {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
}

.hub-source-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hub-meta-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent, #0f766e);
  font-weight: 500;
}

.info-hub-table th {
  font-size: 0.75rem;
  white-space: nowrap;
}

.timing-score {
  display: inline-block;
  min-width: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent, #0f766e);
}

.muted-tiny {
  font-size: 0.7rem;
  color: var(--muted, #64748b);
}

.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
}

.attr-grid dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}

.attr-grid dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.page-tools .hub-headline {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}



/* --- AliExpress 特価ハブ（現代UI） --- */
.ali-deals-main {
  padding-bottom: 48px;
}

.ali-deals-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 8px 0 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ali-deals-crumb a {
  color: var(--muted);
}

.ali-deals-crumb a:hover {
  color: var(--accent);
}

.ali-deals-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(15, 118, 110, 0.14), transparent 55%),
    linear-gradient(145deg, #0c1222 0%, #152238 55%, #0f1a2c 100%);
  color: var(--paper);
  animation: hub-rise 0.55s ease both;
}

.ali-deals-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 249, 252, 0.55);
}

.ali-deals-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.ali-deals-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(247, 249, 252, 0.72);
}

.ali-deals-stats {
  display: flex;
  gap: 14px;
  margin: 0;
  align-self: flex-end;
}

.ali-deals-stats > div {
  min-width: 88px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ali-deals-stats dt {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 249, 252, 0.5);
}

.ali-deals-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ali-deals-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 8px;
  z-index: 5;
  animation: hub-rise 0.55s ease 0.06s both;
}

.ali-deals-field {
  display: block;
  min-width: 0;
}

.ali-deals-field-grow {
  flex: 1 1 14rem;
}

.ali-deals-field input[type="search"],
.ali-deals-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.ali-deals-field input[type="search"]:focus,
.ali-deals-field select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.ali-deals-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ali-deals-submit:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.ali-deals-reset {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0 6px;
}

.ali-deals-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.ali-deal-tile {
  animation: hub-rise 0.5s ease both;
  animation-delay: calc(min(var(--i, 0), 12) * 0.03s);
}

.ali-deal-tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ali-deal-tile-link:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 10px 28px rgba(12, 18, 34, 0.1);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}

.ali-deal-media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #e8eef5, #f7f9fc);
  overflow: hidden;
}

.ali-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ali-deal-tile-link:hover .ali-deal-media img {
  transform: scale(1.04);
}

.ali-deal-media-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ali-deal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
  flex: 1;
}

.ali-deal-chip {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ali-deal-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.ali-deal-price {
  margin: auto 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.ali-deal-yen {
  font-size: 0.75em;
  margin-right: 1px;
  color: var(--muted);
}

.ali-deal-na {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.ali-deal-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.ali-deals-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.ali-deals-page-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.ali-deals-page-btn:hover:not(.is-disabled) {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.ali-deals-page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ali-deals-page-status {
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--muted);
}

.ali-deals-empty {
  padding: 48px 20px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--muted);
}

/* 詳細 */
.ali-deal-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 36px;
  align-items: start;
  animation: hub-rise 0.55s ease both;
}

.ali-deal-detail-media {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8eef5, #f7f9fc);
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

.ali-deal-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ali-deal-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ali-deal-detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.ali-deal-detail-price {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ali-deal-detail-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.ali-deal-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
}

.ali-deal-cta {
  text-decoration: none;
}

.ali-deal-history {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 20px 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ali-deal-history h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.ali-deal-chart-wrap {
  height: 260px;
  margin-bottom: 18px;
}

.ali-deal-hist-table-wrap {
  overflow-x: auto;
  max-height: 280px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ali-deal-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ali-deal-hist-table th,
.ali-deal-hist-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ali-deal-hist-table th {
  position: sticky;
  top: 0;
  background: var(--paper);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.ali-deal-hist-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .ali-deals-head {
    padding: 18px 16px;
  }

  .ali-deals-stats {
    width: 100%;
  }

  .ali-deals-stats > div {
    flex: 1;
  }

  .ali-deals-toolbar {
    position: static;
    padding: 10px;
  }

  .ali-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ali-deal-body {
    padding: 10px;
  }

  .ali-deal-name {
    font-size: 0.8125rem;
  }

  .ali-deal-price {
    font-size: 1.05rem;
  }

  .ali-deal-detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ali-deal-detail-media {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .ali-deal-history {
    padding: 16px;
  }
}


/* Ali deals sidebar facets */
.ali-deals-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ali-deals-sidebar {
  position: sticky;
  top: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ali-deals-facet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.ali-deals-facet-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.ali-deals-facet-tab:hover {
  color: var(--accent);
  text-decoration: none;
}

.ali-deals-facet-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

.ali-deals-facet-list {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 8px;
}

.ali-deals-facet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
}

.ali-deals-facet-item:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
  text-decoration: none;
}

.ali-deals-facet-item.is-active {
  background: rgba(15, 118, 110, 0.14);
  color: var(--accent);
  font-weight: 600;
}

.ali-deals-facet-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ali-deals-facet-count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--muted);
}

.ali-deals-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.ali-deals-content {
  min-width: 0;
}

@media (max-width: 860px) {
  .ali-deals-layout {
    grid-template-columns: 1fr;
  }

  .ali-deals-sidebar {
    position: static;
  }

  .ali-deals-facet-list {
    max-height: 220px;
  }
}

/* ===== 仕入れ判断ブロック（商品詳細 / docs/renewal-plan.md C2） ===== */
.resale-card { display: flex; flex-direction: column; gap: 16px; }
.resale-card .resale-heading { margin: 0; }
.resale-verdict {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--border); border-radius: 8px;
}
.resale-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.9375rem; white-space: nowrap; line-height: 1.4;
}
.resale-badge.badge-buy { background: #d1fae5; color: #065f46; }
.resale-badge.badge-wait { background: #e2e8f0; color: #334155; }
.resale-badge.badge-falling { background: #fee2e2; color: #991b1b; }
.resale-badge.badge-nodata { background: #f1f5f9; color: #475569; }
.resale-reasons { margin: 0; padding-left: 1.1em; flex: 1 1 320px; font-size: 0.9375rem; line-height: 1.8; }
.resale-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.resale-label { margin: 0 0 6px; font-size: 0.8125rem; color: var(--muted); }
.resale-bar { position: relative; height: 10px; background: #e2e8f0; border-radius: 999px; }
.resale-bar-mark {
  position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px;
  background: var(--ink); border-radius: 2px;
}
.resale-bar-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); }
.resale-best { border: 2px solid var(--ink); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.resale-best-store { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.resale-best-nums { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.resale-best-nums strong { font-size: 1.375rem; }
.resale-plus { color: var(--up); font-weight: 700; }
.resale-minus { color: var(--muted); }
.btn.resale-buy { display: block; text-align: center; padding: 12px 16px; font-weight: 700; background: var(--ink); }
.btn.resale-buy:hover { background: var(--ink-soft); }
.resale-note { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.resale-subheading { margin: 4px 0 0; font-size: 1rem; }
.resale-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.resale-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.9375rem; }
.resale-table th {
  text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.resale-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.resale-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.resale-row-best td { background: var(--paper); }
.resale-store { font-weight: 600; }
.resale-sub { display: block; font-size: 0.75rem; color: var(--muted); }
.resale-details { font-size: 0.875rem; color: var(--muted); }
.resale-details summary { cursor: pointer; padding: 6px 0; color: var(--text); font-weight: 500; }
.resale-details p { margin: 6px 0; line-height: 1.7; }
.resale-empty { margin: 0; color: var(--muted); }

/* ===== フッター（3列 / docs/renewal-plan.md C1） ===== */
.footer-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px; margin: 12px 0 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.footer-col-title { font-weight: 700; margin: 0 0 2px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent, #0f766e); text-decoration: underline; }
