/* 道具カード（子ども向け・保護者向け）、ほしいものリスト、広告枠。静的ページ（/）とSPA（/app/）で共用。 */
.wish-fab,.wish-sheet,.wish-toast,.shop,.ad-slot,.wish-open{--w-ink:var(--ink,#162c26);--w-green:var(--green,#08784f);--w-dark:var(--green-dark,#065a3c);--w-mint:var(--mint,#eaf5ed);--w-line:var(--line,#dce4df);--w-muted:var(--muted,#5e6b65)}

/* ---- 見出しの PR ---- */
.pr-mark{display:inline-block;margin-left:10px;padding:0 6px;border:1px solid currentColor;border-radius:3px;font-size:10px;font-weight:700;line-height:16px;letter-spacing:.04em;vertical-align:middle;color:var(--w-muted,#5e6b65)}

/* ---- 道具の一覧（罫線で区切る行。均一なカードを並べない） ---- */
.shop-list{list-style:none;margin:12px 0 0;padding:0;border-top:1px solid var(--w-line,#dce4df)}
.shop-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--w-line,#dce4df)}
.shop-body{min-width:0;flex:1}
.shop-name{display:block;margin:2px 0 0;background:none;box-shadow:none;font-size:16px;font-weight:800;line-height:1.55;overflow-wrap:anywhere}
.shop-meta{display:block;margin:2px 0 0;font-size:12px;line-height:1.7;color:var(--w-muted,#5e6b65);overflow-wrap:anywhere}
.shop-why{margin:8px 0 0;font-size:13px;line-height:1.85}
.shop-cat{display:inline-block;padding:0 9px;border-radius:3px;background:var(--w-mint,#eaf5ed);color:var(--w-dark,#065a3c);font-size:11px;font-weight:700;line-height:20px}
.shop-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.shop-level{font-size:11px;font-weight:800;line-height:20px;color:var(--w-dark,#065a3c)}
.shop-level.lv-up{color:var(--w-muted,#5e6b65)}
.shop-sport{font-size:11px;font-weight:800;line-height:20px;padding-right:8px;border-right:1px solid var(--w-line,#dce4df)}
.shop-adult .shop-name,.shop-parent .shop-name{font-size:16px}
.shop-buy{display:flex;flex-direction:column;gap:8px;flex:none;width:168px}
.buy{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 14px;border-radius:4px;font-size:14px;font-weight:800;line-height:1.3;text-decoration:none;text-align:center}
.buy-rakuten{background:#bf0000;color:#fff}
.buy-amazon{background:#ffd814;color:#111;box-shadow:inset 0 0 0 1px #d4b200}
.buy-official{background:#fff;color:var(--w-dark,#065a3c);box-shadow:inset 0 0 0 2px var(--w-line,#dce4df);font-weight:700}
.buy:hover{filter:brightness(.93)}
.buy:focus-visible,.wish-btn:focus-visible,.wish-fab:focus-visible,.wish-sheet button:focus-visible,.wish-sheet a:focus-visible,.shop-set:focus-visible{outline:3px solid var(--w-ink,#162c26);outline-offset:2px}
.shop-set{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;min-height:48px;padding:10px 18px;border:2px solid var(--w-green,#08784f);border-radius:4px;color:var(--w-dark,#065a3c);font-size:14px;font-weight:800;text-decoration:none}
.shop-set::after{content:"\2192"}
.shop-set:hover{background:var(--w-mint,#eaf5ed)}
.shop-empty{margin:16px 0}
.shop-parent h2{margin-top:0}
.sg-shop .gd{margin-top:2px}
.shop-kid .shop-name{font-size:17px}

/* ---- これ、ほしい！ ---- */
.wish-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:168px;min-height:48px;padding:8px 18px;border:2px solid var(--w-green,#08784f);border-radius:999px;background:#fff;color:var(--w-dark,#065a3c);font-size:14px;font-weight:800;line-height:1.3;cursor:pointer;transition:background .15s,color .15s}
.wish-btn:hover{background:var(--w-mint,#eaf5ed)}
.wish-btn .wish-heart{flex:none}
.wish-btn[aria-pressed=true]{background:var(--w-green,#08784f);color:#fff}
.wish-btn[aria-pressed=true] .wish-heart path{fill:currentColor}

/* ---- ヘッダー・右下のバッジ ---- */
.wish-open{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 4px;border:0;background:none;color:var(--w-ink,#162c26);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.wish-open .wish-heart{color:var(--w-green,#08784f)}
.wish-count{display:inline-block;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--w-green,#08784f);color:#fff;font-size:11px;font-weight:800;line-height:20px;text-align:center}
.wish-count[hidden]{display:none}
.icon-btn.wish-open{width:42px;height:42px;padding:0;justify-content:center;gap:0}
.icon-btn.wish-open .wish-count{position:absolute;right:0;top:0;min-width:16px;height:16px;padding:0 4px;border-radius:8px;font-size:10px;line-height:16px}
.wish-open span.wish-label{white-space:nowrap}
.wish-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--w-green,#08784f);color:#fff;font:inherit;font-size:14px;font-weight:800;box-shadow:0 6px 20px #0b2a1e45;cursor:pointer}
.wish-fab[hidden]{display:none}
.wish-fab .wish-heart path{fill:currentColor}
.wish-fab b{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#fff;color:var(--w-dark,#065a3c);font-size:12px;line-height:22px;text-align:center}
@media(max-width:760px){body:has(.bottom-nav) .wish-fab{bottom:calc(78px + env(safe-area-inset-bottom,0px))}}

/* ---- リストの画面 ---- */
dialog.wish-sheet{border:0;border-radius:10px;padding:0;width:min(520px,calc(100% - 24px));max-height:88dvh;overflow:auto;color:var(--w-ink,#162c26);box-shadow:0 20px 80px #15352940}
dialog.wish-sheet::backdrop{background:#12271f88}
.wish-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px;background:#fff;border-bottom:1px solid var(--w-line,#dce4df)}
.wish-bar h2{margin:0;font-size:20px;line-height:1.4}
.wish-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:none;cursor:pointer;color:inherit}
.wish-close:hover{background:var(--w-mint,#eaf5ed)}
.wish-body{padding:6px 20px 22px}
.wish-empty{margin:26px 0;font-size:15px;line-height:2}
.wish-items{list-style:none;margin:0;padding:0}
.wish-items li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--w-line,#dce4df)}
.wish-items strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.wish-items span{display:block;font-size:12px;color:var(--w-muted,#5e6b65);overflow-wrap:anywhere}
.wish-remove{flex:none;min-height:44px;padding:0 12px;border:0;background:none;color:var(--w-muted,#5e6b65);font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.wish-share{margin-top:22px}
.wish-share h3{margin:0 0 12px;font-size:17px;line-height:1.8}
.wish-actions{display:grid;gap:10px}
.wish-actions a,.wish-actions button{display:flex;align-items:center;justify-content:center;min-height:50px;padding:10px 16px;border-radius:4px;font-size:15px;font-weight:800;text-decoration:none;cursor:pointer}
.wish-line{background:#06c755;color:#fff;border:0}
.wish-copy,.wish-qr{background:#fff;color:var(--w-dark,#065a3c);border:2px solid var(--w-green,#08784f)}
.wish-copy:hover,.wish-qr:hover{background:var(--w-mint,#eaf5ed)}
.wish-qrbox{margin-top:14px;padding:14px;border:1px solid var(--w-line,#dce4df);border-radius:6px;text-align:center;font-size:13px}
.wish-qrbox[hidden]{display:none}
.wish-qrbox svg{display:block;width:min(240px,100%);height:auto;margin:0 auto}
.wish-live{min-height:24px;margin:10px 0 0;font-size:13px;font-weight:700;color:var(--w-dark,#065a3c)}
.wish-view{display:inline-block;margin-top:4px;font-size:13px;color:var(--w-muted,#5e6b65);text-decoration:underline;text-underline-offset:3px}
.wish-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:300;max-width:calc(100% - 32px);width:max-content;padding:12px 20px;border-radius:5px;background:var(--w-ink,#162c26);color:#fff;font-size:13px;font-weight:700;opacity:0;transform:translate(-50%,10px);transition:opacity .2s,transform .2s;pointer-events:none}
.wish-toast.on{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){.wish-toast,.wish-btn{transition:none}}
@media(max-width:760px){dialog.wish-sheet{margin:auto auto 0;width:100%;max-width:none;border-radius:14px 14px 0 0;max-height:92dvh}}

/* ---- 広告枠（中身が無ければ出ない） ---- */
.ad-slot{margin:32px 0}
.ad-slot:not(.has-ad){display:none}
.ad-slot .ad-pr{display:block;margin-bottom:6px;font-size:10px;font-weight:700;letter-spacing:.04em;color:var(--w-muted,#5e6b65)}
.ad-slot.has-ad{overflow:hidden;max-width:100%}

/* ---- 狭い画面: 行を縦に積み、ボタンは全幅 ---- */
@media(max-width:520px){
  .wish-fab{padding:0 16px;gap:6px}.wish-fab span{display:none}
  .shop-card{flex-direction:column;align-items:stretch;gap:12px}
  .wish-btn{width:100%;min-width:0}
  .shop-buy{width:100%;flex-direction:row}
  .shop-buy .buy{flex:1}
}
