/* Memora Q 社会：世界史「全時代・同時多発アニメーション地球儀」（js/mq_globe_world.js）
   2026-11-25 直し：時代ボタンとつまみを大きく・今の年を大きく・時代の区切りつきのスライダー・「はじめから」・左はしのログ（透明な背景に字だけ） */
.mqg.world .mqg-mk, .mqg.world .mqg-pl, .mqg.world .mqg-gb, .mqg.world .mqg-cd { display: none !important; }
.mqg.world .mqg-hint { visibility: hidden; }   /* 消さずに隠す：地球儀の大きさの基準（案内の字の上まで）が小さくならないように */
.mqg.world .mqg-ov { visibility: visible !important; opacity: 1; pointer-events: none; }
.mqg.world .mqg-tr { display: flex; }
.mqg.world.touch .mqgw-top, .mqg.world.touch .mqgw-bot { opacity: .28; }

/* 上：細いバー1本（104回目①A：年と速さ・再生の1行＋時代の名前つきの細い目盛り）。あいた所は地球儀をさわれるように指を通す */
.mqgw-top {
  position: absolute; left: 0; right: 0; top: calc(var(--sat) + 54px); z-index: 12;
  padding: 0 12px; display: flex; flex-direction: column; gap: 6px;
  transition: opacity .22s ease; pointer-events: none;
}
.mqgw-top > * { pointer-events: auto; }

