/* 英作ブレイン 共通の見た目（デザイン案の色・文字に合わせる） */
:root { --accent:#1d4ed8; --accent-dark:#1e3a8a; --ink:#16202a; --sub:#47525e; --line:#dfe3ea; --bg:#f4f6f9;
        --ok:#15803d; --warn:#b45309; --err:#b91c1c; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', system-ui, sans-serif; }
a { color:var(--accent); } a:hover { color:var(--accent-dark); }
header.bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px;
             padding:16px 32px; background:#fff; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:12px; font-size:22px; font-weight:700; text-decoration:none; color:var(--ink); }
.logo { width:40px; height:40px; border-radius:10px; background:var(--accent); display:flex; align-items:center; justify-content:center; }
.status { display:flex; flex-wrap:wrap; gap:18px; font-size:15px; color:var(--sub); }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--ok); margin-right:6px; }
.dot.off { background:#9aa4b0; } .dot.err { background:var(--err); }
main { max-width:1100px; margin:0 auto; padding:32px 24px; }
main.center { min-height:calc(100vh - 140px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:32px; text-align:center; }
h1 { margin:0; font-size:38px; font-weight:700; } h2 { font-size:20px; margin:28px 0 12px; }
.lead { margin:0; font-size:19px; color:var(--sub); }
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; }
.steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:18px; width:100%; max-width:960px; text-align:left; }
.steps li { background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; gap:10px; }
.num { width:38px; height:38px; border-radius:50%; background:#e8eefc; color:var(--accent); font-size:19px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.steps li > .btn { margin-top:auto; }  /* ボタンはカードの一番下にそろえる */
.steps b { font-size:19px; } .steps span { font-size:15px; color:var(--sub); line-height:1.6; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:18px 36px; border-radius:16px; border:0;
       background:var(--accent); color:#fff; font-family:inherit; font-size:24px; font-weight:700; text-decoration:none; cursor:pointer;
       box-shadow:0 5px 0 var(--accent-dark); }
.btn:hover { color:#fff; filter:brightness(1.05); } .btn:disabled { opacity:.5; cursor:default; }
.btn.big { font-size:34px; padding:28px 56px; min-width:400px; border-radius:20px; }
.btn.sub { background:#fff; color:var(--accent); border:2px solid var(--accent); box-shadow:none; font-size:20px; font-weight:700; padding:14px 28px; }
.btn.small { font-size:16px; padding:10px 18px; box-shadow:none; border-radius:10px; font-weight:700; }
.note { font-size:15px; color:var(--sub); }
.msg { padding:14px 20px; border-radius:12px; font-size:17px; }
.msg.ok { background:#ecfdf3; border:1px solid #bbe5cb; color:#14532d; }
.msg.warn { background:#fff4e5; border:1px solid #f3c98b; color:#7c3d06; }
.msg.err { background:#fdecec; border:1px solid #f1b5b5; color:#7f1d1d; }
input.field { font-family:inherit; font-size:18px; padding:12px 14px; border-radius:10px; border:2px solid var(--line); width:100%; }
input.field:focus { outline:3px solid #c7d4f5; border-color:var(--accent); }
input.idbox { width:260px; font-size:44px; font-weight:700; letter-spacing:.4em; text-align:center; padding:14px; border:3px solid var(--accent); border-radius:14px; font-family:inherit; }
label { font-weight:700; display:block; margin-bottom:6px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; font-size:15px; }
th, td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#f3f3f3; font-weight:700; }
.tablewrap { overflow-x:auto; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:16px; }
.kpi .v { font-size:34px; font-weight:700; } .kpi .k { color:var(--sub); font-size:14px; }
.tag { display:inline-block; background:#e8eefc; color:var(--accent-dark); border-radius:999px; padding:2px 10px; font-size:13px; margin:2px 4px 2px 0; }
.badge { display:inline-block; border-radius:6px; padding:2px 8px; font-size:13px; font-weight:700; }
.badge.ready, .badge.printed { background:#ecfdf3; color:#14532d; } .badge.check { background:#fff4e5; color:#7c3d06; }
.badge.error { background:#fdecec; color:#7f1d1d; } .badge.queued, .badge.processing { background:#eef2f7; color:#334155; }
.hidden { display:none !important; }
.progress { height:12px; border-radius:6px; background:#e3e8ef; overflow:hidden; width:100%; max-width:640px; }
.progress > div { height:12px; background:var(--accent); width:0; transition:width .4s; }
.spinner { width:56px; height:56px; border-radius:50%; border:6px solid #c7d4f5; border-top-color:var(--accent); animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
footer.foot { padding:14px 32px; font-size:14px; color:#5b6672; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
/* 管理画面: 全体の傾向・生徒ID一覧 */
.trend { display:grid; grid-template-columns:minmax(140px, 260px) 1fr 110px; gap:12px; align-items:center; margin:8px 0; }
.trend-name { font-weight:700; }
.trend-bar { height:14px; background:#eef1f6; border-radius:999px; overflow:hidden; }
.trend-bar > span { display:block; height:100%; background:var(--accent); border-radius:999px; }
.trend-num { color:var(--sub); font-size:14px; text-align:right; }
.idlist { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:10px; }
.idlist a { display:block; padding:12px 0; text-align:center; background:#fff; border:1px solid var(--line); border-radius:12px;
            font-size:20px; font-weight:700; text-decoration:none; color:var(--ink); }
.idlist a:hover { border-color:var(--accent); color:var(--accent); }
.idsearch { display:flex; gap:10px; margin:0 0 14px; } .idsearch .field { width:200px; font-size:18px; padding:10px 12px; }
.kpi .v .of { font-size:18px; color:var(--sub); font-weight:700; } .kpi .v.near { color:var(--warn); } .kpi .v.over { color:var(--err); }
.card.danger { border-color:#f3c7c7; } .btn.danger { background:var(--err); }
.docgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.doccard{display:flex;flex-direction:column;gap:8px}
.doccard b{font-size:18px}
.doccard .note{line-height:1.6}
.doccard .btn{margin-top:auto;align-self:flex-start}
@media (max-width:800px){.docgrid{grid-template-columns:1fr}}
