/* Memora Q 社会：地球儀の画面（js/mq_globe.js・2026-11-23 2版目＝テーマ史「騎馬遊牧民」の再生を足した）。色はホーム（mq_home.css の .mqh）と同じ黒い地・白い字・金・青。
   地球儀と星空は canvas（WebGL2）。上の行＝左に ×（ガラスの丸 40px・端末の上の余白の内）・右に今の章の札（章の番号と年代は小さく・名前は太く）。
   下に「印を押して開く」。印＝点（章は白・国・地域は青・ホームの今の1枚は金）と名前。字が重なる所は点だけ（js で決める）。
   使わない動き（広がる円・縦に開くパネル・暗転・ふわっと上がる・はずむ・ゆっくり始まる）は入れない。開く・閉じるは短いうすれだけ */
.mqg { --mqg-g: #FFD46A; --mqg-blue: #8DB8F5; --mqg-gls: rgba(18,20,25,.58);
  position: fixed; inset: 0; z-index: 55; overflow: hidden; background: #050608; color: #F2F3F5; color-scheme: dark;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  opacity: 0; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
.mqg.on { opacity: 1; }
.mqg button { color: inherit; }
.mqg-stage { position: absolute; inset: 0; }
.mqg-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .24s cubic-bezier(.2,.8,.2,1); }
.mqg-cv.on { opacity: 1; }

