/* ゲートローグ 公式サイト（2026-09-30）
   世界：夜のゲートと金の装飾。紺と青緑の光（ゲートの渦）と、金の飾り枠（ゲームのUIと同じ）。本文は丸ゴシック、見出しは明朝、英字は Cinzel。
   レイアウト：縦に章が続く一枚の巻物。各章の頭に「金の見出し飾り」、背景は章ごとの絵を暗く敷く。 */
[hidden] { display: none !important; }
:root {
  --night: #061218;
  --deep: #0b2530;
  --deep2: #103440;
  --teal: #3fe0d0;
  --teal-d: #1c8f88;
  --gold: #e9c56f;
  --gold2: #fff1c2;
  --gold-d: #9c7a36;
  --ink: #f4ecd8;
  --ink-2: #b9c6c4;
  --parch: #efe2c2;
  --parch-ink: #3b2a14;
  --crimson: #c8404f;
  --f-disp: 'Shippori Mincho B1', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --f-body: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --f-en: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; letter-spacing: .03em; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- ゲートの扉（はじめの演出） ---------- */
.gate-intro { position: fixed; inset: 0; z-index: 100; background: #02080b; display: grid; place-items: center; overflow: hidden; }
.gate-intro[hidden] { display: none; }
.gate-intro .gi-art { position: absolute; inset: -4%; background: url(../img/art/gate_portal_v1.jpg) center/cover; filter: brightness(.55) saturate(1.1); transform: scale(1.08); transition: transform 2.2s cubic-bezier(.6, 0, .2, 1), filter 2.2s; }
.gate-intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-intro .gi-center { position: relative; text-align: center; display: grid; gap: 22px; justify-items: center; padding: 20px; }
.gate-intro .gi-logo { width: min(640px, 80vw); filter: drop-shadow(0 0 30px rgba(63, 224, 208, .45)) drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); opacity: 0; transform: scale(1.1); animation: giLogo 1.6s .4s forwards cubic-bezier(.2, .8, .2, 1); }
@keyframes giLogo { to { opacity: 1; transform: scale(1); } }
.gate-intro .gi-enter { font-family: var(--f-en); font-weight: 700; letter-spacing: .5em; font-size: 15px; color: var(--gold2); background: rgba(6, 20, 27, .55); border: 1px solid var(--gold); padding: 16px 34px 16px 42px; border-radius: 40px; opacity: 0; animation: giLogo 1s 1.6s forwards; box-shadow: 0 0 30px rgba(233, 197, 111, .25), inset 0 0 20px rgba(63, 224, 208, .15); transition: background .3s, box-shadow .3s; }
.gate-intro .gi-enter:hover { background: rgba(20, 70, 80, .7); box-shadow: 0 0 50px rgba(63, 224, 208, .5); }
.gate-intro .gi-enter small { display: block; font-family: var(--f-disp); letter-spacing: .3em; font-size: 13px; margin-top: 4px; color: var(--ink); }
.gate-intro .gi-skip { position: absolute; right: 18px; bottom: 16px; font-size: 12px; color: var(--ink-2); background: none; border: 0; letter-spacing: .2em; }
.gate-intro.opening .gi-art { transform: scale(2.6); filter: brightness(1.4) saturate(1.3); }
.gate-intro.opening .gi-center { transition: opacity .5s; opacity: 0; }
.gate-intro .gi-white { position: absolute; inset: 0; background: radial-gradient(circle, #fff 0%, #dffcf8 40%, rgba(255, 255, 255, 0) 70%); opacity: 0; transition: opacity 1s 1.2s; pointer-events: none; }
.gate-intro.opening .gi-white { opacity: 1; }
.gate-intro.gone { transition: opacity .8s; opacity: 0; pointer-events: none; }

/* ---------- ヘッダー ---------- */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, box-shadow .35s; }
.site-head.solid { background: linear-gradient(180deg, rgba(4, 14, 19, .96), rgba(6, 22, 29, .9)); box-shadow: 0 1px 0 rgba(233, 197, 111, .35), 0 10px 30px rgba(0, 0, 0, .4); backdrop-filter: blur(6px); }
.site-head .bar { display: flex; align-items: center; gap: 20px; height: 64px; padding-inline: var(--gut); }
.site-head .brand img { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
.site-head nav { margin-left: auto; display: flex; gap: 4px; }
.site-head nav a { font-family: var(--f-en); font-weight: 700; font-size: 13px; letter-spacing: .16em; color: var(--ink); padding: 8px 12px; position: relative; display: grid; justify-items: center; line-height: 1.2; }
.site-head nav a small { font-family: var(--f-body); font-weight: 500; font-size: 10px; letter-spacing: .1em; color: var(--ink-2); }
.site-head nav a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; background: var(--gold); transition: width .3s, left .3s; }
.site-head nav a:hover::after, .site-head nav a[aria-current="page"]::after { width: 60%; left: 20%; }
.site-head .tools { display: flex; gap: 8px; align-items: center; }
.btn-bgm { border: 1px solid rgba(233, 197, 111, .6); background: rgba(6, 20, 27, .5); border-radius: 30px; padding: 6px 14px 6px 12px; font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--gold2); display: flex; align-items: center; gap: 8px; }
.btn-bgm .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.btn-bgm .eq i { width: 2px; height: 4px; background: var(--gold); }
.btn-bgm.on .eq i { animation: eq 0.9s infinite ease-in-out; }
.btn-bgm.on .eq i:nth-child(2) { animation-delay: .2s; } .btn-bgm.on .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.menu-btn { display: none; background: none; border: 1px solid rgba(233, 197, 111, .6); border-radius: 8px; width: 42px; height: 38px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--gold2); margin: 4px auto; transition: transform .3s, opacity .3s; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .site-head nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: rgba(4, 14, 19, .97); padding: 10px var(--gut) 24px; gap: 0; transform: translateY(-120%); transition: transform .35s; border-bottom: 1px solid var(--gold-d); }
  .site-head nav a { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(233, 197, 111, .15); }
  .site-head.open nav { transform: none; }
  .site-head.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-head.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-head.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- 見出し飾り ---------- */
