@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');:root{font-family:'DM Sans','Noto Sans JP',sans-serif;color:#37342f;background:#f7f3eb}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b9a58c;outline-offset:2px}.shell{max-width:850px;margin:auto;min-height:100dvh;background:#fcfaf6;box-shadow:0 10px 70px #443b2b0d}.top{height:82px;padding:16px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brandmark{display:grid;place-items:center;background:#e6d9c6;border-radius:50%;width:42px;height:42px;font-size:24px}.brand strong{display:block;font-size:18px;letter-spacing:-.6px}.brand small{display:block;letter-spacing:2px;color:#a39789;font-size:9px;margin-top:3px}.top-note{font-family:Georgia,serif;font-style:italic;color:#9c8c78;font-size:13px}main{padding:0 26px 130px}.eyebrow{font-size:10px;letter-spacing:2.8px;font-weight:700;color:#b48e70}.hero{position:relative;min-height:390px;border-radius:20px;overflow:hidden;background:#6e5e51}.hero img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 45%}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 15%,#241a17bb 100%)}.hero-content{position:absolute;z-index:1;bottom:29px;left:30px;color:white}.hero-content h1{font-family:Georgia,'Noto Sans JP',serif;font-size:clamp(30px,6vw,51px);font-weight:400;line-height:1.28;margin:12px 0}.hero-content p{font-size:12px;letter-spacing:1px;opacity:.9}.section{margin-top:37px}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:17px}.sectionhead h2,.page-title{font-size:25px;letter-spacing:-1px;margin:7px 0 0;font-weight:600}.textlink{border:0;background:none;color:#8c735b;font-size:12px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.catcard{border:1px solid #e9e2d8;border-radius:15px;background:white;padding:18px 8px;text-align:center;min-height:140px}.catavatar{width:65px;height:65px;border-radius:50%;margin:auto auto 12px;display:grid;place-items:center;background:#eee4d8;font-size:29px}.catcard strong{display:block;font-size:15px}.catcard small{color:#a2978a;font-size:11px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:#fff;border:1px solid #eee6db;border-radius:17px;padding:20px;min-height:140px}.panel h3{font-size:15px;margin:0 0 14px}.muted{color:#9d9489;font-size:12px}.item{border-top:1px solid #eee8e0;padding:12px 0;display:flex;justify-content:space-between;gap:10px;align-items:center}.item:first-of-type{border-top:0}.item strong{font-size:13px}.item p{font-size:12px;color:#958c82;margin:5px 0 0}.pill{background:#f0e8dc;color:#8a6e52;border-radius:100px;padding:6px 10px;font-size:10px;white-space:nowrap}.pageintro{padding:25px 0 18px}.pageintro p{color:#8f8478;font-size:13px;line-height:1.8}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.primary{background:#655344;color:white;border:0;border-radius:11px;padding:12px 17px;font-size:13px}.secondary{border:1px solid #e1d8cb;background:white;border-radius:10px;padding:9px 12px;font-size:12px;color:#655344}.empty{font-size:13px;color:#968b7d;padding:24px 0}.monthnav{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.monthnav button{border:0;background:#eee7dc;border-radius:10px;padding:9px 14px}.monthnav strong{font-size:18px}.week,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.week span{padding:12px 0;color:#978e82;font-size:11px}.day{border:1px solid #f0eae1;background:white;min-height:65px;padding:7px 3px;text-align:left;font-size:12px}.day.other{color:#c6c0b8;background:#faf8f4}.day.today{background:#f4e8d8}.dot{display:block;background:#a68162;color:white;font-size:9px;padding:3px;border-radius:5px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detailcard{background:#fff;border:1px solid #ece4d9;border-radius:15px;padding:19px;margin:12px 0}.detailcard h3{margin:0 0 6px;font-size:16px}.detailcard p{font-size:13px;color:#84796e;line-height:1.8;white-space:pre-wrap}.detailcard a{font-size:12px;color:#846348}.smallactions{display:flex;gap:8px;margin-top:12px}.smallactions button{border:0;background:#f2ece4;border-radius:8px;padding:7px 10px;color:#6c5b4d;font-size:11px}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(850px,100%);display:grid;grid-template-columns:repeat(5,1fr);padding:9px 9px calc(9px + env(safe-area-inset-bottom));background:#fffefaed;backdrop-filter:blur(16px);border-top:1px solid #eae2d7;z-index:5}.bottom button{border:0;background:none;color:#a1988c;font-size:10px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 0}.bottom button span{font-size:23px;line-height:25px}.bottom button.active{color:#745842;font-weight:700}dialog{border:0;border-radius:20px;padding:25px;width:min(440px,calc(100% - 30px));box-shadow:0 20px 80px #21170d55}dialog::backdrop{background:#201b17a6}.dialoghead{display:flex;justify-content:space-between;align-items:center}.dialoghead h2{font-size:20px}.dialoghead button{border:0;background:none;font-size:27px}label.field{display:block;margin:15px 0;color:#6c6156;font-size:12px}label.field input,label.field textarea,label.field select{display:block;width:100%;border:1px solid #ddd4c8;border-radius:9px;padding:12px;margin-top:7px;background:white;color:#342e29}label.field textarea{min-height:90px}.actions{margin-top:22px}.actions button{width:100%}.notice{background:#f1e8dc;padding:15px;border-radius:12px;font-size:12px;line-height:1.8;color:#77624f}@media(max-width:550px){.top{height:75px;padding:13px 17px}.top-note{font-size:10px}main{padding:0 15px 115px}.hero{min-height:380px}.hero-content{left:22px;bottom:22px}.grid3{gap:8px}.catcard{padding:15px 4px;min-height:130px}.catavatar{width:54px;height:54px}.twocol{grid-template-columns:1fr}.panel{min-height:110px}.day{min-height:57px;font-size:11px}}[hidden]{display:none!important}.auth{max-width:440px;margin:65px auto;padding:27px;background:white;border:1px solid #ede3d6;border-radius:23px;box-shadow:0 12px 40px #4330200c}.auth h1{font-family:Georgia,serif;font-weight:400;font-size:31px}.auth p{font-size:13px;line-height:1.9;color:#84776a}.auth label{display:block;margin:17px 0;font-size:13px}.auth input,.auth select{display:block;width:100%;padding:12px;border:1px solid #ded4c7;border-radius:10px;margin-top:6px;background:#fff}.auth button{width:100%;margin-top:10px}.error{color:#aa473e;font-size:12px;line-height:1.7}.photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;background:#f3ece2}.catphoto{width:80px;height:80px;border-radius:50%;object-fit:cover;background:#eee4d8;margin:auto auto 10px}.catcard{cursor:pointer}.catcard .catavatar{margin-bottom:10px}.entryphoto{width:100%;max-height:330px;object-fit:cover;border-radius:12px;margin:8px 0}.tag{font-size:11px;color:#967d62}.searchrow{display:flex;gap:8px;align-items:center}.searchrow input{flex:1;min-width:0;border:1px solid #ded4c7;border-radius:10px;padding:11px}.searchrow a{white-space:nowrap}.help{font-size:12px;color:#8d8074;line-height:1.8}.photo-preview{max-width:100%;max-height:160px;border-radius:12px;margin-top:8px}.day{cursor:pointer}.day.selected{outline:2px solid #a78970;outline-offset:-2px}.day .dot{font-size:9px}.grid3 .catcard{display:flex;flex-direction:column;justify-content:center}.profile-detail{white-space:pre-wrap;font-size:13px;color:#75695e;line-height:1.9}.linkbutton{border:0;background:none;color:#85664f;text-decoration:underline;font-size:12px;padding:0}.banner{padding:14px;border-radius:12px;background:#f2e8dc;font-size:12px;line-height:1.8}.footer-actions{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.photo-upload{display:block;margin:15px 0;font-size:12px}.photo-upload input{display:block;margin-top:7px;max-width:100%}.monthnav strong{white-space:nowrap}.day{overflow:hidden}