/* ---------- 上の行：× と今の章の札 ---------- */
.mqg-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: flex-start; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 20px 0 calc(env(safe-area-inset-left, 0px) + 16px); pointer-events: none; }
.mqg-top > * { pointer-events: auto; }
.mqg-x { flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--mqg-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mqg-x svg { display: block; }
.mqg-x:active { transform: scale(.94); }
.mqg-x:focus { outline: none; }
.mqg-x:focus-visible { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16), 0 0 0 2px rgba(141,184,245,.85); }
.mqg-tt { min-width: 0; flex: 1; display: flex; flex-direction: column; padding-top: 1px; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.mqg-tt.chg { animation: mqgtt .2s cubic-bezier(.2,.8,.2,1); }
@keyframes mqgtt { from { opacity: .35; } to { opacity: 1; } }
.mqg-no { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 12.5px; line-height: 1.35; white-space: nowrap; }
.mqg-no b { flex: none; font-weight: 700; color: var(--mqg-blue); }
.mqg-no i { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-weight: 500; color: rgba(255,255,255,.62); }
.mqg-h1 { display: block; margin-top: 1px; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqg-h2 { display: block; margin-top: 1px; font-size: 13px; font-weight: 600; line-height: 1.35; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 下の一言 ---------- */
.mqg-hint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 0 24px calc(env(safe-area-inset-bottom, 0px) + 18px);
  text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.5; color: rgba(255,255,255,.5); pointer-events: none; }

/* ---------- 印（原点＝点の中心。位置は js の transform） ---------- */
.mqg-marks { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; opacity: 0; transition: opacity .24s cubic-bezier(.2,.8,.2,1); }
.mqg.ready .mqg-marks { opacity: 1; }
.mqg-mk { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; padding: 0; border-radius: 14px; will-change: transform, opacity; }
.mqg-mk.off { visibility: hidden; pointer-events: none; }
.mqg-mk .dot { position: absolute; left: 10.5px; top: 10.5px; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1.5px rgba(6,7,10,.6), 0 0 9px rgba(255,255,255,.35); transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s ease; }
.mqg-mk.rg .dot { background: var(--mqg-blue); box-shadow: 0 0 0 1.5px rgba(6,7,10,.6), 0 0 9px rgba(141,184,245,.4); }
.mqg-mk.now .dot { background: var(--mqg-g); box-shadow: 0 0 0 1.5px rgba(6,7,10,.6), 0 0 10px rgba(255,212,106,.5); }
/* 札に出している印：点のまわりに細い白い輪 */
.mqg-mk.on .dot { box-shadow: 0 0 0 1.5px rgba(6,7,10,.7), 0 0 0 3.2px rgba(255,255,255,.92), 0 0 12px rgba(255,255,255,.4); }
.mqg-mk.now.on .dot { box-shadow: 0 0 0 1.5px rgba(6,7,10,.7), 0 0 0 3.2px rgba(255,212,106,.95), 0 0 12px rgba(255,212,106,.45); }
.mqg-mk .lb { position: absolute; left: 23px; top: 5px; height: 18px; line-height: 18px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: rgba(255,255,255,.88);
  text-shadow: 0 0 3px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.85); pointer-events: none; }
.mqg-mk.l .lb { left: auto; right: 23px; }
.mqg-mk.nolb .lb { visibility: hidden; }
.mqg-mk.on .lb { font-size: 13px; color: #fff; }
.mqg-mk.now .lb { color: var(--mqg-g); }
/* 押した時：点が少し大きく金になる（広がる輪は使わない） */
.mqg-mk.hit .dot { transform: scale(1.45); background: var(--mqg-g); }
.mqg-mk.hit .lb { color: var(--mqg-g); }
.mqg-mk:focus { outline: none; }
.mqg-mk:focus-visible .dot { outline: 2px solid var(--mqg-blue); outline-offset: 3px; }

/* ---------- WebGL2 が使えない時：止まった地球儀（still.jpg）を丸く切り、星空の絵を地に ---------- */
.mqg.still { background: #050608 url(../img/globe/space.jpg) center / cover no-repeat; }
.mqg-still { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(150,190,255,.18), 0 0 26px 3px rgba(92,143,250,.32); }
.mqg-still img { width: 100%; height: 100%; display: block; }

/* =====================================================================
   再生（テーマ史「騎馬遊牧民」・.mqg.play）：上の行の右に年表と設定・その下に ④B 時間のゲージ・⑤D 出来事の札。
   国と動きは canvas（.mqg-ov）。地球儀を触って動かしている間（.touch）は、ゲージと札がうすくなる
   ===================================================================== */
.mqg-ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.mqg:not(.play) .mqg-ov { visibility: hidden; }
.mqg.play .mqg-marks, .mqg.play .mqg-hint { visibility: hidden; }
.mqg.play .mqg-top { padding-right: calc(env(safe-area-inset-right, 0px) + 12px); }
.mqg.play .mqg-h1 { font-size: 16px; }
.mqg-tr { flex: none; display: none; gap: 8px; margin-left: auto; }
.mqg.play .mqg-tr { display: flex; }
.mqg-ib { flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--mqg-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mqg-ib svg { display: block; }
.mqg-ib:active, .mqg-pp:active, .mqg-spd:active, .mqg-pl:active { transform: scale(.94); }
.mqg-ib:focus, .mqg-pp:focus, .mqg-spd:focus, .mqg-rl:focus { outline: none; }
.mqg-ib:focus-visible, .mqg-pp:focus-visible, .mqg-spd:focus-visible { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16), 0 0 0 2px rgba(141,184,245,.85); }
.mqg-rl:focus-visible { box-shadow: inset 0 0 0 2px rgba(141,184,245,.6); border-radius: 8px; }

/* ---------- ④B 時間のゲージ（上の行＝まとまりの名前・年・倍速・再生。下＝目盛りの canvas と区切りの帯） ---------- */
.mqg-gb { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 3; display: none; pointer-events: none;
  transition: opacity .18s cubic-bezier(.2,.8,.2,1); }
.mqg.play .mqg-gb { display: block; }
.mqg-gr1 { position: relative; height: 28px; margin: 0 16px 0 24px; display: flex; align-items: center; }
.mqg-sgn { min-width: 0; max-width: calc(50% - 46px); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.mqg-yr { position: absolute; left: calc(50% - 4px); top: 0; height: 28px; transform: translateX(-50%); display: flex; align-items: center; white-space: nowrap;
  font-family: var(--num, -apple-system, sans-serif); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.mqg-yr b { font-size: 15px; font-weight: 800; }
.mqg-yr i { font-style: normal; font-size: 10.5px; font-weight: 600; opacity: .7; margin: 3px 0 0 1px; }
.mqg-gr1r { margin-left: auto; display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.mqg-spd { height: 22px; min-width: 34px; padding: 0 9px; border-radius: 11px; font: 800 11.5px/22px var(--num, -apple-system, sans-serif); text-align: center; color: #fff;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); }
.mqg-spd.on { color: #0A0B0E; background: #F2F3F5; }
.mqg-pp { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--mqg-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mqg-pp svg { display: block; }
.mqg-pp[data-k="play"] svg { margin-left: 2px; }
.mqg-rl { display: block; width: 100%; height: 44px; pointer-events: auto; touch-action: none; cursor: ew-resize; }
.mqg-sg { display: flex; align-items: center; gap: 4px; height: 10px; margin: 0 24px; pointer-events: auto; }
.mqg-sg span { position: relative; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.18); }
.mqg-sg span.dim { background: rgba(255,255,255,.07); }
.mqg-sg span.cur { background: rgba(255,255,255,.28); }
.mqg-sg span i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255,255,255,.88); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- ⑤D 出来事の札（ゲージの下・ガラス・字は左からぬりだす・絵は右に 92px） ---------- */
.mqg-cd { position: absolute; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 142px); z-index: 3; display: none; padding: 14px 14px 14px 16px; border-radius: 20px;
  background: var(--mqg-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14);
  pointer-events: none; transition: opacity .18s cubic-bezier(.2,.8,.2,1); }
.mqg.play .mqg-cd { display: block; }
.mqg-cb { display: flex; align-items: center; gap: 14px; }
.mqg-cb.out { position: absolute; left: 16px; right: 14px; top: 14px; opacity: 0; transition: opacity .14s linear; }
.mqg-ct { flex: 1; min-width: 0; clip-path: inset(-10px 100% -10px -10px); }
.mqg-cb.in .mqg-ct { clip-path: inset(-10px -10px -10px -10px); transition: clip-path .42s cubic-bezier(.32,.72,0,1) .08s; }
.mqg-cb.out .mqg-ct, .mqg-cb.now .mqg-ct { clip-path: none; transition: none; }
.mqg-cy { display: flex; align-items: baseline; gap: 2px; font-family: var(--num, -apple-system, sans-serif); font-variant-numeric: tabular-nums; }
.mqg-cy b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.mqg-cy i { font-style: normal; font-size: 12.5px; font-weight: 700; margin-left: 2px; }
.mqg-cy .yt { font-family: var(--font, -apple-system, sans-serif); font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.mqg-ch { margin-top: 6px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.mqg-cs { margin-top: 3px; font-size: 12px; line-height: 1.55; color: rgba(242,243,245,.74); }
.mqg-cp { flex: none; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; opacity: 0; box-shadow: 0 0 0 .5px rgba(255,255,255,.2); }
.mqg-cb.in .mqg-cp { opacity: 1; transition: opacity .3s linear .1s; }
.mqg-cb.out .mqg-cp, .mqg-cb.now .mqg-cp { opacity: 1; transition: none; }
.mqg-cp img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 触ると薄く（地球儀を回している間） */
.mqg.play.touch .mqg-gb, .mqg.play.touch .mqg-cd { opacity: .14; }

/* ---------- 国の札（押した国・下に小さく）・設定（地域を選ぶ）・印の地球儀から再生するボタン・知らせ ---------- */
.mqg-cc { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 8px 11px 16px; border-radius: 18px; background: var(--mqg-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); opacity: 0; transition: opacity .18s cubic-bezier(.2,.8,.2,1); }
.mqg-cc.on { opacity: 1; }
.mqg-cc .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mqg-cc b { font-size: 16px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqg-cc small { margin-top: 1px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.62); font-family: var(--num, -apple-system, sans-serif); font-variant-numeric: tabular-nums; }
.mqg-cc .go { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 800; color: #0A0B0E; background: #F2F3F5; }
.mqg-cc .x { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); }
.mqg-pop { position: absolute; right: calc(env(safe-area-inset-right, 0px) + 12px); top: calc(env(safe-area-inset-top, 0px) + 54px); z-index: 5; width: 212px; padding: 8px 0;
  border-radius: 16px; background: rgba(24,26,32,.86); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.45); opacity: 0; transition: opacity .16s cubic-bezier(.2,.8,.2,1); }
.mqg-pop.on { opacity: 1; }
.mqg-pop h4 { margin: 4px 16px 4px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); }
.mqg-pop button { display: block; width: 100%; height: 44px; padding: 0 16px; text-align: left; font-size: 15px; font-weight: 600; }
.mqg-pop button:active { background: rgba(255,255,255,.08); }
.mqg-pl { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 46px); z-index: 3; transform: translateX(-50%); height: 38px; padding: 0 16px 0 10px;
  border-radius: 19px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; white-space: nowrap; color: #fff;
  background: var(--mqg-gls); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16);
  opacity: 0; transition: opacity .24s cubic-bezier(.2,.8,.2,1); }
.mqg.ready .mqg-pl { opacity: 1; }
.mqg.play .mqg-pl, .mqg-pl[hidden] { display: none; }
.mqg-pl:active { transform: translateX(-50%) scale(.96); }
.mqg-pl .ic { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #0A0B0E; background: #F2F3F5; }
.mqg-pl .ic svg { width: 9px; height: 9px; margin-left: 2px; }
.mqg-tst { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); z-index: 6; transform: translateX(-50%); width: max-content; max-width: calc(100% - 48px);
  padding: 10px 16px; border-radius: 18px; font-size: 13.5px; font-weight: 600; line-height: 1.5; text-align: center; color: #0A0B0E; background: rgba(242,243,245,.94);
  opacity: 0; pointer-events: none; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
.mqg-tst.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mqg, .mqg-cv, .mqg-marks, .mqg-mk .dot, .mqg-gb, .mqg-cd, .mqg-cc, .mqg-pop, .mqg-pl, .mqg-tst, .mqg-cb.out, .mqg-cb.in .mqg-cp { transition: none; }
  .mqg-tt.chg { animation: none; }
  .mqg-ct, .mqg-cb.in .mqg-ct { clip-path: none; transition: none; }
  .mqg-cp { opacity: 1; }
}

/* ---------- 年代の検索（js/mq_scrub.js の MQSearch・11/30）：地球儀と日本史の地図の、時代のバーの検索マークから開く画面。
   色と字はアプリと同じ（黒い地・白い字・金・var(--font)/var(--num)）。開く・閉じるは短いうすれだけ。出た行は上から順に右から少しすっと出る ---------- */
.mqg .mqgw-srb { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; }
.mqjm .mqjf-srb { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(36,33,29,.07); color: #24211D; }
.mqgw-srb svg, .mqjf-srb svg { display: block; }
.mqg .mqgw-srb:active, .mqjm .mqjf-srb:active { transform: scale(.94); }

.mqs { --mqs-g: #FFD46A; --mqs-top: var(--sat, env(safe-area-inset-top, 0px));
  position: fixed; inset: 0; z-index: 61; overflow: hidden; background: #0A0B0E; color: #F2F3F5; color-scheme: dark;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif); font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  animation: mqsin .18s cubic-bezier(.2,.8,.2,1); }
.mqs.out { animation: mqsout .16s cubic-bezier(.2,.8,.2,1) forwards; pointer-events: none; }
@keyframes mqsin { from { opacity: 0; } to { opacity: 1; } }
@keyframes mqsout { from { opacity: 1; } to { opacity: 0; } }
.mqs button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mqs button:focus { outline: none; }
.mqs button:focus-visible { box-shadow: 0 0 0 2px rgba(255,212,106,.8); }
.mqs .n { font-family: var(--num, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif); font-variant-numeric: tabular-nums; }

/* 上：もどる・題（年表と同じ形）→ 字を入れる欄 → 何件 */
.mqs-top { position: absolute; left: calc(env(safe-area-inset-left, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); top: var(--mqs-top); height: 44px;
  display: flex; align-items: center; gap: 10px; }
.mqs .mqs-x { flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); }
.mqs .mqs-x:active { transform: scale(.94); }
.mqs-x svg { display: block; }
.mqs-tt { flex: 1; min-width: 0; line-height: 1.2; }
.mqs-tt small { display: block; font-size: 11px; font-weight: 700; color: var(--mqs-g); }
.mqs-tt b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; }
.mqs-f { position: absolute; left: calc(env(safe-area-inset-left, 0px) + 16px); right: calc(env(safe-area-inset-right, 0px) + 16px); top: calc(var(--mqs-top) + 52px); height: 44px;
  display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 22px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.mqs-f:focus-within { box-shadow: inset 0 0 0 1px rgba(255,212,106,.72), 0 0 0 3px rgba(255,212,106,.12); }
.mqs-mg { flex: none; display: flex; color: var(--mqs-g); }
.mqs-mg svg { display: block; }
.mqs-in { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: none; background: none; border-radius: 0;
  color: #fff; font: inherit; font-size: 16px; font-weight: 600; caret-color: var(--mqs-g);   /* 16px より小さいと iPhone が画面を大きくする */
  -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; }
.mqs-in::placeholder { color: rgba(242,243,245,.4); font-weight: 500; }
.mqs-in::-webkit-search-cancel-button, .mqs-in::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.mqs .mqs-clr { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.mqs .mqs-clr[hidden] { display: none; }
.mqs-clr svg { box-sizing: content-box; width: 10px; height: 10px; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.24); color: #0A0B0E; }
.mqs-meta { position: absolute; left: calc(env(safe-area-inset-left, 0px) + 20px); right: calc(env(safe-area-inset-right, 0px) + 20px); top: calc(var(--mqs-top) + 104px); height: 22px;
  font-size: 12px; font-weight: 600; line-height: 22px; color: rgba(242,243,245,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqs-meta b { color: #fff; font-weight: 800; }
.mqs-meta span { margin-left: 10px; color: rgba(255,212,106,.78); font-weight: 700; }

/* 出た行（時代ごとの見出し＋年の順）。見出しは上に残る */
.mqs-sc { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--mqs-top) + 132px); overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: none; }
.mqs-sc::-webkit-scrollbar { display: none; }
.mqs-list { padding: 0 calc(env(safe-area-inset-right, 0px)) calc(var(--sab, env(safe-area-inset-bottom, 0px)) + 20px) calc(env(safe-area-inset-left, 0px)); }
.mqs-gh { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 8px; padding: 12px 20px 7px; background: rgba(10,11,14,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mqs-gh b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 800; color: var(--mqs-g); white-space: nowrap; }
.mqs-gh span { flex: none; font-size: 11.5px; font-weight: 700; color: rgba(242,243,245,.5); white-space: nowrap; }
.mqs-gh em { flex: none; margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; color: rgba(242,243,245,.45); white-space: nowrap; }
.mqs .mqs-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 16px 10px 20px; text-align: left; }
.mqs .mqs-row::after { content: ''; position: absolute; left: 90px; right: 0; bottom: 0; height: .5px; background: rgba(255,255,255,.09); }
.mqs .mqs-row:active { background: rgba(255,212,106,.08); }
.mqs-y { flex: none; width: 58px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12;
  font-family: var(--num, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif); font-variant-numeric: tabular-nums; }
.mqs-y b { max-width: 100%; font-size: 17px; font-weight: 800; color: var(--mqs-g); white-space: nowrap; letter-spacing: -.01em; }
.mqs-y.l b { font-size: 13px; }
.mqs-y small { max-width: 100%; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; font-family: var(--font); font-size: 10.5px; font-weight: 700; color: rgba(255,212,106,.62); white-space: nowrap; }
.mqs-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mqs-t { font-size: 14.5px; font-weight: 700; line-height: 1.38; color: #F2F3F5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mqs-m { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.35; color: rgba(242,243,245,.58); }
.mqs-m i { flex: none; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.08); font-style: normal; font-size: 10.5px; font-weight: 800; color: rgba(242,243,245,.78); white-space: nowrap; }
.mqs-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqs-s:empty { display: none; }
.mqs mark { padding: 0 1px; border-radius: 3px; background: rgba(255,212,106,.22); color: #FFE7A6; }
.mqs-go { flex: none; width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(255,212,106,.14); color: var(--mqs-g); }
.mqs-go svg { display: block; margin-left: 1px; }
.mqs-none { margin: 30px 24px; font-size: 13.5px; line-height: 1.6; color: rgba(242,243,245,.6); text-align: center; }
.mqs-eg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; }
.mqs-eg small { width: 100%; font-size: 11.5px; font-weight: 700; color: rgba(242,243,245,.5); }
.mqs .mqs-eg button { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13.5px; font-weight: 700; color: rgba(242,243,245,.9);
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); }
.mqs .mqs-eg button:active { background: rgba(255,212,106,.16); }
.mqs-gh, .mqs .mqs-row { animation: mqsrow .26s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mqsrow { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mqs, .mqs.out, .mqs-gh, .mqs .mqs-row { animation: none; } }
