@charset "UTF-8";
/* ============================================================
   ゲームのページ（/game/ 以下）を /works/ とそろえた昼／夜の2デザインにする（2026-10-08）
   サイト共通のヘッダー・フッターには触らず、.gl_root の中だけを塗り替える。
   部品の正本は Z:\Claude\Projects\ゲーム開発\_shared\fieldworks\（ゲーム本体と共通）。
   SCSS が正本。CSS は次で生成する（このフォルダで）:
     npx sass --no-source-map --style=expanded --load-path=Z:/Claude/Projects/ゲーム開発/_shared/fieldworks game_fw.scss game_fw.css
   ============================================================ */
.design_switch {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 18px 0 12px;
  border: 1px solid rgba(29, 34, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2230;
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95) inset, 4px 5px 0 rgba(43, 49, 64, 0.08), 14px 18px 36px rgba(29, 34, 48, 0.12);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s, border-color 0.4s, color 0.4s;
}
.design_switch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95) inset, 6px 7px 0 rgba(43, 49, 64, 0.1), 18px 24px 40px rgba(29, 34, 48, 0.14);
}
@media (max-width: 640px) {
  .design_switch {
    bottom: 8px;
    left: 8px;
    height: 54px;
    padding: 0 8px;
    opacity: 0.9;
    transform: scale(0.78);
    transform-origin: 0 100%;
  }
  .design_switch:hover {
    transform: scale(0.78);
  }
}

.ds_sw_stage {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 44px;
  height: 52px;
}

.ds_sw_base {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border: 1.5px solid #2b3140;
  background-color: #ffffff;
  background-image: linear-gradient(rgba(43, 49, 64, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 49, 64, 0.14) 1px, transparent 1px);
  background-size: 6px 6px;
  box-shadow: 4px 4px 0 rgba(43, 49, 64, 0.22);
  transform: scaleY(0.58) rotate(45deg);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s, border-radius 0.4s;
}

.ds_sw_orbit {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  opacity: 0;
  transform: scaleY(0.42);
  transition: opacity 0.4s;
}
.ds_sw_orbit::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  content: "";
  background: #ffd27a;
  box-shadow: 0 0 8px 2px rgba(255, 190, 90, 0.8);
}

