:root{--bg: #f7f4f0;--surface: #ffffff;--fg: #2a2420;--muted: #6e645c;--line: #e4ddd5;--accent: #8c3b33;--accent-ink: #ffffff;--accent-soft: #f4e4e1;--ok: #2e7550;--ng: #b0412f;--c-kazunori: #3a6ea5;--c-mayumi: #b44c74;--c-hidemasa: #3f7d4a;--c-aya: #b57a12;--f-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;--f-head: "Zen Maru Gothic", "BIZ UDPGothic", "Hiragino Maru Gothic ProN", sans-serif;--tap: 48px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #1c1917;--surface: #26221f;--fg: #f0ebe6;--muted: #b3a89f;--line: #3b3531;--accent: #e08f84;--accent-ink: #1c1917;--accent-soft: #3b2624;--ok: #7fc89e;--ng: #f08a78;--c-kazunori: #7fb0e3;--c-mayumi: #e89ab8;--c-hidemasa: #8fcb98;--c-aya: #e6b75c;color-scheme:dark}}html{font-size:17px;-webkit-text-size-adjust:100%}html[data-size=l]{font-size:19px}html[data-size=xl]{font-size:22px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--f-body);line-height:1.7}button{font:inherit;color:inherit}h1,h2,h3{font-family:var(--f-head);line-height:1.35;margin:0;text-wrap:balance}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.app{min-height:100dvh}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top,0px) + 10px) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));background:var(--surface);border-bottom:1px solid var(--line)}.topbar-title{flex:1;min-width:0;display:flex;flex-direction:column}.channel{font-size:.72rem;color:var(--muted);letter-spacing:.04em}.topbar h1{font-size:1.3rem}.menu-button{width:var(--tap);height:var(--tap);border:0;border-radius:12px;background:var(--accent-soft);display:grid;place-content:center;gap:5px;cursor:pointer}.menu-button span{display:block;width:24px;height:3px;border-radius:2px;background:var(--accent)}.page{max-width:960px;margin:0 auto;padding-block:16px calc(env(safe-area-inset-bottom,0px) + 32px);padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}.stack{display:flex;flex-direction:column;gap:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:8px;min-width:0}.card h2{font-size:1.15rem}.card p{margin:0}.muted{color:var(--muted)}.status{font-size:.85rem;color:var(--muted);margin:0}.status.ok:before{content:"●";color:var(--ok);margin-right:6px}.status.down:before{content:"●";color:var(--ng);margin-right:6px}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20}.scrim.show{opacity:1;pointer-events:auto}.drawer{position:fixed;top:0;right:0;bottom:0;width:min(320px,86vw);background:var(--surface);z-index:30;transform:translate(100%);transition:transform .22s ease-out;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 10px) max(12px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 12px) 12px;box-shadow:-8px 0 24px #0000001f}.drawer.open{transform:none}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px;font-family:var(--f-head);font-weight:700}.close-button{width:var(--tap);height:var(--tap);border:0;background:transparent;font-size:1.6rem;cursor:pointer}.drawer-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.drawer-list a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:var(--tap);padding:6px 12px;border-radius:10px;color:var(--fg);text-decoration:none}.drawer-list a:hover{background:var(--bg)}.drawer-list a.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.badge{font-size:.7rem;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:0 8px;white-space:nowrap}.drawer-foot{border-top:1px solid var(--line);padding:12px 4px 0;display:flex;flex-direction:column;gap:6px}.foot-label{font-size:.8rem;color:var(--muted)}.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.seg button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--bg);cursor:pointer}.seg button.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:700}.planned p{color:var(--muted)}.who{display:flex;align-items:center;gap:8px;font-size:.85rem;padding-bottom:6px}.who-dot{width:12px;height:12px;border-radius:50%;flex:none}.text-button{margin-top:6px;min-height:44px;border:0;background:transparent;color:var(--muted);text-decoration:underline;cursor:pointer;align-self:flex-start}.small{font-size:.85rem}.center-screen{min-height:100dvh;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}.login-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px 24px;display:flex;flex-direction:column;gap:14px;text-align:center}.login-card h1{font-size:1.6rem}.login-card p{margin:0}.notice{background:var(--accent-soft);color:var(--fg);border-radius:10px;padding:10px 12px;text-align:left}.primary-button{display:inline-flex;justify-content:center;align-items:center;min-height:56px;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:1.1rem;text-decoration:none}.search,.field select,.field-edit input,.field-edit textarea{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 12px;min-height:var(--tap);width:100%;min-width:0}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:99px;background:var(--bg);cursor:pointer}.chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:700}.field{display:block}.field>span{font-size:.85rem;color:var(--muted);margin-bottom:4px;display:block}.text-button.inline{margin:0;min-height:36px;padding:0 4px;align-self:auto}.video-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.video-date{font-weight:700}.video-no{color:var(--muted);font-size:.9rem}.badge.warn{color:var(--ng);border-color:var(--ng)}.pips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}.pips li{font-size:.72rem;line-height:1;padding:5px 7px;border-radius:6px;border:1px dashed var(--line);color:var(--muted)}.pips li.done{border:1px solid var(--ok);background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ok)}.app:has(.sheet-page){height:100dvh;display:flex;flex-direction:column}.app:has(.sheet-page) .page{flex:1;min-height:0;width:100%;max-width:none;display:flex;flex-direction:column;padding-block:10px calc(env(safe-area-inset-bottom,0px) + 10px)}.sheet-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.sheet-panel{display:flex;flex-direction:column;gap:8px}details.sheet-panel{display:block}details.sheet-panel>*+*{margin-top:8px}details.sheet-panel>summary{cursor:pointer;min-height:44px;display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;padding:4px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:.88rem}.sheet-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.ctl{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.ctl>span{font-size:.8rem;color:var(--muted);white-space:nowrap}.sheet-page select,.sheet-page input[type=search],.sheet-page input[type=date]{font:inherit;font-size:.9rem;color:inherit;height:40px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0 8px;max-width:100%}.sheet-page input[type=search]{width:15em}.sheet-page .chip{min-height:36px;padding:0 12px;font-size:.88rem}.chip.person.on{background:var(--c);border-color:var(--c);color:var(--surface)}.sheet-count{margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}.sheet-more{border-top:1px solid var(--line);padding-top:2px}.sheet-more summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-size:.88rem;color:var(--muted)}.sheet-more[open] summary{margin-bottom:6px}.check-inline{display:flex;align-items:center;gap:6px;min-height:36px;font-size:.88rem;cursor:pointer}.check-inline input{width:20px;height:20px;accent-color:var(--accent)}.sheet-wrap{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.sheet-table{border-collapse:separate;border-spacing:0;font-size:.85rem;line-height:1.5}.sheet-table th,.sheet-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:6px 8px;vertical-align:top;text-align:left;background:var(--surface)}.sheet-table thead th{position:sticky;top:0;z-index:3;font-size:.78rem;font-weight:700;color:var(--muted);white-space:nowrap}.sheet-table thead tr.group th{height:2rem;padding-block:0;line-height:2rem;font-size:.72rem;text-align:center;border-bottom:0}.sheet-table thead tr.cols th{top:2rem}.sheet-table th.sorted{color:var(--accent)}.sheet-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sheet-table td.num.sorted{background:var(--accent-soft);font-weight:700}.sheet-table tbody tr{cursor:pointer}.sheet-table tbody tr:hover td{background:var(--bg)}.sheet-table tr.today td{background:var(--accent-soft)}.sheet-table tr.sep td{background:var(--bg);color:var(--muted);font-size:.78rem;padding-block:2px;cursor:default}.sep-label{position:sticky;left:8px}.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.w-s{width:7em;min-width:7em}.w-m{width:11em;min-width:11em}.w-l{width:15em;min-width:15em}.w-xl{width:18em;min-width:18em}.no-cell{width:6.5em;min-width:6.5em}.no-cell a{font-weight:700;color:var(--fg);text-decoration:none}.thumb-cell{width:11em;min-width:11em}.thumb-cell img{display:block;width:100%;max-width:100%;aspect-ratio:16 / 9;object-fit:cover;border-radius:4px;background:var(--bg);margin-bottom:4px}.date-cell{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}.date-year{display:block;font-size:.72rem;font-weight:400;color:var(--muted)}.stage-cell{min-width:9em}.stage{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}.stage b{color:var(--accent)}.stage.done b{color:var(--ok)}.who-chip{font-size:.75rem;padding:0 7px;border-radius:99px;background:var(--c, var(--muted));color:var(--surface);white-space:nowrap}.who-text{font-size:.8rem}.privacy-note{display:block;font-size:.75rem;color:var(--muted)}.sheet-wrap .empty{padding:12px;margin:0}.today-button{position:fixed;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:9;min-height:52px;padding:0 18px;border:0;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-weight:700;box-shadow:0 3px 10px #00000040;cursor:pointer}@media(max-width:640px){.sheet-controls{gap:8px}.sheet-count{margin-left:0;width:100%}.thumb-cell{width:8.5em;min-width:8.5em}}.back-link{color:var(--accent);text-decoration:none;min-height:var(--tap);display:inline-flex;align-items:center;align-self:flex-start}.toast{margin:0;padding:10px 12px;border-radius:10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.toast.ok{background:color-mix(in srgb,var(--ok) 14%,var(--surface))}.toast.ng{background:var(--accent-soft)}.check-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.check-row{display:flex;align-items:center;gap:12px;min-height:var(--tap);padding:4px 2px;border-bottom:1px solid var(--line);cursor:pointer}.check-list li:last-child .check-row{border-bottom:0}.check-row input{width:24px;height:24px;accent-color:var(--ok);flex:none}.check-row.busy{opacity:.6}.check-label{font-weight:700}.check-state{margin-left:auto;font-size:.85rem;color:var(--muted)}.check-state.done{color:var(--ok);font-weight:700}.more summary{cursor:pointer;color:var(--muted);min-height:40px;display:flex;align-items:center}.fields{margin:0;display:flex;flex-direction:column;gap:12px}.fields dt{font-size:.85rem;color:var(--muted);display:flex;align-items:center;gap:8px}.fields dd{margin:0;overflow-wrap:anywhere}.fields dd.pre{white-space:pre-wrap}.edit-button{border:1px solid var(--line);background:var(--bg);border-radius:8px;font-size:.8rem;padding:2px 10px;min-height:32px;cursor:pointer}.field-edit textarea{line-height:1.6;resize:vertical;field-sizing:content;min-height:6lh;max-height:60vh}.edit-buttons{display:flex;align-items:center;gap:10px;margin-top:8px}.small-primary{min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-weight:700;cursor:pointer}.small-primary:disabled{opacity:.5;cursor:default}@media(prefers-reduced-motion:reduce){.drawer,.scrim{transition:none}}
