/* N-TOWN GAMES のサイトの見た目。色はロゴ（紺・青・水色・オレンジ・赤）から。
   白い地に、うすい斜めの格子（ロゴのリボンが交わる形）。角の丸いカードと影、スクロールでふわっと出る動き。 */
:root {
  --navy: #0d1f33; --navy2: #15304f; --ink: #15233a; --ink2: #47586f; --ink3: #7b889b;
  --line: #e1e8f0; --line2: #cfd9e5; --bg: #ffffff; --bg2: #f3f7fb; --bg3: #e9f1f8;
  --blue: #317fbf; --blue2: #2366a8; --teal: #33abab; --teal2: #208c8c; --orange: #ef8a1e; --red: #eb5f26; --ng: #d04a3a; --ok: #1f8f6a;
  --grad: linear-gradient(115deg, #317fbf 0%, #2f98b9 48%, #33abab 100%);
  --grad-deep: linear-gradient(128deg, #0d1f33 0%, #16406f 46%, #237f95 78%, #2f9e9f 100%);
  --grad-warm: linear-gradient(115deg, #f39a2a 0%, #eb5f26 100%);
  --grad-text: linear-gradient(95deg, #317fbf 0%, #33abab 40%, #ef8a1e 72%, #eb5f26 100%);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(13, 31, 51, .05), 0 10px 26px -14px rgba(13, 31, 51, .22);
  --sh-2: 0 2px 6px rgba(13, 31, 51, .05), 0 26px 50px -24px rgba(13, 31, 51, .38);
  --f-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --f-dsp: "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Maru Gothic ProN", sans-serif;
  --f-en: "Montserrat", "Noto Sans JP", sans-serif;
  --wrap: 1200px; --gut: 24px; --head-h: 104px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M0 72L72 0' stroke='%23e4eef8' stroke-width='1.2'/%3E%3Cpath d='M0 0L72 72' stroke='%23e3f3f1' stroke-width='1.2'/%3E%3C/svg%3E");
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue2); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: .03em; }
p { margin: 0 0 1em; }
/* 左右の余白：画面のはしのシステムバー（env の inset）より内側に。帯の中の入れ物ごとにつける */
.wrap, .narrow { margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); }
.narrow { max-width: calc(820px + var(--gut) * 2); }
h1, h2, h3 { text-wrap: balance; }
.en { font-family: var(--f-en); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dsp { font-family: var(--f-dsp); font-weight: 800; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }

/* ---------- ボタン ---------- */
.btn {
  --bh: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: var(--bh); padding: 0 1.6em;
  border-radius: 999px; border: 0; font-weight: 700; font-size: 15.5px; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(49, 127, 191, .8); }
.btn-grad:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(49, 127, 191, .9); }
.btn-warm { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 24px -12px rgba(235, 95, 38, .75); }
.btn-warm:hover { color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5); }
.btn-white:hover { color: var(--blue2); }
.btn-ghost-w { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost-w:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn-line:hover { color: var(--blue2); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--navy2); }
.btn-sm { --bh: 40px; font-size: 14px; padding: 0 1.2em; }
.btn-lg { --bh: 62px; font-size: 17px; padding: 0 2.1em; }
.btn-block { width: 100%; }
.btn.is-off, .btn[aria-disabled="true"], .btn:disabled { background: #e6ebf1; color: #8492a6; box-shadow: none; cursor: not-allowed; transform: none; }

/* ---------- ヘッダー ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #fff; }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--head-h); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .25s ease; }
.head.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(13, 31, 51, .45); }
.head-in { height: 100%; display: flex; align-items: center; gap: 28px; }
/* ロゴ：マーク 76px と、N-TOWN／GAMES の2段の文字（ロゴの文字の組み方に合わせる）。どのページも同じ大きさ */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 10px 22px -12px rgba(13, 31, 51, .75); }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-en); }
.brand-word b { font-weight: 800; font-size: 30px; letter-spacing: .05em; }
.brand-word span { font-weight: 700; font-size: 14px; letter-spacing: .5em; color: var(--ink2); margin-top: 7px; }
.gnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.gnav a { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.3; border-radius: 12px; }
.gnav a small { font-family: var(--f-en); font-weight: 700; font-size: 9.5px; letter-spacing: .2em; color: var(--ink3); }
.gnav a:hover { background: var(--bg2); color: var(--blue2); }
.gnav a[aria-current="page"] { color: var(--blue2); }
.gnav a[aria-current="page"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px; background: var(--grad); }
.acct { display: flex; align-items: center; gap: 10px; flex: none; }
.acct .btn { --bh: 46px; font-size: 14.5px; padding: 0 1.3em; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--bg2); cursor: pointer; align-items: center; justify-content: center; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); position: relative; transition: transform .25s ease, background .25s ease; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; }
@media (max-width: 1020px) {
  .gnav { display: none; }
  .acct { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .drawer { display: block; position: fixed; inset: calc(var(--head-h) + env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 49; background: #fff; box-shadow: 0 24px 40px -24px rgba(13, 31, 51, .5); padding: 10px max(var(--gut), env(safe-area-inset-right, 0px)) 22px max(var(--gut), env(safe-area-inset-left, 0px)); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s; max-height: calc(100dvh - var(--head-h)); overflow: auto; }
  .menu-open .drawer { transform: none; opacity: 1; visibility: visible; }
  .drawer a { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
  .drawer a small { font-family: var(--f-en); font-size: 10px; letter-spacing: .2em; color: var(--ink3); }
  .drawer .drawer-acct { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .drawer .drawer-acct .btn { border-bottom: 0; justify-content: center; }
}
/* 640px 以下：ヘッダーのボタンは1つだけ（ログイン・アカウントはメニューの中）。ボタンの絵も出さない */
@media (max-width: 640px) {
  .acct .btn-line { display: none; }
  .acct .btn svg { display: none; }
}
@media (max-width: 520px) {
  :root { --head-h: 84px; --gut: 16px; }
  .head-in { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 60px; height: 60px; border-radius: 15px; }
  .brand-word b { font-size: 22px; } .brand-word span { font-size: 11px; letter-spacing: .42em; margin-top: 5px; }
  .acct { gap: 8px; }
  .acct .btn { --bh: 40px; padding: 0 .8em; font-size: 13px; }
}
/* 幅のせまいスマホ（370px 以下）：ロゴを少し小さく。350px 以下は、ヘッダーのボタンをメニューの中だけにする（ロゴとメニューのボタンがぶつからないように） */
@media (max-width: 370px) {
  .brand img { width: 52px; height: 52px; border-radius: 13px; }
  .brand-word b { font-size: 19px; } .brand-word span { font-size: 10px; letter-spacing: .38em; }
  .acct .btn { padding: 0 .75em; font-size: 12.5px; }
}
@media (max-width: 350px) { .acct { display: none; } .menu-btn { margin-left: auto; } }

/* ---------- 見出し ---------- */
.sec { padding: 104px 0; position: relative; }
.sec-tight { padding: 72px 0; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head .en { display: inline-block; font-size: 13px; color: var(--teal2); margin-bottom: 8px; }
.sec-head .en::before, .sec-head .en::after { content: ""; display: inline-block; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-warm); vertical-align: middle; margin: 0 12px 3px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 0; }
.sec-head p { color: var(--ink2); margin: 16px auto 0; max-width: 720px; }
.sec-head.left { text-align: left; }
.sec-head.left .en::before { display: none; }
.sec-head.left .en::after { display: none; }

/* ---------- ふわっと出る ----------
   中身は、はじめから見えている（読みこんだだけで全部読める）。画面に入ったときに、少し下からふわっと上がる */
.js .reveal { transform: translateY(26px) scale(.985); transition: transform .9s cubic-bezier(.2, .7, .2, 1), box-shadow .9s ease; }
.js .reveal.is-in { transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: none; } }

/* ---------- トップ：ヒーロー ---------- */
.hero { padding: 28px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
/* 左の札（経理部）：ページを開いたときに見えるよう、上にタイトル画面の名前と顔の列、すぐ下にタグと「体験版で遊ぶ」、その下にひとこと。
   名前と顔の列は、タイトル画面の絵（1440×900）を拡大して切り出す（幅 232%＝顔の列 x 430〜1010 が札の幅の約93%。左右で切れない）。
   札の地は、同じ絵をぼかして暗くしたもの */
.hero-visual { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); background: var(--navy); color: #fff; display: flex; flex-direction: column; isolation: isolate; }
.hvis-bg { position: absolute; z-index: -1; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(18px) saturate(1.1) brightness(.42); transform: scale(1.06); }
/* 見せる所：絵の y≈324〜790（顔の列の上の町から、名前・副題の下まで）。aspect と translate は、幅ごとに下で変える（下の端はいつも y≈790） */
.hvis-crop { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg3); }
.hvis-crop img { position: absolute; left: 50%; top: 0; width: 232%; max-width: none; height: auto; transform: translate(-50%, -36%); }
.hvis-crop::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(180deg, rgba(13, 31, 51, 0), rgba(13, 31, 51, .5)); pointer-events: none; }
.hero-tag { position: relative; z-index: 1; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 14px; padding: 20px 26px 0; }
.hvis-lead { margin: 14px 26px 14px; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.hvis-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 26px 24px; padding: 0; }
.hvis-facts li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 9px 12px 10px; font-size: 12.5px; line-height: 1.4; font-weight: 700; color: rgba(255, 255, 255, .86); }
.hvis-facts b { display: block; font-family: var(--f-en); font-weight: 800; font-size: 22px; line-height: 1.15; color: #fff; }
.hvis-facts b small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.hero-tag .ht-title { display: block; }
.hero-tag .ht-title small { display: block; font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .24em; opacity: .85; }
.hero-tag .ht-title b { font-size: 26px; letter-spacing: .06em; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.pill-new { background: var(--grad-warm); color: #fff; font-family: var(--f-en); letter-spacing: .16em; }
.hero-tag .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-glass { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-panel { position: relative; border-radius: var(--r-xl); background: var(--grad-deep); color: #fff; padding: 38px 38px 24px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sh-2); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; z-index: -1; right: -170px; top: -150px; width: 400px; height: 400px; background: url("../img/deco/ribbons.svg") center / contain no-repeat; opacity: .2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; letter-spacing: .14em; margin: 0 0 14px; color: rgba(255, 255, 255, .92); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-warm); }
.hero-title { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.24; margin: 0 0 16px; letter-spacing: .04em; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.hero-lead { font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, .9); margin: 0 0 20px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-news { margin-top: auto; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 18px 20px 12px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .55); }
.mini-h { display: flex; align-items: baseline; gap: 12px; font-size: 14px; margin: 0 0 6px; color: var(--ink2); }
.mini-h .en { font-size: 15px; color: var(--navy); letter-spacing: .16em; }
.news-mini { list-style: none; margin: 0; padding: 0; }
.news-mini li + li { border-top: 1px dashed var(--line2); }
.news-mini a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 9px 2px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.55; }
.news-mini a:hover .t { color: var(--blue2); text-decoration: underline; }
.news-mini time { font-family: var(--f-en); font-weight: 600; font-size: 12.5px; color: var(--ink3); letter-spacing: .04em; padding-top: 1px; }
.news-mini .t { grid-column: 2; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--blue2); }
.more::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 11px no-repeat, var(--grad); transition: transform .2s ease; }
.more:hover::after { transform: translateX(3px); }
.hero-news .more { float: right; margin-top: 2px; }
.hero-news::after { content: ""; display: block; clear: both; }
/* 2列（1021〜1279px）は札が細く、紺の札が長くなるので、左の札の絵を少し高くして下があかないように */
@media (min-width: 1021px) and (max-width: 1279px) {
  .hvis-crop { aspect-ratio: 1.1 / 1; }
  .hvis-crop img { transform: translate(-50%, -25.1%); }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 34px 28px 24px; }
  /* たて1列：左の札は中身の高さ。絵は横長に（y≈441〜790） */
  .hvis-crop { aspect-ratio: 16 / 9; }
  .hvis-crop img { transform: translate(-50%, -49%); }
}
@media (max-width: 520px) {
  .hero { padding-top: 14px; }
  .hero-grid { gap: 14px; }
  .hero-visual { border-radius: var(--r-lg); }
  /* スマホ：絵は y≈402〜790。タグの下の「体験版で遊ぶ」は横いっぱい */
  .hvis-crop { aspect-ratio: 16 / 10; }
  .hvis-crop img { transform: translate(-50%, -44.7%); }
  .hero-tag { padding: 16px 16px 0; gap: 10px; }
  .hero-tag .btn { flex: 1 1 100%; }
  .hvis-lead { margin: 12px 16px 12px; font-size: 14px; }
  .hvis-facts { margin: 0 16px 18px; gap: 8px; }
  .hvis-facts li { padding: 8px 9px 9px; font-size: 11.5px; border-radius: 12px; }
  .hvis-facts b { font-size: 19px; }
  .hero-panel { border-radius: var(--r-lg); padding: 30px 22px 20px; }
  .hero-btns .btn { flex: 1 1 100%; }
}

/* ---------- トップ：紹介動画の段（いちばん上の2列のすぐ下。動画のファイルがあるときだけ＝site/data/games.mjs の PROMO_VIDEO） ----------
   16:9 の大きな枠（いちばん広くて 960px）。はじめはポスターの絵と再生ボタンだけ。押すと site.js が <video> に自分のサーバーの mp4 を読みこんで再生する */
.promo { padding: 88px 0 16px; }
.promo .sec-head { margin-bottom: 30px; }
.promo-note { font-size: 14px; }
.hv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); box-shadow: var(--sh-2); }
.promo-frame { max-width: 960px; margin: 0 auto; }
.hv-btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.hv-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hv-play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: rgba(13, 31, 51, .8); box-shadow: 0 0 0 5px rgba(255, 255, 255, .92), 0 16px 34px -10px rgba(0, 0, 0, .6); display: grid; place-items: center; transition: transform .2s ease, background-color .2s ease; }
.hv-play svg { width: 44px; height: 44px; fill: #fff; margin-left: 5px; }
.hv-btn:not(.is-off):hover img { transform: scale(1.03); }
.hv-btn:not(.is-off):hover .hv-play, .hv-btn:focus-visible .hv-play { transform: scale(1.08); background-color: var(--orange); }
.hv-btn.is-off { cursor: default; }
.hv-btn:focus-visible { outline-offset: -6px; border-radius: var(--r-xl); }
.hv-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; background: #000; object-fit: contain; }
@media (max-width: 520px) {
  .promo { padding-top: 64px; }
  .hv-frame { border-radius: var(--r-lg); }
  .hv-play { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
  .hv-play svg { width: 32px; height: 32px; }
}

/* ---------- トップ：キャッチコピー ---------- */
.catch { padding: 120px 0 112px; text-align: center; position: relative; overflow: hidden; }
.catch .en { font-size: 13px; color: var(--ink3); letter-spacing: .4em; margin: 0 0 16px; }
/* 大きな文字は2行（知識だけでなく、体験をしよう。／遊んで身につくシミュレーション。）。長い2行め（16字）が1行に入るよう、
   1200px の枠より広く使い、画面の幅に合わせて大きさを決める（いちばん大きくて 112px）。
   スマホでは、意味の切れ目（.nw の組）だけで折り返す。いちばん長い組（シミュレーション。9字）が入るよう、せまい画面では小さくする */
.catch .wrap { max-width: none; }
.catch-big { font-size: min(clamp(44px, calc((100vw - var(--gut) * 2 - 24px) / 16.6), 112px), calc((100vw - var(--gut) * 2) / 9.5)); line-height: 1.12; width: fit-content; margin: 0 auto 30px; letter-spacing: .02em; padding-bottom: .06em; }
.catch-big .nw { white-space: nowrap; }
.catch-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink2); line-height: 2; margin: 0; }
.catch-deco { position: absolute; z-index: -1; width: 380px; opacity: .14; pointer-events: none; }
.catch-deco.l { left: -110px; top: 40px; transform: rotate(-12deg); }
.catch-deco.r { right: -120px; bottom: 10px; transform: rotate(14deg); }

