/* NorthPillow Lab — 依存ゼロの手書き CSS。
   Web フォントは読まない（フォント EULA のリスクをサイトに持ち込まないため）。 */

:root {
  --ink: #101a2b;
  --panel: #1a2942;
  --panel-2: #22334f;
  --line: #31435f;
  --text: #f3eee2;
  --muted: #a9b5c6;
  --red: #e4503c;
  --yellow: #f2b134;
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yellow); }
a:hover { color: #ffd069; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* --- header --- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 26, 43, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { font-weight: 800; letter-spacing: .04em; color: var(--text); text-decoration: none; font-size: 15px; }
.brand span { color: var(--red); }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--text); }
.lang-switch {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px;
}

/* --- hero --- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.55); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,26,43,.35) 0%, rgba(16,26,43,.85) 75%, var(--ink) 100%);
}
.hero-inner { position: relative; padding: 64px 20px 56px; max-width: var(--max); margin: 0 auto; text-align: center; }
.hero-logo { width: min(640px, 88%); margin: 0 auto 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.hero p.tagline { font-size: clamp(18px, 2.6vw, 25px); font-weight: 700; margin: 0 0 14px; }
.hero p.lead { color: #e2dbcc; max-width: 640px; margin: 0 auto 28px; text-align: left; }

.cta {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 800; padding: 14px 32px; border-radius: var(--radius);
  box-shadow: 0 6px 0 #a93425; transition: transform .08s ease;
}
.cta:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 #a93425; }
.cta.is-disabled { background: var(--panel-2); color: var(--muted); box-shadow: 0 6px 0 #16233a; cursor: default; }
.cta.is-disabled:hover { transform: none; box-shadow: 0 6px 0 #16233a; color: var(--muted); }
.release-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* --- sections --- */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section > .wrap > h2 {
  font-size: clamp(22px, 3vw, 30px); margin: 0 0 28px; letter-spacing: .01em;
}
section > .wrap > h2::before { content: "▚ "; color: var(--red); }

.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.pillar:last-child { margin-bottom: 0; }
.pillar:nth-of-type(even) .pillar-text { order: 2; }
.pillar h3 { font-size: 21px; margin: 0 0 10px; color: var(--yellow); }
.pillar p { margin: 0; color: #ded7c8; }
.pillar img { border-radius: var(--radius); border: 1px solid var(--line); }

.bullets { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 40px; }
.bullets h3 { margin: 0 0 10px; font-size: 18px; }
.bullets ul { margin: 0; padding-left: 20px; color: #ded7c8; }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button {
  padding: 0; border: 1px solid var(--line); background: none; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; line-height: 0;
}
.gallery button:hover { border-color: var(--yellow); }

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(8,13,22,.95);
  display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1400px; }
.lightbox figcaption { color: var(--muted); font-size: 14px; text-align: center; padding-top: 10px; }

/* --- fictional games --- */
.tcg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcg div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.tcg img { margin: 0 auto 12px; max-height: 84px; width: auto; }
.tcg h3 { margin: 0 0 4px; font-size: 16px; }
.tcg p { margin: 0; color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* --- facts / studio --- */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 200px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.studio p { max-width: 680px; color: #ded7c8; }
.contact { margin-top: 18px; }
.contact div { margin-bottom: 6px; }
.contact span { color: var(--muted); display: inline-block; min-width: 170px; }

/* --- prose (press / privacy) --- */
.prose { padding: 48px 0; }
.prose h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; }
.prose h2 { font-size: 20px; margin: 36px 0 12px; color: var(--yellow); }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p, .prose li { color: #ded7c8; }
.prose .updated { color: var(--muted); font-size: 14px; }
.dl-list { list-style: none; padding: 0; }
.dl-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl-list small { color: var(--muted); }

/* --- footer --- */
.site-foot { padding: 30px 0 48px; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot .legal { flex-basis: 100%; line-height: 1.7; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .pillar { grid-template-columns: 1fr; }
  .pillar:nth-of-type(even) .pillar-text { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tcg { grid-template-columns: 1fr; }
  .facts th { width: 40%; white-space: normal; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.lang-switch) { display: none; }
}
