/* Packet Gate のページ共通（/packetgate/ 以下）。ゲームの夜のオフィスに合わせた紺・木目・シアン */
/* ===== Packet Gate 専用（ゲームの夜のオフィスに合わせた紺・木目・シアン） ===== */
body.pg-page {
  --pg-night: #101626;
  --pg-night-2: #172036;
  --pg-board: #0f1a33;
  --pg-wood: #3a2618;
  --pg-wood-2: #5a3a22;
  --pg-paper: #f4e8cf;
  --pg-paper-ink: #3b2a1c;
  --pg-text: #e8ecf5;
  --pg-muted: #a9b3c8;
  --pg-line: rgba(255, 255, 255, .12);
  --pg-cyan: #3ee0f0;
  --pg-cyan-dim: rgba(62, 224, 240, .14);
  --pg-red: #ff5a4a;
  --pg-red-dim: rgba(255, 90, 74, .14);
  --pg-amber: #f5b13d;
  background: var(--pg-night);
  color: var(--pg-text);
}
.pg-page ::selection { background: var(--pg-cyan); color: var(--pg-night); }
.pg-page main a { color: var(--pg-cyan); }
.pg-page main a:focus-visible, .pg-page main button:focus-visible, .pg-page main summary:focus-visible { outline-color: var(--pg-cyan); }
.pg-page .site-header { margin-bottom: -88px; }
.pg-page .site-header .container { background: rgba(16, 22, 38, .72); border-color: var(--pg-line); }
.pg-page .site-nav a { color: #c7cfdf; }
.pg-page .site-nav a:hover { color: #fff; }
.pg-page .site-footer { border-top: 1px solid var(--pg-line); }

.pg-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pg-sec { padding: 96px 0; }
.pg-sec + .pg-sec { border-top: 1px solid var(--pg-line); }
.pg-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pg-cyan);
}
.pg-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--pg-cyan); box-shadow: 0 0 12px var(--pg-cyan); }
.pg-h2 { margin: 0 0 16px; font-size: 36px; line-height: 48px; letter-spacing: -.01em; font-weight: 700; color: #fff; text-wrap: balance; }
.pg-lead { max-width: 720px; margin: 0; font-size: 17px; line-height: 32px; color: var(--pg-muted); }
.pg-lead strong { color: #fff; }

/* ---------- Hero ---------- */
.pg-hero { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.pg-hero-art { position: absolute; inset: 0; z-index: -2; }
.pg-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.pg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 22, 38, .92) 0%, rgba(16, 22, 38, .62) 42%, rgba(16, 22, 38, 0) 70%),
    linear-gradient(0deg, var(--pg-night) 0%, rgba(16, 22, 38, 0) 40%);
}
.pg-hero-body { padding: 160px 0 72px; max-width: 560px; }
.pg-title { margin: 0; }
.pg-title img { display: block; width: min(440px, 80vw); height: auto; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .5)); }
.pg-title-sub { display: block; margin-top: 16px; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .12em; color: var(--pg-cyan); }
.pg-catch { margin: 24px 0 0; font-size: 30px; line-height: 44px; font-weight: 700; color: #fff; text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.pg-catch em { font-style: normal; color: var(--pg-red); }
.pg-hero-text { margin: 16px 0 0; font-size: 16px; line-height: 28px; color: #d3d9e6; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.pg-chips li {
  padding: 4px 12px; border: 1px solid var(--pg-line); border-radius: 999px;
  background: rgba(16, 22, 38, .6); font-size: 13px; line-height: 20px; color: #dfe5f1;
}
.pg-chips li.is-hot { border-color: var(--pg-cyan); color: var(--pg-cyan); background: var(--pg-cyan-dim); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 700;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.pg-page main a.pg-btn { text-decoration: none; }
.pg-page main a.pg-btn-primary { background: var(--pg-cyan); color: var(--pg-night); box-shadow: 0 0 0 0 rgba(62, 224, 240, .5); }
.pg-page main a.pg-btn-primary:hover { box-shadow: 0 0 24px rgba(62, 224, 240, .45); }
.pg-page main a.pg-btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; background: rgba(16, 22, 38, .5); }
.pg-page main a.pg-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.pg-btn:active { transform: scale(.98); }
.pg-status { margin: 20px 0 0; font-size: 13px; line-height: 20px; color: var(--pg-muted); }
.pg-status b { color: var(--pg-amber); font-weight: 600; }

.pg-crumb { padding-top: 24px; font-size: 13px; line-height: 20px; color: var(--pg-muted); }
.pg-page main .pg-crumb a { color: var(--pg-muted); }
.pg-crumb span { margin: 0 8px; opacity: .6; }

/* ---------- Pitch (どんなゲーム) ---------- */
.pg-pitch { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pg-verdict { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pg-verdict li {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 16px; border: 1px solid var(--pg-line); border-radius: 14px; background: var(--pg-night-2);
}
.pg-verdict .ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  font-family: var(--mono); font-size: 18px; font-weight: 700;
}
.pg-verdict .ok { background: var(--pg-cyan-dim); color: var(--pg-cyan); }
.pg-verdict .ng { background: var(--pg-red-dim); color: var(--pg-red); }
.pg-verdict .wait { background: rgba(245, 177, 61, .14); color: var(--pg-amber); }
.pg-verdict b { display: block; color: #fff; font-size: 15px; line-height: 24px; }
.pg-verdict span.d { display: block; font-size: 14px; line-height: 22px; color: var(--pg-muted); }

/* ---------- How to play ---------- */
.pg-steps { counter-reset: step; display: grid; gap: 72px; margin: 56px 0 0; padding: 0; list-style: none; }
.pg-step { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.pg-step:nth-child(even) .pg-step-text { order: 2; }
.pg-step-no {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 13px; line-height: 16px; letter-spacing: .12em; color: var(--pg-cyan);
}
.pg-step-no::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 28px; line-height: 32px; font-weight: 700; color: #fff; }
.pg-step h3 { margin: 0 0 12px; font-size: 24px; line-height: 34px; font-weight: 700; color: #fff; }
.pg-step p { margin: 0 0 12px; font-size: 15px; line-height: 28px; color: var(--pg-muted); }
.pg-step p strong { color: #fff; }
.pg-shot {
  position: relative; margin: 0; padding: 10px; border-radius: 18px;
  background: linear-gradient(180deg, var(--pg-wood-2), var(--pg-wood));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.pg-shot img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--pg-board); }
.pg-shot figcaption { padding: 10px 4px 2px; font-size: 12px; line-height: 18px; color: #e7d3b4; }
.pg-shot a { display: block; cursor: zoom-in; }

.pg-rules { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pg-rules li {
  padding: 10px 14px; border-radius: 10px; background: var(--pg-paper); color: var(--pg-paper-ink);
  font-size: 14px; line-height: 22px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.pg-rules .cond { font-weight: 600; }
.pg-rules .act { display: inline-block; margin-left: 4px; padding: 0 8px; border: 1.5px solid #c8402f; border-radius: 6px; color: #b3321f; font-weight: 700; font-size: 13px; }
.pg-rules .act.pass { border-color: #2c8a5a; color: #217049; }

.pg-judge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 64px 0 0; }
.pg-judge div { padding: 16px; border: 1px solid var(--pg-line); border-radius: 14px; background: var(--pg-night-2); }
.pg-judge dt { font-weight: 700; color: #fff; font-size: 15px; line-height: 24px; }
.pg-judge dd { margin: 4px 0 0; font-size: 13px; line-height: 22px; color: var(--pg-muted); }
.pg-judge .ok dt { color: var(--pg-cyan); }
.pg-judge .ng dt { color: var(--pg-red); }
.pg-judge .wait dt { color: var(--pg-amber); }

/* ---------- Chapters ---------- */
.pg-chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.pg-ch {
  position: relative; padding: 24px; border-radius: 16px; background: var(--pg-paper); color: var(--pg-paper-ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3);
}
.pg-ch-no { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .1em; color: #8a6a4a; }
.pg-ch h3 { margin: 4px 0 8px; font-size: 20px; line-height: 28px; color: var(--pg-paper-ink); }
.pg-ch p { margin: 0; font-size: 14px; line-height: 24px; color: #5a4532; }
.pg-ch .tag { position: absolute; top: 20px; right: 20px; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 700; }
.pg-ch .tag.free { background: #1f7a52; color: #fff; }
.pg-ch .tag.full { background: var(--pg-wood); color: #f4e8cf; }

/* ---------- After campaign ---------- */
.pg-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 48px 0 0; }
.pg-mode { padding: 24px; border: 1px solid var(--pg-line); border-radius: 18px; background: var(--pg-night-2); }
.pg-mode h3 { margin: 16px 0 8px; font-size: 20px; line-height: 28px; color: #fff; }
.pg-mode p { margin: 0; font-size: 14px; line-height: 26px; color: var(--pg-muted); }
.pg-mode .pg-shot { padding: 8px; }

/* ---------- Gallery ---------- */
.pg-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 440px); gap: 16px;
  margin: 40px 0 0; padding: 0 0 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-color: var(--pg-wood-2) transparent;
}
.pg-gallery li { scroll-snap-align: start; }
.pg-gallery .pg-shot { padding: 8px; }

/* ---------- Features / info ---------- */
.pg-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.pg-features li { padding: 20px; border: 1px solid var(--pg-line); border-radius: 14px; }
.pg-features b { display: block; margin-bottom: 4px; color: #fff; font-size: 15px; line-height: 24px; }
.pg-features span { font-size: 14px; line-height: 24px; color: var(--pg-muted); }

.pg-price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.pg-plan { padding: 28px; border-radius: 18px; border: 1px solid var(--pg-line); background: var(--pg-night-2); }
.pg-plan.is-full { border-color: var(--pg-cyan); box-shadow: 0 0 0 1px var(--pg-cyan) inset; }
.pg-plan h3 { margin: 0; font-size: 16px; line-height: 24px; color: var(--pg-muted); font-weight: 600; }
.pg-plan .yen { margin: 4px 0 16px; font-size: 32px; line-height: 40px; font-weight: 700; color: #fff; }
.pg-plan .yen small { font-size: 14px; font-weight: 500; color: var(--pg-muted); margin-left: 6px; }
.pg-plan ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 26px; color: #d3d9e6; }

.pg-table { width: 100%; margin: 32px 0 0; border-collapse: collapse; font-size: 14px; line-height: 24px; }
.pg-table th, .pg-table td { padding: 12px 8px; border-bottom: 1px solid var(--pg-line); text-align: left; vertical-align: top; }
.pg-table th { width: 180px; color: var(--pg-muted); font-weight: 600; }
.pg-table td { color: #e8ecf5; }

.pg-faq { margin: 32px 0 0; border-top: 1px solid var(--pg-line); }
.pg-faq details { border-bottom: 1px solid var(--pg-line); }
.pg-faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none;
  font-size: 16px; line-height: 26px; font-weight: 600; color: #fff;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; font-family: var(--mono); color: var(--pg-cyan); transition: transform .2s var(--ease); }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq p { margin: 0; padding: 0 4px 20px; font-size: 15px; line-height: 28px; color: var(--pg-muted); }

.pg-en { background: var(--pg-night-2); }
.pg-en h3 { margin: 32px 0 8px; font-size: 18px; line-height: 28px; color: #fff; }
.pg-en p, .pg-en li { font-size: 15px; line-height: 28px; color: #c9d1e1; }
.pg-en p { max-width: 760px; margin: 0 0 12px; }

.pg-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }
.pg-page main .pg-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--pg-line); border-radius: 12px;
  color: #e8ecf5; font-size: 14px; line-height: 20px;
}
.pg-page main .pg-links a:hover { border-color: var(--pg-cyan); color: var(--pg-cyan); text-decoration: none; }

/* lightbox */
.pg-lightbox { width: min(96vw, 1400px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.pg-lightbox::backdrop { background: rgba(5, 8, 16, .88); }
.pg-lightbox img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.pg-lightbox p { margin: 8px 0 0; text-align: center; font-size: 13px; line-height: 20px; color: #c9d1e1; }
.pg-lightbox button {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(16, 22, 38, .8); color: #fff; font-size: 22px; cursor: pointer;
}

.pg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .pg-pitch, .pg-step, .pg-modes, .pg-price { grid-template-columns: 1fr; gap: 24px; }
  .pg-step:nth-child(even) .pg-step-text { order: 0; }
  .pg-chapters, .pg-features { grid-template-columns: 1fr 1fr; }
  .pg-judge { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pg-wrap { padding: 0 16px; }
  .pg-sec { padding: 64px 0; }
  .pg-h2 { font-size: 28px; line-height: 38px; }
  .pg-hero { min-height: 0; }
  .pg-hero-art { position: relative; inset: auto; height: 56vw; }
  .pg-hero { flex-direction: column; align-items: stretch; }
  .pg-hero::after { background: linear-gradient(0deg, var(--pg-night) 0%, var(--pg-night) 46%, rgba(16, 22, 38, 0) 62%); }
  .pg-hero-body { padding: 0 0 48px; margin-top: -16px; }
  .pg-catch { font-size: 24px; line-height: 36px; }
  .pg-chapters, .pg-features, .pg-judge { grid-template-columns: 1fr; }
  .pg-table th { width: 110px; }
  .pg-page .site-header { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-btn, .pg-faq summary::after { transition: none; }
}

/* ---------- 言語の切り替え ---------- */
.pg-lang { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--pg-line); border-radius: 999px; background: rgba(16, 22, 38, .6); font-size: 13px; line-height: 20px; }
.pg-lang a, .pg-lang span { padding: 4px 12px; border-radius: 999px; }
.pg-page main .pg-lang a { color: #c7cfdf; }
.pg-page main .pg-lang a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); }
.pg-lang span { background: var(--pg-cyan); color: var(--pg-night); font-weight: 700; }
.pg-hero .pg-lang { margin-bottom: 24px; }

/* 英語版への案内（日本語ページの下） */
.pg-en-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border: 1px solid var(--pg-line); border-radius: 18px; background: var(--pg-night-2); }
.pg-en-cta p { margin: 0; color: #c9d1e1; font-size: 15px; line-height: 26px; }
.pg-en-cta strong { display: block; color: #fff; font-size: 18px; line-height: 28px; }

/* ---------- プレスキット・文書ページ ---------- */
.pg-doc { padding: 140px 0 96px; }
.pg-doc h1 { margin: 0 0 12px; font-size: 40px; line-height: 52px; color: #fff; }
.pg-doc h2 { margin: 64px 0 16px; font-size: 26px; line-height: 36px; color: #fff; border: 0; padding: 0; }
.pg-doc h3 { margin: 32px 0 8px; font-size: 18px; line-height: 28px; color: #fff; }
.pg-doc p, .pg-doc li { font-size: 15px; line-height: 28px; color: #c9d1e1; }
.pg-doc p { max-width: 760px; margin: 0 0 12px; }
.pg-doc ul, .pg-doc ol { max-width: 760px; padding-left: 1.3em; }
.pg-doc strong { color: #fff; }
.pg-doc .pg-updated { font-size: 13px; color: var(--pg-muted); }
.pg-doc .pg-crumb { padding: 0 0 16px; }
.pg-copy { position: relative; max-width: 760px; margin: 12px 0 0; padding: 48px 24px 20px; border: 1px solid var(--pg-line); border-radius: 14px; background: var(--pg-night-2); }
.pg-copy p:last-child { margin-bottom: 0; }
.pg-copy-btn { position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--pg-line); border-radius: 8px; background: transparent; color: var(--pg-cyan); font: inherit; font-size: 12px; cursor: pointer; }
.pg-copy-btn:hover { border-color: var(--pg-cyan); }
.pg-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.pg-assets li { overflow: hidden; border: 1px solid var(--pg-line); border-radius: 14px; background: var(--pg-night-2); }
.pg-assets .thumb { display: flex; align-items: center; justify-content: center; height: 200px; overflow: hidden; background: #0b101c; }
.pg-assets .thumb.light { background: #e9edf3; }
.pg-assets .thumb img { max-width: 86%; max-height: 172px; width: auto; height: auto; }
.pg-assets .thumb img.cover { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.pg-assets .meta { padding: 12px 14px; font-size: 13px; line-height: 20px; color: var(--pg-muted); }
.pg-assets .meta b { display: block; color: #fff; font-size: 14px; }
.pg-page main .pg-assets a.dl { display: inline-block; margin-top: 6px; font-weight: 600; }
.pg-zip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0 0; }
.pg-zip span { font-size: 13px; color: var(--pg-muted); }
.pg-doc .pg-faq { max-width: 860px; }
.pg-doc ul.pg-assets, .pg-doc ul.pg-gallery { max-width: none; padding-left: 0; }
@media (max-width: 900px) { .pg-assets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .pg-doc { padding: 48px 0 64px; }
  .pg-doc h1 { font-size: 30px; line-height: 40px; }
  .pg-assets { grid-template-columns: 1fr; }
}