/* ---------- トップ：N-TOWN GAMES とは ---------- */
.about { padding: 70px 0 0; }
.about-band { position: relative; background: var(--grad-deep); color: #fff; border-radius: 48px; overflow: hidden; isolation: isolate; }
.about-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: radial-gradient(circle at 85% 20%, rgba(239, 138, 30, .22), transparent 40%), radial-gradient(circle at 10% 90%, rgba(51, 171, 171, .35), transparent 45%); }
.about-band::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 460px; height: 460px; background: url("../img/deco/ribbons.svg") center / contain no-repeat; opacity: .16; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 40px; padding: 80px 64px 0; align-items: end; }
.about .sec-en { font-size: 13px; letter-spacing: .32em; color: #9fe0dc; margin: 0 0 10px; }
.about-h { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.12; margin: 0 0 28px; }
.about-h .q { color: var(--orange); }
.about-text > p { color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 2.05; max-width: 640px; }
.pillars { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pillars li { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 18px 14px 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pillars svg { width: 34px; height: 34px; margin-bottom: 10px; stroke: #fff; }
.pillars b { display: block; font-size: 17px; margin-bottom: 2px; }
.pillars b small { display: block; font-family: var(--f-en); font-weight: 700; font-size: 10px; letter-spacing: .2em; color: #9fe0dc; margin-top: 2px; }
.pillars span { display: block; font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.about-cast { position: relative; align-self: stretch; min-height: 460px; }
.about-cast .c-main { position: absolute; right: 6%; bottom: 0; width: min(100%, 330px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.about-cast .c-sub { position: absolute; left: 2%; bottom: 0; width: 32%; max-width: 140px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .3)); }
.about-cast .c-bubble { position: absolute; right: 8%; top: 6%; background: #fff; color: var(--navy); font-weight: 800; font-family: var(--f-dsp); border-radius: 22px; padding: 12px 18px; font-size: 16px; line-height: 1.5; box-shadow: var(--sh-1); }
.about-cast .c-bubble::after { content: ""; position: absolute; left: 28px; bottom: -10px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.about-text { padding-bottom: 72px; }
.about-note { margin: 0; padding: 18px 64px 22px; font-size: 13px; color: rgba(255, 255, 255, .8); border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(13, 31, 51, .22); }
@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; padding: 56px 40px 0; }
  .about-text { padding-bottom: 0; }
  .about-note { padding: 16px 40px 20px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-cast { min-height: 300px; }
  .about-cast .c-main { right: 50%; transform: translateX(50%); bottom: 0; width: 220px; }
  .about-cast .c-sub { left: 6%; bottom: 0; width: 100px; }
}
@media (max-width: 520px) { .about-band { border-radius: 32px; } .about-grid { padding: 44px 22px 0; } .about-note { padding: 14px 22px 18px; } .pillars li { padding: 14px 12px; } .about-cast .c-bubble { font-size: 14px; right: 2%; } }

/* ---------- ゲームのカード ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.gcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; border: 1px solid var(--line); }
.gcard:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.gcard-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg3); }
.gcard-img img, .gcard-img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gcard:hover .gcard-img img { transform: scale(1.05); }
.st { position: absolute; left: 14px; top: 14px; z-index: 2; height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.st-sale { background: var(--grad-warm); color: #fff; }
.st-trial { background: var(--grad); color: #fff; }
.st-coming { background: #fff; color: var(--navy); }
.st-dev { background: var(--navy); color: #fff; }
.gcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.gcard-en { font-size: 11px; color: var(--ink3); letter-spacing: .16em; margin: 0 0 2px; }
.gcard h3 { font-size: 21px; margin: 0 0 8px; }
.gcard h3 a { color: inherit; text-decoration: none; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gcard-lead { font-size: 14px; line-height: 1.8; color: var(--ink2); margin: 0 0 14px; }
.gcard .note { font-size: 12px; color: var(--ink3); margin: -8px 0 12px; }
.tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
.gcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); min-height: 58px; }
.gcard-foot .price b { font-size: 20px; }
.gcard-foot .go { position: relative; z-index: 2; }
.gcard.is-soon .gcard-foot { color: var(--ink3); font-size: 13px; }
@media (max-width: 1020px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .game-grid { grid-template-columns: 1fr; gap: 18px; } }

/* 値段 */
.price { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price b { font-family: var(--f-en); font-weight: 800; font-size: 1.6em; letter-spacing: .01em; }
.price small { font-size: .78em; color: var(--ink2); font-weight: 700; }
.price-ex { display: inline-block; font-size: 12.5px; color: var(--ink3); margin-left: 10px; white-space: nowrap; }
.price.tbd { font-size: 15px; color: var(--ink2); }

/* ---------- 特集（経理部） ---------- */
.feature { background: linear-gradient(180deg, rgba(233, 241, 248, 0) 0%, var(--bg3) 22%, var(--bg3) 78%, rgba(233, 241, 248, 0) 100%); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.shot-main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 16 / 10; background: #dfe8f1; }
.shot-main img { width: 100%; height: 100%; object-fit: cover; }
.shot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.shot-row button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; box-shadow: var(--sh-1); background: #dfe8f1; outline-offset: 2px; position: relative; }
.shot-row button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shot-row button:hover img { transform: scale(1.06); }
.shot-row button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--orange); }
.feature-body .en { font-size: 13px; color: var(--teal2); letter-spacing: .3em; margin: 0 0 8px; }
.feature-body h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin: 0 0 16px; }
.feature-body h2 small { display: block; font-size: .5em; color: var(--ink2); letter-spacing: .08em; margin-bottom: 4px; }
.feature-catch { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 22px; line-height: 1.8; }
.facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts li { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--sh-1); display: flex; align-items: baseline; gap: 8px; }
.facts b { font-family: var(--f-en); font-weight: 800; font-size: 30px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { font-size: 13.5px; font-weight: 700; color: var(--ink2); line-height: 1.4; }
.pricebox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 18px; }
.pricebox .label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.feature-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .shot-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .facts b { font-size: 26px; } .feature-btns .btn { flex: 1 1 100%; } }

/* ---------- お知らせの一覧 ---------- */
.news-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.news-list > li + li { border-top: 1px solid var(--line); }
.news-list a.row { display: grid; grid-template-columns: 120px 104px 1fr 24px; align-items: center; gap: 12px; padding: 20px 26px; text-decoration: none; color: var(--ink); transition: background-color .2s ease; }
.news-list a.row:hover { background: var(--bg2); }
.news-list a.row:hover .t { color: var(--blue2); }
.news-list time { font-family: var(--f-en); font-weight: 600; font-size: 14px; color: var(--ink3); letter-spacing: .04em; }
.cat { display: inline-flex; justify-content: center; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg3); color: var(--blue2); white-space: nowrap; }
.cat.c-game { background: #fff1e3; color: #c4620c; }
.cat.c-mente { background: #fde9e4; color: #c0431a; }
.news-list .t { font-weight: 700; line-height: 1.6; }
.news-list .arr { width: 22px; height: 22px; border-radius: 50%; background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23317fbf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.news-foot { text-align: center; margin-top: 28px; }
@media (max-width: 640px) {
  .news-list a.row { grid-template-columns: auto 1fr; gap: 4px 10px; padding: 16px 18px; }
  .news-list .t { grid-column: 1 / -1; }
  .news-list .arr { display: none; }
}
/* お知らせのページ（本文つき） */
.news-full { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.news-full article { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); padding: 26px 30px; scroll-margin-top: calc(var(--head-h) + 20px); }
.news-full article:target { box-shadow: 0 0 0 3px var(--orange), var(--sh-1); }
.news-full .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.news-full h2 { font-size: 20px; margin: 0 0 10px; }
.news-full .body { color: var(--ink2); white-space: pre-line; margin: 0; }
.news-full .body + .more { margin-top: 12px; }
@media (max-width: 520px) { .news-full article { padding: 20px 18px; } }

/* ---------- 下のさそい ---------- */
.cta { position: relative; margin: 0 auto 96px; border-radius: 40px; overflow: hidden; background: var(--grad); color: #fff; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 340px; height: 340px; background: url("../img/deco/ribbons.svg") center / contain no-repeat; opacity: .28; }
.cta-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 44px 52px; }
.cta img { width: 150px; margin: -20px 0 -60px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .3)); }
.cta h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .9); }
@media (max-width: 820px) { .cta-in { grid-template-columns: 1fr; text-align: center; padding: 36px 24px 32px; } .cta img { margin: 0 auto -10px; width: 120px; } .cta .btn { width: 100%; } .cta { border-radius: 28px; } }

/* ---------- フッター ---------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, .82); padding: 72px 0 0; font-size: 14px; position: relative; overflow: hidden; }
.foot::before { content: ""; position: absolute; right: -80px; top: -100px; width: 360px; height: 360px; background: url("../img/deco/ribbons.svg") center / contain no-repeat; opacity: .08; }
.foot-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-bottom: 48px; }
.foot-brand img { width: 150px; border-radius: 18px; margin-bottom: 14px; }
.foot-brand p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.foot-nav h3 { font-family: var(--f-en); font-size: 12px; letter-spacing: .28em; color: #8fd3cf; margin: 0 0 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li + li { margin-top: 8px; }
.foot-nav a { color: #fff; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.foot-bottom p { margin: 0; }
.foot-bottom .copy { font-family: var(--f-en); letter-spacing: .08em; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pagetop { position: fixed; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--navy); background: #fff; box-shadow: var(--sh-2); font-family: var(--f-en); font-weight: 800; font-size: 10.5px; line-height: 1.25; letter-spacing: .14em; text-align: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.pagetop::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 3px; background: var(--grad-text); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pagetop span::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 2px; border-left: 3px solid var(--orange); border-top: 3px solid var(--orange); transform: rotate(45deg) translate(2px, 2px); border-radius: 2px; }
.pagetop.is-on { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { color: var(--blue2); transform: translateY(-3px); }
@media (max-width: 520px) { .pagetop { width: 56px; height: 56px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 9px; } }

/* ---------- 下のページの見出し ---------- */
.phead { padding: 64px 0 40px; position: relative; }
.crumb { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--ink3); }
.crumb li + li::before { content: "/"; margin: 0 10px; color: var(--line2); }
.crumb a { color: var(--ink2); text-decoration: none; }
.crumb a:hover { color: var(--blue2); text-decoration: underline; }
.phead .en { font-size: 13px; letter-spacing: .3em; color: var(--teal2); margin: 0 0 6px; }
.phead h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 0; }
.phead p.lead { margin: 14px 0 0; color: var(--ink2); max-width: 760px; }