.sec { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.sec-title { text-align: center; margin: 0 0 clamp(36px, 5vw, 64px); display: grid; justify-items: center; gap: 6px; }
.sec-title .en { font-family: var(--f-en); font-weight: 900; font-size: clamp(34px, 5.6vw, 64px); letter-spacing: .14em; line-height: 1; background: linear-gradient(180deg, #fff8dd 15%, var(--gold) 55%, var(--gold-d) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)); }
.sec-title .ja { font-family: var(--f-disp); font-weight: 800; font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .4em; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.sec-title .ja::before, .sec-title .ja::after { content: ""; width: 60px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Cpath d='M0 5h44' stroke='%23e9c56f' stroke-width='1'/%3E%3Cpath d='M48 5l5-4 5 4-5 4z' fill='%23e9c56f'/%3E%3C/svg%3E") no-repeat center/contain; }
.sec-title .ja::after { transform: scaleX(-1); }
.lead { max-width: 46em; margin: 0 auto; text-align: center; color: var(--ink); font-size: clamp(15px, 1.5vw, 17px); }
.frame { position: relative; border: 1px solid rgba(233, 197, 111, .55); border-radius: var(--radius); background: linear-gradient(180deg, rgba(13, 42, 52, .9), rgba(7, 24, 31, .92)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 40px rgba(63, 224, 208, .06); }
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(233, 197, 111, .22); border-radius: calc(var(--radius) - 5px); pointer-events: none; }
.sec-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.28) saturate(.9); }
.sec-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(6, 18, 24, .2) 20%, rgba(6, 18, 24, .2) 80%, var(--night) 100%); }
.reveal { transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.pending { opacity: 0; transform: translateY(28px); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-disp); font-weight: 800; letter-spacing: .12em; font-size: 16px; padding: 14px 30px; border-radius: 40px; border: 1px solid var(--gold); color: var(--gold2); background: rgba(6, 20, 27, .6); transition: background .3s, color .3s, box-shadow .3s, transform .2s; }
.btn:hover { background: rgba(28, 90, 96, .7); color: #fff; box-shadow: 0 0 30px rgba(63, 224, 208, .35); transform: translateY(-2px); }
.btn.gold { color: #122b33; background: linear-gradient(180deg, #fff3c9, var(--gold) 60%, #c3943a); border-color: #fff3c9; box-shadow: 0 0 0 3px rgba(6, 20, 27, .8), 0 0 0 4px var(--gold-d), 0 10px 30px rgba(0, 0, 0, .45); }
.btn.gold:hover { color: #0b2530; box-shadow: 0 0 0 3px rgba(6, 20, 27, .8), 0 0 0 4px var(--gold), 0 0 40px rgba(233, 197, 111, .55); }
.btn .play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.chip { display: inline-block; font-size: 12px; letter-spacing: .1em; padding: 2px 12px; border-radius: 20px; border: 1px solid rgba(233, 197, 111, .5); color: var(--gold2); background: rgba(6, 20, 27, .6); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: min(100vh, 1000px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero .hero-art { position: absolute; inset: -3%; z-index: -2; }
.hero .hero-art picture { display: block; width: 100%; height: 100%; }
.hero .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform .2s linear; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 14, 19, .5) 0%, rgba(4, 14, 19, 0) 22%, rgba(4, 14, 19, 0) 55%, rgba(4, 14, 19, .85) 88%, var(--night) 100%); }
.hero canvas.motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero .hero-body { padding: 0 var(--gut) clamp(40px, 7vw, 90px); display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero .hero-logo { width: min(620px, 86vw); filter: drop-shadow(0 0 26px rgba(63, 224, 208, .35)) drop-shadow(0 8px 20px rgba(0, 0, 0, .8)); }
.hero .tagline { font-family: var(--f-disp); font-weight: 800; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: .3em; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.hero .genre { margin: 0; font-size: 14px; letter-spacing: .2em; color: var(--ink); text-shadow: 0 2px 8px #000; }
.hero .release { font-family: var(--f-disp); font-weight: 800; font-size: clamp(16px, 1.8vw, 20px); letter-spacing: .2em; color: var(--gold2); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--f-en); font-size: 11px; letter-spacing: .4em; color: var(--ink-2); display: grid; justify-items: center; gap: 4px; }
.scroll-cue::after { content: ""; width: 1px; height: 30px; background: linear-gradient(var(--gold), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- カウントダウン帯 ---------- */
.countband { position: relative; border-block: 1px solid rgba(233, 197, 111, .45); background: linear-gradient(90deg, rgba(6, 20, 27, .95), rgba(16, 52, 64, .95), rgba(6, 20, 27, .95)); }
.countband .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; padding-block: 22px; }
.countband .k { font-family: var(--f-disp); font-weight: 800; letter-spacing: .3em; color: var(--gold2); }
.countband .digits { display: flex; gap: 6px; align-items: baseline; font-family: var(--f-en); font-weight: 900; }
.countband .digits b { font-size: 54px; line-height: 1; color: #fff; text-shadow: 0 0 20px rgba(63, 224, 208, .6); min-width: .7em; text-align: center; }
.countband .digits span { font-family: var(--f-disp); font-size: 18px; color: var(--gold2); margin-right: 14px; }
.countband .soon { font-family: var(--f-en); font-weight: 900; font-size: 36px; letter-spacing: .3em; color: #fff; text-shadow: 0 0 20px rgba(63, 224, 208, .6); }
.countband .cd-videos { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- お知らせ ---------- */
.news { padding-block: 60px 0; }
.news .frame { padding: 18px 28px; }
.news ul { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 110px 100px 1fr; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px dashed rgba(233, 197, 111, .22); }
.news li:last-child { border-bottom: 0; }
.news time { font-family: var(--f-en); font-weight: 700; color: var(--gold2); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 物語 ---------- */
.story .chapters { display: grid; gap: clamp(40px, 6vw, 90px); }
.story .chap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.story .chap:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.story .chap:nth-child(even) .pic { order: 2; }
.story .pic { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--gold-d), 0 30px 60px rgba(0, 0, 0, .5); }
.story .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.story .chap:hover .pic img { transform: scale(1.06); }
.story .num { font-family: var(--f-en); font-weight: 900; color: var(--teal); letter-spacing: .3em; font-size: 13px; }
.story h3 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.5; margin: 6px 0 14px; letter-spacing: .08em; }
.story p { margin: 0; color: var(--ink); }
@media (max-width: 820px) { .story .chap, .story .chap:nth-child(even) { grid-template-columns: 1fr; } .story .chap:nth-child(even) .pic { order: 0; } }

/* ---------- 世界地図 ---------- */
.worldmap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--gold-d), 0 30px 60px rgba(0, 0, 0, .5); }
.map-box img { width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold2); background: radial-gradient(circle, rgba(63, 224, 208, .9), rgba(12, 60, 66, .9)); color: #fff; font-family: var(--f-en); font-weight: 900; font-size: 16px; box-shadow: 0 0 0 4px rgba(6, 20, 27, .5), 0 0 24px rgba(63, 224, 208, .8); display: grid; place-items: center; }
.pin::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(63, 224, 208, .7); animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.pin[aria-pressed="true"] { background: radial-gradient(circle, #fff6d6, var(--gold) 60%, var(--gold-d)); color: #1b2a30; }
.map-info { padding: 22px; min-height: 100%; }
.map-info .ch { font-family: var(--f-en); color: var(--teal); letter-spacing: .3em; font-size: 12px; font-weight: 700; }
.map-info h3 { font-family: var(--f-disp); margin: 4px 0 10px; font-size: 22px; letter-spacing: .1em; }
.map-info img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 12px; box-shadow: 0 0 0 1px var(--gold-d); }
.map-info ol { margin: 0; padding-left: 0; list-style: none; counter-reset: d; display: grid; gap: 6px; }
.map-info li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(233, 197, 111, .2); padding-bottom: 4px; font-size: 15px; }
.map-info li span { color: var(--ink-2); font-size: 13px; }
@media (max-width: 900px) { .worldmap { grid-template-columns: 1fr; } .pin { width: 34px; height: 34px; font-size: 13px; } }

/* ---------- システム ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pillar { padding: 26px; display: grid; gap: 14px; align-content: start; }
.pillar .media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgba(233, 197, 111, .45); }
.pillar .media video, .pillar .media img { width: 100%; height: 100%; object-fit: cover; }
.pillar .idx { font-family: var(--f-en); color: var(--teal); font-weight: 900; letter-spacing: .3em; font-size: 12px; }
.pillar h3 { font-family: var(--f-disp); font-weight: 800; font-size: 26px; margin: 0; letter-spacing: .08em; }
.pillar h3 em { font-style: normal; color: var(--gold2); }
.pillar p { margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
/* 手札の扇 */
.fan { position: relative; height: 190px; display: flex; justify-content: center; align-items: flex-end; margin-top: 4px; }
.fan img { width: 86px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 7px; border: 2px solid var(--gold); box-shadow: 0 8px 18px rgba(0, 0, 0, .6); position: absolute; bottom: 8px; transform-origin: 50% 160%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); background: #0b2530; }
.fan-count { position: absolute; right: 8px; top: 0; font-family: var(--f-en); font-weight: 900; color: var(--gold2); font-size: 14px; letter-spacing: .1em; }
/* 視界の図 */
.fov { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; padding: 12px; background: #081d24; border-radius: 10px; box-shadow: 0 0 0 1px rgba(233, 197, 111, .35); }
.fov i { aspect-ratio: 1; border-radius: 2px; background: #0e2f38; transition: background .4s, box-shadow .4s; }
.fov i.wall { background: #04110f; }
.fov i.lit { background: #d9c795; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.fov i.me { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.fov i.foe { background: var(--crimson); }
.fov-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.fov-legend b { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }
/* 宝石の天秤 */
.risk { display: grid; gap: 14px; }
.risk .gems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.risk .gem { text-align: center; opacity: .35; transition: opacity .3s, transform .3s; }
.risk .gem.on { opacity: 1; transform: translateY(-4px); }
.risk .gem img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(233, 197, 111, .5); }
.risk .gem b { display: block; font-family: var(--f-en); color: var(--gold2); font-size: 14px; }
.risk .gem span { font-size: 12px; color: var(--ink-2); }
.risk input[type=range] { width: 100%; accent-color: var(--gold); }
.risk .meters { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.risk .bar { height: 10px; border-radius: 10px; background: #0e2f38; overflow: hidden; }
.risk .bar i { display: block; height: 100%; width: 0; transition: width .3s; }
.risk .bar.gold i { background: linear-gradient(90deg, var(--gold-d), var(--gold2)); }
.risk .bar.red i { background: linear-gradient(90deg, #6d1f2a, var(--crimson)); }
.risk .verdict { font-family: var(--f-disp); font-weight: 800; text-align: center; color: var(--gold2); min-height: 1.8em; }
/* 遊びの循環 */
.loop { position: relative; margin-top: 60px; padding: clamp(24px, 4vw, 44px); }
.loop h3 { text-align: center; font-family: var(--f-disp); font-size: 24px; margin: 0 0 24px; letter-spacing: .15em; }
.loop ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.loop li { position: relative; text-align: center; display: grid; gap: 8px; justify-items: center; }
.loop li .ic { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--gold-d); position: relative; }
.loop li .ic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.loop li.active .ic { box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(233, 197, 111, .45); }
.loop li.active .ic img { transform: scale(1.08); }
.loop li b { font-family: var(--f-disp); font-size: 17px; letter-spacing: .1em; }
.loop li b::before { counter-increment: s; content: counter(s) ". "; color: var(--teal); font-family: var(--f-en); }
.loop li span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.loop li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 26%; width: 10px; height: 10px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.loop .again { text-align: center; margin: 18px 0 0; font-family: var(--f-disp); color: var(--gold2); letter-spacing: .2em; }
@media (max-width: 860px) { .loop ol { grid-template-columns: repeat(2, 1fr); } .loop li::after { display: none; } }

/* ---------- 職業 ---------- */
.jobs { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }
.job-tabs { display: grid; gap: 8px; align-content: start; }
.job-tabs button { text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(233, 197, 111, .3); background: rgba(6, 20, 27, .6); transition: background .3s, border-color .3s; }
.job-tabs button[aria-selected="true"] { background: linear-gradient(90deg, rgba(28, 90, 96, .8), rgba(6, 20, 27, .6)); border-color: var(--gold); }
.job-tabs button b { font-family: var(--f-disp); font-size: 18px; letter-spacing: .1em; }
.job-tabs button small { color: var(--ink-2); font-size: 12px; }
.job-view { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.job-view video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--gold-d); background: #0b2530; }
.job-view h3 { font-family: var(--f-disp); font-size: 32px; margin: 0; letter-spacing: .12em; }
.stats { display: grid; grid-template-columns: 48px 1fr 40px; gap: 8px 10px; align-items: center; font-family: var(--f-en); font-size: 13px; margin-top: 14px; }
.stats .bar { height: 10px; background: #0e2f38; border-radius: 10px; overflow: hidden; }
.stats .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-d), var(--teal)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.stats output { text-align: right; font-variant-numeric: tabular-nums; color: var(--gold2); }
@media (max-width: 900px) { .jobs { grid-template-columns: 1fr; } .job-tabs { grid-template-columns: repeat(3, 1fr); } .job-view { grid-template-columns: 1fr; } }

/* ---------- 村の施設 ---------- */
.town { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.facility .media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.facility .media img, .facility .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.facility:hover .media img { transform: scale(1.06); }
.facility .body { padding: 16px 20px 20px; }
.facility h3 { font-family: var(--f-disp); margin: 0 0 6px; font-size: 20px; letter-spacing: .1em; }
.facility p { margin: 0; font-size: 14px; color: var(--ink); }
@media (max-width: 900px) { .town { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .town { grid-template-columns: 1fr; } }

/* ---------- キャラクター ---------- */
.chars { position: relative; overflow: hidden; }
.chars .place { position: absolute; inset: 0; z-index: -1; }
.chars .place img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.32) saturate(.9) blur(2px); transform: scale(1.05); transition: opacity .8s; }
.chars .place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 18, 24, .92) 0%, rgba(6, 18, 24, .35) 60%, rgba(6, 18, 24, .7) 100%), linear-gradient(180deg, var(--night), transparent 15%, transparent 85%, var(--night)); }
.char-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.char-tabs button { display: grid; justify-items: center; gap: 0; padding: 10px 26px; border-radius: 40px; border: 1px solid rgba(233, 197, 111, .45); background: rgba(6, 20, 27, .6); transition: background .3s; }
.char-tabs button b { font-family: var(--f-disp); font-size: 18px; letter-spacing: .15em; }
.char-tabs button small { font-family: var(--f-en); font-size: 10px; letter-spacing: .3em; color: var(--ink-2); }
.char-tabs button[aria-selected="true"] { background: linear-gradient(180deg, rgba(233, 197, 111, .9), rgba(156, 122, 54, .9)); color: #122b33; }
.char-tabs button[aria-selected="true"] small { color: #26393c; }
.char-stage { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: end; min-height: 640px; }
.char-text { padding-bottom: 40px; display: grid; gap: 14px; align-content: end; }
.char-text .en { font-family: var(--f-en); letter-spacing: .5em; color: var(--teal); font-weight: 700; font-size: 14px; }
.char-text h3 { margin: 0; font-family: var(--f-disp); font-weight: 800; font-size: clamp(54px, 7vw, 96px); line-height: 1; letter-spacing: .12em; background: linear-gradient(180deg, #fff6d6 10%, var(--gold) 55%, var(--gold-d) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(20, 12, 4, .9)); }
.char-text .role { font-family: var(--f-disp); font-size: 18px; letter-spacing: .2em; }
.char-text p { margin: 0; max-width: 34em; }
.faces { display: flex; flex-wrap: wrap; gap: 8px; }
.faces button { border-radius: 30px; border: 1px solid rgba(233, 197, 111, .45); background: rgba(6, 20, 27, .6); padding: 5px 14px; font-size: 13px; }
.faces button[aria-pressed="true"] { background: var(--gold); color: #122b33; }
.voices { display: grid; gap: 8px; }
.voice-btn { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid rgba(63, 224, 208, .35); background: rgba(8, 30, 38, .7); border-radius: 12px; padding: 8px 14px; font-size: 14px; transition: background .3s, border-color .3s; }
.voice-btn:hover { border-color: var(--teal); }
.voice-btn .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-d); }
.voice-btn .ic::before { content: ""; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.voice-btn.playing { border-color: var(--gold); background: rgba(40, 90, 96, .7); }
.voice-btn.playing .ic { background: var(--gold); }
.voice-btn.playing .ic::before { border: 0; width: 10px; height: 10px; background: #122b33; margin: 0; }
.char-art { position: relative; height: 700px; display: grid; place-items: end center; }
.char-art img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.char-art img.swap { opacity: 0; transform: translateY(14px) scale(.985); }
.char-art .halo { position: absolute; bottom: 10%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(63, 224, 208, .35), transparent 65%); filter: blur(10px); z-index: -1; animation: halo 6s infinite ease-in-out; }
@keyframes halo { 50% { transform: scale(1.1); opacity: .6; } }
@media (max-width: 900px) { .char-stage { grid-template-columns: 1fr; } .char-art { height: 480px; order: -1; } .char-text { padding-bottom: 0; } }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 60px; }
.sub { overflow: hidden; text-align: center; padding-bottom: 12px; transition: transform .3s; }
.sub:hover { transform: translateY(-4px); }
.sub .face { height: 210px; overflow: hidden; background: radial-gradient(circle at 50% 70%, rgba(63, 224, 208, .25), transparent 70%); }
.sub .face img { width: 100%; height: 330px; object-fit: cover; object-position: 50% 0; }
.sub b { display: block; font-family: var(--f-disp); font-size: 17px; letter-spacing: .1em; margin-top: 8px; }
.sub span { display: block; font-size: 12px; color: var(--ink-2); }
.sub p { font-size: 12px; padding: 0 12px; margin: 6px 0 0; line-height: 1.6; }

/* ---------- 図鑑の入口・動画 ---------- */
.gates { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gate-card { position: relative; overflow: hidden; min-height: 280px; display: grid; align-content: end; padding: 28px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--gold-d), 0 30px 50px rgba(0, 0, 0, .45); isolation: isolate; }
.gate-card .bgs { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 16px; background: radial-gradient(circle at 70% 30%, #164b55, #071a21 70%); }
.gate-card .bgs img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); transition: transform .5s; }
.gate-card:hover .bgs img { transform: translateY(-6px) scale(1.04); }
.gate-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(4, 14, 19, .95)); }
.gate-card h3 { margin: 0; font-family: var(--f-disp); font-size: 30px; letter-spacing: .12em; }
.gate-card p { margin: 4px 0 14px; color: var(--ink); }
@media (max-width: 800px) { .gates { grid-template-columns: 1fr; } }
.movies { display: grid; gap: 24px; }
.movie-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--gold), 0 30px 70px rgba(0, 0, 0, .6); }
.movie-main img { width: 100%; height: 100%; object-fit: cover; }
.play-big { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); border: 0; }
.play-big span { width: 110px; height: 110px; border-radius: 50%; border: 2px solid var(--gold2); background: rgba(6, 20, 27, .55); display: grid; place-items: center; box-shadow: 0 0 40px rgba(63, 224, 208, .5); transition: transform .3s; }
.play-big span::before { content: ""; border-left: 30px solid var(--gold2); border-top: 18px solid transparent; border-bottom: 18px solid transparent; margin-left: 8px; }
.play-big:hover span { transform: scale(1.08); }
.movie-main .cap { position: absolute; left: 24px; bottom: 20px; font-family: var(--f-disp); font-size: 22px; letter-spacing: .12em; text-shadow: 0 2px 10px #000; }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.movie-item { text-align: left; background: none; border: 0; padding: 0; display: grid; gap: 8px; }
.movie-item .th { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(233, 197, 111, .5); }
.movie-item .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.movie-item:hover .th img { transform: scale(1.06); }
.movie-item .th::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(6, 20, 27, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4l9 6-9 6z' fill='%23fff1c2'/%3E%3C/svg%3E") center/26px no-repeat; border: 1px solid var(--gold2); }
.movie-item .th time { position: absolute; right: 8px; bottom: 6px; font-family: var(--f-en); font-size: 12px; background: rgba(0, 0, 0, .7); padding: 0 8px; border-radius: 4px; }
.movie-item b { font-family: var(--f-disp); font-size: 16px; letter-spacing: .06em; }
.movie-item small { color: var(--ink-2); font-size: 12px; }
.movie-group { margin-top: 40px; }
.movie-group h3 { font-family: var(--f-disp); font-size: 20px; letter-spacing: .15em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.movie-group h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-d), transparent); }

/* ---------- 動画のモーダル ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(2, 8, 11, .9); display: grid; place-items: center; padding: var(--gut); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal .box { width: min(1280px, 100%); display: grid; gap: 10px; }
.modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; box-shadow: 0 0 0 1px var(--gold-d); }
.modal .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .row b { font-family: var(--f-disp); letter-spacing: .1em; }
.modal .close { border: 1px solid var(--gold); background: rgba(6, 20, 27, .8); color: var(--gold2); border-radius: 30px; padding: 6px 18px; }

/* ---------- 特典（ダウンロード） ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.dl-item { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.dl-item .th { aspect-ratio: 16 / 10; overflow: hidden; background: #081d24; display: grid; place-items: center; }
.dl-item .th img { width: 100%; height: 100%; object-fit: cover; }
.dl-item .th.tall img { object-fit: contain; }
.dl-item .body { padding: 12px 16px 16px; display: grid; gap: 8px; }
.dl-item b { font-family: var(--f-disp); letter-spacing: .06em; }
.dl-item .links { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-item .links a { font-size: 12px; border: 1px solid rgba(233, 197, 111, .5); border-radius: 20px; padding: 3px 12px; }
.dl-item .links a:hover { background: var(--gold); color: #122b33; }
.dl-note { font-size: 13px; color: var(--ink-2); text-align: center; margin: 24px auto 0; max-width: 46em; }
.dl-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.dl-tabs button { border: 1px solid rgba(233, 197, 111, .45); background: rgba(6, 20, 27, .6); border-radius: 30px; padding: 8px 20px; font-family: var(--f-disp); letter-spacing: .1em; }
.dl-tabs button[aria-selected="true"] { background: var(--gold); color: #122b33; }

/* ---------- 図鑑ページ ---------- */
.page-hero { position: relative; padding: 140px 0 60px; text-align: center; overflow: hidden; isolation: isolate; }
.page-hero .bgimg { position: absolute; inset: 0; z-index: -1; }
.page-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); }
.page-hero .bgimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 24, .3), var(--night)); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 28px; }
.filters button { border: 1px solid rgba(233, 197, 111, .45); background: rgba(6, 20, 27, .6); border-radius: 30px; padding: 6px 16px; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--gold); color: #122b33; }
.filters input[type=search] { background: rgba(6, 20, 27, .8); border: 1px solid rgba(233, 197, 111, .45); color: var(--ink); border-radius: 30px; padding: 8px 18px; font: inherit; min-width: 220px; }
.filters .count { font-family: var(--f-en); color: var(--ink-2); font-size: 13px; }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.dex-item { position: relative; text-align: center; padding: 14px 12px 14px; border: 0; transition: transform .3s, box-shadow .3s; display: grid; gap: 4px; justify-items: center; }
.dex-item:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--gold), 0 20px 40px rgba(0, 0, 0, .5); }
.dex-item .no { position: absolute; left: 12px; top: 8px; font-family: var(--f-en); font-weight: 900; color: var(--gold-d); font-size: 13px; }
.dex-item .threat { position: absolute; right: 10px; top: 8px; font-size: 11px; }
.dex-item .pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(63, 224, 208, .22), transparent 65%); }
.dex-item .pic img { max-width: 88%; max-height: 88%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); transition: transform .4s; }
.dex-item:hover .pic img { transform: scale(1.08) translateY(-4px); }
.dex-item b { font-family: var(--f-disp); font-size: 16px; letter-spacing: .06em; }
.dex-item small { color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.dex-card .pic { aspect-ratio: 5 / 7; background: none; }
.dex-card .pic img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 8px; border: 2px solid var(--rank, var(--gold)); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }
.detail { position: fixed; inset: 0; z-index: 80; background: rgba(2, 8, 11, .88); display: grid; place-items: center; padding: var(--gut); backdrop-filter: blur(4px); }
.detail[hidden] { display: none; }
.detail .box { width: min(860px, 100%); max-height: 92vh; overflow: auto; padding: 28px; display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.detail .pics { display: grid; gap: 12px; }
.detail .pics img { width: 100%; aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle, rgba(63, 224, 208, .25), transparent 65%); border-radius: 12px; }
.detail .pics .lbl { font-size: 11px; color: var(--ink-2); text-align: center; margin-top: -8px; }
.detail h3 { font-family: var(--f-disp); font-size: 30px; margin: 0; letter-spacing: .1em; }
.detail dl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.detail dl div { background: rgba(8, 30, 38, .8); border: 1px solid rgba(233, 197, 111, .3); border-radius: 10px; padding: 6px; text-align: center; }
.detail dt { font-family: var(--f-en); font-size: 11px; color: var(--ink-2); }
.detail dd { margin: 0; font-family: var(--f-en); font-weight: 700; font-size: 18px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.detail h4 { font-family: var(--f-disp); color: var(--teal); letter-spacing: .15em; margin: 14px 0 4px; font-size: 15px; }
.detail p { margin: 0; }
.detail .close { position: sticky; top: 0; float: right; border: 1px solid var(--gold); background: rgba(6, 20, 27, .9); color: var(--gold2); border-radius: 30px; padding: 4px 14px; }
@media (max-width: 720px) { .detail .box { grid-template-columns: 1fr; } .detail dl { grid-template-columns: repeat(3, 1fr); } }

/* ---------- フッター ---------- */
.site-foot { position: relative; border-top: 1px solid rgba(233, 197, 111, .35); background: #040d11; padding-block: 50px 30px; text-align: center; }
.site-foot .logo { width: 260px; margin: 0 auto 18px; }
.site-foot .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto 24px; font-size: 14px; }
.site-foot .facts div { border: 1px solid rgba(233, 197, 111, .25); border-radius: 10px; padding: 8px; }
.site-foot .facts dt { font-size: 11px; color: var(--ink-2); letter-spacing: .15em; }
.site-foot .facts dd { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 18px; font-size: 14px; }
.site-foot small { color: var(--ink-2); display: block; }
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(6, 20, 27, .85); color: var(--gold2); font-family: var(--f-en); font-size: 11px; opacity: 0; transition: opacity .3s; }
.to-top.show { opacity: 1; }
.note-draft { font-size: 12px; color: var(--ink-2); }