.mqgw-bar {
  padding: 4px 10px 5px; border-radius: 16px;
  background: rgba(16,18,24,.76);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 .6px rgba(255,255,255,.16);
  display: flex; flex-direction: column; gap: 0;
}
.mqgw-brow { display: flex; align-items: center; gap: 6px; min-height: 34px; }
.mqgw-yr {
  font-family: var(--num); font-size: 23px; line-height: 1; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap;
  text-shadow: 0 0 14px rgba(255,212,106,.25);
}
.mqgw-yr small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); margin-left: 2px; letter-spacing: 0; }
.mqgw-ctrl { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mqgw-spd {
  height: 30px; min-width: 40px; padding: 0 10px; border-radius: 15px;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 12.5px; font-weight: 800; font-family: var(--num);
}
.mqgw-pp {
  width: 32px; height: 32px; border-radius: 16px;
  background: #FFD46A; color: #1A1406;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -5px rgba(255,212,106,.6);
}

/* 年のスライダー：6つの時代を同じ幅で。つまみは指で押しやすい大きさ */
.mqgw-slide { position: relative; height: 22px; }
.mqgw-track {
  position: absolute; left: 14px; right: 14px; top: 50%; height: 5px; transform: translateY(-50%);
  display: flex; gap: 3px; pointer-events: none;
}
.mqgw-seg { position: relative; flex: 1; height: 100%; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.mqgw-seg i { position: absolute; inset: 0; background: #FFD46A; transform-origin: 0 50%; transform: scaleX(0); border-radius: 3px; }
.mqgw-seg.past i { opacity: .5; }
.mqgw-seg.on { background: rgba(255,212,106,.18); box-shadow: 0 0 10px rgba(255,212,106,.35); }
.mqgw-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;
}
.mqgw-rng:focus { outline: none; }
.mqgw-rng::-webkit-slider-runnable-track { height: 22px; background: transparent; border: 0; }
.mqgw-rng::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: #fff; border: 2.5px solid #FFD46A;
  box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 14px rgba(255,212,106,.55);
}
.mqgw-rng::-moz-range-track { height: 22px; background: transparent; border: 0; }
.mqgw-rng::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2.5px solid #FFD46A;
  box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 14px rgba(255,212,106,.55);
}
.mqgw-sn { display: flex; padding: 0 14px; margin-top: -1px; }
.mqgw-sn button {                 /* 時代の名前：押すとその時代へ（下へ広げて押しやすく・上はスライダーに残す） */
  flex: 1; min-width: 0; position: relative; height: 17px; padding: 0; background: none;
  text-align: center; font-size: 10px; font-weight: 700; line-height: 17px; color: rgba(255,255,255,.46);
}
.mqgw-sn button::after { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -8px; }
.mqgw-sn button.on { color: #FFD46A; font-weight: 800; }
.mqgw-sn button:active { color: #fff; }
   /* app.css の .ic（42px の丸）を消す */

/* 左はしのログ：透明な背景に字だけ。新しい行が下から入り、古い行は上でうすくなって消える。押すとその出来事へ */
.mqgw-log {
  position: absolute; left: 12px; top: calc(100% + 6px);
  width: min(78%, 320px); height: 138px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  pointer-events: none !important;
}
.mqgw-lg {
  display: block; max-width: 100%; height: 23px; padding: 0 2px;
  background: none; text-align: left; pointer-events: auto;
  transition: opacity .5s ease;
}
.mqgw-lg .in { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; animation: mqgwLogIn .6s cubic-bezier(.2,.8,.2,1) both; }
.mqgw-lg.q .in { animation: none; }
.mqgw-lg .y { flex: none; min-width: 38px; text-align: right; font-family: var(--num); font-size: 12px; font-weight: 800; color: var(--c, #FFD46A); font-variant-numeric: tabular-nums; }
.mqgw-lg .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; color: #fff; }
.mqgw-lg .y, .mqgw-lg .t {
  text-shadow: 0 0 2px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.9), 0 0 9px rgba(0,0,0,.75);
  -webkit-text-stroke: .25px rgba(0,0,0,.35);
}
.mqgw-lg:active .t { color: #FFD46A; }
@keyframes mqgwLogIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 下：同時に進んでいる動き（チップ）＋主役のカード */
.mqgw-bot {
  position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 12px); z-index: 12;
  padding: 0 12px; display: flex; flex-direction: column; gap: 8px;
  transition: opacity .22s ease;
}
.mqgw-simul-wrap { display: flex; flex-direction: column; gap: 5px; }
.mqgw-simul-hd { font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.65); padding-left: 4px; display: flex; align-items: center; gap: 5px; }
.mqgw-simul-hd .mqgw-cnt { flex: none; }
.mqgw-simul-hd b { color: #FFD46A; font-family: var(--num); font-weight: 800; }
.mqgw-simul-hd i { width: 6px; height: 6px; border-radius: 3px; background: #FFD46A; display: inline-block; box-shadow: 0 0 8px #FFD46A; }
.mqgw-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mqgw-chips::-webkit-scrollbar { display: none; }
.mqgw-ch {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  background: rgba(16,18,24,.78); color: rgba(255,255,255,.86);
  box-shadow: inset 0 0 0 .7px rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.mqgw-ch i { width: 7px; height: 7px; border-radius: 4px; flex: none; }
.mqgw-ch small { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.5); }
.mqgw-ch.on {
  background: rgba(255,212,106,.2); color: #FFD46A;
  box-shadow: inset 0 0 0 1px rgba(255,212,106,.65);
}
.mqgw-ch.on small { color: rgba(255,212,106,.75); }

.mqgw-card {
  position: relative; padding: 11px 14px 12px; border-radius: 20px;
  background: rgba(16,18,24,.84);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 12px 30px rgba(0,0,0,.55), inset 0 0 0 .7px rgba(255,255,255,.16);
  display: flex; flex-direction: column; gap: 3px;
}
.mqgw-card.pop { animation: mqgwPop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mqgwPop { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mqgw-chd { display: flex; align-items: center; gap: 7px; min-height: 22px; padding-right: 72px; }
.mqgw-rtag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: rgba(255,212,106,.16); color: #FFD46A; }
.mqgw-span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55); font-family: var(--num); }
.mqgw-card b { font-size: 15.5px; font-weight: 800; color: #fff; line-height: 1.3; }
.mqgw-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.78); }
.mqgw-cbtns { display: flex; gap: 8px; margin-top: 6px; }
.mqgw-cgo { position: absolute; top: 8px; right: 9px; }   /* このテーマを開く：右上に小さく（104回目） */
.mqgw-go {
  position: relative; height: 28px; padding: 0 11px 0 12px; border-radius: 14px;
  background: rgba(255,255,255,.13); color: #fff !important; box-shadow: inset 0 0 0 .7px rgba(255,255,255,.22);
  font-size: 12px; font-weight: 800; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
}
.mqgw-go::after { content: ''; position: absolute; inset: -8px -6px; }
.mqgw-go:active { background: rgba(255,255,255,.22); }
.mqgw-det {
  height: 32px; padding: 0 12px; border-radius: 16px;
  background: rgba(255,212,106,.16); color: #FFD46A !important;
  box-shadow: inset 0 0 0 .7px rgba(255,212,106,.45);
  font-size: 11.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .mqgw-lg .in, .mqgw-card.pop { animation: none; }
}
/* 探索モードの下部ボタン2つ並び */
.mqg-pl-wrap {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + 46px); z-index: 9;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.mqg.play .mqg-pl-wrap, .mqg.world .mqg-pl-wrap { display: none !important; }
.mqg-pl-w {
  height: 40px; padding: 0 16px; border-radius: 20px;
  background: linear-gradient(180deg, #FFD46A, #E3B35C); color: #1A1406 !important;
  font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 22px -6px rgba(255,212,106,.5);
}

/* 右上の設定（2026-11-25 夜 5つの層のオンオフ → 104回目③A 1つのリスト → 11/29 6つの層（宗教を分けた）・出来事の数・地域のチェック）。層ごとに色と印 */
.mqgw-cnt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqgw-lrow .li svg, .mqgw-lg .li svg, .mqgw-ch .li svg, .mqgw-kind .li svg { width: 100%; height: 100%; display: block; }
.mqgw-lpanel {                    /* 見出しの歯車の下に出す（スマホは横いっぱい・広い画面は右に寄せる。小さい画面では中を送る） */
  position: absolute; left: 10px; right: 10px; top: calc(var(--sat) + 56px); z-index: 20;
  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(14,16,22,.94);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 0 0 .7px rgba(255,255,255,.18);
  animation: mqgwPanel .28s cubic-bezier(.2,.8,.2,1) both;
}
.mqgw-lpanel[hidden] { display: none; }
.mqgw-top.lpo .mqgw-log { opacity: .3; }       /* 設定を開いている間は、ログと下のチップ・カードをうすく */
.mqgw-bot.lpo { opacity: .3; }
@keyframes mqgwPanel { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.mqgw-lhd { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 2px 4px; }
.mqgw-lhd b { font-size: 17px; font-weight: 800; color: #fff; }
.mqgw-lx { width: 32px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; line-height: 1; text-align: center; }
.mqgw-lrow {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px;
  padding: 6px 0; border-radius: 0; background: none; text-align: left; color: #fff;
  transition: background .15s ease;
}
.mqgw-lrow:active { background: rgba(255,255,255,.06); }
.mqgw-lrow .li {
  flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 10px; display: inline-flex;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .7px currentColor;
}
.mqgw-lrow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mqgw-lrow .tx b { font-size: 14.5px; font-weight: 800; }
.mqgw-lrow .tx small { font-size: 11px; font-weight: 600; line-height: 1.35; color: rgba(255,255,255,.56); }   /* 11/30 長い説明（領土の移り変わり）が「…」で切れていた → 2行に折る */
.mqgw-lrow.off .tx, .mqgw-lrow.off .li { opacity: .5; }
.mqgw-sw { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.16); transition: background .2s ease; }
.mqgw-sw i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.mqgw-lrow.on .mqgw-sw { background: var(--c, #7BD88F); box-shadow: 0 0 12px -2px var(--c, #7BD88F); }
.mqgw-lrow.on .mqgw-sw i { transform: translateX(18px); }
.mqgw-lrow.shake { animation: mqgwShake .32s ease; }
@keyframes mqgwShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* ログ・チップ・カードの層の印 */
.mqgw-lg .li { flex: none; width: 11px; height: 11px; color: var(--c, #FFD46A); align-self: center; filter: drop-shadow(0 0 2px rgba(0,0,0,.95)); }
.mqgw-lg .t i { font-style: normal; font-weight: 800; }
.mqgw-ch .li { flex: none; width: 12px; height: 12px; display: inline-flex; }
.mqgw-kind { display: inline-flex; align-items: center; gap: 4px; }
.mqgw-kind .li { width: 12px; height: 12px; display: inline-flex; }
.mqgw-res { font-size: 13px; font-weight: 800; line-height: 1.35; }
.mqgw-card p .why { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #10160F; vertical-align: 1px; }
.mqgw-empty { margin: 2px 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.72); }
@media (prefers-reduced-motion: reduce) { .mqgw-lpanel, .mqgw-lrow.shake { animation: none; } }

/* まとめの出来事（2026-11-26）：ログは1行（まとめの札・主語か場所は色つき・行の字。長い字は押すとカードで全部）。カードは一言（→ は層の色）と近くの行（札　字） */
.mqgw-lg.m .y { font-size: 11.5px; }
.mqgw-lg.m .t { font-size: 12.5px; }
.mqgw-card p.mqgw-one { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.86); }
.mqgw-card p.mqgw-one.r { font-weight: 800; }
.mqgw-plus {
  font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.62);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mqgw-plus .lb {
  display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 5px; vertical-align: 1px;
  font-size: 10px; font-weight: 800; color: rgba(255,255,255,.78); background: rgba(255,255,255,.1);
}

/* ---------- 104回目（2026-11-26 オーナーの答え ①A ②A ③A） ---------- */
/* 見出し「第N章 時代の名前」（mq_globe.js の setHead） */
.mqg.world .mqg-era { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.mqg.world .mqg-era b { flex: none; font-size: 12.5px; font-weight: 800; color: #FFD46A; letter-spacing: .06em; }
.mqg.world .mqg-era span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 20px; font-weight: 800; color: #fff; }
.mqg.world .mqg-ib.on { background: rgba(255,212,106,.22); color: #FFD46A; box-shadow: inset 0 0 0 1px rgba(255,212,106,.6); }   /* 設定を開いている間の歯車 */

/* 右上の設定：見出し（地図に出すもの など）・まとまり（うすい地に細い線で区切る）・おすすめに戻す */
.mqgw-sec { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 12px 4px 5px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.mqgw-lhd + .mqgw-sec { margin-top: 6px; }
.mqgw-rec { position: relative; padding: 0 2px; background: none; font-size: 12px; font-weight: 800; color: #FFD46A; letter-spacing: 0; }
.mqgw-rec::after { content: ''; position: absolute; inset: -8px -6px; }
.mqgw-rec[hidden] { display: none; }
.mqgw-grp { display: flex; flex-direction: column; padding: 0 12px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 .6px rgba(255,255,255,.1); }
.mqgw-grp .mqgw-lrow + .mqgw-lrow { border-top: .5px solid rgba(255,255,255,.09); }
.mqgw-lrow:active { background: none; }
.mqgw-lrow:active .tx b { color: #FFD46A; }
.mqgw-many.off .tx, .mqgw-many.off .li { opacity: 1; }   /* 出来事の数はオフ（大きな流れだけ）がはじめの形なので、うすくしない */

/* 地域（いくつでもチェック・11/29 オーナー「地域を選ぶは、複数選べるようにチェックできるように」）：2つずつ並べる。点と、オンの時の地は地域の色 */
.mqgw-rcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mqgw-rc {
  position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 52px; padding: 8px 9px 8px 10px; border-radius: 16px;   /* 11/30 SE の幅で「地中海・西欧・東欧」が切れていた → すき間を少しつめた */
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 .6px rgba(255,255,255,.1); color: #fff; text-align: left;
  transition: background .15s ease, box-shadow .15s ease;
}
.mqgw-rc.on { background: color-mix(in srgb, var(--c) 16%, rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 62%, transparent); }
.mqgw-rc .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); transition: opacity .15s ease; }
.mqgw-rc .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mqgw-rc .tx b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.mqgw-rc .tx small { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.56); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqgw-rc .ck { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; display: inline-flex; color: #14161c; background: var(--c); transition: background .15s ease, box-shadow .15s ease, color .15s ease; }
.mqgw-rc .ck svg { width: 100%; height: 100%; display: block; }
.mqgw-rc:not(.on) .ck { color: transparent; background: none; box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.3); }
.mqgw-rc:not(.on) .dot { opacity: .35; }
.mqgw-rc:not(.on) .tx b { color: rgba(255,255,255,.62); }
.mqgw-rc:not(.on) .tx small { color: rgba(255,255,255,.38); }
.mqgw-rc:active { transform: scale(.98); }
.mqgw-rc.shake { animation: mqgw-shake .32s ease; }
@keyframes mqgw-shake { 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mqgw-rc.shake { animation: none; } }

/* 新しい時代に入った時の大きな題（画面を暗くして真ん中に大きく → ゆっくり消える。動きは mq_globe_world.js が毎コマ） */
.mqgw-fx { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.mqgw-fx[hidden] { display: none; }
.mqgw-fx .fx-v { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 80% 60% at 50% 47%, rgba(4,6,12,.86), rgba(4,6,12,.64)); }
.mqgw-fx .fx-b { position: absolute; left: 50%; top: 47%; text-align: center; white-space: nowrap; opacity: 0; }
.mqgw-fx .fx-c { display: block; margin-bottom: 8px; padding-left: .34em; font-size: 15px; font-weight: 800; letter-spacing: .34em; color: #FFD46A; }
.mqgw-fx .fx-n { display: block; font-size: 38px; font-weight: 800; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.mqgw-fx .fx-l { display: block; width: 0; height: 2px; margin: 14px auto 10px; background: linear-gradient(90deg, transparent, #FFD46A 20%, #FFD46A 80%, transparent); }
.mqgw-fx .fx-y { display: block; font-family: var(--num); font-size: 15px; font-weight: 800; letter-spacing: .08em; color: rgba(255,255,255,.8); }

/* ---------- 12/1 119回目①C：はじめの画面（地球儀のまわりの輪を回して、始める年を決める） ---------- */
.mqg.pick .mqg-tt, .mqg.pick .mqg-ib[aria-label="年表"] { display: none; }
.mqgw-pk { position: absolute; inset: 0; z-index: 11; pointer-events: none; color: #F2F3F5; }
.mqgw-pk[hidden] { display: none; }
.mqgw-pk-hd { position: absolute; left: calc(env(safe-area-inset-left, 0px) + 68px); right: 64px; top: calc(var(--sat) + 4px); display: flex; flex-direction: column; gap: 3px; }
.mqgw-pk-hd b { font-size: 22px; font-weight: 800; letter-spacing: .2px; line-height: 1.25; }
.mqgw-pk-hd span { font-size: 12.5px; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.62); }
.mqgw-pk-yr { position: absolute; left: 0; right: 0; top: calc(var(--sat) + 70px); text-align: center; }
.mqgw-pk-yr b { font-family: var(--num); font-size: 46px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 16px rgba(0,0,0,.6); transition: color .15s; }
.mqgw-pk-yr small { font-size: 17px; font-weight: 800; margin-left: 3px; color: rgba(255,255,255,.8); }
.mqgw-pk-yr em { display: block; margin-top: -2px; font-style: normal; font-size: 13px; font-weight: 800; color: #FFD46A; letter-spacing: .5px; }
.mqgw-pk.drag .mqgw-pk-yr b { color: #FFD46A; }
.mqgw-pk-ring { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.mqgw-pk-ring .pk-b { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 9; stroke-linecap: round; }
.mqgw-pk-ring .pk-g { fill: none; stroke: #FFD46A; stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,212,106,.7)); }
.mqgw-pk-ring .pk-l { font-family: var(--font); font-size: 11.5px; font-weight: 800; fill: rgba(255,255,255,.62); letter-spacing: 1px; }
.mqgw-pk-ring .pk-l.on { fill: #FFD46A; }
.mqgw-pk-ring .pk-hit { fill: none; stroke: #000; stroke-opacity: 0; stroke-width: 68; pointer-events: stroke; cursor: grab; }
.mqgw-pk-ring .pk-k { fill: #FFD46A; stroke: #fff; stroke-width: 3; pointer-events: all; cursor: grab; filter: drop-shadow(0 0 10px rgba(255,212,106,.9)); }
.mqgw-pk-ring .pk-hl { fill: rgba(255,212,106,.35); transform-box: fill-box; transform-origin: center; opacity: 0; pointer-events: none; }
.mqgw-pk:not(.moved) .pk-hl { animation: mqgwKnob 1.6s ease-out infinite; }   /* まだ回していない間は、つまみのまわりがふくらんで光る（ここを回す） */
@keyframes mqgwKnob { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.mqgw-pk-rng { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mqgw-pk-go { position: absolute; left: 24px; right: 24px; bottom: calc(var(--sab) + 14px); max-width: 440px; margin: 0 auto; height: 54px; border-radius: 27px; pointer-events: auto;
  background: linear-gradient(180deg, #FFD46A, #E3B35C); color: #1A1406 !important; font-size: 16.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 26px -8px rgba(255,212,106,.6); }
.mqgw-pk-go .ic svg { width: 14px; height: 15px; display: block; }
.mqgw-pk-go:active { transform: scale(.98); }
.mqgw-pk-go:focus { outline: none; }
.mqgw-pk-go:focus-visible { box-shadow: 0 10px 26px -8px rgba(255,212,106,.6), 0 0 0 3px rgba(141,184,245,.85); }
@media (prefers-reduced-motion: reduce) { .mqgw-pk:not(.moved) .pk-hl { animation: none; opacity: .5; transform: scale(1.5); } }

/* ---------- 12/1 119回目③A：はじめての案内（暗い幕と指・右上の「年表」→「設定」→ 設定の中） ---------- */
.mqgw-tut { position: absolute; inset: 0; z-index: 40; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mqgw-tut[hidden] { display: none; }
.mqgw-tut .tt-h { position: absolute; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px #FFD46A, 0 0 0 9999px rgba(0,0,0,.72); transition: left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), border-radius .35s; }
.mqgw-tut.s3 .tt-h { border-radius: 24px; }
.mqgw-tut .tt-r { position: absolute; border-radius: 50%; border: 2px solid rgba(255,212,106,.9); box-sizing: border-box; pointer-events: none; animation: mqgwRip 1.4s ease-out infinite; }
.mqgw-tut .tt-f { position: absolute; font-size: 38px; line-height: 1; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); animation: mqgwTap 1.4s ease-in-out infinite; }
.mqgw-tut .tt-r[hidden], .mqgw-tut .tt-f[hidden], .mqgw-tut .tt-ok[hidden] { display: none; }
@keyframes mqgwRip { 0% { transform: scale(.8); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mqgwTap { 0%, 100% { transform: translate(0, 0); } 40%, 55% { transform: translate(-3px, -12px); } 48% { transform: translate(-3px, -12px) scale(.9); } }
.mqgw-tut .tt-b { position: absolute; right: 12px; width: min(300px, calc(100% - 24px)); box-sizing: border-box; padding: 14px 16px 10px; border-radius: 18px; background: #fff; color: #16171c; box-shadow: 0 14px 34px rgba(0,0,0,.5); cursor: default; }
.mqgw-tut .tt-b:before { content: ""; position: absolute; right: var(--ax, 22px); top: -9px; border: 9px solid transparent; border-top: 0; border-bottom: 10px solid #fff; }
.mqgw-tut.s3 .tt-b:before { right: auto; left: calc(50% - 9px); }
.mqgw-tut .tt-b b { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.mqgw-tut .tt-b p { margin: 5px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.55; color: #55565e; }
.mqgw-tut .tt-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mqgw-tut .tt-ft > i { font-style: normal; font-size: 12px; font-weight: 800; color: #9a9aa2; }
.mqgw-tut .tt-ft > span { display: flex; gap: 6px; align-items: center; }
.mqgw-tut .tt-s { font-size: 12.5px; font-weight: 800; color: #b8892c !important; padding: 8px 6px; }
.mqgw-tut .tt-ok { height: 32px; padding: 0 14px; border-radius: 16px; background: linear-gradient(180deg, #FFD46A, #E3B35C); color: #1A1406 !important; font-size: 13px; font-weight: 800; }
.mqgw-lpanel.tut3 { max-height: calc(100% - var(--sat) - var(--sab) - 250px); z-index: 41; }   /* 案内の3つ目：設定を幕の上に出す＝そのまま押せて、指で送れる */
.mqgw-tut .tt-b.nudge { animation: mqgw-shake .32s ease; }
@media (prefers-reduced-motion: reduce) { .mqgw-tut .tt-r, .mqgw-tut .tt-f, .mqgw-tut .tt-b.nudge { animation: none; } .mqgw-tut .tt-h { transition: none; } }

/* つながり（12/3 歴史総合）：カードの「きっかけ」（なければ「この後」）の1行。押すとその出来事へ */
.mqgw-link {
  display: block; width: 100%; margin-top: 5px; padding: 7px 10px 8px; border: 0; border-radius: 10px; text-align: left; font: inherit;
  background: rgba(255,224,138,.09); box-shadow: inset 0 0 0 .7px rgba(255,224,138,.38); color: #fff; cursor: pointer;
}
.mqgw-link:active { background: rgba(255,224,138,.16); }
.mqgw-link .lt { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 800; line-height: 1.35; }
.mqgw-link .tg { flex: none; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #1A1406; background: #FFE08A; }
.mqgw-link .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #FFE08A; }
.mqgw-link .ar { flex: none; margin-left: auto; padding-left: 4px; font-size: 11px; color: rgba(255,255,255,.6); }
.mqgw-link .why {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 3px; font-size: 11.5px; font-weight: 500; line-height: 1.45; color: rgba(255,255,255,.8);
}
