/* COSMIC LIVE 中のページ（ダウンロード・ヘルプ・規約・404）— 2026-11-14
   ・home.css（トップと共通の部品: 色・字・ボタン・上の帯・下の帯・夜空）のあとに読む
   ・/style.css は /battle が使うので、そのまま残す（このページたちはもう読まない）
   ・外からの読み込みなし／JavaScript が無くても全部読める／動きを減らす設定の人には動かさない */

/* 規約やヘルプだけに出てくる字（トップの字に入っていない分）。トップとダウンロードのページは読み込まない */
@font-face { font-family:'CL JPx'; src:url('fonts/zkgn-400-x.woff') format('woff'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'CL JPx'; src:url('fonts/zkgn-700-x.woff') format('woff'); font-weight:700; font-style:normal; font-display:swap; }
html.fx { --font:'CL Latin','CL JP','CL JPx','Yu Gothic UI','Hiragino Sans','Noto Sans JP',Meiryo,sans-serif; }

/* ---------- ページの枠 ---------- */
.pg { position:relative; isolation:isolate; padding:clamp(124px,17vh,172px) 0 0; }
.pg-glow { position:absolute; z-index:-1; inset:0 0 auto 0; height:760px; overflow:hidden; pointer-events:none; }
.pg-glow::before { content:""; position:absolute; left:50%; top:-470px; width:min(1180px,150vw); height:860px; border-radius:50%; transform:translateX(-50%); background:radial-gradient(closest-side,rgba(98,66,255,.36),rgba(98,66,255,.1) 58%,transparent); filter:blur(20px); }
.pg-col { max-width:920px; }
.pg-back { margin-bottom:28px; font-size:13.5px; }
.pg-back svg { order:-1; }
.pg-back:hover svg { transform:translateX(-4px); }
.pg-head { max-width:860px; margin:0 0 clamp(34px,5vw,58px); }
.pg-head h1 { margin:20px 0 0; font:700 clamp(30px,5.2vw,54px)/1.24 var(--font); letter-spacing:-.008em; }
.pg-head .lead { margin-top:20px; max-width:44em; }
.pg-head .note { margin:18px 0 0; }
.pg-back, .pg-head > * { animation:rise .9s var(--ease-out) both; }
.pg-head > :nth-child(2) { animation-delay:.07s; } .pg-head > :nth-child(3) { animation-delay:.14s; } .pg-head > :nth-child(4) { animation-delay:.21s; }
.sh-sm h2 { font-size:clamp(23px,3.1vw,34px); }
.pg .sh h2, .pg-head h1, .dl-status, .dl-note, .nf h1, .nf .lead, .nf .note, .cg-answer h2 { text-wrap:balance; }
.ib { display:inline-block; }
.pg ~ .ft .ft-in { padding-bottom:46px; }

/* ---------- ダウンロード ---------- */
.dl-in { display:grid; justify-items:center; text-align:center; }
.dl-in > * { animation:rise .9s var(--ease-out) both; }
.dl-in > :nth-child(2) { animation-delay:.06s; } .dl-in > :nth-child(3) { animation-delay:.12s; } .dl-in > :nth-child(4) { animation-delay:.18s; }
.dl-in > :nth-child(n+5) { animation-delay:.26s; }
.dl-orb { position:relative; display:grid; place-items:center; width:172px; height:172px; margin-bottom:30px; }
.dl-orb::before { content:""; position:absolute; inset:-46%; border-radius:50%; background:radial-gradient(closest-side,rgba(242,205,130,.3),rgba(126,92,255,.2) 46%,transparent 72%); filter:blur(10px); }
.dl-ring { position:absolute; inset:0; border-radius:50%; border:1px solid rgba(242,215,151,.3); }
.dl-ring b { position:absolute; inset:-1px; border-radius:50%; animation:spin 26s linear infinite; }
.dl-ring b::after { content:""; position:absolute; left:50%; top:-4px; width:7px; height:7px; margin-left:-3.5px; border-radius:50%; background:var(--g1); box-shadow:0 0 14px 4px rgba(255,232,170,.75); }
.dl-ring-2 { inset:-40px; border-color:rgba(242,215,151,.16); -webkit-mask-image:linear-gradient(160deg,#000 0,rgba(0,0,0,.2) 52%,transparent 78%); mask-image:linear-gradient(160deg,#000 0,rgba(0,0,0,.2) 52%,transparent 78%); }
.dl-logo { position:relative; display:block; width:104px; height:104px; border-radius:25px; box-shadow:0 0 0 1px rgba(255,255,255,.2), 0 30px 60px -22px #000, 0 0 80px -8px rgba(242,215,151,.5); }
.dl-in h1 { margin:20px 0 0; font:700 clamp(34px,6.4vw,62px)/1.2 var(--font); letter-spacing:-.01em; }
.dl-lead { margin-top:20px; max-width:30em; }
.dl-in .phone-note { margin-top:26px; width:min(100%,460px); text-align:left; }
.dl-action { display:grid; justify-items:center; width:100%; margin-top:36px; }
.dl-button { min-width:min(100%,348px); min-height:64px; border-radius:19px; font-size:17.5px; }
.dl-button svg { width:21px; height:21px; }
.dl-button[aria-disabled="true"] { cursor:progress; filter:saturate(.5) brightness(.86); }
.dl-button[aria-disabled="true"]::before { animation:none; }
.dl-status { margin:18px 0 0; min-height:1.9em; max-width:42em; color:var(--ink-2); font-size:13.5px; line-height:1.9; word-break:auto-phrase; }
.dl-status:not(.dl-warn):has(#dl-status-text:not(:empty))::before { content:""; display:inline-block; width:7px; height:7px; margin:0 10px 2px 0; border-radius:50%; background:var(--g1); box-shadow:0 0 10px 2px rgba(255,232,170,.75); vertical-align:middle; }
.dl-action:has(.dl-button[aria-disabled="true"]) .dl-status::before { animation:dl-blink .7s ease-in-out infinite alternate; }
@keyframes dl-blink { to { opacity:.25; } }
.dl-status.dl-warn { padding:14px 18px; border-radius:16px; background:rgba(255,196,96,.07); box-shadow:inset 0 0 0 1px rgba(255,196,96,.36); color:#ffe2b0; text-align:left; }
.dl-retry { margin-top:14px; }
.dl-sub { margin:10px 0 0; font-size:13px; }
.dl-sub a { color:var(--ink-3); text-decoration:underline; text-decoration-color:rgba(255,255,255,.22); text-underline-offset:4px; transition:color .2s, text-decoration-color .2s; }
.dl-sub a:hover { color:var(--g1); text-decoration-color:currentColor; }
.dl-meta { margin:26px 0 0; max-width:38em; color:var(--ink-3); font-size:13px; line-height:1.8; word-break:auto-phrase; }
.dl-help { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.dl-help-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:start; padding:clamp(22px,2.6vw,30px); border-radius:var(--r); background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015)); box-shadow:inset 0 0 0 1px var(--line); }
.dl-help-card p { margin:0; color:var(--ink-2); font-size:14.5px; line-height:1.9; word-break:auto-phrase; }
.dl-help-card p + p { margin-top:12px; font-size:14px; }
.dl-help-card .ilink { white-space:nowrap; }
.dl-note { margin:22px 0 0; color:var(--ink-3); font-size:13px; text-align:center; }
.pg-dl .section { padding-top:clamp(64px,8.4vw,112px); }

/* ---------- ヘルプ（Windows の警告）---------- */
.cg-i { flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.cg-warning-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.cg-warning-option { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; padding:17px 18px; border:0; border-radius:18px; background:rgba(255,255,255,.035); box-shadow:inset 0 0 0 1px var(--line); color:var(--ink); font:inherit; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background-color .3s, box-shadow .3s; }
.cg-option-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:13px; background:rgba(242,215,151,.08); box-shadow:inset 0 0 0 1px rgba(242,215,151,.28); color:var(--g2); }
.cg-option-icon .cg-i { width:20px; height:20px; }
.cg-warning-option strong { display:block; font:700 15.5px/1.5 var(--font); word-break:auto-phrase; }
.cg-warning-option small { display:block; margin-top:3px; color:var(--ink-3); font-size:12.5px; line-height:1.6; }
.cg-warning-option > .cg-i { color:var(--ink-3); transition:transform .35s var(--ease), color .3s; }
.cg-warning-option:hover { background:rgba(255,255,255,.06); box-shadow:inset 0 0 0 1px var(--line-2); }
.cg-warning-option[aria-pressed="true"] { background:linear-gradient(180deg,rgba(242,215,151,.11),rgba(242,215,151,.03)); box-shadow:inset 0 0 0 1px rgba(242,215,151,.5), 0 20px 40px -30px #000; }
.cg-warning-option[aria-pressed="true"] > .cg-i { color:var(--g2); transform:rotate(90deg); }
.cg-answer { margin-top:22px; padding:clamp(22px,3.4vw,42px); border-radius:var(--r); background:radial-gradient(520px 260px at 100% 0%,rgba(123,92,255,.12),transparent 62%), linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.016)); box-shadow:inset 0 0 0 1px var(--line); animation:faq-in .5s var(--ease-out); }
.cg-answer-heading { margin-bottom:28px; }
.cg-step-kicker { display:inline-block; color:var(--g2); font:700 12.5px/1.5 var(--font); letter-spacing:.1em; }
.cg-answer h2 { margin:10px 0 0; font:700 clamp(21px,2.6vw,30px)/1.4 var(--font); outline:0; }
.cg-answer-heading p { margin:12px 0 0; color:var(--ink-2); font-size:15px; line-height:1.95; }
.cg-steps { margin:0; padding:0; list-style:none; }
.cg-steps > li { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr); column-gap:18px; padding-bottom:26px; }
.cg-steps > li:last-child { padding-bottom:0; }
.cg-steps > li:not(:last-child)::before { content:""; position:absolute; left:17.5px; top:44px; bottom:8px; width:1px; background:linear-gradient(180deg,rgba(242,215,151,.5),rgba(242,215,151,.08)); }
.cg-number { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:linear-gradient(160deg,#241e40,#0b0a15); box-shadow:inset 0 0 0 1px rgba(242,215,151,.55), 0 8px 18px -10px #000; color:var(--g1); font:700 14.5px/1 var(--font); font-variant-numeric:tabular-nums; }
.cg-steps strong { display:block; padding-top:5px; color:var(--ink); font:700 16px/1.6 var(--font); }
.cg-steps p { margin:6px 0 0; color:var(--ink-2); font-size:14.5px; line-height:1.9; }
.cg-steps a, .cg-answer-heading a { color:var(--g2); text-decoration:underline; text-decoration-color:rgba(242,215,151,.45); text-underline-offset:4px; }
.cg-steps a:hover, .cg-answer-heading a:hover { color:var(--g1); text-decoration-color:currentColor; }
.cg-shot { display:block; width:100%; max-width:560px; height:auto; margin:16px 0 4px; border-radius:14px; background:#fff; box-shadow:0 0 0 1px rgba(255,255,255,.18), 0 0 0 7px rgba(255,255,255,.04), 0 34px 70px -34px #000; }
.cg-shot-narrow { max-width:330px; }
.cg-important { display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; margin:0 0 20px; padding:18px 20px; border-radius:16px; background:rgba(255,196,96,.065); box-shadow:inset 0 0 0 1px rgba(255,196,96,.34); }
.cg-important > .cg-i { width:20px; height:20px; margin-top:4px; color:#ffcf7a; }
.cg-important strong { display:block; color:#ffe0a6; font:700 15px/1.6 var(--font); }
.cg-important p { margin:4px 0 0; color:var(--ink-2); font-size:14px; line-height:1.9; }
.cg-source-check { margin:20px 0; padding:2px 0 2px 16px; border-left:2px solid rgba(242,215,151,.5); color:var(--ink-2); font-size:14px; line-height:1.9; }
.cg-footer-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.cg-footer-links a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:9px 16px; border-radius:13px; background:rgba(255,255,255,.05); box-shadow:inset 0 0 0 1px var(--line-2); color:var(--ink); font:500 13.5px/1.5 var(--font); text-decoration:none; transition:box-shadow .25s, color .25s, background-color .25s; }
.cg-footer-links a:hover { background:rgba(255,255,255,.085); box-shadow:inset 0 0 0 1px rgba(242,215,151,.5); color:var(--g1); }
.cg-footer-links .cg-i { width:15px; height:15px; color:var(--g2); }
.cg-guide-note { margin:28px 0 0; color:var(--ink-3); font-size:13px; line-height:1.9; }

/* ---------- 規約（プライバシーポリシー・利用規約）---------- */
.doc { display:grid; grid-template-columns:minmax(0,1fr); gap:30px; }
.doc-toc { max-width:780px; border-radius:18px; background:rgba(255,255,255,.03); box-shadow:inset 0 0 0 1px var(--line); }
.doc-toc summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:54px; padding:0 18px 0 20px; color:var(--g2); font:700 13px/1 var(--font); letter-spacing:.16em; cursor:pointer; list-style:none; -webkit-tap-highlight-color:transparent; }
.doc-toc summary::-webkit-details-marker { display:none; }
.doc-toc summary i { width:9px; height:9px; margin-right:4px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .35s var(--ease); }
.doc-toc[open] summary i { transform:translateY(2px) rotate(-135deg); }
.doc-toc ol { display:grid; gap:1px; margin:0; padding:0 8px 10px; list-style:none; }
.doc-toc a { display:block; word-break:auto-phrase; padding:8px 12px; border-radius:10px; color:var(--ink-3); font-size:13.5px; line-height:1.55; text-decoration:none; transition:color .2s, background-color .2s, box-shadow .2s; }
.doc-toc a:hover { color:var(--ink); background:rgba(255,255,255,.05); }
.doc-toc a.is-current { color:var(--g1); background:linear-gradient(var(--g2),var(--g2)) 0 50%/2px calc(100% - 14px) no-repeat, rgba(242,215,151,.07); }
.doc-body { min-width:0; max-width:780px; color:var(--ink-2); font-size:15.5px; line-height:2; }
.doc-sec + .doc-sec { margin-top:clamp(36px,4.6vw,54px); padding-top:clamp(32px,4.2vw,50px); border-top:1px solid var(--line); }
.doc-sec h2 { margin:0 0 16px; color:var(--ink); font:700 clamp(19px,2.1vw,23px)/1.5 var(--font); }
.doc-sec h3 { margin:22px 0 8px; color:var(--g2); font:700 15.5px/1.6 var(--font); }
.doc-body .panel > :first-child { margin-top:0; }
.doc-body .panel > :last-child, .doc-sec > :last-child { margin-bottom:0; }
.doc-body p { margin:0 0 14px; }
.doc-body ul, .doc-body ol { margin:0 0 14px; padding-left:1.45em; }
.doc-body li + li { margin-top:8px; }
.doc-body li::marker { color:var(--g4); font-weight:700; }
.doc-body li > ul, .doc-body li > ol { margin-top:8px; }
.doc-body strong { color:var(--ink); }
.doc-body a { color:var(--g2); text-decoration:underline; text-decoration-color:rgba(242,215,151,.45); text-underline-offset:4px; transition:color .2s, text-decoration-color .2s; }
.doc-body a:hover { color:var(--g1); text-decoration-color:currentColor; }
.doc-body code { padding:.12em .45em; border-radius:6px; background:rgba(255,255,255,.075); box-shadow:inset 0 0 0 1px var(--line); color:var(--ink); font:500 .88em/1.6 ui-monospace,'Cascadia Mono',Consolas,monospace; overflow-wrap:anywhere; }
.doc-body .note { color:var(--ink-3); font-size:13.5px; line-height:1.9; }
.scroll-hint { display:none; margin:0 0 8px; color:var(--ink-3); font-size:12.5px; }
.table-scroll { margin:16px 0; overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:16px; background:rgba(255,255,255,.022); box-shadow:inset 0 0 0 1px var(--line); scrollbar-width:thin; }
.table-scroll table { width:100%; min-width:720px; border-collapse:collapse; font-size:13.5px; line-height:1.8; }
.table-scroll.narrow table { min-width:564px; }
.doc-body th, .doc-body td { padding:13px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.doc-body th + th, .doc-body td + td { border-left:1px solid var(--line); }
.doc-body tr:last-child > td { border-bottom:0; }
.doc-body th { background:rgba(242,215,151,.06); color:var(--g2); font:700 12.5px/1.6 var(--font); letter-spacing:.06em; white-space:nowrap; }
.doc-body td:first-child { color:var(--ink); font-weight:700; }
.doc-body th:first-child, .doc-body td:first-child { min-width:10.5em; }

/* ---------- 404 ---------- */
.nf { display:grid; justify-items:center; align-content:center; min-height:min(64vh,620px); padding-bottom:20px; text-align:center; }
.nf > * { animation:rise .9s var(--ease-out) both; }
.nf > :nth-child(2) { animation-delay:.08s; } .nf > :nth-child(3) { animation-delay:.16s; } .nf > :nth-child(n+4) { animation-delay:.24s; }
.nf-code { display:flex; align-items:center; gap:.06em; margin:0; font:200 clamp(104px,24vw,208px)/1 var(--font); letter-spacing:-.04em; background:var(--gold-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.nf-code i { width:.66em; height:.66em; margin:0 .05em 0 .09em; border-radius:50%; box-shadow:inset .17em -.05em 0 0 var(--g2); transform:rotate(-24deg); filter:drop-shadow(0 0 26px rgba(242,215,151,.45)); }
.nf h1 { margin:18px 0 0; font:700 clamp(26px,4.4vw,42px)/1.3 var(--font); }
.nf .lead { margin-top:16px; max-width:34em; }
.nf-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:32px 0 0; }
.nf .note { margin:26px 0 0; max-width:40em; line-height:1.9; }

/* ---------- 画面の幅 ---------- */
@media (min-width:1200px) {
  .doc { grid-template-columns:272px minmax(0,1fr); gap:clamp(44px,5vw,76px); align-items:start; }
  .doc-toc { position:sticky; top:108px; max-height:calc(100vh - 132px); overflow-y:auto; scrollbar-width:thin; }
  .doc-toc summary { pointer-events:none; }
  .doc-toc summary i { display:none; }
}
@media (max-width:899px) {
  .dl-help { grid-template-columns:minmax(0,1fr); gap:12px; }
}
@media (max-width:759px) {
  .cg-warning-options { grid-template-columns:minmax(0,1fr); gap:10px; }
  .scroll-hint { display:block; }
  .scroll-hint.narrow { display:none; }
  .table-scroll th:first-child, .table-scroll td:first-child { position:sticky; left:0; z-index:1; min-width:0; width:132px; max-width:132px; background:#0f0d1c; box-shadow:1px 0 0 var(--line-2); }
  .table-scroll th:first-child { background:#191628; white-space:normal; }
}
@media (max-width:600px) {
  .pg { padding-top:clamp(104px,15vh,132px); }
  .dl-orb { width:148px; height:148px; margin-bottom:24px; }
  .dl-logo { width:90px; height:90px; border-radius:22px; }
  .dl-button { width:100%; }
  .dl-help-card { grid-template-columns:minmax(0,1fr); gap:14px; }
  .cg-warning-option { gap:13px; padding:14px 14px; border-radius:16px; }
  .cg-option-icon { width:40px; height:40px; border-radius:12px; }
  .cg-steps > li { grid-template-columns:32px minmax(0,1fr); column-gap:14px; }
  .cg-steps > li:not(:last-child)::before { left:15.5px; top:40px; }
  .cg-number { width:32px; height:32px; font-size:13.5px; }
  .cg-footer-links a { width:100%; justify-content:space-between; }
  .doc-body { font-size:15px; line-height:1.95; }
  .doc-body th, .doc-body td { padding:11px 13px; }
  .nf-actions .btn { flex:1 1 100%; }
}
@media (max-width:599px) {
  .scroll-hint.narrow { display:block; }
}

/* ---------- 色を強くする設定・印刷 ---------- */
@media (forced-colors:active) {
  .nf-code { background:none; color:CanvasText; }
  .cg-warning-option, .cg-answer, .dl-help-card, .doc-toc, .table-scroll, .cg-important { border:1px solid CanvasText; }
  .cg-warning-option[aria-pressed="true"] { border-width:3px; }
}
@media print {
  :root { --ink:#000; --ink-2:#1c1c1c; --ink-3:#444; --g1:#000; --g2:#4a3a12; --g4:#4a3a12; --line:#bbb; --line-2:#999; }
  .pg { padding-top:0; }
  .pg-glow, .ft, .doc-toc, .pg-back, .dl-orb, .skip { display:none !important; }
  .pg-head > *, .pg-back, .dl-in > *, .nf > * { animation:none !important; }
  .doc { display:block; }
  .doc-body { max-width:none; font-size:11pt; line-height:1.8; }
  .doc-sec { break-inside:auto; }
  .doc-sec h2 { break-after:avoid; }
  .table-scroll { overflow:visible; background:none; box-shadow:none; border:1px solid #999; border-radius:0; }
  .table-scroll table { min-width:0 !important; font-size:9.5pt; }
  .table-scroll th:first-child, .table-scroll td:first-child { position:static; max-width:none; background:none; box-shadow:none; }
  .doc-body th { background:#eee; }
  .doc-body a, .cg-steps a { color:#000; }
  .cg-answer { display:block !important; box-shadow:none; border:1px solid #999; background:none; break-inside:avoid; }
  .cg-warning-options { display:none; }
}
