:root{font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif;color:#30231c;background:#f8f3e9}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:18px;padding:14px max(16px,calc((100vw - 1200px)/2));background:white;border-bottom:1px solid #e7dfd6}header a{color:#8d361b;text-decoration:none}header strong{font-size:1.3rem}header span{margin-left:auto;font-size:.85rem;color:#666}main{max-width:1200px;margin:auto;padding:16px}.controls{background:#fff;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 2px 12px #0000000a}.buttons,.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.buttons{margin-bottom:12px}button{border:1px solid #cdbcae;background:white;border-radius:9px;padding:11px 15px;cursor:pointer;font:inherit}button:first-child{background:#8e3c25;color:white;border-color:#8e3c25}button:focus-visible,a:focus-visible{outline:3px solid #2d70e8;outline-offset:2px}.filters label{font-size:.85rem;display:flex;flex-direction:column;gap:4px}.filters label:first-child{flex:1;min-width:160px}input[type=search],select{border:1px solid #c9c0b8;border-radius:8px;padding:10px;font:inherit;background:#fff}.filters .check{flex-direction:row;align-items:center;padding-bottom:9px}#status{font-size:.82rem;color:#65564b;margin:10px 0 0}.layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:12px;height:min(72vh,720px);min-height:460px}#map{width:100%;height:100%;border-radius:12px;z-index:0}.results{background:#fff;border-radius:12px;overflow:auto;padding:12px}.results h2{font-size:1.05rem;margin:3px 0 12px}.results h2 span{color:#777;font-size:.8rem}.shop{padding:12px 2px;border-top:1px solid #ece5dd}.shop strong{display:block;font-size:.97rem}.shop p{font-size:.82rem;color:#6c5b50;margin:5px 0}.shop a{color:#934125;font-size:.86rem;margin-right:12px}.note{font-size:.76rem;color:#72685e}.leaflet-popup-content{min-width:170px}.leaflet-popup-content strong{display:block;margin-bottom:7px}.leaflet-popup-content a{color:#87351d}.leaflet-marker-icon{transition:opacity .15s}@media(max-width:760px){header{gap:10px}header strong{font-size:1.08rem}.layout{display:block;height:auto}#map{height:56vh;min-height:350px}.results{max-height:380px;margin-top:10px}body.list-mode #map{display:none}body.list-mode .results{max-height:none}.filters{align-items:stretch}.filters .check{padding:8px 0}.buttons button{flex:1;font-size:.88rem;padding:10px 7px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Leaflet basic layout fallback: keeps map tiles and markers positioned if external Leaflet CSS is blocked. */
.leaflet-container{overflow:hidden;position:relative;outline-offset:1px;background:#ddd;touch-action:pan-x pan-y}
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer{position:absolute;left:0;top:0}
.leaflet-pane,.leaflet-tile-container{width:100%;height:100%}
.leaflet-pane{z-index:400;pointer-events:none}
.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}
.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}
.leaflet-tile{visibility:hidden;user-select:none;-webkit-user-drag:none;max-width:none!important;max-height:none!important}
.leaflet-tile-loaded{visibility:inherit}
.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-marker-icon,.leaflet-container .leaflet-marker-shadow{max-width:none!important;max-height:none!important}
.leaflet-marker-icon,.leaflet-marker-shadow{display:block}
.leaflet-zoom-animated{transform-origin:0 0}
.leaflet-tile-container{pointer-events:none}
.leaflet-marker-pane,.leaflet-overlay-pane,.leaflet-popup-pane,.leaflet-tooltip-pane{pointer-events:none}
.leaflet-marker-icon,.leaflet-interactive,.leaflet-popup-content-wrapper,.leaflet-popup-tip{pointer-events:auto}
.leaflet-control{position:relative;z-index:800;pointer-events:auto}
.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}
.leaflet-top{top:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-right{right:0}
.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}
.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}
.leaflet-bar{box-shadow:0 1px 5px #0005;border-radius:4px}.leaflet-bar a{display:block;background:white;border-bottom:1px solid #ccc;width:30px;height:30px;line-height:30px;text-align:center;text-decoration:none;color:#222;font-size:20px}.leaflet-bar a:first-child{border-radius:4px 4px 0 0}.leaflet-bar a:last-child{border-radius:0 0 4px 4px;border-bottom:0}
.leaflet-control-attribution{background:#fffd;font-size:11px;padding:0 5px}.leaflet-control-attribution a{color:#1674a5}
.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{background:#fff;border-radius:10px;box-shadow:0 3px 14px #0005;padding:1px}.leaflet-popup-content{margin:12px 16px;text-align:left}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;background:white;transform:translate(11px,-10px) rotate(45deg);box-shadow:0 3px 14px #0005}.leaflet-popup-close-button{position:absolute;right:5px;top:5px;z-index:1;font-size:20px;text-decoration:none;color:#555}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:rgba(142,60,37,.25);border-radius:50%}.marker-cluster div{background:#8e3c25;color:#fff;border-radius:50%;width:30px;height:30px;margin:5px;text-align:center;line-height:30px}

/* Single-store marker interaction and detail card */
.leaflet-marker-pane{pointer-events:auto}
.leaflet-marker-pane .leaflet-marker-icon{pointer-events:auto!important;cursor:pointer}
.selected-panel[hidden]{display:none}
.selected-panel{background:#fff;border:1px solid #e7dfd6;border-radius:12px;margin-bottom:12px;padding:14px;box-shadow:0 2px 12px #0000000a}
.selected-shop-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.selected-shop-head strong{font-size:1.08rem}
.selected-shop-head button{padding:3px 10px;background:#fff;color:#30231c;border:1px solid #ddd}
.selected-shop-image{display:block;max-width:360px;width:100%;max-height:190px;object-fit:contain;margin:10px 0;border-radius:8px;background:#f8f3e9}
.selected-shop p{font-size:.9rem;color:#6c5b50;margin:8px 0}
.selected-shop-links{display:flex;flex-wrap:wrap;gap:16px}
.selected-shop-links a{color:#934125}

/* v1.3 navigation and linked list */
.site-header{padding:0 16px;background:#fff;border-bottom:1px solid #e7dfd6}
.header-inner{width:100%;max-width:1200px;margin:auto;display:flex;align-items:center;gap:22px;min-height:70px}
.site-brand{display:flex;flex-direction:column;color:#87351d!important;font-weight:700;line-height:1.2;white-space:nowrap}.site-brand small{font-size:.65rem;letter-spacing:.13em;color:#806f61;margin-top:4px}
.site-nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.site-nav a{color:#40312a;text-decoration:none;font-size:.88rem}.site-nav a[aria-current=page]{color:#8e3c25;font-weight:700;border-bottom:2px solid #8e3c25;padding-bottom:3px}
.header-inner #count{margin-left:auto;white-space:nowrap;font-size:.8rem;color:#75675c}
.shop{position:relative;padding-right:92px}.shop.is-selected{background:#fff5ef;border-left:3px solid #8e3c25;padding-left:8px}.shop-focus{position:absolute;right:2px;top:10px;padding:5px 7px!important;background:#fff!important;color:#8e3c25!important;font-size:.73rem;border:1px solid #cdbcae!important}
@media(max-width:760px){.header-inner{gap:8px;min-height:62px;flex-wrap:wrap;padding:8px 0}.site-brand{font-size:.9rem}.site-nav{gap:10px}.site-nav a{font-size:.77rem}.header-inner #count{font-size:.7rem}}

/* MAP v1.4: keep checkbox and caption together despite global style.css */
.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.filters>label.check{display:inline-flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;white-space:nowrap;cursor:pointer}
.filters>label.check input[type=checkbox]{display:inline-block!important;position:static!important;flex:0 0 17px!important;width:17px!important;height:17px!important;margin:0!important;appearance:auto!important;vertical-align:middle}
.filters>label:first-child{flex:1 1 300px;min-width:200px}
.filters>label:nth-child(2){flex:0 0 130px}
@media(max-width:760px){.filters>label:first-child{flex:1 1 100%}.filters>label:nth-child(2){flex:1 1 120px}.filters>label.check{padding:8px 0!important}}
/* Selected store card floats over map; no layout shift */
.layout{position:relative}
.selected-panel:not([hidden]){position:absolute;z-index:900;left:16px;bottom:50px;top:auto;width:min(360px,calc(100% - 32px));max-height:50%;overflow:auto;margin:0;box-shadow:0 8px 30px #0003}
@media(max-width:760px){.selected-panel:not([hidden]){position:fixed;left:12px;right:12px;bottom:12px;width:auto;max-height:38vh;z-index:1100}}

/* MAP v1.5: photo cards; images lazy-load and never stretch the list. */
.shop-card-body{display:flex;align-items:flex-start;gap:12px;min-width:0}
.shop-thumb{width:84px;height:84px;flex:0 0 84px;object-fit:cover;border-radius:8px;background:#f7f1e9}
.shop-thumb-empty{display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;color:#846e5e;padding:6px}
.shop-card-copy{min-width:0;overflow-wrap:anywhere}
.shop-card-copy strong{display:block;line-height:1.4}
.shop-card-copy p{margin:5px 0 8px}
.shop-card-copy a{display:inline-block;margin-right:10px;margin-bottom:4px}
.selected-shop-image{object-fit:cover;max-height:170px}
@media(max-width:600px){.shop-thumb{width:72px;height:72px;flex-basis:72px}.shop-card-body{gap:9px}}

/* v4.6: show the complete selected photo; keep PR visible and paginate images. */
.selected-shop-image{width:100%;height:auto;max-height:230px;object-fit:contain;object-position:center;background:#f8f3e9}
.map-pr-label{display:inline-block;padding:2px 6px;margin-left:5px;border-radius:4px;background:#fff0e5;color:#8d391d;font-size:11px;font-weight:700;vertical-align:middle}
.map-more{display:block;width:100%;margin:12px 0;padding:12px;border:1px solid #d6c0ae;border-radius:8px;background:#fff;color:#87351d;cursor:pointer}

/* MAP page introduction */
.map-intro{padding:18px 22px 8px;max-width:1600px;margin:0 auto;color:#3b261d}
.map-intro h1{font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.3;margin:0 0 5px;font-weight:750}
.map-intro p{font-size:.92rem;line-height:1.6;margin:0 0 8px;color:#765b4b}
@media(max-width:600px){.map-intro{padding:13px 15px 5px}.map-intro p{font-size:.85rem}}

/* v5.5: MAP list card layout - reserve focus button above content, not beside photo. */
.results .shop{padding:48px 2px 14px;position:relative;min-width:0}
.results .shop.is-selected{padding-left:8px}
.results .shop .shop-focus{top:10px;right:2px;white-space:nowrap;z-index:1}
.results .shop-card-body{display:flex;align-items:flex-start;gap:12px;min-width:0;width:100%}
.results .shop-thumb{width:84px;height:84px;flex:0 0 84px;object-fit:cover}
.results .shop-card-copy{flex:1 1 0;min-width:0;overflow-wrap:break-word;word-break:normal}
.results .shop-card-copy strong{line-height:1.45}
.results .shop-card-copy a{display:inline-block;margin:0 12px 5px 0}
/* Allow the selected store photo/card to use more of the map height. */
@media(min-width:761px){.selected-panel:not([hidden]){max-height:75%}}
@media(max-width:600px){.results .shop-thumb{width:72px;height:72px;flex-basis:72px}.results .shop-card-body{gap:9px}}

/* V5.6: compact optional MAP detail fields */
.map-detail{margin:10px 0 8px;padding:10px 12px;border-radius:10px;background:#fbf7f2;color:#3b2b23;font-size:13px;line-height:1.5;}
.map-detail dl{margin:0;display:grid;gap:5px;}
.map-detail-row{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;align-items:start;}
.map-detail dt{color:#806b5f;font-weight:600;}
.map-detail dd{margin:0;overflow-wrap:anywhere;white-space:pre-line;}
.map-detail-description{margin:8px 0 0;padding-top:8px;border-top:1px solid #e9ded5;white-space:pre-line;overflow-wrap:anywhere;}

/* V5.7: compact map store detail card, photo and location side by side. */
.selected-panel:not([hidden]){width:min(410px,calc(100% - 32px));max-height:min(76%,610px);padding:12px 14px;overscroll-behavior:contain;scrollbar-width:thin}
.selected-shop-head{gap:8px}
.selected-shop-head strong{font-size:1.03rem;line-height:1.4}
.selected-shop-head button{flex-shrink:0}
.selected-shop-overview{display:flex;align-items:center;gap:12px;min-width:0;margin:10px 0}
.selected-shop-photo-wrap{display:flex;align-items:center;justify-content:center;flex:0 0 116px;width:116px;height:144px;border-radius:9px;overflow:hidden;background:#f8f3e9}
.selected-shop-overview .selected-shop-image{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;margin:0;border-radius:0}
.selected-shop-location{min-width:0;flex:1;overflow-wrap:anywhere}
.selected-shop-location p{margin:0 0 8px}
.selected-shop-summary-label{font-size:12px;color:#8c7565}
.selected-shop .map-detail{margin:8px 0;padding:9px 11px;font-size:12.5px;line-height:1.45}
.selected-shop .map-detail dl{gap:4px}
.selected-shop .map-detail-row{grid-template-columns:75px minmax(0,1fr);gap:7px}
.selected-shop .map-detail-description{margin-top:7px;padding-top:7px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.selected-shop-links{gap:8px 15px;font-size:14px;line-height:1.5}
@media(max-width:760px){.selected-panel:not([hidden]){left:12px;right:12px;bottom:12px;width:auto;max-height:min(60vh,510px);padding:10px 12px}.selected-shop-photo-wrap{flex-basis:98px;width:98px;height:124px}.selected-shop-overview{gap:10px;margin:8px 0}.selected-shop .map-detail{font-size:12px}}
