/* 学生画面（index.html）専用の新デザイン — 2026-11
 * app.css は teacher.html / master.html と共用なので触らない。ここで上書きする。
 * 効く範囲は body.sp の中だけ。ログイン後は body.authed が付き、
 *   ・青いヒーローヘッダー → 隠す（ホームの上部が代わりになる）
 *   ・下にタブバー、操作は「下から出るシート」
 * デザイン案：Claude キャンバス「学生ポータル 画面デザイン」学生①②。 */

body.sp{
  --navy:#0E3A63; --navy-2:#1769AA; --ground:#F2F4F7; --card:#fff;
  --ink2:#111827; --sub2:#6B7280; --hair:#E5E7EB;
  --r-xl:24px; --r-l:20px; --r-m:14px;
  --shadow-s:0 1px 2px rgba(17,24,39,.05);
  --tabbar-h:64px;
}
body.sp.authed{background:var(--ground);color:var(--ink2);}
body.sp.authed > header,
body.sp.authed > footer{display:none;}
body.sp.authed main{padding:0 0 calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom,0px));}
body.sp.authed .backrow{margin-top:14px;}

/* ── ホーム上部 ── */
.home-top{display:flex;align-items:center;gap:10px;padding:14px 20px 4px;
  padding-top:calc(14px + env(safe-area-inset-top,0px));}
.home-top .mark{height:26px;width:auto;display:block;}
.home-top .ttl{flex:1;font-size:.95rem;font-weight:800;letter-spacing:.02em;}
.iconbtn{width:44px;height:44px;border-radius:999px;border:0;background:var(--card);
  box-shadow:var(--shadow-s);display:grid;place-items:center;color:var(--ink2);cursor:pointer;
  font:inherit;-webkit-tap-highlight-color:transparent;text-decoration:none;}