/* 文書のページ（規約・特商法・プライバシー） */
.doc { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); padding: 46px 52px; margin-bottom: 96px; }
.doc h2 { font-size: 20px; margin: 2.2em 0 .7em; padding-left: 14px; border-left: 4px solid var(--teal); line-height: 1.5; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16.5px; margin: 1.6em 0 .5em; }
.doc p, .doc li { color: #2a3a50; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin: .25em 0; }
.doc .updated { color: var(--ink3); font-size: 13.5px; margin-top: 2.4em; }
.doc .todo { background: #fff4e5; color: #9a4b00; border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: .92em; }
.dl { margin: 0; border-top: 1px solid var(--line); }
.dl > div { display: grid; grid-template-columns: 230px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 700; color: var(--navy); }
.dl dd { margin: 0; color: #2a3a50; }
.dl dd p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .doc { padding: 28px 20px; border-radius: 20px; } .dl > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 2px; } }

/* ---------- フォーム ---------- */
.form-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); border: 1px solid var(--line); padding: 40px 42px; }
.auth { display: grid; place-items: start center; padding-block: 56px 104px; }
.auth .form-card { width: min(100%, 480px); }
.auth h1 { font-size: 26px; text-align: center; margin: 0 0 8px; }
.auth .sub { text-align: center; color: var(--ink2); font-size: 14px; margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 6px; line-height: 1.6; }
.input, .select, .textarea { width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fbfdff; padding: 10px 14px; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(49, 127, 191, .16); background: #fff; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg2); color: var(--ink2); font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.msg { border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.msg-ng { background: #fdecea; color: #a3281b; }
.msg-ok { background: #e6f6ef; color: #146b4c; }
.msg-info { background: var(--bg3); color: var(--navy2); }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 520px) { .form-card { padding: 28px 20px; border-radius: 20px; } .auth { padding-block: 28px 72px; } }

/* マイゲーム */
.my-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.my-card { display: grid; grid-template-columns: 220px 1fr; gap: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); overflow: hidden; }
.my-card .img { aspect-ratio: 16 / 10; height: 100%; overflow: hidden; background: var(--bg3); }
.my-card .img img { width: 100%; height: 100%; object-fit: cover; }
.my-card .body { padding: 18px 20px; display: flex; flex-direction: column; }
.my-card h3 { font-size: 18px; margin: 0 0 4px; }
.my-card .meta { font-size: 12.5px; color: var(--ink3); margin: 0 0 12px; }
.my-card .btn { margin-top: auto; align-self: flex-start; }
.empty { text-align: center; background: #fff; border-radius: var(--r-lg); border: 1.5px dashed var(--line2); padding: 48px 20px; color: var(--ink2); }
@media (max-width: 820px) { .my-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .my-card { grid-template-columns: 1fr; } }

/* ---------- ゲームのページ ---------- */
.ghero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); }
.ghero-bg { position: absolute; inset: 0; z-index: -2; }
.ghero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ghero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 31, 51, .92) 0%, rgba(13, 31, 51, .72) 38%, rgba(13, 31, 51, .1) 70%), linear-gradient(0deg, rgba(13, 31, 51, .7), rgba(13, 31, 51, 0) 40%); }
.ghero-in { min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding-block: 56px 64px; }
.ghero .crumb, .ghero .crumb a { color: rgba(255, 255, 255, .75); }
.ghero .crumb li + li::before { color: rgba(255, 255, 255, .35); }
.ghero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ghero .badges .st { position: static; }
.ghero .en { font-size: 13px; letter-spacing: .3em; color: #9fe0dc; margin: 0 0 6px; }
.ghero h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.1; margin: 0 0 18px; text-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.ghero h1 small { display: block; font-size: .42em; letter-spacing: .1em; margin-bottom: 8px; }
.ghero .g-catch { font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; line-height: 1.8; margin: 0 0 26px; max-width: 560px; }
.ghero .g-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 20px; }
.ghero .price { color: #fff; } .ghero .price small, .ghero .price-ex { color: rgba(255, 255, 255, .75); }
.ghero .g-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ghero .g-note { font-size: 13px; color: rgba(255, 255, 255, .78); margin: 14px 0 0; }
@media (max-width: 820px) {
  .ghero::before { background: linear-gradient(0deg, rgba(13, 31, 51, .95) 0%, rgba(13, 31, 51, .78) 52%, rgba(13, 31, 51, .2) 100%); }
  .ghero-in { min-height: 0; padding-block: 220px 40px; }
  .ghero .g-btns .btn { flex: 1 1 100%; }
}
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.intro p { font-size: 16.5px; line-height: 2.05; }
.big-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.big-facts li { background: #fff; border-radius: 20px; box-shadow: var(--sh-1); padding: 22px 20px; border: 1px solid var(--line); }
.big-facts b { display: block; font-family: var(--f-en); font-weight: 800; font-size: 44px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.big-facts b small { font-size: .4em; font-family: var(--f-body); }
.big-facts span { font-weight: 700; color: var(--ink2); font-size: 14px; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; gap: 28px; } }

.feat { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feat + .feat { margin-top: 96px; }
.feat.rev .feat-media { order: 2; }
.feat-media { position: relative; }
.feat-media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 16 / 10; background: #dfe8f1; }
.feat-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.feat-media .sub { position: absolute; width: 46%; right: -18px; bottom: -34px; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-2); border: 4px solid #fff; aspect-ratio: 16 / 10; }
.feat.rev .feat-media .sub { right: auto; left: -18px; }
.feat-media .sub img { width: 100%; height: 100%; object-fit: cover; }
.feat-no { font-family: var(--f-en); font-weight: 800; font-size: 15px; letter-spacing: .2em; color: var(--orange); margin: 0 0 8px; }
.feat h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.4; margin: 0 0 16px; }
.feat p { color: #2c3c53; line-height: 2; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy2); }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: 40px; } .feat.rev .feat-media { order: 0; } .feat + .feat { margin-top: 72px; } .feat-media .sub { right: 10px; } .feat.rev .feat-media .sub { left: 10px; } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; box-shadow: var(--sh-1); background: #dfe8f1; position: relative; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button span { position: absolute; left: 10px; bottom: 10px; background: rgba(13, 31, 51, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gallery .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: 100%; }
.lightbox::backdrop { background: rgba(8, 18, 32, .86); }
.lightbox img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 700; }
.lightbox .x { position: absolute; right: 8px; top: 8px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 24px; line-height: 1; cursor: pointer; }

.cast-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cast-card { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--sh-1); padding: 16px 12px 16px; text-align: center; position: relative; overflow: hidden; }
.cast-card::before { content: ""; position: absolute; left: -20%; right: -20%; top: -40%; height: 70%; background: radial-gradient(ellipse at center, rgba(51, 171, 171, .16), transparent 70%); }
.cast-card img { height: 150px; width: auto; margin: 0 auto 10px; position: relative; object-fit: contain; }
.cast-card b { display: block; font-size: 15.5px; }
.cast-card span { display: block; font-size: 12px; color: var(--ink3); line-height: 1.5; margin-top: 2px; }
.cast-card.me { border-color: rgba(239, 138, 30, .5); }
.cast-card.me::after { content: "あなた"; position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad-warm); border-radius: 999px; padding: 1px 8px; }
@media (max-width: 1020px) { .cast-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cast-card img { height: 120px; } }

