*{box-sizing:border-box}
body{margin:0;font-family:"Hiragino Kaku Gothic ProN","Meiryo",sans-serif;color:#222;background:#f4f7fb;line-height:1.6}
a{color:#1e63d6}
.top{background:#fff;border-bottom:3px solid #1e63d6;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.top img{height:44px;width:auto;display:block}
.top .back{font-size:14px;text-decoration:none;border:1px solid #1e63d6;border-radius:20px;padding:4px 14px}
.wrap{max-width:760px;margin:0 auto;padding:14px 10px 60px}
h1{font-size:22px;margin:6px 0 2px}
.lead{margin:0 0 12px;color:#555;font-size:14px}
.card{background:#fff;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.12);padding:12px}
.nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.nav .ttl{font-size:20px;font-weight:bold}
.nav button{font-size:16px;border:1px solid #1e63d6;background:#fff;color:#1e63d6;border-radius:8px;padding:6px 14px;cursor:pointer}
.nav button:disabled{opacity:.35;cursor:default}
table.cal{width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed}
table.cal th{font-size:13px;padding:2px 0;text-align:center}
.sun{color:#d32f2f}.sat{color:#1e63d6}
td{padding:0}
td.blank{height:1px}
button.day{width:100%;aspect-ratio:1/1;min-height:44px;border:2px solid transparent;border-radius:10px;background:#f1f3f6;font-size:17px;font-weight:bold;cursor:pointer;padding:0;font-family:inherit}
button.day.filled{border-color:rgba(0,0,0,.08)}
button.day.today{box-shadow:0 0 0 2px #222 inset}
button.day.selected{border-color:#222;outline:2px solid #fff;outline-offset:-5px}
button.day.off{opacity:.3;cursor:default}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 2px 0;font-size:13px}
.lg{display:inline-flex;align-items:center;gap:5px}
.chip{width:16px;height:16px;border-radius:4px;display:inline-block;border:1px solid rgba(0,0,0,.2)}
.detail{margin-top:12px}
.detail-title{margin:0 0 6px;font-size:18px;border-left:6px solid #1e63d6;padding-left:8px}
.sec{margin:10px 0 4px;font-size:14px;color:#555}
.items{list-style:none;margin:0;padding:0}
.items li{display:flex;flex-wrap:wrap;gap:2px 12px;align-items:baseline;padding:8px 4px;border-bottom:1px dashed #ccd}
.items .time{font-weight:bold;font-variant-numeric:tabular-nums;min-width:7.5em}
.items .name{font-size:16px}
.items .note{flex-basis:100%;font-size:13px;color:#666}
.none{color:#777}
.msg{padding:20px;text-align:center;color:#555}
.err{color:#c62828}
.ok{color:#2e7d32}
/* 管理画面 */
label{display:block;font-size:13px;margin:8px 0 2px;color:#444}
input[type=text],input[type=password],input[type=date],input[type=time],input[type=number],select{width:100%;font-size:16px;padding:8px;border:1px solid #bbc;border-radius:8px;background:#fff;font-family:inherit}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.btn{font-size:16px;border:0;border-radius:8px;padding:9px 18px;cursor:pointer;background:#1e63d6;color:#fff;font-family:inherit}
.btn.sub{background:#fff;color:#1e63d6;border:1px solid #1e63d6}
.btn.danger{background:#fff;color:#c62828;border:1px solid #c62828}
.btn.small{font-size:13px;padding:4px 10px}
.btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-items:center}
.card + .card{margin-top:14px}
h2{font-size:18px;margin:0 0 6px}
.radios{display:flex;gap:16px}
.radios label{display:inline-flex;gap:5px;align-items:center;margin:4px 0;font-size:15px;color:#222}
.items li .acts{margin-left:auto;display:flex;gap:6px}
.swrow{margin:10px 0}
.swrow .lab{font-weight:bold;font-size:14px;margin-bottom:4px}
.sws{display:flex;flex-wrap:wrap;gap:6px}
.sw{width:46px;height:46px;border-radius:10px;border:3px solid transparent;cursor:pointer;font-size:11px;line-height:1.1;padding:0;font-family:inherit;font-weight:bold;box-shadow:0 0 0 1px rgba(0,0,0,.2) inset}
.sw.on{border-color:#222;outline:2px solid #fff;outline-offset:-5px}
.status{min-height:1.4em;font-size:14px;margin-top:8px}
.who{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.tabs{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.tabs button{flex:1;font-size:15px;padding:8px;border:1px solid #1e63d6;background:#fff;color:#1e63d6;border-radius:8px;cursor:pointer;font-family:inherit}
.tabs button.on{background:#1e63d6;color:#fff}
.hint{font-size:12px;color:#666;margin:4px 0 0}
@media(min-width:600px){button.day{min-height:56px;font-size:19px}}
