:root{--navy:#0e1d35;--dark:#172e45;--mint:#7accc5;--bg:#f4f7f8;--line:#dce5e8;--muted:#688094;--text:#193348;--red:#b9344a}
*{box-sizing:border-box}
html{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
body{margin:0;min-width:320px;min-height:100vh}
button,input,textarea,select{font:inherit}
button{cursor:pointer}button:disabled{opacity:.58;cursor:wait}a{color:inherit}
:focus-visible{outline:3px solid #55baba;outline-offset:3px}
[hidden]{display:none!important}
.header{background:var(--navy);color:white;border-bottom:3px solid var(--mint)}
.header-inner{max-width:1260px;margin:auto;min-height:82px;display:flex;align-items:center;justify-content:space-between;padding:15px 28px;gap:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-logo{display:grid;place-items:center;width:48px;height:48px;border:1px solid #75aaa8;border-radius:13px;font-size:25px;font-weight:900;letter-spacing:-.13em}.brand-logo span{color:var(--mint)}
.brand-name{font-size:19px;font-weight:850;letter-spacing:-.04em}.brand-name small{display:block;font-size:9px;font-weight:700;letter-spacing:.18em;color:#b4cdd8;margin-top:4px}
.staff-link{text-decoration:none;border:1px solid #446076;border-radius:9px;color:#e4ffff;padding:12px 15px;font-size:12px;font-weight:800;white-space:nowrap}.staff-link:hover{background:#ffffff15}
.container{width:min(1260px,100%);padding:36px 28px 68px;margin:auto}
.eyebrow,.mini-label{font-size:10px;font-weight:900;letter-spacing:.15em;color:#358f91}
.intro{margin-bottom:24px}.intro h1{font-size:clamp(28px,4vw,38px);letter-spacing:-.06em;margin:11px 0 7px}.intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.9}
.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:25px;box-shadow:0 12px 35px rgba(12,39,55,.035)}
.loading-panel{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}.loader{width:19px;height:19px;border:2px solid #d4efed;border-top-color:#258e88;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-panel{max-width:510px;margin:0 auto}.intro-text{color:var(--muted);font-size:12px;line-height:1.85;margin:10px 0 22px}.panel-heading{display:flex;align-items:center;gap:12px}.panel-heading h2{font-size:19px;letter-spacing:-.045em;margin:4px 0 0}.panel-icon{width:42px;height:42px;border-radius:12px;background:#e5f5f3;color:#267f7a;display:grid;place-items:center;font-size:19px;font-weight:800;flex:0 0 auto}
form{display:grid;gap:10px}form label{font-size:12px;font-weight:800;margin-top:7px}form label small{font-size:10px;color:var(--muted);font-weight:500;margin-left:7px}input,select,textarea{width:100%;background:#fcfefe;border:1px solid #cfdfe4;border-radius:10px;padding:13px 14px;color:var(--text);font-size:14px}textarea{resize:vertical;min-height:135px;line-height:1.8}input:focus,select:focus,textarea:focus{border-color:#55b7ad;outline:2px solid #b8e6df;outline-offset:1px}
.primary-button{background:#147a78;border:1px solid #147a78;border-radius:9px;color:#fff;font-size:12px;font-weight:850;padding:12px 17px;min-height:43px}.primary-button:hover{background:#0c6663}.quiet-button{background:#f2f6f6;border:1px solid #d3e0e3;border-radius:9px;color:#476274;font-size:11px;font-weight:800;padding:10px 13px;min-height:40px}.quiet-button:hover{background:#e8f1f1}
.error-message{min-height:13px;color:var(--red);font-size:11px;margin:4px 0 0;line-height:1.7}.setup-guide{font-size:12px;color:#647f89;margin-top:15px}.setup-guide a{color:#117b75;font-weight:800}
.admin-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:13px;padding:4px 0 20px}.online-status{display:flex;align-items:center;gap:10px;color:#557683;font-size:12px;font-weight:750}.pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1cb79c;box-shadow:0 0 0 4px #1cb79c17}.toolbar-actions{display:flex;gap:7px}
.admin-grid{display:grid;grid-template-columns:minmax(300px,.93fr) minmax(300px,1.07fr);align-items:start;gap:20px}.composer-panel{position:sticky;top:15px}.form-help{font-size:11px;line-height:1.8;color:var(--muted);margin:8px 0}.form-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap;margin-top:7px}.list-heading h2{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.count{background:#e9f5f3;color:#13756e;font-size:11px;border-radius:20px;padding:4px 8px;letter-spacing:0}
.notice-list{display:grid;gap:12px}.notice-card{border:1px solid #e0e8ea;border-radius:12px;padding:17px;background:#fff}.notice-card.important{border-left:4px solid #d45565}.notice-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.notice-type{display:inline-block;border-radius:5px;background:#e5f4f2;color:#217c73;font-size:10px;padding:4px 8px;font-weight:900}.notice-type.important{background:#fff0f1;color:#b73d50}.notice-date{color:#8094a1;font-size:10px}.notice-card h3{font-size:14px;line-height:1.6;letter-spacing:-.02em;margin:10px 0 7px;overflow-wrap:anywhere}.notice-card p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;color:#536b79;font-size:12px;margin:0 0 12px}.notice-actions{border-top:1px solid #ecf1f2;margin-top:14px;padding-top:12px;display:flex;gap:8px;justify-content:flex-end}.notice-actions button{border-radius:7px;padding:8px 13px;font-size:11px;font-weight:850}.edit-notice{background:#e6f5f3;color:#166e6a;border:1px solid #c7e4df}.delete-notice{background:#fff5f5;color:#ac3f4b;border:1px solid #f0ced4}.empty-state{color:var(--muted);font-size:12px;line-height:1.8;padding:36px 10px;text-align:center;border:1px dashed #ccdce0;border-radius:10px}
.message-toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translateX(-50%);max-width:min(92vw,470px);padding:13px 19px;border-radius:10px;box-shadow:0 9px 30px #0b223a33;background:#122d3d;color:white;font-size:12px;line-height:1.7;text-align:center}
footer{color:#94a7b2;font-size:10px;letter-spacing:.08em;text-align:center;padding:24px}
@media(max-width:900px){.admin-grid{grid-template-columns:1fr}.composer-panel{position:static}.container{padding:28px 18px 55px}.header-inner{padding:14px 18px}}
@media(max-width:520px){.header-inner{min-height:69px}.brand-logo{width:39px;height:39px;font-size:20px}.brand-name{font-size:15px}.brand-name small{font-size:7px}.staff-link{padding:9px 8px;font-size:10px}.panel{padding:18px;border-radius:14px}.panel-heading h2{font-size:17px}.admin-toolbar{align-items:flex-start}.form-actions{justify-content:stretch}.form-actions .primary-button{flex:1}.notice-card{padding:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}
/* Mobile: 16px inputs avoid Safari focus-zoom; manipulation prevents double-tap zoom. */
html,body{touch-action:manipulation;-webkit-text-size-adjust:100%}
button,a,input,select,textarea{touch-action:manipulation}
input,select,textarea{font-size:16px}
.public-demo-note{display:inline-block!important;margin-top:14px!important;padding:9px 12px;border-radius:8px;background:#e6f6f3;color:#16655e!important;font-size:11px!important;font-weight:750;line-height:1.7!important}
.reset-timer{display:inline-flex;align-items:center;background:#eef6f4;border:1px solid #cce6df;border-radius:9px;padding:9px 11px;color:#27736c;font-size:11px;font-weight:800;line-height:1.6}
@media(max-width:520px){.toolbar-actions{flex-wrap:wrap}.reset-timer{width:100%}}
