/* Tall Man online store. Phone first (390px), black and white like tall-man.jp. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Noto Sans JP',system-ui,-apple-system,sans-serif;color:#1A1A1A;background:#FAFAF8;line-height:1.6}
a{color:inherit}
img{max-width:100%;display:block}
button,input,select{font:inherit}
.wrap{max-width:720px;margin:0 auto}

/* Language: elements marked data-l show only in their language. */
[data-l]{display:none}
html[data-lang="ja"] [data-l="ja"],html[data-lang="en"] [data-l="en"]{display:revert}

.beta{background:#1A1A1A;color:#FAFAF8;font-size:12px;text-align:center;padding:6px 12px}

header.top{background:#fff;border-bottom:1px solid #E2E2E2;position:sticky;top:0;z-index:10}
header.top .bar{display:flex;align-items:center;gap:10px;padding:10px 16px}
header.top .logo img{height:32px;width:auto}
header.top .grow{flex:1}
.iconbtn{position:relative;height:44px;min-width:44px;padding:0 10px;border-radius:999px;border:1px solid #D6D6D2;background:#fff;color:#1A1A1A;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px}
.badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:999px;background:#1A1A1A;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.search{padding:0 16px 10px}
.search input{width:100%;height:44px;border-radius:10px;border:1px solid #BDBDBD;padding:0 14px;font-size:16px;background:#fff}

main{padding:16px 16px 40px}
h1,h2{font-family:'Noto Serif JP',serif;font-weight:600;line-height:1.35;margin:0}
h1{font-size:24px}
h2{font-size:20px;margin:28px 0 12px}
.muted{color:#5E5E5E}
.small{font-size:13px}

.hero{background:#fff;border:1px solid #E2E2DE;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px}
.hero p{margin:0}

.cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cat{background:#fff;border:1px solid #E2E2DE;border-radius:12px;padding:14px;text-decoration:none;min-height:64px;display:flex;align-items:center;font-size:14px;font-weight:500}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.card{background:#fff;border:1px solid #E2E2DE;border-radius:12px;overflow:hidden;text-decoration:none;display:flex;flex-direction:column}
.thumb{aspect-ratio:1/1;background:#E9E9E5;display:flex;align-items:center;justify-content:center;color:#8A8A86;font-size:12px;position:relative}
.card .body{padding:10px;display:flex;flex-direction:column;gap:4px;flex:1}
.card .name{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.price{font-family:Inter,system-ui,sans-serif;font-weight:700;font-size:16px}
.price small{font-weight:400;font-size:11px;color:#5E5E5E;margin-left:2px}
.tag{position:absolute;top:8px;left:8px;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:#1A1A1A;color:#fff}
.tag.used{background:#fff;color:#1A1A1A;border:1px solid #1A1A1A}
.sold{font-size:12px;font-weight:700;color:#B45309}

.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin:0 -16px 12px;padding-left:16px;padding-right:16px}
.chip{flex:0 0 auto;height:36px;padding:0 14px;border-radius:999px;border:1px solid #BDBDBD;background:#fff;font-size:13px;display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}
.chip.on{background:#1A1A1A;color:#fff;border-color:#1A1A1A}
.tools{display:flex;gap:8px;margin-bottom:12px}
.tools select{flex:1;height:44px;border-radius:10px;border:1px solid #BDBDBD;background:#fff;padding:0 10px;font-size:14px}

.pd .gallery{aspect-ratio:1/1;background:#E9E9E5;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#8A8A86}
.pd h1{font-size:20px;margin-top:16px}
.pd .price{font-size:24px;margin:8px 0}
.box{background:#fff;border:1px solid #E2E2DE;border-radius:14px;padding:14px 16px;margin-top:12px}
.box h3{font-size:14px;margin:0 0 8px}
.row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:6px 0;border-top:1px solid #EEEEEA}
.row:first-of-type{border-top:0}
.qty{display:flex;align-items:center;gap:8px;margin-top:16px}
.qty button{width:44px;height:44px;border-radius:10px;border:1px solid #BDBDBD;background:#fff;font-size:20px}
.qty span{min-width:32px;text-align:center;font-weight:700}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:12px;border:0;background:#1A1A1A;color:#fff;font-size:16px;font-weight:700;text-decoration:none;margin-top:12px;cursor:pointer}
.btn.ghost{background:#fff;color:#1A1A1A;border:1px solid #1A1A1A}
.btn[disabled]{background:#BDBDBD;color:#fff;cursor:not-allowed}
.note{font-size:13px;line-height:1.7;color:#4A4A4A;background:#F0EFEB;border-radius:10px;padding:10px 12px;margin-top:12px}

.line{display:flex;gap:12px;padding:12px 0;border-top:1px solid #EEEEEA}
.line .thumb{width:72px;height:72px;aspect-ratio:auto;border-radius:10px;flex:0 0 auto}
.line .info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;font-size:14px}
.line .ctl{display:flex;align-items:center;gap:8px}
.line .ctl button{width:36px;height:36px;border-radius:8px;border:1px solid #BDBDBD;background:#fff}
.link{background:none;border:0;padding:0;color:#5E5E5E;text-decoration:underline;font-size:13px}
.progress{height:8px;border-radius:999px;background:#E2E2DE;overflow:hidden;margin-top:6px}
.progress div{height:8px;background:#1A1A1A}
.total{font-size:18px;font-weight:700}

.prose h2{font-size:17px;margin:22px 0 8px}
.prose p,.prose li{font-size:14px;line-height:1.8}
.prose table{width:100%;border-collapse:collapse;font-size:14px}
.prose th,.prose td{text-align:left;vertical-align:top;padding:10px 8px;border-top:1px solid #E2E2DE}
.prose th{width:38%;font-weight:500;color:#4A4A4A}
.fill{color:#B45309;font-weight:700}

footer.foot{border-top:1px solid #E2E2DE;padding:24px 16px 40px;font-size:13px;display:flex;flex-direction:column;gap:10px;background:#fff}
footer.foot nav{display:flex;flex-wrap:wrap;gap:8px 16px}
.lang{display:flex;gap:6px}
.lang button{height:36px;padding:0 12px;border-radius:999px;border:1px solid #BDBDBD;background:#fff;font-size:13px}
.lang button.on{background:#1A1A1A;color:#fff;border-color:#1A1A1A}
.empty{text-align:center;padding:40px 0;color:#5E5E5E}
.line .ctl .link{width:auto;height:auto;border:0;background:none;margin-left:4px}
.hero h1{font-size:22px}
/* Header menu (shop + corporate) */
.menu-btn{height:44px;min-width:44px;border-radius:999px;border:1px solid #D6D6D2;background:#fff;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;font-size:13px;color:#1A1A1A}
.menu{display:none;border-top:1px solid #E2E2E2;background:#fff;max-height:70vh;overflow-y:auto}
.menu.open{display:block}
.menu a{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:12px 20px;border-bottom:1px solid #EEEEEA;text-decoration:none;font-size:15px}
.menu-head{padding:14px 20px 6px;font-size:12px;letter-spacing:3px;color:#5E5E5E;font-weight:700;background:#FAFAF8;border-bottom:1px solid #EEEEEA}
/* Photo placeholder until real product photos exist */
.thumb .ph,.gallery .ph{width:44%;height:auto;opacity:.12}
.line .thumb .ph{width:60%}
/* Footer: plain links */
footer.foot nav.footnav{display:flex;flex-direction:column;gap:0}
footer.foot nav.footnav a{text-decoration:none;padding:10px 0;border-bottom:1px solid #EEEEEA;font-size:14px}
footer.foot .copy{margin-top:16px;font-size:12px}
/* Free-shipping bar */
.shipbar{background:#F0EFEB;padding:8px 16px;font-size:13px;text-align:center;border-top:1px solid #E2E2DE}
.shipbar .progress{max-width:360px;margin:6px auto 0;height:6px}
.shipbar .progress div{height:6px}
.few{font-size:12px;font-weight:700;color:#1A1A1A}
/* Mini product cards with quick add */
.minis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mini{background:#fff;border:1px solid #E2E2DE;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px}
.mini-img{aspect-ratio:1/1;background:#E9E9E5;border-radius:8px;display:flex;align-items:center;justify-content:center}
.mini-img .ph{width:44%;opacity:.12}
.mini-name{font-size:13px;line-height:1.45;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mini .price{font-size:14px}
.mini-add{height:40px;border-radius:10px;border:1px solid #1A1A1A;background:#fff;font-weight:700;font-size:13px}
.mini-add[disabled]{background:#1A1A1A;color:#fff}
/* Sticky buy bar on product pages */
.buybar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;border-top:1px solid #E2E2DE;padding:10px 16px calc(10px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px}
.buybar .btn{margin:0;flex:1;height:48px}
body[data-page="product"] footer.foot{padding-bottom:110px}
/* Added-to-cart sheet */
.sheet-wrap{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.45);display:flex;align-items:flex-end}
.sheet{background:#FAFAF8;width:100%;max-height:88vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
.sheet-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:16px}
.sheet-h{font-size:15px;margin:16px 0 8px}
.sheet .minis{grid-template-columns:repeat(3,minmax(0,1fr))}
.sheet .mini-name{font-size:12px}