.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.year { display: grid; grid-template-columns: 170px 1fr; background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.year-h { padding: 20px; color: #fff; background: var(--grad); display: flex; flex-direction: column; justify-content: center; }
.year:nth-child(2) .year-h { background: linear-gradient(115deg, #2f8fbb, #33abab); }
.year:nth-child(3) .year-h { background: linear-gradient(115deg, #2b9ea6, #3fae8d); }
.year:nth-child(4) .year-h { background: linear-gradient(115deg, #e9902a, #e8722b); }
.year:nth-child(5) .year-h { background: linear-gradient(115deg, #eb6a2c, #d84a25); }
.year-h small { font-family: var(--f-en); font-weight: 800; letter-spacing: .2em; font-size: 11px; opacity: .9; }
.year-h b { font-size: 22px; line-height: 1.3; }
.year-h span { font-size: 13px; opacity: .92; }
.year-b { padding: 16px 22px; }
.year-b ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.year-b li { font-size: 13.5px; padding: 4px 10px; border-radius: 8px; background: var(--bg2); color: #2c3c53; }
.year-b li em { font-style: normal; font-family: var(--f-en); font-weight: 700; color: var(--ink3); font-size: 11.5px; margin-right: 6px; }
.year-b li.trial { background: #e7f6f4; box-shadow: inset 0 0 0 1px rgba(51, 171, 171, .45); }
.legend { font-size: 13px; color: var(--ink2); margin: 14px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: #e7f6f4; box-shadow: inset 0 0 0 1px rgba(51, 171, 171, .6); vertical-align: -1px; margin-right: 6px; }
@media (max-width: 720px) { .year { grid-template-columns: 1fr; } .year-h { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; } }

.trialbox { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.trialbox .tb-body { padding: 40px 44px; }
.trialbox .tb-side { background: var(--grad-deep); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.trialbox h3 { font-size: 26px; margin: 0 0 14px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; line-height: 1.7; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad); }
.tb-side .price { color: #fff; } .tb-side .price small, .tb-side .price-ex { color: rgba(255, 255, 255, .78); }
.tb-side .label { font-size: 13px; letter-spacing: .1em; color: #9fe0dc; font-weight: 700; }
.tb-side .fine { font-size: 12.5px; color: rgba(255, 255, 255, .78); margin: 0; }
.tb-side .owned { font-weight: 700; color: #b9f0e2; }
@media (max-width: 900px) { .trialbox { grid-template-columns: 1fr; } .trialbox .tb-body, .trialbox .tb-side { padding: 28px 24px; } }

.spec { margin: 0; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { padding: 16px 22px; background: var(--bg2); font-weight: 700; color: var(--navy); font-size: 14.5px; }
.spec dd { padding: 16px 22px; margin: 0; font-size: 14.5px; color: #2c3c53; }
.spec dd p { margin: 0 0 .4em; } .spec dd p:last-child { margin: 0; }
@media (max-width: 720px) { .spec > div { grid-template-columns: 1fr; } .spec dt { padding: 12px 18px 6px; background: #fff; color: var(--teal2); font-size: 13px; } .spec dd { padding: 0 18px 14px; } }

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-en); font-weight: 800; color: var(--teal2); margin-right: 12px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink3); border-bottom: 2.5px solid var(--ink3); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 20px 50px; color: #2c3c53; }
.faq .a p:last-child { margin: 0; }

.credits { font-size: 12.5px; color: var(--ink3); line-height: 1.9; }

/* 体験版のバナー（ゲームの画面の上） */
.notice { background: #fff8ec; border: 1px solid #f6d6a6; color: #7a4a0b; border-radius: 14px; padding: 12px 16px; font-size: 14px; }

/* 購入の確認 */
.order { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 96px; }
.order-item { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.order-item img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.order-item h2 { font-size: 20px; margin: 0 0 4px; }
.order .dl > div { grid-template-columns: 170px 1fr; padding: 12px 2px; font-size: 14.5px; }
.order-pay { position: sticky; top: calc(var(--head-h) + 20px); }
.order-pay .total { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } .order-pay { position: static; } .order-item { grid-template-columns: 1fr; } }

/* ヒーローの写真の上の印・スマホの写真 */
.pills .st { position: static; box-shadow: none; }
.phones { display: flex; justify-content: center; gap: 22px; }
.phones img { width: min(44%, 230px); border-radius: 30px; border: 8px solid var(--navy); box-shadow: var(--sh-2); background: var(--navy); }
.phones img:nth-child(2) { margin-top: 48px; }
.sec-head.left .en { color: var(--teal2); }
.gcard-foot > span:first-child { min-width: 0; }
.gcard-foot .price-ex { display: block; margin: 0; }
.news-mini .empty, .news-list .empty, .news-full .empty { list-style: none; padding: 16px; color: var(--ink3); }

/* 小さな印 */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; }
.loading-dots::after { content: "…"; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
