/* ショップの地図（試作。tpl/list.html・shop.html）。event.css・area.css の上に重ねる。変えたら shops.css?v= を上げる */
.lead .agc{display:block;margin:2px 0 0}
.shops-map{height:340px;margin:12px 0 16px}
@media (max-width:480px){.shops-map{height:280px}}
.shl li a{display:flex;align-items:center;gap:12px}
.shl .stx{flex:1;min-width:0}
.shl .an{font-size:15px}
.shl .ap{margin-top:2px}
.shl .sth{flex:0 0 auto;width:64px;height:64px;object-fit:cover;border-radius:8px;background:var(--bg)}
.shback{margin:14px 0 0;font-size:13px}
.shback a{color:var(--fg)}
/* お店のサイトの画像はロゴのことが多いので、切り取らずに全体を収める */
.lcard img{object-fit:contain}
.lcard.noimg{grid-template-columns:minmax(0,1fr)}
.lcard.noimg img{display:none}
/* 地図の吹き出し（一覧ページ） */
.leaflet-popup-content-wrapper{background:var(--panel);color:var(--fg);border-radius:12px}
.leaflet-popup-tip{background:var(--panel)}
.leaflet-popup-content{margin:12px 14px;line-height:1.5;font-size:13px}
.shp b{display:block;font-size:14px;line-height:1.4}
.shp small{display:block;color:var(--muted);font-size:12px;margin:2px 0 6px}
.shp a{color:var(--accent);font-weight:700}
dd a{color:var(--fg)}
/* カテゴリは 1 店に 1〜3 個・電話のボタン（2026-11-19） */
dd .tag{margin:0 4px 2px 0}
.btn.tel{white-space:nowrap}
/* 2026-11-20：近くのショップ・このお店の方へ */
.nshops li a{display:flex;flex-direction:column}
.shoporg .btn{display:block;margin:6px 0 8px;white-space:normal}
/* 2026-11-20：お店が載せた写真・紹介・作業メニュー */
.shintro{margin:0 0 14px;line-height:1.75;font-size:15px}
.shh{font-size:15px;margin:18px 0 6px}
.shmenu{margin:0 0 12px;padding-left:1.2em;line-height:1.7}
.shedited{font-size:12px;color:var(--muted);margin:4px 0 12px}
.shoporg .btn + .btn{margin-top:0}
/* 13:50 お店のページを「ホームページの代わり」に */
.shpage .shhead{margin-bottom:12px}
.shpage .shhead h1{margin:0}
.shpage .shown{display:inline-flex;align-items:center;gap:4px;margin:0 0 6px;padding:2px 9px;border-radius:999px;background:#e9f6ee;color:#1d6b3a;font-size:12px;font-weight:700}
.shpage .shcatch{margin:6px 0 0;font-size:17px;font-weight:700;line-height:1.5;color:var(--fg)}
.shpage .shtags{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:4px}
.shpage .shintro{margin:4px 0 16px;line-height:1.85;font-size:15px}
.shpage .shsec{margin-top:26px}
.shpage .shh{font-size:17px;margin:0 0 8px;padding-bottom:6px;border-bottom:2px solid var(--fg)}
.shpage .shmenu{list-style:none;margin:0;padding:0}
.shpage .shmenu li{display:flex;justify-content:space-between;gap:12px;padding:9px 2px;border-bottom:1px solid var(--line);line-height:1.5}
.shpage .shmenu li b{flex:0 0 auto;font-weight:700;white-space:nowrap}
.shpage .shsns{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.shpage .snsb{display:inline-block;padding:6px 14px;border-radius:999px;border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--fg);text-decoration:none}
.shpage .snsb:hover{background:var(--hover,rgba(0,0,0,.04))}
.shpage .snsb-line{background:#06c755;border-color:#06c755;color:#fff}
.shpage .shaccess{margin:0 0 10px;line-height:1.7}
.shpage .note{margin-top:22px}
/* 14:50 SNS・LINE を目立つボタンに（アイコンつき） */
.shpage .shsns{margin:14px 0 0;padding:12px;border:1px solid var(--line);border-radius:12px}
.shpage .shsns p{margin:0 0 8px;font-size:12px;font-weight:700;color:var(--muted)}
.shpage .shsns div{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.shpage .snsb{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border-radius:10px;font-size:14px}
.shpage .snsb svg{flex:none}
.shpage .snsb-instagram{color:#c13584}.shpage .snsb-youtube{color:#e00}.shpage .snsb-facebook{color:#1877f2}.shpage .snsb-x,.shpage .snsb-tiktok{color:var(--fg)}
.shpage .snsb span{color:var(--fg)}
.shpage .snsb-line span{color:#fff}
.shpage .shsns{display:block}
/* 14:58 お店のページを広く・2 段組に（PC）、表紙・写真のタイル・スマホの下のボタン */
.shwrap{max-width:1120px;padding-left:16px;padding-right:16px;box-sizing:border-box}
.shgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.shgrid>.card{margin:0}
.shside{display:flex;flex-direction:column;gap:14px;min-width:0}
.shside .card{margin:0}
.shside .orgbox{margin:0}
.shbox .shh{margin-top:4px}
.shbox dl{margin:0}
.shbox #map{margin-top:8px;isolation:isolate;z-index:0}
.shpbtns{display:none}
@media (min-width:900px){
  .shgrid{grid-template-columns:minmax(0,1fr) 360px}
  .shside{position:sticky;top:12px}
  .shmbtns{display:none}
  .shpbtns{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 16px}
  .shpbtns .btn{margin:0;width:100%;box-sizing:border-box;text-align:center}
}
/* 表紙 */
.shhero{position:relative;margin:0 0 14px;border-radius:16px;overflow:hidden;background:#222;aspect-ratio:21/9;max-height:460px}
.shhero>img{display:block;width:100%;height:100%;object-fit:cover}
.shhero-t{position:absolute;left:0;right:0;bottom:0;padding:60px 28px 22px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff}
.shhero-t h1{margin:4px 0 0;font-size:clamp(24px,3.4vw,38px);line-height:1.2;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.shhero-t .shcatch{color:#fff;font-size:clamp(14px,1.8vw,19px);margin:6px 0 0;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.shhero-t .shtags{margin-top:10px}
.shhero-t .shown{background:rgba(255,255,255,.92)}
@media (max-width:640px){.shhero{aspect-ratio:4/3;border-radius:12px;margin-left:-4px;margin-right:-4px}.shhero-t{padding:40px 16px 14px}}
/* 写真・施工事例のタイル */
.wgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.wgrid .gi{position:relative;display:block;padding:0;border:0;border-radius:10px;overflow:hidden;background:var(--line);aspect-ratio:4/3;cursor:zoom-in}
.wgrid .gi img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.wgrid .gi:hover img{transform:scale(1.04)}
.wgrid .wcap{position:absolute;left:0;right:0;bottom:0;padding:16px 8px 6px;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font-size:12px;font-weight:700;text-align:left;line-height:1.35}
@media (max-width:640px){.wgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 余白と見出し */
.shpage{padding-top:22px}
.shpage .shsec{margin-top:34px}
.shpage .shintro{font-size:16px}
.shpage .shmenu{border:1px solid var(--line);border-radius:12px;padding:2px 14px}
.shpage .shmenu li:last-child{border-bottom:0}
.shpage .shmenu li b{color:var(--accent,#d1452b)}
/* スマホの下に固定のボタン */
.shact{display:none}
@media (max-width:899px){
  .shact{position:fixed;left:0;right:0;bottom:0;z-index:1100;display:flex;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));background:var(--panel,#fff);border-top:1px solid var(--line);box-shadow:0 -4px 14px rgba(0,0,0,.08)}
  .shact a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:11px 6px;border-radius:10px;border:1px solid var(--line);color:var(--fg);font-size:14px;font-weight:700;text-decoration:none}
  .shact a:first-child{background:var(--accent,#d1452b);border-color:var(--accent,#d1452b);color:#fff}
  .shact .ab-line{background:#06c755;border-color:#06c755;color:#fff}
  body:has(.shact){padding-bottom:72px}
}
.shhero{aspect-ratio:auto;height:min(440px,40vw);width:100%}
@media (max-width:640px){.shhero{height:auto;aspect-ratio:4/3;width:auto}}
.shown{display:inline-flex;align-items:center;gap:4px;margin:0 0 6px;padding:2px 9px;border-radius:999px;background:#e9f6ee;color:#1d6b3a;font-size:12px;font-weight:700;width:auto}
.shhero-t .shown{background:rgba(233,246,238,.95);color:#1d6b3a}
/* 15:00 お店のページの地図のピンも写真つきの吹き出しに（shops-map.css と同じ） */
.sbub{position:absolute;left:0;top:0;transform:translate(-50%,calc(-100% - 8px));display:flex;align-items:center;gap:6px;max-width:13em;padding:3px 10px 3px 3px;background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.18);font-family:var(--font-body);font-size:12px;font-weight:700;line-height:1.25;white-space:nowrap;cursor:pointer}
.sbub img{flex:none;width:34px;height:34px;border-radius:7px;object-fit:cover;background:var(--line)}
.sbub span{overflow:hidden;text-overflow:ellipsis;border-bottom:2px solid var(--c);padding-bottom:1px}
.sbub::after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;background:var(--panel);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:translateX(-50%) rotate(45deg);border-bottom-right-radius:2px}
.sbub::before{content:"";position:absolute;left:50%;bottom:-13px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px var(--panel)}
.sbub:hover{z-index:2}
.sbub.active,.sbub.hot{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.sbub.active::after,.sbub.hot::after{background:var(--fg);border-color:var(--fg)}
#map .sbub{max-width:17em}
/* 15:20 お店のページの吹き出しは写真だけ（店名はページにあるので不要） */
#map .sbub.only{padding:3px;gap:0;border-radius:12px}
#map .sbub.only img{width:56px;height:56px;border-radius:9px}
#map .sbub.only.noimg{width:14px;height:14px;padding:0;border-radius:50%;background:var(--c)}
/* 2026-11-21 お店のページを「お店のページ」らしく（本人の指摘）：写真を大きく・情報と地図を本文に・近くのショップは下にカードで */
.shpage .shsum{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
.shpage .shsum span{margin:0 4px;opacity:.6}
.shphoto{display:block;margin:14px 0 4px;border-radius:14px;overflow:hidden;background:#e9e7e1;aspect-ratio:16/9}
.shphoto img{display:block;width:100%;height:100%;object-fit:cover}
.shpage .shinfo dl{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:8px 12px;margin:0;font-size:15px;line-height:1.6}
.shpage .shinfo dt{color:var(--muted);font-size:13px;padding-top:2px}
.shpage .shinfo dd{margin:0;overflow-wrap:anywhere}
.shpage .shacc #map{height:320px;margin:4px 0 0;isolation:isolate;z-index:0}
.shpage .shaddr{margin:8px 0 0;font-size:14px;color:var(--muted)}
.shpage .near ul{list-style:none;margin:0;padding:0}
.shbtnbox{padding:16px}
.shbtnbox .shpbtns{margin:0}
@media (max-width:899px){.shbtnbox{display:none}}
.shnear{margin:22px 0 0}
.shnear h2{font-size:16px;margin:0 0 10px}
.nsr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nsc{display:block;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel,#fff);color:var(--fg);text-decoration:none}
.nsc:hover{box-shadow:0 4px 14px rgba(0,0,0,.08)}
.nsi{display:block;aspect-ratio:16/10;background:#e9e7e1}
.nsi img{display:block;width:100%;height:100%;object-fit:cover}
.nst{display:block;padding:10px 12px 12px}
.nst b{display:block;font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nst small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
@media (max-width:640px){.nsr{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:4px}.nsc{flex:0 0 70%;scroll-snap-align:start}}
.shnear-area{margin:14px 0 0;font-size:14px}
.shfoot-note{margin:18px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}
@media (max-width:899px){.shfoot-note{margin-bottom:80px}}
.nsi{aspect-ratio:2/1}
.shnear-area a{color:var(--fg)}
@media (max-width:640px){.shpage .shinfo dl{grid-template-columns:5.5em minmax(0,1fr);font-size:14px}.shpage .shacc #map{height:240px}}
.shmaps{margin:10px 0 0}
/* 写真は押すと大きく（2026-11-21。公式サイトへは飛ばない） */
.shphoto{margin:14px 0 14px}
.shphoto .gi,.shhero .gi{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.shphoto .gi img,.shhero .gi img{display:block;width:100%;height:100%;object-fit:cover}
.shhero-t{pointer-events:none}
/* 「イベント｜ショップ」の切り替え（2026-11-21） */
.secnav{display:inline-flex;flex:none;padding:3px;border-radius:999px;background:var(--panel,#fff);border:1px solid var(--line);box-shadow:0 1px 3px rgba(0,0,0,.06)}
.secnav a{padding:4px 12px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.4;color:var(--muted);text-decoration:none;white-space:nowrap}
.secnav a:hover{color:var(--fg)}
.secnav a[aria-current="page"]{background:var(--fg);color:var(--bg,#fff)}
.shtop{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
/* スマホ：お店のページの幅をイベントのページにそろえる（2026-11-21 本人「イベントに合わせたい」）。画面の左右は body の 16px だけ、その中にイベントと同じ枠の箱 */
@media (max-width:640px){
  .shwrap{padding-left:0;padding-right:0}
  .shhero{margin-left:0;margin-right:0}
}
/* このお店のイベント（2026-11-21） */
.shevs{margin-top:28px}
.shevl{list-style:none;margin:8px 0 0;padding:0}
.shevl li{border-bottom:1px solid var(--line)}
.shevl a{display:grid;grid-template-columns:5.8em minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:10px 2px;color:var(--fg);text-decoration:none}
.shevl a:hover span{text-decoration:underline}
.shevl time{font-weight:700;font-variant-numeric:tabular-nums}
.shevl em{font-style:normal;font-size:12px;color:var(--muted)}
.shevl.past a{color:var(--muted)}
.shevpast{margin:14px 0 0;font-size:13px;color:var(--muted);font-weight:700}
.shevnone,.shevnote{font-size:13px;color:var(--muted);margin:8px 0 0}
.shauto{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.6}
.shauto a{color:inherit}
.shtest{display:block;margin:0 0 12px;padding:10px 12px;border-radius:8px;background:#fff4d6;border:1px solid #f0c36d;font-size:13px;font-weight:700}
/* お店からのお知らせ（2026-11-24） */
.shnews{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff)}
.shnews li{display:flex;gap:12px;align-items:baseline;padding:10px 14px;border-top:1px solid var(--line)}
.shnews li:first-child{border-top:0}
.shnews time{flex:0 0 auto;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.shnews a{min-width:0;line-height:1.5;word-break:break-word}
.shnewsnote{font-size:12px;color:var(--muted);margin:6px 2px 0}
@media (max-width:640px){.shnews li{flex-direction:column;gap:2px}}
/* 表紙：小さい画像はぼかした同じ画像を地に、画像は引き伸ばさず中央に（2026-11-24）。集めた画像の店はパソコンだけ表紙 */
.shblur{background:#1c1c1c}
.shblur .shbg{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(28px) brightness(.62) saturate(1.1);transform:scale(1.08)}
.shhero.shblur .gi{position:relative;z-index:1;background:transparent}
.shhero.shblur .gi img{object-fit:contain;padding:22px 24px 120px;box-sizing:border-box}
.shblur .shhero-t{z-index:2}
.shhero .shhero-t{z-index:2}
@media (min-width:641px){.sponly{display:none!important}}
@media (max-width:640px){.pconly{display:none!important}.shhero.shblur .gi img{padding:12px 12px 90px}}
/* 表紙：中くらいの画像は左右に分ける（左：ぼかしの地に店名など、右：画像をくっきり）2026-11-24 案 1・本人 ok。スマホは今までの形 */
@media (min-width:641px){
  .shhero.shsplit .gi{position:absolute;z-index:1;top:24px;right:24px;left:auto;width:48%;height:calc(100% - 48px);border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.35)}
  .shhero.shsplit .gi img{padding:0;object-fit:cover;width:100%;height:100%}
  .shhero.shsplit.shfit .gi{box-shadow:none;border-radius:0;overflow:visible}
  .shhero.shsplit.shfit .gi img{object-fit:contain;border-radius:12px}
  .shhero.shsplit .shhero-t{right:auto;width:46%;top:0;display:flex;flex-direction:column;justify-content:flex-end;background:none;padding:28px}
  .shhero.shsplit .shbg{filter:blur(34px) brightness(.5) saturate(1.15)}
}
