:root{font-family:Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif;line-height:1.5;font-weight:400;color:#16181d;background:linear-gradient(180deg,#f6f8fc,#f2f4f7)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{border:1px solid #cfd4df;border-radius:10px;background:#fff;padding:.5rem .8rem;cursor:pointer;white-space:nowrap}button:disabled{opacity:.6;cursor:not-allowed}button.danger{color:#a32f2f;border-color:#e9b5b5}button.ghost{background:#f7f8fc}input:not([type=checkbox]),select{width:100%;border:1px solid #ccd2dd;border-radius:10px;padding:.55rem .7rem;background:#fff}#root{padding:1rem}.app-shell{width:min(920px,100%);margin:0 auto}.app-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.app-header h1{margin:0;font-size:1.5rem}.header-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.todo-input{display:block;margin-bottom:1rem}.todo-list-area{display:grid;gap:.85rem}.empty-state{margin:0;color:#5b6477;background:#fff;border:1px dashed #cfd6e3;border-radius:12px;padding:1rem}.todo-card{background:#fff;border:1px solid #dfe4ee;border-radius:14px;padding:.85rem;display:grid;gap:.7rem}.todo-card[draggable=true]{cursor:grab}.todo-card[draggable=true]:active{cursor:grabbing}.todo-dnd-block{display:grid;gap:.35rem}.todo-drop-zone{height:12px;border-radius:999px;background:transparent}.todo-drop-zone.is-active{background:#8db3ff59}.todo-card__header{display:flex;align-items:center;justify-content:space-between;gap:.8rem;cursor:pointer;padding:.5rem 0}.todo-card__main{display:flex;align-items:center;flex:1;min-width:0}.todo-card__actions{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end;cursor:default}.checkbox-line{display:flex;align-items:center;gap:.5rem;min-width:0}.checkbox-line span{min-width:0;overflow-wrap:anywhere}.todo-priority-badge{margin-left:auto;min-width:auto;overflow-wrap:normal;white-space:nowrap;border:1px solid #c9d5eb;border-radius:999px;padding:.1rem .5rem;font-size:.75rem;color:#2a4d88;background:#f3f8ff}.editable-text{cursor:text}.todo-card__main>.checkbox-line,.subtask-row>.checkbox-line{flex:1}.todo-card__header .checkbox-line,.todo-card__header .edit-block{cursor:default}.is-done{text-decoration:line-through;color:#798195}.subtask-list{margin:0;padding:0;list-style:none;display:grid;gap:.55rem}.subtask-row{display:flex;justify-content:space-between;align-items:center;gap:.6rem;border:1px solid #edf1f7;border-radius:10px;padding:.5rem .6rem;background:#fcfdff}.subtask-row__meta{display:flex;align-items:center;gap:.4rem;flex-shrink:0}.edit-block{display:grid;gap:.4rem;width:100%}.edit-actions{display:flex;gap:.4rem;flex-wrap:wrap}.error-text{margin:0;color:#9f2a2a;background:#fff5f5;border:1px solid #efc6c6;border-radius:8px;padding:.5rem .6rem}.modal-overlay{position:fixed;inset:0;background:#11161e6b;display:grid;place-items:center;padding:1rem}.modal{width:min(580px,100%);background:#fff;border-radius:14px;padding:1rem;border:1px solid #dbe2ef;display:grid;gap:.6rem}.modal h2{margin:0}.modal-note{margin:0;color:#5f6779;font-size:.9rem}.modal-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}@media(max-width:760px){#root{padding:.7rem}.todo-card__header,.subtask-row{flex-direction:column;align-items:flex-start}.todo-card__actions,.header-actions,.subtask-row__meta,.modal-actions{width:100%;justify-content:flex-start}}