.ds_sw_shadow {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 26px;
  height: 10px;
  margin-left: -13px;
  border-radius: 50%;
  background: rgba(29, 34, 48, 0.28);
  filter: blur(2px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}

.ds_sw_hop {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  transform: translateY(var(--lift, 0px));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ds_sw_cube {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  transform-style: preserve-3d;
  transform: rotateX(-35.26deg) rotateY(calc(45deg + var(--spin, 0deg) + var(--peek, 0deg)));
  transition: transform 0.7s cubic-bezier(0.3, 1.45, 0.5, 1);
}

.ds_sw_face {
  position: absolute;
  inset: 0;
  display: block;
  border: 1.5px solid #2b3140;
  backface-visibility: hidden;
  transition: background-color 0.4s, border-color 0.4s;
}

.ds_sw_left {
  background: #f2f4f8;
  transform: rotateY(-90deg) translateZ(13px);
}

.ds_sw_front {
  background: #cbd1db;
  transform: translateZ(13px);
}

.ds_sw_back,
.ds_sw_right {
  border-color: #5aa9ff;
  background-color: #102446;
  background-image: radial-gradient(circle at 24% 30%, #ffffff 0 1px, transparent 1.5px), radial-gradient(circle at 70% 22%, #9fd4ff 0 1px, transparent 1.5px), radial-gradient(circle at 58% 68%, #ffffff 0 0.8px, transparent 1.3px), radial-gradient(circle at 30% 78%, #9fd4ff 0 0.8px, transparent 1.3px);
  box-shadow: inset 0 0 8px rgba(90, 169, 255, 0.45);
  animation: ds_twinkle 2.4s ease-in-out infinite alternate;
}

.ds_sw_back {
  transform: rotateY(180deg) translateZ(13px);
}

.ds_sw_right {
  background-color: #0b1730;
  transform: rotateY(90deg) translateZ(13px);
  animation-delay: -1.2s;
}

@keyframes ds_twinkle {
  from {
    filter: brightness(0.8);
  }
  to {
    filter: brightness(1.35);
  }
}
.ds_sw_top {
  overflow: hidden;
  background: #ffffff;
  transform: rotateX(90deg) translateZ(13px);
}
.ds_sw_top::before {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  content: "";
  background: repeating-conic-gradient(#3b68b5 0 8deg, transparent 8deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 5px, #000 5.5px);
  mask-image: radial-gradient(circle, transparent 0 5px, #000 5.5px);
  animation: ds_sun 8s linear infinite;
  transition: opacity 0.4s;
}
.ds_sw_top::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  content: "";
  background: #3b68b5;
  transition: background 0.4s, box-shadow 0.4s, transform 0.5s cubic-bezier(0.3, 1.45, 0.5, 1);
}

@keyframes ds_sun {
  to {
    transform: rotate(360deg);
  }
}
.ds_sw_bottom {
  background: #2b3140;
  transform: rotateX(-90deg) translateZ(13px);
}

.ds_sw_text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 640px) {
  .ds_sw_text {
    display: none;
  }
}

.ds_sw_now {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.ds_sw_next {
  color: #8c93a3;
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: color 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ds_sw_next::before {
  content: "▸ ";
  color: #3b68b5;
}

.ds_sw_mode_dark {
  display: none;
}

.design_switch:hover {
  --lift: -5px;
  --peek: -18deg;
}
.design_switch:hover .ds_sw_shadow {
  opacity: 0.6;
  transform: scale(0.8);
}
.design_switch:hover .ds_sw_next {
  color: #1d2230;
  transform: translateX(3px);
}

.design_switch.is_rolling .ds_sw_hop {
  animation: ds_hop 0.62s cubic-bezier(0.3, 0, 0.3, 1);
}
.design_switch.is_rolling .ds_sw_shadow {
  animation: ds_hop_shadow 0.62s cubic-bezier(0.3, 0, 0.3, 1);
}
.design_switch.is_rolling .ds_sw_base {
  animation: ds_base_hit 0.62s ease-out;
}

@keyframes ds_hop {
  0% {
    transform: translateY(var(--lift, 0px));
  }
  14% {
    transform: translateY(3px) scale(1.12, 0.86);
  }
  48% {
    transform: translateY(-22px) scale(0.94, 1.08);
  }
  82% {
    transform: translateY(1px) scale(1.1, 0.9);
  }
  100% {
    transform: translateY(var(--lift, 0px));
  }
}
@keyframes ds_hop_shadow {
  48% {
    opacity: 0.25;
    transform: scale(0.45);
  }
}
@keyframes ds_base_hit {
  82% {
    filter: brightness(1);
  }
  88% {
    filter: brightness(1.6);
  }
}
html[data-design=dark] .design_switch {
  border-color: rgba(130, 175, 255, 0.28);
  background: rgba(12, 24, 46, 0.82);
  color: #e8eef9;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(90, 169, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 26px rgba(90, 169, 255, 0.12);
}
html[data-design=dark] .design_switch:hover {
  border-color: rgba(140, 200, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(90, 169, 255, 0.2), 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 34px rgba(90, 169, 255, 0.3);
}
html[data-design=dark] .ds_sw_base {
  border-color: rgba(90, 169, 255, 0.85);
  border-radius: 50%;
  background-color: rgba(10, 22, 44, 0.9);
  background-image: none;
  box-shadow: 0 0 10px rgba(90, 169, 255, 0.7), inset 0 0 8px rgba(90, 169, 255, 0.5);
}
html[data-design=dark] .ds_sw_orbit {
  opacity: 1;
  animation: ds_orbit 3.2s linear infinite;
}
html[data-design=dark] .ds_sw_shadow {
  background: rgba(90, 169, 255, 0.35);
  filter: blur(4px);
}
html[data-design=dark] .ds_sw_top {
  border-color: #5aa9ff;
  background: #0b1730;
}
html[data-design=dark] .ds_sw_top::before {
  opacity: 0;
}
html[data-design=dark] .ds_sw_top::after {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: transparent;
  box-shadow: inset -4px 3px 0 0 #ffd27a, 0 0 6px rgba(255, 210, 122, 0.35);
  transform: rotate(-20deg);
}
html[data-design=dark] .ds_sw_bottom {
  background: #050b18;
}
html[data-design=dark] .ds_sw_next {
  color: #9db0cb;
}
html[data-design=dark] .ds_sw_next::before {
  color: #ffa45c;
}
html[data-design=dark] .design_switch:hover .ds_sw_next {
  color: #e8eef9;
}
html[data-design=dark] .ds_sw_mode_light {
  display: none;
}
html[data-design=dark] .ds_sw_mode_dark {
  display: inline;
}

@keyframes ds_orbit {
  from {
    transform: scaleY(0.42) rotate(0deg);
  }
  to {
    transform: scaleY(0.42) rotate(360deg);
  }
}
/* ---------- 切り替えの演出：斜めのブラインド ---------- */
@property --ds_slat {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --ds_sweep {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -40%;
}
::view-transition-old(root) {
  animation: ds_old 0.95s cubic-bezier(0.65, 0, 0.25, 1) both;
}

::view-transition-new(root) {
  -webkit-mask-image: repeating-linear-gradient(-55deg, #000 0 var(--ds_slat), transparent var(--ds_slat) 56px), linear-gradient(35deg, #000 var(--ds_sweep), transparent calc(var(--ds_sweep) + 40%));
  mask-image: repeating-linear-gradient(-55deg, #000 0 var(--ds_slat), transparent var(--ds_slat) 56px), linear-gradient(35deg, #000 var(--ds_sweep), transparent calc(var(--ds_sweep) + 40%));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: ds_slat 0.95s cubic-bezier(0.55, 0, 0.3, 1) both, ds_sweep 0.8s cubic-bezier(0.45, 0, 0.25, 1) both;
}

@keyframes ds_slat {
  from {
    --ds_slat: 0px;
  }
  to {
    --ds_slat: 56px;
  }
}
@keyframes ds_sweep {
  from {
    --ds_sweep: -40%;
  }
  to {
    --ds_sweep: 100%;
  }
}
@keyframes ds_old {
  to {
    transform: scale(0.965);
    filter: brightness(0.75);
  }
}
/* ---------- ページ内リンク：右端の階数表示 ---------- */
html[data-design=dark] .ds_lift {
  border-color: #5aa9ff;
  background: #0b1730;
  color: #e8eef9;
  box-shadow: 4px 4px 0 #5aa9ff;
}
html[data-design=dark] .ds_lift_dot {
  background: #ffa45c;
}

/* ---------- 着いたセクションの見出し：蛍光ペン ---------- */
.ds_mark {
  background-image: linear-gradient(transparent 58%, rgba(59, 104, 181, 0.24) 58%, rgba(59, 104, 181, 0.24) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ds_mark.is_marked {
  animation: ds_mark 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

@keyframes ds_mark {
  0% {
    background-size: 0% 100%;
  }
  35% {
    background-size: 100% 100%;
  }
  80% {
    background-size: 100% 100%;
    opacity: 1;
  }
  100% {
    background-size: 100% 100%;
  }
}
html[data-design=dark] .ds_mark {
  background-image: linear-gradient(transparent 58%, rgba(255, 164, 92, 0.32) 58%, rgba(255, 164, 92, 0.32) 92%, transparent 92%);
}

/* ---------- ゲーム側だけの追加（2026-10-08） ----------
   ・スクロール中は立方体だけの小さな形にして、左の列の文字にかぶらないようにする（fieldworks.ts が fw_sw_compact を付ける）
   ・昼の「夜にする」は白地で 3:1 しかなかったので濃くする */
.design_switch .ds_sw_text {
  max-width: 120px;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s;
}

.design_switch.fw_sw_compact:not(:hover):not(:focus-visible) {
  gap: 0;
}
.design_switch.fw_sw_compact:not(:hover):not(:focus-visible) .ds_sw_text {
  max-width: 0;
  opacity: 0;
}

html:not([data-design=dark]) .ds_sw_next {
  color: #5a6172;
}

body:has(.pd_overlay.is_open) .design_switch {
  visibility: hidden;
}

.design_switch {
  min-height: 44px;
}

/* ---------- 背景（固定の1枚） ----------
   昼：斜めの細い線がゆっくり流れる／夜：canvas に星と等高線（fieldworks.ts が描く） */
.fw_bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.fw_bg_lines {
  position: absolute;
  inset: -200px;
  background-image: repeating-linear-gradient(-55deg, rgba(29, 34, 48, 0.055) 0 1px, transparent 1px 22px);
  animation: fw_lines 40s linear infinite;
}

.fw_bg_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
}

html[data-design=dark] .fw_bg_lines {
  opacity: 0;
}

html[data-design=dark] .fw_bg_canvas {
  opacity: 1;
}

@keyframes fw_lines {
  to {
    transform: translate3d(155px, -110px, 0);
  }
}
/* ---------- 出てくる動き ---------- */
.fw_reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
}

.fw_reveal.fw_in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--fw_delay, 0s), transform 0.9s cubic-bezier(0.3, 1.45, 0.5, 1) var(--fw_delay, 0s), filter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--fw_delay, 0s);
}

/* ---------- 板（パネル・カード）の共通の手触り ----------
   マウスの位置に光が寄る（夜は縁が光る）。昼は角がめくれる */
.fw_card {
  position: relative;
  background: var(--fw_panel) !important;
  border: 1px solid var(--fw_edge) !important;
  box-shadow: var(--fw_shadow);
  transition: box-shadow 0.3s, transform 0.4s cubic-bezier(0.3, 1.45, 0.5, 1), border-color 0.3s;
}
.fw_card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--fw_mx, 50%) var(--fw_my, -40%), rgba(var(--fw_accent_rgb), 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.fw_card:hover::after {
  opacity: 1;
}

html[data-design=dark] .fw_card:hover {
  border-color: var(--fw_edge_strong) !important;
  box-shadow: var(--fw_shadow), 0 0 0 1px rgba(79, 209, 232, 0.25), 0 0 40px -12px rgba(79, 209, 232, 0.4);
}

html[data-design=light] .fw_card:hover {
  box-shadow: var(--fw_shadow_hard);
  transform: translate3d(-2px, -2px, 0);
}

html[data-design=light] .fw_card_peel::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top-right-radius: inherit;
  background: linear-gradient(225deg, var(--fw_bg) 50%, var(--fw_panel_3) 50%);
  box-shadow: -3px 3px 6px rgba(29, 34, 48, 0.12);
  transition: width 0.35s cubic-bezier(0.3, 1.45, 0.5, 1), height 0.35s cubic-bezier(0.3, 1.45, 0.5, 1);
  z-index: 2;
}

html[data-design=light] .fw_card_peel:hover::before {
  width: 26px;
  height: 26px;
}

/* ---------- ボタン（吸い付く・押すと波紋） ---------- */
.fw_magnet {
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--fw_tx, 0), var(--fw_ty, 0), 0);
  transition: transform 0.35s cubic-bezier(0.3, 1.45, 0.5, 1), box-shadow 0.25s, background-color 0.25s;
}

.fw_ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  pointer-events: none;
  animation: fw_ripple 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fw_ripple {
  to {
    transform: scale(28);
    opacity: 0;
  }
}
/* ---------- 数字（数え上げ中は等幅で揺れない） ---------- */
.fw_counting {
  font-variant-numeric: tabular-nums;
}

.fw_num_flash {
  animation: fw_num_flash 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fw_num_flash {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  30% {
    text-shadow: 0 0 22px rgba(var(--fw_accent_rgb), 0.55);
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}
/* ---------- 見出しの蛍光ペン ---------- */
.fw_mark {
  background-image: linear-gradient(transparent 62%, var(--fw_mark) 62% 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.fw_mark.fw_in {
  background-size: 100% 100%;
}

/* ---------- 空いている所を押すと判子 ---------- */
.fw_stamp {
  position: fixed;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  color: var(--fw_stamp);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  border: 3px double var(--fw_stamp);
  border-radius: 50%;
  pointer-events: none;
  animation: fw_stamp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  mix-blend-mode: multiply;
}

html[data-design=dark] .fw_stamp {
  mix-blend-mode: screen;
  box-shadow: 0 0 18px rgba(79, 209, 232, 0.5), inset 0 0 12px rgba(79, 209, 232, 0.4);
  text-shadow: 0 0 8px rgba(79, 209, 232, 0.8);
}

@keyframes fw_stamp {
  0% {
    transform: scale(2.2) rotate(-24deg);
    opacity: 0;
  }
  18% {
    transform: scale(0.92) rotate(-12deg);
    opacity: 0.9;
  }
  26% {
    transform: scale(1) rotate(-12deg);
  }
  75% {
    opacity: 0.85;
  }
  100% {
    transform: scale(1) rotate(-12deg);
    opacity: 0;
  }
}
/* ---------- 紙吹雪の粒（結果が良くなった時） ---------- */
.fw_spark {
  position: fixed;
  z-index: 61;
  width: 8px;
  height: 8px;
  pointer-events: none;
  background: var(--fw_accent);
  border-radius: 2px;
  animation: fw_spark 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fw_spark {
  to {
    transform: translate3d(var(--fw_dx), var(--fw_dy), 0) rotate(var(--fw_rot));
    opacity: 0;
  }
}
/* ============================================================
   /game/ 一覧の仕掛け（hub.ts が組み替えた要素の見た目）
   正本：Z:\Claude\Projects\ゲーム開発\_shared\fieldworks\cms\hub.ts と対
   ============================================================ */
/* ---------- ページ見出し・冒頭を昼／夜の地に ---------- */
html[data-design] .gl_root .page_head {
  background: transparent;
}
html[data-design] .gl_root .page_head_eyebrow {
  color: var(--fw_accent);
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.24em;
}
html[data-design] .gl_root .page_head_title {
  color: var(--fw_ink);
}
html[data-design] .gl_root .page_head_lead {
  color: var(--fw_muted);
}
html[data-design] .gl_root .gl_hero {
  background: transparent;
}
html[data-design] .gl_root .gl_hero_bg {
  display: none;
}
html[data-design] .gl_root .gl_hero_title,
html[data-design] .gl_root .gl_hero_note,
html[data-design] .gl_root .gl_hero_release_row {
  color: var(--fw_ink);
}
html[data-design] .gl_root .gl_hero_note {
  color: var(--fw_muted);
}
html[data-design] .gl_root .gl_hero_release_tag {
  color: var(--fw_accent_ink);
  background: var(--fw_char);
}
html[data-design] .gl_root .txt_accent {
  color: var(--fw_accent);
}

/* ---------- 冒頭：文字と棚を左右に ---------- */
.gl_hb_hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: clamp(520px, 62vh, 680px);
  padding-inline: clamp(16px, 4vw, 56px);
}
.gl_hb_hero .gl_hero_inner {
  max-width: none;
  padding: 0;
}
@media (max-width: 900px) {
  .gl_hb_hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.gl_hb_shelf {
  --tilt_x: 0deg;
  --tilt_y: 0deg;
  perspective: 1200px;
}

.gl_hb_shelf_floor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 26px) clamp(10px, 1.6vw, 20px);
  padding: 20px;
  transform: rotateX(calc(18deg + var(--tilt_x))) rotateY(var(--tilt_y));
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 640px) {
  .gl_hb_shelf_floor {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gl_hb_cube {
  --s: clamp(54px, 6.4vw, 84px);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  animation: gl_hb_drop 0.9s cubic-bezier(0.3, 1.45, 0.5, 1) both;
  animation-delay: calc(0.25s + var(--i) * 0.08s);
}
.gl_hb_cube:nth-child(odd) .gl_hb_cube_body {
  animation-delay: calc(var(--i) * -0.37s);
}

.gl_hb_cube_body {
  position: relative;
  width: var(--s);
  height: calc(var(--s) * 1.08);
  animation: gl_hb_bob 3.6s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.3, 1.45, 0.5, 1);
}

.gl_hb_cube:hover .gl_hb_cube_body,
.gl_hb_cube:focus-visible .gl_hb_cube_body {
  transform: translateY(-12px) rotate(-6deg) scale(1.08);
}

.gl_hb_cube_top,
.gl_hb_cube_left,
.gl_hb_cube_right {
  position: absolute;
  display: grid;
  place-items: center;
}

.gl_hb_cube_top {
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 900;
  letter-spacing: 0.04em;
  z-index: 2;
}

.gl_hb_cube_left,
.gl_hb_cube_right {
  top: 25%;
  width: 50%;
  height: 75%;
}

.gl_hb_cube_left {
  left: 0;
  clip-path: polygon(0 0, 100% 33.3%, 100% 100%, 0 66.6%);
}

.gl_hb_cube_right {
  right: 0;
  clip-path: polygon(0 33.3%, 100% 0, 100% 66.6%, 0 100%);
}

.gl_hb_cube_name {
  max-width: 9em;
  overflow: hidden;
  color: var(--fw_muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
}

.gl_hb_cube:hover .gl_hb_cube_name,
.gl_hb_cube:focus-visible .gl_hb_cube_name {
  opacity: 1;
  transform: none;
}

html[data-design=light] .gl_hb_cube_top {
  color: #1d2230;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(29, 34, 48, 0.2);
}
html[data-design=light] .gl_hb_cube_left {
  background: #c9d0dc;
}
html[data-design=light] .gl_hb_cube_right {
  background: #2b3140;
}
html[data-design=light] .gl_hb_cube:hover .gl_hb_cube_top {
  color: #ffffff;
  background: #3b68b5;
}

html[data-design=dark] .gl_hb_cube_top {
  color: #e9effc;
  background: #13234a;
  text-shadow: 0 0 10px rgba(79, 209, 232, 0.8);
}
html[data-design=dark] .gl_hb_cube_left {
  background: #0b1530;
}
html[data-design=dark] .gl_hb_cube_right {
  background: #08101f;
}
html[data-design=dark] .gl_hb_cube_body {
  filter: drop-shadow(0 0 10px rgba(79, 209, 232, 0.25));
}
html[data-design=dark] .gl_hb_cube:hover .gl_hb_cube_top {
  color: #04121c;
  background: #4fd1e8;
  text-shadow: none;
}

@keyframes gl_hb_drop {
  0% {
    opacity: 0;
    transform: translateY(-160px) rotate(-12deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes gl_hb_bob {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
/* ---------- 根拠の帯：流れ続けるテロップ ---------- */
.gl_basis {
  overflow: hidden;
}

.gl_basis_list.gl_hb_marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  animation: gl_hb_marquee 32s linear infinite;
}
.gl_basis_list.gl_hb_marquee:hover {
  animation-play-state: paused;
}
.gl_basis_list.gl_hb_marquee .gl_basis_item {
  flex-shrink: 0;
  padding: 8px 16px;
  white-space: nowrap;
  color: var(--fw_ink);
  background: var(--fw_panel);
  border: 1px dashed var(--fw_edge_strong);
  border-radius: 999px;
}

@keyframes gl_hb_marquee {
  to {
    transform: translateX(-50%);
  }
}
/* ---------- カード：立体の傾き・呼ばれた時に跳ねる ---------- */
.gl_hb_root .gl_hub_card {
  --gl_hb_rx: 0deg;
  --gl_hb_ry: 0deg;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--gl_hb_rx)) rotateY(var(--gl_hb_ry));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}

.gl_hb_root .gl_hub_card.fw_reveal.fw_in {
  transform: perspective(900px) rotateX(var(--gl_hb_rx)) rotateY(var(--gl_hb_ry));
}

.gl_hub_card.gl_hb_ping {
  animation: gl_hb_ping 0.9s cubic-bezier(0.3, 1.45, 0.5, 1);
}

@keyframes gl_hb_ping {
  0% {
    scale: 1;
  }
  30% {
    scale: 1.035;
    box-shadow: 0 0 0 4px var(--fw_accent);
  }
  100% {
    scale: 1;
  }
}
/* ---------- カードの舞台（共通の箱） ---------- */
.gl_hb_stage {
  position: relative;
  height: 132px;
  margin: calc(clamp(20px, 2.6vw, 30px) * -1) calc(clamp(20px, 2.6vw, 30px) * -1) 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--fw_edge);
  background: repeating-linear-gradient(-55deg, rgba(var(--fw_ink_rgb), 0.04) 0 1px, transparent 1px 14px), var(--fw_panel_2);
}

.gl_hb_stage:not(.gl_hb_play) *,
.gl_hb_stage:not(.gl_hb_play) *::before,
.gl_hb_stage:not(.gl_hb_play) *::after {
  animation-play-state: paused !important;
}

/* 日本進化：時代のパタパタと列島の点 */
.gl_hb_flap {
  position: absolute;
  top: 26px;
  left: 24px;
  width: 92px;
  height: 64px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  perspective: 300px;
}
.gl_hb_flap span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  color: var(--fw_accent_ink);
  background: var(--fw_char);
  border-radius: 6px;
}
.gl_hb_flap .gl_hb_flap_top {
  top: 0;
  align-items: flex-end;
  line-height: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  transform-origin: bottom;
}
.gl_hb_flap .gl_hb_flap_bottom {
  bottom: 0;
  align-items: flex-start;
  line-height: 0;
}
.gl_hb_flap.is_flip .gl_hb_flap_top {
  animation: gl_hb_flip 0.52s ease-in;
}

html[data-design=dark] .gl_hb_flap span {
  background: #13234a;
  color: #4fd1e8;
}

@keyframes gl_hb_flip {
  0% {
    transform: rotateX(0);
  }
  50% {
    transform: rotateX(-90deg);
  }
  100% {
    transform: rotateX(0);
  }
}
.gl_hb_isles {
  position: absolute;
  right: 22px;
  top: 14px;
  width: 140px;
  height: 92px;
}

.gl_hb_isle_dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fw_accent);
  opacity: 0.15;
  animation: gl_hb_isle 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
  left: calc(120px - var(--i) * 8.5px);
  top: calc(6px + var(--i) * 5.6px);
}

@keyframes gl_hb_isle {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--fw_accent);
  }
}
/* 選挙：投票用紙が投票箱へ */
.gl_hb_ballot {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
}

.gl_hb_ballot_paper {
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  font-size: 12px;
  font-weight: 900;
  writing-mode: vertical-rl;
  color: #1d2230;
  background: #ffffff;
  border: 1px solid rgba(29, 34, 48, 0.3);
  border-radius: 2px;
  animation: gl_hb_vote 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes gl_hb_vote {
  0% {
    transform: translateY(-70px) rotate(-8deg);
    opacity: 0;
  }
  20% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  45% {
    transform: translateY(6px) scaleY(0.5);
  }
  75% {
    transform: translateY(58px) scaleY(0.45);
    opacity: 1;
  }
  80%, 100% {
    transform: translateY(70px) scaleY(0.45);
    opacity: 0;
  }
}
.gl_hb_box {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120px;
  height: 46px;
  translate: -50% 0;
  background: var(--fw_char);
  border-radius: 6px 6px 0 0;
}

html[data-design=dark] .gl_hb_box {
  background: #13234a;
  box-shadow: 0 0 18px rgba(79, 209, 232, 0.3);
}

.gl_hb_box_slot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 54px;
  height: 5px;
  translate: -50% 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 3px;
}

.gl_hb_box_count {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: var(--fw_accent);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

html[data-design=light] .gl_hb_box_count {
  color: #ffffff;
}

/* 手取り：明細から順に引かれる */
.gl_hb_slip {
  position: absolute;
  inset: 8px 24px;
  display: grid;
  gap: 2px;
  font-size: 11px;
  line-height: 1.55;
}

.gl_hb_slip_row {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--fw_ink);
  background: var(--fw_panel);
  border: 1px dashed var(--fw_edge);
  border-radius: 3px;
  white-space: nowrap;
}
.gl_hb_slip_row b {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.gl_hb_slip_cut {
  color: #c8402f;
  animation: gl_hb_cut 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

html[data-design=dark] .gl_hb_slip_cut {
  color: #ff8f86;
}

.gl_hb_slip_take {
  color: var(--fw_accent_ink);
  background: var(--fw_accent);
  border-style: solid;
  animation: gl_hb_take 4s cubic-bezier(0.3, 1.45, 0.5, 1) infinite;
}

@keyframes gl_hb_cut {
  0%, 8% {
    opacity: 0;
    transform: translateX(-30px);
  }
  20%, 85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@keyframes gl_hb_take {
  0%, 40% {
    opacity: 0;
    transform: scale(0.8);
  }
  55%, 85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
/* 経済：折れ線とティッカー */
.gl_hb_chart {
  position: absolute;
  inset: 14px 20px 30px;
  width: calc(100% - 40px);
  height: calc(100% - 44px);
}
.gl_hb_chart path {
  fill: none;
  stroke: var(--fw_accent);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: gl_hb_draw 3.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes gl_hb_draw {
  0% {
    stroke-dashoffset: 1;
  }
  60%, 90% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
.gl_hb_ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  overflow: hidden;
  color: var(--fw_accent_ink);
  background: var(--fw_char);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 26px;
  white-space: nowrap;
}
.gl_hb_ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: gl_hb_tick 14s linear infinite;
}

html[data-design=dark] .gl_hb_ticker {
  color: #4fd1e8;
  background: #08101f;
}

@keyframes gl_hb_tick {
  to {
    transform: translateX(-100%);
  }
}
/* 年金：コインが積み上がる */
.gl_hb_coins {
  position: absolute;
  left: 34px;
  bottom: 12px;
  width: 54px;
  height: 100px;
}

.gl_hb_coin {
  position: absolute;
  left: 0;
  bottom: calc(var(--i) * 10px);
  width: 54px;
  height: 12px;
  background: linear-gradient(180deg, #f7d76b, #c99a22);
  border: 1px solid #a07612;
  border-radius: 50%;
  animation: gl_hb_coin 4s cubic-bezier(0.3, 1.45, 0.5, 1) infinite;
  animation-delay: calc(var(--i) * 0.22s);
}

@keyframes gl_hb_coin {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }
  12%, 85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.gl_hb_ages {
  position: absolute;
  right: 22px;
  left: 120px;
  top: 50%;
  display: flex;
  justify-content: space-between;
  translate: 0 -50%;
  border-top: 2px solid var(--fw_edge_strong);
}
.gl_hb_ages span {
  flex-shrink: 0;
  padding-top: 8px;
  white-space: nowrap;
  color: var(--fw_soft);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  animation: gl_hb_age 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}

@keyframes gl_hb_age {
  0%, 100% {
    color: var(--fw_soft);
  }
  25% {
    color: var(--fw_accent);
    text-shadow: 0 0 10px rgba(var(--fw_accent_rgb), 0.5);
  }
}
/* 市長：ビルが建ち上がり「可決」 */
.gl_hb_city {
  position: absolute;
  left: 24px;
  right: 110px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.gl_hb_bld {
  flex: 1;
  height: var(--h);
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.35) 6px 8px), var(--fw_char);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: gl_hb_build 4.2s cubic-bezier(0.3, 1.45, 0.5, 1) infinite;
  animation-delay: calc(var(--i) * 0.15s);
}

html[data-design=dark] .gl_hb_bld {
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(79, 209, 232, 0.55) 6px 8px), #13234a;
}

@keyframes gl_hb_build {
  0% {
    transform: scaleY(0);
  }
  25%, 88% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}
.gl_hb_pass,
.gl_hb_done {
  position: absolute;
  right: 22px;
  top: 30px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--fw_stamp);
  font-weight: 900;
  border: 3px double var(--fw_stamp);
  border-radius: 50%;
  animation: gl_hb_stamp 4.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes gl_hb_stamp {
  0%, 35% {
    opacity: 0;
    transform: scale(2) rotate(-24deg);
  }
  45% {
    opacity: 1;
    transform: scale(0.92) rotate(-12deg);
  }
  50%, 88% {
    opacity: 1;
    transform: scale(1) rotate(-12deg);
  }
  100% {
    opacity: 0;
    transform: scale(1) rotate(-12deg);
  }
}
/* 医療費：心電図 */
.gl_hb_ecg {
  position: absolute;
  inset: 22px 0 28px;
  width: 200%;
  height: calc(100% - 50px);
  animation: gl_hb_ecg 2.6s linear infinite;
}
.gl_hb_ecg path {
  fill: none;
  stroke: var(--fw_accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(var(--fw_accent_rgb), 0.6));
}

@keyframes gl_hb_ecg {
  to {
    transform: translateX(-50%);
  }
}
.gl_hb_receipt {
  position: absolute;
  right: 18px;
  bottom: 8px;
  padding: 2px 10px;
  color: var(--fw_ink);
  font-size: 12px;
  background: var(--fw_panel);
  border: 1px dashed var(--fw_edge_strong);
}
.gl_hb_receipt b {
  margin-left: 6px;
  font-family: "IBM Plex Mono", Consolas, monospace;
}

/* 奨学金：残高の棒が削れる */
.gl_hb_bars {
  position: absolute;
  left: 24px;
  right: 110px;
  bottom: 12px;
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.gl_hb_bar {
  flex: 1;
  height: calc(100% - var(--i) * 10%);
  background: var(--fw_accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
  transform-origin: bottom;
  animation: gl_hb_pay 4.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes gl_hb_pay {
  0% {
    transform: scaleY(1.12);
    opacity: 0.3;
  }
  20%, 88% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  100% {
    opacity: 0.2;
  }
}
/* インフレ：値札の書き換え */
.gl_hb_tag {
  position: absolute;
  left: 30px;
  top: 22px;
  display: grid;
  width: 110px;
  height: 70px;
  padding: 8px 12px 8px 22px;
  overflow: hidden;
  color: #1d2230;
  background: #fff6d6;
  border: 1px solid rgba(29, 34, 48, 0.25);
  border-radius: 4px 12px 12px 4px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 700;
  transform: rotate(-4deg);
}
.gl_hb_tag::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--fw_panel_2);
  box-shadow: inset 0 0 0 1px rgba(29, 34, 48, 0.3);
}

.gl_hb_tag_b {
  left: auto;
  right: 30px;
  top: 30px;
  transform: rotate(3deg);
}
.gl_hb_tag_b span {
  animation-delay: 0.5s !important;
}

.gl_hb_tag_old {
  position: relative;
  font-size: 15px;
  color: #6b7280;
}
.gl_hb_tag_old::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  width: 0;
  height: 2px;
  background: #c8402f;
  animation: gl_hb_strike 3.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: inherit;
}

.gl_hb_tag_new {
  font-size: 22px;
  color: #c8402f;
  animation: gl_hb_new 3.4s cubic-bezier(0.3, 1.45, 0.5, 1) infinite;
}

@keyframes gl_hb_strike {
  0%, 15% {
    width: 0;
  }
  35%, 90% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}
@keyframes gl_hb_new {
  0%, 30% {
    opacity: 0;
    transform: translateY(24px);
  }
  45%, 90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
/* キャンプ場：テントと焚き火 */
.gl_hb_tent {
  position: absolute;
  left: 36px;
  bottom: 14px;
  width: 96px;
  height: 70px;
  background: var(--fw_char);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.gl_hb_tent::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 34px;
  translate: -50% 0;
  background: var(--fw_panel_2);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

html[data-design=dark] .gl_hb_tent {
  background: #1a2d5a;
}

.gl_hb_fire {
  position: absolute;
  left: 170px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 50% 80%, #ffd36b, #ff7a2f 45%, transparent 70%);
  border-radius: 50% 50% 40% 40%;
  animation: gl_hb_flame 0.5s ease-in-out infinite alternate;
}

@keyframes gl_hb_flame {
  to {
    transform: scaleY(1.15) skewX(3deg);
  }
}
.gl_hb_spark {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb547;
  box-shadow: 0 0 6px #ff7a2f;
  animation: gl_hb_spark 1.8s ease-out infinite;
  animation-delay: calc(var(--i) * 0.26s);
}

@keyframes gl_hb_spark {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(calc((var(--i) - 3) * 9px), -80px);
  }
}
.gl_hb_yen {
  position: absolute;
  right: 40px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #6b4c00;
  font-weight: 900;
  background: linear-gradient(180deg, #f7d76b, #c99a22);
  border-radius: 50%;
  animation: gl_hb_bounce 1.6s cubic-bezier(0.3, 1.45, 0.5, 1) infinite;
}

@keyframes gl_hb_bounce {
  0%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-36px) rotateY(180deg);
  }
}
/* 車中泊：車と燃料計 */
.gl_hb_road {
  position: absolute;
  left: 20px;
  right: 120px;
  bottom: 26px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--fw_edge_strong) 0 14px, transparent 14px 24px);
}

.gl_hb_car {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 54px;
  height: 22px;
  background: var(--fw_accent);
  border-radius: 8px 14px 4px 4px;
  animation: gl_hb_drive 3.4s ease-in-out infinite;
}
.gl_hb_car::before, .gl_hb_car::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fw_char);
  border: 2px solid var(--fw_panel_2);
}
.gl_hb_car::before {
  left: 6px;
}
.gl_hb_car::after {
  right: 6px;
}

@keyframes gl_hb_drive {
  0% {
    left: 0;
  }
  80%, 100% {
    left: calc(100% - 54px);
  }
}
.gl_hb_gauge {
  position: absolute;
  right: 24px;
  top: 28px;
  width: 76px;
  height: 40px;
  overflow: hidden;
  border: 3px solid var(--fw_edge_strong);
  border-bottom: 0;
  border-radius: 76px 76px 0 0;
}

.gl_hb_needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 32px;
  background: #c8402f;
  transform-origin: bottom;
  animation: gl_hb_needle 3.4s ease-in-out infinite;
}

@keyframes gl_hb_needle {
  0% {
    transform: rotate(-70deg);
  }
  80%, 100% {
    transform: rotate(60deg);
  }
}
.gl_hb_gauge_e,
.gl_hb_gauge_f {
  position: absolute;
  bottom: 2px;
  color: var(--fw_muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.gl_hb_gauge_e {
  left: 6px;
}

.gl_hb_gauge_f {
  right: 6px;
}

/* ---------- 各ゲームの紹介ページ：冒頭の飾りの絵 → そのゲームの舞台（大） ---------- */
.gl_hb_hero_lp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 24px;
  padding-inline: clamp(16px, 4vw, 56px);
}
.gl_hb_hero_lp .gl_hero_art {
  display: none;
}
.gl_hb_hero_lp .gl_hero_inner {
  max-width: none;
  padding: 0;
}
@media (max-width: 900px) {
  .gl_hb_hero_lp {
    grid-template-columns: 1fr;
  }
}

.gl_hb_stage.gl_hb_stage_big {
  width: 300px;
  height: 140px;
  margin: 0 auto;
  border: 1px solid var(--fw_edge);
  border-radius: 12px;
  box-shadow: var(--fw_shadow);
  animation: gl_hb_float 6s ease-in-out infinite;
}

html[data-design=light] .gl_hb_stage_big {
  box-shadow: 8px 8px 0 #1d2230;
}

html[data-design=dark] .gl_hb_stage_big {
  box-shadow: 0 0 0 1px rgba(79, 209, 232, 0.3), 0 0 60px -10px rgba(79, 209, 232, 0.45);
}

@keyframes gl_hb_float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
/* ---------- 見出しの帯は貼り付けない（画面を占めて見にくかった。2026-10-08 kawabe） ---------- */
html[data-design] .gl_root .gl_flow_head {
  position: static;
}

/* ---------- 右端の目次（/works/ の階数表示と同じ形） ---------- */
.gl_hb_lift {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 40;
  translate: 24px -50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, translate 0.45s cubic-bezier(0.3, 1.45, 0.5, 1);
}
.gl_hb_lift.is_on {
  translate: 0 -50%;
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 1024px) {
  .gl_hb_lift {
    display: none;
  }
}

.gl_hb_lift_list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px 6px;
  list-style: none;
  background: color-mix(in srgb, var(--fw_panel) 88%, transparent);
  border: 1px solid var(--fw_edge);
  border-radius: 999px;
  box-shadow: var(--fw_shadow);
  backdrop-filter: blur(8px);
}

.gl_hb_lift_link {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--fw_soft);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s, transform 0.35s cubic-bezier(0.3, 1.45, 0.5, 1);
}
.gl_hb_lift_link:hover, .gl_hb_lift_link:focus-visible {
  color: var(--fw_ink);
  transform: translateX(-4px);
}
.gl_hb_lift_link.is_now {
  color: var(--fw_accent_ink);
  background: var(--fw_char);
  transform: scale(1.12);
}

html[data-design=dark] .gl_hb_lift_link.is_now {
  background: var(--fw_accent);
  box-shadow: var(--fw_glow);
}

.gl_hb_lift_no {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.gl_hb_lift_name {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 3px 10px;
  color: var(--fw_ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--fw_panel);
  border: 1px solid var(--fw_edge);
  border-radius: 999px;
  opacity: 0;
  translate: 8px -50%;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.3s cubic-bezier(0.3, 1.45, 0.5, 1);
}

.gl_hb_lift_link:hover .gl_hb_lift_name,
.gl_hb_lift_link:focus-visible .gl_hb_lift_name,
.gl_hb_lift_link.is_now .gl_hb_lift_name {
  opacity: 1;
  translate: 0 -50%;
}

/* ---------- ゲーム内メニュー：下へスクロール中は上へ隠す（2026-10-08 kawabe） ---------- */
.gl_bar.gl_hb_bar_auto {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gl_bar.gl_hb_bar_auto.is_hidden {
  transform: translateY(calc(-100% - var(--gl_header_h, 0px) - 4px));
}

/* ---------- ゲーム内メニュー：901〜1100px で項目が語の途中で折り返していた ---------- */
html[data-design] .gl_root .gl_bar_list {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
html[data-design] .gl_root .gl_bar_item,
html[data-design] .gl_root .gl_bar_link {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 一覧の冒頭は JS（hub.ts）が棚を足して高さが決まる。遅い回線で後から伸びないよう、先に同じ高さを取っておく */
html[data-design] .gl_theme_hub .gl_hero {
  min-height: clamp(520px, 62vh, 680px);
}
@media (max-width: 900px) {
  html[data-design] .gl_theme_hub .gl_hero {
    min-height: 0;
  }
}

html[data-design=light] {
  --fw_bg: #eef0f4;
  --fw_bg_rgb: 238, 240, 244;
  --fw_panel: #ffffff;
  --fw_panel_2: #f5f6f9;
  --fw_panel_3: #e8ebf1;
  --fw_edge: rgba(29, 34, 48, 0.14);
  --fw_edge_strong: rgba(29, 34, 48, 0.32);
  --fw_ink: #1d2230;
  --fw_ink_rgb: 29, 34, 48;
  --fw_muted: #5a6172;
  --fw_soft: #8c93a3;
  --fw_accent: #3b68b5;
  --fw_accent_rgb: 59, 104, 181;
  --fw_accent_ink: #ffffff;
  --fw_accent_soft: rgba(59, 104, 181, 0.1);
  --fw_char: #2b3140;
  --fw_mark: rgba(255, 213, 79, 0.6);
  --fw_stamp: #c8402f;
  --fw_shadow: 0 1px 0 rgba(29, 34, 48, 0.06), 0 22px 40px -28px rgba(29, 34, 48, 0.45);
  --fw_shadow_hard: 5px 5px 0 #1d2230;
  --fw_glow: none;
  --fw_select_bg: #ffffff;
}

html[data-design=dark] {
  --fw_bg: #070d1f;
  --fw_bg_rgb: 7, 13, 31;
  --fw_panel: #0f1b38;
  --fw_panel_2: #13234a;
  --fw_panel_3: #1a2d5a;
  --fw_edge: rgba(94, 214, 240, 0.2);
  --fw_edge_strong: rgba(94, 214, 240, 0.45);
  --fw_ink: #e9effc;
  --fw_ink_rgb: 233, 239, 252;
  --fw_muted: #9fb0d0;
  --fw_soft: #6f80a3;
  --fw_accent: #4fd1e8;
  --fw_accent_rgb: 79, 209, 232;
  --fw_accent_ink: #04121c;
  --fw_accent_soft: rgba(79, 209, 232, 0.12);
  --fw_char: #4fd1e8;
  --fw_mark: rgba(79, 209, 232, 0.32);
  --fw_stamp: #4fd1e8;
  --fw_shadow: 0 0 0 1px rgba(94, 214, 240, 0.08), 0 24px 50px -24px rgba(0, 0, 0, 0.85);
  --fw_shadow_hard: 0 0 0 1px rgba(94, 214, 240, 0.35), 0 0 24px -6px rgba(79, 209, 232, 0.45);
  --fw_glow: 0 0 18px rgba(79, 209, 232, 0.35);
  --fw_select_bg: #0f1b38;
}

/* ---------- game_lp の変数（--gl_*）を昼／夜で差し替える ----------
   各ゲームの色（.gl_theme_*）より強い指定にして、全ゲームを /works/ の青にそろえる */
html[data-design] .gl_root {
  --gl_bg: var(--fw_bg);
  --gl_card: var(--fw_panel);
  --gl_card_2: var(--fw_panel_2);
  --gl_line: var(--fw_edge);
  --gl_line_2: var(--fw_edge_strong);
  --gl_white: var(--fw_ink);
  --gl_gray: var(--fw_muted);
  --gl_gray_2: var(--fw_soft);
  --gl_green: var(--fw_accent);
  --gl_mint: var(--fw_accent);
  --gl_cyan: var(--fw_accent);
  --gl_gold: var(--fw_accent);
  --gl_ink: var(--fw_ink);
  --gl_ink_green: var(--fw_accent_ink);
  --gl_green_ink: var(--fw_accent);
  --gl_light: var(--fw_panel_2);
  --gl_light_2: var(--fw_panel_3);
  --gl_ink_2: var(--fw_muted);
  --gl_ink_3: var(--fw_soft);
  --gl_ink_rgb: var(--fw_ink_rgb);
  --gl_bg_rgb: var(--fw_bg_rgb);
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
  color: var(--fw_ink);
  background: var(--fw_bg);
}

html[data-design=light] .gl_root {
  --gl_bg_head: rgba(238, 240, 244, 0.86);
  --gl_grad_cta: linear-gradient(115deg, #2b3140 0%, #3b68b5 100%);
  --gl_grad_ver: linear-gradient(90deg, #3b68b5 0%, #6f93d6 100%);
  color-scheme: light;
}

html[data-design=dark] .gl_root {
  --gl_bg_head: rgba(7, 13, 31, 0.86);
  --gl_grad_cta: linear-gradient(115deg, #4fd1e8 0%, #5aa9ff 100%);
  --gl_grad_ver: linear-gradient(90deg, #4fd1e8 0%, #5aa9ff 100%);
  color-scheme: dark;
}

/* 背景の層は .gl_root の中に入るので、fixed のまま中身の後ろへ */
.gl_root > .fw_bg {
  z-index: -1;
}

/* 見出しの蛍光ペンは文字の幅だけ */
.gl_hero_title.fw_mark,
.gl_flow_head_title.fw_mark,
.gl_cta_title.fw_mark {
  width: fit-content;
}

.gl_hero_title.fw_mark {
  margin-inline: auto;
}

/* 数字は等幅 */
.gl_hub_fig_num,
.gl_mini_num {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* 昼：主ボタンは墨色の地に硬い影、夜：水色に光る */
html[data-design=light] .gl_root .gl_btn_cta,
html[data-design=light] .gl_root .gl_btn_gold,
html[data-design=light] .gl_root .gl_bar_solid {
  color: #ffffff;
  background: #2b3140;
  border-color: #2b3140;
  box-shadow: 4px 4px 0 rgba(59, 104, 181, 0.55);
}
html[data-design=light] .gl_root .gl_btn_cta:hover,
html[data-design=light] .gl_root .gl_btn_gold:hover,
html[data-design=light] .gl_root .gl_bar_solid:hover {
  background: #3b68b5;
  border-color: #3b68b5;
}

html[data-design=dark] .gl_root .gl_btn_cta,
html[data-design=dark] .gl_root .gl_btn_gold,
html[data-design=dark] .gl_root .gl_bar_solid {
  color: #04121c;
  background: #4fd1e8;
  border-color: #4fd1e8;
  box-shadow: 0 0 22px rgba(79, 209, 232, 0.45);
}

/* 一覧のカード：昼は角がめくれる・夜は縁が光る（fx の .fw_card）。番号札を左上に */
.gl_hub_card.fw_card {
  border-radius: 14px;
}

/* ---------- 紹介ページの暗いままだった節 ---------- */
html[data-design] .gl_root .gl_fid_frame {
  background: radial-gradient(80% 90% at 78% 50%, rgba(var(--fw_accent_rgb), 0.12) 0%, transparent 70%), var(--fw_panel);
  border: 1px solid var(--fw_edge);
  box-shadow: var(--fw_shadow);
}
html[data-design] .gl_root .gl_flow_visual {
  background: repeating-linear-gradient(-55deg, rgba(var(--fw_ink_rgb), 0.04) 0 1px, transparent 1px 14px), var(--fw_panel_2);
}
html[data-design] .gl_root .gl_cta_glow {
  background: radial-gradient(50% 50%, rgba(var(--fw_accent_rgb), 0.22) 0%, transparent 100%);
}
html[data-design] .gl_root .gl_white_area {
  background: var(--fw_panel_2);
  color: var(--fw_ink);
}

/* アクセントの地に載る文字は、昼も夜も地に合わせた色に */
html[data-design] .gl_root.gl_doc .gl_mini_day_on,
html[data-design] .gl_root.gl_doc .camp_step_no,
html[data-design] .gl_root.gl_doc .gl_hb_slip_take,
html[data-design] .gl_root.gl_doc .gl_hb_slip_take b {
  color: var(--fw_accent_ink);
}
html[data-design] .gl_root.gl_doc .gl_spec_sep {
  color: var(--fw_muted);
}
