/* M PLUS Rounded 1c（SIL Open Font License 1.1）。Google Fonts から読み込まず、自分のサイトから配る（2026-10-10）。
   ファイルは tools/subset_fonts.py がページで使う文字だけに絞って作る。ライセンスは /fonts/LICENSE.txt */
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/mplusrounded1c-500.woff2") format("woff2"); }
@font-face { font-family: "M PLUS Rounded 1c"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/mplusrounded1c-800.woff2") format("woff2"); }

/* PonyPoko landing — ZipangGames */
:root {
  --ink: #4a3138;
  --ink-soft: #7a6168;
  --pink: #f2789b;
  --pink-deep: #e0577f;
  --yellow: #ffc94d;
  --sky: #cfeefd;
  --blush: #fde3ef;
  --card: #ffffff;
  --line: #f1d9e2;
  --radius: 20px;
  --shadow: 0 6px 20px rgba(160, 90, 120, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.8;
  background: linear-gradient(180deg, var(--sky) 0%, #f3ecfb 45%, var(--blush) 100%) fixed;
  min-height: 100vh;
}

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

a { color: var(--pink-deep); }
a:hover { color: var(--pink); }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-header .brand img { width: 120px; }
.site-header .back { font-size: 14px; font-weight: 800; text-decoration: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 24px 0 40px; }
.hero .logo { width: min(440px, 86vw); margin: 0 auto 8px; filter: drop-shadow(0 6px 10px rgba(160, 90, 120, .18)); }
.hero .catch { font-size: clamp(20px, 5vw, 28px); font-weight: 800; margin: 8px 0 4px; }
.hero .lead { color: var(--ink-soft); margin: 0 auto 24px; max-width: 34em; }
.hero .horses { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 0 auto 24px; }
.hero .horses img { width: 15%; max-width: 88px; animation: bob 2.4s ease-in-out infinite; }
.hero .horses img:nth-child(2) { animation-delay: .3s; }
.hero .horses img:nth-child(3) { animation-delay: .6s; }
.hero .horses img:nth-child(4) { animation-delay: .9s; }
.hero .horses img:nth-child(5) { animation-delay: 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero .horses img { animation: none; } }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 200px; padding: 10px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.3;
}
.store small { font-size: 11px; opacity: .8; }
.store strong { font-size: 18px; font-weight: 800; }
.store.is-soon { background: #b9a9ae; cursor: default; }
.store.is-soon small::after { content: "（近日公開）"; }

/* ---------- sections ---------- */
section { padding: 32px 0; }
h2.sec-title { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 20px; }
h2.sec-title span { display: block; font-size: 12px; letter-spacing: .15em; color: var(--pink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink); color: #fff; font-weight: 800; margin-bottom: 8px;
}

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.showcase .shot { max-width: 300px; margin: 0 auto; border-radius: 24px; border: 6px solid #fff; box-shadow: var(--shadow); }
.showcase .movie { margin: 0; text-align: center; }
.showcase video.shot { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #fde3ef; }
.showcase .movie figcaption { margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
/* プレイ動画の「音を出す」ボタン（動画の右下に重ねる） */
.showcase .movie-wrap { position: relative; max-width: 300px; margin: 0 auto; }
.showcase .movie-wrap video.shot { max-width: none; }
.sound-btn {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(74, 49, 56, 0.85); color: #fff;
  font: inherit; font-size: 13px; font-weight: 800; line-height: 1.2; cursor: pointer; box-shadow: var(--shadow);
}
.sound-btn[hidden] { display: none; }
.sound-btn:hover { background: var(--ink); }
.sound-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sound-btn.on { background: var(--pink-deep); }
.sound-btn svg { width: 18px; height: 18px; flex: none; }
.sound-btn .wave { display: none; }
.sound-btn.on .wave { display: inline; }
.sound-btn.on .x { display: none; }
@media (max-width: 640px) { .showcase { grid-template-columns: 1fr; } }

.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.lineup figure { margin: 0; text-align: center; }
.lineup figcaption { font-size: 12px; font-weight: 800; color: var(--ink-soft); }

/* ---------- document pages ---------- */
.doc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px; margin: 8px 0 40px; }
@media (min-width: 640px) { .doc { padding: 40px; } }
.doc h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.doc .meta { color: var(--ink-soft); font-size: 13px; margin: 0 0 24px; }
.doc h2 { font-size: 18px; font-weight: 800; margin: 32px 0 8px; padding-left: 10px; border-left: 5px solid var(--pink); }
.doc h3 { font-size: 16px; font-weight: 800; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { width: 34%; color: var(--ink-soft); font-weight: 800; }
.doc .note { background: #fff6f9; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.mail {
  display: inline-block; font-size: 17px; font-weight: 800; word-break: break-all;
  background: #fff6f9; border: 2px dashed var(--pink); border-radius: 12px; padding: 10px 16px; text-decoration: none;
}

/* ---------- footer ---------- */
.site-footer { padding: 32px 0 40px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0; margin: 0 0 14px; }
.site-footer nav a { color: var(--ink); text-decoration: none; font-weight: 800; }
.site-footer nav a:hover { color: var(--pink-deep); }
.site-footer small { display: block; }

/* ---------- language switch (JP / EN) ---------- */
.lang-bar .wrap { display: flex; justify-content: flex-end; padding-top: 10px; }
.lang-switch { display: inline-flex; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch a { display: inline-block; min-width: 40px; padding: 4px 10px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 800; line-height: 1.4; color: var(--ink-soft); text-decoration: none; }
.lang-switch a:hover { color: var(--pink-deep); }
.lang-switch a[aria-current="page"] { background: var(--pink); color: #fff; }
.lang-switch { align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch .flag { width: auto; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.lang-switch .sep { color: var(--ink-soft); font-size: 13px; font-weight: 800; opacity: .5; }
.doc .note a { font-weight: 800; }
:lang(en) .store.is-soon small::after { content: " (coming soon)"; }
