/* コトバレ！ LP */
:root {
  --pink: #dd1a6b;
  --pink-light: #f2307f;
  --pink-deep: #b20d52;
  --pink-soft: #fde3ee;
  --navy: #24244a;
  --yellow: #ffd233;
  --bg: #f6f4fa;
  --card: #ffffff;
  --line: #d9d7e5;
  --blue: #2d6cd3;
  --blue-soft: #d9e4f9;
  --red: #d9404f;
  --muted: #65657f;
  --radius: 28px;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }

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

/* 文節で折り返す */
.lead span, .heading span, .download h2 span { display: inline-block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--light {
  background: #fff; color: var(--pink);
  font-size: 17px; padding: 16px 28px;
  box-shadow: 0 6px 0 var(--pink-deep);
}
.btn--light:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--pink-deep); }
.btn--light:active { transform: translateY(6px); box-shadow: 0 0 0 var(--pink-deep); }
.btn--xl { font-size: 19px; padding: 20px 34px; }

/* App Store 公式バッジ（Appleのガイドラインに沿って加工せず、周囲に余白を確保） */
.badge { display: inline-block; line-height: 0; padding: 14px; margin: -14px; border-radius: 16px; transition: opacity .15s ease; }
.badge img { height: 56px; width: auto; }
.badge--xl img { height: 64px; }
.badge:hover { opacity: .85; }
.btn--ghost {
  font-size: 14px; padding: 8px 18px; color: #fff;
  border: 2px solid rgba(255, 255, 255, .7);
}
.btn--ghost:hover { background: #fff; color: var(--pink); border-color: #fff; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 50% 30%, var(--pink-light) 0%, var(--pink) 48%, #c90f5c 100%);
  padding-bottom: 88px;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
  padding-top: 36px; text-align: center;
}

.eyebrow {
  display: inline-block; font-weight: 800; font-size: 15px; letter-spacing: .08em;
  background: var(--navy); color: #fff; padding: 4px 18px; border-radius: 999px;
}
.eyebrow b { color: var(--yellow); font-weight: 900; }

.title {
  position: relative; display: inline-block;
  font-weight: 900; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap;
  font-size: clamp(56px, 17vw, 112px);
  margin-top: 46px;
  text-shadow: 0 6px 0 var(--pink-deep);
}
.title__burst {
  position: absolute; left: 50%; bottom: 100%; width: .95em; transform: translate(-50%, 10%);
  fill: var(--yellow);
}
.subtitle { font-weight: 900; font-size: clamp(20px, 5.4vw, 30px); color: var(--yellow); margin-top: 10px; letter-spacing: .04em; }
.lead { font-size: clamp(15px, 4vw, 18px); font-weight: 700; margin-top: 22px; line-height: 1.9; }

.cta { margin-top: 30px; }
.cta__note { font-size: 13px; font-weight: 700; margin-top: 16px; opacity: .9; }

/* 背景の「?」カード */
.deco {
  position: absolute; z-index: 1;
  display: grid; place-items: center;
  width: 150px; height: 150px; border-radius: 30px;
  background: var(--navy); color: #f7b3d1;
  font-weight: 900; font-size: 96px; line-height: 1;
  opacity: .9;
}
.deco--1 { left: -70px; bottom: 150px; transform: rotate(-14deg); }
.deco--2 { right: -84px; top: 64px; transform: rotate(13deg); }
.deco--3 { right: -54px; bottom: 6%; transform: rotate(-9deg); width: 110px; height: 110px; font-size: 70px; border-radius: 24px; opacity: .55; }

/* ---------- タイル ---------- */
.tiles { position: relative; display: flex; justify-content: center; gap: 8px; }
.tile {
  --size: 60px;
  display: grid; place-items: center;
  width: var(--size); height: var(--size);
  border-radius: calc(var(--size) * .2);
  background: #fff; color: var(--muted);
  border: 2.5px solid var(--line);
  font-weight: 900; font-size: calc(var(--size) * .5); line-height: 1;
}
.tile--hit { border-color: var(--red); color: var(--navy); }
.tiles--lg .tile { --size: clamp(64px, 20vw, 92px); }

