/* ==========================================================================
   GEARNOTE — Amazon affiliate review site template
   ========================================================================== */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-alt: #efeadf;
  --text: #1e1b17;
  --text-muted: #7c7468;
  --border: #e4ddcd;

  --brand: #8a6d3b;
  --brand-light: #b08d57;
  --brand-dark: #17140f;

  --amazon: #b08d57;
  --amazon-dark: #8a6d3b;

  --good: #4b6b4f;
  --bad: #8b4a44;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 24px rgba(30, 26, 20, 0.06);
  --shadow-lg: 0 18px 40px rgba(30, 26, 20, 0.10);

  --container: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120e;
    --surface: #1c1913;
    --surface-alt: #211d16;
    --text: #f1ede2;
    --text-muted: #a89e8c;
    --border: #2e2a20;
    --brand-dark: #0c0a07;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14120e;
  --surface: #1c1913;
  --surface-alt: #211d16;
  --text: #f1ede2;
  --text-muted: #a89e8c;
  --border: #2e2a20;
  --brand-dark: #0c0a07;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .footer-logo {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  letter-spacing: 0.02em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Ornament divider ---------- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0;
  background: var(--bg);
}
.ornament-divider span {
  width: 64px;
  height: 1px;
  background: var(--border);
}
.ornament-divider i {
  font-style: normal;
  color: var(--brand-light);
  font-size: 0.9rem;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 20, 15, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-hairline {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-light) 20%, var(--brand-light) 80%, transparent);
  opacity: 0.7;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { color: var(--brand-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--brand-light);
  transition: right 0.25s ease;
}
.main-nav a:hover,
.main-nav a.active { color: #fff; }
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--brand-dark);
    max-height: 0;
    overflow: hidden;
    padding-top: 12px;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav.open { max-height: 440px; }
  .main-nav a {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(120%); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(138, 109, 59, 0.35);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-amazon {
  background: var(--amazon);
  color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(176, 141, 87, 0.35);
  width: 100%;
}
.btn-amazon:hover { background: var(--amazon-dark); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(176, 141, 87, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(176, 141, 87, 0.10), transparent 55%),
    linear-gradient(180deg, var(--brand-dark) 0%, #0c0a07 100%);
  color: #fff;
  padding: 56px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.hero .wrap { position: relative; }
.hero .eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(176, 141, 87, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
  color: var(--brand-light);
}
.ticker-bar {
  background: var(--brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  white-space: nowrap;
  animation: tickerScroll 32s linear infinite;
}
.ticker-track .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  flex: none;
}
.ticker-track .ticker-item .tag {
  color: var(--brand-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 22px;
}
.hero h1 span { color: var(--brand-light); }
.hero p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-badge {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge .num {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-light);
}
.hero-badge-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 640px) { .hero-badge-sep { display: none; } }

/* ---------- Section headings ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head .tag {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0;
}
.section-head p.desc {
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 640px;
}

/* ---------- Ranking ---------- */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 120px 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--brand-light);
}
.rank-card.is-best {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
}
.best-ribbon {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--brand-dark);
  color: var(--brand-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-light);
}
.rank-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--border);
  -webkit-text-stroke: 1.5px var(--brand);
}
.rank-card.is-best .rank-num { -webkit-text-stroke: 1.5px var(--brand-light); color: var(--brand-light); }
.rank-num.rank-medal {
  font-size: 2.5rem;
  -webkit-text-stroke: 0;
}
.rank-suffix {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  -webkit-text-stroke: 0;
  margin-top: 4px;
}
.rank-card.is-best .rank-suffix { color: var(--brand-light); }
.thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
}
.thumb.alt2 { background: linear-gradient(135deg, #4a4032, #221d16); }
.thumb.alt3 { background: linear-gradient(135deg, #55492f, #2b2417); }
.thumb.alt4 { background: linear-gradient(135deg, #3f3a33, #1c1914); }
.thumb.alt5 { background: linear-gradient(135deg, #2a2620, #121110); }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
  padding: 8px;
}
.thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.rank-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.rank-body h3 a { color: inherit; }
.rank-body p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.stars { color: var(--amazon); letter-spacing: 2px; margin-bottom: 4px; font-size: 0.9rem; }

@media (max-width: 640px) {
  .rank-card { grid-template-columns: 40px 72px 1fr; row-gap: 12px; }
  .rank-card .rank-body { grid-column: 1 / -1; }
  .rank-card .btn { grid-column: 1 / -1; }
}

/* ---------- Category tabs ---------- */
.cat-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.cat-tab {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.cat-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.cat-tab.active {
  color: var(--brand-dark);
  background: var(--brand-light);
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}

.cat-subgroup {
  margin-bottom: 36px;
}
.cat-subgroup:last-child {
  margin-bottom: 0;
}
.cat-subgroup-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 14px;
}
.cat-subgroup-title .subcount {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cat-product-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cat-product-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 48px 12px 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cat-product-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.cat-product-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
img.cat-product-thumb {
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.cat-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.cat-product-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-product-price {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-light);
}

/* ---------- Brand genres (grouped listing page) ---------- */
.brand-genres {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.brand-genre-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-genre-title::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--brand-light);
}

.see-all-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-light);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.see-all-link:hover { border-color: var(--brand-light); }

/* ---------- Brand row ---------- */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.brand-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.brand-chip .mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--brand-dark);
  color: var(--brand-light);
}
.brand-chip .name { font-size: 0.86rem; font-weight: 600; white-space: nowrap; }

.brand-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.brand-group-title:not(:first-child) { margin-top: 36px; }
.brand-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.brand-tabs .brand-chip {
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
}
.brand-tabs .brand-chip .name { white-space: normal; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 14px;
}
.product-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.product-body h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.5; }
.product-body p.excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.product-meta.cta-only { justify-content: flex-end; }
.product-meta .price {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.product-meta .price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: "Noto Sans JP", sans-serif;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background:
    radial-gradient(circle at 85% 0%, rgba(176,141,87,0.25), transparent 55%),
    linear-gradient(120deg, var(--brand-dark), #241f16);
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-banner-inner { position: relative; }
.cta-banner h2 { margin: 0 0 12px; font-size: 1.7rem; font-weight: 600; }
.cta-banner p { margin: 0 0 28px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-weight: 600; font-size: 1.4rem; letter-spacing: 0.04em; color: #fff; margin-bottom: 14px; }
.disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.45);
}
.disclosure .copyright { margin-top: 12px; }
.visit-counter {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  opacity: 0.55;
}
.visit-counter img { height: 14px; display: block; }

/* ---------- Article page ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 24px 0 0;
}
.breadcrumb a:hover { color: var(--brand); }

.back-link { cursor: pointer; }

.article-hero {
  padding: 40px 0 0;
}
.article-hero .article-cat { font-size: 0.8rem; }
.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 14px 0 18px;
  line-height: 1.45;
}
.article-hero .byline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.hero-thumb {
  height: 320px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 48px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.article-content h2 {
  font-size: 1.4rem;
  margin: 48px 0 18px;
}
.article-content p { color: #333; margin: 0 0 18px; }
@media (prefers-color-scheme: dark) { .article-content p { color: var(--text); } }
.article-content p.lead {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 36px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-table th { width: 35%; color: var(--text-muted); font-weight: 500; background: var(--surface-alt); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 36px;
}
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pc-box {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.pc-box h3 { margin: 0 0 14px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.pc-box.good h3 { color: var(--good); }
.pc-box.bad h3 { color: var(--bad); }
.pc-box ul { margin: 0; padding-left: 20px; font-size: 0.9rem; color: var(--text-muted); }
.pc-box li { margin-bottom: 8px; }

.rating-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 8px 0 36px;
  box-shadow: var(--shadow);
}
.rating-box .score {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--brand);
}
.rating-box .stars { font-size: 1.1rem; }
.rating-box .score-label { font-size: 0.8rem; color: var(--text-muted); }

.cta-box {
  text-align: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
}
.cta-box p.note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.cta-box .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.cta-box .price small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.cta-box a.btn-amazon { max-width: 320px; margin: 16px auto 0; }

.affiliate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 40px;
}

/* ---------- Legal / about pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 100px;
}
.legal h1 { font-size: 1.9rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.15rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.95rem; }
.legal ul { padding-left: 20px; }

/* ---------- Product detail ---------- */
.pd-grid {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) {
  .pd-grid { grid-template-columns: 1fr; }
}
.pd-review-summary {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 32px;
}

/* ---------- Deep-dive product content ---------- */
.pd-deep {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.pd-deep-section { margin-bottom: 44px; }
.pd-deep-section:last-child { margin-bottom: 0; }
.pd-deep-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pd-deep-heading .num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--brand-light);
  font-size: 1.5rem;
}
.pd-verdict {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-light);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.9;
}
.pd-verdict strong { color: var(--brand); }

.reco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .reco-grid { grid-template-columns: 1fr; } }
.reco-box {
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
}
.reco-box.yes { background: color-mix(in srgb, var(--good) 8%, var(--surface)); border-color: color-mix(in srgb, var(--good) 30%, var(--border)); }
.reco-box.no { background: color-mix(in srgb, var(--bad) 6%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 25%, var(--border)); }
.reco-box h3 { margin: 0 0 12px; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.reco-box.yes h3 { color: var(--good); }
.reco-box.no h3 { color: var(--bad); }
.reco-box ul { margin: 0; padding-left: 20px; font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.reco-box li { margin-bottom: 6px; }
.reco-box li:last-child { margin-bottom: 0; }

.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--surface);
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
}
.compare-table thead th:first-child { width: 22%; color: var(--text-muted); font-weight: 500; }
.compare-table thead th a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--text-muted); }
.compare-table thead th a:hover { border-bottom-color: var(--text); }
.compare-table tbody th {
  width: 22%;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface-alt);
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.this-product { background: color-mix(in srgb, var(--brand-light) 10%, transparent); font-weight: 600; }
.compare-row-thumb { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; flex-shrink: 0; padding: 4px; box-sizing: border-box; }
.compare-table td.compare-row-product { vertical-align: middle; }
.compare-row-inner { display: flex; align-items: center; gap: 10px; }
.compare-table td.compare-row-product a.compare-row-name { color: var(--text); text-decoration: none; font-weight: 600; }
.compare-table td.compare-row-product a.compare-row-name:hover { text-decoration: underline; }
.compare-table td.compare-row-note { color: var(--text-muted); font-size: 0.85rem; }
.compare-table.compare-table-full { table-layout: fixed; }
.compare-table thead th.compare-col-product { width: 26%; }
.compare-table thead th.compare-col-rating { width: 15%; }
.compare-table thead th.compare-col-price { width: 12%; }
.compare-table thead th.compare-col-note { width: 47%; }
.compare-table td.compare-row-note { word-break: break-word; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
}
.faq-item h3 .q-mark { color: var(--brand-light); flex-shrink: 0; }
.faq-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; padding-left: 24px; }

