:root{--blue:#1769e0;--ink:#153047;--muted:#6f8292;--line:#dce6ef;--pink:#e85b80;--bg:#eef4f8}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif}
button,input,select{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.loading,.welcome{min-height:100vh;display:grid;place-items:center;padding:24px}
.loading>i,.spinner{width:45px;height:45px;border:4px solid #d4e4f8;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}
.loading b{position:absolute;margin-top:90px}
@keyframes spin{to{transform:rotate(360deg)}
}
.card{width:min(100%,460px);background:#fff;border:1px solid var(--line);border-radius:25px;padding:26px;box-shadow:0 18px 45px #20476418}
.logo{width:62px;height:62px;border-radius:20px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:31px;font-weight:900;transform:rotate(-3deg);margin:auto}
.brand{text-align:center;color:var(--blue);font-weight:900}
.card h1{text-align:center;font-size:25px;line-height:1.4}
.lead{text-align:center;color:var(--muted);line-height:1.7}
.primary{width:100%;height:50px;border:0;border-radius:14px;background:var(--blue);color:#fff;font-weight:900}
.note{text-align:center;font-size:12px;color:#8394a2}
.field{display:grid;gap:5px;margin:10px 0}
.field span{font-size:13px;font-weight:900}
.field input,.field select,input,select{height:45px;border:1px solid #cbd9e5;border-radius:12px;padding:0 11px;background:#fff;font-size:16px}
.setup-child{border:1px solid var(--line);padding:12px;border-radius:15px;margin:10px 0;background:#fbfdff}
.setup-child header{display:flex;justify-content:space-between;font-weight:900}
.setup-child header button{border:0;background:none;color:#bd4051}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.full{grid-column:1/3}
.soft{width:100%;height:43px;border:1px dashed #8cb4df;border-radius:13px;background:#f1f7ff;color:#1761c6;font-weight:900}
.error,.toast{padding:10px;border-radius:11px;background:#fff0e4;color:#a84d17;font-size:13px}
.shell{width:min(100%,520px);min-height:100vh;margin:auto;background:#f8fafc;padding-bottom:84px;box-shadow:0 0 50px #1f415a15}
.top{height:70px;display:flex;align-items:center;gap:10px;padding:11px 16px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.mini-logo{width:42px;height:42px;border-radius:14px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:900}
.top-copy{flex:1}
.top h1{font-size:20px;margin:0}
.top p{font-size:11px;color:var(--muted);margin:2px 0}
.share{border:0;border-radius:12px;background:#e9f2ff;color:#1761c6;padding:10px;font-weight:900}
.content{padding:15px}
.chips{display:flex;gap:7px;overflow:auto}
.chip{border:1px solid var(--line);background:#fff;border-radius:99px;padding:9px 13px;font-weight:800;white-space:nowrap}
.chip.active{background:#153e68;color:#fff}
.upload{width:100%;border:0;border-radius:18px;margin:14px 0;padding:15px;background:linear-gradient(130deg,#1769e0,#2688ea);color:#fff;display:flex;align-items:center;gap:12px;text-align:left;box-shadow:0 9px 22px #1769e033}
.upload .ico{width:46px;height:46px;background:#fff;color:var(--blue);display:grid;place-items:center;border-radius:14px;font-size:24px}
.upload strong{display:block;font-size:17px}
.upload small{opacity:.82}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#e7edf2;border-radius:13px}
.tabs button{height:38px;border:0;border-radius:10px;background:transparent;color:#687b8b;font-weight:900}
.tabs button.active{background:#fff;color:#153e68}
.section-title{display:flex;justify-content:space-between;align-items:end;margin:18px 2px 8px}
.section-title h2{font-size:17px;margin:0}
.list{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}
.event,.task{display:flex;gap:11px;align-items:center;padding:11px;border-bottom:1px solid #e8eef3}
.event:last-child,.task:last-child{border:0}
.datebox{width:50px;height:55px;border-radius:13px;background:var(--blue);color:#fff;display:grid;place-items:center;flex:none}
.datebox.pink{background:var(--pink)}
.datebox b{font-size:23px}
.copy{flex:1;min-width:0}
.copy strong{display:block}
.copy small{display:block;color:var(--muted);margin-top:4px}
.tag{font-size:10px;font-weight:900;padding:5px 7px;border-radius:99px;background:#e5f0ff;color:#1761c6}
.tentative{opacity:.72}
.tentative .copy:before{content:"年間予定・仮";font-size:10px;font-weight:900;color:#84651b;background:#fff2c7;padding:3px 5px;border-radius:5px}
.check{width:24px;height:24px;accent-color:var(--blue)}
.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);height:72px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:6}
.bottom button{border:0;background:none;color:#758898;font-size:11px;font-weight:800}
.bottom button.active{color:var(--blue)}
.bottom .plus{width:56px;height:56px;border-radius:18px;background:var(--blue);color:#fff;justify-self:center;margin-top:-18px;font-size:25px}
.empty{padding:24px;text-align:center;color:#8193a2}
.planner{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:13px}
.planner-head{display:flex;justify-content:space-between;align-items:center}
.planner-head h2{font-size:17px;margin:0}
.planner-head input{width:145px}
.alert{display:flex;gap:8px;padding:10px;margin-top:10px;border-radius:12px;background:#fff0e7;color:#a64d19;font-size:13px}
.rule{background:#fff5d8;color:#765411;border:1px solid #f0d58b}
.plan-row{display:grid;grid-template-columns:50px 1fr auto;gap:9px;padding:12px 0;border-bottom:1px solid #edf1f4}
.plan-row time{font-weight:900;font-size:13px}
.plan-row .copy b{display:block}
.add-plan{margin-top:12px}
.calendar{margin-top:15px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px}
.cal-head{display:flex;justify-content:space-between;align-items:center}
.cal-head button{border:0;background:#edf4fa;border-radius:10px;width:35px;height:35px}
.week,.days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.week{font-size:11px;color:#8293a1;margin-top:10px}
.days button,.days i{aspect-ratio:1;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;font-style:normal}
.days button.has{box-shadow:inset 0 -4px var(--pink)}
.days button.sel{background:var(--blue);color:#fff}
.modal-bg{position:fixed;inset:0;background:#13283b80;z-index:20;display:grid;place-items:end center;padding:14px}
.modal{width:min(100%,500px);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:20px}
.modal-head{display:flex;justify-content:space-between;gap:10px}
.modal h2{margin:0}
.close{border:0;background:#edf2f6;width:35px;height:35px;border-radius:10px}
.types{display:grid;gap:9px;margin-top:15px}
.type{border:1px solid var(--line);border-radius:15px;background:#fff;padding:15px;text-align:left}
.type strong,.type small{display:block}
.type small{color:var(--muted);margin-top:4px}
.drop{min-height:180px;border:2px dashed #b8cbe0;border-radius:17px;background:#f3f8ff;display:grid;place-items:center;text-align:center;padding:20px;margin-top:12px}
.counts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.counts span{text-align:center;background:#eef4f8;border-radius:10px;padding:7px;font-size:11px}
.counts b{display:block;font-size:19px}
.review{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:13px;margin-top:10px}
.review p{display:flex;justify-content:space-between;padding:8px 10px;margin:0;border-bottom:1px solid #edf1f4;font-size:13px}
.review h3{font-size:12px;background:#eef4f8;margin:0;padding:8px}
.danger{background:#fff0e7;color:#a64d19;padding:10px;border-radius:11px}
.success{background:#e7f7ef;color:#197250;padding:9px;border-radius:11px}
.filebtn{display:inline-grid;place-items:center;background:var(--blue);color:#fff;border-radius:13px;padding:14px;font-weight:900}
.two-actions{display:flex;gap:8px}
.two-actions button{flex:1}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:-4px 0 14px}
.quick-actions button{border:1px solid var(--line);border-radius:15px;background:#fff;padding:12px 10px;text-align:left;color:var(--ink)}
.quick-actions b,.quick-actions small{display:block}
.quick-actions b{font-size:14px}
.quick-actions small{font-size:11px;color:var(--muted);margin-top:4px}
.weekday-checks{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:5px 0 10px}
.weekday-checks label{display:grid;place-items:center;gap:4px}
.weekday-checks input{width:23px;height:23px;accent-color:var(--blue)}
.weekday-checks b{font-size:12px}
@media(max-width:390px){.grid2{grid-template-columns:1fr}
.full{grid-column:auto}
.share span{display:none}
.modal-bg{padding:0;align-items:end}
.modal{border-radius:24px 24px 0 0}
.planner-head{align-items:start}
}
