*{box-sizing:border-box}body{margin:0;background:#fff;color:#263332;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,sans-serif;line-height:1.8}:where(#game-stage,.instructions,.related-section,.breadcrumb) a{color:#28775d}.retail-page{width:min(1120px,calc(100% - 32px));margin:20px auto 50px}.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#667572}.retail-hero{padding:22px 0}.series-label{color:#397d63;font-size:12px;font-weight:700;margin:0}:where(.retail-hero) h1{font-size:clamp(24px,4vw,34px);line-height:1.5;margin:8px 0}:where(#game-stage,.instructions,.related-section) h2{font-size:17px;margin:0 0 10px}:where(#game-stage,.instructions,.related-section) h3{font-size:14px;margin:0 0 10px}.retail-hero p:last-child{margin:8px 0 0}.game-shell{border:1px solid #dbe9e1;border-radius:18px;overflow:hidden;background:#f4faf6}.game-stage{padding:16px;position:relative}.toolbar{display:flex;gap:8px;align-items:center}.toolbar strong{margin-right:auto}.stats{display:flex;flex-wrap:wrap;gap:8px 24px;margin:10px 0}.stat{display:flex;align-items:baseline;gap:8px}.stat span{font-size:12px;color:#667572}.stat strong{font-size:18px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.canvas-overlay{position:relative}.store-view{min-width:0}canvas{display:block;width:100%;height:420px;background:#eaf3ed;border:1px solid #d5e3da;border-radius:12px;touch-action:manipulation}.hint,.save-status{font-size:12px;color:#61736a;margin:8px 0;overflow-wrap:anywhere}.hint:empty{display:none}.game-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}.primary-controls{display:flex;gap:8px;margin:0}.primary-controls button{min-width:120px}:where(#game-stage) button,:where(#game-stage) select,:where(#game-stage) input{font:inherit;min-height:44px;border:1px solid #c5d8cb;border-radius:8px;background:#fff;color:#263332;padding:8px 12px;max-width:100%}:where(#game-stage) button{cursor:pointer;font-weight:700}:where(#game-stage) button:hover:not(:disabled){background:#e3f2e8}:where(#game-stage) button:disabled{cursor:default;opacity:.5}:where(#game-stage) button.primary{background:#2f8768;color:#fff;border-color:#2f8768}:where(#game-stage) button[aria-pressed="true"],:where(#game-stage) button[aria-expanded="true"]{background:#d1eadb;border-color:#3f8965}:where(#game-stage) button:focus-visible,:where(#game-stage) select:focus-visible,:where(#game-stage) input:focus-visible,:where(#game-stage,.instructions) summary:focus-visible{outline:3px solid #73aa92;outline-offset:2px}:where(#game-stage) label{display:block;font-size:13px}:where(#game-stage) select{width:100%}:where(#game-stage) input{width:74px}progress{display:block;width:100%;height:9px;margin-top:12px;accent-color:#2f8768}.message{font-size:13px;min-height:1.8em;margin:8px 0 12px}.panel-launchers{display:flex;flex-wrap:wrap;gap:8px}.panel-launchers button{font-size:13px}.operation-drawer{position:absolute;top:8px;right:8px;bottom:8px;z-index:5;width:min(320px,calc(100% - 16px));min-width:0;border:1px solid #d6e5db;background:#fff;border-radius:12px;overflow:auto;box-shadow:0 6px 24px rgba(31,55,40,.18)}.operation-drawer.is-summary{position:relative;top:auto;right:auto;bottom:auto;width:min(320px,100%);max-height:420px;margin:12px 0 0 auto}.drawer-head{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid #e4eee7;padding:10px 14px}.drawer-head h2{margin:0;flex:1}.drawer-head button{font-size:13px}.operation-panel{padding:14px}.operation-panel>button,.management-details>button,#staff-management>button{width:100%;margin-top:8px}.form-row{display:flex;gap:8px;align-items:end}.form-row label:first-child{flex:1;min-width:0}.price-label{margin-top:16px}.choice-list{display:flex;flex-wrap:wrap;gap:6px}.choice-list button{font-size:12px;padding:7px 10px;text-align:left}#staff-list button,#customer-list button{flex:1 1 100%}.management-details{margin-top:18px;border-top:1px solid #e4eee7;padding-top:8px}:where(#game-stage,.instructions) summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:700}.summary{background:#fff;padding:22px;border:1px solid #d3e5d9;border-radius:12px}.result-primary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.result-primary div{background:#f0f7f2;border-radius:8px;padding:12px}.result-primary span{display:block;font-size:12px;color:#61736a}.result-primary strong{font-size:22px}.summary dl{display:grid;grid-template-columns:1fr auto;gap:5px 16px;margin:10px 0}.summary dd{margin:0;font-weight:700}.summary>button{width:100%;margin:6px 0 16px}.save-warning{background:#fff2db;border:1px solid #dcb76a;border-radius:8px;font-size:13px;padding:10px}.instructions{margin-top:24px;border-top:1px solid #e3eee7}.info-section{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;padding:12px 0 24px}.info-section p,.related-section p,.comment-panel p{font-size:14px;margin:0}.related-section,.comment-panel{border-top:1px solid #e3eee7;padding:22px 0}.game-stage:fullscreen,.game-stage.is-fullscreen{background:#f4faf6;width:100%;height:100%;overflow:auto;padding:16px}.game-stage.is-fullscreen{position:fixed;inset:0;z-index:1000}.game-stage:fullscreen canvas,.game-stage.is-fullscreen canvas{height:min(65vh,650px)}.reset-dialog{position:fixed;inset:0;z-index:1200;background:rgba(30,50,39,.4);display:flex;align-items:center;justify-content:center;padding:16px}.reset-card{width:min(420px,100%);background:#fff;border:1px solid #c5d8cb;border-radius:14px;padding:20px}.reset-card p{font-size:14px;margin:0 0 16px}.reset-card button{width:100%;margin-top:8px}[hidden]{display:none!important}@media(max-width:760px){.info-section{grid-template-columns:1fr;gap:20px}canvas{height:340px}}@media(max-width:480px){.retail-page{width:calc(100% - 24px);margin-top:12px}.game-stage{padding:10px}.stats{gap:5px 16px}.stat strong{font-size:16px}.toolbar button{font-size:12px;padding:7px 10px}canvas{height:290px}.retail-hero{padding:18px 0}.panel-launchers{gap:6px}.panel-launchers button{font-size:12px;padding:7px 10px}.game-stage:fullscreen,.game-stage.is-fullscreen{padding:10px}.game-stage:fullscreen canvas,.game-stage.is-fullscreen canvas{height:340px}.summary{padding:14px}.result-primary{grid-template-columns:1fr;gap:8px}.result-primary div{display:flex;align-items:center;justify-content:space-between;padding:8px 12px}.result-primary strong{font-size:20px}}
.inventory-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.inventory-metrics>div{min-width:0;background:#edf6ef;border:1px solid #d6e6da;border-radius:8px;padding:8px 6px}.inventory-metrics span{display:block;font-size:11px;line-height:1.5;color:#61736a}.inventory-metrics strong{display:block;font-size:21px;line-height:1.7;overflow-wrap:anywhere}.value-list{margin:10px 0}.value-list>div,#inventory-list>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:5px 0;border-bottom:1px solid #edf2ee;font-size:13px}.value-list span,#inventory-list span{color:#61736a}.value-list strong,#inventory-list strong{overflow-wrap:anywhere}.action-result{font-size:13px;line-height:1.8;margin:8px 0;padding:10px;background:#e8f4e9;border-left:3px solid #4b8b60;border-radius:6px;overflow-wrap:anywhere}.operation-panel button{white-space:normal;overflow-wrap:anywhere}#inventory-list strong{font-size:12px}.management-details .action-result{margin:8px 0}
@media(max-width:480px){#staff-costs>div:last-child strong{font-size:18px;white-space:nowrap}}
.operation-drawer.has-purchase #product-detail{display:none}.operation-drawer.is-supplies #purchase-stock{font-size:13px;margin-top:6px}.operation-drawer.is-customers{display:flex;flex-direction:column;overflow:hidden}.operation-drawer.is-customers .drawer-head{flex:none;padding:4px 8px}.operation-drawer.is-customers #panel-customers{display:flex;flex-direction:column;min-height:0;padding:8px;overflow:hidden}.operation-drawer.is-customers #customer-action{flex:none}.operation-drawer.is-customers #customer-heading{font-size:13px;line-height:1.5;margin:0 0 4px}.operation-drawer.is-customers #customer-detail{margin:0;font-size:12px}.operation-drawer.is-customers #customer-detail>div{padding:0;font-size:12px}.operation-drawer.is-customers #help{width:100%;margin-top:4px;min-height:44px;font-size:13px}.operation-drawer.is-customers #help-reason{line-height:1.5;margin:4px 0}.operation-drawer.is-customers #help-result{font-size:12px;line-height:1.5;padding:4px;margin:4px 0}.operation-drawer.is-customers #customer-scroll{overflow:auto;min-height:0;margin-top:6px}.operation-drawer.is-customers #customer-list{padding:2px}
.operation-drawer.is-store .drawer-head{padding:4px 8px}.operation-drawer.is-store .operation-panel{padding:8px}.operation-drawer.is-store #shelf-heading{font-size:14px;line-height:1.5;margin:0 0 6px}.operation-drawer.is-store .stock-preview{font-size:12px;line-height:1.5;margin:6px 0}.operation-drawer.is-store #stock{margin-top:0;padding-left:8px;padding-right:8px}.operation-drawer.is-store .form-row label{line-height:1.5}
.operation-drawer.is-supplies .drawer-head,.operation-drawer.is-staff .drawer-head{padding:4px 8px}.operation-drawer.is-supplies .operation-panel,.operation-drawer.is-staff .operation-panel{padding:8px}.operation-drawer.is-supplies .inventory-metrics,.operation-drawer.is-staff .inventory-metrics{margin:6px 0}.operation-drawer.is-supplies .inventory-metrics>div,.operation-drawer.is-staff .inventory-metrics>div{padding:4px}.operation-drawer.is-supplies .inventory-metrics strong,.operation-drawer.is-staff .inventory-metrics strong{font-size:18px;line-height:1.5}.operation-drawer.is-supplies .form-row label{line-height:1.5}.operation-drawer.is-supplies #purchase{margin-top:0;font-size:13px}.compact-preview{font-size:12px;line-height:1.5;margin:6px 0}.staff-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.staff-buttons button{width:100%;min-height:44px;font-size:13px;padding:8px 6px}.operation-drawer.is-staff #staff-fee-detail{margin-top:12px}
.goal-status{font-size:12px;line-height:1.5;margin:6px 0;padding:4px 8px;border-left:3px solid #3f8965;background:#edf6ef;overflow-wrap:anywhere}.goal-achieved{font-size:13px;line-height:1.5;margin:4px 0 12px;color:#28775d;overflow-wrap:anywhere}
.product-results{margin-top:8px;border-top:1px solid #e4eee7}.product-results-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.5}.product-results-table th,.product-results-table td{padding:6px 3px;border-bottom:1px solid #e4eee7;text-align:center;overflow-wrap:anywhere}.product-results-table th:first-child{width:28%;text-align:left}
#canvas-area{position:relative}.shelf-legend{position:absolute;bottom:8px;right:8px;font-size:12px;line-height:1.5;padding:2px 5px;background:rgba(250,253,250,.96);color:#263332;border-radius:4px;pointer-events:none;white-space:nowrap}
@media(max-width:480px){.operation-drawer.is-customers #customer-action[data-duplicate-success="true"] #help-reason{display:none}.operation-drawer.is-customers #customer-action[data-duplicate-success="true"] #help-result{margin:0;padding:2px 4px}}
@media(max-height:635px){.game-stage:fullscreen .operation-drawer.is-customers #customer-action[data-duplicate-success="true"] #help-reason,.game-stage.is-fullscreen .operation-drawer.is-customers #customer-action[data-duplicate-success="true"] #help-reason{display:none}.game-stage:fullscreen .operation-drawer.is-customers #customer-action[data-duplicate-success="true"] #help-result,.game-stage.is-fullscreen .operation-drawer.is-customers #customer-action[data-duplicate-success="true"] #help-result{margin:0;padding:2px 4px}}
@media(max-height:635px){.game-stage:fullscreen .operation-drawer.is-customers #customer-action[data-duplicate-success="true"]+#customer-scroll,.game-stage.is-fullscreen .operation-drawer.is-customers #customer-action[data-duplicate-success="true"]+#customer-scroll{margin-top:0}}
@media(max-width:480px) and (max-height:635px){.game-stage:fullscreen .stats,.game-stage.is-fullscreen .stats{margin:0}.game-stage:fullscreen .stat,.game-stage.is-fullscreen .stat{line-height:1.4}.game-stage:fullscreen .goal-status,.game-stage.is-fullscreen .goal-status{margin:0;padding-top:0;padding-bottom:0}}
.operation-drawer.is-check .drawer-head{padding:4px 8px}.operation-drawer.is-check .drawer-head h2{font-size:14px;line-height:1.5}.operation-drawer.is-check .operation-panel{padding:8px}.operation-drawer.is-check .operation-panel>.hint{line-height:1.5;margin:0 0 4px}.operation-drawer.is-check .opening-check-row{padding:6px 0}.operation-drawer.is-check .opening-check-row .hint{line-height:1.5;margin:4px 0}
.opening-check{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 8px;font-size:12px}.opening-check span{min-width:0;flex:1;overflow-wrap:anywhere}.opening-check button{flex:none;font-size:12px;padding:7px 10px}.opening-check-row{padding:8px 0;border-bottom:1px solid #e4eee7}.opening-check-row h3{margin:0 0 4px}.opening-check-row button{display:block;width:100%;min-height:44px;font-size:13px;margin:4px 0}.day-status{display:flex;align-items:center;gap:6px;height:44px;margin:0 0 8px;font-size:13px}.day-status span{white-space:nowrap;flex:0 0 112px;font-variant-numeric:tabular-nums}.day-status progress{flex:1;min-width:40px;margin:0;height:12px}.day-status #speed{flex:0 0 76px;width:76px;height:44px;min-height:44px;padding:4px 6px;font-size:13px;white-space:nowrap}
@media(max-width:480px) and (max-height:635px){.game-stage:fullscreen canvas,.game-stage.is-fullscreen canvas{height:clamp(272px,calc(100vh - 296px),340px);height:clamp(272px,calc(100dvh - 296px),340px)}}
@media(max-width:480px) and (max-height:635px){.game-stage:fullscreen .day-status,.game-stage.is-fullscreen .day-status{margin-bottom:0}.game-stage:fullscreen .game-actions,.game-stage.is-fullscreen .game-actions{margin-bottom:6px}}
#hire-funds-preview{margin-top:2px}