.iconbtn:active{transform:scale(.95);}
.avatarbtn{background:#DCE8F5;color:var(--navy);font-weight:800;font-size:.95rem;}

.home-hello{padding:10px 20px 16px;display:flex;flex-direction:column;gap:2px;}
.home-hello .date{font-size:.85rem;color:var(--sub2);}
.home-hello .hi{font-size:clamp(1.4rem,6.4vw,1.65rem);font-weight:800;line-height:1.35;}
.home-hello .meta{font-size:.8rem;color:var(--sub2);font-weight:700;display:flex;gap:8px;flex-wrap:wrap;}

.home-body{padding:0 16px;display:flex;flex-direction:column;gap:16px;}

/* ── アンケートの大きなカード ── */
.hero{position:relative;overflow:hidden;border:0;border-radius:var(--r-xl);padding:20px;
  background:var(--navy);color:#fff;text-align:left;font:inherit;cursor:pointer;width:100%;
  display:flex;flex-direction:column;gap:14px;box-shadow:0 10px 24px rgba(14,58,99,.28);
  -webkit-tap-highlight-color:transparent;}
.hero::before,.hero::after{content:"";position:absolute;border-radius:50%;pointer-events:none;}
.hero::before{right:-40px;top:-40px;width:170px;height:170px;background:#1769AA;opacity:.55;}
.hero::after{right:30px;top:60px;width:70px;height:70px;background:#2E86C9;opacity:.5;}
.hero > *{position:relative;}
.hero:active{transform:scale(.99);}
.hero .state{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;
  border-radius:999px;background:#F6C344;color:#3D2C00;font-size:.75rem;font-weight:800;}
.hero .state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;}
.hero.done .state{background:rgba(255,255,255,.18);color:#fff;}
.hero .name{font-size:1.35rem;font-weight:800;line-height:1.35;}
.hero .sub{font-size:.82rem;color:#C8DBEE;}
.hero .foot{display:flex;align-items:center;gap:12px;}
.hero .more{flex:1;font-size:.8rem;color:#C8DBEE;font-weight:700;}
.hero .cta{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;
  background:#fff;color:var(--navy);font-weight:800;font-size:.9rem;margin-left:auto;}

/* ── 2枚のタイル ── */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tile{background:var(--card);border:0;border-radius:var(--r-l);padding:16px;text-align:left;font:inherit;
  color:var(--ink2);display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-s);cursor:pointer;
  -webkit-tap-highlight-color:transparent;min-height:44px;}
.tile:active{transform:scale(.98);}
.tile .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;}
.tile .k{font-size:.75rem;color:var(--sub2);}
.tile .v{font-size:1rem;font-weight:800;line-height:1.35;}
.tile .v b{font-size:1.4rem;}
.tile .go2{font-size:.82rem;font-weight:800;color:var(--navy-2);}
.tile .s{font-size:.75rem;color:var(--sub2);}

/* ── メニューの格子 ── */
.sec2{display:flex;flex-direction:column;gap:10px;}
.sec2 h2{font-size:1.05rem;font-weight:800;margin:0;}
.grid8{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 4px;background:var(--card);
  border-radius:var(--r-l);padding:16px 8px;box-shadow:var(--shadow-s);}
.gi{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;font:inherit;
  color:var(--ink2);padding:4px 0;cursor:pointer;min-height:44px;position:relative;-webkit-tap-highlight-color:transparent;}
.gi .ic{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;}
.gi:active .ic{transform:scale(.94);}
.gi .lb{font-size:.7rem;font-weight:800;text-align:center;line-height:1.3;}
.gi .mk{font-size:.6rem;font-weight:800;color:var(--sub2);background:#EEF0F3;border-radius:999px;padding:0 6px;line-height:1.6;}
.gi .badge-done{position:absolute;top:-4px;right:2px;margin:0;font-size:.58rem;padding:1px 6px;}
.menu-note{font-size:.72rem;color:var(--sub2);padding:0 4px;}
.home-out{align-self:center;border:0;background:none;font:inherit;color:var(--sub2);font-size:.85rem;
  min-height:44px;padding:0 16px;cursor:pointer;margin-top:4px;}

/* 色のついたアイコン台（格子・タイル共通） */
.c-blue{background:#E3EEFA;color:#1769AA;} .c-violet{background:#EDE7FA;color:#5B3FB0;}
.c-green{background:#E6F4EA;color:#1E7B34;} .c-amber{background:#FDEFD7;color:#B26A00;}
.c-teal{background:#E7F1F2;color:#1C6E73;} .c-rose{background:#FCE8EC;color:#B4234A;}
.c-gray{background:#EEF0F3;color:#4B5563;}

/* ── 下のタブバー ── */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:saturate(1.6) blur(12px);backdrop-filter:saturate(1.6) blur(12px);
  border-top:1px solid var(--hair);padding-bottom:env(safe-area-inset-bottom,0px);}
.tabbar .in{max-width:640px;margin:0 auto;height:var(--tabbar-h);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
.tabbar button{border:0;background:none;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;color:var(--sub2);font-size:.68rem;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.tabbar button[aria-current="page"]{color:var(--navy);font-weight:800;}
.tabbar button[aria-current="page"] svg{fill:currentColor;}
.tabbar button:active svg{transform:scale(.9);}

/* ── 下から出るシート ── */
.sheet{position:fixed;inset:0;z-index:60;background:rgba(10,20,35,0);transition:background .2s ease;}
.sheet.on{background:rgba(10,20,35,.45);}
.sheet-panel{position:absolute;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;background:#fff;
  border-radius:28px 28px 0 0;padding:10px 20px calc(28px + env(safe-area-inset-bottom,0px));
  max-height:86dvh;overflow-y:auto;box-shadow:0 -12px 40px rgba(10,20,35,.2);
  transform:translateY(100%);transition:transform .24s cubic-bezier(.2,.8,.2,1);outline:none;
  display:flex;flex-direction:column;gap:16px;color:var(--ink2);}
.sheet.on .sheet-panel{transform:none;}
.sheet-grip{align-self:center;width:40px;height:5px;border-radius:999px;background:#D1D5DB;flex:none;}
body.sheet-open{overflow:hidden;}
.sh-head{display:flex;align-items:center;gap:14px;}
.sh-head .ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex:none;}
.sh-title{font-size:1.25rem;font-weight:800;line-height:1.35;}
.sh-sub{font-size:.82rem;color:var(--sub2);}
.sh-text{font-size:.9rem;color:#374151;line-height:1.75;white-space:pre-line;}
.sh-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.sh-stats div{background:#F3F4F6;border-radius:var(--r-m);padding:10px 6px;display:flex;flex-direction:column;align-items:center;text-align:center;}
.sh-stats b{font-size:1.1rem;font-weight:800;}
.sh-stats span{font-size:.68rem;color:var(--sub2);}
.sh-actions{display:flex;flex-direction:column;gap:8px;}
.sbtn{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:16px;border:0;
  font:inherit;font-weight:800;font-size:1rem;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.sbtn.primary{background:var(--navy);color:#fff;}
.sbtn.danger{background:#DC2626;color:#fff;}
.sbtn.quiet{background:transparent;color:#374151;font-weight:700;height:48px;}
.sbtn:active{transform:scale(.985);}
.sh-list{display:flex;flex-direction:column;background:#F3F4F6;border-radius:16px;overflow:hidden;}
.sh-list button{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 16px;border:0;
  border-bottom:1px solid var(--hair);background:transparent;text-align:left;font:inherit;color:var(--ink2);cursor:pointer;}
.sh-list button:last-child{border-bottom:0;}
.sh-list button[disabled]{color:#9CA3AF;cursor:default;}
.sh-list .nat{flex:1;font-weight:700;}
.sh-list .en{font-size:.75rem;color:var(--sub2);}
.sh-list .ck{color:var(--navy-2);font-weight:800;}
.sheet .list{margin:0;border-radius:16px;overflow:hidden;border:1px solid var(--hair);}
.sh-steps{display:flex;flex-direction:column;gap:10px;font-size:.92rem;line-height:1.7;}
.sh-steps div{background:#F3F4F6;border-radius:var(--r-m);padding:12px 14px;}

/* ── マイ（設定） ── */
.set-wrap{padding:16px 16px 0;padding-top:calc(16px + env(safe-area-inset-top,0px));display:flex;flex-direction:column;gap:22px;}
.set-wrap h1{font-size:1.75rem;font-weight:800;margin:8px 4px 0;}
.set-card{background:var(--card);border-radius:var(--r-xl);padding:18px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow-s);}
.set-card .av{width:60px;height:60px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;
  font-size:1.35rem;font-weight:800;flex:none;}
.set-card .nm{font-size:1.2rem;font-weight:800;line-height:1.35;}
.set-card .mt{font-size:.82rem;color:var(--sub2);}
.set-sec{display:flex;flex-direction:column;gap:8px;}
.set-sec h2{margin:0 4px;font-size:.8rem;font-weight:700;color:var(--sub2);}
.set-group{background:var(--card);border-radius:var(--r-l);overflow:hidden;box-shadow:var(--shadow-s);}
.set-row{width:100%;display:flex;align-items:center;gap:14px;min-height:56px;padding:0 16px;border:0;
  border-bottom:1px solid #EEF0F3;background:transparent;text-align:left;font:inherit;color:var(--ink2);cursor:pointer;}
.set-row:last-child{border-bottom:0;}
.set-row .ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none;color:#fff;}
.set-row .lb{flex:1;font-weight:700;}
.set-row .vl{font-size:.85rem;color:var(--sub2);}
.set-row .chev{width:8px;height:8px;border-right:2px solid #9CA3AF;border-bottom:2px solid #9CA3AF;transform:rotate(-45deg);}
.set-block{padding:14px 16px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEF0F3;}
.set-block .hd{display:flex;align-items:center;gap:14px;}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#F3F4F6;border-radius:12px;padding:4px;}
.seg button{height:40px;border:0;border-radius:9px;background:transparent;font:inherit;font-weight:700;color:var(--ink2);cursor:pointer;}
.seg button[aria-checked="true"]{background:#fff;box-shadow:0 1px 3px rgba(17,24,39,.15);}
.set-out{min-height:52px;border-radius:var(--r-l);border:0;background:var(--card);color:#DC2626;font:inherit;font-weight:800;
  box-shadow:var(--shadow-s);cursor:pointer;}

/* 文字の大きさ（マイで選ぶ。html の基準を変えるだけ） */
html.fs-s{font-size:93.75%;} html.fs-l{font-size:112.5%;}

@media (prefers-reduced-motion:reduce){
  .sheet,.sheet-panel{transition:none;}
}

/* ── アンケート回答（段階3）：上の × と進み具合、下のページ送り ── */
.sv-top{display:flex;align-items:center;gap:12px;padding:14px 16px 8px;
  padding-top:calc(14px + env(safe-area-inset-top,0px));}
.sv-top-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;}
.sv-top-t .ttl{font-size:.95rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere;}
.sv-top-t .stp{font-size:.78rem;font-weight:700;color:var(--sub2);}
.sv-top-t .stp:empty{display:none;}
.sv-prog{height:6px;margin:0 16px 12px;border-radius:999px;background:#E5E7EB;overflow:hidden;}
.sv-prog i{display:block;height:100%;width:0;border-radius:999px;background:var(--navy-2);transition:width .25s ease;}
body.sp #scr-survey .panel{border-radius:var(--r-l);}
.sv-nav{display:flex;flex-direction:column;gap:8px;margin-top:8px;}
.sv-nav .sbtn[hidden],.sv-nav .btn[hidden]{display:none;}
.sv-nav #btn-survey-next{order:1;} .sv-nav #btn-survey-submit{order:1;} .sv-nav #btn-survey-prev{order:2;}
.sbtn.warn{color:#B91C1C;}

/* ── 提出完了 ── */
.svd{max-width:520px;margin:0 auto;padding:48px 20px 24px;padding-top:calc(48px + env(safe-area-inset-top,0px));
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;}
.svd-ic{width:84px;height:84px;border-radius:50%;background:#E6F4EA;color:#1E7B34;display:grid;place-items:center;margin-bottom:8px;}
.svd-t{font-size:1.6rem;font-weight:800;margin:0;}
.svd-name{font-size:1rem;font-weight:700;overflow-wrap:anywhere;}
.svd-when{font-size:.85rem;color:var(--sub2);}
.svd-note{font-size:.88rem;color:#374151;line-height:1.75;margin:6px 0 14px;}
.svd .sh-actions{width:100%;}

/* ── 回答の控え（シートの中）── */
.sv-copy{display:flex;flex-direction:column;gap:8px;}
.sv-copy-sec{font-size:.85rem;font-weight:800;color:var(--navy);margin-top:8px;}
.sv-copy-row{background:#F3F4F6;border-radius:var(--r-m);padding:10px 14px;display:flex;flex-direction:column;gap:3px;}
.sv-copy-row .q{font-size:.78rem;color:var(--sub2);line-height:1.5;}
.sv-copy-row .a{font-size:.95rem;font-weight:700;line-height:1.6;overflow-wrap:anywhere;white-space:pre-line;}
.sv-copy-row .a.none{color:#9CA3AF;font-weight:400;}

/* ── 2026-11-15 微調整 ── */
/* 大きなカードの飾りの丸を文字の後ろへ（長い題名に重なって読みにくかった） */
.hero::before,.hero::after{z-index:0;}
.hero > *{z-index:1;}
.hero .name{padding-right:8px;}
/* メニューのアンケートの札は短く（✓ か 3/4）。アイコンの右上に丸く乗せる */
.gi .badge-done{top:-2px;right:calc(50% - 34px);min-width:22px;height:22px;padding:0 6px;border-radius:999px;
  display:grid;place-items:center;font-size:.68rem;line-height:1;border:2px solid #fff;white-space:nowrap;}

/* ── アンケート回答のフォーム（survey-form.js が作る部品）を新デザインに合わせる ── */
body.sp.authed #scr-survey .panel{background:transparent;border:0;box-shadow:none;padding:0 16px 8px;margin:0;}
body.sp #survey-intro{background:var(--card);border-radius:var(--r-l);padding:14px 16px;box-shadow:var(--shadow-s);
  color:#374151!important;font-size:.88rem!important;}
body.sp .sv-form .sv-identity{background:var(--card);border:0;border-radius:var(--r-l);padding:16px;box-shadow:var(--shadow-s);margin-bottom:14px;}
body.sp .sv-form .sv-identity h2{font-size:.8rem;font-weight:800;color:var(--sub2);margin:0 0 8px;}
body.sp .sv-form .sv-identity dl{font-size:.88rem;}
body.sp .sv-form .sv-section{background:none;border:0;border-radius:0;padding:0 4px;margin:18px 0 12px;
  font-size:1.35rem;font-weight:800;line-height:1.4;color:var(--ink2);}
body.sp .sv-form .sv-question{background:var(--card);border-radius:22px;padding:18px 16px;margin:0 0 12px;box-shadow:var(--shadow-s);}
body.sp .sv-form .sv-question>label{display:block;font-size:1rem;font-weight:800;color:var(--ink2);line-height:1.6;margin-bottom:10px;}
body.sp .sv-required{font-size:.68rem;font-weight:800;border-radius:999px;padding:2px 8px;background:#FCE8EC;color:#B4234A;margin-left:8px;}
body.sp .sv-form .sv-hint{color:var(--sub2);font-size:.8rem;margin:-4px 0 10px;}
body.sp .sv-form .sv-options{gap:8px;}
body.sp .sv-form .sv-option{min-height:52px;align-items:center;gap:12px;padding:10px 14px;border:2px solid var(--hair);
  border-radius:14px;background:#fff;font-size:.95rem;font-weight:600;color:var(--ink2);-webkit-tap-highlight-color:transparent;}
body.sp .sv-form .sv-option input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:#1E7B34;}
body.sp .sv-form .sv-option:has(input:checked){border-color:#1E7B34;background:#E6F4EA;}
body.sp .sv-form .sv-option:has(input:disabled){opacity:.5;}
body.sp .sv-form select,
body.sp .sv-form input[type=text],
body.sp .sv-form input[type=date]{width:100%;min-height:52px;border:2px solid transparent;border-radius:14px;background-color:#F3F4F6;
  padding:0 14px;font:inherit;font-size:1rem;color:var(--ink2);}
body.sp .sv-form select{-webkit-appearance:none;appearance:none;padding-right:40px;font-weight:600;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;}
body.sp .sv-form select:focus,
body.sp .sv-form input:focus{outline:none;border-color:var(--navy-2);background-color:#fff;}
body.sp .sv-form [aria-invalid=true]{outline:none;border-color:#DC2626!important;}

body.sp .sv-form .sv-options[aria-invalid=true]{border-radius:16px;box-shadow:0 0 0 2px #DC2626;}
body.sp .sv-form .sv-field-error{font-size:.85rem;font-weight:700;color:#B42318;margin-top:8px;}
/* 下のボタン（つぎへ・そうしん）は大きく */
body.sp #scr-survey .sv-nav .btn,
body.sp #scr-survey .sv-nav .sbtn.primary{height:56px;border-radius:18px;background:var(--navy);color:#fff;font-size:1rem;font-weight:800;
  box-shadow:0 8px 20px rgba(14,58,99,.25);padding:0;}
body.sp #scr-survey .msg{margin:10px 0 0;}

/* ── 小テスト（段階4・2026-11-16）：上に×と進み具合、大きな選択肢、下にもどる／つぎへ ── */
.qz-top{padding-bottom:4px;}
.qz-prog{flex:1;height:10px;border-radius:999px;background:#DCE2EA;overflow:hidden;margin:0 4px;}
.qz-prog i{display:block;height:100%;width:0;border-radius:999px;background:var(--navy-2);transition:width .25s ease;}
body.sp #scr-quiz .qnum{min-width:52px;text-align:center;font-size:.82rem;font-weight:800;color:#374151;}
.qz-meta{display:flex;gap:8px;padding:2px 22px 0;}
.qz-chip{height:28px;padding:0 10px;border-radius:999px;background:#E3EEFA;color:#0F4E85;font-size:.75rem;font-weight:800;
  display:inline-flex;align-items:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.qz-chip[hidden]{display:none;}
.qz-body{max-width:640px;margin:0 auto;padding:14px 16px calc(96px + env(safe-area-inset-bottom,0px));
  display:flex;flex-direction:column;gap:16px;}
.qz-card{background:var(--card);border-radius:var(--r-xl);padding:22px 20px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-s);}
.qz-lead{font-size:.82rem;color:var(--sub2);}
body.sp #scr-quiz .prompt{font-size:1.4rem;font-weight:700;line-height:2.15;margin:0;overflow-wrap:anywhere;}
#choices{display:flex;flex-direction:column;gap:10px;}
#choices.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
body.sp #scr-quiz .choice{position:relative;margin:0;min-height:64px;border-radius:var(--r-l);border:2px solid var(--card);
  background:var(--card);box-shadow:var(--shadow-s);font-size:1.05rem;font-weight:800;color:var(--ink2);padding:12px 16px;gap:12px;
  -webkit-tap-highlight-color:transparent;}
body.sp #scr-quiz #choices.grid .choice{min-height:84px;justify-content:center;font-size:1.35rem;padding:14px 10px;text-align:center;}
body.sp #scr-quiz #choices.grid .choice .mark{position:absolute;left:10px;top:10px;width:22px;height:22px;font-size:.7rem;}
body.sp #scr-quiz .choice.sel{border-color:var(--navy-2);background:#E3EEFA;color:#0F4E85;box-shadow:0 0 0 4px rgba(23,105,170,.12);}
body.sp #scr-quiz .savest{margin:0;}
body.sp #scr-quiz .msg{margin:0;}
.qz-foot{position:fixed;left:0;right:0;bottom:0;z-index:20;max-width:640px;margin:0 auto;display:flex;gap:10px;
  padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px));background:var(--ground);}
.qz-foot .sbtn{height:56px;border-radius:18px;font-weight:800;}
.qz-foot .qz-prev{width:120px;flex:none;background:var(--card);color:var(--ink2);box-shadow:var(--shadow-s);font-weight:700;}
.qz-foot .qz-prev[hidden]{display:none;}
.qz-foot #btn-next{flex:1;background:var(--navy-2);color:#fff;font-size:1rem;box-shadow:0 8px 20px rgba(23,105,170,.3);}
.qz-foot #btn-next:disabled{background:#B9C6D6;box-shadow:none;cursor:default;}
/* 提出前のシート：番号のボタン（まだの問題は黄色） */
.qz-dots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.qz-dot{height:48px;border-radius:14px;border:0;background:#E3EEFA;color:#0F4E85;font:inherit;font-weight:800;cursor:pointer;}
.qz-dot.blank{background:#FEF3C7;color:#7A4A00;box-shadow:inset 0 0 0 2px #F6C344;}
.sh-note{font-size:.78rem;color:var(--sub2);text-align:center;margin:0;}

/* ── 結果（段階4）：点数のリング・問題ごとの ○× ── */
.rs-ttl{flex:1;text-align:center;font-weight:800;padding-right:44px;}
.rs{max-width:640px;margin:0 auto;padding:4px 16px 24px;display:flex;flex-direction:column;gap:14px;}
.rs-hero{position:relative;overflow:hidden;background:var(--navy);color:#fff;border-radius:28px;padding:22px 20px;
  display:flex;flex-direction:column;align-items:center;gap:10px;}
.rs-hero::before{content:"";position:absolute;left:-50px;bottom:-60px;width:180px;height:180px;border-radius:50%;
  background:var(--navy-2);opacity:.45;}
.rs-sub{position:relative;font-size:.82rem;color:#C8DBEE;text-align:center;overflow-wrap:anywhere;}
.rs-sub:empty{display:none;}
.rs-ring{position:relative;width:168px;height:168px;}
.rs-ring svg{display:block;}
.rs-ring circle{fill:none;stroke-width:14;}
.rs-ring .bg{stroke:rgba(255,255,255,.18);}
.rs-ring .arc{stroke:#F6C344;stroke-linecap:round;stroke-dasharray:0 440;transition:stroke-dasharray .6s ease;}
.rs-num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
body.sp .rs-num .big{font-size:3.2rem;font-weight:800;line-height:1;color:#fff;}
body.sp .rs-num .of{font-size:.88rem;color:#C8DBEE;font-weight:700;}
.rs-card{background:var(--card);border-radius:var(--r-xl);padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-s);}
.rs-h{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.rs-h h2{margin:0;font-size:1rem;font-weight:800;}
.rs-h span{font-size:.75rem;color:var(--sub2);}
.rs-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.rmk{height:56px;border-radius:16px;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  line-height:1.2;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.rmk.ok{background:#E6F4EA;color:#1E7B34;}
.rmk.ng{background:#FDE7E7;color:#B42318;}
.rmk .n{font-size:.7rem;font-weight:700;opacity:.8;}
.rmk .s{font-size:1.15rem;font-weight:800;}
.rs-prev{flex-direction:row;align-items:center;gap:14px;}
.rs-prev[hidden]{display:none;}
.rs-prev-ic{width:44px;height:44px;border-radius:14px;background:#E6F4EA;color:#1E7B34;display:grid;place-items:center;flex:none;}
.rs-prev-t{display:flex;flex-direction:column;min-width:0;}
.rs-prev-t b{font-size:.9rem;}
.rs-prev-t span{font-size:.75rem;color:var(--sub2);}
/* 答え合わせのシート */
.ax-head{display:flex;align-items:center;gap:10px;}
.ax-chip{height:28px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:800;display:inline-flex;align-items:center;flex:none;}
.ax-chip.ng{background:#FDE7E7;color:#B42318;}
.ax-chip.ok{background:#E6F4EA;color:#1E7B34;}
.ax-q{margin:0;font-size:1.15rem;font-weight:700;line-height:2.15;overflow-wrap:anywhere;}
.ax-rows{display:flex;flex-direction:column;gap:8px;}
.ax-row{display:flex;align-items:baseline;gap:10px;padding:12px 14px;border-radius:14px;flex-wrap:wrap;}
.ax-row.ng{background:#FDE7E7;color:#8A1C12;}
.ax-row.ok{background:#E6F4EA;color:#14532D;}
.ax-row .k{font-size:.85rem;}
.ax-row .v{font-size:1.05rem;}
.ax-tip{background:#F3F4F6;border-radius:16px;padding:12px 14px;font-size:.88rem;color:#374151;line-height:1.85;}
.ax-tip b{color:var(--ink2);margin-right:8px;}

/* パスワードを かえる（2026-11-20）。見た目は最小＝あとで /design で磨く */
body.sp #scr-password .pw-lead{font-size:.92rem;line-height:1.7;margin:0 0 10px;}
body.sp #scr-password .pw-rules{margin:0 0 14px;padding:10px 12px 10px 28px;background:#FEF3C7;border-radius:12px;font-size:.88rem;line-height:1.7;font-weight:700;color:#78350F;}
body.sp #scr-password .pw-forget{font-size:.85rem;color:#374151;margin:14px 0 0;line-height:1.7;}
body.sp #scr-password .set-out{margin-top:14px;}
body.sp #scr-password .set-out{width:100%;}

/* はじめのお知らせ（個人情報のあつかい・2026-11-22）。読む画面なので、行間を広く・字を大きめに */
body.sp #scr-notice .nt-lang{display:block;margin:0 0 12px auto;background:#fff;border:1.5px solid #D1D5DB;border-radius:99px;padding:7px 14px;font:inherit;font-size:.85rem;font-weight:700;color:#374151;cursor:pointer;}
body.sp #scr-notice .nt-sub{font-size:.9rem;color:#4B5563;margin:4px 0 12px;}
body.sp #scr-notice .nt-changed{background:#FEF3C7;color:#78350F;border-radius:12px;padding:10px 12px;font-size:.9rem;font-weight:700;line-height:1.7;margin:0 0 12px;}
body.sp #scr-notice .nt-body{font-size:1rem;line-height:1.95;margin:0 0 16px;overflow-wrap:anywhere;}
body.sp #scr-notice .nt-body .pn-h{font-size:1.02rem;font-weight:800;margin:20px 0 4px;color:#1E3A8A;}
body.sp #scr-notice .nt-body .pn-p{margin:0 0 8px;}
body.sp #scr-notice .nt-body .pn-ul{margin:0 0 8px;padding-left:22px;}
body.sp #scr-notice .nt-readon{background:#DCFCE7;color:#166534;border-radius:12px;padding:10px 12px;font-weight:700;margin:0 0 12px;}
body.sp #scr-notice .set-out{margin-top:14px;width:100%;}
