/* Yat Tat Ta の公開ページ（LP）。アプリと同じ紙の地、太い黒の枠、ずらした影
   アプリの演出（放射の光、行進するスクワットマン）をそのまま持ち込む。プライバシーポリシーは site.css のまま
   決まり事：体の効果を書かない、パチンコやくじの語を書かない（docs/devops/sns-marketing、docs/features/landing-page） */
:root {
  --paper: #FBF6EE; --card: #FFFFFF; --ink: #1C1916; --mute: #6E655C; --rule: #E7DDCC;
  --dopa: #E5337A; --dopa-soft: #FFE6F0; --gold: #E9A800; --gold-soft: #FFF3D1; --signal: #2F79F7; --violet: #7B4FD6;
  --display: "Dela Gothic One", "Hiragino Sans", system-ui, sans-serif;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--round); font-weight: 500;
  font-size: 16px; line-height: 1.8; overflow-x: hidden;
}
/* 紙の粒。ほんの少しだけ */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ---- 上の帯 ---- */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { font-family: var(--display); font-size: 22px; text-decoration: none; letter-spacing: .01em; }
.logo span { color: var(--dopa); }
.bar nav { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 13px; font-weight: 800; color: var(--mute); text-decoration: none; border: 2px solid var(--rule); border-radius: 999px; padding: 3px 12px; }
.lang:hover { border-color: var(--ink); color: var(--ink); }

/* ---- App Store のボタン ----
   Apple の公式のバッジをそのまま使う。形と色は変えず、まわりで動かすだけ（App Store のマーケティングのガイドライン） */
.store { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s cubic-bezier(.2, 1.6, .4, 1); }
.store:hover { transform: translateY(-3px) rotate(-1.5deg); }
.store:active { transform: translateY(1px); }
.store img { height: 56px; width: auto; }
.store.sm img { height: 36px; }
.cta .store img { height: 64px; }
.note { margin-top: 14px; font-size: 13px; color: var(--mute); font-weight: 800; }

/* ---- 冒頭 ---- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .08em; background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.12; margin: 22px 0 0; letter-spacing: -.01em; }
.hero h1 .l { display: block; opacity: 0; transform: translateY(24px) rotate(-3deg); animation: drop .7s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.hero h1 .l:nth-child(2) { animation-delay: .18s; }
.hero h1 .l:nth-child(3) { animation-delay: .36s; color: var(--dopa); }
.hero h1 .l:nth-child(3)::after { content: ""; display: inline-block; width: .5em; }
@keyframes drop { to { opacity: 1; transform: none; } }
.lede { font-size: clamp(16px, 2vw, 19px); max-width: 30em; margin: 24px 0 28px; font-weight: 800; }
.lede em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold-soft) 62%); }

/* 動画と、その後ろの放射 */
.stage { position: relative; justify-self: center; width: min(360px, 82vw); }
.rays {
  position: absolute; inset: -46%; z-index: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold-soft) 0 10deg, transparent 10deg 20deg);
  mask: radial-gradient(closest-side, #000 55%, transparent); animation: spin 40s linear infinite;
}
.hero .rays { inset: -38%; }
@keyframes spin { to { transform: rotate(1turn); } }
.reel {
  position: relative; z-index: 1; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: var(--paper);
  border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); transform: rotate(2.5deg);
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute; z-index: 2; right: -8px; bottom: 26px; font: 800 13px var(--round); color: var(--ink); cursor: pointer;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink);
}
.sound:hover { background: var(--gold); }
.sticker {
  position: absolute; z-index: 2; left: -34px; bottom: 110px; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; line-height: 1.15; font-family: var(--display); font-size: 17px;
  background: var(--dopa); color: #fff; border: 3px solid var(--ink); transform: rotate(-12deg); box-shadow: 4px 4px 0 var(--ink);
  animation: wobble 2.4s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.06); } }

