/* en-read（英語 読む：絵本・ポスター・看板）。正かい＝みどり、まちがい＝赤。英字は Andika。知って いる 語＝下線 */
.er { --er-ok: #10b981; --er-okd: #047857; --er-ng: #ef4444; --er-ngd: #b91c1c; --er-b: #1e3a8a; font-size: 1.05rem; }
.er [hidden] { display: none !important; }
.er [lang="en"] { font-family: "Andika", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.er-q { background: linear-gradient(180deg, #eef6ff, #f8fbff); border: 2px solid #93c5fd; border-radius: 16px; padding: 8px 14px; margin-bottom: 10px; font-weight: 700; line-height: 1.7; }
.er rt { font-size: .5em; font-weight: 500; }
.er-b { font: 700 1rem/1.3 inherit; font-family: inherit; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; color: #1f2937; padding: 8px 16px; min-height: 44px; cursor: pointer;
  box-shadow: 0 3px 0 #e2e8f0; touch-action: manipulation; display: inline-flex; align-items: center; gap: 6px; }
.er-b:active { transform: translateY(2px); box-shadow: none; }
.er-b:disabled { opacity: .5; cursor: default; }
.er-pick { border-color: #f59e0b; box-shadow: 0 3px 0 #fde68a; }
.er-pick.sub { border-color: #cbd5e1; box-shadow: 0 3px 0 #e2e8f0; color: #475569; }
.er-next { border-color: var(--er-ok); background: var(--er-ok); color: #fff; box-shadow: 0 3px 0 var(--er-okd); }
.er-fb { min-height: 1.6em; margin: 8px 0; padding: 6px 10px; border-radius: 12px; font-weight: 700; line-height: 1.7; }
.er-fb.ok { background: #ecfdf5; color: var(--er-okd); }
.er-fb.ng { background: #fef2f2; color: var(--er-ngd); }
.er-note { color: #64748b; font-size: .85rem; }

/* story：絵本 */
.er-book { padding: 10px; border-radius: 10px 18px 18px 10px; background: linear-gradient(90deg, #b45309 0 8px, #fde68a 8px 12px, #fffdf5 12px); box-shadow: 0 6px 16px rgba(120, 53, 15, .22), inset -3px 0 0 #fef3c7; }
.er-page { background: #fffdf7; border-radius: 6px 12px 12px 6px; padding: 10px 10px 12px 14px; transform-origin: left center; }
.er-pic { position: relative; height: 210px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #e0f2fe 70%, #bae6fd); display: flex; align-items: center; justify-content: center; }
.er-pic.none { height: 64px; background: linear-gradient(90deg, #fef3c7, #fde68a); }
.er-img { max-height: 92%; max-width: 92%; object-fit: contain; mix-blend-mode: multiply; transition: filter .6s; }
.er-pic.shadow { background: radial-gradient(circle at 50% 40%, #f1f5f9, #cbd5e1); }
.er-pic.shadow .er-img { mix-blend-mode: normal; }
.er-img.css-sh { filter: brightness(0) opacity(.85); mix-blend-mode: normal; }
.er-pic.reveal .er-img { animation: er-pop .6s ease-out; }
.er-clock { position: absolute; left: 8px; top: 8px; width: 64px; height: 64px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
.er-no { position: absolute; right: 8px; bottom: 6px; font: 700 .85rem/1 "Andika", sans-serif; color: #64748b; background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 3px 8px; }
.er-text { margin-top: 8px; }
.er-line { margin: 6px 0; font-size: 1.2rem; line-height: 1.7; }
.er-line .en-s { cursor: pointer; font-size: 1.1em; }
.er-line.after { animation: er-in .4s ease-out; }
.er-kn { text-decoration: none; border-bottom: 3px solid #f59e0b; padding-bottom: 1px; }
.er-ask { margin-top: 8px; padding: 8px; border-radius: 14px; background: #fff7e6; border: 2px dashed #fcd34d; }
.er-askq { margin: 0 0 6px; font-weight: 700; }
.er-chs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.er-chs.pics { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.er-ch { justify-content: center; flex-direction: column; border-radius: 16px; font-size: 1.1rem; color: var(--er-b); background: linear-gradient(180deg, #fff, #f1f5f9); padding: 8px; }
.er-ch img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.er-ch.ok { border-color: var(--er-ok); background: linear-gradient(180deg, #ecfdf5, #d1fae5); color: var(--er-okd); opacity: 1; }
.er-ch.ng { border-color: var(--er-ng); background: #fef2f2; color: var(--er-ngd); animation: er-shake .35s; }
.er-nav { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.er-dots { flex: 1; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.er-dots span { width: 12px; height: 12px; border-radius: 50%; background: #e2e8f0; }
.er-dots span.done { background: #a7f3d0; }
.er-dots span.on { background: #f59e0b; transform: scale(1.25); }

/* find：ポスター */
.er-askbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; background: #fff7e6; border: 2px solid #fcd34d; margin-bottom: 10px; font-weight: 700; }
.er-akn { background: #f59e0b; color: #fff; border-radius: 999px; padding: 2px 10px; font: 700 .9rem/1.4 "Andika", sans-serif; }
.er-akq { font-size: 1.1rem; }
.er-akq.done { color: var(--er-okd); }
.er-poster { position: relative; border-radius: 18px; padding: 16px 14px 34px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #7c3aed, #db2777 60%, #f97316); box-shadow: 0 6px 16px rgba(124, 58, 237, .3); }
.er-poster.blue { background: linear-gradient(160deg, #1d4ed8, #0891b2 60%, #10b981); }
.er-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.er-pbody { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.er-ptitle { margin-bottom: 4px; }
.er-prow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.er-tok { border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; padding: 4px 10px; font-size: 1.15rem; }
.er-tok.big { font-size: 1.6rem; border-color: transparent; background: transparent; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.er-tok.ok { background: #fff; color: var(--er-okd); border-color: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .5); }
.er-tok.ng { background: #fee2e2; color: var(--er-ngd); border-color: var(--er-ng); animation: er-shake .35s; }

/* find：看板の 町 */
.er-town { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 8px; padding: 12px 8px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 70%, #94a3b8 70%, #64748b 100%); }
.er-sign { position: relative; height: 118px; display: flex; flex-direction: column; align-items: center; }
.er-sign > svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 128px; height: 58px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.er-sign.oct > svg, .er-sign.round > svg { width: 76px; height: 76px; }
.er-sgt { position: relative; z-index: 1; height: 58px; display: flex; align-items: center; justify-content: center; gap: 0; }
.er-sign.oct .er-sgt, .er-sign.round .er-sgt { height: 76px; }
.er-let { min-height: 40px; min-width: 22px; padding: 0 1px; border: 0; background: transparent; box-shadow: none; color: #fff; font: 700 1.35rem/1 "Andika", sans-serif; border-radius: 6px; }
.er-let.saying, .er-let:focus-visible { background: rgba(255, 255, 255, .35); }
.er-sign.oct .er-let, .er-sign.round .er-let { font-size: 1.1rem; min-width: 16px; }
.er-pole { width: 6px; flex: 1; background: linear-gradient(90deg, #64748b, #cbd5e1, #64748b); margin-top: -2px; }
.er-sgp { position: absolute; right: calc(50% - 74px); bottom: 2px; min-height: 40px; min-width: 40px; padding: 0; justify-content: center; color: #2563eb; border-color: #2563eb; }
.er-sign.saying > svg { filter: drop-shadow(0 0 6px #fbbf24); }
.er-sign.ok > svg { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 8px #10b981); }
.er-sign.ok::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 22px; height: 22px; margin-left: -40px; border-radius: 50%; background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/16px no-repeat; }
.er-sign.ng { animation: er-shake .35s; }

@keyframes er-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes er-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes er-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .er *, .er *::before, .er *::after { animation: none !important; transition: none !important; } }
@media (max-width: 400px) { .er-pic { height: 180px; } .er-town { grid-template-columns: 1fr 1fr; } .er-sign > svg { width: 120px; } .er-sgp { right: 2px; } }
