/* GAMEX: 自社の HTML5 ゲームの枠(gamex_play.js)。記事の本文の <section class="gx-play" data-c-game> に当てる。 */
.gx-play{--gxp-ink:#0d1422;--gxp-edge:#2b3954;--gxp-text:#f2f5fa;--gxp-accent:#ffd34d;box-sizing:border-box;width:100%;max-width:1000px;margin:0 auto 20px;padding:0;background:var(--gxp-ink);color:var(--gxp-text);border:2px solid var(--gxp-edge);border-radius:4px;overflow:hidden;font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif;letter-spacing:0;line-height:1.4;isolation:isolate}
.gx-play *,.gx-play *::before,.gx-play *::after{box-sizing:border-box;letter-spacing:0}
.gx-play [hidden]{display:none!important}
.gx-play noscript{display:block;padding:16px;font-size:14px}
.gx-play .gxp-stage{position:relative;width:100%;aspect-ratio:16/9;background:#05080f;overflow:hidden}
.gx-play .gxp-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#05080f}
.gx-play .gxp-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#05080f;transition:opacity .25s ease}
.gx-play .gxp-cover.gxp-gone{opacity:0;pointer-events:none}
.gx-play .gxp-cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 6%;margin:0;border:0;border-radius:0;max-width:none}
.gx-play .gxp-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,8,15,0) 45%,rgba(5,8,15,.55) 100%);pointer-events:none}
.gx-play button{font:inherit;margin:0;text-transform:none;letter-spacing:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;text-decoration:none;text-indent:0}
.gx-play button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.gx-play .gxp-start{position:relative;z-index:1;display:inline-flex;align-items:center;gap:10px;min-width:176px;min-height:64px;padding:12px 30px 12px 24px;margin-top:38%;border:3px solid #1a2233;border-radius:6px;background:var(--gxp-accent);color:#1a2233;font-size:24px;font-weight:800;line-height:1;box-shadow:0 6px 0 #1a2233,0 12px 24px rgba(0,0,0,.35)}
.gx-play .gxp-start:hover:not(:disabled){background:#ffe07d}
.gx-play .gxp-start:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 #1a2233}
.gx-play .gxp-start:disabled{visibility:hidden}
.gx-play .gxp-loading{position:absolute;z-index:1;left:50%;bottom:12%;width:min(220px,50%);height:8px;transform:translateX(-50%);border-radius:4px;background:rgba(255,255,255,.22);overflow:hidden}
.gx-play .gxp-loading i{display:block;width:40%;height:100%;border-radius:4px;background:var(--gxp-accent);animation:gxp-load 1s ease-in-out infinite alternate}
@keyframes gxp-load{from{transform:translateX(-10%)}to{transform:translateX(160%)}}
.gx-play .gxp-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 10px;background:var(--gxp-ink);border-top:2px solid var(--gxp-edge)}
.gx-play .gxp-top{display:none;align-items:center;gap:12px;height:44px;padding:0 8px;background:var(--gxp-ink);border-bottom:2px solid var(--gxp-edge)}
.gx-play .gxp-name{font-size:14px;font-weight:700;color:var(--gxp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gx-play .gxp-btn{display:inline-flex;align-items:center;gap:6px;min-width:44px;min-height:44px;padding:6px 14px 6px 10px;border:2px solid var(--gxp-edge);border-radius:4px;background:#1b2740;color:var(--gxp-text);font-size:14px;font-weight:700;line-height:1}
.gx-play .gxp-top .gxp-btn{min-height:36px}
.gx-play .gxp-btn:hover{background:#26365a}
.gx-play .gxp-btn svg{flex:none}

/* 拡大(全画面、またはページ内の拡大)。上の帯に「戻る」を出し続ける */
.gx-play.gxp-full{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0}
.gx-play.gxp-full .gxp-top{display:flex;flex:none;padding-top:env(safe-area-inset-top,0px);height:calc(44px + env(safe-area-inset-top,0px))}
.gx-play.gxp-full .gxp-stage{flex:1 1 auto;aspect-ratio:auto;height:auto;min-height:0}
.gx-play.gxp-full .gxp-foot{display:none}
.gx-play.gx-play-expanded{position:fixed;inset:0;z-index:2147483000;width:100vw;height:100vh;height:100dvh}
html.gxp-lock,html.gxp-lock body{overflow:hidden!important}
.gx-play:fullscreen{width:100vw;height:100vh}
.gx-play:-webkit-full-screen{width:100vw;height:100vh}

/* 縦に持ったスマホでは、縦長の枠にする */
@media (max-width:760px) and (orientation:portrait){
  .gx-play:not(.gxp-full) .gxp-stage{aspect-ratio:auto;height:min(78vh,150vw);height:min(78svh,150vw)}
  .gx-play .gxp-cover-img{object-fit:contain;object-position:50% 24%}
  .gx-play .gxp-cover::after{display:none}
  .gx-play .gxp-start{margin-top:62%}
}
@media (max-width:900px) and (orientation:landscape){
  .gx-play:not(.gxp-full) .gxp-stage{aspect-ratio:auto;height:86vh;height:86svh}
}
@media (prefers-reduced-motion:reduce){
  .gx-play .gxp-cover{transition:none}
  .gx-play .gxp-loading i{animation:none;width:100%;opacity:.6}
}
