/* ==========================================================
   Popot Games site - style.css
   色は :root の変数と、その下の配色案だけで決まる。
   配色を変えるときは「配色」の節だけ直す。
   ========================================================== */

/* ---------- 配色（ここだけで色を決める） ---------- */
:root {
  /* 既定 = 案A「夜の海」 */
  --bg: #0b1233;          /* ページの地 */
  --bg-soft: #131a47;     /* 一段明るい帯 */
  --text: #f2ebe4;        /* 本文 */
  --text-dim: #b3b0c9;    /* 補助の文 */
  --accent: #ff2d55;      /* 月・リンク・強調 */
  --accent-ink: #0b1233;  /* accent の上に載せる文字 */
  --line: rgba(242, 235, 228, 0.18); /* 罫線 */
  --glow: rgba(255, 45, 85, 0.32);   /* 月の光 */
  --font-body: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
:root[data-palette="b"] {
  /* 案B「朝の紙」 */
  --bg: #f5f2ee;
  --bg-soft: #e9e4de;
  --text: #15183f;
  --text-dim: #5a5c7a;
  --accent: #3d40b0;
  --accent-ink: #ffffff;
  --line: rgba(21, 24, 63, 0.2);
  --glow: rgba(61, 64, 176, 0.22);
}
:root[data-palette="c"] {
  /* 案C「深い入り江」 */
  --bg: #0d2a2c;
  --bg-soft: #14393c;
  --text: #e8f1ec;
  --text-dim: #9fbab4;
  --accent: #f0a63a;
  --accent-ink: #0d2a2c;
  --line: rgba(232, 241, 236, 0.2);
  --glow: rgba(240, 166, 58, 0.3);
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.95;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* 言語の切り替え。html[lang] に合う方だけ見せる */
html[lang="ja"] [lang="en"]:not(html),
html[lang="en"] [lang="ja"]:not(html) { display: none !important; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48em) { .wrap { padding: 0 2.5rem; } }

h1, h2, h3 { font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: 0.02em; }
p { margin: 0 0 1em; max-width: 38em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-family: var(--font-ui); font-size: 0.875rem; }
.nav a { color: var(--text-dim); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .links { display: none; gap: 1.25rem; }
@media (min-width: 48em) { .nav .links { display: flex; } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 0.8125rem; color: var(--text-dim); background: none; border: 0;
  padding: 0.35rem 0.8rem; cursor: pointer; min-height: 2rem;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- トップ ---------- */
.hero { position: relative; padding: 5.5rem 0 5rem; overflow: hidden; }
.hero .moon {
  position: absolute; right: 8%; top: 3.5rem; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 2.5rem 1.2rem var(--glow), 0 0 8rem 4rem var(--glow);
  animation: moonrise 2.4s ease-out both;
}
@keyframes moonrise { from { transform: translateY(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1 { font-size: clamp(3.1rem, 15vw, 8.5rem); line-height: 1.02; letter-spacing: 0.01em; font-weight: 800; }
.hero h1 span { display: block; }
.hero .tagline { margin-top: 2rem; font-size: clamp(1.15rem, 3.4vw, 1.6rem); line-height: 1.7; max-width: 24em; }

/* ---------- 節 ---------- */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.sec-title { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 2.25rem; }
.sec-title small { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 0.85rem; color: var(--text-dim); letter-spacing: 0.04em; margin-top: 0.4rem; }
.alt { background: var(--bg-soft); }

/* 事業紹介: 表の形（罫線で区切る） */
.biz { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.biz li { display: grid; gap: 0.35rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .biz li { grid-template-columns: 16rem 1fr; } }
.biz h3 { font-size: 1.2rem; }
.biz p { margin: 0; color: var(--text); }

/* 作品 */
.work { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56em) { .work { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3.5rem; } }
.work .cover { width: min(100%, 18rem); border-radius: 4px; box-shadow: 0 1.2rem 3rem rgba(0,0,0,.35); aspect-ratio: 799 / 1226; height: auto; }
.work h3 { font-size: clamp(1.9rem, 6vw, 2.8rem); color: var(--accent); margin-bottom: 0.4rem; }
.work .genre { font-family: var(--font-ui); color: var(--text-dim); margin-bottom: 1.5rem; }
.specs { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.specs li { display: flex; flex-direction: column; font-family: var(--font-ui); }
.specs b { font-family: var(--font-body); font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.specs span { font-size: 0.8125rem; color: var(--text-dim); }
.video { margin-top: 2rem; }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.video p { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--text-dim); margin: 0.6rem 0 0; }

/* 会社概要 */
.profile { margin: 0; border-top: 1px solid var(--line); }
.profile > div { display: grid; gap: 0.2rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .profile > div { grid-template-columns: 12rem 1fr; } }
.profile dt { color: var(--text-dim); font-family: var(--font-ui); font-size: 0.9rem; }
.profile dd { margin: 0; overflow-wrap: anywhere; }

/* お問い合わせ */
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; gap: 0.1rem; }
.contact-list .k { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-dim); }
.contact-list a { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-family: var(--font-ui); font-size: 0.875rem; color: var(--text-dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }

/* プライバシーポリシー */
.doc { padding: 4rem 0 3rem; }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
.doc ul { padding-left: 1.3em; max-width: 38em; }
.draft-note { border: 1px solid var(--accent); border-radius: 4px; padding: 0.9rem 1.1rem; font-family: var(--font-ui); font-size: 0.9rem; max-width: 38em; margin: 1rem 0 0.5rem; }
.doc .meta { color: var(--text-dim); font-family: var(--font-ui); font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .moon { animation: none; }
}

/* ==========================================================
   PREVIEW-ONLY START : 配色確認用の切り替え。公開前に、この節と
   各 HTML の PREVIEW-ONLY の囲み、preview-palette.js を削除する。
   ========================================================== */
.preview-palette {
  position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 50;
  display: flex; align-items: center; gap: 0.35rem;
  background: rgba(0,0,0,0.78); color: #fff; padding: 0.35rem 0.5rem; border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.7rem;
}
.preview-palette button {
  font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 0.2rem 0.55rem; cursor: pointer; min-height: 1.75rem;
}
.preview-palette button[aria-pressed="true"] { background: #fff; color: #000; }
/* PREVIEW-ONLY END */
