/* Memora Q 社会：日本史の「紙の地図」（81回目③C 和紙と墨・95回目②B 時代バー勢力図＋章のピン＋流れの再生・96回目 時の流れ） */
.mqjm {
  position: fixed; inset: 0; z-index: 48;
  background: #D5D3CD;
  color: #24211D;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  animation: mqjmin .24s cubic-bezier(.2,.8,.2,1);
}
@keyframes mqjmin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.mqjm button { font-family: var(--font); color: inherit; }

.mqjm-stage {
  position: absolute; inset: 0; overflow: hidden; touch-action: none;
}
.mqjm-stage svg {
  width: 100%; height: 100%; display: block;
  transform-origin: center center;
}
.mqjm-fade {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--sat) + 170px);
  pointer-events: none; z-index: 4;
  background: linear-gradient(to bottom, rgba(241,235,220,.96), rgba(241,235,220,.72) 55%, rgba(241,235,220,0));
}

.mqjm-top {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--sat) + 8px) 16px 6px;
}
.mqjm-ib {
  width: 40px; height: 40px; border-radius: 20px; flex: none;
  background: rgba(246,241,230,.9);
  box-shadow: 0 3px 10px rgba(0,0,0,.1), inset 0 0 0 .8px rgba(36,33,29,.16);
  display: flex; align-items: center; justify-content: center; color: #24211D;
}
.mqjm-ib:active { transform: scale(.94); }
.mqjm-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--font); }
.mqjm-tt small { font-size: 11px; font-weight: 700; color: #786C5C; }
.mqjm-tt b { font-size: 16px; font-weight: 800; color: #1F1B16; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* モード切り替え（時の流れ / 時代の勢力図 / 18章のピン / 蒙古襲来） */
.mqjm-modes {
  position: relative; z-index: 10;
  display: flex; gap: 5px; padding: 4px 14px 0;
  font-family: var(--font);
}
.mqjm-m {
  flex: 1; height: 32px; border-radius: 16px;
  background: rgba(246,241,230,.85);
  box-shadow: inset 0 0 0 .8px rgba(36,33,29,.16);
  font-size: 11.5px; font-weight: 700; color: #4D4439;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.mqjm-m.on { background: #24211D; color: #F6F1E6; box-shadow: none; }

/* 時代バー（95回目②B） */
.mqjm-bar {
  position: relative; z-index: 10;
  margin: 8px 14px 0; padding: 10px 14px 10px;
  border-radius: 18px;
  background: rgba(246,241,230,.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09), inset 0 0 0 .8px rgba(36,33,29,.14);
  font-family: var(--font);
}
.mqjm-br { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: #5D5346; }
.mqjm-br b { font-size: 16px; font-weight: 800; color: #1F1B16; font-family: var(--num); }
.mqjm-spd {
  height: 24px; padding: 0 9px; border-radius: 12px;
  background: rgba(36,33,29,.1); color: #1F1B16;
  font-size: 11.5px; font-weight: 800; font-family: var(--num);
}
.mqjm-range {
  width: 100%; margin: 8px 0 4px; accent-color: #B84032; height: 6px;
}
.mqjm-eras {
  display: flex; justify-content: space-between; gap: 2px;
}
.mqjm-eras button {
  font-size: 10.5px; font-weight: 700; color: #786C5C; padding: 2px 3px; border-radius: 6px;
}
.mqjm-eras button.on { color: #B84032; font-weight: 800; background: rgba(184,64,50,.11); }

/* 下の解説カード */
.mqjm-card {
  position: absolute; left: 14px; right: 14px; bottom: calc(var(--sab) + 18px); z-index: 12;
  background: rgba(246,241,230,.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16), inset 0 0 0 .8px rgba(36,33,29,.15);
  font-family: var(--font);
  display: flex; flex-direction: column;
}
.mqjm-card.with-play { right: 76px; }
.mqjm-ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.mqjm-badge { font-size: 11px; font-weight: 800; color: #B84032; background: rgba(184,64,50,.12); padding: 3px 9px; border-radius: 9px; }
.mqjm-yr { font-size: 12px; font-weight: 700; color: #6E6253; font-family: var(--num); }
.mqjm-card b { font-size: 16.5px; font-weight: 800; color: #1F1B16; line-height: 1.3; }
.mqjm-card p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: #3D362D; }
.mqjm-btns { display: flex; gap: 8px; margin-top: 11px; }
.mqjm-b1 {
  flex: 1; height: 38px; border-radius: 19px;
  background: #24211D; color: #F6F1E6 !important;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mqjm-b2 {
  height: 38px; padding: 0 13px; border-radius: 19px;
  background: rgba(184,64,50,.13); color: #9E3024 !important;
  font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.mqjm-play {
  position: absolute; right: 16px; bottom: calc(var(--sab) + 24px); z-index: 14;
  width: 50px; height: 50px; border-radius: 25px;
  background: rgba(246,241,230,.95); color: #1F1B16;
  box-shadow: 0 8px 22px rgba(0,0,0,.18), inset 0 0 0 .8px rgba(36,33,29,.18);
  display: flex; align-items: center; justify-content: center;
}
.mqjm-play:active { transform: scale(.93); }
.mqjm-pin { cursor: pointer; }
.mqjm-route { stroke-dasharray: 8 6; animation: mqjmdash 1.4s linear infinite; }
@keyframes mqjmdash { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }

/* ===== 96回目 時の流れ（旧石器から平成までを1本の時間で再生・11/25） ===== */
.mqjf-stage svg { will-change: transform; }
.mqjf-ev, .mqjf-lbl { pointer-events: none; }
.mqjf-lbl text { paint-order: stroke; stroke: #F1EBDC; stroke-width: 3.6px; stroke-linejoin: round; }
.mqjf-lbl .mqjf-hl text:first-of-type { stroke-width: 4.4px; }
.mqjm.mqjf-on .mqjf-fade {
  height: calc(var(--sat) + 66px);
  background: linear-gradient(to bottom, rgba(241,235,220,.96), rgba(241,235,220,.72) 70%, rgba(241,235,220,0));
}

/* ===== 103・104回目の形（2026-11-26 地球儀と同じ：地図の字はやめて印だけ・上の細いバー1本・時代の大きな題・右上の設定・小さなカード） ===== */
/* 見出し：いまの時代（時代区分は朱・時代の名前は大きく） */
.mqjf-era { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-family: var(--font); }
.mqjf-era b { flex: none; font-size: 12.5px; font-weight: 800; color: #B84032; letter-spacing: .08em; }
.mqjf-era span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; font-size: 20px; font-weight: 800; color: #1F1B16; }
.mqjf-set.on { background: #24211D; color: #F6F1E6; box-shadow: none; }   /* 設定を開いている間の歯車 */

/* 上の細いバー：年と速さ・再生の1行＋15の時代の目盛り（同じ幅）＋6つの時代区分の名前 */
.mqjf-topw {
  position: absolute; left: 0; right: 0; top: calc(var(--sat) + 56px); z-index: 12;
  padding: 0 12px; font-family: var(--font); pointer-events: none; transition: opacity .22s ease;
}
.mqjf-topw > * { pointer-events: auto; }
.mqjf-bar {
  position: relative; padding: 3px 10px 4px; border-radius: 16px;
  background: rgba(250,246,237,.95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(36,33,29,.12), inset 0 0 0 .8px rgba(36,33,29,.14);
}
.mqjf-brow { display: flex; align-items: center; gap: 6px; min-height: 34px; }
.mqjf-yn { display: flex; align-items: baseline; white-space: nowrap; line-height: 1; color: #24211D; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; font-weight: 800; }
.mqjf-yn em { font-style: normal; font-size: 24px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mqjf-yn small { font-size: 13px; font-weight: 800; margin: 0 1px; color: #4D4439; }
.mqjf-ctrl { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mqjf-sp {
  height: 30px; min-width: 42px; padding: 0 10px; border-radius: 15px;
  background: rgba(36,33,29,.07); color: #24211D;
  font-family: var(--num); font-size: 12.5px; font-weight: 800;
}
.mqjf-pp {
  width: 32px; height: 32px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #24211D; color: #F6F1E6 !important; box-shadow: 0 4px 12px -4px rgba(36,33,29,.55);
}
.mqjf-pp svg { width: 13px; height: 13px; }
.mqjf-pp.mqjf-again { background: #B84032; }
.mqjf-pp.mqjf-again svg { width: 18px; height: 18px; }
.mqjf-sp:active, .mqjf-pp:active { transform: scale(.94); }
.mqjf-slide { position: relative; height: 22px; }
.mqjf-track {
  position: absolute; left: 10px; right: 10px; top: 50%; height: 5px; transform: translateY(-50%);
  display: flex; gap: 2px; pointer-events: none;
}
.mqjf-seg { position: relative; flex: 1; height: 100%; border-radius: 2px; background: rgba(36,33,29,.13); overflow: hidden; }
.mqjf-seg i { position: absolute; inset: 0; background: #B84032; transform-origin: 0 50%; transform: scaleX(0); }
.mqjf-seg.past i { opacity: .42; }
.mqjf-seg.on { background: rgba(184,64,50,.18); }
.mqjf-rng {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; touch-action: none;
}
.mqjf-rng:focus { outline: none; }
.mqjf-rng::-webkit-slider-runnable-track { height: 22px; background: transparent; border: 0; }
.mqjf-rng::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: #FBF7EE; border: 3px solid #B84032; box-shadow: 0 2px 6px rgba(36,33,29,.35);
}
.mqjf-rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(44,78,128,.45); }
.mqjf-rng::-moz-range-track { height: 22px; background: transparent; border: 0; }
.mqjf-rng::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #FBF7EE; border: 3px solid #B84032; box-shadow: 0 2px 6px rgba(36,33,29,.35); }
.mqjf-sn { padding: 0 10px; margin-top: -1px; }
.mqjf-sni { position: relative; height: 17px; }
.mqjf-sni button {                 /* 時代区分の名前：押すとそこから再生（下へ広げて押しやすく） */
  position: absolute; top: 0; height: 17px; padding: 0; background: none;
  text-align: center; font-size: 10px; font-weight: 700; line-height: 17px; color: #8A7D6B; white-space: nowrap;
}
.mqjf-sni button + button::before { content: ''; position: absolute; left: 0; top: 2px; width: 1px; height: 7px; background: rgba(36,33,29,.22); }
.mqjf-sni button::after { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -8px; }
.mqjf-sni button.on { color: #B84032; font-weight: 800; }
.mqjf-sni button:active { color: #24211D; }

/* 左のログ（バーの下）：透明の地に字だけ（和紙色のふち）・新しい行は下から・古い行は上へ消える */
.mqjf-log { position: absolute; left: 14px; top: calc(100% + 6px); width: 190px; height: 105px; pointer-events: none !important; }
.mqjf-lg {
  position: absolute; left: 0; top: 0; max-width: 190px; height: 21px;
  display: flex; align-items: baseline; gap: 5px; white-space: nowrap; text-align: left;
  pointer-events: auto;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
  text-shadow: 0 0 2px #F1EBDC, 0 0 2px #F1EBDC, 0 0 4px #F1EBDC, 0 0 7px rgba(241,235,220,.95);
}
.mqjf-lg b { flex: none; font-family: var(--num); font-size: 11px; font-weight: 800; }
.mqjf-lg span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 800; color: #24211D; }
.mqjf-lg:active span { color: #B84032; }
.mqjf-lg.mqjf-lge { pointer-events: none; align-items: center; gap: 6px; }
.mqjf-lg.mqjf-lge::before { content: ''; flex: none; width: 16px; height: 1.2px; background: #8E6220; opacity: .8; }
.mqjf-lg.mqjf-lge span { font-size: 11px; color: #8E6220; letter-spacing: .12em; }
.mqjf-lg.mqjf-out { pointer-events: none; }
.mqjf-log.mqjf-noanim .mqjf-lg { transition: none; }
.mqjf-topw.lpo .mqjf-log { opacity: .3; }

/* 下：同時に進んでいる数・チップ・小さなカード */
.mqjf-bot {
  position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 10px); z-index: 12;
  padding: 0 12px; display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font); pointer-events: none; transition: opacity .22s ease;
}
.mqjf-bot > * { pointer-events: auto; }
.mqjf-bot.lpo { opacity: .3; }
.mqjf-simul {
  display: flex; align-items: center; gap: 6px; height: 16px; padding-left: 4px;
  font-size: 11px; font-weight: 800; color: #6E6253; white-space: nowrap; pointer-events: none !important;
  text-shadow: 0 0 2px #F1EBDC, 0 0 4px #F1EBDC, 0 0 8px #F1EBDC;
}
.mqjf-simul i { flex: none; width: 6px; height: 6px; border-radius: 3px; background: #B84032; box-shadow: 0 0 0 2px rgba(184,64,50,.2); }
.mqjf-simul b { color: #B84032; font-family: var(--num); font-weight: 800; }
.mqjf-chips {
  display: flex; gap: 6px; height: 30px; margin: 0 -12px; padding: 0 12px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x;
}
.mqjf-chips:empty { display: none; }
.mqjf-chips::-webkit-scrollbar { display: none; }
.mqjf-chip {
  flex: none; height: 28px; padding: 0 11px 0 6px; border-radius: 14px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 800; color: #24211D;
  background: rgba(250,246,237,.96); box-shadow: 0 2px 8px rgba(36,33,29,.1), inset 0 0 0 .8px rgba(36,33,29,.18);
  animation: mqjfchip .4s cubic-bezier(.2,.8,.2,1);
}
.mqjf-chip.mqjf-cur { background: #24211D; color: #F6F1E6; box-shadow: none; }
@keyframes mqjfchip { from { opacity: 0; transform: translateX(-10px) scale(.92); } to { opacity: 1; transform: none; } }
/* 朱の小さな印（カード・チップ）＝地図の印と同じ字 */
.mqjf-cs {
  flex: none; width: 19px; height: 19px; border-radius: 4px; transform: rotate(-6deg);
  display: inline-flex; align-items: center; justify-content: center;
  background: #B84032; color: #FBF7EE; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 1;
  box-shadow: inset 0 0 0 1.5px #B84032, inset 0 0 0 2.4px rgba(246,241,230,.62);
}
.mqjf-cs.s { width: 17px; height: 17px; border-radius: 3.5px; font-size: 10.5px; }
.mqjf-cs.era { background: #8E6220; box-shadow: inset 0 0 0 1.5px #8E6220, inset 0 0 0 2.4px rgba(246,241,230,.62); }
.mqjf-chip.mqjf-cur .mqjf-cs { box-shadow: 0 0 0 1.2px #F6F1E6; }
.mqjf-card {
  position: relative; min-height: 100px; padding: 9px 14px 11px; border-radius: 18px;
  background: rgba(250,246,237,.97);
  box-shadow: 0 8px 22px rgba(36,33,29,.13), inset 0 0 0 .8px rgba(36,33,29,.14);
  display: flex; flex-direction: column; gap: 3px;
}
.mqjf-ch { display: flex; align-items: center; gap: 7px; min-height: 22px; padding-right: 66px; min-width: 0; }
.mqjf-py { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 700; color: #6E6253; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqjf-cgo { position: absolute; top: 8px; right: 9px; }   /* このテーマを開く：右上に小さく（104回目） */
.mqjf-open {
  position: relative; height: 28px; padding: 0 11px 0 12px; border-radius: 14px;
  background: #24211D; color: #F6F1E6 !important; font-size: 12px; font-weight: 800; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
}
.mqjf-open::after { content: ''; position: absolute; inset: -8px -6px; }
.mqjf-open:active { transform: scale(.95); }
.mqjf-ttl {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; font-size: 16px; font-weight: 800; line-height: 1.3; color: #1F1B16;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mqjf-sub { margin: 0; font-size: 12px; line-height: 1.45; color: #3D362D; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mqjf-sub[hidden] { display: none; }
.mqjf-card.mqjf-sw > * { animation: mqjfsw .34s cubic-bezier(.2,.8,.2,1); }
@keyframes mqjfsw { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 右上の設定（地球儀と同じ1つのリスト：地図に出すもの・出来事の数・地域へ飛ぶ・ほかの地図） */
.mqjf-panel {
  position: absolute; left: 10px; right: 10px; top: calc(var(--sat) + 56px); z-index: 30;
  max-width: 400px; margin-left: auto; max-height: calc(100% - var(--sat) - var(--sab) - 72px); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 12px 14px; border-radius: 22px; transform-origin: 92% 0;
  background: rgba(250,246,237,.98);
  box-shadow: 0 16px 40px rgba(36,33,29,.28), inset 0 0 0 .8px rgba(36,33,29,.14);
  font-family: var(--font); color: #24211D;
  animation: mqjfpanel .28s cubic-bezier(.2,.8,.2,1) both;
}
.mqjf-panel[hidden] { display: none; }
@keyframes mqjfpanel { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.mqjf-phd { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 2px 4px; }
.mqjf-phd b { font-size: 17px; font-weight: 800; color: #1F1B16; }
.mqjf-px { width: 32px; height: 32px; border-radius: 16px; background: rgba(36,33,29,.07); color: #24211D; font-size: 18px; line-height: 1; text-align: center; }   /* 11/30 ×が丸の左に寄っていた（app.css の button は text-align: inherit） */
.mqjf-sec { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 12px 4px 5px; font-size: 12px; font-weight: 800; color: #786C5C; letter-spacing: .04em; }
.mqjf-phd + .mqjf-sec { margin-top: 6px; }
.mqjf-rec { position: relative; padding: 0 2px; background: none; font-size: 12px; font-weight: 800; color: #B84032; letter-spacing: 0; }
.mqjf-rec::after { content: ''; position: absolute; inset: -8px -6px; }
.mqjf-rec[hidden] { display: none; }
.mqjf-grp { display: flex; flex-direction: column; padding: 0 12px; border-radius: 16px; background: rgba(36,33,29,.035); box-shadow: inset 0 0 0 .7px rgba(36,33,29,.1); }
.mqjf-grp > * + * { border-top: .6px solid rgba(36,33,29,.1); }
.mqjf-lrow, .mqjf-orow { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px; padding: 6px 0; background: none; text-align: left; color: #24211D; }
.mqjf-panel .li { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.mqjf-panel .li svg { width: 100%; height: 100%; display: block; }
.mqjf-panel .li.sl {               /* 地図の印と同じ朱の印（層の字） */
  transform: rotate(-6deg); background: #B84032; color: #FBF7EE;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; font-size: 16px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 2px #B84032, inset 0 0 0 3.2px rgba(246,241,230,.62);
}
.mqjf-many .li { padding: 6px; background: rgba(142,98,32,.1); box-shadow: inset 0 0 0 .7px currentColor; }
.mqjf-lrow .tx, .mqjf-orow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mqjf-lrow .tx b, .mqjf-orow .tx b { font-size: 14.5px; font-weight: 800; }
.mqjf-lrow .tx small, .mqjf-orow .tx small { font-size: 11px; font-weight: 600; color: #786C5C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqjf-lrow.off .tx, .mqjf-lrow.off .li { opacity: .45; }
.mqjf-many.off .tx, .mqjf-many.off .li { opacity: 1; }   /* 出来事の数はオフ（大きな流れだけ）がはじめの形なので、うすくしない */
.mqjf-lrow:active .tx b, .mqjf-orow:active .tx b { color: #B84032; }
.mqjf-tg { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: rgba(36,33,29,.16); transition: background .2s ease; }
.mqjf-tg i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.mqjf-lrow.on .mqjf-tg { background: var(--c, #B84032); }
.mqjf-lrow.on .mqjf-tg i { transform: translateX(18px); }
.mqjf-lrow.shake { animation: mqjfshake .32s ease; }
@keyframes mqjfshake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mqjf-chev { flex: none; padding-right: 2px; font-size: 22px; font-weight: 400; line-height: 1; color: #A39683; }
.mqjf-rgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mqjf-rg {
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 54px; padding: 8px 10px; border-radius: 16px;
  background: rgba(36,33,29,.035); box-shadow: inset 0 0 0 .7px rgba(36,33,29,.1); color: #24211D; text-align: left;
  transition: background .15s ease;
}
.mqjf-rg.w { grid-column: 1 / -1; }
.mqjf-rg:active { background: rgba(36,33,29,.08); }
.mqjf-rg .li { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 .8px currentColor; }
.mqjf-rg .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mqjf-rg .tx b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.mqjf-rg .tx small { font-size: 10.5px; font-weight: 600; color: #786C5C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 新しい時代に入った時の大きな題（和紙をうすくかけて真ん中に大きく → ゆっくり消える。動きは mq_jp_map.js が毎コマ） */
.mqjf-fx { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.mqjf-fx[hidden] { display: none; }
.mqjf-fx .fx-v { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 80% 60% at 50% 47%, rgba(246,241,230,.94), rgba(241,235,220,.74)); }
.mqjf-fx .fx-b { position: absolute; left: 50%; top: 47%; text-align: center; white-space: nowrap; opacity: 0; }
.mqjf-fx .fx-c { display: block; margin-bottom: 8px; padding-left: .34em; font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: .34em; color: #B84032; }
.mqjf-fx .fx-n { display: block; font-size: 40px; font-weight: 800; letter-spacing: .04em; color: #1F1B16; text-shadow: 0 2px 14px rgba(246,241,230,.9); }
.mqjf-fx .fx-l { display: block; width: 0; height: 2px; margin: 14px auto 10px; background: linear-gradient(90deg, transparent, #B84032 20%, #B84032 80%, transparent); }
.mqjf-fx .fx-y { display: block; font-family: var(--num); font-size: 15px; font-weight: 800; letter-spacing: .08em; color: #6E6253; }

/* 12/1 勢力の区切り（旧国の形を、その年の持ち主の色でぬる）：色はゆっくり変わる・変わった国は一度こく光る・新しい境と名前はふわっと出る */
.mqjk { pointer-events: none; }
.mqjk .jk-u { transition: fill .9s ease, fill-opacity .9s ease; }
.mqjk .jk-u.jk-chg { animation: jkChg 1.6s ease-out; }
@keyframes jkChg { 0% { fill-opacity: .5; } 100% { fill-opacity: .2; } }
.mqjk.jk-new .jk-pb, .mqjk.jk-new .jk-lb, .mqjk.jk-new .jk-ex { animation: jkIn .8s ease-out; }
@keyframes jkIn { from { opacity: 0; } to { opacity: 1; } }
.mqjk .jk-lb { opacity: .82; }
.mqjk-cap { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; font-size: 10.5px; font-weight: 700; color: #6E6253; }
.mqjk-cap:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .mqjf-lg, .mqjf-chip, .mqjf-card.mqjf-sw > *, .mqjf-panel, .mqjf-lrow.shake { transition: none !important; animation: none !important; }
  .mqjk .jk-u, .mqjk .jk-pb, .mqjk .jk-lb, .mqjk .jk-ex { transition: none !important; animation: none !important; }
}
