:root {
    --bg: #faf7f2;
    --surface: #ffffff;
    --text: #2b2118;
    --muted: #6f6256;
    --accent: #8a4b22;
    --accent-hover: #5e3114;
    --border: #e4dacd;
    --radius: 10px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c1712;
        --surface: #26201a;
        --text: #f1e9df;
        --muted: #b3a595;
        --accent: #e0a26b;
        --accent-hover: #f3c295;
        --border: #3b322a;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1 { margin: 1.2rem 0 .3rem; font-size: 1.8rem; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: inline-block; padding: .9rem 0; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.site-footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.lede { color: var(--muted); margin-top: 0; }
.notice { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.back { margin: 1rem 0 0; }

/* ---- List page: one main photo per shop ---- */
.shop-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.shop-card {
    display: flex; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.shop-card__photo { flex: 0 0 240px; }
.shop-card__photo img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.shop-card__body { padding: 1rem 1rem 1rem 0; }
.shop-card h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.shop-card h2 a { text-decoration: none; }
.shop-card h2 a:hover { text-decoration: underline; }
.meta { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* ---- Detail page ---- */
.detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; margin-top: 1rem; align-items: start; }
.gallery__main { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__thumbs { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.thumb { display: block; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb.is-active, .thumb:hover { border-color: var(--accent); }
.description { margin-top: 0; }
.facts { margin: 0; display: grid; grid-template-columns: 6rem 1fr; gap: .8rem 1rem; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.social { list-style: none; margin: 0; padding: 0; }

@media (max-width: 720px) {
    .shop-card { flex-direction: column; gap: 0; }
    .shop-card__photo { flex-basis: auto; }
    .shop-card__photo img { height: 200px; }
    .shop-card__body { padding: 1rem; }
    .detail { grid-template-columns: 1fr; }
}
