/* 夜の楽器店: 暗い木の色に、真鍮の金。写真が主役なので枠は控えめ。スマホ2列、PCは最大5列。 */
[hidden] { display: none !important; }
:root {
  --bg: #0f0d0b; --surface: #19161299; --card: #1a1714; --ink: #f2ebe0; --muted: #a39887; --line: #2d2822;
  --gold: #d4a356; --gold-ink: #1a1206; --soft: #2a2218; --red: #e0795a;
  --serif: "Fraunces", "Noto Serif JP", Georgia, serif; --sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); }
:lang(ja) body, body:lang(ja) { font-family: "Noto Sans JP", var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(15,13,11,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--gold); flex: none; }
.logo svg { width: 20px; height: 20px; }
.logo span { font: 700 20px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.logo i { font-style: italic; font-weight: 500; color: var(--gold); margin-left: 2px; }
.search { flex: 1; min-width: 0; position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 38px; border-radius: 19px; border: 1px solid var(--line); background: #1a1714; padding: 0 14px 0 36px; font-size: 16px; }
.search input::placeholder { color: #75695a; }
#cur, .lang { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 0 8px; cursor: pointer; flex: none; }
@media (max-width: 640px) { .logo span { font-size: 17px; } .lang { padding: 0 6px; font-size: 12px; } #cur { padding: 0 4px; font-size: 13px; } }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-block: 0 9px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); text-decoration: none; }
.chip .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip[aria-pressed="true"] .n { color: rgba(26,18,6,.7); }
.chips.sub .chip { height: 28px; font-size: 12.5px; padding: 0 11px; }
.chips.sub .sep { flex: none; width: 1px; background: var(--line); margin: 4px 3px; }
.chip.more { border-style: dashed; }
.chip.more[data-on="true"] { border-style: solid; border-color: var(--gold); color: var(--gold); }

.intro { padding-block: 18px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.intro h1 { margin: 0; font: 600 clamp(20px, 3.4vw, 30px)/1.15 var(--serif); letter-spacing: -.01em; max-width: 30ch; }
.count { margin: 0; color: var(--muted); font-size: 13px; }
.count b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.tools { display: flex; align-items: center; gap: 8px; }
.sort { height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); padding: 0 8px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; padding-block: 12px 40px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; min-width: 0; position: relative; }
.ph { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #1d1915; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.03); }
.ct { display: flex; flex-direction: column; gap: 2px; padding: 8px 2px 0; min-width: 0; }
.ey { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tt { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pr s { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 5px; }
.pr small { color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 5px; }
.sh { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { position: absolute; left: 7px; top: 7px; display: flex; gap: 4px; z-index: 1; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; background: var(--gold); color: var(--gold-ink); text-transform: uppercase; }
.tag.drop { background: var(--red); color: #fff; }
.tag.sold { background: #000c; color: var(--ink); }
.save { position: absolute; right: 6px; top: 6px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15,13,11,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.save svg { width: 18px; height: 18px; }
.save[aria-pressed="true"] { color: var(--gold); }
.save[aria-pressed="true"] svg path { fill: currentColor; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.sentinel { height: 1px; }

/* 詳細: 全面のシート。下に似た個体が続く */
.detail { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(15,13,11,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; }
.dbody { display: grid; gap: 22px; padding-block: 14px 10px; }
@media (min-width: 900px) { .dbody { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; padding-top: 24px; } .dinfo { position: sticky; top: 76px; align-self: start; } }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; border-radius: 12px; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #16130f; scroll-snap-align: start; border-radius: 12px; }
@media (min-width: 900px) { .gal { flex-direction: column; overflow: visible; } }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--gold); }
@media (min-width: 900px) { .dots { display: none; } }
.dinfo h2 { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--serif); margin: 4px 0 10px; letter-spacing: -.01em; }
.dinfo .pr { font-size: 26px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 16px; text-decoration: none; margin: 16px 0 8px; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); height: 44px; font-weight: 500; font-size: 14px; margin-top: 0; cursor: pointer; width: 100%; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.hist li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hist li b { color: var(--ink); font-weight: 600; }
.desc { color: #cfc4b3; font-size: 13.5px; white-space: pre-line; margin-top: 18px; }
.desc small { display: block; color: var(--muted); margin-top: 6px; }
.dsec { font: 600 20px/1.2 var(--serif); margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 6px; font-weight: 600; }

/* 絞り込みシート */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet > div { background: #17140f; width: min(640px, 100%); max-height: 86vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border: 1px solid var(--line); }
.sheet h3 { margin: 0 0 4px; font: 600 20px var(--serif); }
.sheet .row { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet .range { display: flex; gap: 8px; align-items: center; }
.sheet .range input { width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; font-size: 16px; }
.sheet .actions { display: flex; gap: 8px; position: sticky; bottom: -18px; background: #17140f; padding: 14px 0 0; margin-top: 16px; }
.sheet .actions button { flex: 1; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; }
.sheet .actions .go { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.ssr { max-width: 760px; padding-block: 20px; }
.ssr img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #16130f; }
.ssr h1 { font: 600 26px/1.2 var(--serif); }
.prose { max-width: 760px; padding-block: 24px 40px; }
.prose h1 { font: 600 30px/1.2 var(--serif); }
.prose h2 { font: 600 20px var(--serif); margin-top: 28px; }
.prose p { color: #d7cdbd; }
.prose code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.shops { width: 100%; border-collapse: collapse; margin-top: 16px; }
.shops td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.shops td.n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.foot { color: var(--muted); font-size: 12.5px; padding-block: 28px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
body.locked { overflow: hidden; }
@media (max-width: 640px) { .bar { flex-wrap: wrap; row-gap: 8px; } .logo { margin-right: auto; } .search { order: 3; flex-basis: 100%; } }
