/* Memora Q 社会：テーマの中（js/memq.js）。91回目の決まった形の色と字（黒い地・金・白）。2026-11-22。
   手本＝世界史_一問一答/案/op82q（i89q_5.js のノート穴埋め・i90q_1.js の行と単語カード・i87q_2.js の年表）。 */
.mq, .mq-ob, .sheet.mq-sheet {
  --mq-bg: #0A0B0E; --mq-w: #F2F3F5; --mq-sub: rgba(255,255,255,.6); --mq-dim: rgba(255,255,255,.42); --mq-ln: rgba(255,255,255,.14);
  --mq-g: #FFD46A; --mq-g2: #E3B35C; --mq-ink: #1A1406; --mq-blue: #8DB4EC; --mq-red: #FF7A70; --mq-ok: #7CCB9C;
  --mq-gls: rgba(18,20,25,.55); --mq-card: #17181C;
  color-scheme: dark;
}
.mq { position: fixed; inset: 0; z-index: 35; color: var(--mq-w); overflow: hidden; overflow: clip; }
/* 画面ごとに重なりを閉じる（下の画面の z-index が上の画面に出ないように） */
.mqv { position: absolute; inset: 0; z-index: 0; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; overflow: clip;
  background: radial-gradient(120% 48% at 50% -6%, rgba(141,184,245,.07), rgba(10,11,14,0) 70%), linear-gradient(180deg, #0D0E12, #0A0B0E 45%); }
.mqv.in { animation: mqin .4s cubic-bezier(.2,.8,.2,1); }   /* memq.js は floatIn／floatOut（JS）で動かす。ほかから使う時のために同じ形（11/27） */
.mqv.out { animation: mqout .3s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes mqin { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mqout { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(26px) scale(.94); } }
.mq .mq-num, .mq-num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.mq button { color: inherit; }
.mq button:disabled { opacity: .35; cursor: default; }

/* ---------- 丸いボタン・ガラス ---------- */
.mq-ib { flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--mq-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mq-ib.sm { width: 34px; height: 34px; border-radius: 17px; }
.mq-ib svg { display: block; }
.mq-ib:active:not(:disabled) { transform: scale(.94); }
.mq-icb { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.mq-icb.g { color: var(--mq-g); background: rgba(255,212,106,.08); box-shadow: inset 0 0 0 .5px rgba(255,212,106,.42); }
.mq-fr i { font-style: normal; opacity: .5; margin: 0 3px; }
.mq-fr { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.mq-fr.g { color: var(--mq-g); }
.mq-prem { flex: none; height: 22px; padding: 0 9px 0 8px; border-radius: 11px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .02em; color: var(--mq-g); background: rgba(255,212,106,.12); box-shadow: inset 0 0 0 .6px rgba(255,212,106,.5); white-space: nowrap; }
.mq-prem.s { height: 20px; padding: 0 7px 0 6px; font-size: 10.5px; }
.mq-wb { flex: none; height: 32px; padding: 0 15px; border-radius: 16px; background: var(--mq-w); color: #0A0B0E !important; font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.mq-wb.big { flex: 1; height: 50px; border-radius: 25px; font-size: 15.5px; font-weight: 800; padding: 0 18px; }
.mq-wb i { display: flex; }
.mq-wb:active:not(:disabled), .mq-lb:active, .mq-gold:active { transform: scale(.98); }
.mq-lb { flex: none; height: 50px; padding: 0 20px; border-radius: 25px; background: rgba(255,255,255,.1); font-size: 15px; font-weight: 700; white-space: nowrap; }
.mq-gold { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border-radius: 26px; margin-top: 16px;
  background: linear-gradient(180deg, var(--mq-g), var(--mq-g2)); color: var(--mq-ink) !important; font-size: 16px; font-weight: 800; letter-spacing: .03em; }

/* ---------- 上の帯（ノート穴埋め・演習・記録） ---------- */
.mq-top { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 8px) 16px 6px; min-height: calc(var(--sat) + 58px); }
.mq-top .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mq-top .tt b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-top .tt small { font-size: 11px; font-weight: 700; color: var(--mq-blue); margin-top: 2px; }
.mq-top.c .tt { align-items: center; text-align: center; }
.mq-top.c .tt b { font-size: 17px; letter-spacing: .04em; }
.mq-top.c .tt small { margin: 0 0 1px; order: -1; }
.mq-top.c::after { content: ''; width: 40px; flex: none; }
.mq-top.c .mq-ib + .tt + .mq-ib { margin-left: 0; }
.mq-top.c:has(.tt + .mq-ib)::after { display: none; }
.mq-pill { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; gap: 3px; background: rgba(255,255,255,.08);
  font-size: 13px; font-weight: 600; color: var(--mq-sub); white-space: nowrap; }
.mq-pill b { font-size: 15px; font-weight: 800; color: var(--mq-g); }
.mq-pill span { color: var(--mq-dim); }

/* ---------- テーマの画面 ---------- */
.mq-th .mq-art { position: absolute; left: 0; right: 0; top: 0; height: 330px; pointer-events: none;
  background: radial-gradient(80% 70% at 72% 18%, rgba(141,184,245,.17), rgba(141,184,245,0) 70%), radial-gradient(70% 60% at 18% 34%, rgba(255,212,106,.10), rgba(255,212,106,0) 72%), linear-gradient(180deg, #151923, #0A0B0E); }
.mq-th .mq-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, rgba(10,11,14,0), #0A0B0E); }
.mq-th .mq-back { position: absolute; left: 16px; top: calc(var(--sat) + 10px); z-index: 3; }
.mq-sc { position: relative; z-index: 2; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--sat) + 150px) 24px calc(var(--sab) + 40px); }
.mq-ttl .cap { font-size: 15px; font-weight: 700; color: var(--mq-blue); }
/* 章の名前＝押すとこの章のテーマの一覧（125回目②B・12/3）：青い札と下向きの矢じるし。長い章の名前は2行になる */
.mq-ttl .mq-capb { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 11px 6px 12px; border-radius: 17px; background: rgba(141,184,245,.12); box-shadow: inset 0 0 0 1px rgba(141,184,245,.34);
  font-family: inherit; line-height: 1.4; text-align: left; }
.mq-ttl .mq-capb span { min-width: 0; }
.mq-ttl .mq-capb i { flex: none; display: flex; }
.mq-ttl .mq-capb:active { opacity: .6; }
/* 章のテーマの一覧（シート）：上に ‹ 前の章 ｜ 今の章 ｜ 次の章 ›。右上の × と重ならないように少し下げる */
.mq-unav { display: grid; grid-template-columns: minmax(92px, 1fr) minmax(0, max-content) minmax(92px, 1fr); align-items: center; gap: 6px; margin: 22px 0 12px; }   /* せまい時は題が「国・地域」と「ラテンアメリカ」の間で折れる */
.mq-unav .tt { min-width: 0; text-align: center; }
.mq-unav .tt b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.mq-unav .tt b span { display: inline-block; }
.mq-unav .tt small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--mq-sub); }
.mq-unav button { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 34px; padding: 0 10px; border-radius: 17px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); font-size: 12px; font-weight: 800; }
.mq-unav button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-unav button i { flex: none; display: flex; opacity: .7; }
.mq-unav .pv { justify-self: start; }
.mq-unav .nx { justify-self: end; }
.mq-unav button:disabled { visibility: hidden; }
.mq-unav button:active { opacity: .6; }
.mq-ulist { max-height: min(56vh, calc(100dvh - var(--sat) - 220px)); overflow-y: auto; overscroll-behavior: contain; margin: 0 -16px; }
.mq-urow { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 22px; border-top: 1px solid rgba(255,255,255,.08); text-align: left; color: #fff; }
.mq-urow .dt { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mq-urow b { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.mq-urow.on { background: rgba(141,184,245,.08); }
.mq-urow.on .dt { background: var(--mq-blue); }
.mq-urow:active b { opacity: .6; }
.mq-now { flex: none; font-size: 12.5px; font-weight: 800; color: var(--mq-blue); white-space: nowrap; }
.mq-uok { flex: none; display: flex; color: var(--mq-g); }
/* 送れる一覧の上と下のぼかし（まだ送れる時だけ・js が .ft 上／.fb 下を付ける） */
.mqh-tl.ft, .mq-ulist.ft { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26px); mask-image: linear-gradient(to bottom, transparent, #000 26px); }
.mqh-tl.fb, .mq-ulist.fb { -webkit-mask-image: linear-gradient(to top, transparent, #000 26px); mask-image: linear-gradient(to top, transparent, #000 26px); }
.mqh-tl.ft.fb, .mq-ulist.ft.fb { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
.mq-ttl h1 { margin: 6px 0 0; font-size: clamp(30px, 10.5vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.mq-ttl .era { margin-top: 9px; font-size: 14px; color: rgba(255,255,255,.72); }
.mq-rows { margin-top: 30px; }
.mq-row { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--mq-ln); text-align: left; }
.mq-row:last-child { border-bottom: 1px solid var(--mq-ln); }
.mq-row:active { background: rgba(255,255,255,.03); }
.mq-row .tx { flex: 1; min-width: 0; line-height: 1.2; }
.mq-row .tx b { display: block; font-size: 17px; font-weight: 800; white-space: nowrap; }
/* 説明は文節の間で2行まで（memq.js の jtt）＝小さい iPhone で「まちがえた語をスワイプでつ…」と切れていた（11/29 総点検） */
.mq-row .tx small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--mq-sub); margin-top: 5px; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.mq-row .rt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mq-row .rt > small { font-size: 11px; font-weight: 600; color: var(--mq-dim); white-space: nowrap; }
.mq-row .cv, .mq-erow .cv, .mq-lrow .cv, .mq-srow .cv { flex: none; display: flex; opacity: .42; }
.mq-row.off { opacity: .42; }
.mq-oklv { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--mq-g); white-space: nowrap; }
.mq-oklv svg { vertical-align: -2px; }
.mq-miss { display: inline-flex; align-items: baseline; gap: 2px; color: var(--mq-red); font-size: 11.5px; font-weight: 700; }
.mq-miss .mq-num { font-size: 14px; }
.mq-miss.z { color: var(--mq-dim); }
.mq-play { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; }
.mq-next { display: flex; align-items: baseline; gap: 10px; margin-top: 34px; opacity: .75; color: #9CAABB; max-width: 100%; }
.mq-next span { flex: none; font-size: 15px; font-weight: 700; }
.mq-next b { font-size: 18px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-next i { flex: none; display: flex; align-self: center; }

/* ---------- ノート穴埋め（89回目⑤D） ---------- */
.mq-segrow { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 16px 8px; }
.mq-seg { display: inline-flex; height: 32px; padding: 3px; border-radius: 16px; background: var(--mq-gls); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mq-seg button { padding: 0 15px; border-radius: 13px; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.62) !important; }
.mq-seg button.on { background: var(--mq-w); color: #0A0B0E !important; font-weight: 800; }
.mq-seg button i { display: flex; opacity: .8; }
.mq-stat { font-size: 12px; font-weight: 700; color: var(--mq-blue); }
.mq-nsc { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 20px calc(var(--sab) + 96px); }
.mq-note.ans .mq-nsc { padding-bottom: calc(var(--sab) + 300px); }
.mq-sec + .mq-sec { margin-top: 18px; }
.mq-h { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--mq-g); }
/* 改行は「。」のあとだけ（js の jsents が <br> を入れる・11/23 オーナー「基本的に丸で区切ればいい」）。文の中は行のはしまで詰めて折り返す。 */
/* C 形（年表と一言・100回目① C・11/25 オーナー「C がいい」）：札｜金の点と線｜できごと＋灰色の一言、段の最後に「ここが大事」 */
.mq-tl { --yw: 68px; position: relative; margin-top: 10px; }
.mq-note[data-lv="4"] .mq-tl { --yw: 112px; }
.mq-tl::before { content: ""; position: absolute; left: calc(var(--yw) + 7px); top: 10px; bottom: 12px; width: 2px; border-radius: 1px; background: rgba(255,255,255,.12); }
.mq-r { position: relative; display: flex; gap: 16px; margin: 0 0 9px; }
.mq-yr { flex: none; width: var(--yw); padding-top: 5px; text-align: right; font-size: 13.5px; font-weight: 800; line-height: 1.45; color: var(--mq-blue); overflow-wrap: anywhere; }
.mq-yr .mq-b { height: 25px; margin: 0 1px; padding: 0 4px; vertical-align: 0; }
.mq-yr .mq-b > i { margin-right: 2px; }
.mq-yr .mq-in { font-size: 14.5px; min-width: 34px; height: 23px; padding: 0 2px; }
.mq-dot { position: absolute; left: calc(var(--yw) + 3px); top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--mq-g2); box-shadow: 0 0 0 3px var(--mq-bg); }
.mq-tx { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 2.05; color: rgba(242,243,245,.94); word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.mq-why { font-size: 13.5px; font-weight: 700; line-height: 2.1; color: rgba(242,243,245,.58); }
.mq-why .mq-b { height: 26px; }
.mq-key { margin: 4px 0 0; padding: 9px 13px 10px; border-radius: 12px; background: var(--mq-card); box-shadow: inset 0 0 0 1px rgba(227,179,92,.22); }
.mq-key em { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--mq-g2); margin-bottom: 1px; }
.mq-keyt { font-size: 14px; font-weight: 700; line-height: 2; color: #ECE4CC; word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.mq-p { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 2.2; color: rgba(242,243,245,.92); word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.mq-nw { white-space: nowrap; }
/* 空欄が2つ入った範囲と、長い答えで行より広くなった範囲（.brk）は、範囲の中でも折り返す（11/29 総点検：右へはみ出してノートが横にずれた） */
.mq-nw:has(> .mq-b ~ .mq-b), .mq-nw.brk { white-space: normal; }
.mq-b { display: inline-flex; align-items: center; height: 29px; margin: 0 2px; padding: 0 9px; border-radius: 8px; vertical-align: 1px; line-height: 1; font-weight: 800; white-space: nowrap; max-width: 100%; }
.mq-b > i { font: 800 10px/1 var(--num); font-style: normal; color: rgba(255,255,255,.5); margin-right: 5px; font-variant-numeric: tabular-nums; }
.mq-b.in { padding: 0 4px 0 9px; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.24); cursor: text; }
.mq-b.in:focus-within { background: rgba(255,212,106,.07); box-shadow: inset 0 0 0 1.8px var(--mq-g), 0 0 14px rgba(255,212,106,.3); }
.mq-b.in:focus-within > i { color: var(--mq-g); }
.mq-in { height: 27px; min-width: 64px; max-width: min(72vw, 300px); padding: 0 4px; border: 0; outline: 0; background: none; color: #fff; caret-color: var(--mq-g);
  font: 800 16px var(--font); letter-spacing: .01em; border-radius: 4px; -webkit-appearance: none; appearance: none; }
.mq-b.in:has(.mq-in:not(:placeholder-shown)) { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.mq-b.ok { color: #fff; background: rgba(124,203,156,.12); box-shadow: inset 0 0 0 1px rgba(124,203,156,.55); }
.mq-b.ok > i { color: var(--mq-ok); }
.mq-b.ok em { display: flex; color: var(--mq-ok); margin-left: 5px; }
.mq-b.ng { background: rgba(255,122,112,.1); box-shadow: inset 0 0 0 1px rgba(255,122,112,.55); gap: 6px; }
.mq-b.ng > i { color: var(--mq-red); margin-right: 0; }
.mq-b.ng s { color: rgba(255,154,144,.85); font-weight: 600; text-decoration-thickness: 1.5px; }
.mq-b.ng u { text-decoration: none; color: var(--mq-g); }
/* 年号の面：見出しの年代の数字を答えるまで隠す（11/25・js の headMask）。けたの数が分からないように幅は同じ */
.mq-hm { display: inline-block; width: 2.6em; height: 1.15em; margin: 0 2px; vertical-align: -2px; border-radius: 4px; background: rgba(147,184,236,.13); box-shadow: inset 0 0 0 1px rgba(147,184,236,.42); }
/* 隠していない面の語の目印（11/25 オーナー「表のときに裏の単語は軽くハイライトされてほしい…逆も然り」・97回目⑤）
   .mq-hl.f1＝表・f2＝裏・f4＝年号・f3＝発展。.mq-note の data-hl＝a 色を変える（決まるまでこれ）／b 太さと下線／c うすいマーカー */
.mq-note { --hl-o: #FFFFFF; --hl-u: #EDC56B; --hl-y: #93B8EC; --hl-h: #BCA8EF; }
.mq-note[data-hl="a"] .mq-hl.f1 { color: var(--hl-o); font-weight: 800; }
.mq-note[data-hl="a"] .mq-hl.f2 { color: var(--hl-u); }
.mq-note[data-hl="a"] .mq-hl.f4 { color: var(--hl-y); }
.mq-note[data-hl="a"] .mq-hl.f3 { color: var(--hl-h); }
.mq-note[data-hl="b"] .mq-hl { text-underline-offset: 5px; text-decoration-skip-ink: none; }
.mq-note[data-hl="b"] .mq-hl.f1 { color: #fff; font-weight: 800; }
.mq-note[data-hl="b"] .mq-hl.f2 { color: #fff; font-weight: 800; text-decoration-line: underline; text-decoration-color: rgba(237,197,107,.9); text-decoration-thickness: 1.5px; }
.mq-note[data-hl="b"] .mq-hl.f4 { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: rgba(147,184,236,.95); text-decoration-thickness: 2px; }
.mq-note[data-hl="b"] .mq-hl.f3 { text-decoration-line: underline; text-decoration-color: rgba(255,255,255,.42); text-decoration-thickness: 1px; }
.mq-note[data-hl="c"] .mq-hl { padding: 0 1px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mq-note[data-hl="c"] .mq-hl.f1 { background: linear-gradient(transparent 48%, rgba(255,255,255,.17) 48% 94%, transparent 94%); }
.mq-note[data-hl="c"] .mq-hl.f2 { background: linear-gradient(transparent 48%, rgba(237,197,107,.28) 48% 94%, transparent 94%); }
.mq-note[data-hl="c"] .mq-hl.f4 { background: linear-gradient(transparent 48%, rgba(147,184,236,.3) 48% 94%, transparent 94%); }
.mq-note[data-hl="c"] .mq-hl.f3 { background: linear-gradient(transparent 48%, rgba(188,168,239,.27) 48% 94%, transparent 94%); }
.mq-empty { color: var(--mq-sub); font-size: 14px; text-align: center; margin-top: 40px; }
.mq-kbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 9px 10px calc(9px + var(--sab)) 12px;
  background: rgba(20,22,27,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 .5px 0 rgba(255,255,255,.12); }
.mq-note.kb .mq-kbar { padding-bottom: 9px; }
.mq-kbar .sp { flex: 1; }
.mq-kbar .ct { font-size: 14px; font-weight: 800; color: #fff; margin-right: 4px; }
.mq-kbar .ct small { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.5); margin-left: 2px; }
.mq-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 18px 20px calc(16px + var(--sab)); border-radius: 26px 26px 0 0;
  background: rgba(20,22,27,.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 .5px 0 rgba(255,255,255,.16), 0 -20px 40px -20px rgba(0,0,0,.6); }
.mq-pt { display: flex; align-items: center; gap: 12px; }
.mq-pt > div { min-width: 0; }
.mq-pt b { display: block; font-size: 16.5px; font-weight: 800; }
.mq-pt small { display: block; font-size: 12.5px; color: var(--mq-sub); margin-top: 3px; line-height: 1.5; }
.mq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; max-height: 96px; overflow-y: auto; }
.mq-chips.c { justify-content: center; margin: 18px 0 0; max-width: 320px; }
.mq-chip { height: 28px; padding: 0 11px; border-radius: 14px; display: inline-flex; align-items: center; background: rgba(255,122,112,.12); color: #FF9A90; font-size: 13px; font-weight: 700; }
.mq-pbtns { display: flex; gap: 10px; }
.mq-adn { margin-top: 9px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--mq-dim); }

/* 単語カードを作っています（制作中） */
.mq-make { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; text-align: center;
  background: rgba(6,7,10,.95); }
.mq-make > b { margin-top: 26px; font-size: 19px; font-weight: 800; }
.mq-make > small { margin-top: 8px; font-size: 13px; color: var(--mq-sub); }
.mq-make .mq-adn { margin-top: 22px; }
.mq-spin { position: relative; width: 120px; height: 120px; }
.mq-spin svg { width: 120px; height: 120px; display: block; }
.mq-spin circle { fill: none; stroke-width: 6; }
.mq-spin .t { stroke: rgba(255,255,255,.1); }
.mq-spin .a { stroke: var(--mq-g); stroke-linecap: round; stroke-dasharray: 72 255; transform-origin: 60px 60px; animation: mqspin 1.1s linear infinite; }
.mq-spin i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mq-g); }
@keyframes mqspin { to { transform: rotate(360deg); } }

/* ---------- 苦手の一問一答（単語カード・90回目③A） ---------- */
.mq-ctop { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) 16px 0; }
.mq-ctop .tt { flex: 1; min-width: 0; line-height: 1.25; }
.mq-ctop .tt b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-ctop .tt small { display: block; font-size: 11px; font-weight: 700; color: var(--mq-blue); margin-top: 2px; }
.mq-ctop .cnt { flex: none; font-size: 12.5px; color: var(--mq-sub); white-space: nowrap; }
.mq-ctop .cnt b { font-size: 16px; font-weight: 800; color: #fff; margin: 0 1px; }
.mq-cbar { flex: none; height: 3px; margin: 12px 20px 0; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.mq-cbar i { display: block; height: 100%; width: 0; background: var(--mq-g); border-radius: 2px; transition: width .3s ease-out; }
.mq-stage { position: relative; flex: 1; margin: 20px 24px 4px; min-height: 0; }
/* Memora X のカード：ひと回り小さく（高さは 540px まで・まん中に置く） */
.mq-cd { position: absolute; left: 0; right: 0; top: 0; bottom: 0; height: min(100%, 540px); margin: auto 0; border-radius: 24px;
  background: linear-gradient(180deg, rgba(40,42,48,.96), rgba(24,25,30,.96)); box-shadow: inset 0 0 0 .6px rgba(255,255,255,.18), 0 24px 60px -20px rgba(0,0,0,.6);
  touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .24s; overflow: hidden; cursor: grab; }
.mq-cd.back { transform: translateY(12px) scale(.95); opacity: .55; pointer-events: none; }
.mq-cd .fc { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 22px 20px; }
.mq-cd .sec { display: flex; justify-content: center; }
.mq-cd .sec span { display: inline-block; max-width: 100%; height: 26px; line-height: 26px; padding: 0 12px; border-radius: 13px; background: rgba(255,255,255,.07);
  font-size: 11.5px; font-weight: 700; color: var(--mq-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-cd .sec span:empty { display: none; }
.mq-cd .sec em { font-style: normal; color: rgba(255,255,255,.9); margin-right: 6px; }
.mq-cd .qf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 0; text-align: center; }
.mq-cd .q { font-size: 21px; font-weight: 800; line-height: 1.75; letter-spacing: .01em; overflow-wrap: anywhere; }
.mq-cd .mp { align-self: center; height: 22px; padding: 0 9px; border-radius: 11px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--mq-red); background: rgba(255,122,112,.12); }
.mq-cd .mq-hint { text-align: center; font-size: 12px; font-weight: 600; color: var(--mq-dim); }
.mq-cd .q.s1 { font-size: 18.5px; }
.mq-cd .q.s2 { font-size: 16.5px; line-height: 1.8; }
.mq-cd .af { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mq-cd .q2 { font-size: 14.5px; font-weight: 700; line-height: 1.7; color: rgba(255,255,255,.55); overflow-wrap: anywhere; }
.mq-cd .dash { height: 0; border-top: 1.2px dashed rgba(255,255,255,.22); margin: 20px 0 22px; }
.mq-cd .ans { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; }
.mq-cd .ans small { font-size: 11px; font-weight: 700; color: var(--mq-dim); letter-spacing: .3em; padding-left: .3em; }
.mq-cd .ans b { margin-top: 10px; font-size: 32px; font-weight: 900; letter-spacing: .02em; line-height: 1.25; overflow-wrap: anywhere; }
.mq-cd .ans p { margin: 18px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.85; color: rgba(255,255,255,.66); overflow-wrap: anywhere; }
.mq-cd .ans mark { background: linear-gradient(transparent 62%, rgba(255,212,106,.45) 62%); color: #fff; font-weight: 800; }
.mq-cd .ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; border-radius: 24px; }
.mq-cd .ov i { display: flex; }
.mq-cd .ov b { font-size: 21px; font-weight: 800; letter-spacing: .04em; }
.mq-cd .ov.ok { background: rgba(255,212,106,.15); color: var(--mq-g); box-shadow: inset 0 0 0 1.5px rgba(255,212,106,.6); }
.mq-cd .ov.ng { background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.mq-cd .ov.mid { background: rgba(141,184,236,.14); color: var(--mq-blue); box-shadow: inset 0 0 0 1.5px rgba(141,184,236,.55); }
.mq-cd.crush { animation: mqcrush .4s cubic-bezier(.2,.8,.2,1) forwards; pointer-events: none; }
@keyframes mqcrush { 0% { transform: none; opacity: 1; } 40% { transform: scale(.84, .66) rotate(-4deg); opacity: 1; } 100% { transform: scale(.06) rotate(16deg); opacity: 0; } }
/* 下のボタン＝Memora X と同じ丸（左 まだ・右 覚えた） */
.mq-cbot { flex: none; display: flex; justify-content: center; gap: 100px; padding: 14px 0 calc(max(var(--sab), 10px) + 16px); }
.mq-cb { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; background: none; color: #fff !important; box-shadow: none; }
.mq-cb span { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .6px rgba(255,255,255,.2); transition: transform .12s; }
.mq-cb small { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.mq-cb.w span { background: var(--mq-w); color: #0A0B0E; box-shadow: none; }
.mq-cb:disabled { opacity: .3; }
.mq-cb:active:not(:disabled) span { transform: scale(.93); }
.mq-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 0 12px; }
.mq-gbig { font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 4px; }
.mq-gbig b { font-size: 64px; font-weight: 800; color: var(--mq-g); letter-spacing: -.03em; line-height: 1; }
.mq-gbig.s { font-size: 24px; }
.mq-gic { color: var(--mq-g); display: flex; }
.mq-gate .cts { display: flex; gap: 16px; font-size: 13px; color: var(--mq-sub); }
.mq-gate .cts b { font-size: 16px; font-weight: 800; color: #fff; }
.mq-gate .cts b.g { color: var(--mq-g); }
.mq-gate .msg { font-size: 13px; color: var(--mq-sub); min-height: 1.4em; }
.mq-gate .mq-wb.big { flex: none; width: min(260px, 100%); margin-top: 6px; }
.mq-gate .mq-lb { background: none; height: 40px; font-size: 14px; color: var(--mq-sub); }

/* ---------- 演習の一覧（プレミアム） ---------- */
.mq-esc { flex: 1; overflow-y: auto; padding: 10px 24px calc(var(--sab) + 30px); }
.mq-ehd { display: flex; align-items: center; gap: 10px; }
.mq-ehd > span:first-child { flex: 1; font-size: 14px; font-weight: 600; color: var(--mq-sub); }
.mq-elist { margin-top: 12px; }
.mq-erow { width: 100%; height: 64px; display: flex; align-items: center; gap: 14px; text-align: left; }
.mq-erow + .mq-erow { border-top: 1px solid var(--mq-ln); }
.mq-erow .tx { flex: 1; min-width: 0; line-height: 1.2; }
.mq-erow .tx b { display: block; font-size: 16.5px; font-weight: 800; white-space: nowrap; }
.mq-erow .tx small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--mq-sub); margin-top: 5px; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.mq-lk { flex: none; display: flex; opacity: .55; }
.mq-tk { flex: none; display: flex; color: var(--mq-g); }
.mq-pcard { margin-top: 26px; border-radius: 22px; padding: 16px 18px; background: var(--mq-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mq-pcard b { display: block; font-size: 16px; font-weight: 800; }
.mq-pcard small { display: block; font-size: 13px; font-weight: 500; line-height: 1.7; color: var(--mq-sub); margin-top: 6px; word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 記録（87回目②C の年表・91回目④A） ---------- */
.mq-rhd { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px 10px; }
.mq .mq-rhd .subjbtn { color: #fff; }
.mq .mq-rhd .subjbtn i { color: rgba(255,255,255,.6); }
.mq-rhd .tot { margin-left: auto; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.mq-rhd .tot small { font-size: 11.5px; font-weight: 600; color: var(--mq-sub); margin-right: 3px; }
.mq-rhd .tot b { font-size: 22px; font-weight: 800; color: var(--mq-g); }
.mq-rhd .tot i { font-style: normal; font-size: 13px; color: var(--mq-sub); }
.mq-rsc { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 20px calc(var(--sab) + 30px); }
.mq-yc { position: relative; }
.mq-yc .ax { position: relative; height: 20px; }
.mq-yc .ax span { position: absolute; top: 0; transform: translateX(-50%); font: 600 10.5px/1 var(--num); color: var(--mq-dim); white-space: nowrap; }
.mq-yc .ax span.f { transform: none; }
.mq-yc .gl { position: absolute; left: 0; right: 0; top: 20px; bottom: 0; pointer-events: none; }
.mq-yc .gl i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.06); }
.mq-yc .grp { position: relative; margin: 14px 0 4px; font-size: 11px; font-weight: 700; color: var(--mq-blue); letter-spacing: .04em; }
.mq-yc .yrow { position: relative; display: block; width: 100%; height: 40px; }
.mq-yc .yrow:active .band { filter: brightness(1.25); }
.mq-yc .lab { position: absolute; top: 3px; left: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.62); white-space: nowrap; }
.mq-yc .lab.on { color: #fff; }
.mq-yc .lab em { display: flex; color: var(--mq-g); }
.mq-yc .yrow.cur .lab { color: var(--mq-blue); }
.mq-yc .band { position: absolute; top: 22px; height: 12px; border-radius: 4px; overflow: hidden; display: flex; gap: 1px; background: rgba(255,255,255,.06); }
.mq-yc .band i { flex: 1; height: 100%; }
.mq-yc .band.thin i { flex: none; }
.mq-yc .yrow.cur .band { box-shadow: 0 0 0 1.5px rgba(141,184,236,.7); }
.mq .c0, .mq-sheet .c0 { background: rgba(255,255,255,.12); }
.mq .c1, .mq-sheet .c1 { background: var(--mq-g); }
.mq .c2, .mq-sheet .c2 { background: rgba(255,212,106,.38); }
.mq-lc .mq-lrow { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--mq-ln); text-align: left; padding: 8px 0; }
.mq-lc .mq-lrow:last-child { border-bottom: 1px solid var(--mq-ln); }
.mq-lc .no { flex: none; width: 22px; font-size: 13px; font-weight: 700; color: var(--mq-dim); text-align: center; }
.mq-lc .tx { flex: 1; min-width: 0; }
.mq-lc .tx b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-lc .cells, .mq-sheet .cells { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 7px; }
.mq-lc .cells i, .mq-sheet .mq-shd .cells i { width: 8px; height: 8px; border-radius: 2px; }
.mq-legs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 20px; font-size: 11.5px; color: var(--mq-sub); }
.mq-legs span { display: inline-flex; align-items: center; gap: 5px; }
.mq-legs i { width: 10px; height: 10px; border-radius: 3px; }
.mq-legs em { flex-basis: 100%; font-style: normal; color: var(--mq-dim); }

/* 章のシート（暗い地） */
.sheet.mq-sheet { background: #15171C; color: var(--mq-w); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 -10px 40px rgba(0,0,0,.5); }
.sheet.mq-sheet .grip { background: rgba(255,255,255,.22); }
.sheet.mq-sheet .sh-x { color: #fff; background: rgba(255,255,255,.1); }
.sheet.mq-sheet h3 { color: #fff; }
.sheet.mq-sheet .lead { color: var(--mq-sub); }
.sheet.mq-sheet .btn.gray { background: rgba(255,255,255,.1); color: #fff; }
.sheet.mq-sheet .btn.pri { background: var(--mq-w); color: #0A0B0E; }
/* 章のシートの上：1行目＝第N章と章の名前（2行まで）・2行目＝進み具合の四角と数（11/30 点検：四角と数に場所をとられて、短い章の名前まで切れていた） */
.mq-shd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 8px; margin: 0 44px 12px 4px; }
.mq-shd .no { grid-area: 1 / 1; }
.mq-shd b { grid-area: 1 / 2 / 2 / 4; }
.mq-shd .mq-fr { grid-area: 2 / 3; }
.mq-shd .no { flex: none; font-size: 12px; font-weight: 700; color: var(--mq-blue); }
.mq-shd b { font-size: 18px; font-weight: 800; min-width: 0; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap-style: balance; }   /* 長い章の名前は2行まで（11/30 点検：「公共的な空間を…」で切れていた） */
.mq-shd .sp { display: none; }
.mq-shd .cells { grid-area: 2 / 2; margin: 0; flex-wrap: wrap; }
.mq-slist { max-height: 52vh; overflow-y: auto; margin: 0 2px; }
.mq-srow { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--mq-ln); text-align: left; color: #fff; padding: 6px 2px; }
.mq-srow b { min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-srow .sp { flex: 1; }
.mq-nig { flex: none; font-size: 11.5px; font-weight: 700; color: var(--mq-red); white-space: nowrap; }
.mq-nig b { font-size: 13px; }
.mq-seen { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--mq-g); }
.mq-mada { flex: none; font-size: 12px; font-weight: 700; color: var(--mq-dim); }
.mq-homech { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 46px; margin-top: 8px; border-radius: 23px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 700; }
.mq-homech i { display: flex; opacity: .6; }

/* ---------- はじめの案内（Memora X と同じ1字ずつの文）。11/23 文も問いも、たて・よこ真ん中（オーナー「真ん中揃えになってない」） ---------- */
.mq-ob { position: fixed; inset: 0; z-index: 95; background: radial-gradient(120% 60% at 50% 0%, rgba(141,184,245,.08), rgba(6,7,10,0) 70%), #06070A; color: var(--mq-w); }
.mq-ob .scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--sat) + 24px) 28px calc(var(--sab) + 24px); cursor: pointer; }
.mq-ob .narr, .mq-ob .mid, .mq-ob .okb { width: 100%; max-width: 440px; }
.mq-ob .narr { min-height: 40vh; display: flex; align-items: center; justify-content: center; }
/* 文は1字ずつの span（はじめは透明・.on で見える）。文節の間だけで改行し、行の長さをそろえる */
.mq-ob .line { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.75; letter-spacing: .03em; text-align: center; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; text-wrap: balance; }
.mq-ob .line span { color: transparent; }
.mq-ob .line span.on { color: inherit; }
.mq-ob .tap { position: absolute; left: 50%; bottom: calc(var(--sab) + 44px); transform: translateX(-50%); font-size: 26px; color: var(--mq-dim); opacity: 0; transition: opacity .2s; pointer-events: none; }
.mq-ob .tap.show { opacity: 1; animation: mqbob 1.6s ease-in-out infinite; }
@keyframes mqbob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
/* 志望の科目（いくつでも選べる・下の OK で決める）。科目が多くて入らない時は上からスクロール */
.mq-ob .scr.ask { justify-content: flex-start; overflow-y: auto; cursor: default; }
.mq-ob .mid { margin: auto 0; padding-top: 8px; text-align: center; }
.mq-ob .q { font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.mq-ob .sub { margin-top: 10px; font-size: 13.5px; color: var(--mq-sub); }
.mq-ob .hint { margin-top: 3px; font-size: 12.5px; color: var(--mq-dim); }
.mq-ob .opts { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mq-ob .opt { position: relative; flex: 0 0 calc(50% - 5px); min-height: 118px; border-radius: 20px; padding: 18px 12px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); color: #fff; transition: background .15s, box-shadow .15s; }
.mq-ob .opt b { margin-top: 8px; font-size: 16.5px; font-weight: 800; }
.mq-ob .opt small { margin-top: 4px; font-size: 11px; color: var(--mq-sub); line-height: 1.4; }
.mq-ob .opt .ck { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: transparent; box-shadow: inset 0 0 0 1.3px rgba(255,255,255,.26); }
.mq-ob .opt.sel { background: rgba(255,212,106,.14); box-shadow: inset 0 0 0 1.5px var(--mq-g); }
.mq-ob .opt.sel .ck { color: var(--mq-ink); background: var(--mq-g); box-shadow: none; }
.mq-oic { display: flex; color: var(--mq-g); }
.mq-oic svg { width: 26px; height: 26px; }
.mq-ob .opts.many .opt { min-height: 92px; padding: 12px 10px 10px; }
.mq-ob .opts.many .opt b { margin-top: 5px; }
.mq-ob .opt:active { transform: scale(.98); }
.mq-ob .okb { flex: none; display: flex; align-items: center; justify-content: center; height: 54px; margin-top: 18px; border-radius: 27px; background: linear-gradient(180deg, var(--mq-g), var(--mq-g2)); color: var(--mq-ink); font-size: 17px; font-weight: 800; letter-spacing: .08em; transition: opacity .15s; }
.mq-ob .okb:disabled { background: rgba(255,255,255,.08); color: var(--mq-dim); cursor: default; }
.mq-ob .okb:active:not(:disabled) { transform: scale(.98); }

/* ---------- ホームの記録のボタン（87回目①A 進みの輪） ---------- */
.recb { position: relative; flex: none; width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--card); box-shadow: var(--sh-b); }
.recb > svg:first-child { position: absolute; inset: 0; width: 34px; height: 34px; transform: rotate(-90deg); }
.recb > svg:first-child circle { fill: none; stroke-width: 3; }
.recb .rb { position: relative; width: 17px; height: 17px; stroke-width: 2.2; }
.recb .t { stroke: var(--track); }
.recb .a { stroke: var(--ra, #E3B35C); stroke-linecap: round; }

/* ---------- 見るだけの演習（11/23・演習の本＝白いページの下の帯。プレミアムでない人。js は app.js の viewOnly） ---------- */
.vo-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vo-bar p { margin: 0; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--sub2); }
.vo-bar p span { display: flex; }
.vo-bar p svg { width: 14px; height: 14px; }
.dock .vo-bar { padding-top: 2px; }
.vo-dock { position: sticky; bottom: 0; z-index: 3; margin: 6px -18px 0; padding: 14px 16px calc(14px + var(--sab)); background: var(--card); box-shadow: 0 -1px 0 var(--line); }

/* 科目をえらぶシート：今つかえない科目は右に鍵 */
.srow .ck.lk { box-shadow: none; color: var(--mute); }
.srow .ck.lk svg { width: 16px; height: 16px; }
/* 設定：苦手の一問一答の卒業（1〜5回） */
.stp { flex: none; display: flex; align-items: center; gap: 10px; }
.stp button { width: 32px; height: 32px; border-radius: 16px; background: var(--fill2); font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.stp button:disabled { opacity: .35; }
.stp b { min-width: 14px; text-align: center; font: 600 16px var(--num); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .mqv.in, .mqv.out, .mq-cd.crush, .mq-ob .tap.show, .mq-spin .a { animation: none; }
  .mq-cd { transition: none; }
}
/* 答え合わせの空欄（11/30 オーナー「長い字の直しが赤い枠に収まらない・大きすぎて字が重なる・横幅が足りない」）：
   枠は中身に合わせてのび、行の幅をこえる時は枠の中で折り返す。消した字（打った答え）は小さく、正しい答えと1行に入らない時は次の行へ */
.mq-b.ok, .mq-b.ng { height: auto; min-height: 29px; padding-top: 4px; padding-bottom: 4px; line-height: 1.3; white-space: normal; flex-wrap: wrap; overflow-wrap: anywhere; }
.mq-yr .mq-b.ok, .mq-yr .mq-b.ng { height: auto; min-height: 25px; }
.mq-why .mq-b.ok, .mq-why .mq-b.ng { height: auto; min-height: 26px; }
.mq-b.ng { column-gap: 6px; row-gap: 2px; }
.mq-b.ng s { font-size: max(10px, .8em); min-width: 0; }
.mq-b.ng u { min-width: 0; }
/* 苦手の一問一答のふり方の練習（はじめての1枚だけ・11/30） */
.mq-coach { flex: none; display: flex; flex-direction: column; gap: 4px; margin: 14px 20px -6px; padding: 12px 16px; border-radius: 16px; background: rgba(255,212,106,.1); box-shadow: inset 0 0 0 1px rgba(255,212,106,.38); }
.mq-coach[hidden] { display: none; }
.mq-coach b { font-size: 15px; font-weight: 800; color: #FFE7A8; }
.mq-coach small { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.7); }

/* 120回目 A 赤ペンの丸つけ（12/1）：答え合わせの形は、箱は色なし・赤ペンの○（正解）と✕（まちがい）・赤い正しい答え。○と✕は .mq-pen（memq.js が書く） */
.mq-nbody { position: relative; }
.mq-note.ans .mq-b.ok, .mq-note.ans .mq-b.ng { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.mq-note.ans .mq-b.ok > i, .mq-note.ans .mq-b.ng > i { color: rgba(255,255,255,.5); }
.mq-note.ans .mq-b.ok em { display: none; }
.mq-note.ans .mq-b.ng s { text-decoration: none; color: rgba(255,255,255,.45); font-weight: 600; }
.mq-note.ans .mq-b.ng s.nil { display: inline-block; width: 18px; height: 1em; }
.mq-note.ans .mq-b.ng u { color: #FF6B60; font-weight: 900; }
.mq-note.ans .mq-b.pen0 s { color: #fff; font-weight: 800; }
.mq-pen { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; }
.mq-pen path { fill: none; stroke: #FF5B4F; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(255,91,79,.35)); }
.mq-pen path.x { stroke-width: 2.5; }
.mq-pen-tap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; -webkit-tap-highlight-color: transparent; touch-action: none; }
.mq-pen-tap span { position: absolute; left: 50%; bottom: calc(var(--sab, 0px) + 14px); transform: translateX(-50%); padding: 7px 14px; border-radius: 16px; background: rgba(20,22,30,.82); color: rgba(255,255,255,.62); font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 .7px rgba(255,255,255,.14); white-space: nowrap; pointer-events: none; }
