:root{--bg:#f4f1ea;--card:#fdfbf7;--navy:#1f3d5c;--navy-dark:#162c44;--ink:#14181f;--muted:#696762;--line:rgba(20,24,31,.12);--green:#2f8f6b}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--ink);font-family:Hiragino Kaku Gothic ProN,Noto Sans JP,Yu Gothic,Meiryo,sans-serif;line-height:1.7;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer}.topbar{position:-webkit-sticky;position:sticky;top:0;z-index:50;background:var(--navy);color:#fff;display:flex;align-items:center;gap:16px;padding:0 20px;height:56px}.topbar .brand{font-weight:700;font-size:15px;letter-spacing:.02em}.topbar .brand small{display:block;font-size:10px;font-weight:400;color:#c9d3dc;letter-spacing:.12em;line-height:1;margin-bottom:2px}.topbar .spacer{flex:1 1}.topbar .user{font-size:13px;color:#e5e9ed}.topbar .navlink{font-size:12px;padding:6px 14px;border-radius:999px;border:1px solid hsla(0,0%,100%,.35);color:#fff;background:transparent}.topbar .navlink:hover{background:hsla(0,0%,100%,.12)}.container{max-width:1120px;margin:0 auto;padding:28px 20px 80px}.hero{background:linear-gradient(120deg,var(--navy) 0,#2c5378 100%);color:#fff;border-radius:16px;padding:28px 28px 24px;margin-bottom:28px}.hero h1{font-size:22px;margin-bottom:6px}.hero p{font-size:13px;color:#d9e1e8}.hero .progress-row{display:flex;align-items:center;gap:16px;margin-top:18px;flex-wrap:wrap}.hero .bar{flex:1 1;min-width:220px;height:10px;background:hsla(0,0%,100%,.2);border-radius:999px;overflow:hidden}.hero .bar>span{display:block;height:100%;background:linear-gradient(90deg,#4d7aa8,#7ea3c8);border-radius:999px}.hero .pct{font-size:20px;font-weight:700}.hero .pct small{font-size:12px;font-weight:400;color:#d9e1e8;margin-left:4px}.btn-continue{display:inline-flex;align-items:center;gap:8px;background:#fff;color:var(--navy);font-weight:700;font-size:14px;padding:12px 24px;border-radius:999px;border:none}.btn-continue:hover{background:#eef2f6}.chapter{background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:20px;overflow:hidden}.chapter-head{padding:16px 20px 12px;border-bottom:1px solid var(--line)}.chapter-head .row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.chapter-head h2{font-size:16px}.chapter-head .count,.chapter-head .note{font-size:12px;color:var(--muted)}.chapter-head .note{margin-top:2px}.chapter-head .chbar{height:6px;background:#e7e2d3;border-radius:999px;overflow:hidden;margin-top:10px}.chapter-head .chbar>span{display:block;height:100%;background:var(--green);border-radius:999px}.lecture-row{display:flex;align-items:center;gap:14px;padding:12px 20px;border-bottom:1px solid var(--line)}.lecture-row:last-child{border-bottom:none}.lecture-row:hover{background:#f7f3e9}.lecture-row .thumb{position:relative;width:120px;min-width:120px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#ddd}.lecture-row .thumb img{width:100%;height:100%;object-fit:cover;display:block}.lecture-row .thumb .dur{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,.75);color:#fff;font-size:10px;padding:1px 5px;border-radius:3px}.lecture-row .meta{flex:1 1;min-width:0}.lecture-row .lid{font-size:11px;font-weight:700;color:var(--navy)}.lecture-row .ltitle{font-size:14px;font-weight:600;line-height:1.5}.lecture-row .status{font-size:12px;white-space:nowrap}.status .done{color:var(--green);font-weight:700}.status .todo{color:var(--muted)}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:36px 32px;width:100%;max-width:400px;box-shadow:0 16px 40px rgba(20,24,31,.08)}.login-card .eyebrow{font-size:11px;letter-spacing:.18em;color:var(--navy);font-weight:700}.login-card h1{font-size:20px;margin:6px 0 4px;color:var(--navy)}.login-card .sub{font-size:12px;color:var(--muted);margin-bottom:22px}.field{margin-bottom:14px}.field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:4px}.field input{width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:8px;font-size:15px;background:#fbfaf6}.field input:focus{outline:2px solid rgba(31,61,92,.35)}.btn-primary{width:100%;padding:13px;border:none;border-radius:8px;background:var(--navy);color:#fff;font-size:15px;font-weight:700}.btn-primary:hover{background:var(--navy-dark)}.btn-primary:disabled{opacity:.6;cursor:default}.error{background:#f8e6e2;color:#9b3a2a;font-size:13px;padding:10px 14px;border-radius:8px;margin-bottom:14px}.login-foot{font-size:11px;color:var(--muted);margin-top:18px;line-height:1.6}.watch-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-gap:24px;gap:24px}@media (max-width:900px){.watch-grid{grid-template-columns:1fr}}.player-box{background:#000;border-radius:14px;overflow:hidden;aspect-ratio:16/9}.player-box iframe{width:100%;height:100%;display:block;border:none}.watch-title{margin-top:16px}.watch-title .lid{font-size:12px;font-weight:700;color:var(--navy)}.watch-title h1{font-size:20px;color:var(--navy);line-height:1.5}.watch-title .chip{display:inline-block;font-size:11px;color:var(--muted);background:#e8eef3;border-radius:999px;padding:2px 10px;margin-top:6px}.watch-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.btn-nav{padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:600}.btn-nav:hover{background:#f2ede2}.btn-nav.primary{background:var(--navy);border-color:var(--navy);color:#fff}.btn-nav.primary:hover{background:var(--navy-dark)}.btn-watched{padding:10px 18px;border-radius:999px;border:1px solid var(--green);background:#fff;color:var(--green);font-size:13px;font-weight:700}.btn-watched.on{background:var(--green);color:#fff}.playlist{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;max-height:78vh;overflow-y:auto}.playlist .pl-head{padding:12px 16px;font-size:13px;font-weight:700;color:var(--navy);border-bottom:1px solid var(--line);position:-webkit-sticky;position:sticky;top:0;background:var(--card)}.playlist .pl-ch{padding:8px 16px 4px;font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.05em}.pl-item{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:12.5px;border-left:3px solid transparent}.pl-item:hover{background:#f7f3e9}.pl-item.current{border-left-color:var(--navy);background:#eef2f6;font-weight:700}.pl-item .mark{width:16px;min-width:16px;text-align:center;color:var(--green);font-size:12px}.pl-item .t{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pl-item .d{color:var(--muted);font-size:11px}.admin-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:20px}.admin-card h2{font-size:16px;color:var(--navy);margin-bottom:14px}.admin-form{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.admin-form .field{margin-bottom:0;flex:1 1;min-width:180px}.btn-small{padding:10px 20px;border:none;border-radius:8px;background:var(--navy);color:#fff;font-size:13px;font-weight:700;white-space:nowrap}.btn-small:hover{background:var(--navy-dark)}.btn-ghost{padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px}.btn-ghost:hover{background:#f2ede2}.btn-ghost.danger{color:#9b3a2a;border-color:rgba(155,58,42,.4)}.issued{background:#eaf5ef;border:1px solid rgba(47,143,107,.35);border-radius:10px;padding:14px 16px;margin-top:14px;font-size:13px}.issued code{background:#fff;border:1px solid var(--line);border-radius:4px;padding:2px 8px;font-size:14px;font-weight:700}table.users{width:100%;border-collapse:collapse;font-size:13px}table.users td,table.users th{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line)}table.users th{font-size:11px;color:var(--muted);letter-spacing:.05em}.badge-role{font-size:10px;font-weight:700;border-radius:999px;padding:2px 8px}.badge-role.admin{background:#e8eef3;color:var(--navy)}.badge-role.student{background:#eef2f6;color:#40556b}.badge-off{font-size:10px;font-weight:700;border-radius:999px;padding:2px 8px;background:#eee;color:#888}.progress-mini{font-size:12px;color:var(--muted)}.footer-note{margin-top:40px;font-size:11px;color:var(--muted);text-align:center}