  :root{
    --navy:#0b1f6b; --royal:#1d3ca8; --royal-2:#2b52d1; --sky:#e9eefc;
    --gold:#b8902c; --gold-2:#e9d38a; --gold-weak:#fbf3dc;
    --red:#c8221a; --bg:#ffffff; --line:#dde1ec; --line-2:#eceff6;
    --text:#14182b; --text-2:#545a70; --text-3:#6f7489; --focus:#fff1c2;
  }
  *{box-sizing:border-box;-webkit-font-smoothing:antialiased}
  html,body{margin:0}
  body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;color:var(--text);background:#e4e7ef;line-height:1.7;line-break:strict;text-wrap:pretty;background:#fff}
  button,input{font-family:inherit}
  a{color:inherit;text-decoration:none}
  .page{position:relative;z-index:1;max-width:430px;margin:0 auto;background:var(--bg);min-height:100vh;min-height:100svh;padding-bottom:32px}
  .hd{position:sticky;top:0;z-index:32;background:var(--navy);color:#fff;padding:8px 8px 8px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}
  .hd b{font-family:inherit;font-weight:800;letter-spacing:.02em;font-size:17px;letter-spacing:.04em}
  .bgfx{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
  .bgfx i{position:absolute;display:block;width:56px;height:56px;border-radius:8px;transform:rotate(45deg);opacity:.16;filter:blur(1.5px);animation:drift 22s ease-in-out infinite}
  .bgfx i:nth-child(1){left:6%;top:12%;background:#2b52d1}
  .bgfx i:nth-child(2){left:78%;top:8%;width:38px;height:38px;background:#e9d38a;animation-duration:26s;animation-delay:-6s}
  .bgfx i:nth-child(3){left:14%;top:46%;width:30px;height:30px;background:#9fe1ff;animation-duration:19s;animation-delay:-11s}
  .bgfx i:nth-child(4){left:84%;top:40%;width:64px;height:64px;background:#1d3ca8;animation-duration:30s;animation-delay:-3s}
  .bgfx i:nth-child(5){left:8%;top:76%;width:44px;height:44px;background:#f3b7dd;animation-duration:24s;animation-delay:-15s}
  .bgfx i:nth-child(6){left:72%;top:70%;width:34px;height:34px;background:#9fe1ff;animation-duration:21s;animation-delay:-8s}
  .bgfx i:nth-child(7){left:46%;top:90%;width:26px;height:26px;background:#e9d38a;animation-duration:27s;animation-delay:-18s}
  @keyframes drift{0%,100%{transform:translate3d(0,0,0) rotate(45deg)}50%{transform:translate3d(10px,-26px,0) rotate(60deg)}}
  @media (prefers-reduced-motion:reduce){.bgfx i{animation:none!important}}
  .sec{margin:28px 16px 0}
  .sec-h{display:flex;justify-content:center;align-items:baseline;gap:8px;margin:0 0 12px}
  .ribbon{display:block;width:310px;height:66px;margin:0;padding:0;font-size:17px;line-height:48px;font-weight:900;letter-spacing:.04em;white-space:nowrap;text-align:center;color:#fff;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 310 66'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2322399c'/%3E%3Cstop offset='.55' stop-color='%2313297f'/%3E%3Cstop offset='1' stop-color='%23102371'/%3E%3C/linearGradient%3E%3ClinearGradient id='tl' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230c1c5e'/%3E%3Cstop offset='1' stop-color='%2313297f'/%3E%3C/linearGradient%3E%3ClinearGradient id='tr' x1='1' y1='0' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%230c1c5e'/%3E%3Cstop offset='1' stop-color='%2313297f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M42 15Q22 15 3 21L15 35L5 53Q24 48 42 50Z' fill='url(%23tl)'/%3E%3Cpath d='M268 15Q288 15 307 21L295 35L305 53Q286 48 268 50Z' fill='url(%23tr)'/%3E%3Cpath d='M30 43L42 43L42 50Q35 47 30 43Z M280 43L268 43L268 50Q275 47 280 43Z' fill='%2308164a'/%3E%3Cpath d='M30 8Q155 3 280 8L280 43Q155 38 30 43Z' fill='url(%23b)'/%3E%3Cpath d='M34 11Q155 6.5 276 11' fill='none' stroke='%23fff' stroke-opacity='.18' stroke-width='1'/%3E%3C/svg%3E") center/310px 66px no-repeat}
  .navgrid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:24px 16px 0;padding:0}
  .navgrid a{position:relative;display:grid;grid-template-rows:59px 34px;align-items:center;justify-items:center;height:110px;padding:0 4px;overflow:hidden;border-radius:3px;background:#1b2f8c url(img/tile-bg.svg) 0 0/300% 200% no-repeat;text-align:center;font-size:13px;line-height:1.3;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);word-break:keep-all;overflow-wrap:anywhere}
  .navgrid li:nth-child(2) a{background-position:50% 0}.navgrid li:nth-child(3) a{background-position:100% 0}.navgrid:has(> .pre-hide) li:nth-child(5) a{background-position:100% 0}.navgrid li:nth-child(4) a{background-position:0 0}.navgrid li:nth-child(5) a{background-position:50% 0}
  .navgrid a::before{content:"";position:absolute;right:0;bottom:0;border-style:solid;border-width:0 0 17px 17px;border-color:transparent transparent #fff transparent}
  .navgrid a::after{content:"";position:absolute;right:14px;bottom:13px;width:6px;height:6px;border:solid #fff;border-width:2px 2px 0 0;transform:rotate(45deg)}
  .navgrid .orb{align-self:start;margin-top:18px;display:grid;place-items:center;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
  .navgrid .orb svg{width:36px;height:36px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .navgrid .orb circle[r=".6"]{fill:#fff}
  .nav-g .navgrid a{background-image:url(img/tile-bg.svg);background-color:#d6e2f8}
  .nav-g .navgrid a{color:#13297f;text-shadow:0 1px 2px rgba(255,255,255,.9);box-shadow:inset 0 0 0 1px rgba(19,41,127,.12)}.nav-g .navgrid a::after{border-color:#13297f}.nav-g .navgrid .orb{filter:drop-shadow(0 1px 1px rgba(255,255,255,.8))}.nav-g .navgrid .orb svg{stroke:#13297f}.nav-g .navgrid .orb circle[r=".6"]{fill:#13297f}
  /* 準備中の入口（PAGES の from より前）: 薄くして矢印を消し、札「準備中 ◯/◯」を上に置く */
  .navgrid li{position:relative}
  .navgrid a[aria-disabled]{filter:grayscale(.7);opacity:.72;cursor:default}
  .navgrid a[aria-disabled]::after{display:none}
  .navgrid a[aria-disabled] .orb{margin-top:23px}
  /* 開催前（data-phase が pre か未設定）のタイル: ルール・スケジュール／特典／よくある質問の 3 つだけ出す（2026-10-29） */
  .navgrid .pre-hide{display:none}
  html[data-phase]:not([data-phase="pre"]) .navgrid .pre-hide{display:block}
  .navgrid .soon{position:absolute;z-index:1;top:5px;right:5px;white-space:nowrap;padding:3px 7px;border-radius:999px;background:#fff;color:#13297f;box-shadow:0 1px 2px rgba(19,41,127,.18);font-size:10px;font-weight:700;line-height:1;text-shadow:none}
  :focus-visible{outline:3px solid #ffb800;outline-offset:2px}
  /* 共通のフッター: 中身のすぐ下に置く（Figma のみんなの宝石カードと同じ 13px・上 30px／下 8px）。.page の下の余白はフッターが受け持つ */
  .page:has(> .cs-ft){padding-bottom:0}
  .cs-ft{margin:0;padding:30px 16px 8px;font-size:13px;line-height:20px;color:#6b7280;text-align:center}
  .hd{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding:4px 8px 4px 6px!important}
  .hd > a{color:#fff;text-decoration:none}
  .hd b{font-size:15px!important;white-space:nowrap}
  .hd .sbtn{margin-left:auto}
  /* 下へスクロールで隠し、上へで出す（common.js の initMenu） */
  .hd{transition:transform .2s ease}
  .hd.hide{transform:translateY(-100%)}
  @media (prefers-reduced-motion:reduce){.hd{transition:none}}
  .mbtn{flex:none;width:40px;height:40px;border:none;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;border-radius:8px}
  .mbtn svg{width:22px;height:22px}
  .mdrop{position:fixed;left:50%;transform:translate(-50%,-8px);width:min(100%,430px);z-index:31;background:#fff;border-radius:0 0 14px 14px;box-shadow:0 12px 28px rgba(11,31,107,.22);padding:4px 16px 10px;opacity:0;pointer-events:none;transition:transform .18s ease,opacity .18s ease}
  .mdrop.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
  .mdrop a{display:flex;justify-content:space-between;align-items:center;padding:11px 2px;border-bottom:1px solid #eceff6;font-size:15px;font-weight:700;color:#14182b;text-decoration:none}
  .mdrop a:last-child{border-bottom:none}
  .mdrop a span{color:#1d3ca8}
  .mdrop a.cur{color:#1d3ca8}
  .mdrop a.pre-hide{display:none}html[data-phase]:not([data-phase="pre"]) .mdrop a.pre-hide{display:flex}
  .mdrop a[aria-disabled]{color:#8a90a6;cursor:default}
  .mdrop .soon{padding:3px 8px;border-radius:999px;background:var(--gold-weak);color:#7a5a12;font-size:11px;font-weight:700;line-height:1.3}
  .mdim{position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(11,20,50,.4)}
  .mdim[hidden]{display:none}
  .sbtn{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:none;border-radius:10px;background:transparent;color:#fff;cursor:pointer}
  .sbtn svg{width:16px;height:16px}
  .sbtn[hidden]{display:none}
  .xs-panel{position:fixed;left:50%;transform:translateX(-50%);width:min(100%,430px);z-index:31;background:#fff;padding:10px 16px 12px;border-radius:0 0 14px 14px;box-shadow:0 10px 24px rgba(11,31,107,.18)}
  .xs-panel[hidden]{display:none}
  .xs-panel input{width:100%;font-size:16px;min-height:44px;border:1px solid #dde1ec;border-radius:10px;padding:0 12px;font-family:inherit;color:#14182b}
  .xs-panel ul{list-style:none;margin:6px 0 0;padding:0}
  .xs-panel li{display:flex;align-items:center;gap:8px;border-top:1px solid #eceff6}
  .xs-panel li a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 2px;font-size:15px;color:#14182b;text-decoration:none;flex:1}
  .xs-panel li a small{display:block;font-size:13px;color:#6f7489}
  .xs-panel li a span[aria-hidden]{color:#1d3ca8}
