/* area（面積・体積）の部品。高さ＝オレンジ、底辺・1にあたる量＝青（DESIGN §0.5 の色の約束） */
.ar-guess { margin-bottom: 8px; }
.ar-ask { font-weight: 700; margin: 0 0 8px; }
.ar-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-g { min-height: 48px; padding: 4px 16px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 12px; font-weight: 700; color: var(--ink, #1f2937); }
.ar-g:disabled { opacity: .45; cursor: default; }
.ar-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.ar-svg { width: 100%; height: auto; display: block; margin: 4px 0; touch-action: manipulation; }
.ar-acts { display: flex; justify-content: center; margin: 4px 0 10px; }
.ar-go { min-height: 52px; padding: 6px 22px; border: 0; border-radius: 14px; background: var(--teal-d, #0f8a72); color: #fff; font-weight: 700; font-size: 1.05rem; }
.ar-go.back { background: #fff; color: var(--ink, #1f2937); border: 2px solid var(--line, #e5e7eb); }
.ar-go:disabled { background: #9ca3af; color: #fff; }
.ar-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.ar-read p { margin: 4px 0; }
.ar-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.ar-note { font-size: .9rem; color: var(--sub, #4b5563); }
.ar-o { color: #9a4a06; font-weight: 700; }
.ar-bl { color: #1d4ed8; } .ar-or { color: #b45309; }
.ar-ns, .ar-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ar-ns:empty { display: none; }
.ar-ns button { min-height: 44px; padding: 4px 14px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; font-weight: 700; color: var(--ink, #1f2937); }
.ar-ns button[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.ar-dim { display: flex; align-items: center; gap: 6px; background: #f6f7f4; border-radius: 12px; padding: 4px 6px 4px 12px; }
.ar-dl { font-size: .9rem; font-weight: 700; }
.ar-dim button { width: 44px; height: 44px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 50%; font-size: 1.2rem; font-weight: 700; color: var(--ink, #1f2937); line-height: 1; padding: 0; }
.ar-dim button:disabled { opacity: .35; }
.ar-dv { min-width: 2.6em; text-align: center; }
.ar-dv:empty { display: none; }
/* SVG */
.ar-grid { stroke: #d6dde6; stroke-width: 1; }
.ar-cell { fill: #dbe7ff; stroke: #93b4f5; stroke-width: 1; }
.ar-per { fill: none; stroke: var(--orange, #f59e0b); stroke-width: 5; stroke-linejoin: round; }
.ar-num { font-weight: 700; fill: #1e3a8a; }
.ar-shape { fill: #cfe0ff; stroke: #1f2937; stroke-width: 2.5; stroke-linejoin: round; }
.ar-copy { fill: #ffe2b0; stroke: #9a4a06; stroke-width: 2.5; stroke-linejoin: round; opacity: .92; }
.ar-corner { fill: #ffe2b0; stroke: #9a4a06; stroke-width: 2; stroke-dasharray: 6 4; opacity: .9; }
.ar-ghost { fill: none; stroke: #6b7280; stroke-width: 2; stroke-dasharray: 7 5; }
.ar-base { stroke: #2563eb; stroke-width: 6; stroke-linecap: round; }
.ar-top { stroke: #60a5fa; }
.ar-h { stroke: var(--orange, #f59e0b); stroke-width: 4; stroke-dasharray: 9 5; }
.ar-ext { stroke: #6b7280; stroke-width: 2.5; stroke-dasharray: 4 5; }
.ar-ra { fill: none; stroke: #9a4a06; stroke-width: 2; }
.ar-lb { font-size: 22px; font-weight: 700; fill: #1f2937; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.ar-b { fill: #1d4ed8; } .ar-b2 { fill: #2b6cd8; } .ar-hh, .ar-o2 { fill: #9a4a06; } .ar-sl { fill: #6b7280; }
.ar-s0 { fill: #cfe0ff; stroke: #1f2937; stroke-width: 1.5; stroke-linejoin: round; }
.ar-s1 { fill: #fff; stroke: #1f2937; stroke-width: 1.5; stroke-linejoin: round; }
.ar-arc { fill: none; stroke: var(--orange, #f59e0b); stroke-width: 5; }
.ar-brace { fill: none; stroke: var(--orange, #f59e0b); stroke-width: 3; }
.ar-L0 .t { fill: #bcd3ff; } .ar-L0 .l { fill: #7ea6f2; } .ar-L0 .r { fill: #4f7fdb; }
.ar-L1 .t { fill: #eef0f3; } .ar-L1 .l { fill: #c9ced6; } .ar-L1 .r { fill: #a7aeb9; }
[class^="ar-L"] polygon { stroke: #1f2937; stroke-width: 1.2; stroke-linejoin: round; }
/* 動き：ボタンを おした時だけ、短く */
.ar-piece, .ar-copy, .ar-corner, .ar-sec, [class^="ar-L"] { transition: transform .7s ease-in-out; transform-box: view-box; }
.ar-late { animation: ar-in .3s .7s both; }
.ar-pop { animation: ar-in .2s both; }
@keyframes ar-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ar-piece, .ar-copy, .ar-corner, .ar-sec, [class^="ar-L"] { transition: none !important; }
  .ar-late, .ar-pop { animation: none !important; }
}
.ar-shape.ar-piece { fill: #ffe2b0; stroke: #9a4a06; }
.ar-res.ng { color: #c2410c; }
/* zoom（大きな面積の単位） */
.ar-zsq { cursor: pointer; outline: none; }
.ar-zsq:focus-visible .ar-zout { stroke: #2563eb; stroke-width: 6; }
.ar-zbg { fill: #eef3ff; }
.ar-zall { fill: #cfe0ff; }
.ar-zalt { fill: #b9d0fb; }
.ar-zrow { fill: var(--orange, #f59e0b); fill-opacity: .85; }
.ar-zg { stroke: #6b8fd6; stroke-width: .6; }
.ar-zout { fill: none; stroke: #1f2937; stroke-width: 3; }
.ar-zc { fill: #ffe2b0; stroke: #9a4a06; stroke-width: 2; }
.ar-zcon { fill: none; stroke: #9a4a06; stroke-width: 2; stroke-dasharray: 6 5; }
.ar-zbr { fill: none; stroke: #1d4ed8; stroke-width: 3; }
.ar-big { font-size: 1.25rem; font-weight: 700; text-align: center; color: var(--ink, #1f2937); }
.ar-zt { pointer-events: none; }
