/* モバイル通信の仕組み。style.css・flow.css・fm.css の上に重ねる（接頭辞 mo-） */
.mo-lead { margin: 0 0 10px; font-size: 13px; color: var(--ink2); max-width: 54em; }
.mo-lead code, .mo-panel code, .mo-idout code, .mo-logout code { font: 600 12px var(--latin); background: var(--line2); border-radius: 5px; padding: 0 5px; }
.mo-lab { margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mo-small { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.mo-k { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--muted); }
.mo-panel { padding: 14px 16px; min-width: 0; position: sticky; top: 12px; }
.mo-panel h3 { margin: 6px 0 6px; font-size: 17px; }
.mo-panel > p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink2); }
.mo-dl { margin: 6px 0 0; display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.mo-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.mo-dl dd { margin: 0; color: var(--ink2); }
.mo-judge { margin: 8px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.mo-judge.ok { background: #f0fdf4; color: #14532d; }
.mo-judge.ng { background: #fef2f2; color: #7f1d1d; }
.mo-judge.mid { background: #fffbeb; color: #78350f; }
.mo-why { margin: 6px 0 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 2px; }
.mo-wide { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.mo-wide input { font: 500 15px var(--latin); color: var(--ink); background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 6px 9px; min-width: 0; width: 100%; }
.mo-nav { display: flex; gap: 6px; margin-top: 12px; }
.mo-nav button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.mo-nav button[disabled] { color: #94a3b8; cursor: default; }
.mo-chip { display: inline-block; font: 600 11.5px var(--latin); border-radius: 6px; padding: 1px 7px; background: var(--line2); color: var(--ink2); margin: 0 4px 4px 0; }
.mo-chip.c4 { background: #e0f2fe; color: #075985; }
.mo-chip.c5 { background: #ede9fe; color: #5b21b6; }
.mo-app { margin: 10px 0 0; font-size: 12.5px; color: var(--ink2); background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 7px 10px; }
.mo-app b { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* 全体の図 */
.mo-gennote { margin: 8px 0 10px; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; max-width: 70em; }
.mo-mapwrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 14px; align-items: start; }
.mo-map { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) minmax(0, 2fr) minmax(0, .9fr); gap: 10px 22px; align-items: stretch; }
.mo-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.mo-col + .mo-col::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-weight: 700; }
.mo-colh { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.mo-colbody { display: flex; flex-direction: column; gap: 8px; justify-content: center; flex: 1; background: #f8fafc; border: 1px solid var(--line2); border-radius: 12px; padding: 8px; }
.mo-core { display: grid; gap: 8px; }
.mo-row { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; align-items: center; }
.mo-rowh { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.mo-rowbody { display: flex; flex-wrap: wrap; gap: 6px; }
.mo-rowbody .mo-node { flex: 1 1 7.5em; }
.mo-node { appearance: none; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 10px; color: var(--ink); min-width: 0; }
.mo-node b { font-size: 13.5px; font-weight: 700; }
.mo-node small { font-size: 11px; color: var(--muted); }
.mo-node:hover { border-color: #94a3b8; }
.mo-node[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.mo-node[aria-pressed="true"] small { color: #cbd5e1; }
.mo-node.hit { box-shadow: 0 0 0 2px #0d9488 inset; }
.mo-cmp th:first-child { white-space: nowrap; }
.mo-cmp td { font-size: 13px; }
.mo-mvno { margin: 10px 0 0; font-size: 12.5px; color: #134e4a; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 8px; padding: 7px 10px; }
.mo-mvno b { font-size: 12px; margin-right: 4px; }
#moMapNotes { margin-top: 10px; }

/* 1 歩ずつ */
.mo-flow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; margin-top: 10px; }
.mo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mo-step { appearance: none; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.mo-step:hover { border-color: #94a3b8; }
.mo-step.on { border-color: #0d9488; background: #f0fdfa; }
.mo-sn { width: 26px; height: 26px; border-radius: 50%; background: var(--line2); color: var(--ink2); font: 600 12.5px/26px var(--latin); text-align: center; display: inline-block; flex: none; }
.mo-step.on .mo-sn, .mo-k .mo-sn { background: #0d9488; color: #fff; }
.mo-st { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.mo-st b { font-size: 14px; }
.mo-st small { font-size: 12px; color: var(--muted); }

/* 番号と識別子 */
.mo-idt td, .mo-idt th { font-size: 12.5px; }
.mo-idt tbody th { white-space: nowrap; }
.mo-idbox { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; align-items: start; margin: 10px 0 12px; }
.mo-idin, .mo-idout, .mo-acin, .mo-acout { padding: 12px 14px; min-width: 0; }
.mo-scheme { margin-top: 10px; }
.mo-scheme[hidden] { display: none; }
.mo-segs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.mo-seg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 8px; padding: 5px 8px; background: var(--line2); min-width: 0; }
.mo-seg code { font: 600 16px/1.3 var(--latin); background: none !important; padding: 0 !important; overflow-wrap: anywhere; word-break: break-all; }
.mo-seg small { font-size: 11px; font-weight: 700; color: var(--muted); }
.mo-seg.s1 { background: #e0f2fe; }
.mo-seg.s2 { background: #ede9fe; }
.mo-seg.s3 { background: #fef3c7; }
.mo-seg.s4 { background: #dcfce7; }
.mo-seg.s5 { background: #fee2e2; }
.mo-seg.hide { background: #0f172a; }
.mo-seg.hide code { color: #e2e8f0; }
.mo-seg.hide small { color: #cbd5e1; }

/* 電波 */
.mo-radiobox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 12px; align-items: start; margin-top: 10px; }
.mo-scene, .mo-bandinfo { padding: 12px 14px; min-width: 0; }
.mo-scene h3, .mo-bandinfo h3 { margin: 0 0 8px; font-size: 14px; }
.mo-place { display: grid; grid-template-columns: minmax(0, 1fr) 9.5em; gap: 4px 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.mo-place:last-child { border-bottom: 0; }
.mo-place b { font-size: 13.5px; }
.mo-place small { display: block; font-size: 11.5px; color: var(--muted); }
.mo-place p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink2); }
.mo-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.mo-meter i { height: 10px; border-radius: 3px; background: #e2e8f0; }
.mo-meter.r1 i:nth-child(-n+1), .mo-meter.r2 i:nth-child(-n+2), .mo-meter.r3 i:nth-child(-n+3) { background: #0d9488; }
.mo-meter span { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.mo-wbar { height: 14px; border-radius: 6px; background: #e2e8f0; margin: 6px 0 2px; overflow: hidden; }
.mo-wbar i { display: block; height: 100%; background: #5eead4; }

/* 3G の年表 */
.mo-time { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.mo-time li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 12px; align-items: baseline; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.mo-time b { font: 600 13px var(--latin); }
.mo-time span { font-size: 13px; color: var(--ink2); }
.mo-time .srcl { grid-column: 2; margin: 0; }

/* 5G */
.mo-claims td, .mo-claims th { font-size: 12.5px; }
.mo-claims tbody th { white-space: nowrap; }
.mo-quiz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mo-q { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.mo-q > p:first-child { margin: 0; font-size: 13.5px; color: var(--ink); }
.mo-q.ok { border-color: #86efac; }
.mo-q.ng { border-color: #fca5a5; }
.mo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mo-two button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 8px; color: var(--ink2); }
.mo-two button:hover { border-color: #94a3b8; }
.mo-two button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.mo-fb { margin: 0; font-size: 12.5px; border-radius: 8px; padding: 6px 10px; background: var(--line2); color: var(--ink2); }
.mo-q.ok .mo-fb { background: #f0fdf4; color: #14532d; }
.mo-q.ng .mo-fb { background: #fef2f2; color: #7f1d1d; }
.mo-fb .srcl { margin-top: 4px; }
.mo-score { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ink2); }

/* eSIM */
.mo-states { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mo-stbtn { appearance: none; font: inherit; text-align: left; cursor: pointer; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 5px 9px; color: var(--ink2); display: flex; flex-direction: column; }
.mo-stbtn small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.mo-stbtn:hover { border-color: #94a3b8; }
.mo-stbtn.done { border-color: #99f6e4; background: #f0fdfa; }
.mo-stbtn.now { background: #0f172a; border-color: #0f172a; color: #fff; }
.mo-stbtn.now small { color: #cbd5e1; }
.mo-acbox { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; margin: 10px 0 12px; }
.mo-cases { display: grid; gap: 6px; }
.mo-case { appearance: none; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 10px; color: var(--ink); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mo-case code { font: 600 11.5px var(--latin); overflow-wrap: anywhere; word-break: break-all; }
.mo-case small { font-size: 11.5px; color: var(--muted); }
.mo-case:hover { border-color: #94a3b8; }
.mo-case[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.mo-case[aria-pressed="true"] small { color: #cbd5e1; }

/* アプリから見た通信 */
.mo-rule { margin: 8px 0; font-size: 13px; color: var(--ink2); }
.mo-ev td, .mo-ev th { font-size: 12.5px; }
.mo-ev code { font: 600 11.5px var(--latin); }
.mo-ev tr.blk td { background: #fef2f2; }
.mo-ev tr.chl td { background: #fffbeb; }
.mo-ev tr.atk td:nth-child(2) { color: #7f1d1d; }
.mo-tag { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.mo-tag.pass { background: #dcfce7; color: #14532d; }
.mo-tag.blk { background: #fee2e2; color: #7f1d1d; }
.mo-tag.chl { background: #fef3c7; color: #78350f; }
.mo-tag.fail { background: var(--line2); color: var(--ink2); }
.mo-sum { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mo-sum > div { background: #f8fafc; border-radius: 8px; padding: 6px 9px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mo-sum small { font-size: 11px; font-weight: 700; color: var(--muted); }
.mo-sum b { font: 600 15px var(--latin); }
.mo-logout { padding: 12px 14px; margin: 10px 0 12px; }
.mo-logline { margin: 6px 0; font: 600 13px/1.5 var(--latin); background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; word-break: break-all; }

/* データの形 */
.mo-tbl dl { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; font-size: 12.5px; }
.mo-tbl dt { font: 600 12px var(--latin); color: var(--ink); overflow-wrap: anywhere; }
.mo-tbl dd { margin: 0; color: var(--ink2); }
#moDataNotes, #moAppNotes { margin-top: 10px; }

.mo-node:focus-visible, .mo-step:focus-visible, .mo-stbtn:focus-visible, .mo-nav button:focus-visible, .mo-two button:focus-visible, .mo-case:focus-visible, .mo-wide input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .mo-mapwrap, .mo-flow, .mo-idbox, .mo-radiobox, .mo-acbox { grid-template-columns: minmax(0, 1fr); }
  .mo-panel { position: static; }
}
@media (max-width: 760px) {
  .mo-map { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mo-col + .mo-col::before { content: "↓"; left: 50%; top: -18px; transform: translateX(-50%); }
  .mo-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mo-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mo-dl dd { margin-bottom: 6px; }
  .mo-quiz { grid-template-columns: minmax(0, 1fr); }
  .mo-time li { grid-template-columns: minmax(0, 1fr); }
  .mo-time .srcl { grid-column: 1; }
  .mo-sum { grid-template-columns: minmax(0, 1fr); }
  .mo-place { grid-template-columns: minmax(0, 1fr) 8.5em; }
  .mo-cmp th:first-child { white-space: normal; }
  .mo-seg code { font-size: 14px; }
  .mo-idt { min-width: 680px; }
  .mo-idt tbody th { white-space: normal; min-width: 6.5em; }
  .mo-idt thead th .hint { display: block; width: max-content; margin: 2px 0 0; }
}