/* ---------- 2026-09-30 確認後の直し（スマホ幅のはみ出し・図鑑の入口） ---------- */
.job-tabs button, .job-view > *, .dex-item, .dex-item .pic { min-width: 0; }
.dex-item { grid-template-columns: minmax(0, 1fr); }
.dex-item .pic { width: 100%; }
.dex-item .pic img { width: auto; }
@media (max-width: 900px) { .job-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .job-tabs button { padding: 8px 10px; } .job-tabs button small { display: none; } }
@media (max-width: 520px) { .dex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dex-item b { font-size: 14px; } .dex-item small { font-size: 11px; } }
.gate-card { min-height: 400px; }
.gate-card .bgs { inset: 0 0 150px 0; grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: center; }
.gate-card .bgs img { max-height: 110px; margin: auto; }
.gate-card::after { background: linear-gradient(180deg, transparent 45%, rgba(4, 14, 19, .96) 66%); }
.dex-card .pic img { width: 100%; }
.hero, .chars, .sec { overflow-x: clip; }
.page-hero { padding-inline: var(--gut); }
.char-art img { height: 100%; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .countband .soon { font-size: 24px; letter-spacing: .2em; }
  .hero .hero-logo { width: min(420px, 78vw); }
  .hero { min-height: 92vh; }
  .char-art { height: 440px; }
  .sec-title .ja::before, .sec-title .ja::after { width: 30px; }
}
.char-art { overflow: hidden; }
.char-text { position: relative; z-index: 1; }
@media (max-width: 640px) { .scroll-cue { display: none; } .char-stage { gap: 0; } }
.char-text h3.long { font-size: clamp(42px, 5.2vw, 74px); letter-spacing: .06em; }

