:root {
  --bg: #faf8f5; --surface: #fff; --text: #2b2723; --muted: #7a726a; --line: #e6e0d8;
  --accent: #8a6a4a; --accent-strong: #6e5236; --accent-soft: #f3ece3; --pink: #c9577f;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px; line-height: 1.7;
}
a { color: var(--accent-strong); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted, .note { color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }

/* header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; line-height: 1.3; }
.brand-shop { font-size: 12px; color: var(--muted); }
.brand-cat { font-weight: 700; font-size: 16px; }
.header-nav { display: flex; gap: 16px; font-size: 14px; }
.header-nav a { text-decoration: none; color: var(--text); white-space: nowrap; }
.header-nav a[aria-current] { color: var(--accent-strong); font-weight: 700; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: 12px; text-align: center; line-height: 20px; }
.site-footer { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.site-footer p { margin: 4px 0; }

.page-title { font-size: 22px; margin: 24px 0 12px; }
.page-title small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 12px; }

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--accent);
  font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: var(--surface); color: var(--accent-strong); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-text { background: none; border: 0; color: var(--accent-strong); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 6px; }

/* filters */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.f-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.f-row + .f-row { margin-top: 8px; }
.f-search { flex: 1 1 280px; }
.filters input, .filters select { width: 100%; font: inherit; font-size: 14px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.f-selects select { width: auto; flex: 1 1 150px; }
.result-count { margin: 16px 0 8px; font-size: 14px; color: var(--muted); }

/* grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-link { text-decoration: none; color: inherit; flex: 1; }
.card-link:hover .card-name { text-decoration: underline; }
.thumb { aspect-ratio: 1; background: var(--accent-soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 10px 12px; }
.card-body p { margin: 0; }
.card-no { font-weight: 700; font-size: 14px; }
.card-no .var { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }
.card-name { font-size: 13px; line-height: 1.5; margin-top: 2px !important; }
.card-meta { font-size: 12px; color: var(--muted); }
.card-price { font-size: 13px; margin-top: 4px !important; color: var(--accent-strong); }
.card-price small { color: var(--muted); }
.mini-chips, .chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.mini-chips li { font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-strong); }
.card-sample { border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--accent-strong);
  font: inherit; font-size: 13px; padding: 9px; cursor: pointer; }
.card-sample:hover { background: var(--accent-soft); }
.card-sample.is-in { background: var(--accent-soft); font-weight: 700; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; font: inherit; }
.pager button[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* item */
.crumbs { font-size: 13px; margin: 16px 0; color: var(--muted); }
.item-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery img { width: 100%; border-radius: var(--radius); display: block; background: var(--accent-soft); }
.series { margin: 0; font-size: 13px; color: var(--muted); }
.summary h1 { font-size: 22px; line-height: 1.4; margin: 4px 0 12px; }
.item-no { display: block; font-size: 15px; color: var(--accent-strong); letter-spacing: .04em; }
.desc { margin: 0 0 8px; }
.chips li { font-size: 12px; padding: 2px 10px; border-radius: 20px; border: 1px solid var(--accent); color: var(--accent-strong); }
.h-sub { font-size: 14px; margin: 20px 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 72px; text-decoration: none; color: var(--text); font-size: 11px; text-align: center; }
.swatch img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.swatch.is-current img { border-color: var(--accent); }
.sample-box { margin: 20px 0 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sample-box h2 { font-size: 16px; margin: 0 0 4px; }
.sample-box .note { margin: 0 0 8px; }
.chks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.chk { font-size: 14px; white-space: nowrap; cursor: pointer; }
.chk input { accent-color: var(--accent); }
.sample-box .btn, .summary > .btn { width: 100%; }
.added { font-size: 13px; margin: 8px 0 0; }

/* 価格シミュレーション（見積もりフォームへ渡す） */
.calc-box { margin: 0 0 12px; padding: 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.calc-box h2 { font-size: 16px; margin: 0 0 8px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.calc-grid label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.calc-grid label:first-child { grid-column: 1 / -1; }
.calc-grid select, .calc-grid input { font: inherit; font-size: 16px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); width: 100%; box-sizing: border-box; }
.calc-result { margin: 10px 0 4px; font-size: 14px; }
.calc-result b { font-size: 20px; color: var(--accent-strong); }
.calc-result small { display: block; color: var(--muted); }
.calc-box .note { margin: 0; }

.block { margin-top: 40px; }
.block h2 { font-size: 18px; border-left: 4px solid var(--accent); padding-left: 10px; margin: 0 0 12px; }
.spec { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.spec th, .spec td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.spec th { width: 130px; background: var(--accent-soft); font-weight: 600; white-space: nowrap; }

.price-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tabs, .tax-toggle { display: flex; flex-wrap: wrap; gap: 4px; }
.tab, .tax-toggle button { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; color: var(--text); }
.tab[aria-selected="true"], .tax-toggle button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ptable-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ptable table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; text-align: right; white-space: nowrap; }
.ptable thead th { background: var(--accent-soft); padding: 8px 10px; text-align: center; }
.ptable tbody th { background: var(--accent-soft); padding: 6px 10px; position: sticky; left: 0; }
.ptable .corner { position: sticky; left: 0; font-size: 12px; }
.ptable td.pcell { padding: 8px 10px; text-align: right; color: var(--text); }

/* sample cart page */
.cart { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row img { border-radius: 6px; object-fit: cover; flex: none; }
.cart-row a { flex: 1; text-decoration: none; color: var(--text); display: flex; flex-direction: column; font-size: 14px; }
.cart-row a span { font-size: 12px; color: var(--muted); }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.id-list { columns: 3 240px; font-size: 14px; }

@media (max-width: 760px) {
  .item-top { grid-template-columns: 1fr; gap: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-title small { display: block; margin: 4px 0 0; }
  .brand-cat { font-size: 14px; }
  .header-nav { gap: 10px; font-size: 13px; }
  .spec th { width: 96px; }
}