/* めくれるタイル */
.tile--flip {
  position: relative; border: 0; background: none;
  transform-style: preserve-3d;
  animation: flip 7s ease-in-out infinite;
}
.tile__face {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; background: #fff; border: 2.5px solid var(--line);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.tile__back { transform: rotateY(180deg); border-color: var(--red); color: var(--navy); }

/* ---------- ゲームイメージ ---------- */
.stage { perspective: 900px; display: flex; justify-content: center; }
.stage__card {
  width: 100%; max-width: 400px;
  background: #fff; color: var(--navy);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: 0 12px 0 var(--pink-deep), 0 30px 50px rgba(80, 0, 35, .35);
  transform: rotate(-2deg);
  text-align: left;
}
.stage__label { font-weight: 800; font-size: 14px; color: var(--red); margin-bottom: 10px; text-align: center; }
.stage__turn { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--line); }
.stage__you { font-weight: 800; font-size: 14px; color: var(--blue); margin-bottom: 8px; }
.bubble {
  display: inline-block;
  background: var(--blue-soft); border: 2px solid var(--blue);
  border-radius: 20px; padding: 8px 14px;
  font-weight: 800; font-size: clamp(20px, 6vw, 26px); line-height: 1.5;
  transform-origin: left bottom;
  animation: pop 7s ease-out infinite;
}
.bubble mark { color: inherit; background: transparent; border-radius: 8px; padding: 0 2px; animation: glow 7s linear infinite; }
.hit {
  position: absolute; right: -6px; top: -26px;
  background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: 18px; line-height: 1;
  padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 4px 0 #d9a900;
  transform: rotate(8deg);
  animation: hit 7s ease-out infinite;
}

@keyframes pop {
  0%, 8% { opacity: 0; transform: translateY(10px) scale(.85); }
  14%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes glow {
  0%, 28% { background: transparent; }
  34%, 92% { background: var(--yellow); }
  100% { background: transparent; }
}
@keyframes flip {
  0%, 42% { transform: rotateY(0); }
  52%, 92% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes hit {
  0%, 50% { opacity: 0; transform: rotate(8deg) scale(.3); }
  56% { opacity: 1; transform: rotate(8deg) scale(1.2); }
  61%, 92% { opacity: 1; transform: rotate(8deg) scale(1); }
  100% { opacity: 0; transform: rotate(8deg) scale(1); }
}

/* ---------- セクション共通 ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--pink-soft); }
.kicker { text-align: center; font-weight: 900; font-size: 13px; letter-spacing: .22em; color: var(--pink); }
.heading { text-align: center; font-weight: 900; font-size: clamp(28px, 7.4vw, 44px); line-height: 1.35; margin-top: 6px; }

/* ---------- 遊び方 ---------- */
.steps { display: grid; gap: 22px; margin-top: 44px; grid-template-columns: 1fr; }
.step {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 0 24px 28px; text-align: center;
  box-shadow: 0 6px 0 #e4e1ee;
  overflow: hidden;
}
.step__art { background: var(--pink-soft); margin: 0 -24px; padding: 34px 0 40px; }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -22px auto 12px;
  position: relative;
  border-radius: 50%; background: var(--pink); color: #fff;
  font-weight: 900; font-size: 20px; line-height: 1;
  box-shadow: 0 0 0 5px var(--card);
}
.step h3 { font-weight: 900; font-size: 21px; line-height: 1.4; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); font-weight: 700; }

/* ---------- スクリーンショット ---------- */
.shots {
  display: flex; gap: 18px; margin-top: 44px;
  padding: 6px 20px 26px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 72%; max-width: 300px; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 0 #f3bcd3, 0 22px 40px rgba(178, 13, 82, .16);
  background: #d6d6d6;
}
.shot img { width: 100%; }