/* ---------- 2026-09-30 配布の一覧：絵と同じ形の枠（切れて見えないように）・Discordスタンプ ---------- */
.dl-sections { display: grid; gap: 50px; }
.dl-sec h3 { font-family: var(--f-disp); font-size: 22px; letter-spacing: .15em; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.dl-sec h3 span { font-family: var(--f-en); font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }
.dl-sec h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-d), transparent); }
.dl-sec .dl-grid + .dl-grid { margin-top: 18px; }
.dl-grid { align-items: start; }
.dl-grid.square { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dl-grid.tall { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dl-item .th { position: relative; }
.dl-item .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-item .th.clear { background: repeating-conic-gradient(#1d3139 0 25%, #16272e 0 50%) 0 0 / 22px 22px; }
.dl-item .th.clear img { object-fit: contain; padding: 4%; }
a.dl-item { color: inherit; }
@media (max-width: 520px) { .dl-grid.square, .dl-grid.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ==========================================================================
   2026-10-17 ユーザーの FB の直し（sites/gaterogue_classic/docs/FB_20261017/指示_20261017.md）
   ========================================================================== */

/* ---------- 開発中の一文（ページの上と下） ---------- */
.site-head .dev-note { height: 24px; line-height: 24px; padding-inline: var(--gut); text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--gold2); background: rgba(4, 14, 19, .9); border-bottom: 1px solid rgba(233, 197, 111, .3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .site-head nav { inset: 88px 0 auto 0; } }
.dev-note-foot { margin: 16px auto 0; font-size: 13px; letter-spacing: .08em; color: var(--gold2); }

/* ---------- 図鑑の個別の画面：閉じるを右上に小さく・絵と文を並べる ---------- */
.detail .box { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); padding: 18px 28px 28px; row-gap: 14px; }
.detail .close { grid-column: 1 / -1; justify-self: end; float: none; position: sticky; top: 0; z-index: 3; width: auto; padding: 4px 16px; }
.detail .pics img { box-shadow: 0 0 0 1px rgba(233, 197, 111, .25); }
.detail .card-pic img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.detail .battle { grid-column: 1 / -1; margin: 6px 0 0; display: grid; gap: 6px; }
.detail .battle video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px var(--gold-d); }
.detail .battle figcaption { font-size: 12px; color: var(--ink-2); text-align: center; }
@media (max-width: 720px) { .detail .box { grid-template-columns: minmax(0, 1fr); padding: 14px 18px 22px; } .detail .pics { max-width: 300px; width: 100%; justify-self: center; } }

/* ---------- 動画の窓：縦長のキャラクターPV ---------- */
.modal.vertical .box { width: min(calc((100vh - 110px) * .5625), 100%); }
.modal.vertical video { aspect-ratio: 9 / 16; }

/* ---------- WORLD：ポルタのまわりの地図・ダンジョンの印・イメージとゲームの画面の切り替え ---------- */
.worldmap { grid-template-columns: minmax(0, 1fr) 360px; }
.map-box .pin { width: 34px; height: 34px; font-size: 13px; background: radial-gradient(circle, var(--pc, rgba(63, 224, 208, .95)), rgba(8, 40, 46, .95)); }
.map-box .pin::before { display: none; }
.map-box .pin[aria-pressed="true"]::before { display: block; }
.map-box .pin[aria-pressed="true"] { background: radial-gradient(circle, #fff6d6, var(--gold) 60%, var(--gold-d)); color: #1b2a30; z-index: 2; }
[data-ch="1"] { --pc: rgba(92, 196, 104, .95); }
[data-ch="2"] { --pc: rgba(170, 120, 210, .95); }
[data-ch="3"] { --pc: rgba(70, 170, 230, .95); }
[data-ch="4"] { --pc: rgba(150, 215, 240, .95); }
[data-ch="5"] { --pc: rgba(200, 90, 150, .95); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; }
.map-legend b { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 5px; background: var(--pc); border: 1px solid var(--gold2); }
.map-info .tabs { display: flex; gap: 6px; margin: 8px 0 10px; }
.map-info .tabs button { flex: 1; border: 1px solid rgba(233, 197, 111, .45); background: rgba(6, 20, 27, .6); border-radius: 30px; padding: 6px 10px; font-size: 13px; letter-spacing: .06em; }
.map-info .tabs button[aria-pressed="true"] { background: var(--gold); color: #122b33; }
.map-info .view { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--gold-d); margin-bottom: 12px; }
.map-info .view img, .map-info .view video { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.map-info .meta { color: var(--ink-2); font-size: 13px; margin: -4px 0 8px; }
.map-info li.on { color: var(--gold2); font-weight: 700; }
.map-info li button { all: unset; cursor: pointer; flex: 1; }
.map-info li button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 900px) { .worldmap { grid-template-columns: 1fr; } .map-box .pin { width: 26px; height: 26px; font-size: 10px; border-width: 1px; } }

/* ---------- SYSTEM：ゲームの売り5つ（どれも今のゲームの動画） ---------- */
.points { display: grid; gap: clamp(26px, 4vw, 44px); margin-top: 44px; }
.point { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 44px); align-items: center; padding: clamp(18px, 2.4vw, 28px); }
.point:nth-child(even) .media { order: 2; }
.point .media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgba(233, 197, 111, .45); }
.point .media video { width: 100%; height: 100%; object-fit: cover; }
.point .idx { font-family: var(--f-en); color: var(--teal); font-weight: 900; letter-spacing: .3em; font-size: 12px; }
.point h3 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.5; margin: 6px 0 12px; letter-spacing: .06em; }
.point h3 em { font-style: normal; color: var(--gold2); }
.point h3 .ph { display: inline-block; }   /* 見出しを語の途中で折り返さない（2026-10-21） */
.point p { margin: 0; }
@media (max-width: 860px) { .point { grid-template-columns: minmax(0, 1fr); } .point:nth-child(even) .media { order: 0; } }

/* ---------- VILLAGE：8か所を 4列に ---------- */
.town { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facility p { font-size: 13.5px; line-height: 1.75; }
@media (max-width: 1100px) { .town { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .town { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CHARACTER：キャラクターPV（日常編・お仕事編）のボタン ---------- */
.char-pv { display: flex; flex-wrap: wrap; gap: 10px; }
.char-pv .btn { padding: 12px 22px; font-size: 15px; }

/* ---------- MOVIE：OP の下に5本・縦長のキャラクターPV ---------- */
.movie-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .movie-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .movie-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.movie-grid.vertical { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.movie-grid.vertical .th { aspect-ratio: 9 / 16; }
@media (max-width: 520px) { .movie-grid.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.movie-item b, .movie-item small { overflow-wrap: anywhere; }
/* 図鑑の戦う様子の動画：画面の高さの半分ほどに収めて、窓の中でスクロールしなくても見えるように */
.detail .battle { justify-items: center; }
.detail .battle video { max-width: min(100%, calc(46vh * 16 / 9)); }
/* VILLAGE：押すと大きく見られる（ライトボックス） */
.facility[data-light] { cursor: zoom-in; }
.facility[data-light]:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.facility .zoom { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold2); background: rgba(6, 20, 27, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff1c2' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/18px no-repeat; opacity: .85; transition: opacity .3s, transform .3s; pointer-events: none; }
.facility:hover .zoom { opacity: 1; transform: scale(1.08); }
/* CHARACTER：下の並びで選ぶ（主役3人も並びに入れた。押すと上の大きな場所がその人になる） */
.subs { margin-top: 40px; }
/* 2026-10-17 ロワンを足してトップ10人・キャラクターページ15人。PC の幅では5列に決めて 5＋5・5×3 にそろえる
   （auto-fill のままだと幅 1180px より広い画面で6列になり、6＋4・6＋6＋3 になるため）。狭い幅は上の auto-fill のまま */
@media (min-width: 1000px) { .subs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
button.sub { font: inherit; color: inherit; text-align: center; width: 100%; padding: 0 0 12px; cursor: pointer; }
button.sub:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sub[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(233, 197, 111, .45); }
.sub[aria-pressed="true"] b { color: var(--gold2); }
/* 2026-10-21 MONSTER・CARD：図鑑のページをやめ、トップで4体・4枚を紹介（PC は4列・狭い幅は2列）。
   モンスターは押すとゲームの中で戦う様子（ライトボックス）。カードは絵と効果だけ */
.showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 900px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pick { overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.pick .pic { position: relative; display: grid; place-items: center; overflow: hidden; }
.pick .body { padding: 14px 18px 18px; min-width: 0; }
.pick h3 { font-family: var(--f-disp); margin: 8px 0 4px; font-size: 20px; letter-spacing: .1em; }
.pick p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.pick small { display: block; margin-top: 6px; color: var(--ink-2); font-size: 12px; }
.pick-mon .pic { aspect-ratio: 1; background: radial-gradient(circle at 50% 60%, rgba(63, 224, 208, .22), transparent 65%); }
.pick-mon .pic img { max-width: 82%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); transition: transform .4s; }
.pick[data-light] { cursor: zoom-in; }
.pick[data-light]:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.pick-mon:hover .pic img { transform: scale(1.06) translateY(-4px); }
.pick .play { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold2); background: rgba(6, 20, 27, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff1c2'/%3E%3C/svg%3E") center/18px no-repeat; opacity: .85; transition: opacity .3s, transform .3s; pointer-events: none; }
.pick:hover .play { opacity: 1; transform: scale(1.08); }
.pick-card .pic { padding: 18px 18px 0; }
.pick-card .cw { position: relative; display: block; width: min(100%, 220px); transition: transform .4s; }
.pick-card .pic img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; border: 2px solid var(--rank, var(--gold)); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.pick-card:hover .cw { transform: translateY(-4px); }
.pick-card .play { right: 8px; bottom: 8px; }
@media (max-width: 520px) { .pick .body { padding: 10px 12px 14px; } .pick h3 { font-size: 16px; } .pick p { font-size: 12.5px; } .pick-card .pic { padding: 12px 12px 0; } }
