/* 紹介ページ（public/about/index.html・public/ja/about/index.html）の見た目。JS は使わない。
   色はアプリ（src/styles.css）、写真・OG 画像は scripts/site/make-images.mjs。文字は端末のフォント（ほかのサイトから読まない） */
:root {
  --bg: #0b0e13;
  --card: #12161d;
  --raise: #1c222b;
  --line: #232a34;
  --line2: #2c3440;
  --text: #e7ebf1;
  --text2: #c9d1dc;
  --mute: #a3adbb;
  --accent: #4cc2ff;
  --accent-ink: #06121b;
  --violet: #9c84e0;
  --font: system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 520px at 88% -6%, rgba(90, 68, 184, 0.26), transparent 70%) no-repeat,
    radial-gradient(ellipse 760px 480px at -12% 14%, rgba(44, 127, 196, 0.18), transparent 70%) no-repeat,
    var(--bg);
  color: var(--text2);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---- 上の帯 ---- */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 8px;
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
}

.lang {
  margin-left: auto;
  color: var(--mute);
  font-size: 14px;
}

.lang b {
  color: var(--text);
  font-weight: 600;
}

/* ---- いちばん上 ---- */
.hero {
  padding-top: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--text);
  background: linear-gradient(90deg, var(--text) 62%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(21px, 3.4vw, 28px);
  font-weight: 700;
  line-height: 1.4;
}

.hero > p {
  max-width: 760px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line2);
  font-weight: 600;
}

.button:hover {
  filter: brightness(1.1);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 3px 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(18, 22, 29, 0.7);
  color: var(--text2);
  font-size: 14px;
}

figure {
  margin: 28px 0 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line2);
}

figcaption {
  margin-top: 8px;
  color: var(--mute);
  font-size: 14px;
  text-align: center;
}

/* ---- 節 ---- */
section {
  margin: 64px 0;
}

h2 {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 27px;
  line-height: 1.3;
}

h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

/* 見出しは行の長さをそろえ、日本語は文節で折り返す（スマホで 1 文字だけ次の行に落ちないように。効かないブラウザはふつうに折り返す） */
.lead,
h2,
h3 {
  text-wrap: balance;
}
:lang(ja) .lead,
:lang(ja) h2,
:lang(ja) h3 {
  word-break: auto-phrase;
}

.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feats article,
.box {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.feats p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.shots figure {
  margin: 0;
}

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

.steps li {
  margin: 10px 0;
}

.steps strong {
  color: var(--text);
}

.box {
  margin-top: 20px;
}

.box p {
  margin: 0;
}

.box p + p {
  margin-top: 8px;
}

.envs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.envs p {
  margin: 0;
  font-size: 15.5px;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px;
  align-items: start;
}

.game figure {
  margin: 0;
}

.game p {
  margin: 0 0 12px;
}

.small {
  color: var(--mute);
  font-size: 14.5px;
}

.credits {
  margin: 0;
  padding-left: 1.2em;
}

.credits li {
  margin: 6px 0;
}

/* ---- いちばん下 ---- */
.foot {
  margin-top: 72px;
  padding-top: 18px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14.5px;
}

.foot p {
  margin: 4px 0;
}

@media (max-width: 860px) {
  .feats,
  .envs {
    grid-template-columns: minmax(0, 1fr);
  }
  .game {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }
  section {
    margin: 48px 0;
  }
  h2 {
    font-size: 24px;
  }
  .cta .button {
    flex: 1 1 100%;
  }
}
