:root{--green:#087a4b;--green-light:#e9f7f0;--ink:#18241f;--muted:#708078;--line:#e5eae7;--bg:#f6f8f7;--red:#d84c55;--amber:#dc8d15;--blue:#2695c5;--shadow:0 5px 18px rgba(18,53,38,.07)}*{box-sizing:border-box}body{margin:0;background:#edf1ef;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}.shell{width:100%;max-width:520px;min-height:100dvh;margin:auto;background:#fff;position:relative;padding-bottom:88px}.top{height:68px;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.96);z-index:4}.title{font-size:17px;font-weight:800}.icon-btn{background:transparent;font-size:21px;padding:8px;line-height:1}.page{padding:20px 16px}.welcome h1{font-size:22px;margin:5px 0}.welcome p,.muted{font-size:12px;color:var(--muted);margin:0}.section{margin:20px 0}.section-title{font-weight:800;font-size:15px;margin:0 0 9px}.card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.summary-row,.list-row{display:flex;align-items:center;gap:11px;padding:13px;border-bottom:1px solid var(--line)}.summary-row:last-child,.list-row:last-child{border-bottom:0}.emoji{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;font-size:20px;background:var(--green-light)}.summary-row:nth-child(2) .emoji{background:#fff0f1}.summary-row:nth-child(3) .emoji{background:#e8f6fc}.summary-row:nth-child(4) .emoji{background:#f4ecfb}.grow{flex:1;min-width:0}.row-title{font-weight:750;font-size:14px}.row-detail{color:var(--muted);font-size:11px;margin-top:3px}.count{font-weight:800;font-size:14px}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quick button{padding:12px 4px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);font-size:11px;font-weight:700}.quick span{display:block;font-size:23px;margin-bottom:5px}.notice{display:flex;align-items:flex-start;gap:9px;padding:12px;background:#fff7e7;border:1px solid #f5dfae;border-radius:12px;color:#76500b;font-size:12px}.select{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:700}.table-head{display:grid;grid-template-columns:1.6fr .75fr .7fr;gap:5px;padding:12px 10px 7px;color:var(--muted);font-size:11px}.inventory-row{display:grid;grid-template-columns:1.6fr .75fr .7fr;align-items:center;gap:5px;padding:12px 10px;border-top:1px solid var(--line);font-size:13px}.badge{padding:4px 7px;border-radius:6px;font-size:11px;font-weight:800;text-align:center;white-space:nowrap}.ok{background:var(--green-light);color:var(--green)}.low{background:#fff4d9;color:#b66b00}.urgent{background:#fff0f0;color:var(--red)}.primary{background:var(--green);color:#fff;padding:14px;border-radius:9px;font-weight:800;width:100%;margin-top:14px}.tabs{display:flex;border-bottom:1px solid var(--line);margin:0 -16px 14px}.tabs button{flex:1;background:none;padding:12px;color:var(--muted);font-weight:800}.tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.collection{padding:12px;display:flex;align-items:center;gap:11px}.collection+.collection{border-top:1px solid var(--line)}.room-initial{width:43px;height:43px;background:#edf5f1;border-radius:10px;display:grid;place-items:center;font-weight:800;color:var(--green);font-size:12px}.date-pair{font-size:12px;line-height:1.55;min-width:90px}.check{width:25px;height:25px;border:1.5px solid #c9d3ce;border-radius:50%;background:#fff;color:white;font-weight:900}.check.done{background:var(--green);border-color:var(--green)}.clean-row{display:grid;grid-template-columns:1.2fr .85fr .55fr .7fr;gap:4px;align-items:center;padding:12px 8px;border-top:1px solid var(--line);font-size:12px}.clean-head{font-size:10px;color:var(--muted)}.alert-card{margin-bottom:11px}.alert-head{font-size:13px;font-weight:800;padding:10px 12px;background:#f2faf6;display:flex;justify-content:space-between}.alert-card:nth-child(2) .alert-head{background:#fff7e8}.alert-card:nth-child(3) .alert-head{background:#eef8fc}.alert-line{font-size:12px;padding:8px 12px;border-top:1px solid var(--line)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);margin-right:7px}.todo{display:flex;gap:10px;align-items:center;padding:12px;border-top:1px solid var(--line)}.todo:first-child{border-top:0}.todo input{width:19px;height:19px;accent-color:var(--green)}.todo.done .todo-title{text-decoration:line-through;color:var(--muted)}.due{margin-left:auto;font-size:10px;font-weight:800;padding:4px 7px;background:#fff0f0;color:var(--red);border-radius:5px;white-space:nowrap}.add{display:flex;gap:8px;margin-top:13px}.add input{flex:1;padding:12px;border:1px solid var(--line);border-radius:9px}.add button{padding:0 16px;background:var(--green);color:#fff;border-radius:9px;font-weight:800}.notes{width:100%;min-height:145px;border:1px solid var(--line);border-radius:12px;padding:12px;resize:vertical}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:520px;width:100%;height:72px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:6px 5px calc(6px + env(safe-area-inset-bottom));z-index:5}.nav{flex:1;background:none;color:var(--muted);font-size:10px;line-height:1.35}.nav span{display:block;font-size:20px}.nav.active{color:var(--green);font-weight:800}.modal{position:fixed;inset:0;background:rgba(0,0,0,.4);display:grid;place-items:end center;z-index:10}.modal-box{width:min(520px,100%);background:#fff;border-radius:18px 18px 0 0;padding:20px 16px calc(22px + env(safe-area-inset-bottom))}.modal h2{font-size:17px;margin:0 0 15px}.modal label{display:block;font-size:12px;font-weight:700;margin:10px 0 5px}.modal input,.modal select{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px}.modal-actions{display:flex;gap:8px;margin-top:17px}.modal-actions button{flex:1;padding:12px;border-radius:8px;font-weight:800}.secondary{background:#eef2f0;color:#34443c}@media(min-width:521px){body{padding:16px}.shell{min-height:calc(100dvh - 32px);border-radius:20px;box-shadow:0 10px 40px rgba(0,0,0,.1);overflow:hidden}.bottom{bottom:16px;border-radius:0 0 20px 20px}}
.home-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.home-menu-item{position:relative;min-height:148px;padding:18px 14px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);color:var(--ink)}.home-menu-item:last-child{grid-column:1/-1;min-height:96px;display:grid;grid-template-columns:46px 1fr auto;align-items:center;column-gap:10px}.home-menu-icon{display:block;font-size:27px;line-height:1;margin-bottom:14px;color:var(--green)}.home-menu-name{display:block;font-size:15px;font-weight:800}.home-menu-count{display:block;margin-top:6px;font-size:20px;font-weight:850;color:var(--green)}.home-menu-detail{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.home-menu-item:last-child .home-menu-icon{margin:0}.home-menu-item:last-child .home-menu-count{margin:0;grid-column:3;grid-row:1}.home-menu-item:last-child .home-menu-detail{margin:3px 0 0;grid-column:2;grid-row:2}@media(max-width:360px){.home-menu{gap:8px}.home-menu-item{padding:15px 11px;min-height:135px}}.home-menu-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;margin-bottom:15px!important;background:#e9f7f0;font-size:23px;font-weight:800;color:var(--green)}.home-menu-item:nth-child(2) .home-menu-icon{background:#fff4dc;color:#b66b00}.home-menu-item:nth-child(3) .home-menu-icon{background:#eaf5fb;color:#227aa5}.home-menu-item:nth-child(4) .home-menu-icon{background:#f3ecfb;color:#7c4ba6}.home-menu-item:nth-child(5) .home-menu-icon{background:#fff0f0;color:var(--red)}.home-menu-item:last-child .home-menu-icon{margin:0!important}.home-menu-item:active{transform:scale(.985);box-shadow:none}.alert-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border-top:1px solid var(--line)}.alert-mark{width:8px;height:8px;border-radius:50%;background:var(--red)}.alert-main{min-width:0;display:grid;gap:3px}.alert-main b{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.alert-main span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.alert-detail{max-width:150px;padding:5px 7px;border-radius:7px;background:#fff0f0;color:var(--red);font-size:10px;font-weight:800;line-height:1.3;text-align:right;overflow-wrap:anywhere}.alert-row.manage .alert-mark{background:var(--amber)}.alert-row.manage .alert-detail{background:#fff4d9;color:#a76000}.alert-row.cash .alert-mark{background:var(--blue)}.alert-row.cash .alert-detail{background:#eaf5fb;color:#227aa5}.alert-row.todo .alert-mark{background:#8b62b0}.alert-row.todo .alert-detail{background:#f3ecfb;color:#75499d}.alert-empty{padding:13px 12px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}@media(max-width:360px){.alert-row{grid-template-columns:8px minmax(0,1fr);gap:8px}.alert-detail{grid-column:2;justify-self:start;max-width:none;text-align:left}}.alert-row{grid-template-columns:9px minmax(0,1fr) minmax(0,1fr);gap:9px;min-height:48px}.alert-room{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.alert-item{font-size:13px;line-height:1.35;text-align:left;overflow-wrap:anywhere}.alert-row.manage .alert-mark{background:var(--amber)}.alert-row.cash .alert-mark{background:var(--blue)}.alert-row.todo .alert-mark{background:#8b62b0}@media(max-width:360px){.alert-row{grid-template-columns:8px minmax(0,1fr) minmax(0,1fr);gap:7px}.alert-detail{display:none}}.alert-card .alert-row:nth-child(odd){background:#f8fbf9}.alert-card .alert-row:nth-child(even){background:#eef7f2}.alert-card .alert-row:hover{background:#e6f3eb}.alert-room{font-weight:700;color:#53685d}.alert-item{padding-left:10px;border-left:1px solid #d7e7de}.alert-card .alert-row.room-0{background:#edf8f1}.alert-card .alert-row.room-1{background:#edf6fb}.alert-card .alert-row.room-2{background:#f4effb}.alert-card .alert-row.room-3{background:#fff6e8}.alert-card .alert-row.room-4{background:#fdf0f1}.alert-card .alert-row.room-5{background:#eef7f4}.alert-card .alert-row.room-6{background:#f5f6ea}.alert-card .alert-row.room-none{background:#fafbfa}.alert-card .alert-row.room-0{background:#eef6f1}.alert-card .alert-row.room-1{background:#f3f7f4}.alert-card .alert-row.room-2{background:#eaf2ed}.alert-card .alert-row.room-3{background:#f6f8f7}.alert-card .alert-row.room-4{background:#edf5f0}.alert-card .alert-row.room-5{background:#f2f6f3}.alert-card .alert-row.room-6{background:#e8f0eb}.alert-card .alert-row.room-none{background:#fafbfa}.page .alert-card .alert-head{background:#087a4b;color:#fff;border-bottom:0}.alert-card .alert-row.room-0{background:#e8f5ee}.alert-card .alert-row.room-1{background:#e8f1fa}.alert-card .alert-row.room-2{background:#f3ecfb}.alert-card .alert-row.room-3{background:#fff2e2}.alert-card .alert-row.room-4{background:#fbecef}.alert-card .alert-row.room-5{background:#e6f6f7}.alert-card .alert-row.room-6{background:#f7f1e4}.alert-card .alert-row.room-none{background:#fafbfa}.alert-item{display:flex;align-items:center;justify-content:space-between;gap:7px}.alert-item b{font-size:13px;line-height:1.35}.alert-meta{flex:0 0 auto;padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.72);color:#9b6200;font-size:10px;font-weight:800;white-space:nowrap}.alert-row.manage .alert-meta{background:#fff4d9;color:#9b6200}.alert-row.stock .alert-meta{background:rgba(255,255,255,.76);color:#087a4b}.collection-record{padding:8px 12px;border-radius:8px;background:#e9f7f0;color:#087a4b;font-size:12px;font-weight:800;white-space:nowrap}.collection-head,.collection-row{display:grid;grid-template-columns:1.25fr .9fr .55fr .8fr;gap:5px;align-items:center}.collection-head{padding:10px 12px 7px;color:var(--muted);font-size:10px}.collection-row{padding:12px 10px;border-top:1px solid var(--line);font-size:12px}.collection-row b{font-size:13px}.collection-record{width:100%;padding:10px 6px;background:#087a4b;color:#fff;border-radius:8px;font-size:12px;font-weight:800}@media(max-width:360px){.collection-head,.collection-row{grid-template-columns:1.2fr .9fr .55fr .75fr;gap:3px}.collection-row{padding:11px 7px;font-size:11px}.collection-row b{font-size:12px}.collection-record{padding:9px 3px}}.collection-overdue{color:var(--red);font-weight:800}
.restock-guide{margin:14px 0;padding:11px 12px;border-radius:9px;background:#fff4df;color:#734900;display:grid;gap:4px}.restock-guide span{font-size:11px;font-weight:800}.restock-guide b{font-size:13px;line-height:1.45;white-space:pre-wrap}
.guide-inputs{display:grid;grid-template-columns:1fr 110px;gap:8px}.guide-inputs input,.guide-inputs select{min-width:0}

/* 初期化前に旧UIが一瞬見えるのを防ぐための読み込み表示 */
.inventory-boot-splash{position:fixed;z-index:100;inset:0;display:grid;place-items:center;color:#5f6c66;background:#f6f6f6;font-size:13px}.inventory-loading #app{visibility:hidden}

/* 共通デザインシステム: 白・薄グレーを基調にした静かな業務アプリUI。 */
:root{--green:#087a4b;--green-light:#edf7f1;--ink:#222;--muted:#757575;--line:#e5e5e5;--bg:#f6f6f6;--red:#087a4b;--amber:#087a4b;--blue:#087a4b;--shadow:none;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}body{background:var(--bg);font-weight:400;color:var(--ink)}button,input,select,textarea{font-family:inherit}.shell{max-width:520px;background:#fff}.top{height:64px;padding:10px 16px;border-color:var(--line);background:rgba(255,255,255,.98)}.title{font-size:16px;font-weight:600}.icon-btn{color:#444;font-size:20px}.page{padding:18px 16px}.welcome h1{margin:3px 0;font-size:20px;font-weight:600;letter-spacing:0}.welcome p,.muted{color:var(--muted);font-size:12px}.section{margin:18px 0}.section-title{color:var(--ink);font-size:14px;font-weight:600}.card{border-color:var(--line);border-radius:8px;box-shadow:none}.summary-row,.list-row{gap:10px;padding:12px;border-color:var(--line)}.emoji,.room-initial,.home-menu-icon{color:var(--green)!important;background:var(--green-light)!important;border-radius:8px;font-weight:600}.row-title,.home-menu-name{color:var(--ink);font-weight:600}.row-detail,.home-menu-detail{color:var(--muted)}.count,.home-menu-count{color:var(--green);font-weight:600}.quick{gap:7px}.quick button{border-color:var(--line);border-radius:8px;box-shadow:none;font-weight:500}.quick button:active,.home-menu-item:active{transform:none;background:#fafafa}.notice,.restock-guide{color:#555;border-color:var(--line);border-left:3px solid var(--green);border-radius:7px;background:#fafafa}.select,.add input,.notes,.modal input,.modal select,.guide-inputs input,.guide-inputs select{color:var(--ink);border-color:#d7d7d7;border-radius:6px;background:#fff;font-weight:400}.select{padding:11px}.table-head,.collection-head,.clean-head{color:var(--muted);font-weight:400}.inventory-row,.collection-row,.clean-row{border-color:var(--line)}.inventory-row b,.collection-row b,.clean-row b{font-weight:500}.badge{color:#555!important;border-radius:4px;background:#f3f3f3!important;font-weight:500}.ok{color:var(--green)!important;background:var(--green-light)!important}.low,.urgent{color:#555!important;background:#f3f3f3!important}.primary,.add button,.collection-record{border-radius:6px;background:var(--green);box-shadow:none;font-weight:600}.primary:hover,.add button:hover,.collection-record:hover{background:#06663e}.tabs{border-color:var(--line)}.tabs button{color:var(--muted);font-weight:500}.tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.check{border-color:#c9c9c9;border-radius:50%}.check.done{background:var(--green);border-color:var(--green)}.alert-head,.page .alert-card .alert-head{color:var(--ink);background:#fafafa;border-color:var(--line);font-weight:600}.alert-row,.alert-card .alert-row:nth-child(odd),.alert-card .alert-row:nth-child(even),.alert-card .alert-row.room-0,.alert-card .alert-row.room-1,.alert-card .alert-row.room-2,.alert-card .alert-row.room-3,.alert-card .alert-row.room-4,.alert-card .alert-row.room-5,.alert-card .alert-row.room-6,.alert-card .alert-row.room-none{background:#fff}.alert-card .alert-row:hover{background:#fafafa}.alert-mark,.alert-row.manage .alert-mark,.alert-row.cash .alert-mark,.alert-row.todo .alert-mark{background:var(--green)}.alert-room{color:#555;font-weight:500}.alert-item{border-color:var(--line)}.alert-meta,.alert-row.manage .alert-meta,.alert-row.stock .alert-meta{color:#555;background:#f3f3f3;font-weight:500}.todo{border-color:var(--line)}.todo input{accent-color:var(--green)}.due{color:#555;background:#f3f3f3;border-radius:4px;font-weight:500}.bottom{height:70px;background:#fff;border-color:var(--line)}.nav{color:var(--muted);font-weight:400}.nav.active{color:var(--green);font-weight:600}.modal{background:rgba(0,0,0,.24)}.modal-box{border-radius:12px 12px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom))}.modal h2{color:var(--ink);font-size:16px;font-weight:600}.modal label{color:#555;font-weight:500}.modal-actions button{border-radius:6px;font-weight:500}.secondary{color:#444;background:#f1f1f1}.home-menu{gap:10px;margin-top:18px}.home-menu-item{min-height:138px;padding:16px 13px;border-color:var(--line);border-radius:9px;box-shadow:none}.home-menu-item:last-child{min-height:90px}.home-menu-item:nth-child(2) .home-menu-icon,.home-menu-item:nth-child(3) .home-menu-icon,.home-menu-item:nth-child(4) .home-menu-icon,.home-menu-item:nth-child(5) .home-menu-icon{color:var(--green)!important;background:var(--green-light)!important}.home-menu-icon{width:42px;height:42px;margin-bottom:12px!important;font-size:20px}.collection-record{width:100%;padding:9px 6px}.collection-overdue{color:var(--green);font-weight:600}@media(min-width:521px){body{padding:16px}.shell{border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.05)}.bottom{bottom:16px;border-radius:0 0 12px 12px}}
