:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:#333333;background:#f4f4f4;font-size:16px;--green:#222222;--mint:#ebebeb;--border:#dfdfdf;--muted:#666666;--orange:#717171;--red:#626262}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{min-height:44px;border:1px solid var(--border);border-radius:8px;padding:10px 15px;background:white;color:inherit;cursor:pointer;font-weight:600}button:hover{border-color:var(--green);background:#f6f6f6}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:var(--red);border-color:#b9b9b9}button.small{font-size:14px;min-height:40px;padding:7px 11px}button.active{background:var(--green);border-color:var(--green);color:white}a{color:var(--green);text-decoration:none}input,select,textarea{width:100%;min-height:46px;border:1px solid var(--border);border-radius:7px;padding:11px;background:white;color:inherit}input:focus,select:focus,textarea:focus{outline:2px solid #999999;outline-offset:1px}input[type=checkbox],input[type=radio]{width:20px;min-height:20px;accent-color:var(--green)}textarea{min-height:90px;resize:vertical}label{display:grid;gap:8px;font-size:14px;font-weight:600}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;font-weight:650}h2{font-size:20px;font-weight:650}h3{font-size:16px}small,.muted{color:var(--muted);font-size:13px;line-height:1.6}.header{height:78px;background:white;border-bottom:1px solid var(--border);padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;font-weight:750;letter-spacing:2px;font-size:19px}.brand-mark{background:var(--green);color:white;width:35px;height:37px;display:grid;place-items:center;border-radius:3px 12px 3px 12px;font-family:Georgia,serif;font-size:25px}.header-right{display:flex;align-items:center;gap:18px;font-size:14px}.sync{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.sync:before{content:"";width:7px;height:7px;background:#7c7c7c;border-radius:50%}.sync.offline:before{background:var(--red)}.nav{background:white;border-bottom:1px solid var(--border);padding:0 30px;display:flex;gap:30px;overflow-x:auto}.nav a{white-space:nowrap;padding:18px 0 15px;font-size:14px;color:var(--muted);border-bottom:3px solid transparent}.nav a.active{color:var(--green);border-color:var(--green);font-weight:700}.workspace{max-width:1700px;margin:auto;padding:27px 30px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:15px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#949494;margin-bottom:7px}.date{color:var(--muted);font-size:13px}.workspace-grid{display:grid;grid-template-columns:260px minmax(330px,1fr) 320px;gap:20px;align-items:start}.panel{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-head{padding:19px 20px;border-bottom:1px solid #eaeaea;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-body{padding:20px}.section-label{font-size:12px;color:var(--muted);letter-spacing:.7px;font-weight:600}.seat-list{padding:10px;display:grid;gap:8px;max-height:70vh;overflow:auto}.seat-card{text-align:left;display:grid;grid-template-columns:1fr auto;gap:6px;padding:13px;border-radius:8px;min-height:78px}.seat-card strong{font-size:17px}.seat-card .badge{font-size:11px}.seat-card.selected{border:2px solid var(--green);background:#f2f2f2;padding:12px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;background:#f0f0f0;color:#7b7b7b;font-size:12px;padding:4px 7px;white-space:nowrap}.badge.open{background:#e9e9e9;color:#535353}.badge.checkout{background:#f1f1f1;color:#6f6f6f}.badge.cleaning{background:#ececec;color:#676767}.badge.danger{background:#ececec;color:var(--red)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{position:relative}.search input{padding-left:39px;background:white}.search:before{content:'⌕';position:absolute;left:14px;top:8px;font-size:25px;color:#8f8f8f}.categories{display:flex;gap:8px;overflow:auto;padding:17px 0}.categories button{font-size:13px;white-space:nowrap;min-height:37px;padding:8px 14px;border-radius:30px;font-weight:500}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{position:relative;background:white;border:1px solid var(--border);border-radius:10px;padding:19px;min-height:147px;display:flex;flex-direction:column;gap:8px;text-align:left;transition:transform .15s}.product-card:hover{transform:translateY(-2px)}.product-card .kind{font-size:10px;letter-spacing:1.5px;font-weight:600;color:var(--muted);text-transform:uppercase}.product-card h3{font-size:16px;line-height:1.5;font-weight:600}.product-card .price{font-size:20px;margin-top:auto;font-variant-numeric:tabular-nums}.product-card .plus{position:absolute;right:17px;bottom:17px;border-radius:50%;display:grid;place-items:center;background:#eeeeee;width:29px;height:29px;font-size:22px;color:#686868;font-weight:400}.product-card.soldout{background:#f1f1f1;opacity:.7}.product-card img{width:100%;height:120px;object-fit:cover;border-radius:5px}.cart{position:sticky;top:99px}.visit-bar{padding:20px;background:#eeeeee}.visit-bar .bill{display:flex;align-items:baseline;justify-content:space-between;margin-top:16px;font-size:13px;color:var(--muted)}.visit-bar .bill strong{font-size:25px;color:#404040;font-variant-numeric:tabular-nums}.tabs{display:flex;border-bottom:1px solid var(--border);padding:0 14px}.tabs button{flex:1;border:none;border-radius:0;font-size:13px;font-weight:500;border-bottom:2px solid transparent;background:none}.tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:700}.cart-lines{padding:0 18px;max-height:39vh;overflow:auto}.cart-line{padding:17px 0;border-bottom:1px solid #ececec;font-size:14px;display:grid;gap:9px}.line-head{display:flex;justify-content:space-between;gap:10px}.quantity{display:flex;align-items:center;gap:10px}.quantity button{min-height:28px;min-width:29px;padding:0;font-weight:400}.quantity .remove{margin-left:auto;border:none;color:var(--muted);font-size:12px}.cart-footer{padding:19px;display:grid;gap:15px}.total{display:flex;justify-content:space-between;font-weight:700}.total strong{font-size:24px;font-variant-numeric:tabular-nums}.empty{padding:40px 20px;text-align:center;display:grid;gap:12px;color:var(--muted);font-size:14px;line-height:1.8}.empty-symbol{font-size:28px;color:#bababa}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:23px}.stat{background:white;border:1px solid var(--border);border-radius:10px;padding:18px 20px}.stat .value{font-size:25px;font-weight:650;display:block;margin-top:8px}.stat .unit{font-size:13px;color:var(--muted);font-weight:400;margin-left:5px}.kitchen-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.ticket{background:white;border:1px solid var(--border);border-radius:10px;overflow:hidden}.ticket-head{padding:15px 18px;background:#f0f0f0;display:flex;justify-content:space-between;align-items:center}.ticket-body{padding:20px;display:grid;gap:15px}.ticket.warning{border-color:#bababa}.ticket.warning .ticket-head{background:#f1f1f1}.ticket-note{background:#f5f5f5;padding:10px;color:#6a6a6a;border-radius:5px}.list{display:grid;gap:12px}.list-row{background:white;border:1px solid var(--border);padding:18px;border-radius:9px;display:flex;justify-content:space-between;gap:14px;align-items:center}.floor-map{position:relative;width:100%;aspect-ratio:1.5;background:#f2f2f2;background-size:100% 100%;border:1px solid var(--border);border-radius:8px;overflow:hidden;transform-origin:top left}.map-seat{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;font-size:12px;background:#ffffff;min-height:0;border-radius:5px}.map-seat.circle{border-radius:50%}.map-seat.open{background:#e7e7e7}.map-seat.checkout{background:#f1f1f1}.map-seat.cleaning{background:#ededed}.map-viewport{overflow:auto;max-height:60vh;padding:5px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-brand{background:#353535;color:#f2f2f2;padding:70px;display:flex;flex-direction:column;justify-content:space-between}.login-brand .brand-mark{background:#e5e5e5;color:#353535}.login-brand h1{font-size:52px;font-weight:400;font-family:Georgia,serif;line-height:1.3}.login-form{align-self:center;max-width:430px;padding:35px;width:100%;margin:auto;display:grid;gap:24px}.form-grid{display:grid;gap:16px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.wide{grid-column:1/-1}.check-label{display:flex;align-items:center;gap:10px;font-weight:400}.text-note{font-size:14px;color:var(--muted);line-height:1.8}.admin-grid{display:grid;grid-template-columns:220px 1fr;gap:24px}.admin-tabs{display:grid;gap:7px;align-content:start}.admin-tabs button{text-align:left;border:none;background:none;font-weight:500}.admin-tabs button.active{background:#e7e7e7;color:var(--green)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:14px;border-bottom:1px solid #e9e9e9}th{font-size:12px;color:var(--muted);font-weight:500}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;padding:16px;background:#f4f4f4;border-radius:7px}.error{background:#f1f1f1;color:#565656;padding:14px;border-radius:7px;font-size:14px;line-height:1.7}.success{background:#ececec;color:#5a5a5a;padding:14px;border-radius:7px}dialog{border:1px solid var(--border);border-radius:14px;max-width:700px;width:calc(100% - 28px);padding:30px;max-height:90vh;overflow:auto;color:inherit}dialog::backdrop{background:#30303060;backdrop-filter:blur(3px)}#dialog-content{display:grid;gap:20px}.dialog-close{position:absolute;right:12px;top:12px;min-height:30px;padding:0 10px;border:0;font-size:23px;background:none;color:var(--muted)}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#434343;color:white;padding:14px 25px;border-radius:8px;z-index:100;display:none;box-shadow:0 8px 30px #34343425;max-width:90vw;font-size:14px}.pending{padding:12px 20px;background:#f3f3f3;font-size:14px;display:flex;justify-content:space-between;align-items:center}.customer-workspace{max-width:1050px}.customer-grid{display:grid;grid-template-columns:1fr 330px;gap:24px}.customer-top{display:flex;align-items:center;justify-content:space-between;background:#eaeaea;padding:20px;border-radius:10px;margin-bottom:20px}.loading{padding:80px;text-align:center;color:var(--muted)}.qr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.qr-card{text-align:center;border:1px solid var(--border);padding:14px;border-radius:8px}.qr-card img{width:100%;max-width:250px}.connection-error{padding:40px;max-width:700px;margin:auto}.stack{display:grid;gap:20px}.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spacer{flex:1}.sticky-actions{position:sticky;bottom:-30px;background:white;padding-top:15px}.warning-text{color:var(--orange);font-size:13px}.receipt-line{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eeeeee}.mono{font-family:ui-monospace,monospace}.code{font-size:36px;letter-spacing:9px;font-weight:600;text-align:center;color:var(--green)}@media(min-width:1450px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){.workspace-grid{grid-template-columns:190px minmax(280px,1fr) 290px;gap:14px}.workspace{padding:22px 18px}.header{padding:0 20px}.product-card{padding:15px}.kitchen-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.workspace-grid{grid-template-columns:1fr 300px}.seats-panel{grid-column:1/-1}.seat-list{display:flex;overflow:auto;max-height:none}.seat-card{min-width:125px}.header-right .date{display:none}.stats{grid-template-columns:repeat(2,1fr)}.admin-grid{grid-template-columns:1fr}.admin-tabs{display:flex;overflow:auto}.admin-tabs button{white-space:nowrap}.qr-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.header{height:64px;padding:0 16px}.brand{font-size:15px;letter-spacing:1px;gap:8px}.brand-mark{width:29px;height:32px;font-size:20px}.header-right{gap:8px;font-size:12px}.sync{font-size:10px}.nav{gap:22px;padding:0 17px}.nav a{padding:14px 0 12px;font-size:13px}.workspace{padding:22px 14px}.workspace-grid,.customer-grid{display:flex;flex-direction:column}.workspace-grid>*,.customer-grid>*{width:100%}.cart{position:static}.product-grid{gap:10px}.product-card{min-height:135px;padding:14px}.product-card h3{font-size:14px}.product-card .price{font-size:19px}.product-card .plus{right:11px;bottom:12px}.page-heading h1{font-size:23px}.page-heading{margin-bottom:20px}.cart-lines{max-height:40vh}.kitchen-grid{grid-template-columns:1fr}.login-page{grid-template-columns:1fr}.login-brand{padding:30px;min-height:190px}.login-brand h1{font-size:32px;margin-top:25px}.login-brand .text-note{display:none}.login-form{padding:32px 25px}.form-row{grid-template-columns:1fr}.list-row{align-items:flex-start;flex-direction:column}.stats{gap:10px}.stat{padding:15px}.stat .value{font-size:22px}dialog{padding:25px 20px}.qr-grid{grid-template-columns:1fr 1fr}.customer-top{padding:15px}.cart-footer{position:sticky;bottom:0;background:white}.tabs{padding:0 8px}.tabs button{padding:10px 8px}.toolbar button{font-size:13px}}@media print{.header,.nav,.admin-tabs,.page-heading button,.no-print{display:none!important}.workspace,.panel-body{padding:0}.admin-grid{display:block}.qr-grid{grid-template-columns:repeat(3,1fr)}.qr-card{break-inside:avoid}.panel{border:0}}
@media(max-width:620px){.header{height:auto;min-height:95px;padding:12px 14px;display:block}.brand{white-space:nowrap;display:inline-flex}.header-right{justify-content:space-between;margin-top:9px;gap:12px;white-space:nowrap}.header-right button{min-height:32px;padding:5px 10px;font-size:12px}.sync{font-size:11px;white-space:nowrap}.eyebrow{font-size:10px;letter-spacing:1px;white-space:nowrap}}

