/* en-talk（英語 会話）。正かい＝みどり、まちがい＝赤。しつもんと こたえの 対は 同じ 色（--kc）。英字は Andika */
.et { --et-ok: #10b981; --et-okd: #047857; --et-ng: #ef4444; --et-ngd: #b91c1c; --et-b: #1e3a8a; font-size: 1.05rem; }
.et [hidden] { display: none !important; }
.et [lang="en"], .et .et-en { font-family: "Andika", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.et-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; }
.et-q rt, .et rt { font-size: .5em; font-weight: 500; }
.et-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.et-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; }
.et-b:active { transform: translateY(2px); box-shadow: none; }
.et-b:disabled { opacity: .55; cursor: default; }
.et-pick { border-color: #f59e0b; box-shadow: 0 3px 0 #fde68a; }
.et-pick.sub { border-color: #cbd5e1; box-shadow: 0 3px 0 #e2e8f0; color: #475569; }
.et-pick.ok { border-color: var(--et-ok); color: var(--et-okd); background: #ecfdf5; opacity: 1; }
.et-pick.dim, .et-ch.dim { opacity: .45; }
.et-next { border-color: var(--et-ok); background: var(--et-ok); color: #fff; box-shadow: 0 3px 0 var(--et-okd); }
.et-fb { min-height: 1.6em; margin: 8px 0; padding: 6px 10px; border-radius: 12px; font-weight: 700; line-height: 1.7; }
.et-fb.ok { background: #ecfdf5; color: var(--et-okd); }
.et-fb.ng { background: #fef2f2; color: var(--et-ngd); }
.et-fb .et-next { margin-left: 8px; }
.et-note { color: #64748b; font-size: .85rem; }

/* 会話（あいて＝左・自分＝右） */
.et-talk { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px;
  background: linear-gradient(180deg, #fff7ed, #fefce8); border: 2px solid #fde68a; }
.et-row { display: flex; align-items: flex-end; gap: 8px; }
.et-row.me { flex-direction: row-reverse; }
.et-row.in { animation: et-in .35s ease-out; }
.et-av { flex: 0 0 auto; width: 66px; display: flex; flex-direction: column; align-items: center; }
.et-pic { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, #dbeafe); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); }
.et-av.me .et-pic { background: radial-gradient(circle at 50% 35%, #fff, #fef3c7); }
.et img.mul, .et-thing img { mix-blend-mode: multiply; }
.et-item img.et-iimg { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.et-pic img, .et-pic svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.et-pic.pop { animation: et-pop .35s ease-out; }
.et-pic.hand { animation: et-hand .6s ease-out; }
.et-nm { font-size: .85rem; font-weight: 700; color: #475569; margin-top: 2px; cursor: default; }
.et-rst .et-nm { background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 0 6px; font-size: .78rem; white-space: nowrap; }
.et-nm [lang="en"] { cursor: pointer; color: var(--et-b); }
.et-bub { position: relative; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 76px); background: #fff; border: 2px solid #cbd5e1; border-radius: 18px; padding: 8px 12px; line-height: 1.6;
  box-shadow: 0 2px 0 #e2e8f0; margin-bottom: 14px; overflow-wrap: anywhere; }
.et-bub::after { content: ""; position: absolute; bottom: 10px; left: -9px; width: 14px; height: 14px; background: #fff; border-left: 2px solid #cbd5e1; border-bottom: 2px solid #cbd5e1; transform: rotate(45deg); }
.et-row.me .et-bub { background: #fffbeb; border-color: #fbbf24; }
.et-row.me .et-bub::after { left: auto; right: -9px; background: #fffbeb; border: 0; border-right: 2px solid #fbbf24; border-top: 2px solid #fbbf24; }
.et-bub.pop { animation: et-pop .3s ease-out; }
.et-bub .en-s { font-size: 1.15em; }
.et-bub.hid { border-style: dashed; color: #64748b; font-weight: 700; font-size: .95rem; }
.et-hidtxt { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.et-k { color: var(--kc); border-radius: 6px; padding: 0 2px; transition: background .3s, box-shadow .3s; }
.et-k.glow { background: color-mix(in srgb, var(--kc) 16%, #fff); box-shadow: 0 0 0 2px var(--kc); animation: et-glow 1.2s ease-in-out 2; }
.et-k.blink { animation: et-blink .9s ease-in-out 2; }
.et-sayit { position: absolute; right: 84px; bottom: -14px; background: #0f8a72; color: #fff; font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 4px 12px;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 3px 8px rgba(15, 138, 114, .35); animation: et-pop .3s ease-out; transition: opacity .25s; z-index: 2; }
.et-sayit.out { opacity: 0; }
.et-mouth { width: 14px; height: 9px; border-radius: 0 0 10px 10px; background: #fff; animation: et-talkm .5s ease-in-out infinite alternate; }

/* えらぶ ボタン */
.et-chs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.et-ch { justify-content: center; border-radius: 16px; font-size: 1.1rem; color: var(--et-b); background: linear-gradient(180deg, #fff, #f1f5f9); border-color: #cbd5e1; padding: 8px 10px; }
.et-ch.ok { border-color: var(--et-ok); background: linear-gradient(180deg, #ecfdf5, #d1fae5); color: var(--et-okd); box-shadow: 0 3px 0 #a7f3d0; opacity: 1; }
.et-ch.ng { border-color: var(--et-ng); background: #fef2f2; color: var(--et-ngd); animation: et-shake .35s; }
.et-ch.play { color: #9a3412; }

/* answer：もの・スイッチ */
.et-mid { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.et-thing { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 14px; padding: 4px 8px; box-shadow: 0 2px 6px rgba(15, 23, 42, .1); }
.et-thing img { width: 72px; height: 72px; object-fit: contain; }
.et-tl { font-weight: 700; font-size: .95rem; }
.et-sw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.et-swl { font-weight: 700; color: #475569; }
.et-swb { padding: 6px 14px; }
.et-swb.y[aria-pressed="true"] { background: #10b981; border-color: #059669; color: #fff; box-shadow: 0 3px 0 #047857; }
.et-swb.n[aria-pressed="true"] { background: #64748b; border-color: #475569; color: #fff; box-shadow: 0 3px 0 #334155; }

/* respond：ばめん・スライダー */
.et-stage { border-radius: 16px; overflow: hidden; box-shadow: 0 3px 10px rgba(15, 23, 42, .15); margin-bottom: 6px; }
.et-scene { display: block; width: 100%; height: auto; }
.et-fall { animation: et-fall 1.2s linear infinite; }
.et-wind { animation: et-wind 1.6s ease-in-out infinite alternate; }
.et-hh, .et-mh { transition: transform .5s; }
.et-sl { margin: 6px 0 8px; }
.et-sl input[type="range"] { width: 100%; height: 44px; accent-color: #f59e0b; margin: 0; }
.et-sl.off { opacity: .45; pointer-events: none; }
.et-ticks { display: flex; gap: 4px; }
.et-tick { flex: 1 1 0; min-width: 0; justify-content: center; padding: 4px 2px; font-size: .82rem; border-radius: 12px; min-height: 44px; line-height: 1.2; text-align: center; }
.et-tick.ico { padding: 2px; border-radius: 14px; }
.et-tick.ico { flex-direction: column; gap: 0; }
.et-tick.ico svg { width: 100%; max-width: 46px; height: auto; display: block; }
.et-tl2 { font-size: .78rem; line-height: 1.1; }
.et-tick.ico:has(.et-tl2) svg { max-width: 30px; }
.et-tick.on { border-color: #f59e0b; background: #fff7e6; color: #9a3412; }
.et-pred { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border-radius: 12px; background: #fff7e6; font-weight: 700; margin: 8px 0; }
.et-sub { margin-top: 14px; padding-top: 10px; border-top: 2px dotted #e2e8f0; }
.et-subh { font-weight: 700; margin: 4px 0 8px; line-height: 1.7; }
.et-play { margin-top: 4px; }

/* wh：はこ */
.et-whg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.et-whb { border: 2px solid color-mix(in srgb, var(--bc) 45%, #fff); border-radius: 16px; background: color-mix(in srgb, var(--bc) 6%, #fff); padding: 6px; transition: box-shadow .3s, opacity .3s, transform .3s; }
.et-whb.yn { border-style: dashed; }
.et-whb.yn .et-whh { font-size: .9rem; padding: 6px 8px; white-space: nowrap; }
.et-whh { width: 100%; justify-content: center; color: var(--bc); border-color: var(--bc); box-shadow: 0 3px 0 color-mix(in srgb, var(--bc) 30%, #fff); font-size: 1rem; }
.et-whc { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.et-card { justify-content: center; border-radius: 12px; font-size: 1rem; color: var(--et-b); padding: 6px 8px; min-height: 44px; }
.et-whg:not(.open) .et-card, .et-card:disabled { opacity: .55; }
.et-whb.lit { box-shadow: 0 0 0 4px var(--bc), 0 6px 18px color-mix(in srgb, var(--bc) 40%, transparent); background: color-mix(in srgb, var(--bc) 14%, #fff); transform: translateY(-2px); }
.et-whb.lit .et-card:not(:disabled) { opacity: 1; border-color: var(--bc); }
.et-whb.dim { opacity: .5; }
.et-whb.ng { animation: et-shake .35s; border-color: var(--et-ng); }
.et-card.ok { border-color: var(--et-ok) !important; background: #ecfdf5; color: var(--et-okd); }
.et-card.ngc { border-color: var(--et-ng) !important; background: #fef2f2; color: var(--et-ngd); animation: et-shake .35s; }

/* role：2人と つくえ・トレイ・ピザ */
.et-rst { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 18px; margin-bottom: 8px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 58%, #d6a46c 58%, #c08a52 100%); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .06); }
.et-rst.tray { background: linear-gradient(180deg, #fef3c7 0%, #fffbeb 58%, #b45309 58%, #92400e 100%); }
.et-rst.pizza { background: linear-gradient(180deg, #ffe4e6 0%, #fff1f2 58%, #a16207 58%, #854d0e 100%); }
.et-desk { position: relative; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.et-desk.empty { min-height: 40px; }
.et-got { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; min-height: 54px; min-width: 120px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 2px dashed #94a3b8; }
.et-item { display: inline-block; width: 44px; height: 44px; }
.et-shelf { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 6px; }
.et-sh { min-height: 44px; min-width: 44px; padding: 2px; border-radius: 12px; background: rgba(255, 255, 255, .85); }
.et-sh .et-iimg { width: 34px; height: 34px; display: block; }
.et-item .et-iimg { width: 100%; height: 100%; object-fit: contain; display: block; }
.et-item svg.et-iimg { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.et-tray { position: relative; width: 150px; height: 84px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #f8fafc, #cbd5e1); border: 4px solid #94a3b8; box-shadow: 0 6px 0 #64748b; }
.et-tray .et-on { position: absolute; inset: 8px 12px; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; align-items: center; }
.et-tray .et-item { width: 60px; height: 60px; }
.et-sum { margin-top: 10px; font: 700 1.05rem/1.2 "Andika", sans-serif; background: #fff; border: 2px solid #f59e0b; border-radius: 999px; padding: 3px 12px; color: #9a3412; }
.et-sum.pop { animation: et-pop .4s ease-out; }
.et-pz { position: relative; width: 130px; height: 130px; }
.et-pz svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25)); }
.et-pz .et-on { position: absolute; inset: 0; }
.et-pz .et-item { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.et-menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; justify-content: center; padding: 8px; border-radius: 16px; margin-bottom: 8px;
  background: linear-gradient(180deg, #fffbeb, #fef3c7); border: 3px double #b45309; }
.et-mt { flex: 1 0 100%; text-align: center; font-weight: 700; letter-spacing: .3em; color: #92400e; }
.et-mi { flex-direction: column; gap: 0; border-radius: 14px; padding: 4px 8px; min-width: 92px; border-color: #fcd34d; }
.et-mimg { width: 54px; height: 54px; object-fit: contain; }
.et-mi svg.et-mimg { width: 40px; height: 40px; }
.et-mn { font-size: .95rem; color: var(--et-b); }
.et-mp { font-size: .9rem; color: #b45309; }
.et-log { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; background: #f8fafc; min-height: 20px; position: relative; }
.et-log:empty { display: none; }
.et-log .et-pic { width: 46px; height: 46px; }
.et-log .et-av { width: 50px; }
.et-log .et-nm { display: none; }
.et-log .et-bub { max-width: calc(100% - 60px); margin-bottom: 4px; }

/* quiz：虫めがね */
.et-qbox { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 10px auto; border-radius: 20px; overflow: hidden; touch-action: none; cursor: grab;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .25); outline-offset: 3px; }
.et-qbg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #334155, #0f172a); }
.et-qbg::before { content: "?"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 140px/1 "Andika", sans-serif; color: rgba(255, 255, 255, .06); }
.et-qimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; transition: clip-path .5s; pointer-events: none; }
.et-qbox:active .et-qimg { transition: none; }
.et-lens { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 6px solid #f59e0b; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .35); pointer-events: none; transition: width .5s, height .5s, opacity .5s; }
.et-lens::after { content: ""; position: absolute; left: 82%; top: 82%; width: 14px; height: 46px; border-radius: 7px; background: linear-gradient(90deg, #92400e, #b45309); transform: rotate(-45deg); transform-origin: top center; }
.et-qbox:active .et-lens { transition: width .5s, height .5s; }
.et-qbox.open .et-qimg { animation: et-pop .5s ease-out; }
.et-hints { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.et-hint { background: #fff7e6; border: 2px solid #fcd34d; border-radius: 999px; padding: 2px 6px 2px 10px; }

@keyframes et-pop { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes et-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes et-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes et-glow { 50% { box-shadow: 0 0 0 4px var(--kc), 0 0 14px var(--kc); } }
@keyframes et-blink { 50% { background: color-mix(in srgb, var(--kc) 30%, #fff); box-shadow: 0 0 0 3px var(--kc); } }
@keyframes et-hand { 30% { transform: translateX(10px) rotate(6deg); } 100% { transform: none; } }
@keyframes et-talkm { to { height: 3px; } }
@keyframes et-fall { from { transform: translateY(-14px); } to { transform: translateY(14px); } }
@keyframes et-wind { from { transform: translateX(-8px); } to { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) {
  .et *, .et *::before, .et *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 400px) {
  .et-chs { grid-template-columns: 1fr 1fr; }
  .et-ch { font-size: 1rem; padding: 8px 6px; }
  .et-rst { grid-template-columns: 58px 1fr 58px; }
  .et-rst .et-av { width: 58px; } .et-rst .et-pic { width: 54px; height: 54px; }
  .et-whg { grid-template-columns: 1fr 1fr; }
  .et-tick { font-size: .74rem; }
}

/* world（世界の あいさつ。2026-11-14 小4英語担当） */
.et-wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.et-wcard { flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; min-height: 104px; position: relative; text-align: center; }
.et-wname { font-size: .9rem; color: #475569; }
.et-wt { font-size: 1.35rem; font-weight: 700; color: #1e3a8a; line-height: 1.3; }
.et-wwhere { font-size: .75rem; color: #64748b; }
.et-wspk { position: absolute; top: 6px; right: 6px; color: #2563eb; opacity: .7; }
.et-wspk svg { width: 18px; height: 18px; }
.et-wcard.heard { border-color: #93c5fd; background: #eff6ff; }
.et-wcard.saying { outline: 3px solid #f59e0b; }
.et-wgrid.ask .et-wt, .et-wgrid.ask .et-wwhere { display: none; }
.et-wgrid.ask .et-wcard { min-height: 56px; }
.et-wcard.ok { border-color: var(--et-ok); background: #ecfdf5; }
.et-wgrid.ask .et-wcard.ok .et-wt { display: block; }
.et-wcard.ng { border-color: #ef4444; background: #fef2f2; }
