/* joho-angou（暗号と パスワード）。色は sho.css の 約束：みどり＝正かい、オレンジ＝光る 所、まちがいは きいろ系（せめない）。字は 18px 以上、ボタンは 48px 以上。 */
.ja-w { --ja-ok: #0f8a72; --ja-okl: #e7f7ef; --ja-hi: #f59e0b; --ja-hil: #fff4dc; --ja-in: #7c3aed; --ja-inl: #f3edff;
  font-size: 1.1rem; line-height: 1.7; }
.ja-w button { font: inherit; line-height: 1.3; cursor: pointer; touch-action: manipulation; color: var(--ink, #1f2937); }
.ja-w button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.ja-w p { margin: 6px 0; }
.ja-w [hidden] { display: none !important; }
.ja-w .ja-b { min-height: 48px; padding: 6px 16px; border-radius: 12px; border: 2px solid var(--line, #e5e7eb); background: #fff; font-weight: 700; }
.ja-w .ja-b.main { background: var(--teal-d, #0f8a72); border-color: var(--teal-d, #0f8a72); color: #fff; }
.ja-w .ja-b.idk { border-style: dashed; color: var(--sub, #4b5563); font-size: 1rem; }
.ja-w .ja-b:disabled { opacity: .45; cursor: default; }
.ja-ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.ja-q { font-weight: 700; font-size: 1.12rem; text-align: center; }
.ja-fb { min-height: 1.6em; text-align: center; }
.ja-res { font-weight: 700; font-size: 1.12rem; }
.ja-res.ok { color: var(--ja-ok); }
.ja-res.try { color: var(--orange-t, #b45309); }
.ja-note { background: var(--ja-hil); border-radius: 10px; padding: 6px 12px; display: inline-block; text-align: left; max-width: 34em; }
.ja-model { font-size: .9rem; color: var(--sub, #4b5563); background: #f8fafc; border-radius: 10px; padding: 6px 10px; margin-top: 10px !important; }
.ja-choices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0; }
.ja-w .ja-ch { min-height: 52px; min-width: 64px; padding: 4px 14px; border: 2px solid var(--line, #e5e7eb); border-radius: 12px; background: #fff; font-size: 1.15rem; font-weight: 700; }
.ja-w .ja-ch.idk { font-size: 1rem; color: var(--sub, #4b5563); border-style: dashed; }
.ja-w .ja-ch.picked { border-color: var(--ink, #1f2937); box-shadow: inset 0 0 0 2px var(--ink, #1f2937); opacity: 1; }
.ja-w .ja-ch.right { background: var(--ja-okl); border-color: var(--ja-ok); opacity: 1; }
.ja-w .ja-ch.right::before { content: "○ "; color: var(--ja-ok); }
.ja-w .ja-ch.nope { border-color: var(--orange-t, #b45309); }
.ja-w .ja-ch:disabled:not(.picked):not(.right) { opacity: .5; }

/* pass */
.ja-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ja-pcard { background: #f8fafc; border: 2px solid var(--line, #e5e7eb); border-radius: 12px; padding: 8px; text-align: center; min-width: 0; }
.ja-pcard.win { border-color: var(--ja-ok); background: var(--ja-okl); }
.ja-ptag { display: inline-block; min-width: 2em; font-weight: 700; background: var(--ink, #1f2937); color: #fff; border-radius: 999px; padding: 0 10px; }
.ja-plen { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 6px 0; }
.ja-plen i { display: block; width: 16px; height: 22px; border-radius: 4px; border: 2px solid #64748b; background: #fff; }
.ja-plen i.k1 { background: #e0f2fe; } .ja-plen i.k2 { background: #fef9c3; } .ja-plen i.k3 { background: #fce7f3; }
.ja-pmeta { font-size: 1rem; }
.ja-pnum, .ja-ptime { font-size: 1rem; }
.ja-pnum b, .ja-ptime b { font-size: 1.2rem; color: var(--ink, #1f2937); }
.ja-ptime b { color: var(--orange-t, #b45309); }
.ja-goalA { text-align: center; font-size: .98rem; background: #f8fafc; border-radius: 10px; padding: 4px 8px; margin: 4px auto; max-width: 30em; }
.ja-view .ja-pcard { max-width: 420px; margin: 6px auto; }
.ja-len { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.ja-lv { min-width: 5.2em; text-align: center; font-size: 1.4rem; font-weight: 700; }
.ja-kinds { text-align: center; margin-top: 10px; }
.ja-sub { font-size: 1rem; }
.ja-w .ja-kb { min-height: 48px; margin: 3px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line, #e5e7eb); background: #fff; font-weight: 700; font-size: 1rem; }
.ja-w .ja-kb[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }

/* shift */
.ja-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.ja-w .ja-tab { min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid var(--line, #e5e7eb); background: #fff; font-weight: 700; }
.ja-w .ja-tab[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.ja-w .ja-tab.done::after { content: " ○"; color: var(--ja-ok); }
.ja-w .ja-tab.done[aria-pressed="true"]::after { color: #9ef0d6; }
.ja-wwrap { display: flex; flex-direction: column; align-items: center; }
.ja-wh { width: 100%; max-width: 300px; }
.ja-wheel { display: block; width: 100%; height: auto; }
.ja-wheel .o { fill: #fff; stroke: #64748b; stroke-width: 2; }
.ja-wheel .i { fill: var(--ja-inl); stroke: var(--ja-in); stroke-width: 2; }
.ja-wheel .c { fill: #fff; stroke: #cbd5e1; stroke-width: 1.5; }
.ja-wheel text { text-anchor: middle; dominant-baseline: central; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ja-wheel .t1 { font-size: 17px; fill: #1f2937; }
.ja-wheel .t2 { font-size: 15px; fill: var(--ja-in); }
.ja-wheel text.h { fill: #b45309; font-size: 20px; }
.ja-wheel .hl { stroke: var(--ja-hi); stroke-width: 26; stroke-linecap: round; opacity: .35; }
.ja-wheel .kl { font-size: 14px; fill: #4b5563; font-family: inherit; font-weight: 400; }
.ja-wheel .kn { font-size: 40px; fill: var(--ja-in); }
.ja-rot { display: flex; gap: 10px; justify-content: center; margin: 6px 0; }
.ja-line { margin: 8px 0; }
.ja-row { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 4px 0; }
.ja-lab { width: 4.2em; font-size: .9rem; color: var(--sub, #4b5563); text-align: right; line-height: 1.2; }
.ja-c { width: 44px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #f3f4f6; font-size: 1.6rem; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ja-c.now { outline: 3px solid #2563eb; outline-offset: 1px; }
.ja-c.in { background: #fff; border: 2px dashed #9ca3af; }
.ja-c.in.cur { border-style: solid; border-color: #2563eb; }
.ja-c.in.ok { border: 2px solid var(--ja-ok); background: var(--ja-okl); }
.ja-c.out { background: var(--ja-inl); color: var(--ja-in); }
.ja-kbd { display: grid; grid-template-columns: repeat(7, minmax(0, 48px)); gap: 5px; justify-content: center; margin: 8px 0; }
.ja-w .ja-key { min-height: 48px; border-radius: 10px; border: 2px solid var(--line, #e5e7eb); background: #fff; font-size: 1.25rem; font-weight: 700; padding: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ja-w .ja-key.del { grid-column: span 2; font-size: .95rem; font-family: inherit; }
.ja-all { text-align: left; max-width: 22em; margin: 8px auto; }
.ja-all summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ja-all ol { list-style: none; padding: 0; margin: 4px 0; columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ja-all li { display: flex; gap: 8px; }
.ja-all li span { color: var(--sub, #4b5563); min-width: 3.4em; font-family: inherit; }
.ja-all li.hit { color: var(--ja-ok); font-weight: 700; }

/* keys */
.ja-kview { text-align: center; background: #f8fafc; border-radius: 12px; padding: 6px; margin: 6px auto; max-width: 440px; }
.ja-ktask { margin-top: 8px; }
.ja-cmp { margin: 10px 0; }
.ja-tbl { width: 100%; max-width: 520px; margin: 0 auto; border-collapse: collapse; font-size: 1rem; }
.ja-tbl caption { font-weight: 700; padding-bottom: 4px; }
.ja-tbl th, .ja-tbl td { border-bottom: 1px solid var(--line, #e5e7eb); padding: 4px 6px; text-align: left; }
.ja-tbl td { text-align: right; white-space: nowrap; }
.ja-tbl thead th { background: #f8fafc; }
.ja-w .say { font-size: 18px; line-height: 1; flex: none; padding: 0; }
@media (max-width: 420px) {
  .ja-pair { gap: 6px; }
  .ja-plen i { width: 12px; height: 18px; }
  .ja-c { width: 38px; height: 44px; font-size: 1.4rem; }
  .ja-kbd { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .ja-tbl { font-size: .9rem; }
  .ja-all ol { columns: 1; }
}
/* 鍵の 表：数と 時間は 上下に（390px で 細切れに しない。2026-11-18 点検） */
.ja-tbl td span { display: block; white-space: nowrap; }
.ja-tbl td .t { color: var(--orange-t, #b45309); font-size: .95em; }
.ja-tbl th[scope="row"] { width: 42%; }
/* ===== 小学生の mode（kana・dial・nidan、g5-joho-angou。2026-11-19 足した。jas- で 始まる 名前だけ。中学の 見た目は かえない） ===== */
.jas-step { text-align: center; font-size: .95rem; color: var(--sub, #4b5563); margin: 0 !important; min-height: 1.2em; }
.jas-wh { max-width: 340px; }
.jas-kw text { font-family: inherit; }
.jas-kw .t1 { font-size: 16px; }
.jas-kw .t2 { font-size: 14px; }
.jas-kw text.h { font-size: 19px; }
.jas-kw text.a0 { fill: #b45309; }
.jas-kw .hl { stroke-width: 20; }
.jas-cnt { text-align: center; font-size: 1rem; color: var(--sub, #4b5563); min-height: 1.4em; margin: 0 !important; }
.ja-c.jas-k { font-family: inherit; font-size: 1.5rem; }
.ja-w[data-ja-mode="kana"] .ja-row .ja-lab { width: 4.8em; }
.jas-lock .jas-dl i { width: 26px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 1rem; font-weight: 700; color: #334155; }
.jas-bars { max-width: 460px; margin: 8px auto; }
.jas-br { display: grid; grid-template-columns: 6.2em 1fr 5.6em; align-items: center; gap: 6px; margin: 4px 0; font-size: 1rem; }
.jas-bn { text-align: right; font-weight: 700; }
.jas-bt { background: #f1f5f9; border-radius: 6px; height: 18px; overflow: hidden; }
.jas-bt i { display: block; height: 100%; background: var(--ja-hi); border-radius: 6px; min-width: 3px; }
.jas-bv { font-weight: 700; white-space: nowrap; }
.jas-tgrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; font-weight: 700; }
.ja-w .jas-tg { min-width: 88px; min-height: 48px; border-radius: 999px; border: 2px solid #94a3b8; background: #f1f5f9; font-weight: 700; padding: 4px 16px; }
.ja-w .jas-tg[aria-pressed="true"] { background: var(--ja-ok); border-color: var(--ja-ok); color: #fff; }
.ja-w .jas-tg:not(:disabled) { box-shadow: 0 0 0 4px var(--ja-hil); border-color: var(--ja-hi); }
.ja-w .jas-tg:disabled { cursor: default; }
.jas-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jas-pane { border: 2px solid var(--line, #e5e7eb); border-radius: 12px; padding: 6px 8px; background: #f8fafc; font-size: 1rem; min-width: 0; }
.jas-mine { background: #f5f3ff; border-color: #ddd6fe; }
.jas-pt { font-weight: 700; text-align: center; margin: 0 0 4px !important; }
.jas-form { background: #fff; border-radius: 8px; padding: 2px 8px; }
.jas-form p { margin: 2px 0 !important; overflow-wrap: anywhere; }
.jas-st { font-size: .98rem; }
.jas-st.bad { color: var(--orange-t, #b45309); font-weight: 700; }
.jas-st.good { color: var(--ja-ok); font-weight: 700; }
.jas-boxes { display: flex; gap: 3px; justify-content: center; }
.jas-boxes i { width: 18px; height: 24px; border: 2px dashed #94a3b8; border-radius: 4px; background: #fff; }
.jas-msg { background: #fff; border-radius: 10px; padding: 4px 8px; margin: 4px 0; border-left: 4px solid var(--ja-in); }
.jas-msg.ask { border-left-color: var(--orange-t, #b45309); }
.jas-code { font-size: 1.15rem; letter-spacing: .08em; font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
@media (max-width: 420px) {
  .jas-lock .jas-dl i { width: 22px; height: 28px; font-size: .9rem; }
  .jas-br { grid-template-columns: 6.6em 1fr 4.6em; font-size: .92rem; }
  .jas-pane { font-size: .92rem; padding: 6px; }
  .ja-c.jas-k { font-size: 1.3rem; }
}
.ja-w[data-ja-mode="kana"] .ja-all { max-width: 30em; }
.ja-w[data-ja-mode="kana"] .ja-all ol { columns: 3; font-family: inherit; }
.ja-w[data-ja-mode="kana"] .ja-all li span { min-width: 1.6em; font-family: inherit; }
@media (max-width: 420px) { .ja-w[data-ja-mode="kana"] .ja-all ol { columns: 2; } }
.jas-lock .ja-pnum { overflow-wrap: anywhere; word-break: break-all; }
/* 2026-11-19 点検（codex_sho3_angou）：字の 並び（1字ずつ 読む）・作る ときの 大きな 帯・返しの はこへの フォーカス */
.ja-w[data-ja-mode="kana"] .jas-cs { display: inline-flex; gap: 6px; }
.ja-w[data-ja-mode="kana"] .jas-band { display: flex; justify-content: center; gap: 4px; margin: 6px 0 0; }
.ja-w[data-ja-mode="kana"] .jas-band span { width: 44px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line, #e5e7eb); border-radius: 10px; background: #fff; font-size: 1.5rem; font-weight: 700; }
.ja-w[data-ja-mode="kana"] .jas-band span.st { background: var(--ja-hil); border-color: var(--orange-t, #b45309); }
.ja-w[data-ja-mode="kana"] .jas-bandl { text-align: center; font-size: .9rem; color: var(--sub, #4b5563); margin: 2px 0 0 !important; }
.ja-w:is([data-ja-mode="kana"], [data-ja-mode="dial"], [data-ja-mode="nidan"]) .ja-fb[tabindex="-1"]:focus { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 10px; }
@media (max-width: 420px) {
  .ja-w[data-ja-mode="kana"] .jas-cs { gap: 4px; }
  .ja-w[data-ja-mode="kana"] .jas-band span { width: 40px; height: 44px; font-size: 1.3rem; }
}