.product-entry{display:flex;flex-direction:column;gap:6px;min-width:0}.product-entry .product-card{width:100%;flex:1}.favorite-button{align-self:flex-start}.edit-row{padding:16px;border:1px solid #dfdfdf;border-radius:8px;margin-bottom:12px}.edit-row input[type=hidden]{display:none}

.product-image{width:100%;height:100px;object-fit:cover;border-radius:6px;margin-bottom:8px}
@media(max-width:850px){.header{height:auto;min-height:78px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.header-right{flex-wrap:wrap;white-space:normal}.page-heading{flex-wrap:wrap}.page-heading .toolbar{width:100%}}
@media(max-width:620px){.header-right{justify-content:flex-start;gap:8px}.header-right .sync{margin-right:auto}.edit-row{padding:12px}.receipt-line{gap:12px;overflow-wrap:anywhere}.request-statuses{font-size:12px;line-height:1.6;margin:10px 0}}

/* カテゴリ・気分タグの管理一覧 */
.classification-master{display:grid;gap:20px;min-width:0}.classification-master .page-heading{margin-bottom:0;align-items:flex-end}.classification-kind{display:inline-block;font-size:12px;font-weight:700;padding:5px 10px;border-radius:5px;margin-bottom:10px}.classification-kind.category{color:#404040;background:#ebebeb}.classification-kind.mood{color:#4f4f4f;background:#ebebeb}.classification-tools{display:flex;align-items:flex-end;gap:20px;justify-content:space-between}.classification-tools label{width:min(100%,400px)}.classification-tools p{padding-bottom:12px;white-space:nowrap}.classification-table th{white-space:nowrap;background:#f7f7f7}.classification-table td{vertical-align:middle}.classification-name{display:block;overflow-wrap:anywhere;min-width:120px}.classification-table button{white-space:nowrap}.classification-master [hidden]{display:none!important}.admin-grid>section{min-width:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.classification-master .page-heading{align-items:stretch;flex-direction:column}.classification-tools{align-items:stretch;flex-direction:column;gap:8px}.classification-tools label{width:100%}.classification-tools p{padding:0}.classification-table th,.classification-table td{padding:12px 9px}}

/* 図面は縮めず、狭い画面ではビューポート内でスクロールする。 */
.map-viewport{min-width:0;width:100%;overscroll-behavior:contain}
#view-map{width:1000px;min-width:1000px;flex-shrink:0}
#view-map .map-seat{white-space:nowrap;line-height:1.5}
#view-map .map-seat>*{flex-shrink:0;width:max-content;max-width:none;white-space:nowrap}

/* モーダル内へ移した通知も画面下部に固定し、長文を画面内に収める。 */
#notice{box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px);max-height:40vh;overflow:auto;overflow-wrap:anywhere;bottom:calc(24px + env(safe-area-inset-bottom,0px));line-height:1.6}

/* ハンディは商品数が増えても一覧だけをスクロールする。 */
.handy-menu{min-width:0}
.handy-grid #products{max-height:60vh;max-height:60dvh;overflow:auto;align-content:start;padding:2px 4px 8px 2px;overscroll-behavior:contain}
.handy-grid .cart{max-height:75vh;max-height:75dvh;overflow:auto}
.handy-switch{display:none}
@media(max-width:620px){
 .workspace:has(.handy-grid){padding-bottom:100px}
 .handy-grid .seat-list{max-height:none}
 .handy-grid .cart{display:none;max-height:none;scroll-margin-top:160px}
 .handy-grid.show-cart .cart{display:block}
 .handy-grid.show-cart .handy-menu,.handy-grid.show-visit .handy-menu{display:none}
 .handy-menu{scroll-margin-top:160px}
 .handy-grid #products,.handy-grid .cart,.handy-grid .cart-lines{max-height:none;overflow:visible;overscroll-behavior:auto}
 .handy-switch{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:white;border-top:1px solid var(--border);box-shadow:0 -4px 20px #34343412}
 .handy-switch button{flex:1;min-width:0}
 .handy-switch button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
 body:has(.handy-switch) #notice{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
}

/* 保存リンクにも明確なボタン領域を設け、QR画像と操作を分離する。 */
.qr-card{min-width:0}
.qr-card h3,.qr-card>small{overflow-wrap:anywhere}
.qr-card img{display:block;margin:12px auto}
.qr-url-field{display:grid;gap:8px;margin:12px 0;text-align:left;min-width:0}.qr-url-field textarea{min-height:80px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;resize:vertical}.qr-url-status{color:var(--red)}
.qr-actions{display:grid;gap:8px;margin-top:12px}
.qr-actions>*{width:100%;min-width:0;min-height:44px}
.qr-download{display:flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid var(--green);border-radius:8px;background:var(--green);color:white;font-size:14px;font-weight:600;line-height:1.5;white-space:nowrap;touch-action:manipulation}
.qr-download:hover{background:#313131;border-color:#313131}
.qr-download:focus-visible{outline:3px solid #999999;outline-offset:3px}
@media(max-width:480px){.qr-grid{grid-template-columns:minmax(0,1fr)}}
@media print{.qr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* タッチ操作用の商品絞り込み */
.filter-editor{display:grid;gap:14px;min-width:0}.filter-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.filter-basics label{display:grid;gap:6px;font-size:13px}.filter-basics input,.filter-basics select{width:100%;min-width:0;min-height:44px}.filter-section{border:1px solid var(--border);border-radius:10px;min-width:0}.filter-section summary{padding:15px;cursor:pointer;font-weight:700}.filter-section summary span{float:right;font-size:12px;color:var(--muted)}.filter-section-body{padding:0 14px 14px}.filter-group-tools{display:flex;gap:8px;margin-bottom:12px}.filter-group-tools input{flex:1;min-width:0}.filter-group-tools button{font-size:12px;flex-shrink:0}.filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;overscroll-behavior:contain}.filter-choice{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--border);border-radius:8px;min-height:48px;cursor:pointer;overflow-wrap:anywhere}.filter-choice input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:var(--green)}.filter-choice:has(input:checked){background:var(--mint);border-color:var(--green)}.filter-choice:focus-within{outline:2px solid var(--green);outline-offset:1px}.filter-choice[hidden]{display:none}.filter-actions{position:sticky;bottom:-30px;background:white;border-top:1px solid var(--border);padding:12px 0;display:flex;flex-wrap:wrap;gap:8px;z-index:1}.filter-actions>span{width:100%;font-size:13px;color:var(--muted)}.filter-actions>.primary{margin-left:auto}.filter-no-match{color:var(--muted);font-size:13px}@media(max-width:620px){.filter-basics{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-basics>label:first-child{grid-column:1/-1}.filter-options{grid-template-columns:1fr;max-height:none;overflow:visible;overscroll-behavior:auto}.filter-actions{bottom:-25px}.filter-actions button{flex:1;padding:10px 8px;font-size:13px}.filter-group-tools{flex-wrap:wrap}.filter-group-tools input{width:100%;flex-basis:100%}}
.map-viewport:has(.map-scale-stage){height:50vh;max-height:50vh;touch-action:none}.map-scale-stage{position:relative;overflow:hidden;flex-shrink:0}.map-scale-stage>.floor-map{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none}.map-scale-stage .map-seat{touch-action:none}
/* 商品選択と補助操作を一枚のカードにまとめる */
.compact-product{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;border:1px solid var(--border);border-radius:10px;background:white;overflow:hidden}
.compact-product .product-card{border:0;border-radius:0;padding:10px 12px 4px;min-height:86px;gap:4px;background:transparent;transform:none}
.compact-product .product-card .kind{min-height:32px;padding-right:32px;display:flex;align-items:center;letter-spacing:.5px;overflow-wrap:anywhere}
.compact-product .product-card h3{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.compact-product .product-card img{height:84px}
.compact-product .favorite-button{position:absolute;right:2px;top:2px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:#ffffffed;font-size:25px;line-height:1;color:var(--muted)}
.compact-product .favorite-button[aria-pressed=true]{color:#6b6b6b;background:#f4f4f4}
.product-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;padding:0 8px 4px 12px;min-width:0}
.product-card-footer .price{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}
.product-card-footer .price small{font-size:10px;font-weight:400;white-space:nowrap}
.product-card-footer .product-add-button{display:flex;flex-shrink:0;align-items:center;gap:5px;min-width:0;min-height:44px;padding:0;border:0;background:transparent;text-align:left}
.product-add-mark{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;border-radius:50%;background:var(--mint);color:var(--green);font-size:19px;font-weight:500;line-height:1}
.product-add-button .price{min-width:0;overflow-wrap:normal}.product-card-footer .product-detail-button{margin-left:auto}.product-add-button:hover .product-add-mark{background:var(--green);color:white}
.product-card-footer .product-detail-button{flex-shrink:0;min-height:44px;min-width:44px;padding:4px;font-size:12px;border:0;background:transparent;color:var(--green)}
.compact-product.soldout{background:#f1f1f1}.compact-product.soldout .product-card{opacity:.65}
.compact-product button:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.compact-product .product-card:hover,.product-card-footer .product-detail-button:hover{background:#f6f6f6}
.handy-visit,.handy-current-visit{display:none}
/* Staff and admin share this header; do not inherit the old mobile block layout. */
.header.staff-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:16px;height:60px;min-height:60px;padding:8px clamp(12px,3vw,30px)}
.header.staff-header .brand{display:flex;align-items:center;min-width:0;flex:0 1 190px;letter-spacing:0}
.header.staff-header .brand-logo{width:100%;max-width:190px;height:auto}
.header.staff-header #account{flex:0 0 auto;min-height:44px;margin:0;padding:8px 12px;white-space:nowrap}
@media(max-width:620px){.header.staff-header .brand{flex-basis:150px}}
.handy-grid .seat-card{grid-template-columns:minmax(0,1fr) auto;align-content:start}
.handy-grid .seat-card strong{overflow-wrap:anywhere}
.handy-grid .seat-people,.handy-grid .seat-amount{grid-column:1/-1;white-space:nowrap}
.handy-grid .seat-amount{font-size:15px;font-variant-numeric:tabular-nums}
@media(max-width:850px){.handy-grid .seat-card{flex:0 0 210px;min-width:210px}}
@media(max-width:620px){
 .handy-current-visit{display:flex;flex-wrap:wrap;gap:6px 12px;padding:10px 12px;margin-bottom:12px;background:var(--mint);border-radius:8px;font-size:13px;overflow-wrap:anywhere}
 .handy-grid.show-visit .handy-visit{display:block;scroll-margin-top:160px}
 .handy-grid .cart #visit-detail,.handy-grid .cart #checkout,.handy-grid .cart .visit-bar .bill,.handy-grid .cart .visit-bar>small{display:none}
 .handy-grid .cart .visit-bar{padding:12px 16px}
 .handy-visit-total{font-size:24px;font-variant-numeric:tabular-nums}
 .handy-switch{gap:6px;padding-left:10px;padding-right:10px}
 .handy-switch button{padding:10px 4px;font-size:13px;white-space:nowrap}
}

/* 表示用ダッシュボードでも操作結果と取消をスクロール位置にかかわらず確認できる。 */
.dashboard-page .workspace{padding-bottom:140px}
#display-operation:not(:empty){position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:16px;right:16px;z-index:30;margin:auto;max-width:760px;background:white;border:1px solid var(--border);border-radius:10px;box-shadow:0 4px 24px #00000020;padding:14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
#display-recipe{display:grid;gap:12px;margin-top:16px}
#display-recipe img{max-width:100%;height:auto}

.visit-thanks{min-height:100vh;min-height:100dvh;background:#fff;padding:32px 24px;display:flex;flex-direction:column;align-items:center;color:#333}
.visit-thanks .brand{font-size:17px;max-width:100%;overflow-wrap:anywhere}
.visit-thanks section{margin:auto;text-align:center;max-width:560px;padding:64px 0;display:grid;gap:28px;line-height:1.9}
.visit-thanks h1{font-size:clamp(23px,5.4vw,32px);line-height:1.7;outline:none}
.visit-thanks section>p:not(.eyebrow):not(.text-note){font-size:18px}
.visit-thanks .eyebrow{margin:0}

/* 店舗提供のロゴは縦横比と原色を保ち、装飾コピーを添えずに表示する。 */
.brand-logo{display:block;width:190px;max-width:100%;height:auto;flex-shrink:0}
.header .brand{min-width:0;flex-shrink:1}
.login-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:44px;min-height:100vh;min-height:100dvh;padding:48px 24px;background:#fff}
.login-brand{display:block;min-height:0;padding:0;background:#fff;color:inherit;max-width:100%}
.login-brand .brand-logo{width:320px}
.login-form{width:100%;max-width:400px;margin:0;padding:0}
.login-form h1{font-size:24px}
.visit-thanks .brand-logo{width:240px}
.dashboard-header{height:auto;min-height:78px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}
.dashboard-header h1{font-size:20px}
@media(max-width:620px){.header .brand-logo{width:150px}.login-page{gap:32px;padding:36px 24px}.login-brand .brand-logo{width:270px}.dashboard-header{gap:12px}.dashboard-header h1{font-size:17px}.dashboard-header>span{display:none}}

/* お客様の注文操作は商品一覧の長さにかかわらず常時アクセスできる。 */
.customer-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:64px;height:64px;padding:0 20px;gap:12px}
.customer-workspace{padding-top:12px;padding-bottom:110px}
.customer-seat-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;margin-bottom:12px}
.customer-menu-tools{display:flex;align-items:center;gap:8px;margin-top:8px}
.customer-menu-tools .muted{margin-left:auto}
.customer-order-page .categories{padding:10px 0}
.customer-order-page .customer-grid{display:block}
.customer-order-page .cart{display:none;position:static;max-height:none;overflow:visible}
.customer-order-page.show-customer-cart .cart{display:block;max-width:760px;margin:0 auto}
.customer-order-page.show-customer-cart .customer-catalog{display:none}
.customer-order-page .cart-lines{max-height:none;overflow:visible}
.customer-order-page .tabs{display:none}
.customer-actions{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));gap:8px;background:white;border-top:1px solid var(--border);box-shadow:0 -4px 16px #00000010;justify-content:center}
.customer-actions button{flex:1;max-width:240px;min-width:0;padding:9px 4px;font-size:14px}
.customer-actions button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}
.customer-actions [data-customer-view=cart]{border:2px solid var(--green)}
.customer-action-hint{display:block;font-size:11px;margin-top:3px}
body:has(.customer-actions) #notice{bottom:calc(100px + env(safe-area-inset-bottom,0px))}
@media(max-width:620px){.customer-workspace{padding:12px 16px 120px}.customer-header{padding:0 16px}.customer-seat-summary{font-size:12px}.customer-actions{padding-left:10px;padding-right:10px}.customer-order-page .product-grid{gap:8px}}

/* お客様だけに、操作は青・待機は琥珀色・完了は緑の意味を持たせる。 */
body.customer-theme{--green:#285e87;--mint:#eef4f9;--border:#dce2e8;--muted:#596574;background:#f5f7fa;color:#273441}
.customer-theme .brand-logo{filter:none}
.customer-theme button.primary,.customer-theme .categories button.active{background:#285e87;color:white}
.customer-theme .product-add-mark{background:#e6f0f8;color:#285e87}
.customer-theme .product-add-button{color:#285e87}
.customer-theme .customer-actions [data-customer-view=cart]{background:#eef4f9;color:#285e87}
.customer-theme .customer-actions button[aria-pressed=true]{background:#285e87;color:white}
.customer-theme .customer-actions button[aria-pressed=true]{box-shadow:inset 0 -4px 0 #153d5d}
.customer-theme .customer-actions button{font-size:12px;max-width:220px}
.customer-theme .customer-actions [data-customer-view=cart]{flex:1.25}
.customer-theme .customer-order-page .cart,.customer-theme .customer-order-page .cart-lines{height:auto;max-height:none;overflow:visible;overscroll-behavior:auto;touch-action:pan-y}
.customer-theme .customer-order-page .cart{border:0;background:transparent;border-radius:0}
.customer-panel-body{display:grid;gap:16px;padding:4px 0 20px}
.customer-panel-body .cart-lines{padding:0;display:grid;gap:12px}
.customer-panel-body .cart-line,.customer-request{background:white;border:1px solid var(--border);border-radius:12px;padding:16px;display:grid;gap:10px;min-width:0}
.customer-panel-body .line-head{align-items:start;flex-wrap:wrap}
.customer-panel-body .line-head strong{flex:1;min-width:130px;overflow-wrap:anywhere}
.customer-state{display:inline-flex;align-items:center;align-self:start;white-space:nowrap;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:600}
.customer-state.waiting{background:#fff3d9;color:#765000}
.customer-state.working{background:#e8f1fb;color:#285e87}
.customer-state.done{background:#eaf4ee;color:#326347}
.customer-state.cancelled{background:#edf0f3;color:#596574}
.customer-history-item>button{justify-self:start;color:#285e87;border-color:#b9cedf}
.customer-service-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.customer-service-actions button{min-height:70px;color:#285e87;background:#eef4f9;border-color:#b9cedf}
.customer-service-actions small{display:block;font-size:11px;margin-top:5px;white-space:normal}
.customer-empty{padding:18px;background:white;border-radius:10px;color:var(--muted);line-height:1.7}
.customer-panel-body h2 small{display:block;font-weight:400;margin-top:6px}
.customer-theme .quantity button{min-height:40px;min-width:40px}
.customer-theme #notice{background:#234760;color:white}

.compact-product.just-added{border-color:#285e87;box-shadow:0 0 0 2px #285e8733}
.cart-added-feedback{position:absolute;inset:auto 6px 6px;z-index:2;border-radius:6px;background:#234760;color:white;padding:8px;text-align:center;font-size:12px;pointer-events:none}
.cart-count-changed{animation:cart-count-pulse .45s ease-out}
@keyframes cart-count-pulse{50%{transform:translateY(-4px);box-shadow:0 0 0 4px #285e8730}}
@media(prefers-reduced-motion:reduce){.cart-count-changed{animation:none}}
.people-stepper{display:flex;align-items:center;justify-content:center;gap:12px}
.people-stepper input{width:100px;text-align:center;font-size:26px}
.people-stepper button{width:54px;min-height:54px;font-size:24px}
#start-form details>.form-grid{padding-top:16px}
#start-preview:not(:empty){padding:14px;background:var(--mint);border-radius:8px;line-height:1.8}
.qr-purpose-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.qr-purpose-guide{padding:16px;background:var(--mint);border-radius:10px;margin-bottom:20px;display:grid;gap:8px;line-height:1.7}
.recipe-reading,#display-recipe{line-height:1.8}
.recipe-reading>div>p{display:flex;padding:8px 0;border-bottom:1px solid var(--border)}
.recipe-panel h2{padding-right:28px;font-size:20px}


/* Dedicated touch dashboard: no browser/OS controls are required. */
.kiosk-dashboard button,.kiosk-dashboard select,.kiosk-quantity button{min-height:48px;touch-action:manipulation}
.kiosk-dashboard{overscroll-behavior:none}
.kiosk-quantity [data-count]{font-size:2rem;min-width:3ch;text-align:center}
.kiosk-quantity .toolbar{justify-content:center;gap:20px;margin-top:24px}

#categories{display:block;overflow:visible}
.category-level{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:thin}
.category-level button{flex:0 0 auto;min-height:42px;white-space:nowrap}
.category-children{border-top:1px solid var(--line,#ddd);padding-top:8px}
.product-explanation{white-space:pre-line;line-height:1.75}

/* Short, finite feedback; no layout animation or delayed interaction. */
button,.nav a,input,select,textarea{transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,box-shadow 140ms ease}
button:not(:disabled):active{transform:scale(.98)}
@media(hover:hover) and (pointer:fine){
 .compact-product,.seat-card{transition:border-color 140ms ease,box-shadow 140ms ease}
 .compact-product:hover,.seat-card:hover{box-shadow:0 3px 10px #0000000d}
}
@keyframes ui-dialog-in{from{opacity:.6;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ui-fade-in{from{opacity:0}to{opacity:1}}
@keyframes ui-feedback-in{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}
dialog[open]{animation:ui-dialog-in 180ms cubic-bezier(.2,.7,.2,1)}
dialog[open]::backdrop{animation:ui-fade-in 140ms ease-out}
.login-form{animation:ui-feedback-in 200ms ease-out}
.cart-added-feedback{animation:ui-feedback-in 160ms ease-out}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 button:not(:disabled):active,.product-card:hover{transform:none}
}
@media print{*,*::before,*::after{animation:none!important;transition:none!important}}

/* Dedicated touch terminal: hide chrome without disabling scrolling. */
html.kiosk-touch,html.kiosk-touch body,html.kiosk-touch *{scrollbar-width:none!important;cursor:none!important}
html.kiosk-touch::-webkit-scrollbar,html.kiosk-touch *::-webkit-scrollbar{display:none;width:0;height:0}
html.kiosk-touch *::before,html.kiosk-touch *::after,html.kiosk-touch dialog::backdrop{cursor:none!important}
/* Dedicated touch display: dense layout, full-size touch targets. */
.kiosk-dashboard .dashboard-header{display:flex;min-height:60px;height:auto;padding:8px 12px;gap:12px;flex-wrap:wrap}
.kiosk-dashboard .dashboard-header .brand-logo{width:112px;flex-shrink:0}
.kiosk-dashboard .dashboard-header h1{font-size:15px;letter-spacing:0;white-space:nowrap}
.kiosk-dashboard .dashboard-header>span{display:none}
.kiosk-dashboard .dashboard-controls{flex:1;justify-content:flex-end;gap:8px;min-width:0}
.kiosk-dashboard .dashboard-controls label{display:flex;align-items:center;gap:6px;white-space:nowrap}
.kiosk-dashboard .dashboard-controls select{width:132px;padding:8px;font-size:14px}
.kiosk-dashboard button,.kiosk-dashboard select{min-height:44px}
.kiosk-dashboard .dashboard-controls button{padding:8px 10px;font-size:13px;white-space:nowrap}
.kiosk-dashboard #display-status{font-size:12px;color:var(--muted);white-space:nowrap}
.kiosk-dashboard .workspace{padding:10px 12px 80px}
.kiosk-dashboard .kitchen-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:10px;align-items:start}
.kiosk-dashboard .ticket{min-width:0;border-radius:8px}
.kiosk-dashboard .ticket-head{padding:7px 10px;gap:8px;min-height:36px}
.kiosk-dashboard .ticket-head strong{overflow-wrap:anywhere}
.kiosk-dashboard .ticket .badge{font-size:12px;padding:3px 6px}
.kiosk-dashboard .ticket-body{padding:10px;gap:8px}
.kiosk-dashboard .ticket h2{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.kiosk-dashboard .ticket .line-head>strong{font-size:15px;white-space:nowrap;flex-shrink:0}
.kiosk-dashboard .ticket .text-note{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.kiosk-dashboard .ticket-note{padding:7px 8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.kiosk-dashboard .ticket small{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.kiosk-dashboard .ticket .toolbar{gap:6px}
.kiosk-dashboard .ticket button{padding:8px 10px;font-size:14px;flex:1;white-space:nowrap}
.kiosk-dashboard #display-requests{gap:8px;margin-bottom:10px!important}
.kiosk-dashboard #display-requests:empty,.kiosk-dashboard #display-alert:empty{display:none}
.kiosk-dashboard #display-requests .list-row{padding:8px 10px;gap:8px;flex-direction:row;flex-wrap:wrap;font-size:14px}
.kiosk-dashboard #display-requests .toolbar{gap:6px;margin-left:auto}
.kiosk-dashboard #display-requests button{font-size:14px;padding:8px 12px}
.kiosk-dashboard #display-alert:not(:empty){margin-bottom:10px}
.kiosk-dashboard #display-dialog{padding:16px;max-height:calc(100dvh - 20px)}
.kiosk-dashboard #display-dialog-close{position:sticky;top:0;z-index:1;background:white}
@media(max-width:700px){.kiosk-dashboard .dashboard-header{gap:6px 10px}.kiosk-dashboard .dashboard-header h1{margin-right:auto}.kiosk-dashboard .dashboard-controls{flex-basis:100%;justify-content:flex-start}.kiosk-dashboard #display-status{margin-left:auto}.kiosk-dashboard .dashboard-controls label{font-size:13px}.kiosk-dashboard .workspace{padding:8px 8px 80px}}
/* Recipe header stays outside the only scrollable area. */
html.recipe-modal-open{overflow:hidden;overscroll-behavior:none}
#display-dialog,.kiosk-dashboard #display-dialog{padding:0;overflow:hidden;max-height:calc(100dvh - 24px)}
#display-dialog[open]{display:flex;flex-direction:column}
.display-dialog-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--border);background:white}
#display-dialog-close,.kiosk-dashboard #display-dialog-close{position:static;min-height:44px;min-width:80px}
#display-recipe{margin:0;padding:16px;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere}
:root{--field-release:'2026-09-15.1'}
.field-connection{padding:6px 14px;font-size:12px;color:var(--muted);background:#f5f5f5;line-height:1.5}
.field-connection.field-offline{border-left:4px solid #333;color:#222;font-weight:650;background:#e5e5e5}
.ticket.warning{border:2px solid #555}
.ticket.warning .ticket-head{background:#dedede}
.ticket.warning .ticket-head .badge{background:#333;color:white;font-weight:700}
.field-new{position:sticky;top:64px;z-index:19;display:block;margin:6px 0;width:100%;background:#333;color:white;min-height:44px}
.field-new[hidden]{display:none}
.field-sound-off{border-style:dashed!important}
body:has(.handy-grid) .handy-current-visit{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;position:sticky;top:60px;z-index:19;padding:8px 12px;background:#eee;border:1px solid #ccc;border-radius:6px;margin-bottom:10px}
.handy-current-visit strong{font-size:17px;overflow-wrap:anywhere}
.handy-current-visit button{margin-left:auto;min-height:44px}
body:has(.handy-grid) .handy-menu,body:has(.handy-grid) #cart,body:has(.handy-grid) #handy-visit{scroll-margin-top:132px}
body:has(.field-dialog[open]){overflow:hidden}
.field-dialog{padding:0;overflow:hidden;max-height:calc(100dvh - 24px)}
.field-dialog[open]{display:flex;flex-direction:column}
.field-dialog-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:16px;display:grid;gap:14px}
.field-sound-list{display:grid;gap:10px}
.kiosk-dashboard .dashboard-header h1{font-size:14px}
.kiosk-dashboard .dashboard-controls{gap:6px}
.kiosk-dashboard .dashboard-controls button{padding:8px;font-size:12px}
.kiosk-dashboard .dashboard-controls select{width:120px}
.kiosk-dashboard #display-status{display:none}
