:root {
  --ink: #1b241c;
  --paper: #f3efe4;
  --paper-2: #e7e0d0;
  --accent: #b85c38;
  --accent-2: #2f5d50;
  --line: #cfc6b4;
  --rakuten: #bf0000;
  --yahoo: #ff0033;
  --shadow: 0 10px 30px rgba(27, 36, 28, 0.08);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-2); }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  background: #1b241c;
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; gap: 16px; align-items: center; padding: 12px 0; }
.logo { display: flex; gap: 10px; align-items: center; color: var(--paper); text-decoration: none; font-weight: 700; }
.logo-mark {
  width: 32px; height: 32px; border: 1px solid #d7b56d; color: #d7b56d;
  display: grid; place-items: center; font-size: 14px;
}
.header-search { flex: 1; display: flex; }
.header-search input {
  flex: 1; border: 0; padding: 10px 12px; background: #2a332b; color: var(--paper);
}
.header-search button {
  background: var(--accent); color: #fff; border: 0; padding: 0 16px; cursor: pointer; font-weight: 700;
}
.header-nav a { color: #d7b56d; text-decoration: none; font-size: 14px; }
.catalog-nav { background: #243028; border-top: 1px solid #3a4540; }
.catalog-nav-inner { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
.catalog-nav a {
  color: #d7d3c6; text-decoration: none; font-size: 13px; padding: 10px 12px;
  border-bottom: 2px solid transparent;
}
.catalog-nav a.is-current { color: #fff; border-bottom-color: #d7b56d; font-weight: 700; }
.facet-note { font-size: 11px; color: #6d756c; margin: 0 0 6px; line-height: 1.4; }
.facet-more { margin: 0 0 12px; }
.facet-more summary { cursor: pointer; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.facet-form input[type="number"], .facet-form input[type="text"] {
  width: 100%; padding: 4px 6px; border: 1px solid var(--line); background: #fff;
}

.hero { padding: 28px 0 8px; }
.eyebrow { letter-spacing: 0.18em; font-size: 12px; color: var(--accent); margin: 0 0 6px; }
.hero h1, .hub h1, .item-page h1, .about h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.lede { color: #4a5247; margin: 0 0 18px; }
.crumbs { font-size: 13px; margin-bottom: 8px; }

.search-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding-bottom: 48px; }
.facet-apply {
  position: sticky;
  top: var(--header-offset, 6.75rem);
  z-index: 6;
  margin: 0 0 12px;
  padding: 8px 0;
  background: var(--paper);
  box-shadow: 0 8px 12px -8px rgba(27, 36, 28, 0.18);
}
.facet-apply--end {
  position: static;
  margin: 12px 0 0;
  padding-top: 12px;
  box-shadow: none;
  border-top: 1px solid var(--line);
}
.facet-form fieldset { border: 1px solid var(--line); margin: 0 0 12px; padding: 10px; background: #fffdf8; }
.facet-form legend { font-size: 13px; font-weight: 700; }
.facet-form label { display: block; font-size: 13px; margin: 4px 0; }
.btn-apply, .btn-buy {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border: 0; padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.facet-apply .btn-apply { width: 100%; }
.btn-ghost { color: var(--ink); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.item-card { background: #fffdf8; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.item-card-media { background: #dfe4d6; min-height: 160px; display: grid; place-items: center; }
.item-card-media img { width: 100%; height: 180px; object-fit: cover; }
.ph { font-size: 28px; color: #7d8678; }
.item-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.item-card h3 { font-size: 14px; line-height: 1.45; margin: 0; }
.item-card h3 a { color: inherit; text-decoration: none; }
.price { font-size: 22px; font-weight: 800; margin: 0; color: var(--accent); }
.badge { display: inline-block; color: #fff; font-size: 11px; padding: 2px 6px; margin-right: 6px; }
.badge--rakuten { background: var(--rakuten); }
.badge--yahoo { background: #ffd400; color: #222; }
.source { font-size: 12px; color: #667066; margin: 0; }
.specs { display: grid; gap: 4px; margin: 0; }
.specs > div { display: grid; grid-template-columns: 5.5em 1fr; font-size: 12px; }
.specs dt { color: #667066; }
.estimated { color: #8a5a2b; font-size: 11px; }
.card-links { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.outbound { background: #fffdf8; border: 1px dashed var(--line); padding: 12px 14px; margin-bottom: 16px; }
.outbound-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pager { display: flex; gap: 6px; margin: 24px 0; }
.pager a { padding: 6px 10px; background: #fff; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.pager .is-current { background: var(--ink); color: var(--paper); }

.item-hero { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin: 16px 0 28px; }
.spec-sheet, .specs.lg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-sheet div, .specs.lg > div { background: #fffdf8; padding: 10px 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chip-list a { background: var(--paper-2); padding: 6px 10px; text-decoration: none; color: inherit; }
.raw { white-space: pre-wrap; background: #fffdf8; padding: 12px; font-size: 13px; }
.evidence { margin: 16px 0; }
.about { padding: 24px 0 64px; max-width: 720px; }

.site-footer { background: #1b241c; color: #d7d3c6; padding: 32px 0 16px; margin-top: 48px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 24px; }
.footer-title { color: #d7b56d; font-weight: 700; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: #d7d3c6; }
.copyright { text-align: center; opacity: 0.7; }
.muted { color: #6d756c; font-size: 12px; }
.facets-toggle { display: none; }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; width: 100%; }
  .search-layout, .item-hero, .footer-grid, .spec-sheet { grid-template-columns: 1fr; }
  .facets-toggle { display: block; width: 100%; margin-bottom: 8px; padding: 8px; }
  .facet-form { display: none; }
  .facets.is-open .facet-form { display: block; padding-bottom: 72px; }
  .facets.is-open .facet-apply {
    position: sticky;
    top: var(--header-offset, 6.75rem);
  }
  .facets.is-open .facet-apply--end {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    box-shadow: 0 -8px 24px rgba(27, 36, 28, 0.12);
    border-top: 0;
  }
}
