:root{font-family:Noto Sans JP,sans-serif;color:#25231f;background:#f4efe5;font-synthesis:none;--ink: #25231f;--orange: #d95d39;--paper: #fbf7ef;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;min-width:320px;min-height:100%}body{min-height:100vh;background:radial-gradient(circle at 10% 10%,rgba(217,93,57,.06),transparent 26rem),#f4efe5}button,textarea,input{font:inherit}button{-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{min-height:92px;padding:20px clamp(22px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fbf7efeb;border-bottom:1px solid #d7cfc1;box-shadow:0 4px 22px #342b1e0f;z-index:10}.brand{display:flex;align-items:center;gap:15px}.brand-mark{width:22px;height:28px;background:var(--orange);transform:rotate(-5deg);box-shadow:4px 4px #f0b24d}.brand h1{margin:0;font:700 clamp(1.1rem,2vw,1.45rem)/1.1 "Noto Sans JP",sans-serif;letter-spacing:.04em}.brand p{margin:5px 0 0;color:#7b7469;font-size:.75rem}.header-actions{display:flex;align-items:center;gap:clamp(18px,3vw,34px)}.utility-actions{display:flex;align-items:center;gap:18px}.theme-toggle{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:1px solid #c4b9a9;border-radius:50%;color:#5f584e;background:#f8f3ea;font-size:1.15rem;cursor:pointer}.theme-toggle:hover{background:#fffaf1}.theme-toggle:focus-visible{outline:3px solid rgba(42,102,144,.38);outline-offset:2px}.theme-toggle .sun-icon{display:none}.theme-toggle .moon-icon{display:block}.add-note-control{position:relative}.save-status{display:flex;align-items:center;gap:8px;color:#716a5f;font-size:.76rem;white-space:nowrap}.save-status span{width:7px;height:7px;border-radius:50%;background:#6a8e61;box-shadow:0 0 0 4px #6a8e611f}.save-status.saving span{background:#d49a35}.add-button{min-height:48px;padding:0 22px;border:1px solid #a53e26;border-radius:6px;color:#fff;background:var(--orange);box-shadow:0 4px #a53e26;font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.add-button:hover{background:#c94f2e}.add-button:active{transform:translateY(3px);box-shadow:0 1px #a53e26}.add-button:focus-visible,.delete-button:focus-visible,.note-text:focus-visible{outline:3px solid rgba(42,102,144,.38);outline-offset:2px}.new-color-menu{position:absolute;top:calc(100% + 11px);right:0;width:210px;padding:10px;border:1px solid #c8bfb0;border-radius:8px;background:#fffaf1;box-shadow:0 12px 30px #342b1e2e;z-index:50}.new-color-menu[hidden]{display:none}.new-color-menu:before{content:"";position:absolute;top:-6px;right:26px;width:10px;height:10px;border-left:1px solid #c8bfb0;border-top:1px solid #c8bfb0;background:#fffaf1;transform:rotate(45deg)}.new-color-menu p{margin:3px 8px 8px;color:#716a5f;font-size:.72rem;font-weight:700}.new-color-menu button{width:100%;min-height:42px;padding:0 10px;display:flex;align-items:center;gap:10px;border:0;border-radius:5px;color:var(--ink);background:transparent;cursor:pointer;text-align:left}.new-color-menu button:hover,.new-color-menu button:focus-visible{background:#eee7da;outline:none}.color-dot{width:18px;height:18px;display:inline-block;border:1px solid rgba(61,50,32,.25);border-radius:50%;box-shadow:inset 0 1px 1px #ffffff8c}.color-dot.yellow{background:#f8df78}.color-dot.pink{background:#efb0ae}.color-dot.blue{background:#a9d9db}.color-dot.green{background:#b9d48e}.project-bar{min-height:58px;padding:8px clamp(14px,3.5vw,52px);display:flex;align-items:center;gap:14px;border-bottom:1px solid #d7cfc1;background:#efe9deeb}.project-tabs{min-width:0;flex:1;display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:2px 1px 5px}.project-tab{min-height:38px;flex:0 0 auto;max-width:220px;padding:0 16px;overflow:hidden;border:1px solid transparent;border-radius:6px;color:#6d665b;background:transparent;font-size:.8rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.project-tab:hover{background:#ffffff73}.project-tab[aria-pressed=true]{border-color:#b8ad9d;color:#39352f;background:#fbf7ef;box-shadow:0 2px 5px #41311b14}.project-tab:focus-visible,.project-actions button:focus-visible{outline:2px solid rgba(42,102,144,.55);outline-offset:1px}.project-actions{flex:0 0 auto;display:flex;gap:5px}.project-actions button{min-height:38px;padding:0 11px;border:1px solid #c4b9a9;border-radius:5px;color:#5f584e;background:#f8f3ea;font-size:.72rem;font-weight:700;cursor:pointer}.project-actions button:hover{background:#fffaf1}.project-actions .danger{color:#99432f}.project-dialog{width:min(430px,calc(100vw - 28px));padding:0;border:1px solid #b9ad9d;border-radius:10px;color:var(--ink);background:#fbf7ef;box-shadow:0 24px 60px #2f271c4d}.project-dialog::backdrop{background:#2d27207a;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.project-dialog form{padding:26px}.project-dialog h2{margin:0 0 21px;font-size:1.1rem}.project-name-field{display:grid;gap:8px;color:#655e54;font-size:.76rem;font-weight:700}.project-name-field[hidden],.project-delete-warning[hidden]{display:none}.project-name-field input{width:100%;height:48px;padding:0 13px;border:1px solid #bdb1a1;border-radius:6px;color:var(--ink);background:#fff;font-size:.95rem;outline:none}.project-name-field input:focus{border-color:#7f7162;box-shadow:0 0 0 3px #7f716226}.project-delete-warning{margin:0;padding:14px;border:1px solid #dab3a8;border-radius:6px;color:#7d3526;background:#f8e8e3;font-size:.8rem;line-height:1.7}.form-error{min-height:20px;margin:7px 0 0;color:#a33e2a;font-size:.72rem}.dialog-actions{margin-top:13px;display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{min-height:44px;padding:0 17px;border-radius:6px;font-size:.78rem;font-weight:700;cursor:pointer}.dialog-cancel{border:1px solid #c4b9a9;color:#655e54;background:transparent}.dialog-submit{border:1px solid #a53e26;color:#fff;background:var(--orange)}.dialog-submit.danger{border-color:#812d20;background:#a33e2a}.dialog-actions button:focus-visible{outline:3px solid rgba(42,102,144,.38);outline-offset:2px}.board-wrap{flex:1;min-height:0;padding:clamp(18px,3vw,36px) clamp(14px,3.5vw,52px) 22px;display:flex;flex-direction:column}.board-tools{min-height:56px;display:flex;align-items:flex-start;gap:18px}.search-box{width:min(390px,100%);height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #c8bfb0;border-radius:7px;background:#fbf7efe0;box-shadow:0 2px 7px #41311b0d}.search-box:focus-within{border-color:#8b7967;box-shadow:0 0 0 3px #8b796724}.search-icon{width:14px;height:14px;flex:0 0 auto;border:2px solid #81786c;border-radius:50%;position:relative}.search-icon:after{content:"";position:absolute;width:6px;height:2px;right:-5px;bottom:-3px;border-radius:2px;background:#81786c;transform:rotate(45deg)}.search-box input{width:100%;min-width:0;border:0;outline:0;color:var(--ink);background:transparent;font-size:.86rem}.search-box input::placeholder{color:#91897d}.search-box input::-webkit-search-cancel-button{cursor:pointer}.status-filter{height:42px;display:flex;padding:3px;border:1px solid #c8bfb0;border-radius:7px;background:#fbf7efe0}.status-filter button{min-width:64px;padding:0 12px;border:0;border-radius:4px;color:#716a5f;background:transparent;font-size:.76rem;font-weight:700;cursor:pointer}.status-filter button[aria-pressed=true]{color:#fff;background:#5d594f;box-shadow:0 2px 5px #302a202e}.status-filter button:focus-visible{outline:2px solid rgba(42,102,144,.55);outline-offset:1px}.arrange-button{height:42px;padding:0 14px;border:1px solid #b8ad9d;border-radius:7px;color:#5f584e;background:#fbf7efe0;font-size:.76rem;font-weight:700;white-space:nowrap;cursor:pointer}.arrange-button span{margin-right:4px;font-size:1rem}.arrange-button:hover{background:#fffaf1}.arrange-button:disabled{opacity:.42;cursor:not-allowed}.arrange-button:focus-visible{outline:2px solid rgba(42,102,144,.55);outline-offset:1px}.search-count{margin:10px 2px 0 auto;color:#716a5f;font:500 .78rem DM Mono,monospace;white-space:nowrap}.board-area{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:16px}.board{position:relative;flex:1;min-height:calc(100vh - 280px);overflow:hidden;border:1px solid #c8bfb0;border-radius:10px;background-color:#e9e1d3;background-image:radial-gradient(#c7bdac 1px,transparent 1.2px);background-size:24px 24px;box-shadow:inset 0 1px 5px #41311b14,0 8px 24px #41311b0f;touch-action:none}.board.drag-active{overflow:visible;z-index:20}.completion-zone{position:relative;z-index:1;min-height:100%;padding:26px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed #afa392;border-radius:10px;color:#766e62;background:#f4efe5a6;text-align:center;transition:border-color .16s,background .16s,transform .16s,box-shadow .16s}.completion-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:13px;border:2px solid #8d9d7b;border-radius:50%;color:#667a55;font:700 1.5rem DM Mono,monospace}.completion-zone h2{margin:0;color:#4f4a42;font-size:.95rem}.completion-zone p{margin:9px 0 18px;font-size:.72rem;line-height:1.7}.completion-zone strong{padding:6px 11px;border-radius:999px;color:#667a55;background:#8d9d7b24;font-size:.7rem}.completion-zone.ready{z-index:10;border-color:#879b73;background:#b9d48e21}.completion-zone.drag-over{border-color:#61794a;background:#b9d48e4d;box-shadow:inset 0 0 0 4px #61794a1a,0 8px 22px #4152301f;transform:scale(1.015)}.board:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(130deg,rgba(255,255,255,.2),transparent 42%)}.board-hint{margin:12px 0 0;color:#8b8377;font-size:.72rem;text-align:right}.empty-state{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;text-align:center;color:#716a5f;pointer-events:none}.empty-state.hidden{display:none}.empty-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:14px;border:1px dashed #9f9586;border-radius:8px;font:400 1.6rem DM Mono;color:#8b8377;transform:rotate(-3deg)}.empty-state p{margin:0 0 7px;font-weight:700}.empty-state small{font-size:.75rem;color:#8b8377}.note{position:absolute;width:230px;height:190px;display:flex;flex-direction:column;border:1px solid rgba(83,69,42,.18);border-radius:1px 2px 3px 1px;box-shadow:1px 2px 2px #46361d21,5px 9px 15px #46361d38,12px 18px 28px #46361d17;transform:rotate(var(--tilt, 0deg));transform-origin:50% 10%;transition:box-shadow .15s,transform .15s}.note:after{content:"";position:absolute;right:0;bottom:0;width:42px;height:26px;border-radius:100% 0 0;background:linear-gradient(145deg,transparent 45%,rgba(255,255,255,.22));box-shadow:inset -2px -2px 3px #4f3e1f0f;pointer-events:none}.note.dragging{box-shadow:3px 5px 5px #382b171f,12px 20px 34px #382b1747;transform:rotate(0) scale(1.025);z-index:1000!important}.board.is-arranging .note{transition:left .32s ease,top .32s ease,box-shadow .15s,transform .15s}.note.filtered-out{display:none}.note.completed{filter:saturate(.55);opacity:.76}.note.completed .note-text{color:#5f5b53;text-decoration:line-through;text-decoration-thickness:1px}.note[data-color=yellow]{background:linear-gradient(145deg,#fae790,#f8df78 52%,#f2d66c)}.note[data-color=pink]{background:linear-gradient(145deg,#f3c0bd,#efb0ae 52%,#e9a4a2)}.note[data-color=blue]{background:linear-gradient(145deg,#bde3e4,#a9d9db 52%,#9ccfd2)}.note[data-color=green]{background:linear-gradient(145deg,#c9dfa7,#b9d48e 52%,#aec982)}.note-bar{min-height:44px;padding:5px 6px 4px 12px;display:flex;align-items:center;justify-content:space-between;gap:5px;cursor:grab;border-bottom:1px solid rgba(80,60,25,.11);touch-action:none}.note-bar:active{cursor:grabbing}.grip{color:#372e1e73;font:500 1rem DM Mono;letter-spacing:2px;-webkit-user-select:none;user-select:none}.complete-button{width:30px;height:32px;flex:0 0 auto;padding:0;border:1px solid rgba(65,58,45,.28);border-radius:50%;color:transparent;background:#ffffff2e;font-weight:700;cursor:pointer}.complete-button:hover{color:#413a2d8c;background:#ffffff4d}.complete-button[aria-pressed=true]{border-color:#596b48;color:#fff;background:#71865d;box-shadow:0 2px 4px #37452a38}.complete-button:focus-visible{outline:2px solid rgba(42,102,144,.55);outline-offset:1px}.note-colors{display:flex;align-items:center;gap:2px}.color-choice{width:27px;height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;cursor:pointer}.color-choice .color-dot{width:15px;height:15px;transition:transform .12s,box-shadow .12s}.color-choice:hover{background:#ffffff4d}.color-choice.selected .color-dot{transform:scale(1.13);box-shadow:0 0 0 2px #302a1fad,inset 0 1px 1px #ffffff8c}.color-choice:focus-visible{outline:2px solid rgba(42,102,144,.55);outline-offset:0}.delete-button{width:36px;height:36px;padding:0;border:0;border-radius:50%;color:#31291d9e;background:transparent;font-size:1.3rem;cursor:pointer}.delete-button:hover{background:#ffffff59;color:#7f291e}.note-text{flex:1;width:100%;padding:12px 16px 16px;resize:none;border:0;outline:0;color:#312c24;background:transparent;font-family:Zen Kurenaido,Noto Sans JP,sans-serif;font-size:1.08rem;line-height:1.75;letter-spacing:.025em}.note-text::placeholder{color:#4136247a}html[data-theme=dark]{color-scheme:dark;color:#eee8df;background:#1b1917}[data-theme=dark] body{color:#eee8df;background:radial-gradient(circle at 10% 10%,rgba(217,93,57,.08),transparent 26rem),#1b1917}[data-theme=dark] .app-header{background:#24211df2;border-color:#464038;box-shadow:0 4px 22px #0003}[data-theme=dark] .brand p,[data-theme=dark] .save-status,[data-theme=dark] .search-count,[data-theme=dark] .board-hint{color:#aaa196}[data-theme=dark] .theme-toggle{border-color:#554e45;color:#f3d27b;background:#302c27}[data-theme=dark] .theme-toggle:hover{background:#39342e}[data-theme=dark] .theme-toggle .sun-icon{display:block}[data-theme=dark] .theme-toggle .moon-icon{display:none}[data-theme=dark] .project-bar{border-color:#464038;background:#1f1c19f5}[data-theme=dark] .project-tab{color:#b8afa4}[data-theme=dark] .project-tab:hover{background:#ffffff0f}[data-theme=dark] .project-tab[aria-pressed=true]{border-color:#5d554b;color:#f3ede5;background:#322e29;box-shadow:0 2px 5px #0003}[data-theme=dark] .project-actions button,[data-theme=dark] .arrange-button{border-color:#554e45;color:#c9c0b5;background:#302c27}[data-theme=dark] .project-actions button:hover,[data-theme=dark] .arrange-button:hover{background:#39342e}[data-theme=dark] .project-actions .danger{color:#ef9c88}[data-theme=dark] .search-box,[data-theme=dark] .status-filter{border-color:#554e45;background:#2f2b26eb;box-shadow:0 2px 7px #0000002e}[data-theme=dark] .search-box input{color:#eee8df}[data-theme=dark] .search-box input::placeholder{color:#8f877e}[data-theme=dark] .search-icon{border-color:#a79e93}[data-theme=dark] .search-icon:after{background:#a79e93}[data-theme=dark] .status-filter button{color:#aaa196}[data-theme=dark] .status-filter button[aria-pressed=true]{color:#1d1b18;background:#d6cec3}[data-theme=dark] .board{border-color:#50493f;background-color:#292621;background-image:radial-gradient(#514a40 1px,transparent 1.2px);box-shadow:inset 0 1px 7px #0000004d,0 8px 24px #00000026}[data-theme=dark] .board:before{background:linear-gradient(130deg,rgba(255,255,255,.025),transparent 42%)}[data-theme=dark] .empty-state,[data-theme=dark] .empty-state small{color:#aaa196}[data-theme=dark] .empty-icon{border-color:#6a6258;color:#aaa196}[data-theme=dark] .completion-zone{border-color:#5a534a;color:#aaa196;background:#272420b3}[data-theme=dark] .completion-zone h2{color:#ddd5cb}[data-theme=dark] .completion-zone.ready{border-color:#718060;background:#71865d1f}[data-theme=dark] .completion-zone.drag-over{border-color:#8ba373;background:#71865d42}[data-theme=dark] .new-color-menu,[data-theme=dark] .new-color-menu:before{border-color:#5a5248;background:#302c27}[data-theme=dark] .new-color-menu p{color:#aaa196}[data-theme=dark] .new-color-menu button{color:#eee8df}[data-theme=dark] .new-color-menu button:hover,[data-theme=dark] .new-color-menu button:focus-visible{background:#403a33}[data-theme=dark] .project-dialog{border-color:#5a5248;color:#eee8df;background:#2d2925}[data-theme=dark] .project-name-field{color:#c1b8ad}[data-theme=dark] .project-name-field input{border-color:#5d554b;color:#eee8df;background:#211e1b}[data-theme=dark] .dialog-cancel{border-color:#5d554b;color:#c9c0b5;background:transparent}[data-theme=dark] .project-delete-warning{border-color:#78483d;color:#efb2a3;background:#482c26}[data-theme=dark] .note{box-shadow:1px 2px 2px #00000047,5px 9px 17px #00000061,12px 18px 30px #0000002b}@media(max-width:767px){.app-header{min-height:128px;padding:14px 16px 16px;align-items:flex-start}.project-bar{min-height:104px;padding:8px 10px;flex-direction:column;align-items:stretch;gap:6px}.project-tabs{min-height:45px}.project-tab{min-height:42px;padding:0 14px}.project-actions{justify-content:flex-end}.project-actions button{min-height:42px}.brand{gap:11px;padding-top:3px}.brand-mark{width:17px;height:23px}.brand p{display:none}.header-actions{flex-direction:column-reverse;align-items:flex-end;gap:11px}.utility-actions{gap:11px}.theme-toggle{width:40px;height:40px}.save-status{margin:0;font-size:.65rem}.add-button{min-height:52px;padding:0 17px}.board-wrap{padding:12px 10px 14px}.board-tools{min-height:105px;flex-wrap:wrap;align-items:flex-start;gap:8px}.search-box{width:auto;height:46px;flex:1 1 calc(100% - 82px)}.arrange-button{height:46px;order:2}.status-filter{height:42px;order:3}.status-filter button{min-width:61px;padding:0 10px}.search-count{order:4;margin-top:13px;font-size:.7rem}.board-area{display:flex;flex-direction:column;gap:10px}.board{min-height:calc(100vh - 446px);background-size:20px 20px}.completion-zone{min-height:112px;padding:12px 16px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:12px;text-align:left}.completion-icon{width:42px;height:42px;grid-row:1 / 3;margin:0}.completion-zone h2{align-self:end}.completion-zone p{margin:2px 0 0;align-self:start;font-size:.66rem}.completion-zone p br{display:none}.completion-zone strong{grid-column:3;grid-row:1 / 3;align-self:center;white-space:nowrap}.board-hint{margin-top:7px;text-align:center}.note{width:210px;height:178px}.note-bar{min-height:48px}.grip{display:none}.complete-button{width:34px;height:38px}.delete-button{width:40px;height:40px}.color-choice{width:24px;height:40px}.color-choice .color-dot{width:17px;height:17px}.note-text{padding:10px 14px 14px;font-size:1.12rem}.empty-state small{max-width:240px;line-height:1.6}}@media(max-width:430px){.brand h1{font-size:.96rem}.add-button{padding:0 13px;font-size:.88rem}.new-color-menu{position:fixed;top:78px;right:12px;width:min(250px,calc(100vw - 24px))}.new-color-menu:before{right:28px}.save-status{font-size:.61rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
