/* 入口・ログイン・登録・確認の画面の共通スタイル（各級のアプリは各級の見た目のまま） */
:root{
  --paper:#f4f4f7; --sheet:#ffffff; --ink:#1d2129; --muted:#5b6170; --rule:#d5d8e0;
  --p2:#2a5bbf; --p2-soft:#e3ebf8; --g2:#17705e; --g2-soft:#e2efeb; --p1:#6340b8; --p1-soft:#ece6f7;
  --jp:"BIZ UDPGothic","Hiragino Sans","Yu Gothic",system-ui,sans-serif;
  --en:"Atkinson Hyperlegible","Segoe UI",Arial,sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --paper:#121419; --sheet:#1b1e25; --ink:#e4e7ee; --muted:#9ca3b2; --rule:#30343f;
  --p2:#7fa8f0; --p2-soft:#1c2a42; --g2:#5cc1a6; --g2-soft:#1c3530; --p1:#b39af0; --p1-soft:#2a2140; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#121419; --sheet:#1b1e25; --ink:#e4e7ee; --muted:#9ca3b2; --rule:#30343f;
  --p2:#7fa8f0; --p2-soft:#1c2a42; --g2:#5cc1a6; --g2-soft:#1c3530; --p1:#b39af0; --p1-soft:#2a2140; color-scheme:dark}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--jp);font-size:15px;line-height:1.75}
main{max-width:520px;margin:0 auto;padding:24px 16px 40px;display:flex;flex-direction:column;gap:18px}
.head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.head img{display:block}
h1{font-size:1.35rem;line-height:1.35;margin:0}
.beta{display:inline-block;font-size:.72rem;font-weight:700;color:var(--muted);border:1px solid var(--rule);border-radius:999px;padding:0 10px;margin-top:2px}
.card{background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px}
.say{display:flex;align-items:center;gap:10px}
.say img{flex:0 0 auto;border-radius:50%}
.say p{margin:0;background:var(--paper);border-radius:10px;padding:8px 12px;font-size:.92rem}
h2{font-size:1rem;margin:0}
.grades{display:flex;flex-direction:column;gap:10px}
.g{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 14px;border-radius:12px;border:1.5px solid var(--c);background:var(--sheet);color:var(--ink);text-decoration:none;font-weight:700}
.g .dot{width:14px;height:14px;border-radius:50%;background:var(--c)}
.g .name{font-size:1.1rem}
.g .sub{display:block;font-size:.78rem;font-weight:400;color:var(--muted);line-height:1.5}
.g .go{color:var(--c);font-size:.88rem}
.g:hover,.g:focus-visible{background:var(--cs)}
.g.last{background:var(--cs)}
.g[data-k="p2"]{--c:var(--p2);--cs:var(--p2-soft)} .g[data-k="g2"]{--c:var(--g2);--cs:var(--g2-soft)} .g[data-k="p1"]{--c:var(--p1);--cs:var(--p1-soft)}
.note{font-size:.84rem;color:var(--muted);margin:0}
footer{max-width:520px;margin:0 auto;padding:0 16px 32px;font-size:.68rem;color:var(--muted);line-height:1.6}
/* フォーム */
.tabs2{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--paper);border-radius:10px;padding:4px}
.tabs2 button{border:0;border-radius:8px;padding:8px 0;font:inherit;font-weight:700;background:none;color:var(--muted);cursor:pointer;min-height:42px}
.tabs2 button[aria-selected="true"]{background:var(--sheet);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
form{display:flex;flex-direction:column;gap:12px;margin:0}
.f{display:flex;flex-direction:column;gap:4px;font-size:.9rem;font-weight:700}
.f .hint{font-weight:400;font-size:.78rem;color:var(--muted)}
.f input,.f select{font:inherit;font-weight:400;color:var(--ink);background:var(--sheet);border:1.5px solid var(--rule);border-radius:8px;padding:0 12px;height:46px;width:100%;min-width:0}
.f input:focus,.f select:focus{outline:2px solid var(--p2);outline-offset:1px}
.radios{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.radios label{display:flex;align-items:center;gap:8px;border:1.5px solid var(--rule);border-radius:8px;padding:0 12px;height:46px;font-weight:400;cursor:pointer}
.radios input{width:18px;height:18px;margin:0}
.check{display:flex;gap:8px;align-items:flex-start;font-size:.86rem;font-weight:400}
.check input{width:18px;height:18px;margin:3px 0 0;flex:0 0 auto}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border-radius:10px;border:1.5px solid var(--p2);background:var(--sheet);color:var(--p2);font:inherit;font-weight:700;cursor:pointer;text-decoration:none;width:100%}
.btn.primary{background:var(--p2);color:var(--sheet)}
.btn:disabled{opacity:.55;cursor:default}
.link{background:none;border:0;padding:0;color:var(--p2);font:inherit;font-size:.86rem;text-decoration:underline;cursor:pointer;align-self:flex-start}
.status{font-size:.88rem;border-radius:8px;padding:8px 12px;margin:0}
.status:empty{display:none}
.status.err{background:#fbe9e2;color:#8a3415}
.status.ok{background:#e3f2e8;color:#1d5e35}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .status.err{background:#3a2219;color:#f6b79c} :root:not([data-theme="light"]) .status.ok{background:#1b3324;color:#9fe3b8}}
.acct{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;font-size:.84rem;color:var(--muted)}
.acct b{color:var(--ink);font-weight:700;overflow-wrap:anywhere}
.acct .link{align-self:center}
.doc h2{margin-top:6px}.doc p,.doc li{font-size:.9rem}.doc ul{margin:0;padding-left:1.2em}
.g.lock{opacity:.5;cursor:not-allowed;background:var(--paper)}
