*{box-sizing:border-box}body{margin:0;background:#fff;color:#273c33;font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:#f2e9dc;color:#365846;border-radius:8px;padding:11px 14px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #cf754f;outline-offset:2px}button:disabled{cursor:default;opacity:.65}header{background:#214f43;display:flex;align-items:center;gap:12px;padding:14px max(14px,calc((100vw - 850px)/2));position:sticky;top:0;z-index:2;color:white}header button{background:none;color:white;font-size:30px;line-height:1;padding:6px}h1{font-size:23px;font-weight:500;margin:0;flex:1;white-space:nowrap}main{max-width:850px;margin:auto}nav{display:flex;border-bottom:1px solid #e9ddce;position:sticky;top:70px;background:white;z-index:1}nav button{flex:1;border-radius:0;background:white;color:#6d8491;padding:18px 6px}nav button[aria-pressed=true]{border-bottom:3px solid #b56442;color:#214f43;font-weight:700}.tools{padding:17px 16px;display:flex;gap:10px}.tools input{min-width:0;flex:1}.tools select{max-width:43%}input:not([type=checkbox]):not([type=file]),textarea,select{border:1px solid #d0e1e9;border-radius:7px;padding:11px;background:#fff;color:#273c33}#count{font-size:12px;color:#7b8d99;margin:0 17px 8px}.note{display:block;text-align:left;width:100%;border-radius:0;border-bottom:1px solid #e5dccc;background:white;padding:22px 17px;color:#273c33}.note:hover{background:#faf5ec}.note h2{font-size:20px;margin:0 0 8px;overflow-wrap:anywhere}.note p{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:#536573;line-height:1.6}.note time{display:block;text-align:right;font-size:12px;color:#88949b;margin-top:10px}.thumb{height:90px;width:100px;object-fit:cover;border-radius:8px;margin:10px 8px 0 0}.empty{text-align:center;padding:65px 24px;color:#6f8795}.empty b{font-size:35px;color:#214f43;display:block;margin-bottom:18px}.hint{font-size:12px;color:#7b8d99;line-height:1.8;padding:8px 16px}footer{display:flex;justify-content:center;gap:12px;padding:20px 10px}footer button{background:none;font-size:12px}dialog{width:min(620px,96vw);border:0;border-radius:14px;padding:22px;box-shadow:0 16px 70px #17374c40;max-height:93dvh;overflow:auto}dialog::backdrop{background:#19344666}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.dialog-head #save{background:#214f43;color:white}label{display:block;margin:16px 0 8px;font-size:13px;color:#526e7d}label input:not([type=checkbox]),label textarea{display:block;width:100%;margin-top:8px}textarea{resize:vertical;line-height:1.8}small{font-size:12px;color:#7b8d99;line-height:1.6}.pin{display:flex;gap:9px;align-items:center}.danger{color:#bb4d4d;background:#fff0f0;margin-top:12px}#editError{color:#ad3838}#status{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244d64;color:white;padding:12px 20px;border-radius:25px;display:none;max-width:90vw;z-index:10}.plan{border:1px solid #cee5f1;border-radius:12px;padding:20px;margin:12px 0}.plan h2{font-size:28px;margin:10px 0}.plan button{width:100%}.file{background:#f7f0e5;padding:15px;border-radius:10px}.attachment{padding:10px;border:1px solid #e2edf2;margin:10px 0;border-radius:8px}.attachment img,.attachment video{max-height:230px;max-width:100%;display:block;margin:auto}.attachment p{font-size:12px;overflow-wrap:anywhere}.attachment button{font-size:12px}details button{margin:8px 0;display:block;width:100%}#editor{padding-bottom:25px}@media(max-width:450px){header{gap:6px}h1{font-size:21px}.tools{gap:6px;padding:14px 10px}.tools select{font-size:12px}.note{padding:20px 15px}dialog{padding:17px}footer{gap:0}}

.format-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.format-tools small{flex-basis:100%}.format-tools button{font-size:13px}.format-tools button:disabled{opacity:.4}

.note-row{position:relative;border-bottom:1px solid #e5dccc}.note-row .note{border-bottom:0;padding-bottom:45px}.note-edit{position:absolute;bottom:9px;left:17px;padding:5px 13px;font-size:12px;background:#f0e9df}#reader{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border-radius:0;background:#fff;overscroll-behavior:contain}.reader-bar{position:sticky;top:0;background:#fffefc;z-index:1;border-bottom:1px solid #e7eff3;padding:12px max(16px,calc((100vw - 760px)/2));padding-top:max(12px,env(safe-area-inset-top))}.reader-bar button{background:#f3ebdf;color:#214f43;min-height:44px;font-size:17px}.reader-content{max-width:760px;margin:0 auto;padding:32px 24px 64px}.reader-content h2{font-size:clamp(25px,5vw,34px);line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}#readerDate{font-size:12px;color:#8595a0;margin:0 0 30px}#readerBody{font-size:19px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#273947;tab-size:4}.reader-attachment{margin:28px 0}.reader-attachment img,.reader-attachment video{display:block;max-width:100%;max-height:75dvh;margin:auto;border-radius:10px}.reader-attachment figcaption{font-size:12px;color:#7f929d;margin-top:8px;overflow-wrap:anywhere}@media(max-width:450px){.reader-content{padding:25px 20px 60px}#readerBody{font-size:18px}}

body{background:#fcfaf6;color:#273c33}header{padding-top:max(14px,env(safe-area-inset-top));box-shadow:0 3px 18px #183d2714}header h1{font-family:Georgia,serif;font-size:26px;letter-spacing:2px;font-weight:600}header h1 span{display:block;font:10px system-ui;letter-spacing:3px;margin-top:3px;color:#e6eddf}header button{min-width:44px;min-height:44px}.intro{position:relative;padding:35px 25px 27px;overflow:hidden;background:#f4eadb}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#9b6144;font-weight:700}.intro h2{font-size:27px;line-height:1.55;letter-spacing:2px;margin:12px 0;color:#294e41}.intro>p:last-of-type{font-size:12px;line-height:1.9;color:#6c786a;position:relative;z-index:1}.intro-art{position:absolute;right:28px;top:48px;width:135px;height:135px;transform:rotate(9deg);opacity:.9}.intro-art img{width:100%;height:100%;border-radius:32px}.intro h2{position:relative;z-index:1}nav{top:79px;background:#fcfaf6}nav button{background:#fcfaf6;font-size:13px}.tools{padding-bottom:8px}.tools input,.tools select{font-size:13px}.filter-row{display:flex;align-items:center;justify-content:space-between;padding:0 16px 15px;gap:12px}.filter-row select{font-size:12px;background:#fcfaf6}#count{margin:0;font-size:11px}.note-row{margin:0 16px 12px;border:1px solid #e5dccc;border-radius:14px;background:white;overflow:hidden}.note{background:white;padding:20px}.note:hover{background:#fffdf9}.note h2{font-size:18px}.note p{font-size:13px}.note .thumb{width:110px;height:90px;border-radius:9px}.recipe-tag{display:block;font-size:10px;color:#8a684b;margin-top:14px;letter-spacing:1px}.note-edit{left:16px;bottom:10px}.note time{font-size:10px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-pair select{width:100%;margin-top:8px}dialog h2{font-size:22px}dialog h3{font-size:16px}dialog p{line-height:1.8;font-size:14px}#readerMeta{background:#f4eadb;color:#7f5b3d;display:inline-block;font-size:12px;padding:8px 13px;border-radius:30px;margin-bottom:14px}.reader-content h3{font-size:16px;padding-bottom:12px;border-bottom:1px solid #e5dccc;margin-top:30px}.recipe-text{white-space:pre-wrap;font-size:17px;line-height:1.9;overflow-wrap:anywhere}.reader-content section{margin-bottom:35px}.plan{border-color:#e5dccc;background:#fffcf6}.plan h3{margin:8px 0}.plan h2{font-size:30px}.file{border:1px dashed #c9b99e}.hint{color:#6e7e73}footer button{color:#647768}button:disabled{opacity:.6}.empty{color:#657768}.empty b{color:#b87754}#status{background:#214f43}body:has(dialog[open]){overflow:hidden}@media(max-width:450px){.intro{padding:26px 20px}.intro h2{font-size:24px}.intro-art{right:14px;top:58px;width:100px;height:100px;opacity:.6}.intro>p:last-of-type{max-width:220px}.note-row{margin-left:10px;margin-right:10px}.reader-content{padding-bottom:max(60px,env(safe-area-inset-bottom))}}@media(max-width:340px){.intro-art{display:none}.tools{flex-wrap:wrap}.tools select{max-width:none}.field-pair{grid-template-columns:1fr}}
