/* sci-pendulum（ふりこ）。おもり＝金（S-041）、正かい＝みどり・ちがう＝赤。字は 16px 以上 */
.pd { font-size: 1.05rem; }
.pd [hidden] { display: none !important; }
.pd-q { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.pd-ask { font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; }
.pd-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-b { min-height: 50px; min-width: 50px; padding: 4px 16px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 12px; font-weight: 700; font-size: 1.05rem; color: var(--ink, #1f2937); cursor: pointer; font-family: inherit; }
.pd-b:disabled { opacity: .45; cursor: default; }
.pd-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.pd-g.right { opacity: 1; background: var(--teal-l, #e8f8f4); border-color: var(--teal-d, #0f8a72); }
.pd-g.right::before { content: "○ "; color: var(--teal-d, #0f8a72); }
.pd-g.wrong { opacity: 1; border-color: #dc2626; }
.pd-g.wrong::before { content: "× "; color: #dc2626; }
.pd-fig { position: relative; max-width: 560px; margin: 4px auto; }
.pd-svg { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; touch-action: manipulation; border-radius: 14px; background: radial-gradient(ellipse at 50% 30%, #fbfdff 0%, #eef3f8 100%); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.pd-info { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 6px 0; }
.pd-info:empty { display: none; }
.pd-watch { display: inline-flex; align-items: baseline; gap: 6px; background: linear-gradient(180deg, #3a4651, #1f2830); color: #b9f5d8; border-radius: 14px; padding: 6px 18px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 2px 0 #0b1015; border: 3px solid #8fa3ae; }
.pd-wd { font: 800 2rem/1.1 "DejaVu Sans Mono", ui-monospace, monospace; letter-spacing: 1px; min-width: 4.2em; text-align: right; }
.pd-wu { font-weight: 700; font-size: 1rem; color: #e5f7ee; }
.pd-cnt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pd-cl { font-weight: 700; margin-right: 4px; color: var(--sub, #4b5563); }
.pd-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d6c08f; color: #9a8558; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.pd-dot.on { background: radial-gradient(circle at 35% 30%, #fff6cf, #f8d46f 40%, #c9922f); border-color: #895322; color: #4a2c0b; }
.pd-cnt2 { font-weight: 800; font-size: 1.1rem; display: flex; gap: 12px; align-items: baseline; }
.pd-ca { color: #0e7490; } .pd-cb { color: #c2410c; }
.pd-ctl { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.pd-ctl:empty, .pd-acts:empty { display: none; }
.pd-ctlh { margin: 0; font-weight: 800; color: #c2410c; }
.pd-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 12px; padding: 4px 6px; border: 2px solid transparent; }
.pd-seg.diff { border-color: #f59e0b; background: #fff8e6; }
.pd-sl { font-weight: 700; color: var(--sub, #4b5563); min-width: 4.6em; }
.pd-tab { min-height: 46px; padding: 2px 14px; border-radius: 999px; border-color: var(--line, #d1d5db); position: relative; }
.pd-tab[aria-pressed="true"] { background: #c2410c; color: #fff; border-color: #c2410c; }
.pd-tab.isa::after { content: "あ"; position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #0e7490; color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.pd-ff { align-self: center; }
.pd-ff[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; }
.pd-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 10px; }
.pd-go { border: 0; background: var(--teal-d, #0f8a72); color: #fff; box-shadow: 0 3px 0 #0a6553; }
.pd-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }
.pd-stop { border: 0; background: #dc2626; color: #fff; box-shadow: 0 3px 0 #991b1b; min-width: 120px; }
.pd-stop:disabled { background: #9ca3af; box-shadow: none; }
.pd-out { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 40px; }
.pd-out:empty { display: none; }
.pd-out p { margin: 6px 0; }
.pd-ask2 { font-weight: 800; font-size: 1.12rem; }
.pd-note { font-size: 1rem; color: var(--sub, #4b5563); }
.pd-ok { font-weight: 800; color: var(--teal-d, #0f8a72); }
.pd-ng { font-weight: 800; color: #c2410c; }
.pd-warn { background: #fee2e2; border: 3px solid #dc2626; color: #991b1b; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.pd-big { font-size: 1.2rem; font-weight: 800; }
.pd-eq { font-weight: 700; background: #fff; border-radius: 8px; padding: 4px 10px; }
.pd-sum { background: #fff; border-left: 5px solid var(--teal-d, #0f8a72); padding: 6px 10px; font-weight: 700; }
.pd-tb { border-collapse: collapse; margin: 6px 0; background: #fff; font-size: 1rem; }
.pd-tb th, .pd-tb td { border: 1px solid #cbd5e1; padding: 4px 8px; text-align: center; }
.pd-tb th { background: #eef2f7; font-weight: 700; }
.pd-chg { color: #c2410c; font-weight: 800; }
/* SVG */
.pd-ol { stroke: #333; stroke-width: 2.2; stroke-linejoin: round; }
.pd-ol1 { stroke: #333; stroke-width: 1.2; }
.pd-arc { fill: none; stroke: #5b8794; stroke-width: 1.8; stroke-dasharray: 5 5; }
.pd-vert { stroke: #94a3b8; stroke-width: 1.4; stroke-dasharray: 3 4; }
.pd-ang { fill: none; stroke: #f59e0b; stroke-width: 2.4; }
.pd-angt { font-size: 15px; font-weight: 800; fill: #b45309; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.pd-lt { font-size: 15px; font-weight: 800; fill: #475569; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.pd-tr1 { stroke: #f59e0b; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.pd-tr2 { stroke: #0f8a72; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.pd-bd1 { fill: #f59e0b; stroke: #fff; stroke-width: 2.5; }
.pd-bd2 { fill: #0f8a72; stroke: #fff; stroke-width: 2.5; }
.pd-bdt { font-size: 16px; font-weight: 800; fill: #fff; }
.pd-taga { fill: #0e7490; stroke: #fff; stroke-width: 2; }
.pd-tagi { fill: #c2410c; stroke: #fff; stroke-width: 2; }
.pd-tagt { font-size: 15px; font-weight: 800; fill: #fff; }
