/* Pochixel サイト共通スタイル。アプリと同じ「木と紙」の茶系トーン。 */

:root {
  --bg: #EDE4D7;
  --bg-check: #E8DFD2;
  --panel: #F6F0E7;
  --raised: #EFE7DA;
  --text: #433224;
  --dim: #6E5C48;
  --accent: #8A5A2B;
  --accent-strong: #6E4520;
  --accent-soft: #E4D3BC;
  --stroke: #D8CCB9;
  --shadow: rgba(67, 50, 36, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F;
    --bg-check: #1B1613;
    --panel: #221B15;
    --raised: #2A211A;
    --text: #EDE4DA;
    --dim: #C0B2A6;
    --accent: #C89058;
    --accent-strong: #E0AC74;
    --accent-soft: #3A2C1E;
    --stroke: #3A2F26;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--accent-soft); }

html { scroll-behavior: smooth; }

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  background-color: var(--bg);
  /* アプリの透明表現と同じ、ごく薄い市松 */
  background-image:
    linear-gradient(45deg, var(--bg-check) 25%, transparent 25%, transparent 75%, var(--bg-check) 75%),
    linear-gradient(45deg, var(--bg-check) 25%, transparent 25%, transparent 75%, var(--bg-check) 75%);
  background-size: 96px 96px;
  background-position: 0 0, 48px 48px;
  color: var(--text);
  line-height: 1.9;
}

.pixel { font-family: "DotGothic16", monospace; }

img.sprite {
  image-rendering: pixelated;
  vertical-align: middle;
}

/* ---- ヘッダー ---- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.nav .brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav nav a {
  color: var(--text);
  text-decoration: none;
}

.nav nav a:hover { color: var(--accent); }

/* ---- ヒーロー ---- */

.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 20px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero .lead {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 34em;
}

.hero .mascots { margin-bottom: 28px; }
.hero .mascots img { width: 56px; height: 56px; margin-right: 12px; }

.hero-shot img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 36px var(--shadow));
}

.store-button {
  display: inline-block;
  background: var(--accent);
  color: #FFF8EE;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-strong);
}

.store-button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-strong); }

.store-note { display: block; margin-top: 10px; font-size: 12px; color: var(--dim); }

/* ---- セクション共通 ---- */

section { padding: 48px 0; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

h2 + .section-lead { color: var(--dim); margin-bottom: 32px; }

.accent-dots { letter-spacing: 4px; color: var(--accent); font-size: 14px; }

/* ---- 機能の紹介（スクショと文章の交互配置） ---- */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

/* ヒーロー画像が右にあるので、最初の行は画像を左へ（以降交互） */
.row:nth-of-type(odd) .row-text { order: 2; }

.row h2 { font-size: 23px; margin-bottom: 10px; }

.row h2::before {
  content: "■";
  color: var(--accent);
  font-size: 13px;
  margin-right: 10px;
  vertical-align: 3px;
}

.row p {
  color: var(--text);
  font-size: 15px;
  max-width: 26em;
}

.row-text {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px 28px;
}

.row img {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 14px 28px var(--shadow));
  transform: rotate(1.2deg);
}

.row:nth-of-type(odd) img { transform: rotate(-1.2deg); }

.row img.wide { max-width: 520px; }

.misc {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.misc h2 { font-size: 20px; margin-bottom: 12px; }

.misc ul {
  padding-left: 1.3em;
  columns: 2;
  column-gap: 40px;
}

.misc li { font-size: 14px; color: var(--text); margin-bottom: 8px; break-inside: avoid; }

.misc a { color: var(--accent); }

.dev-note {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 22px 28px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

.dev-note img { width: 40px; height: 40px; display: block; margin: 0 auto 12px; }

.dev-note a { color: var(--accent); }

/* ---- CTA ---- */

.cta {
  text-align: center;
  background: var(--panel);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.cta img.icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 18px; }

/* ---- 記事ページ（プライバシー・サポート） ---- */

article {
  max-width: 720px;
  margin: 48px auto 72px;
  padding: 40px 44px 48px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 10px 30px var(--shadow);
}

@media (max-width: 760px) {
  article {
    margin: 20px 14px 40px;
    padding: 28px 22px 32px;
  }
}

article h1 { font-size: 30px; margin-bottom: 6px; }

article .updated { color: var(--dim); font-size: 14px; margin-bottom: 32px; }

article h2 { font-size: 20px; margin: 36px 0 10px; }

article p, article li { font-size: 15px; }

article ul { padding-left: 1.4em; }

article a { color: var(--accent); }

article h3 {
  font-size: 15px;
  margin: 26px 0 4px;
}

article h3::before {
  content: "■";
  color: var(--accent);
  font-size: 10px;
  margin-right: 8px;
  vertical-align: 2px;
}

article h3 + p { color: var(--text); }

.contact {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 8px;
}

.contact { background: var(--raised); }

.contact .mail, .contact a {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.contact span {
  display: block;
  font-size: 13px;
  color: var(--dim);
}

/* ---- フッター ---- */

footer {
  border-top: 1px solid var(--stroke);
  background: var(--panel);
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

footer .links { margin-bottom: 12px; }

footer .links a {
  color: var(--text);
  text-decoration: none;
  margin: 0 10px;
}

footer .links a:hover { color: var(--accent); }

footer img { width: 28px; height: 28px; margin-bottom: 10px; }

/* ---- レスポンシブ ---- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .nav nav { gap: 12px; font-size: 13px; }
  .row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .row:nth-of-type(odd) .row-text { order: 0; }
  .row p { margin-left: auto; margin-right: auto; }
  .row-text { text-align: center; padding: 20px 20px; }
  .row img { max-width: 240px; }
  .row img.wide { max-width: 100%; }
  .misc ul { columns: 1; }
}
