/* joho-chat（ネットで おくる とき）。色は sho.css の 約束：みどり＝正かい、オレンジ＝光る 所、まちがいは きいろ系（せめない）。
   ゆう＝オレンジ、みお＝むらさき（名前の 字も いつも そえる。色だけに たよらない）。字は 17px 以上、ボタンは 48px 以上。 */
.jc-w { font-size: 1.1rem; line-height: 1.65; }
.jc-w button { font-family: inherit; line-height: 1.3; cursor: pointer; touch-action: manipulation; color: var(--ink, #1f2937); }
.jc-w button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.jc-w p { margin: 6px 0; }
.jc-w [hidden] { display: none !important; }

.jc-w .jc-b { font-size: 1.05rem; min-height: 48px; padding: 6px 16px; border-radius: 12px; border: 2px solid var(--line, #e5e7eb); background: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.jc-w .jc-b.main { background: var(--teal-d, #0f8a72); border-color: var(--teal-d, #0f8a72); color: #fff; }
.jc-w .jc-b.main .jc-face { background: #fff; border-radius: 50%; }
.jc-w .jc-b.sm { min-height: 44px; padding: 4px 12px; font-size: 1rem; }
.jc-w .jc-b.idk { border-style: dashed; color: var(--sub, #4b5563); }
.jc-w .jc-b:disabled { opacity: .45; cursor: default; }
.jc-ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 4px; }

.jc-prog { text-align: center; font-size: .95rem; color: var(--sub, #4b5563); margin: 0; }
.jc-qq { font-weight: 700; font-size: 1.1rem; }
.jc-mini { font-size: .95rem; color: var(--sub, #4b5563); text-align: center; }
.jc-fb { min-height: 1.6em; }
.jc-res { font-weight: 700; font-size: 1.12rem; }
.jc-res.ok { color: #0f8a72; }
.jc-res.try { color: var(--orange-t, #b45309); }
.jc-note { background: var(--orange-l, #fff4dc); border-radius: 10px; padding: 6px 12px; }
.jc-praise { background: #e7f7ef; color: #0b6b58; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.jc-hint { margin-top: 4px; }
.jc-hint:not(:empty) { border: 2px dashed #f59e0b; border-radius: 12px; padding: 4px 12px; background: #fffbeb; }
.jc-hh { font-weight: 700; color: #b45309; margin: 2px 0 !important; }

/* 目の 切りかえ */
.jc-eyes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0 0; }
.jc-eye { min-height: 48px; padding: 4px 12px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 4px; }
.jc-eye[aria-pressed="true"] { background: #1f2937; border-color: #1f2937; color: #fff; }
.jc-eye:disabled { opacity: .4; cursor: default; }
.jc-w .pulse { animation: jc-pulse 1.2s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(245, 158, 11, .5); }
@keyframes jc-pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, .15); } }

/* 2つの がめん */
.jc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.jc-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.jc-phone { position: relative; border: 3px solid #cbd5e1; border-radius: 18px; padding: 6px 6px 8px; background: #f8fafc; min-height: 190px; }
.jc-col:first-child .jc-phone { border-color: #f59e0b; }
.jc-col:last-child .jc-phone, .jc-recv .jc-phone { border-color: #8b5cf6; }
.jc-ph-h { display: flex; align-items: center; gap: 4px; font-size: .95rem; line-height: 1.2; margin: 0 0 6px !important; padding-bottom: 4px; border-bottom: 1px solid #e5e7eb; }
.jc-ph-h small { display: block; font-size: .8rem; color: var(--sub, #4b5563); }
.jc-chat { display: flex; flex-direction: column; gap: 6px; }
.jc-chat.hid { visibility: hidden; }
.jc-bub { max-width: 95%; padding: 5px 10px; border-radius: 14px; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.jc-bub.me { align-self: flex-end; background: #dcfce7; border: 1px solid #86efac; border-bottom-right-radius: 4px; }
.jc-bub.you { align-self: flex-start; background: #fff; border: 1px solid #cbd5e1; border-bottom-left-radius: 4px; }
.jc-bub .jc-cat { display: block; margin-bottom: 2px; }
.jc-bub small { display: block; font-size: .8rem; color: var(--sub, #4b5563); }
.jc-bub.pop { animation: jc-pop .35s ease-out; }
@keyframes jc-pop { from { transform: translateY(8px); opacity: 0; } }
.jc-cover { position: absolute; left: 6px; right: 6px; top: 44px; bottom: 8px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 8px, #e2e8f0 8px, #e2e8f0 16px); border-radius: 12px; font-size: .95rem; color: #374151; padding: 6px; }
.jc-comp { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; background: #fff; border: 2px dashed #f59e0b; border-radius: 12px; padding: 4px 6px; }
.jc-comp-t { font-weight: 700; }
.jc-comp-t small { display: block; font-weight: 400; font-size: .8rem; color: var(--sub, #4b5563); }
.jc-heart { display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 4px 8px; border: 2px solid #fcd34d; border-radius: 16px; background: #fffbeb; font-size: 1rem; line-height: 1.4; }
.jc-heart small { display: block; font-size: .8rem; color: var(--sub, #4b5563); }
.jc-heart .jc-face { flex: none; }
.jc-heart.fog { border: 2px dashed #cbd5e1; background: #f1f5f9; color: #4b5563; font-size: .95rem; }
.jc-q { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #cbd5e1; color: #fff; font-weight: 700; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; }
.jc-two.eye-b .jc-heart { border-width: 3px; }

/* えらぶ */
.jc-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jc-choices.col { flex-direction: column; align-items: stretch; }
.jc-opt { min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 2px solid #cbd5e1; background: #fff; font-size: 1.02rem; font-weight: 700; text-align: left; }
.jc-opt.idk { border-style: dashed; color: var(--sub, #4b5563); }
.jc-opt.picked { border-color: #2563eb; background: #eff6ff; }
.jc-opt.picked::before { content: "えらんだ："; font-size: .85rem; color: #2563eb; }
.jc-opt.picked2 { border-color: #f59e0b; background: #fff4dc; }
.jc-opt:disabled { cursor: default; }
.jc-opt:disabled:not(.picked) { opacity: .55; }

/* fix */
.jc-ctx { display: flex; flex-direction: column; }
.jc-bub.in { max-width: 80%; }
.jc-draft { border: 2px dashed #f59e0b; background: #fff; border-radius: 14px; padding: 6px 10px; margin-top: 8px; }
.jc-d-h { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--sub, #4b5563); margin: 0 !important; }
.jc-d-t { font-size: 1.2rem; font-weight: 700; min-height: 1.6em; overflow-wrap: anywhere; }
.jc-pre { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.jc-pre .jc-mini { flex-basis: 100%; }
.jc-breath { font-size: 1.2rem; font-weight: 700; color: #0f8a72; text-align: center; }
.jc-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.jc-chip { min-height: 52px; padding: 4px 10px; border-radius: 12px; border: 2px solid #cbd5e1; background: #fff; font-weight: 700; font-size: 1rem; text-align: left; }
.jc-chip small { display: block; font-weight: 400; font-size: .85rem; color: var(--sub, #4b5563); }
.jc-chip[aria-pressed="true"] { border-color: #0f8a72; background: #e7f7ef; }
.jc-chip[aria-pressed="true"]::before { content: "＋ "; color: #0f8a72; }
.jc-chip.del[aria-pressed="true"]::before { content: "－ "; }
.jc-chip.bad[aria-pressed="true"] { border-color: #f59e0b; background: #fff4dc; }
.jc-recv { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.jc-recv .jc-phone { min-height: 120px; }
.jc-recv .jc-cover { top: 44px; }

/* spread */
.jc-net { max-width: 460px; margin: 6px auto 0; }
.jc-netsvg { width: 100%; height: auto; display: block; background: #f8fafc; border-radius: 14px; border: 1px solid #e5e7eb; }
.jc-cnt { text-align: center; font-size: 1.05rem; margin: 4px 0; }
.jc-cnt b { color: #b45309; font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) { .jc-w .pulse, .jc-bub.pop { animation: none; } }