/* ---------- モード ---------- */
.modes { display: grid; gap: 22px; margin-top: 44px; grid-template-columns: 1fr; }
.mode { background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 6px 0 #e4e1ee; }
.mode__icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; }
.mode__icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mode__icon--blue { background: var(--blue-soft); color: var(--blue); }
.mode__icon--pink { background: var(--pink-soft); color: var(--pink); }
.mode h3 { font-weight: 900; font-size: 24px; margin-top: 18px; line-height: 1.4; }
.mode p { margin-top: 8px; color: var(--muted); font-weight: 700; }

/* ---------- ダウンロード ---------- */
.download {
  color: #fff; text-align: center; padding: 88px 0 96px;
  background: radial-gradient(120% 100% at 50% 20%, var(--pink-light) 0%, var(--pink) 50%, #c90f5c 100%);
}
.download__inner { display: flex; flex-direction: column; align-items: center; }
.download__icon { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .6), 0 16px 30px rgba(80, 0, 35, .35); }
.download h2 { font-weight: 900; font-size: clamp(30px, 8vw, 48px); line-height: 1.3; margin: 26px 0 28px; text-shadow: 0 4px 0 var(--pink-deep); }
.spec { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; max-width: 720px; }
.spec div { background: rgba(255, 255, 255, .16); border-radius: 16px; padding: 10px 18px; min-width: 120px; }
.spec dt { font-size: 12px; font-weight: 700; opacity: .85; line-height: 1.5; }
.spec dd { font-size: 16px; font-weight: 900; line-height: 1.5; }

/* ---------- フッター ---------- */
.footer { background: var(--navy); color: #c9c9dc; text-align: center; padding: 44px 0 36px; font-size: 14px; }
.footer__brand { color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 8px; }
.footer a { text-underline-offset: 4px; }
.footer a:hover { color: #fff; }
.footer__legal { font-size: 11px; opacity: .7; margin-top: 22px; line-height: 1.7; }
.footer__copy { font-size: 12px; margin-top: 10px; opacity: .8; }

/* ---------- スクロール表示 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .1s; }
.js .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- タブレット以上 ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .shots { justify-content: center; overflow: visible; gap: 28px; }
  .shot { flex: 0 1 300px; }
  .shot:nth-child(1) { transform: rotate(-2deg); }
  .shot:nth-child(2) { transform: translateY(-14px); }
  .shot:nth-child(3) { transform: rotate(2deg); }
  .js .shot.reveal.is-in:nth-child(1) { transform: rotate(-2deg); }
  .js .shot.reveal.is-in:nth-child(2) { transform: translateY(-14px); }
  .js .shot.reveal.is-in:nth-child(3) { transform: rotate(2deg); }
  .section { padding: 110px 0; }
  .deco { width: 190px; height: 190px; font-size: 120px; border-radius: 38px; }
  .deco--3 { width: 140px; height: 140px; font-size: 88px; }
}

/* ---------- デスクトップ ---------- */
@media (min-width: 960px) {
  .hero { padding-bottom: 120px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; text-align: left; padding-top: 56px; gap: 40px; }
  .title { font-size: clamp(88px, 9.2vw, 104px); }
  .title__burst { left: 0; transform: translate(-22%, 10%) rotate(-12deg); width: .8em; }
  .deco--1 { left: -90px; top: auto; bottom: -50px; }
  .deco--2 { right: -60px; top: 70px; }
  .deco--3 { right: 34%; bottom: -60px; }
  .stage__card { max-width: 420px; padding: 34px 30px 30px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile--flip, .bubble, .bubble mark, .hit { animation: none; }
  .tile--flip { transform: rotateY(180deg); }
  .bubble mark { background: var(--yellow); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* フッターのリンク */
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 14px; font-size: 13px; }
