/* joho-ai（AI の 小さな 模型）。● 店へ＝みどり、▲ ジュースへ＝オレンジ（形でも 分ける）、? 調べる りんご＝むらさき。 */
.ja-w { font-size: 1.08rem; line-height: 1.65; }
.ja-w button { font-family: 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-b { font-size: 1.02rem; min-height: 48px; padding: 6px 16px; border-radius: 12px; border: 2px solid var(--line, #e5e7eb); background: #fff; font-weight: 700; }
.ja-b.main { background: var(--teal-d, #0f8a72); border-color: var(--teal-d, #0f8a72); color: #fff !important; }
.ja-b.idk { border-style: dashed; color: var(--sub, #4b5563); }
.ja-b.opt { text-align: left; }
.ja-ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 0; }
.ja-mini { font-size: .92rem; color: var(--sub, #4b5563); text-align: center; }
.ja-lead { font-weight: 700; }
.ja-rule { background: #f5f3ff; border: 2px solid #c4b5fd; border-radius: 12px; padding: 6px 12px; }
.ja-key { display: inline-block; margin-top: 2px; font-size: .95rem; }
.ja-ks { color: #15803d; } .ja-kj { color: #c2410c; } .ja-kq { display: inline-block; background: #7c3aed; color: #fff; border-radius: 4px; padding: 0 5px; font-weight: 700; }
.ja-prog { text-align: center; font-size: .95rem; color: var(--sub, #4b5563); margin: 0 !important; }
.ja-ctx { background: #f1f5f9; border-radius: 10px; padding: 6px 12px; }
.ja-box { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .ja-box { grid-template-columns: 320px 1fr; align-items: start; } }
.ja-fig { display: flex; justify-content: center; }
.ja-svg { width: 100%; max-width: 320px; height: auto; }
.ja-grid { stroke: #e5e7eb; stroke-width: 1; }
.ja-ax { stroke: #64748b; stroke-width: 2; }
.ja-t { font-size: 13px; fill: #374151; }
.ja-n { font-size: 11px; fill: #6b7280; }
.ja-pt.S { fill: #22c55e; stroke: #15803d; stroke-width: 2; }
.ja-pt.J { fill: #fb923c; stroke: #c2410c; stroke-width: 2; }
.ja-pt.add { stroke-dasharray: 3 2; stroke-width: 3; }
.ja-pt.nr { stroke: #1f2937; stroke-width: 3; }
.ja-near { stroke: #7c3aed; stroke-width: 2; stroke-dasharray: 5 3; }
.ja-q { fill: #7c3aed; stroke: #4c1d95; stroke-width: 2; }
.ja-qt { fill: #fff; font-size: 15px; font-weight: 700; }
.ja-ans { font-size: 1.08rem; }
.ja-cbar { display: block; height: 14px; border-radius: 7px; background: #e5e7eb; position: relative; overflow: hidden; }
.ja-cbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #7c3aed; }
.ja-q { }
p.ja-q { font-weight: 700; }
.ja-opts { display: flex; flex-direction: column; gap: 8px; }
.ja-task { font-weight: 700; border-left: 5px solid var(--teal-d, #0f8a72); padding-left: 10px; }
.ja-note { background: #f8fafc; border-radius: 10px; padding: 6px 12px; }
.ja-note.try { background: var(--orange-l, #fff4dc); }
.ja-praise { background: #e7f7ef; color: #0b6b58; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.ja-hint:not(:empty) { border: 2px dashed #f59e0b; border-radius: 12px; padding: 2px 10px; background: #fffbeb; margin-top: 6px; }
.ja-hint .ja-note { background: transparent; padding: 4px 0; }
.ja-tbl { grid-column: 1 / -1; font-size: 1rem; }
.ja-tbl summary { cursor: pointer; color: #4c1d95; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ja-t2 { border-collapse: collapse; width: 100%; max-width: 420px; }
.ja-t2 th, .ja-t2 td { border: 1px solid #e5e7eb; padding: 2px 8px; text-align: center; }
.ja-t2 tr.nr td { background: #f5f3ff; font-weight: 700; }
.ja-t2 tr.q td { background: #ede9fe; }
/* ---- 小学生の mode rei・shiranai（joho-ai-sho.js、g6-joho-ai）。.jm- だけ（learn には 効かない）。
   黒い マス＝こい はい色、見せた 絵と かさなった マス＝むらさき、○ まる＝みどり、× ばつ＝オレンジ、△ さんかく＝あお（色と 記号の 両方で 分ける） */
.jm-w .jm-stage { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0; }
@media (min-width: 720px) { .jm-w .jm-stage { grid-template-columns: 150px 1fr; align-items: start; } }
.jm-w .jm-q { display: flex; flex-direction: column; align-items: center; background: #f5f3ff; border: 3px solid #7c3aed; border-radius: 14px; padding: 6px 8px 10px; }
.jm-w .jm-cap { margin: 2px 0 6px !important; font-weight: 700; font-size: .98rem; text-align: center; }
.jm-w .jm-q .jm-cap { color: #5b21b6; }
.jm-w .jm-exw { background: #f8fafc; border-radius: 14px; padding: 6px 6px 8px; }
.jm-w .jm-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jm-w .jm-card { width: 92px; box-sizing: border-box; background: #fff; border: 3px solid #cbd5e1; border-radius: 12px; padding: 4px 4px 6px; text-align: center; }
.jm-w .jm-card.k-o { border-color: #15803d; } .jm-w .jm-card.k-x { border-color: #c2410c; } .jm-w .jm-card.k-t { border-color: #1d4ed8; }
.jm-w .jm-card.best { border-width: 6px; padding: 1px 1px 3px; box-shadow: 0 0 0 3px #ede9fe; }
.jm-w .jm-card.add { border-style: dashed; }
.jm-w .jm-card p { margin: 0 !important; line-height: 1.35; }
.jm-w .jm-cn { font-size: .88rem; color: var(--sub, #4b5563); }
.jm-w .jm-cl { font-weight: 700; font-size: .98rem; }
.jm-w .k-o .jm-cl, .jm-w .jm-k.k-o { color: #15803d; } .jm-w .k-x .jm-cl, .jm-w .jm-k.k-x { color: #c2410c; } .jm-w .k-t .jm-cl, .jm-w .jm-k.k-t { color: #1d4ed8; }
.jm-w .jm-sc { font-size: .9rem; color: #4c1d95; }
.jm-w .jm-sc b { font-size: 1.1rem; }
.jm-w .jm-g { display: block; margin: 2px auto; max-width: 100%; height: auto; }
.jm-w .jm-c, .jm-fig .jm-c { fill: #fff; stroke: #d1d5db; stroke-width: 1; }
.jm-w .jm-c.on { fill: #1f2937; }
.jm-w .jm-c.dim { fill: #a8b0bc; }
.jm-w .jm-c.ov { fill: #7c3aed; }
.jm-w .jm-c.qo { fill: #f3efff; stroke: #a78bfa; stroke-dasharray: 2 2; }
.jm-w .jm-fr { fill: none; stroke: #6b7280; stroke-width: 1.5; }
.jm-w .jm-leg { font-size: .9rem; color: var(--sub, #4b5563); text-align: center; margin: 6px 0 0 !important; }
.jm-w .jm-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin: 0 3px 0 6px; }
.jm-w .jm-sw.ov { background: #7c3aed; } .jm-w .jm-sw.dim { background: #a8b0bc; }
.jm-w .jm-ans .ja-ans { text-align: center; font-size: 1.15rem; margin: 4px 0 !important; }
.jm-w .jm-cands { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jm-w .jm-cb { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 6px 10px; text-align: center; }
.jm-w .jm-cb.on { border-color: #7c3aed; border-style: dashed; background: #f5f3ff; }
.jm-w .jm-cb .jm-c.on { fill: #15803d; }
.jm-w .jm-sw.qo { background: #f3efff; border: 2px dashed #a78bfa; box-sizing: border-box; }
@media (max-width: 560px) {
  .jm-w .jm-q { flex-direction: row; justify-content: center; gap: 14px; padding: 6px 8px; }
  .jm-w .jm-q .jm-cap { max-width: 7em; }
  .jm-w .jm-row { gap: 5px; }
  .jm-w .jm-card { width: 70px; border-width: 2px; padding: 3px 2px 4px; }
  .jm-w .jm-card.best { border-width: 5px; padding: 0 0 1px; }
  .jm-w .jm-cn { font-size: .78rem; }
  .jm-w .jm-cl { font-size: .76rem; white-space: nowrap; letter-spacing: -.03em; }
  .jm-w .jm-sc { font-size: .8rem; }
  .jm-w .jm-sc b { font-size: 1rem; }
  .jm-w .jm-exw { padding: 6px 2px 8px; }
}
.jm-w .jm-li { white-space: nowrap; display: inline-block; margin: 0 4px; }
.jm-w .jm-now { fill: none; stroke: #f59e0b; stroke-width: 3; }
.jm-w .jm-rl { margin: 2px 0 0; padding-left: 1.6em; }
.jm-w .jm-rl li { margin: 1px 0; }
.jm-w .jm-card.big { width: auto; padding: 4px 10px 6px; }