/* 行進するスクワットマン。立つ姿としゃがむ姿を入れ替える */
.march { position: absolute; left: 0; right: 0; bottom: 10px; height: 64px; overflow: hidden; pointer-events: none; }
.march .row { display: flex; gap: 26px; width: max-content; animation: walk 38s linear infinite; }
@keyframes walk { to { transform: translateX(-50%); } }
.guy { position: relative; width: 30px; height: 56px; flex: none; }
.guy svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.guy .down { opacity: 0; }
.guy .up, .guy .down { animation: squat 1.2s steps(1) infinite; }
.guy .down { animation-name: squat-down; }
.guy:nth-child(3n+1) { --c: var(--gold); }
.guy:nth-child(3n+2) { --c: var(--dopa); }
.guy:nth-child(3n) { --c: var(--signal); }
.guy:nth-child(2n) .up, .guy:nth-child(2n) .down { animation-delay: -.6s; }
@keyframes squat { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes squat-down { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* ---- 節 ---- */
section { position: relative; }
.sec { padding: 96px 0; }
.eyebrow { font: 800 13px var(--round); letter-spacing: .14em; color: var(--dopa); text-transform: uppercase; }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.2; margin: 10px 0 0; }
.sec .sub { max-width: 34em; margin-top: 16px; color: var(--mute); font-weight: 800; }

/* 3歩 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 26px 24px 24px; background: var(--card); border: 2px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.step:nth-child(2) { transform: translateY(18px) rotate(.6deg); }
.step:nth-child(3) { transform: translateY(36px) rotate(-.6deg); background: var(--dopa-soft); }
.step .n { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--rule); position: absolute; right: 18px; top: 12px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0; }
.step p { margin: 10px 0 0; font-weight: 800; }

/* スクリーンショットの帯。横に流す */
.shots { margin-top: 44px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 26px calc((100vw - min(1120px, 100vw - 32px)) / 2); scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 250px; scroll-snap-align: center; transition: transform .25s; }
.shot:nth-child(odd) { transform: rotate(-1.5deg); }
.shot:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }
.shot:hover { transform: rotate(0) translateY(-6px); }
.shot img { border-radius: 26px; border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--card); }
.hint { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--mute); }

/* 機能 */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 44px; align-items: start; }
.hero .wrap > *, .features > *, .steps > * { min-width: 0; }
.feature { grid-column: span 2; padding: 26px; border: 2px solid var(--ink); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.feature.wide { grid-column: span 4; }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; margin: 0; }
.feature p { margin: 10px 0 0; font-weight: 800; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.feature.pink { background: var(--dopa-soft); }
.feature.gold { background: var(--gold-soft); }
.feature .big { font-family: var(--display); font-size: 72px; line-height: 1; color: var(--dopa); margin-top: 14px; }
.feature .big small { font-size: 22px; color: var(--ink); margin-left: 4px; }
.feature .card-img { margin-top: 18px; border-radius: 16px; border: 2px solid var(--ink); }
.passes { display: flex; gap: 8px; margin-top: 16px; }
.passes i { width: 34px; height: 22px; border-radius: 6px; background: var(--signal); border: 2px solid var(--ink); }
.week { display: flex; gap: 6px; margin-top: 16px; }
.week i { flex: 1; aspect-ratio: 1; border-radius: 8px; background: var(--dopa); border: 2px solid transparent; }
.week i.r { background: var(--signal); }
.week i.t { border-color: var(--ink); }

/* もう一度ボタンの帯 */
.cta { padding: 110px 0; background: var(--ink); color: #fff; overflow: hidden; text-align: center; }
.cta .rays { inset: auto; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; opacity: .12; background: repeating-conic-gradient(from 0deg, var(--gold) 0 8deg, transparent 8deg 16deg); }
.cta h2 { position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 88px); line-height: 1.15; margin: 0; }
.cta h2 span { color: var(--gold); }
.cta p { position: relative; font-weight: 800; opacity: .85; margin: 18px 0 30px; }
.cta .store { position: relative; }

/* よくある質問 */
.faq { max-width: 780px; margin-top: 36px; }
.faq details { border: 2px solid var(--ink); border-radius: 18px; background: var(--card); margin-top: 14px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 24px; color: var(--dopa); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* サポート（App Store のサポート URL） */
.support { padding: 80px 0 40px; border-top: 2px solid var(--ink); }
.support h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0; }
.support .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; max-width: 780px; }
.support .card { display: block; padding: 16px 20px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.support .card:hover { box-shadow: 4px 4px 0 var(--dopa); }
.support .card b { display: block; font-size: 17px; }
.support .card span { font-size: 14px; color: var(--mute); }
.support h3 { font-size: 18px; margin: 34px 0 0; }
.support ul { max-width: 780px; padding-left: 1.3em; margin: 10px 0 0; }
.support li + li { margin-top: 6px; }
footer { padding: 30px 0 60px; font-size: 13px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* 下から出てくる */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1.3, .4, 1); }
.reveal.in { opacity: 1; transform: none; }
.step.reveal.in:nth-child(2) { transform: translateY(18px) rotate(.6deg); }
.step.reveal.in:nth-child(3) { transform: translateY(36px) rotate(-.6deg); }

@media (max-width: 860px) {
  .hero { padding: 32px 0 96px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n), .step.reveal.in:nth-child(n) { transform: none; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature.wide { grid-column: auto; }
  .support .cards { grid-template-columns: 1fr; }
  .sticker { left: -12px; width: 88px; height: 88px; font-size: 15px; }
  .sec { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .l, .reveal { opacity: 1; transform: none; }
}
