:root { --border:#9aa4ad; --header:#d9e7f5; --accent:#2f6fad; --bg:#f6f8fb; --text:#26323d; }
* { box-sizing:border-box; }
body { margin:0; font-family:"Yu Gothic UI","Meiryo",sans-serif; color:var(--text); background:var(--bg); }
.app-header { background:#d8edf9; border-bottom:1px solid #b5d1e2; padding:20px 32px; }
.title { font-size:24px; font-weight:700; letter-spacing:.03em; }
.title span { font-size:15px; font-weight:500; margin-left:10px; }
main { padding:22px 28px 34px; }
.search-card { background:#fff; border:1px solid #c7d0d9; border-radius:8px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.section-title { font-size:18px; font-weight:700; margin-bottom:14px; }
.filters { display:grid; grid-template-columns:2fr 1fr 1.4fr 1fr 1fr; gap:16px; align-items:end; }
label { font-size:13px; font-weight:700; display:flex; flex-direction:column; gap:6px; }
input, select { height:36px; border:1px solid #aeb8c2; border-radius:4px; background:white; padding:0 9px; font-size:14px; }
.date-range { display:flex; align-items:center; gap:7px; }.date-range input{flex:1; min-width:125px;}
.actions { margin-top:14px; display:flex; align-items:center; gap:10px; }
button { height:36px; border:1px solid #9ba7b2; border-radius:4px; background:#fff; padding:0 18px; cursor:pointer; font-weight:700; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.count { margin-left:auto; font-size:14px; }
.table-wrap { margin-top:16px; background:#fff; border:1px solid #bcc6cf; overflow:auto; max-height:calc(100vh - 280px); }
table { width:max-content; min-width:100%; border-collapse:collapse; font-size:12px; }
th,td { border:1px solid var(--border); padding:7px 8px; text-align:center; white-space:nowrap; }
th { position:sticky; top:0; z-index:2; background:var(--header); font-weight:700; }
thead tr:nth-child(2) th { top:31px; }
td:nth-child(2), td:nth-child(5) { text-align:left; }
.check-col{min-width:98px}.mini{height:28px;padding:0 8px;font-size:11px;background:#eef4f9}.rowcheck{width:16px;height:16px}
.thumb { width:92px; height:58px; object-fit:cover; border:1px solid #aab4be; border-radius:3px; cursor:zoom-in; background:#eef1f4; }
.noimg { color:#8d969d; }
.rate { font-weight:700; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; z-index:100; }
.hidden{display:none}.modal-box{position:relative;max-width:94vw;max-height:92vh}.modal-box img{max-width:94vw;max-height:92vh;background:white}.modal-close{position:absolute;right:-12px;top:-12px;width:36px;padding:0;border-radius:18px;background:#fff;font-size:22px;z-index:2}
@media(max-width:1100px){.filters{grid-template-columns:1fr 1fr}.date-range{flex-wrap:wrap}.table-wrap{max-height:none}}

.logout-btn{background:#fff;border:1px solid #bbb;border-radius:6px;padding:7px 14px;cursor:pointer}
.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f3f6f9;margin:0}
.login-card{width:min(420px,calc(100vw - 40px));background:#fff;border:1px solid #d9e0e6;border-radius:10px;padding:30px;box-shadow:0 8px 26px rgba(0,0,0,.08)}
.login-card h1{font-size:21px;margin:0 0 6px}.login-sub{margin:0 0 22px;color:#667}.login-form{display:grid;gap:16px}.login-form label{display:grid;gap:6px;font-weight:600}.login-form input{font-size:16px;padding:10px;border:1px solid #bbb;border-radius:6px}.login-error{background:#fff0f0;border:1px solid #e5b4b4;color:#9a1d1d;padding:10px;border-radius:6px;margin-bottom:16px}

/* Ver0.07 soft-delete controls */
.danger{background:#c9362b;color:#fff;border-color:#b22d24}.danger:hover{background:#ae2e26}
.trash-box{width:96vw;max-width:none;max-height:92vh;overflow:auto;padding:22px;background:#fff}
.trash-box h2{margin:0 48px 12px 0}.trash-count{font-size:14px;font-weight:normal;margin-left:16px}.trash-actions{display:flex;gap:10px;margin-bottom:12px}.trash-table-wrap{max-height:72vh;overflow:auto}
