@charset "UTF-8";

/* ==========================================================================
   フォント（assets/font 配下に同梱。再生成は scripts/build-fonts.sh）
   ========================================================================== */
@font-face {
  font-family: "Dela Gothic One";
  src: url("../font/DelaGothicOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS 1";
  src: url("../font/MPLUS1.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ==========================================================================
   変数
   ========================================================================== */
:root {
  --c-red: #ff0000;
  --c-red-bg: #e2261d;
  --c-red-light: #ff4d4d;
  --c-blue: #23a0f2;
  --c-orange: #ff7f00;
  --c-yellow: #ffe500;
  --c-navy: #1c1c63;
  --c-navy-deep: #1412a7;
  --c-text-sub: #e6e6e6;

  --f-display: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Hiragino Sans", sans-serif;
  --f-body: "M PLUS 1", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  --header-h: 69px;
  --content-w: 1160px;
}

@media (max-width: 767px) {
  :root {
    --header-h: 58px;
  }
}

/* ==========================================================================
   リセット
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* 連続タップでのダブルタップズーム（iOS）を防ぐ。ピンチズームは残る */
a, button { touch-action: manipulation; }

body {
  /* Dela Gothic One は 400 の1ウェイトのみ。親の太さ（600など）を引き継ぐと
     ブラウザが擬似ボールドを生成して文字がつぶれるため、合成を禁止する */
  font-synthesis: none;
  background: #000;
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   ユーティリティ
   ========================================================================== */
.u-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-pc { display: block; }
.u-sp { display: none; }
@media (max-width: 767px) {
  .u-pc { display: none; }
  .u-sp { display: block; }
}

/* ドット絵は拡大してもにじませない */
.pixel { image-rendering: pixelated; }

/* 見出し文字（白抜き＋黒フチ＋影） */
.c-outline {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 6px #000;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #000;
}

/* ページ見出し（キャラクター / あそびかた） */
.c-page-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.c-page-title__ja { font-size: 60px; }
.c-page-title__en { font-size: 20px; text-transform: uppercase; }
@media (max-width: 767px) {
  .c-page-title__ja { font-size: 40px; }
  .c-page-title__en { font-size: 14px; }
}

/* ボックス矢印（ステップ間・モーダル送り） */
.c-arrow {
  display: block;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}
.c-arrow--next { transform: scaleX(-1); }

/* ストアバッジ */
.c-stores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.c-stores a { display: block; transition: opacity .2s; }
.c-stores a:hover { opacity: .8; }
.c-stores__apple img { width: 136px; }
.c-stores__google img { width: 168px; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 30px;
  background: var(--c-red);
}
.l-header__logo img { width: 230px; }
.l-header__nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}
.l-header__nav a {
  font-family: var(--f-display);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
/* 画像化した項目と揃えて、ホバーは文字色ではなく不透明度で示す */
.l-header__nav a:hover { opacity: .7; }

/* テキストを画像化した見出し・ラベル（Figma から書き出し）。
   幅は style の --w（em）で指定し、親の font-size に合わせて PC/SP で伸縮させる */
.c-txt-img {
  display: inline-block;
  width: calc(var(--w) * 1em);
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  transition: opacity .2s;
}
.l-header__nav .is-dl a {
  display: block;
  padding: 5px 20px;
  background: #000;
  border: 1px solid var(--c-yellow);
  color: var(--c-yellow);
}
.l-header__menu-btn { display: none; }

@media (max-width: 1100px) {
  .l-header__nav ul { gap: 20px; }
  .l-header__nav a { font-size: 14px; }
}

@media (max-width: 767px) {
  .l-header { padding: 0 15px; }
  .l-header__logo img { width: 196px; }
  .l-header__menu-btn {
    position: relative;
    z-index: 2;
    display: block;
    width: 38px;
    height: 38px;
    background: #000;
  }
  .l-header__menu-btn span,
  .l-header__menu-btn span::before,
  .l-header__menu-btn span::after {
    position: absolute;
    left: 9px;
    width: 20px;
    height: 3px;
    background: var(--c-yellow);
    transition: transform .25s, background-color .25s;
  }
  .l-header__menu-btn span { top: 18px; }
  .l-header__menu-btn span::before,
  .l-header__menu-btn span::after { content: ""; left: 0; }
  .l-header__menu-btn span::before { top: -7px; }
  .l-header__menu-btn span::after { top: 7px; }
  .is-menu-open .l-header__menu-btn span { background: transparent; }
  .is-menu-open .l-header__menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .is-menu-open .l-header__menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

  .l-header__nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    padding: 160px 50px 40px;
    background: #000;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility .25s;
  }
  .is-menu-open .l-header__nav { visibility: visible; opacity: 1; }
  .l-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .l-header__nav a { font-size: 26px; line-height: 1.3; white-space: normal; }
  .l-header__nav .is-dl { margin-top: 10px; }
  .l-header__nav .is-dl a {
    padding: 10px;
    font-size: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */
.l-footer {
  position: relative;
  padding: 81px 0 0;
  background: #000 url("../images/common/footer_bg.png") center top / 1440px auto no-repeat;
  text-align: center;
}
.l-footer__logo { width: 370px; margin: 0 auto; }
.l-footer__stores {
  height: 69px;
  margin-top: 30px;
}
.l-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.l-footer__links a {
  display: grid;
  place-items: center;
  width: 226px;
  height: 50px;
  border: 1.5px solid #fff;
  border-radius: 75px;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.l-footer__links a:hover { background: #fff; color: #000; }
.l-footer__copy {
  margin-top: 30px;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.8;
}
.l-footer__notice {
  margin-top: 8px;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.8;
  color: var(--c-text-sub);
}

/* フッター下のドット超人の行列（JSで生成） */
.l-footer__parade {
  display: flex;
  justify-content: center;
  gap: 0;
  height: 100px;
  margin-top: 20px;
  overflow: hidden;
}
.l-footer__parade .c-sprite {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  margin-top: 10px;
}

.l-bne-footer { background: #fff; }

@media (max-width: 767px) {
  .l-footer {
    padding-top: 60px;
    background-size: 800px auto;
  }
  .l-footer__logo { width: 226px; }
  .l-footer__stores { margin-top: 20px; height: auto; }
  .c-stores__apple img { width: 110px; }
  .c-stores__google img { width: 136px; }
  .l-footer__links { gap: 12px; margin-top: 24px; padding: 0 16px; }
  .l-footer__links li { flex: 1 1 0; max-width: 160px; }
  .l-footer__links a { width: 100%; height: 40px; font-size: 14px; }
  .l-footer__parade { height: 60px; }
  .l-footer__parade .c-sprite { flex-basis: 54px; width: 54px; height: 54px; margin-top: 6px; }
}

/* ==========================================================================
   ドット超人スプライト（手の上げ下げ）
   <span class="c-sprite" data-no="01"></span> を common.js が組み立てる
   ========================================================================== */
.c-sprite {
  position: relative;
  display: block;
}
.c-sprite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
}
.c-sprite img + img { visibility: hidden; }
.c-sprite.is-up img:first-child:not(:only-child) { visibility: hidden; }
.c-sprite.is-up img + img { visibility: visible; }
/* [data-sprite-sync] の中は CSS で一定のリズム（0.6秒ごと）で上げ下げする。中の超人は全員同じタイミング */
[data-sprite-sync] .c-sprite img:first-child:not(:only-child),
.c-sprite[data-sprite-sync] img:first-child:not(:only-child) { animation: sprite-hand-down 1.2s steps(1) infinite; }
[data-sprite-sync] .c-sprite img + img,
.c-sprite[data-sprite-sync] img + img { animation: sprite-hand-up 1.2s steps(1) infinite; }
@keyframes sprite-hand-down {
  0% { visibility: visible; }
  50% { visibility: hidden; }
}
@keyframes sprite-hand-up {
  0% { visibility: hidden; }
  50% { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  [data-sprite-sync] .c-sprite img,
  .c-sprite[data-sprite-sync] img { animation: none; }
}
