*{box-sizing:border-box}:root{color:#1f2937;background:#f6f7f9;font-family:Inter,Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif}body{background:#f6f7f9;min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh}.sidebar{z-index:10;background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;width:250px;height:100vh;padding:32px 22px;display:flex;position:fixed;top:0;left:0;overflow-y:auto}.sidebar-logo{cursor:pointer;margin-bottom:30px}.sidebar-logo h2{color:#172033;margin:0;font-size:21px;font-weight:700}.sidebar-logo p{color:#9ca3af;margin:7px 0 0;font-size:12px}.sidebar-create-button{color:#fff;text-align:left;background:#172033;border:none;border-radius:8px;width:100%;margin-bottom:30px;padding:11px 14px;font-size:18px;font-weight:600;transition:opacity .15s,transform .15s}.sidebar-create-button:hover{opacity:.9;transform:translateY(-1px)}.sidebar-notes{min-height:0}.sidebar-section-title{color:#9ca3af;letter-spacing:.05em;margin:0 9px 10px;font-size:11px;font-weight:700}.sidebar-note-list{flex-direction:column;gap:3px;display:flex}.sidebar-note{color:#4b5563;text-align:left;background:0 0;border:none;border-radius:7px;align-items:center;gap:7px;width:100%;padding:9px 10px;font-size:13px;transition:background .15s;display:flex}.sidebar-note:hover{background:#f3f4f6}.sidebar-note.selected{color:#172033;background:#eef2f7;font-weight:600}.sidebar-star{color:#d49a00;flex-shrink:0;font-size:12px}.sidebar-note-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-empty{color:#9ca3af;margin:10px;font-size:12px}.home{background:#f6f7f9;width:calc(100% - 250px);min-height:100vh;margin-left:250px;padding:52px 64px 80px}.home-header{justify-content:space-between;align-items:flex-start;gap:30px;max-width:900px;margin-bottom:30px;display:flex}.home-label{color:#9ca3af;margin:0 0 7px;font-size:12px;font-weight:600}.home-header h1{color:#172033;margin:0;font-size:30px;font-weight:700}.home-description{color:#6b7280;margin:10px 0 0;font-size:14px}.new-note-button{color:#fff;background:#172033;border:none;border-radius:8px;flex-shrink:0;padding:20px 40px;font-size:18px;font-weight:600;transition:opacity .15s,transform .15s}.new-note-button:hover{opacity:.9;transform:translateY(-1px)}.home-search{background:#fff;border:1px solid #dfe3e8;border-radius:9px;align-items:center;width:100%;max-width:900px;margin-bottom:42px;padding:0 15px;transition:border-color .15s,box-shadow .15s;display:flex}.home-search:focus-within{border-color:#aeb5bf;box-shadow:0 0 0 3px #1720330a}.home-search span{color:#9ca3af;margin-right:9px;font-size:18px}.home-search input{color:#1f2937;background:0 0;border:none;outline:none;width:100%;padding:13px 0;font-size:14px}.home-search input::placeholder{color:#9ca3af}.home-section{width:100%;max-width:900px;margin-bottom:42px}.section-title{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.section-title h2{color:#172033;margin:0;font-size:17px;font-weight:700}.note-count{color:#9ca3af;font-size:12px}.document-list{flex-direction:column;gap:9px;display:flex}.document-row{color:#1f2937;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:10px;justify-content:space-between;align-items:center;width:100%;padding:17px 19px;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex}.document-row:hover{border-color:#d1d5db;transform:translateY(-1px);box-shadow:0 4px 14px #0000000a}.document-row strong{color:#172033;font-size:14px;font-weight:600;display:block}.document-row p{color:#8a929f;margin:5px 0 0;font-size:12px}.document-arrow{color:#9ca3af;margin-left:20px;font-size:17px}.important-row{background:#fffaf0;border-color:#f1d997}.document-main{align-items:center;gap:12px;display:flex}.important-mark{color:#d49a00;font-size:16px}.empty-card{text-align:center;background:#fff;border:1px dashed #d1d5db;border-radius:10px;padding:35px 25px}.empty-card p{color:#9ca3af;margin:0;font-size:13px}.empty-card button{color:#fff;background:#172033;border:none;border-radius:7px;margin-top:15px;padding:9px 15px;font-size:12px}.editor{background:#f6f7f9;width:calc(100% - 250px);min-height:100vh;margin-left:250px;padding:52px 64px 80px}.editor-header{justify-content:space-between;align-items:flex-start;width:100%;max-width:900px;margin-bottom:30px;display:flex}.editor-header h1{color:#172033;margin:10px 0 0;font-size:28px}.back-button{color:#6b7280;background:0 0;border:none;padding:0;font-size:12px}.back-button:hover{color:#172033}.editor-form{width:100%;max-width:900px}.editor-field{flex-direction:column;gap:7px;margin-bottom:21px;display:flex}.editor-field label{color:#374151;font-size:12px;font-weight:600}.editor-field input,.editor-field select,.editor-field textarea{color:#1f2937;background:#fff;border:1px solid #d9dee5;border-radius:8px;outline:none;width:100%;padding:11px 13px;font-size:14px;transition:border-color .15s,box-shadow .15s}.editor-field input:focus,.editor-field select:focus,.editor-field textarea:focus{border-color:#aeb5bf;box-shadow:0 0 0 3px #1720330a}.editor-field textarea{resize:vertical;min-height:180px;line-height:1.6}.editor-row{grid-template-columns:1fr 180px;gap:18px;display:grid}.lecture-field{flex:none}.material-section{background:#fff;border:1px solid #e5e7eb;border-radius:11px;margin-top:32px;margin-bottom:26px;padding:22px}.material-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;display:flex}.material-header h2{color:#172033;margin:0;font-size:16px}.material-header p{color:#9ca3af;margin:6px 0 0;font-size:12px}.upload-button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d9dee5;border-radius:7px;flex-shrink:0;padding:9px 13px;font-size:12px;font-weight:600}.upload-button:hover{background:#f9fafb}.upload-button input{display:none}.empty-files{color:#9ca3af;text-align:center;border:1px dashed #d9dee5;border-radius:8px;padding:25px;font-size:12px}.file-list{flex-direction:column;gap:7px;display:flex}.file-item{color:#374151;text-align:left;background:#f9fafb;border:1px solid #edf0f2;border-radius:7px;justify-content:space-between;align-items:center;width:100%;padding:12px 14px;display:flex}.file-item:hover{background:#f3f4f6}.file-item strong{font-size:12px}.file-item p{color:#9ca3af;margin:3px 0 0;font-size:11px}.important-box{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:9px;align-items:center;gap:13px;width:100%;margin-top:25px;padding:16px 18px;transition:border-color .15s,background .15s;display:flex}.important-box input{flex-shrink:0;width:17px;height:17px}.important-box strong{color:#374151;font-size:13px;display:block}.important-box p{color:#9ca3af;margin:4px 0 0;font-size:11px}.important-box-checked{background:#fffaf0;border-color:#f1d997}.save-button{color:#fff;cursor:pointer;background:#172033;border:none;border-radius:8px;padding:20px 40px;font-size:18px;font-weight:600}.save-button:hover{opacity:.9}@media (width<=900px){.home,.editor{padding:40px 32px 60px}}@media (width<=750px){.sidebar{width:100%;height:auto;padding:22px 20px;position:static}.app{flex-direction:column;display:flex}.sidebar-logo{margin-bottom:20px}.sidebar-note-list{max-height:180px;overflow-y:auto}.home,.editor{width:100%;margin-left:0;padding:30px 20px 50px}.home-header,.editor-header{flex-direction:column;align-items:stretch}.new-note-button,.save-button{width:100%}.editor-row{grid-template-columns:1fr}.material-header{flex-direction:column;align-items:flex-start}.upload-button{text-align:center;width:100%}}.document-open{color:inherit;text-align:left;background:0 0;border:none;flex:1;padding:0}.document-actions{align-items:center;gap:12px;margin-left:20px;display:flex}.note-delete-button{color:#dc2626;background:#fff;border:1px solid #fecaca;border-radius:6px;padding:6px 10px;font-size:11px;font-weight:500}.note-delete-button:hover{background:#fef2f2}.new-note-button,.save-button{color:#fff;letter-spacing:.02em;cursor:pointer;background:#172033;border:1px solid #172033;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:200px;height:56px;padding:0 20px;font-size:16px;font-weight:600;transition:background .2s,box-shadow .2s,transform .2s;display:flex;box-shadow:0 2px 5px #17203314}.new-note-button:hover,.save-button:hover{background:#263650;transform:translateY(-2px);box-shadow:0 5px 12px #17203326}.new-note-button:active,.save-button:active{box-shadow:none;transform:translateY(0)}.new-note-button:focus-visible,.save-button:focus-visible{outline-offset:3px;outline:3px solid #94a3b8}@media (width<=750px){.new-note-button,.save-button{width:100%}}.lecture-manager{background:#f6f7f9;width:calc(100% - 250px);min-height:100vh;margin-left:250px;padding:52px 64px 80px}.lecture-manager h1{color:#172033;margin:0 0 10px;font-size:30px}.lecture-manager h2{color:#172033;margin:30px 0 16px;font-size:18px}.lecture-manager p{color:#6b7280;font-size:14px}.subject-list{flex-wrap:wrap;gap:12px;margin:24px 0 32px;display:flex}.subject-list button{color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:12px 20px}.subject-list button.selected{background:#eef2f7;border-color:#172033;font-weight:600}.lecture-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:900px;display:grid}.lecture-grid button{text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:10px;flex-direction:column;gap:8px;padding:18px;display:flex}.lecture-grid button:hover{background:#f3f4f6}.lecture-grid button.selected{background:#eef2f7;border-color:#172033}.lecture-grid button span{color:#9ca3af;font-size:12px}.lecture-notes{max-width:900px;margin-top:32px}.lecture-note-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-top:12px;padding:12px}.lecture-note-item{text-align:left;background:0 0;border:none;justify-content:space-between;gap:12px;width:100%;padding:14px;display:flex}.lecture-file-list{padding:0 14px 10px}.lecture-file-item{color:#6b7280;overflow-wrap:anywhere;padding:6px 0;font-size:13px}@media (width<=900px){.lecture-manager{padding:40px 32px 60px}}@media (width<=750px){.lecture-manager{width:100%;margin-left:0;padding:30px 20px 50px}.lecture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.sidebar-lecture-button{color:#172033;text-align:left;cursor:pointer;background:#eef2f7;border:1px solid #e5e7eb;border-radius:8px;width:100%;margin-top:-15px;margin-bottom:25px;padding:11px 12px;font-size:13px;font-weight:600}.sidebar-lecture-button:hover{background:#e2e8f0}.lecture-card-header{justify-content:space-between;align-items:center;width:100%;display:flex}.lecture-grid .lecture-saved-mark{color:#2563eb;font-size:20px;line-height:1}.lecture-back-button{color:#6b7280;cursor:pointer;background:0 0;border:none;margin-bottom:24px;padding:0;font-size:13px;font-weight:500;display:inline-block}.lecture-back-button:hover{color:#172033;text-decoration:underline}.lecture-count-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-top:30px;margin-bottom:16px;display:flex}.lecture-count-header h2{margin:0}.lecture-count-controls{align-items:center;gap:10px;display:flex}.lecture-count-controls span{color:#374151;font-size:14px}.lecture-count-controls button{color:#172033;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;width:36px;height:36px;font-size:20px}.lecture-count-controls button:hover:not(:disabled){background:#eef2f7}.lecture-count-controls button:disabled{opacity:.4;cursor:not-allowed}
