/* センサー・API の部品（w-c3-gaibu.js） */
.w-c3-gaibu { background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 12px; margin: 8px 0 14px; }
.gb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.gb-lab { font-size: 0.88rem; font-weight: 700; color: var(--sub, #4b5563); min-width: 1.5em; }
.gb-chip { font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; min-height: 44px; padding: 4px 12px; border: 2px solid var(--line, #e2e8f0); background: #fff; border-radius: 999px; color: var(--sub, #4b5563); }
.gb-chip[aria-pressed="true"] { border-color: var(--blue, #2563eb); color: var(--blue-d, #1d4ed8); background: var(--blue-l, #eaf1ff); }
.gb-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.gb-b { font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; min-height: 44px; padding: 6px 14px; border-radius: 10px; border: 2px solid var(--line, #e2e8f0); background: #fff; color: var(--ink, #1f2937); }
.gb-b.main { border-color: var(--blue, #2563eb); background: var(--blue, #2563eb); color: #fff; }
.gb-msg { margin: 6px 0 0; padding: 8px 10px; background: #f8fafc; border-left: 4px solid var(--blue, #2563eb); border-radius: 6px; font-size: 0.95rem; }
.gb-nt { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; color: var(--sub, #4b5563); }
/* センサー */
.gb-flow { display: grid; grid-template-columns: 1fr auto 1.6fr auto 1fr; align-items: center; gap: 6px; }
@media (max-width: 600px) { .gb-flow { grid-template-columns: 1fr 1fr; } .gb-arrow { display: none; } .gb-node.prog { order: 3; grid-column: 1 / -1; } }
.gb-arrow { font-size: 1.4rem; color: #94a3b8; text-align: center; }
.gb-node { border: 2px solid #cbd5e1; border-radius: 12px; padding: 8px; background: #f8fafc; min-width: 0; }
.gb-node.prog { border-color: #2563eb; background: #fff; }
.gb-sky { border-radius: 10px; height: 64px; display: flex; align-items: center; justify-content: center; transition: background-color .3s; }
.gb-big { font: 700 1.6rem/1 var(--mono, monospace); color: #1f2937; background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 8px; }
.gb-code { list-style: none; margin: 0; padding: 0; font: 0.9rem/1.55 var(--mono, monospace); white-space: pre-wrap; word-break: break-all; }
.gb-code li { padding: 1px 6px; border-radius: 4px; border-left: 4px solid transparent; }
.gb-code li.yes { background: #eaf1ff; border-left-color: #2563eb; }
.gb-code li.yes::after { content: "　← 真"; color: #1d4ed8; font-weight: 700; font-family: inherit; }
.gb-code li.go { background: #eaf1ff; border-left-color: #2563eb; }
.gb-code li.no::after { content: "　← 偽"; color: #64748b; font-weight: 700; }
.gb-code li.run { background: #fff4dc; border-left-color: #f59e0b; font-weight: 700; color: #b45309; }
.gb-lamp { height: 64px; border-radius: 10px; border: 2px dashed #94a3b8; display: flex; align-items: center; justify-content: center; background: #fff; transition: background-color .3s; }
.gb-lamp b { font-size: 1.15rem; color: #4b5563; }
.gb-lamp.on { background: #fde68a; border: 3px solid #f59e0b; box-shadow: 0 0 18px rgba(245,158,11,.6); }
.gb-lamp.on b { color: #b45309; }
.gb-ctl { display: grid; gap: 6px; margin: 10px 0 0; }
.gb-range { display: grid; gap: 2px; font-size: 0.88rem; color: var(--sub, #4b5563); }
.gb-range input { width: 100%; min-height: 44px; accent-color: #2563eb; }
.gb-logwrap { max-height: 220px; overflow: auto; }
.gb-log { border-collapse: collapse; margin: 6px auto 0; font-size: 0.92rem; }
.gb-log th, .gb-log td { border: 1px solid #cbd5e1; padding: 4px 12px; text-align: center; }
.gb-log th { background: #f1f5f9; }
.gb-log td { font-family: var(--mono, monospace); }
.gb-log tr.on td { background: #fff4dc; color: #b45309; font-weight: 700; }
/* API */
.gb-lane { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: stretch; }
@media (max-width: 600px) { .gb-lane { grid-template-columns: 1fr; } }
.gb-end { border: 2px solid #2563eb; border-radius: 12px; background: #eaf1ff; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 7em; }
.gb-end.srv { border-color: #0f8a72; background: #e7f7ef; }
.gb-end small { color: var(--sub, #4b5563); }
.gb-mid { display: grid; gap: 6px; min-width: 0; }
.gb-msgbox { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 6px 8px; background: #fff; opacity: .55; transition: opacity .3s, border-color .3s; min-width: 0; }
.gb-msgbox.go { opacity: 1; border-style: solid; }
.gb-msgbox.req.go { border-color: #2563eb; }
.gb-msgbox.res.go { border-color: #0f8a72; }
.gb-mt { margin: 0 0 2px; font-size: 0.82rem; font-weight: 700; color: var(--sub, #4b5563); }
.gb-url { display: block; font: 0.85rem/1.4 var(--mono, monospace); word-break: break-all; color: #1d4ed8; }
.gb-json { margin: 0; font: 0.85rem/1.45 var(--mono, monospace); white-space: pre-wrap; word-break: break-all; color: #1f2937; }
.gb-prog { margin-top: 8px; border: 2px solid #cbd5e1; border-radius: 12px; padding: 8px; }
@media (prefers-reduced-motion: reduce) {
  .gb-sky, .gb-lamp, .gb-msgbox { transition: none; }
}
