/* ShibaSoftware（夜空とドット絵のイメージ） */
:root {
  --bg: #15142e; --bg2: #221f48; --card: #2a2652; --line: #4a4380;
  --text: #f4f0ff; --sub: #b9b2dc; --gold: #ffd77a; --shiba: #ffb040;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); line-height: 1.8;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang SC", "Noto Sans JP", "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, #1b1a4a 0%, #2c2560 55%, #3d2e6a 100%) fixed;
}
img { max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: var(--gold); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 言語：html[data-l] に合う要素だけ出す */
html[data-l="ja"] [data-lang]:not([data-lang="ja"]),
html[data-l="en"] [data-lang]:not([data-lang="en"]),
html[data-l="zh"] [data-lang]:not([data-lang="zh"]) { display: none !important; }

header.site { position: sticky; top: 0; z-index: 10; background: rgba(21, 20, 46, .88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
header.site .logo img { height: 39px; display: block; }
nav.site { display: flex; align-items: center; gap: 18px; font-size: .95em; }
nav.site a { color: var(--text); text-decoration: none; }
nav.site a:hover { color: var(--gold); }
.langs { display: flex; gap: 4px; }
.langs button { white-space: nowrap; background: transparent; color: var(--sub); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font: inherit; font-size: .85em; cursor: pointer; }
.langs button.on { background: var(--gold); color: #2a1f00; border-color: var(--gold); }

.hero { text-align: center; padding: 72px 0 56px; }
.hero .mascot { width: 120px; }
.hero h1 { font-size: 2.1em; margin: 12px 0 8px; letter-spacing: .02em; }
.hero p { color: var(--sub); margin: 0; }
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff4c0 50%, transparent 51%), radial-gradient(2px 2px at 80% 12%, #fff4c0 50%, transparent 51%),
    radial-gradient(2px 2px at 65% 35%, #a8c8ff 50%, transparent 51%), radial-gradient(2px 2px at 25% 60%, #fff4c0 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 70%, #a8c8ff 50%, transparent 51%), radial-gradient(2px 2px at 45% 8%, #fff4c0 50%, transparent 51%),
    radial-gradient(2px 2px at 5% 85%, #a8c8ff 50%, transparent 51%), radial-gradient(2px 2px at 55% 90%, #fff4c0 50%, transparent 51%); }

section { padding: 40px 0; }
h2 { font-size: 1.4em; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 10px; height: 10px; background: var(--shiba); box-shadow: 4px 4px 0 var(--gold); }

.game-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border: 2px solid #c8a860; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s; }
.game-card:hover { transform: translateY(-3px); }
.game-card .body { padding: 22px 24px; }
.game-card h3 { margin: 0 0 4px; font-size: 1.3em; color: var(--gold); }
.game-card .tag { display: inline-block; font-size: .8em; color: var(--sub); border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; margin: 0 6px 10px 0; }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.more { display: inline-block; margin-top: 8px; color: var(--gold); }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.btn { display: inline-block; background: var(--gold); color: #2a1f00; text-decoration: none; font-weight: bold; border-radius: 8px; padding: 10px 20px; }
.btn.gray { background: #4a4380; color: var(--sub); cursor: default; }

/* ゲームのページ */
.game-hero img { width: 100%; border-radius: 12px; border: 2px solid #c8a860; display: block; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 0; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shots img { border-radius: 10px; border: 2px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.features .box h3 { margin: 0 0 6px; color: var(--gold); font-size: 1.05em; }
.features .box p { margin: 0; color: var(--sub); }
.dogs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dogs img { height: 80px; }

/* 文書（プライバシーポリシー） */
.doc { background: rgba(255,255,255,.96); color: #222; border-radius: 12px; padding: 28px 30px; margin: 32px auto; }
.doc a { color: #4a3ab0; }
.doc h1 { font-size: 1.5em; margin-top: 0; }
.doc h2 { font-size: 1.1em; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin-top: 2em; }
.doc h2::before { display: none; }
.doc .note { color: #666; font-size: .9em; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--sub); font-size: .9em; text-align: center; }
footer.site a { color: var(--sub); margin: 0 8px; }

@media (max-width: 720px) {
  header.site .logo img { height: 30px; }
  nav.site { gap: 10px; font-size: .85em; }
  nav.site > a { display: none; }
  .hero { padding: 48px 0 32px; } .hero h1 { font-size: 1.6em; }
  .game-card { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .doc { padding: 20px 18px; }
}
