/* アプリのメニュー（ui/video/GameWindow.kt、GameMenu.kt）と同じ配色とドットフォント。
   フォントは 10px のドットでできているので、文字の大きさは 10px の倍数にしてにじませない */

@font-face {
  font-family: "JF Dot M+S 10";
  src: url("fonts/jf-dot-mplus-s10.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JF Dot M+S 10";
  src: url("fonts/jf-dot-mplus-s10b.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #d8f5ea;            /* アイコンの背景 */
  --bg-pattern: #c6ecdd;
  --ink: #1a1b21;
  --window-top: #3858c8;
  --window-bottom: #101870;
  --window-border: #9090a0;
  --window-text: #ffffff;
  --header: #a8c0ff;
  --value: #ffe070;
  --note: #c8d0f0;
  --shadow: rgba(32, 32, 32, 0.31);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  /* 方眼の背景 */
  background-image:
    linear-gradient(var(--bg-pattern) 2px, transparent 2px),
    linear-gradient(90deg, var(--bg-pattern) 2px, transparent 2px);
  background-size: 24px 24px;
  font-family: "JF Dot M+S 10", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

img {
  image-rendering: pixelated;
}

/* ヘッダー */

.hero {
  padding: 48px 16px 32px;
  text-align: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
}

.hero-title {
  margin: 16px 0 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 3px 3px 0 var(--shadow);
}

.hero-sub {
  margin: 4px 0 0;
  color: #45464f;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 20px;
}

.store-badge {
  display: inline-block;
  margin: 24px 0 0;
  padding: 8px 20px;
  color: var(--window-text);
  background: #45464f;
  border: 2px solid var(--window-border);
  border-radius: 8px;
}

/* 下のページ（プライバシーポリシーなど）のヘッダー */

.page-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 24px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.back:hover span {
  text-decoration: underline;
}

.page-title {
  margin: 16px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 3px 3px 0 var(--shadow);
}

.dates {
  margin: 0 0 24px;
  text-align: right;
  color: #45464f;
}

/* 本文のウィンドウ */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.window {
  margin: 0 0 24px;
  padding: 20px 24px;
  color: var(--window-text);
  background: linear-gradient(var(--window-top), var(--window-bottom));
  /* 灰と白の二重枠 */
  border: 2px solid var(--window-border);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #ffffff, 4px 4px 0 var(--shadow);
  text-shadow: 2px 2px 0 var(--shadow);
}

.window h2 {
  margin: 0 0 12px;
  padding-bottom: 4px;
  color: var(--header);
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px dashed var(--header);
}

.window p {
  margin: 0;
}

.window p + p,
.window p + .spec,
.window .spec + p,
.window p + .links {
  margin-top: 12px;
}

.window .note {
  margin-top: 12px;
  color: var(--note);
}

.window a {
  color: var(--value);
}

.links {
  margin: 0;
  padding-left: 1.5em;
}

/* できること（メニューの項目と値） */

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  padding: 4px 0 4px 20px;
  position: relative;
}

.menu-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  font-size: 10px;
  line-height: 32px;
  opacity: 0;
}

.menu-list li:hover::before {
  opacity: 1;
  animation: blink 0.8s steps(1) infinite;
}

.menu-list .value {
  color: var(--value);
  margin-left: auto;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* つかいかた */

.steps {
  margin: 0;
  padding-left: 1.5em;
}

.steps li + li {
  margin-top: 8px;
}

.steps li::marker {
  color: var(--value);
  font-weight: 700;
}

/* 動作環境 */

.spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}

.spec dt {
  color: var(--value);
}

.spec dd {
  margin: 0;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .window {
    padding: 16px;
  }

  .spec {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .spec dd + dt {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-list li:hover::before {
    animation: none;
  }
}

/* フッター */

.footer {
  padding: 16px 16px 40px;
  text-align: center;
  color: #45464f;
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
}
