/* NAGAYAMA ☆LAB 共通の外枠（G-Header / G-Footer） 2026-11-20
   全ページで同じものを使う。ページ側のCSSの影響を受けないよう、自分の要素はすべて初期化してから指定する。 */
.g-hd,.g-ft,.g-hd *,.g-ft *{all:unset;box-sizing:border-box}
.g-hd,.g-ft{display:block;position:relative;z-index:40;width:100%;margin:0;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;line-height:1.5;text-align:left;font-size:16px;letter-spacing:normal;
  word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
.g-hd script,.g-ft script,.g-hd style,.g-ft style{display:none}
.g-in{display:flex;align-items:center;gap:18px;width:min(1160px,calc(100% - 32px));margin:0 auto}

/* ---- header ---- */
.g-hd{background:#fff;color:#14100c;border-bottom:1px solid #e7e3d8}
.g-hd .g-in{min-height:64px}
.g-logo{display:inline-flex;align-items:center;gap:9px;cursor:pointer;color:inherit;text-decoration:none;
  font-weight:900;font-size:18px;letter-spacing:.02em;white-space:nowrap;min-height:44px}
.g-logo img{display:block;width:28px;height:28px}
.g-logo i{color:#ff6d00;font-style:normal}
.g-nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.g-nav a{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:44px;padding:0 13px;border-radius:999px;
  color:inherit;font-weight:700;font-size:14px;line-height:1.25;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:normal;word-break:keep-all}
.g-hd .g-nav a:hover{background:#fff1e4;color:#b84a00}
.g-nav a[aria-current="page"]{box-shadow:inset 0 -3px 0 #ff6d00;border-radius:0}
.g-lang{display:flex;align-items:center;gap:6px}
.g-lang a{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:36px;min-width:44px;padding:0 11px;
  border:1.5px solid #14100c;border-radius:999px;color:#14100c;font-family:"Space Grotesk","Noto Sans JP",system-ui,sans-serif;
  font-weight:700;font-size:12.5px;text-decoration:none;white-space:nowrap}
.g-lang a.on{background:#14100c;color:#fff}
.g-hd a:focus-visible,.g-ft a:focus-visible{outline:3px solid #ff6d00;outline-offset:2px}
@media (max-width:900px){
  .g-hd .g-in{flex-wrap:wrap;gap:0 12px;min-height:0;padding-top:6px}
  .g-lang{margin-left:auto}
  .g-hd .g-nav{order:3;flex:0 0 100%;justify-content:space-between;gap:4px;margin:4px 0 0;border-top:1px solid #f0ede5}
  .g-nav a{padding:0 4px;min-height:48px;min-width:44px;font-size:12.5px}
}

/* ---- footer ---- */
.g-ft{background:#14100c;color:#fff;padding:44px 0 34px;margin-top:0}
.g-ft .g-in{flex-direction:column;align-items:flex-start;gap:16px}
.g-ft .g-logo{color:#fff}
.g-ft .g-nav{margin:0;flex-wrap:wrap;gap:4px 6px}
.g-ft .g-nav a{color:#fff;padding:0 12px 0 0;border-radius:0;justify-content:flex-start}
.g-ft .g-nav a:hover{color:#ffa25e}
.g-ft-langs,.g-ft-sns{display:flex;flex-wrap:wrap;gap:6px 16px}
.g-ft-langs a{display:inline-flex;align-items:center;min-height:32px;cursor:pointer;color:#e6e1d4;font-size:13px;font-weight:700;
  text-decoration:none;border-bottom:2px solid #ff6d00;line-height:1.3}
.g-ft-langs a[aria-current="true"]{color:#ffa25e}
.g-ft-sns a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;cursor:pointer;border:1.5px solid rgba(255,255,255,.45);
  border-radius:999px;color:#fff;font-size:13.5px;font-weight:900;text-decoration:none}
.g-ft-sns a:hover{border-color:#ffa25e;color:#ffa25e}
.g-ft small{display:block;color:#b3ac9a;font-size:12.5px}
@media (max-width:900px){
  .g-ft .g-nav{width:100%;flex-wrap:nowrap;justify-content:space-between;gap:4px}
  .g-ft .g-nav a{padding:0 4px;min-height:48px;min-width:44px;font-size:12.5px;justify-content:center;text-align:center}
}
@media print{.g-hd .g-nav,.g-hd .g-lang,.g-ft{display:none}}

/* 1画面型のハブ（body.one：games / apps / world-figures の各言語版）：
   旧ヘッダーの行に G-Header を入れ、高さは中身に合わせる。G-Footer は1画面の外（下）に置き、スクロールで届くようにする。
   ハブ独自の下部タブ（.dock）は基本ナビ5本と重複するため出さない。 */
html body.one{--head:auto;grid-template-rows:auto minmax(0,1fr) auto;overflow:visible;position:relative}
html:has(body.one){overflow-y:auto}
body.one > .g-ft{position:absolute;top:100%;left:0;right:0}
body.one .dock{display:none}

/* 透かし文字（data-wm）はスマホ幅では出さない：見出しやキッカーとの重なりを防ぐ（全セクション共通） */
@media (max-width:640px){[data-wm]::before{display:none!important}}

/* パンくず（外枠適用ページ用。nlab-core の .crumbs を自己完結化したもの） */
.nlab-crumbs{font-size:12.5px;color:#6f6a5c;padding:14px 0 0;width:min(1160px,calc(100% - 32px));margin:0 auto;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;line-height:1.5}
.nlab-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 8px}
.nlab-crumbs li+li::before{content:"›";margin-right:8px;color:#9a937f}
.nlab-crumbs a{color:#6f6a5c;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#d8d2c4;display:inline-block;min-height:24px}

/* 詳細ページ末尾の回遊ブロック（設計書 S2） */
.nlab-more{width:min(1160px,calc(100% - 32px));margin:30px auto 38px;padding:18px 20px;border:1px solid #e7e3d8;border-radius:14px;background:#fff;
  font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;color:#14100c}
.nlab-more h2{font-size:16px;margin:0 0 10px}
.nlab-more ul{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:8px 10px}
.nlab-more li a{display:inline-flex;align-items:center;min-height:44px;padding:6px 14px;border:1.5px solid #14100c;border-radius:999px;
  color:#14100c;font-size:13.5px;font-weight:700;text-decoration:none}
.nlab-more li a:hover{background:#fff1e4;color:#b84a00}
.nlab-more .back{margin:0}
.nlab-more .back a{color:#b84a00;font-weight:700;font-size:14px;text-decoration:none;border-bottom:2px solid #ff6d00;display:inline-block;min-height:32px;line-height:1.4}

/* 見出しの明朝（2026-11-20 追加指示）: 明朝は h1・h2 だけ。本文・カード・ナビ・ボタンはゴシックのまま。
   クラス指定のある見出しはページ側の指定が優先される（このルールは要素セレクタのみ）。 */
h1,h2{font-family:"Noto Serif JP","Hiragino Mincho ProN","YuMincho","Yu Mincho",serif}

/* 統合改修 2026-11-21: 回遊ブロックが直前の浮動要素や本文に重ならないよう、
   回り込みを解除し、独立した重なり順に置く。パンくずの長いタイトルも折り返す。 */
.nlab-more{clear:both;position:relative}
.nlab-crumbs{overflow-wrap:anywhere}
.nlab-crumbs li{min-width:0}
/* ページ側に border-box リセットが無いと、width(100%-32px)＋左右padding で
   画面幅を超えて横スクロールが発生していた（/games/ 等で実測）。枠側で完結させる。 */
.nlab-more,.nlab-crumbs{box-sizing:border-box}
