/* /about ペライチ静的ページ専用スタイル。SPA とは独立。
   ブログ記事から踏まれて「これは何のゲームか」を 1 画面で伝えるためのランディング。
   タグライン配色 / M PLUS Rounded 1c フォントは本体 src/style.css (#466) と揃える。 */

/* M PLUS Rounded 1c (weight 700) — /about 専用 subset (~37 文字)。
   タグライン (ふたりで協力するタイピングゲーム) に加え、 各セクションヘッダで使う
   漢字・カタカナ・記号 (世界変わる時間製品情報シンクロ、。1 等) も含めて 1 ファイルに
   embed (Google Fonts API で text= 指定して取得した woff2 を self-host)。
   src/style.css の tagline.woff2 (14 文字) とは別 subset で、 about 単独で完結する。
   subset 外の字は fallback に化けるので、 このフォントは .tagline と セクション h2 だけで使う。 */
@font-face {
  font-family: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/m-plus-rounded-1c-about.woff2') format('woff2');
}

:root {
  --bg: #0a0a1a;
  --bg-soft: #14142a;
  --text: #f5f5f7;
  --text-soft: #c0c0d0;
  --brand-yellow: #fcd34d;
  --brand-pink: #f9a8d4;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic',
    'Noto Sans JP', sans-serif;
  /* OG 画像 (public/og-image.webp) と同系のキラキラ背景: sparkles.svg を
     navy グラデの上にスタックし、 スクロールしても張り付くよう fixed-attach。
     800x800 tile を repeat、 OG 画像準拠で sky / yellow / pink + 白の星屑。 */
  background:
    url('/about/sparkles.svg') 0 0 / 800px 800px repeat,
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-attachment: fixed, fixed;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  padding: 32px 0 64px;
}

.hero .brand {
  margin: 0 auto 12px;
}

.hero .logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

/* 公式タグライン (本体タイトル画面と揃える): M PLUS Rounded 1c + 4 色分割。
   subset は 14 文字限定なので原文 (ふたりで協力するタイピングゲーム) のみ綺麗に出る。
   hero の主役コピーとして大きめに振る (本体タイトル画面の 16px より一回り大きい)。 */
.hero .tagline {
  font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans',
    'Noto Sans JP', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* span ごとに inline-block で「文節アトム」化し、 中途半端な位置 (例: タイピングゲー/ム) で
   折り返らないようにする。 narrow viewport では 「ふたりで協力する」 / 「タイピングゲーム」 の
   2 行に綺麗に割れる。 */
.hero .tagline span {
  display: inline-block;
}

.s-white {
  color: #ffffff;
}
.s-yellow {
  color: var(--brand-yellow);
}
.s-pink {
  color: var(--brand-pink);
}

/* ===== CTA ボタン (青グラデ pill) =====
   /mobile-gate の `.mobile-gate-start` (= /share の `.shared-cta-btn` と同系) と同じ
   配色 / shadow / hover で揃える。 ブランドの「次に進む」 CTA は全部この青で統一。 */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #fff;
  padding: 16px 44px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.04em;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.65);
}

.cta:active {
  transform: translateY(0);
}

/* ===== スクリーンショット領域 =====
   実画像投入前のレイアウトキープ用 placeholder。 16:9 でアスペクト確保し、
   ダッシュボーダー + ラベルで「未投入」だと一目で分かる体裁にする。
   実画像差し込みは <figure class="shot"><img src="..." alt="..." /></figure> で
   `.shot-placeholder` を差し替える。 */

.shot {
  margin: 32px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.shot img,
.shot video {
  width: 100%;
  height: auto;
  display: block;
}

.shot-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  text-align: center;
  padding: 16px;
}

.shot-placeholder::before {
  content: attr(data-label);
}

.shot-placeholder::after {
  content: "(スクリーンショット予定)";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* hero の placeholder は CTA の上に置くので、 上下マージンを揃える。
   desktop で広がりすぎないよう max-width で抑え、 中央寄せ。 */
.shot-hero {
  margin: 8px auto 32px;
  max-width: 560px;
}

/* ===== セクション (シーンごとに余白で区切る) ===== */

.feature,
.spec {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.feature h2,
.spec h2 {
  /* タグラインと同じ M PLUS Rounded 1c (about subset に各セクション見出しの字も含めて embed)。
     subset 外の字を入れると fallback で混ざるので、 ヘッダ文言を変えるときは
     /public/fonts/m-plus-rounded-1c-about.woff2 を再生成すること。 */
  font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans',
    'Noto Sans JP', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  line-height: 1.4;
}

.feature p {
  color: var(--text-soft);
  font-size: 1rem;
}

.feature p strong {
  color: var(--text);
  font-weight: 700;
}

/* ===== テーマグリッド (9 タイル) ===== */

.theme-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.theme-grid li {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.theme-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-grid span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== 製品情報テーブル (事務的な調子) ===== */

.spec dl {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 14px 20px;
  margin-top: 12px;
}

.spec dt {
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.875rem;
  padding-top: 2px;
}

.spec dd {
  font-size: 0.9375rem;
}

.spec .note {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ===== 末尾 CTA + フッター ===== */

.cta-section {
  text-align: center;
  padding: 64px 0 32px;
}

.footer {
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-soft);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
}

/* ===== タブレット以上 ===== */

@media (min-width: 720px) {
  html {
    font-size: 17px;
  }

  .about {
    padding: 56px 32px;
    max-width: 880px;
  }

  .hero {
    padding: 48px 0 96px;
  }

  .hero .logo {
    max-width: 280px;
  }

  .hero .tagline {
    font-size: 1.875rem;
  }

  .feature,
  .spec {
    padding: 80px 0;
  }

  .feature h2,
  .spec h2 {
    font-size: 2rem;
  }

  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .spec dl {
    grid-template-columns: 200px 1fr;
    gap: 16px 32px;
  }

  .cta-section {
    padding: 96px 0 48px;
  }
}

/* ===== reduce-motion 配慮 ===== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta {
    transition: none;
  }
  .cta:hover,
  .cta:active {
    transform: none;
  }
}
