/* アイドール東京 来場まとめ（非公式・公開版 v3）。スマホ優先・押す所は大きく。 */
:root { --ink: #17274e; --ink2: #1d3776; --sub: #3c4a68; --line: #cfdcf3; --line2: #a9b8d6; --blue: #2d52a9; --bg: #f6f9ff; --ok: #2f8a46; --p1: #d6336c; --warn: #8a5300; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; line-break: strict; word-break: auto-phrase; }
a { color: var(--blue); }
button, select, input, textarea { font: inherit; font-size: max(16px, 1rem); }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { max-width: 960px; margin: 0 auto; padding: 0.5rem 0.8rem 0.1rem; }
.brand h1 { font-size: 1.1rem; margin: 0; }
.meta { margin: 0; color: var(--sub); font-size: 0.85rem; }
.unoff { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--warn); font-weight: 700; }
.tabs { max-width: 960px; margin: 0 auto; display: flex; gap: 0.3rem; padding: 0.3rem 0.5rem 0.5rem; }
.tabs button { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--ink2); white-space: nowrap; padding: 0 0.15rem; cursor: pointer; font-size: max(14px, 0.85rem); }
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
main { max-width: 960px; margin: 0 auto; padding: 0.5rem 0.8rem 1rem; }
.panel[hidden] { display: none; }
.ph { font-size: 1.2rem; margin: 0.4rem 0; }
.muted { color: var(--sub); }
.small { font-size: 0.85rem; }
.note { color: var(--ink2); min-height: 1.4em; }
.center { justify-content: center; }
.nw { display: inline-block; }
.progress { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.progress strong { font-size: 1.5rem; color: var(--blue); }
.localnote { display: inline-block; margin: 0 0 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: #eaf5ec; color: #1f6a34; border: 1px solid #9fd1a8; font-size: 0.85rem; font-weight: 700; }
.tools { display: grid; gap: 0.5rem; margin-bottom: 0.6rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.3rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.f { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--ink2); cursor: pointer; white-space: nowrap; padding-inline: 0.6rem; }
.f[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
button { min-height: 44px; border-radius: 8px; border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 0 0.8rem; cursor: pointer; }
button.ghost { background: #fff; color: var(--ink2); border-color: var(--line2); }
button.danger { background: #fff; color: #b42318; border-color: #f0a8a0; }
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
input[type="search"], input[type="text"], select { min-height: 44px; border: 1px solid var(--line2); border-radius: 8px; padding: 0.4rem 0.6rem; background: #fff; color: var(--ink); }
input[type="search"] { width: 100%; }
input[type="text"] { flex: 1; min-width: 0; }
select { width: auto; max-width: 100%; }
.chk { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; white-space: nowrap; }
.chk input { width: 1.2rem; height: 1.2rem; }
/* 一覧 */
.dlist, .want { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.di, .wi { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0.55rem 0.7rem; }
.di.on { background: #fff7fa; border-color: #efb3c8; }
.wi.done { background: #eef7f0; border-color: #9fd1a8; }
.drow { display: flex; gap: 0.6rem; align-items: flex-start; }
.dmain { flex: 1; min-width: 0; }
.space { font-size: 0.9rem; color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.name { font-weight: 700; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.kana { font-size: 0.78rem; color: var(--sub); word-break: keep-all; overflow-wrap: anywhere; }
.gchip { display: inline-block; font-size: 0.78rem; border-radius: 999px; padding: 0 0.5rem; border: 1px solid rgba(23,39,78,0.25); color: var(--ink); white-space: nowrap; margin-right: 0.3rem; }
.kchip { display: inline-block; font-size: 0.78rem; border-radius: 6px; padding: 0 0.4rem; background: #e9eef8; color: var(--ink2); white-space: nowrap; margin-right: 0.3rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.lk { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 48px; padding: 0 0.6rem; border-radius: 8px; border: 1px solid var(--line2); color: var(--ink2); text-decoration: none; background: #fff; white-space: nowrap; font-size: 0.85rem; }
.act { display: flex; flex-direction: column; gap: 0.3rem; flex: none; }
.act button { min-width: 84px; white-space: nowrap; }
.act button[aria-pressed="true"] { background: var(--p1); border-color: var(--p1); }
.wi .wtop { display: flex; gap: 0.6rem; align-items: center; }
.ord { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--p1); color: #fff; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.wi.done .ord { background: var(--ok); }
.wbar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; align-items: center; }
.wbar button { min-width: 44px; padding: 0 0.6rem; }
.wbar .grow { flex: 1; }
.dangerbox { margin-top: 1.2rem; padding: 0.7rem; border: 1px solid #f0a8a0; border-radius: 12px; background: #fff8f7; }
.dangerbox h3 { margin: 0 0 0.3rem; font-size: 1rem; }
/* 地図 */
.unoffmap { margin: 0 0 0.4rem; padding: 0.4rem 0.6rem; background: #fff1d6; border: 1px solid #f0c674; border-radius: 8px; color: var(--warn); font-weight: 700; font-size: 0.9rem; }
.maptools { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.3rem 0; }
.zb { min-width: 52px; background: #fff; color: var(--ink2); border-color: var(--line2); }
.legend { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0.2rem 0 0.4rem; }
.lg::before { content: ""; display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; vertical-align: -0.1rem; margin-right: 0.3rem; }
.lg.mk::before { background: var(--p1); }
.lg.dn::before { background: var(--ok); }
.lg.sel::before { background: #fff; border: 3px solid #f2a900; }
.mapbox { position: relative; width: 100%; height: min(72vh, 640px); background: #fff; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; touch-action: none; user-select: none; cursor: grab; }
.mapbox.drag { cursor: grabbing; }
#mapsvg { width: 100%; height: 100%; display: block; }
#mapsvg .bk { stroke: #7d8aa8; stroke-width: 1; cursor: pointer; vector-effect: non-scaling-stroke; }
#mapsvg .bk.sel { stroke: #f2a900; stroke-width: 3; }
#mapsvg .bk.want { stroke: var(--p1); stroke-width: 2.5; }
#mapsvg .lab { font-size: var(--fs-num, 11px); fill: #17274e; pointer-events: none; display: none; text-anchor: middle; dominant-baseline: central; }
/* v3 では .z2 のときだけ（下の v3 の段） */
#mapsvg .frame { fill: #fbfcff; stroke: #a9b8d6; stroke-width: 2; vector-effect: non-scaling-stroke; }
#mapsvg .route { fill: none; stroke: #17274e; opacity: 0.7; pointer-events: none; }
#mapsvg .pin circle { fill: var(--p1); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
#mapsvg .pin.dn circle { fill: var(--ok); }
#mapsvg .pin text { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#mapsvg .pin { pointer-events: none; }
.pick { margin: 0.5rem 0; padding: 0.6rem 0.7rem; background: #fff; border: 2px solid #f2a900; border-radius: 12px; }
.pick .row { margin-bottom: 0; }
.gen { margin: 0.5rem 0; }
.gen summary { cursor: pointer; min-height: 36px; }
.gcol { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
/* チェック表 */
.cgroup { margin: 0.8rem 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.8rem 0.7rem; }
.cgroup h3 { margin: 0 0 0.3rem; font-size: 1.05rem; padding-left: 0.5rem; border-left: 5px solid var(--p1); }
.citems { list-style: none; margin: 0; padding: 0; }
.citems li { display: flex; align-items: center; gap: 0.3rem; border-bottom: 1px dashed var(--line); }
.citems label { flex: 1; display: flex; gap: 0.6rem; align-items: center; min-height: 44px; cursor: pointer; }
.citems input[type="checkbox"] { width: 1.4rem; height: 1.4rem; flex: none; }
.citems li.on label span { text-decoration: line-through; color: var(--sub); }
.citems button.ghost { min-height: 36px; }
.foot { max-width: 960px; margin: 0 auto; padding: 0.6rem 0.8rem 2rem; border-top: 1px solid var(--line); }
.foot p { margin: 0.3rem 0; }
@media (max-width: 480px) { .tabs { gap: 0.2rem; padding-inline: 0.3rem; } .act button { min-width: 72px; padding: 0 0.4rem; } }
/* 来場案内（私用ページの来場案内と同じ作り） */
.nw { display: inline-block; }
.guide .hero { background: linear-gradient(135deg, #2d52a9, #6b4fbb 60%, #d6336c); color: #fff; border-radius: 16px; padding: 1.1rem 1rem 0.9rem; margin-bottom: 0.9rem; }
.heroSub { margin: 0; font-size: 0.9rem; opacity: 0.9; letter-spacing: 0.05em; }
.heroTitle { margin: 0.1rem 0 0.3rem; font-size: 1.8rem; letter-spacing: 0.08em; }
.heroMeta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-weight: 700; }
.gnav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.gnav a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 0.3rem 0.8rem; min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 0.9rem; background: rgba(255,255,255,0.12); }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 0.9rem 0.7rem; margin-bottom: 0.9rem; box-shadow: 0 2px 8px rgba(23,39,78,0.06); scroll-margin-top: 0.5rem; }
.gcard h3 { margin: 0 0 0.6rem; font-size: 1.25rem; padding-left: 0.6rem; border-left: 6px solid var(--p1); }
.gh4 { margin: 0.9rem 0 0.4rem; font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 0.8rem; margin: 0.6rem 0; }
.kv dt { font-weight: 700; color: var(--ink2); white-space: nowrap; }
.kv dd { margin: 0; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 0.1rem; } .kv dd { margin-bottom: 0.45rem; } }
.tscroll { overflow-x: auto; }
.gt { width: 100%; border-collapse: collapse; margin: 0.4rem 0; font-size: 0.95rem; }
.gt th, .gt td { border-bottom: 1px solid var(--line); padding: 0.45rem 0.4rem; text-align: left; vertical-align: top; }
.gt thead th { background: #eef3fc; color: var(--ink2); white-space: nowrap; }
.gt td.num { font-weight: 700; white-space: nowrap; color: var(--ink); }
.gt tr.pre th, .gt tr.pre td { background: #fff4f7; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 6px; padding: 0 0.4rem; margin-right: 0.4rem; white-space: nowrap; }
.tag.un { background: #fff1d6; color: #8a5300; border: 1px solid #f0c674; }
.tag.mid { background: #e9eef8; color: var(--ink2); border: 1px solid var(--line2); }
.tl { list-style: none; margin: 0; padding: 0 0 0 0.2rem; position: relative; }
.tl::before { content: ""; position: absolute; left: 8.75rem; top: 0.4rem; bottom: 0.4rem; width: 3px; background: var(--line); }
.tl li { display: grid; grid-template-columns: 7.8rem 1fr; gap: 2.4rem; padding: 0.35rem 0; position: relative; }
.tl li::before { content: ""; position: absolute; left: 8.35rem; top: 0.75rem; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl li.pre::before { border-color: var(--p1); }
.tl li.main::before { background: var(--blue); }
.tlT { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-size: 0.95rem; }
.tlL { font-weight: 700; }
@media (max-width: 560px) {
  .tl { padding-left: 0; }
  .tl::before { left: 0.45rem; }
  .tl li { grid-template-columns: 1fr; gap: 0.1rem; padding-left: 1.7rem; }
  .tl li::before { left: 0; top: 0.5rem; }
  .tlT { text-align: left; font-size: 0.9rem; color: var(--sub, #3c4a68); }
}
.tlS { display: block; font-weight: 400; font-size: 0.85rem; color: var(--sub); }
.steps { list-style: none; margin: 0.2rem 0 0.6rem; padding: 0; display: grid; gap: 0.45rem; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.6rem; align-items: start; background: #f7f9ff; border-radius: 12px; padding: 0.5rem 0.6rem; }
.stN { width: 2rem; height: 2rem; border-radius: 50%; background: var(--p1); color: #fff; display: grid; place-items: center; font-weight: 700; }
.stL { font-weight: 700; }
.stS { display: block; font-weight: 400; font-size: 0.85rem; color: var(--sub); }
.ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ul li { padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.src { font-size: 0.82rem; color: var(--sub); margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; }
.src a { white-space: nowrap; }
.gcard { scroll-margin-top: 9.5rem; }
/* ---- v2 ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand .h1 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.brand .home { color: var(--ink); text-decoration: none; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; padding: 0 0.45rem; }
@media (max-width: 480px) { .tabs { gap: 0.15rem; padding-inline: 0.25rem; } .tabs button { flex: 1 1 auto; min-width: 0; font-size: 12.5px; padding: 0 0.2rem; } }
/* トップ */
.tophero { background: linear-gradient(135deg, #2d52a9, #6b4fbb 60%, #d6336c); color: #fff; border-radius: 16px; padding: 1.1rem 1rem 1rem; margin: 0.3rem 0 0.9rem; }
.topTitle { margin: 0 0 0.2rem; font-size: 1.6rem; letter-spacing: 0.04em; line-height: 1.3; }
.topEv { margin: 0; font-size: 1rem; font-weight: 700; opacity: 0.95; }
.topMeta { margin: 0.3rem 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; font-weight: 700; font-size: 1.05rem; }
.topUnoff { margin: 0; display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.6); border-radius: 8px; padding: 0.15rem 0.6rem; font-size: 0.85rem; }
.cards { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; justify-content: center; min-height: 76px; height: 100%; padding: 0.6rem 0.8rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--p1); border-radius: 12px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(23,39,78,0.06); }
.card:hover { border-color: var(--blue); }
.cT { font-weight: 700; font-size: 1.05rem; }
.cS { font-size: 0.82rem; color: var(--sub); }
.upd { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.8rem; font-size: 0.9rem; }
/* 一覧の分類見出し */
.cathead h3 { margin: 0.6rem 0 0; font-size: 1rem; padding-left: 0.5rem; border-left: 5px solid var(--blue); }
/* 図の切り替え */
.seg2 { display: flex; gap: 0.4rem; margin: 0.2rem 0 0.5rem; }
.boothgo input { max-width: 14rem; }
/* 会場図（自作） */
#mapsvg .bldg { fill: url(#wgr); stroke: #474f63; stroke-width: 2; vector-effect: non-scaling-stroke; }
#mapsvg .hall { fill: #ffffff; stroke: #c3cbe0; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#mapsvg .hall1 { fill: #f6f9ff; }
#mapsvg .hall2 { fill: #f5fbf7; }
#mapsvg .zone { fill: rgba(214,51,108,0.05); stroke: #d6336c; stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
#mapsvg .door { fill: #fffaf0; stroke: #e0b860; stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
#mapsvg .hlab { font-size: var(--fs-hall, 100px); font-weight: 700; fill: #c5cfe3; pointer-events: none; }
#mapsvg .atr { fill: #fdf2f6; stroke: #e7b3c7; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#mapsvg .alab { font-size: var(--fs-atr, 90px); font-weight: 700; fill: #b0285a; text-anchor: middle; pointer-events: none; }
#mapsvg .fac { fill: #e9eef8; stroke: #7d8aa8; stroke-width: 1; vector-effect: non-scaling-stroke; }
#mapsvg .flab { font-size: var(--fs-fac, 56px); fill: #3c4a68; text-anchor: middle; pointer-events: none; }
#mapsvg .wc rect { fill: #e3f0ff; stroke: #2d52a9; stroke-width: 1; vector-effect: non-scaling-stroke; }
#mapsvg .wc text { font-size: 36px; font-weight: 700; fill: #2d52a9; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#mapsvg .mlab { font-size: var(--fs-fac, 56px); font-weight: 700; fill: #17274e; text-anchor: middle; pointer-events: none; }
#mapsvg .bk.kf { stroke: #f2a900; stroke-width: 4; }
#mapsvg .bk:focus { outline: none; }
#mapsvg .q { stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
#mapsvg .q-ippan, #mapsvg .q-ippan2 { fill: rgba(45,82,169,0.22); stroke: #2d52a9; }
#mapsvg .q-desk { fill: #2d52a9; stroke: #17274e; }
#mapsvg .q-pre, #mapsvg .q-pre2, #mapsvg .q-prewait { fill: rgba(214,51,108,0.2); stroke: #d6336c; }
#mapsvg .q-staff { fill: rgba(120,120,120,0.15); stroke: #888; stroke-dasharray: 4 3; }
#mapsvg .qlab { font-size: 44px; font-weight: 700; fill: #17274e; text-anchor: middle; dominant-baseline: central; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 8px; }
#mapsvg .qlab.qv { writing-mode: vertical-rl; dominant-baseline: central; text-anchor: middle; letter-spacing: 4px; }
#mapsvg .qlab.qd { fill: #b0285a; }
#mapsvg .qn circle { fill: #2d52a9; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
#mapsvg .qn-pre circle, #mapsvg .qn-prewait circle { fill: #d6336c; }
#mapsvg .qn-atr circle { fill: #17274e; }
#mapsvg .qn text { fill: #fff; font-weight: 700; font-size: 16px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#mapsvg .qn { pointer-events: none; }
.lg.qi::before { background: #2d52a9; border-radius: 3px; }
.lg.qp::before { background: #d6336c; border-radius: 3px; opacity: 0.6; }
.lg.lr::before { background: #2d52a9; border-radius: 3px; height: 0.35rem; vertical-align: 0.15rem; }
.lg.ly::before { background: #0a8f6a; border-radius: 3px; height: 0.35rem; vertical-align: 0.15rem; }
.lg.li::before { background: repeating-linear-gradient(90deg, #c2185b 0 5px, transparent 5px 9px); border-radius: 0; height: 0.25rem; vertical-align: 0.2rem; }
/* 待機列 */
.qbox { margin: 0.9rem 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem 0.9rem; scroll-margin-top: 7rem; }
.qbox h3 { margin: 0 0 0.5rem; font-size: 1.2rem; padding-left: 0.6rem; border-left: 6px solid var(--p1); }
.qcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 640px) { .qcols { grid-template-columns: 1fr; } }
.qh { margin: 0.6rem 0 0.3rem; font-size: 1rem; }
.qh.qi { color: #2d52a9; }
.qh.qp { color: #b0285a; }
.qsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.qsteps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.5rem; align-items: start; background: #f7f9ff; border-radius: 12px; padding: 0.45rem 0.6rem; }
.qno { width: 2rem; height: 2rem; border-radius: 50%; background: #2d52a9; color: #fff; display: grid; place-items: center; font-weight: 700; }
#qPre .qno { background: var(--p1); }
#qCommon .qno { background: #17274e; }
.qt { font-weight: 700; }
.qs { display: block; font-weight: 400; font-size: 0.85rem; color: var(--sub); }
/* 全体図 */
#area { scroll-margin-top: 7rem; }
.mapbox.area { background: #f4f2ec; }
.areainner, .areainner svg { width: 100%; height: 100%; display: block; }
#a-venue { cursor: pointer; }
#a-venue:focus { outline: none; }
#a-venue:focus-visible .a-hall, #a-venue:focus .a-hall { stroke: #f2a900; stroke-width: 6; }
.a-acc { fill: rgba(26,115,232,0.15); stroke: rgba(26,115,232,0.6); stroke-width: 1.5; }
.a-dot circle { fill: #1a73e8; stroke: #fff; stroke-width: 3; }
.a-herel { font-size: 15px; font-weight: 700; fill: #1a73e8; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.srclist { margin: 0.8rem 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.8rem; }
.srclist summary { cursor: pointer; min-height: 36px; font-weight: 700; }
/* ポップアップ */
.popback { position: fixed; inset: 0; background: rgba(23,39,78,0.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0.6rem; }
.popback[hidden] { display: none; }
.pop { width: min(460px, 100%); max-height: 85vh; overflow: auto; background: #fff; border-radius: 16px; padding: 0.8rem 0.9rem 0.9rem; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
@media (min-width: 700px) { .popback { align-items: center; } }
.pop p { margin: 0.25rem 0; }
.popHead { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.popHead .space { font-size: 1.3rem; font-weight: 700; color: var(--p1); }
.pop .name { font-size: 1.2rem; }
#popWant { flex: 1; }
/* 全体図（area.svg） */
.a-bg{fill:#f4f2ec}
.a-water{fill:#bcd7ef}
.a-park{fill:#d7ebcf}
.a-road{fill:none;stroke:#fff;stroke-width:6}
.a-foot{fill:none;stroke:#d8c7cf;stroke-width:1.2}
.a-rail{fill:none;stroke:#777;stroke-width:2.5}
.a-bld{fill:#d9d4cb;stroke:#b0a99c}
.a-hall{fill:#f6c8d8;stroke:#c2185b;stroke-width:3}
.a-lab{font-size:13px;fill:#444;text-anchor:middle}
.a-lab2{font-size:13px;font-weight:700;fill:#17274e}
.a-route polyline{fill:none;stroke:#2d52a9;stroke-width:6;stroke-linejoin:round;opacity:.85}
.r-yuri polyline{stroke:#0a8f6a}
.a-inner polyline{fill:none;stroke:#c2185b;stroke-width:4;stroke-dasharray:8 6}
.a-pt circle{fill:#c2185b;stroke:#fff;stroke-width:3}
.a-ent circle{fill:#17274e}
.a-st circle{fill:#fff;stroke:#2d52a9;stroke-width:4}
.a-stl{font-size:15px;font-weight:700;fill:#17274e}
.a-min{font-size:14px;font-weight:700;fill:#c2185b}
.a-vlab{font-size:20px;font-weight:700;fill:#c2185b;text-anchor:middle}
.a-vlab2{font-size:13px;font-weight:700;fill:#c2185b;text-anchor:middle}
.a-osm{font-size:12px;text-anchor:end;fill:#333}

/* ---- v3 ---- */
/* 拡大の段：z2 で出展者ごとの配置番号、z3 で机ごとの番号 */
#mapsvg .lab, #mapsvg .dlab { display: none; }
#mapsvg.z2 .lab { display: block; }
#mapsvg.z3 .dlab { display: block; }
/* 最大拡大：配置番号と出展者名（2 行。机のまとまりの中） */
#mapsvg .names { pointer-events: none; }
#mapsvg .nm text { text-anchor: middle; dominant-baseline: central; fill: #17274e; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 0.8px; }
#mapsvg .nmno { font-weight: 700; }
#mapsvg .dlab { font-size: var(--fs-num, 8px); fill: #17274e; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#mapsvg .bk.sp { stroke-dasharray: 3 2; }
#mapsvg.finding .bk:not(.found), #mapsvg.wantonly .bk:not(.want) { opacity: 0.22; }
#mapsvg .bk.found { stroke: #f2a900; stroke-width: 3; }
#mapsvg .clab { cursor: pointer; }
#mapsvg .clab rect { fill: #17274e; stroke: #fff; stroke-width: 1.5; }
#mapsvg .clab .cL { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
#mapsvg .clab .cR { display: none; fill: #17274e; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
#mapsvg.zr .clab .cR { display: block; }
#mapsvg .clab.cull { display: none; }
#mapsvg.zr .clab.norange .cR { display: none; }
#mapsvg .clab:focus { outline: none; }
#mapsvg .clab:focus rect { fill: #f2a900; }
#mapsvg .q { pointer-events: auto; cursor: pointer; }
#mapsvg .spotbtn { cursor: pointer; }
#mapsvg .spotbtn:focus { outline: none; }
#mapsvg text.spotbtn:focus { fill: #e8590c; text-decoration: underline; }
#mapsvg rect.spotbtn:focus { stroke: #f2a900; stroke-width: 4; }
#mapsvg .hlab.spotbtn, #mapsvg .alab.spotbtn { text-decoration: underline dotted; }
#mapsvg .hl.q, #mapsvg .fac.hl { stroke: #e8590c; stroke-width: 4; animation: hlpulse 1.4s ease-in-out infinite; }
#mapsvg .atr.hl { fill: #fff0e6; stroke: #e8590c; }
#mapsvg .hall.hl { fill: #fff8f1; }
@keyframes hlpulse { 50% { stroke-opacity: 0.35; } }
#mapsvg .flowline { fill: none; stroke: #e8590c; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 3; animation: flowdash 1s linear infinite; pointer-events: none; }
#mapsvg .flowpast { fill: none; stroke: #e8590c; opacity: 0.3; stroke-linejoin: round; pointer-events: none; }
@keyframes flowdash { to { stroke-dashoffset: -8; } }
@media (prefers-reduced-motion: reduce) { #mapsvg .flowline, #mapsvg .hl.q, #mapsvg .fac.hl { animation: none; } }
#mapsvg .ent { cursor: pointer; }
#mapsvg .ent circle { fill: #e8590c; stroke: #fff; stroke-width: 2; }
#mapsvg .ent text { font-size: 13px; font-weight: 700; fill: #b34000; dominant-baseline: central; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.lg.lf::before { background: repeating-linear-gradient(90deg, #e8590c 0 5px, transparent 5px 8px); border-radius: 0; height: 0.3rem; vertical-align: 0.2rem; }
.flowsel { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0.3rem 0; }
.flowT { font-weight: 700; color: #b34000; margin-right: 0.2rem; }
.flowsel .f { flex: 1 1 auto; }
.flowsel .f[aria-pressed="true"] { background: #e8590c; border-color: #e8590c; }
.mapbox:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
.mapwrap { position: relative; }
.spot { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-height: 58%; overflow: auto; background: #fff; border: 2px solid #e8590c; border-radius: 14px; padding: 0.5rem 0.7rem 0.6rem; box-shadow: 0 6px 20px rgba(23,39,78,0.25); z-index: 5; }
.spot[hidden] { display: none; }
.spot p { margin: 0.25rem 0; }
.spotHead { display: flex; align-items: center; gap: 0.5rem; }
.spotHead h3 { flex: 1; margin: 0; font-size: 1.05rem; }
.spotStep { background: #e8590c; color: #fff; border-radius: 999px; padding: 0 0.6rem; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.piyo { display: grid; grid-template-columns: 52px 1fr; gap: 0.5rem; align-items: start; margin: 0.35rem 0; }
.piyoImg { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed #f0c674; background: #fffbea; overflow: hidden; }
.piyoImg img { width: 100%; height: 100%; object-fit: contain; }
.piyoImg.has { border-style: solid; }
.piyoBody { min-width: 0; }
.piyoWho { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #8a5300; }
.piyoLine { margin: 0; font-weight: 700; }
.piyo.talk .piyoLine { background: #fffbea; border: 1px solid #f0c674; border-radius: 12px; padding: 0.35rem 0.6rem; }
.spotOrder { color: #b34000; font-weight: 700; }
.spotOrder:empty { display: none; }
.flowbar { display: flex; gap: 0.4rem; margin: 0.4rem 0 0.2rem; }
.flowbar button { flex: 1; }
#flowPlay[aria-pressed="true"] { background: #e8590c; border-color: #e8590c; }
#findCount:empty { display: none; }
/* スマホでは説明の枠を図の下に置き、図を少し低くして両方が一度に見えるようにする */
@media (max-width: 640px) {
  .spot { position: static; max-height: none; margin-top: 0.4rem; box-shadow: none; }
  .mapwrap.spoton .mapbox { height: 46vh; }
  .piyo { grid-template-columns: 40px 1fr; } .piyoImg { width: 40px; height: 40px; }
  .piyoLine { font-size: 0.95rem; }
}
.mapwrap { scroll-margin-top: 8.5rem; }
/* 行きたいボタン（v3 その2）：広く、印と文字で、追加済みはチェックで見分ける */
.act .wantbtn { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-height: 48px; min-width: 9.2rem; padding: 0 0.7rem; border-radius: 999px; border: 2px solid var(--p1); background: #fff; color: var(--p1); font-weight: 700; white-space: nowrap; }
.act .wantbtn[aria-pressed="true"] { background: var(--p1); border-color: var(--p1); color: #fff; }
.wi-ic { width: 1.15rem; height: 1.15rem; flex: none; }
.di.on { box-shadow: inset 5px 0 0 var(--p1); }
.tcount { display: inline-block; min-width: 1.4rem; margin-left: 0.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--p1); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tabs button[aria-selected="true"] .tcount { background: #fff; color: var(--p1); }
.toast { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%); max-width: min(92vw, 480px); background: #17274e; color: #fff; padding: 0.6rem 1rem; border-radius: 12px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 60; transition: transform 0.2s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }
.toast:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
@media (max-width: 480px) { .act .wantbtn { min-width: 7.6rem; padding: 0 0.5rem; font-size: 0.92rem; } .tcount { margin-left: 0.1rem; padding: 0 0.2rem; min-width: 1.1rem; } }
/* 回る順の切り替えと道のり（v3 その3） */
.ordsel { margin: 0.5rem 0 0.2rem; }
.ordsel .f[aria-pressed="true"] { background: var(--p1); border-color: var(--p1); }
.ordnote { color: var(--ink2); margin: 0.2rem 0; }
.routelen { font-weight: 700; color: #b0285a; margin: 0.2rem 0 0.4rem; }
.routelen:empty { display: none; }
#mapsvg .route.first { opacity: 0.45; }
#mapsvg .route { stroke-linejoin: round; stroke-linecap: round; }
