/* en-romaji（ローマ字と 英語）。ローマ字の 読み＝オレンジ、英語の 声＝青。本表で とくべつな つづり（shi・chi・tsu・fu・ji…）＝むらさき（ko-romaji と 同じ） */
.er { --er-ok: #10b981; --er-okd: #047857; --er-ng: #ef4444; --er-ngd: #b91c1c; --er-ja: #ea580c; --er-en: #2563eb; 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; justify-content: center; gap: 6px; }
.er-b:active { transform: translateY(2px); box-shadow: none; }
.er-b:disabled { cursor: default; }
.er-go { border-color: var(--er-ok); background: linear-gradient(180deg, #34d399, #10b981); color: #fff; box-shadow: 0 3px 0 var(--er-okd); }
.er-re { border-color: #94a3b8; color: #334155; }
.er-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.er-end { width: 100%; font-weight: 700; line-height: 1.7; color: var(--er-okd); }
.er-guess { background: #fff7e6; border: 2px solid #fcd34d; border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; }
.er-gq { font-weight: 700; line-height: 1.7; margin-bottom: 6px; }
.er-gl { display: inline-block; background: #f59e0b; color: #fff; border-radius: 999px; padding: 0 10px; margin-right: 6px; font-size: .85rem; }
.er-gch { display: flex; flex-wrap: wrap; gap: 8px; }
.er-gb.ok { border-color: var(--er-ok); background: #ecfdf5; color: var(--er-okd); }
.er-gb.ng { border-color: var(--er-ng); background: #fef2f2; color: var(--er-ngd); }
.er-gr { margin-top: 6px; font-weight: 700; line-height: 1.7; }
.er-gr.ok { color: var(--er-okd); } .er-gr.ng { color: #92400e; }
.er-body.er-wait { opacity: .35; pointer-events: none; filter: grayscale(.4); }
/* compare */
.er-card { position: relative; text-align: center; padding: 10px; border-radius: 20px; background: radial-gradient(circle at 50% 30%, #fff, #eef2ff); border: 2px solid #c7d2fe; margin-bottom: 10px; }
.er-cnt { position: absolute; right: 10px; top: 6px; font-size: .8rem; font-weight: 700; color: #64748b; }
.er-word { font-size: 3rem; font-weight: 700; color: #1e293b; letter-spacing: .02em; }
.er-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.er-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 18px; background: #fff; border: 3px solid; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.er-side.ja { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed, #fff); }
.er-side.en { border-color: #93c5fd; background: linear-gradient(180deg, #eff6ff, #fff); }
.er-sl { font-size: .85rem; font-weight: 800; color: #fff; border-radius: 999px; padding: 1px 10px; }
.ja .er-sl { background: var(--er-ja); } .en .er-sl { background: var(--er-en); }
.er-ro { font-size: 1.6rem; font-weight: 700; min-height: 1.6em; }
.er-mo { color: var(--er-ja); }
.er-bar { color: #cbd5e1; margin: 0 2px; font-weight: 400; }
.en .er-ro { color: var(--er-en); }
.er-kana { font-weight: 700; color: #9a3412; min-height: 1.7em; line-height: 1.7; text-align: center; }
.en .er-kana { color: #1e3a8a; }
.er-hide { color: #cbd5e1 !important; }
.er-vb { flex-direction: column; gap: 2px; border-radius: 18px; min-width: 96px; padding: 6px 14px; }
.er-vb.ja { border-color: #fb923c; box-shadow: 0 3px 0 #fed7aa; }
.er-vb.en { border-color: #60a5fa; box-shadow: 0 3px 0 #bfdbfe; }
.er-vb.done { background: #f8fafc; }
.er-vb.saying, .er-sent.saying { box-shadow: 0 0 0 4px #fbbf24; }
.er-slow { border-color: #0f8a72; color: #0f8a72; box-shadow: 0 3px 0 #a7f3d0; padding: 4px 10px; font-size: .85rem; min-height: 40px; }
.er-play { border-color: #2563eb; color: #2563eb; box-shadow: 0 3px 0 #bfdbfe; padding: 6px 12px; }
/* name */
.er-nbox { padding: 10px; border-radius: 18px; background: #fff; border: 2px solid #e2e8f0; display: flex; flex-direction: column; gap: 8px; }
.er-nl { font-weight: 700; }
.er-in { font-size: 1.4rem; font-weight: 700; line-height: 1.4; font-family: inherit; padding: 8px 12px; border-radius: 14px; border: 3px solid #93c5fd; width: 100%; box-sizing: border-box; min-height: 52px; }
.er-in:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.er-exs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.er-exl { font-size: .85rem; font-weight: 700; color: #64748b; }
.er-ex { padding: 6px 12px; }
.er-note { font-size: .85rem; color: #64748b; margin: 0; }
.er-res { margin-top: 10px; padding: 12px 8px; border-radius: 20px; background: linear-gradient(180deg, #f0fdf4, #fff); border: 2px solid #a7f3d0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.er-big { font-size: 2.6rem; font-weight: 700; color: #065f46; animation: er-pop .35s ease; word-break: break-all; text-align: center; }
.er-mrow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.er-mc { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 4px 8px; border-radius: 12px; background: #fff; border: 2px solid #e2e8f0; }
.er-mc .k { font-weight: 700; }
.er-mc .r { font-size: 1.2rem; font-weight: 700; color: #1e3a8a; }
.er-mc.lg { border-color: #fbbf24; background: #fffbeb; }
.er-mc.sp { border-color: #a78bfa; background: #f5f3ff; } .er-mc.sp .r { color: #6d28d9; }
.er-long { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; font-weight: 700; }
.er-lb { padding: 6px 12px; font-size: .95rem; }
.er-lb.on { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 3px 0 #1e40af; }
.er-sent { font-size: 1.5rem; font-weight: 700; text-align: center; padding: 6px 12px; border-radius: 14px; background: #fff; border: 2px solid #e2e8f0; }
.er-nm { color: #065f46; background: #d1fae5; border-radius: 8px; padding: 0 4px; }
.er-pb { display: flex; gap: 6px; }
.er-fb { display: flex; gap: 6px; align-items: flex-start; min-height: 1.6em; margin: 10px 0 0; border-radius: 12px; font-weight: 700; line-height: 1.7; }
.er-fb.ok, .er-fb.ng, .er-fb.hint { padding: 6px 10px; }
.er-fb.ok { background: #ecfdf5; color: var(--er-okd); }
.er-fb.ng { background: #fef2f2; color: var(--er-ngd); }
.er-fb.hint { background: #fff7e6; color: #92400e; }
.er-mi { flex: none; display: inline-flex; padding-top: 3px; }
@keyframes er-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (max-width: 420px) { .er-word { font-size: 2.4rem; } .er-ro { font-size: 1.3rem; } .er-big { font-size: 2.1rem; } .er-sent { font-size: 1.25rem; } .er-vb { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .er-big { animation: none; } }
