:root {
  --paper: #f7eedb;
  --paper-deep: #efe0c0;
  --card: #fffaf0;
  --line: #e2cfa6;
  --ink: #6b4428;
  --text: #4a3b2c;
  --muted: #8a7760;
  --green: #678359;
  --green-deep: #4f6a43;
  --wood: #d9a066;
  --wood-dark: #b97f47;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 本文が短いページでも下の帯を画面の下端に置く（縦に並べるので、子は横幅いっぱいに広げる） */
body > * { width: 100%; }

a { color: var(--green-deep); }
img { max-width: 100%; }

/* 上の帯 */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; }
.lang a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--card);
}

/* ブランドのトップ：見出しと、床に並ぶモルたち */
.hero {
  text-align: center;
  padding: 40px 20px 0;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.hero .tagline {
  margin: 16px auto 0;
  max-width: 640px;
  text-wrap: balance;
  font-size: 1.05rem;
}
.parade {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: 36px;
  padding: 0 12px;
  overflow: hidden;
}
.parade img {
  width: clamp(64px, 11vw, 116px);
  height: auto;
  margin: 0 -6px -10px;
  position: relative;
  animation: bob 2.6s ease-in-out infinite;
}
.parade img:nth-child(2n) { animation-delay: -0.9s; }
.parade img:nth-child(3n) { animation-delay: -1.7s; }
.parade img.flip { transform: scaleX(-1); }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
.floor {
  height: 56px;
  background:
    repeating-linear-gradient(90deg, transparent 0 158px, rgba(107, 68, 40, 0.18) 158px 160px),
    linear-gradient(var(--wood), var(--wood-dark));
  border-top: 4px solid #a8703c;
}

/* 中身の枠 */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px;
}
.section h2 {
  color: var(--ink);
  font-size: 1.4rem;
  margin: 0 0 20px;
  text-align: center;
}
.lead { text-align: center; margin: 0 auto; max-width: 600px; }

/* ゲームの一覧 */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.game {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.game img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.game h3 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.game p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.soon-card {
  border-style: dashed;
  justify-content: center;
  color: var(--muted);
  min-height: 128px;
}

/* ゲームのページ */
.game-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 8px;
}
.game-hero img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 6px 0 var(--line); }
.game-hero h1 { margin: 20px 0 0; color: var(--ink); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; }
.game-hero p { margin: 12px 0 0; max-width: 560px; text-wrap: balance; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.store {
  display: inline-block;
  min-width: 200px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--green-deep);
}
.store.soon { background: #c9bba2; box-shadow: 0 4px 0 #ad9f86; }

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.shots img {
  width: 240px;
  flex: none;
  border-radius: 16px;
  scroll-snap-align: center;
  box-shadow: 0 6px 0 var(--line);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.feature h3 { margin: 0; color: var(--ink); font-size: 1.05rem; }
.feature p { margin: 6px 0 0; font-size: 0.92rem; }

/* 文書（プライバシーポリシー） */
.doc { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
}
.card + .card { margin-top: 24px; }
.card h1 { color: var(--ink); font-size: 1.5rem; line-height: 1.4; margin: 0; }
.card h2 { color: var(--ink); font-size: 1rem; margin: 28px 0 4px; text-align: left; }
.card p, .card li { font-size: 0.95rem; }
.small { color: var(--muted); font-size: 0.8rem; }

footer {
  margin-top: auto;
  background: var(--paper-deep);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 8px; }
