: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; }
.site-footer a { color: inherit; }
.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; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }

.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: 4px 10px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .spec th { width: 96px; }
}
.calc-ship { display: block; margin-top: 2px; font-size: 14px; }
.calc-ship b { font-size: 18px; color: var(--accent-strong); }
/* 試着シミュレーション（/fitting/ をページの上に開く） */
.fitting-box .note { margin: 0 0 10px; }
.fitting-box .btn { width: 100%; text-align: center; }
.fitting-box .fitting-guide-link { margin: 8px 0 0; text-align: center; font-size: 14px; }
.fitting-overlay { position: fixed; inset: 0; z-index: 9999; background: #26221e; }
.fitting-overlay iframe { display: block; width: 100%; height: 100%; border: 0; }

/* 一覧ページの紹介文（CATALOGS の intro。例：/barairo/） */
.cat-intro { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 20px; }
.cat-intro-hero img { display: block; width: 100%; height: auto; }
.cat-intro-body { padding: 16px 20px 4px; }
.cat-intro-body p { margin: 0 0 12px; }
.cat-intro-lead { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--accent-strong); }
.cat-intro-gallery { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 8px; grid-template-columns: repeat(6, 1fr); }
.cat-intro-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.cat-intro-old { margin: 0 20px 16px; font-size: 14px; }
.cat-intro-old summary { cursor: pointer; color: var(--accent-strong); font-weight: 700; }
.cat-intro-old table { border-collapse: collapse; margin-top: 8px; }
.cat-intro-old th, .cat-intro-old td { border: 1px solid var(--line); padding: 4px 12px; text-align: left; }
.cat-intro-old th { background: var(--accent-soft); font-weight: 700; }
@media (max-width: 640px) {
  .cat-intro-body { padding: 12px 14px 0; }
  .cat-intro-lead { font-size: 15px; }
  .cat-intro-gallery { grid-template-columns: repeat(3, 1fr); padding: 0 14px 12px; }
  .cat-intro-old { margin: 0 14px 12px; }
}

/* ブランド紹介（一覧ページの intro。/finlayson/・/lisalarson/ 2026-11-06）
   .bi に --bi-ink（文字）・--bi-accent（差し色）・--bi-soft（背景）を設定して色を変える */
.bi { --bi-ink: #1f2a33; --bi-accent: #2f5d7c; --bi-soft: #eef2f4; --bi-paper: #fbfbf9;
  margin: 0 0 28px; color: var(--bi-ink); background: var(--bi-paper); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); }
.bi-lisa { --bi-ink: #3a2a22; --bi-accent: #b0643f; --bi-soft: #f5ebe1; --bi-paper: #fdf9f4; }
.bi a { color: inherit; }
.bi-en { font-family: "Didot", "Bodoni 72", "Georgia", "Times New Roman", serif; letter-spacing: .08em; font-weight: 400; }
.bi-hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 4px; height: clamp(260px, 42vw, 460px); }
.bi-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-hero-card { position: absolute; left: clamp(14px, 4vw, 40px); bottom: clamp(14px, 4vw, 40px); max-width: 440px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); padding: clamp(16px, 3vw, 28px) clamp(18px, 3vw, 32px); border-radius: 6px; }
.bi-hero-card .bi-logo { display: block; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; margin: 0 0 6px; }
.bi-hero-card .bi-est { display: block; font-size: 11px; letter-spacing: .32em; color: var(--bi-accent); margin-bottom: 12px; text-transform: uppercase; }
.bi-hero-card p { margin: 0; font-size: clamp(14px, 1.6vw, 16px); font-weight: 700; line-height: 1.75; }
.bi-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 4vw, 48px); padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 44px) 8px; align-items: start; }
.bi-kicker { display: block; font-size: 12px; letter-spacing: .28em; color: var(--bi-accent); text-transform: uppercase; margin-bottom: 8px; }
.bi-story h2 { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.55; margin: 0 0 14px; font-weight: 700; }
.bi-story p { margin: 0 0 12px; line-height: 1.95; }
.bi-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bi-ink); }
.bi-facts li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bi-facts b { flex: none; min-width: 84px; font-size: 26px; line-height: 1; color: var(--bi-accent); }
.bi-facts span { font-size: 14px; line-height: 1.6; }
.bi-quote { margin: 4px clamp(16px, 4vw, 44px) 0; padding: 18px 22px; background: var(--bi-soft); border-radius: 8px; }
.bi-quote .bi-en { display: block; font-size: clamp(20px, 3vw, 28px); color: var(--bi-accent); margin-bottom: 6px; }
.bi-quote p { margin: 0; line-height: 1.9; }
.bi-sec { padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 44px) 4px; }
.bi-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bi-sec-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.bi-sec-head small { color: var(--muted); font-size: 13px; }
.bi-designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bi-designs a { display: block; text-decoration: none; }
.bi-designs figure { margin: 0; }
.bi-designs .bi-ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--bi-soft); }
.bi-designs .bi-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bi-designs .bi-ph img.bi-sw { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); object-fit: cover; }
.bi-designs a:hover .bi-ph img:not(.bi-sw) { transform: scale(1.04); }
.bi-designs figcaption { padding: 8px 2px 0; line-height: 1.45; }
.bi-designs figcaption .bi-en { display: block; font-size: 17px; }
.bi-designs figcaption span { display: block; font-size: 12px; color: var(--muted); }
.bi-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bi-points li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.bi-points b { display: block; color: var(--bi-accent); margin-bottom: 4px; font-size: 15px; }
.bi-points span { font-size: 13px; line-height: 1.7; display: block; }
.bi-cta { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px clamp(16px, 4vw, 44px) 4px; }
.bi-cta a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--bi-ink); text-decoration: none; font-size: 14px; }
.bi-cta a:first-child { background: var(--bi-ink); color: #fff; }
.bi-note { padding: 14px clamp(16px, 4vw, 44px) 22px; font-size: 13px; color: var(--muted); }
.bi-note details { margin-top: 6px; }
.bi-note summary { cursor: pointer; color: var(--bi-accent); font-weight: 700; }
.bi-note table { border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.bi-note th, .bi-note td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; background: #fff; }
.bi-note th { background: var(--bi-soft); }
@media (max-width: 900px) {
  .bi-designs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .bi-hero { grid-template-columns: 1fr 1fr; height: 300px; }
  .bi-hero img:nth-child(3) { display: none; }
  .bi-hero-card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .bi-story { grid-template-columns: 1fr; }
  .bi-designs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bi-points { grid-template-columns: 1fr; }
  .bi-note table { display: block; overflow-x: auto; }
}

/* 紹介文から一覧へ動いたとき：固定ヘッダーの下に絞り込み欄が来るようにし、枠を一瞬光らせる（2026-11-06） */
.filters { scroll-margin-top: 76px; }
.filters.is-flash { animation: filters-flash 1.6s ease-out; }
@keyframes filters-flash { 0%, 35% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.bi-designs .bi-go { display: block; margin-top: 2px; font-size: 12px; color: var(--bi-accent); }
.cat-intro-gallery a { display: block; }
.cat-intro-more { margin: 0 20px 16px; }
.cat-intro-more a, .bi-cta a.bi-down { font-weight: 700; }