.pd-source-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 8px;
  line-height: 1.7;
}

.related-products {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-products-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 18px;
}
.pd-review-summary p {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--brand-light);
  font-size: 0.95rem;
}
.pd-review-summary ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}
.pd-review-summary li { margin-bottom: 4px; }
.pd-review-summary li:last-child { margin-bottom: 0; }
.pd-image {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-image img { width: 100%; height: 100%; object-fit: contain; }
.pd-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pd-info h1 { font-size: 1.6rem; margin: 10px 0 12px; }
.pd-info .stars { font-size: 1rem; }
.pd-info .stars .count { color: var(--text-muted); font-size: 0.85rem; margin-left: 6px; }
.pd-desc { color: var(--text-muted); font-size: 0.98rem; margin: 16px 0 24px; line-height: 1.8; }
.pd-price {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 20px;
  display: block;
}
.pd-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-cta .btn-ghost {
  flex: 1;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pd-cta .btn-ghost:hover { background: var(--brand-light); border-color: var(--brand-light); }
@media (max-width: 420px) {
  .pd-cta .btn-ghost { font-size: 0.85rem; padding: 14px 12px; }
}

/* ---------- Favorites ---------- */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 20, 15, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.fav-btn:hover { transform: scale(1.1); border-color: var(--brand-light); }
.cat-product-item .fav-btn { top: 50%; transform: translateY(-50%); }
.cat-product-item .fav-btn:hover { transform: translateY(-50%) scale(1.1); border-color: var(--brand-light); }
.fav-btn.active {
  color: var(--brand-light);
  background: rgba(23, 20, 15, 0.85);
  border-color: var(--brand-light);
}

.nav-fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}
.nav-fav-count:empty,
.nav-fav-count[data-count="0"] { display: none; }

.fav-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.fav-empty .btn { margin-top: 20px; }

/* ---------- Product search (all-products.html) ---------- */
.product-search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.product-search::before {
  content: "🔍";
  font-size: 1rem;
  opacity: 0.7;
  flex-shrink: 0;
}
.product-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
}
.product-search-input:focus { outline: none; }
.product-search-input::placeholder { color: var(--text-muted); }
.product-search-count {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Price range filter (category pages) ---------- */
.price-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.price-filter-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-right: 4px;
}
.price-filter-input {
  width: 92px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price-filter-input:focus { outline: none; border-color: var(--brand-light); }
.price-filter-input::-webkit-outer-spin-button,
.price-filter-input::-webkit-inner-spin-button { opacity: 0.6; }
.price-filter-sep, .price-filter-yen {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.price-filter-reset {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.price-filter-reset:hover { border-color: var(--brand-light); color: var(--brand); }
.price-filter-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.cat-subgroup.is-filtered-empty { display: none; }
.cat-product-item.is-filtered-out { display: none; }