/* Monthly memories archive */
.archive{margin:18px 0 22px;padding:17px;background:#fff;border:1px solid #eee6db;border-radius:16px}.archive h3{font-size:13px;margin:0 0 13px;color:#6e5b4b}.archive-months{display:flex;flex-wrap:wrap;gap:8px}.archive-month{border:1px solid #e6dacc;background:#faf7f2;color:#705e4e;border-radius:999px;padding:9px 12px;font-size:12px;touch-action:manipulation}.archive-month span{font-size:10px;opacity:.65;margin-left:4px}.archive-month.selected,.archive-pages button.selected{background:#655344;color:#fff;border-color:#655344}.archive-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 8px}.archive-heading strong{font-size:17px}.archive-heading span{font-size:12px;color:#988b7d}.archive-pages{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:24px 0 8px}.archive-pages button{border:1px solid #e6dacc;border-radius:9px;background:white;color:#6c5949;padding:9px 12px;min-width:38px;font-size:12px;touch-action:manipulation}.archive-pages button:disabled{opacity:.35;cursor:default}button,.catcard,.day,.bottom button{touch-action:manipulation}@media(max-width:550px){.archive{padding:14px}.archive-month{padding:9px 10px}}
/* Avoid iOS focus zoom without disabling accessibility pinch zoom */
@media (pointer:coarse){input,textarea,select{font-size:16px!important}}
