/* Pimorio の LP（pimorio.com のトップ）。2.0（ピモカメ）の形。スマホが先、広い画面はあとから足す。
   v1 と同じ組み立て：真ん中にアプリの本物の動き、まわりに写真から切り抜いたシール（2026-10-13 ユーザー）。
   地は白、字は LINE Seed JP、字と押すものはロゴの黒 #2C2724、オレンジ #FE5624 はロゴの点と同じ1色だけ（見出しの「使い捨てカメラ」・7:00・番号） */
@font-face { font-family: "LINE Seed JP"; font-weight: 700; font-display: swap; src: url(/assets/fonts/lineseedjp-bold.woff2) format("woff2"); }
@font-face { font-family: "LINE Seed JP"; font-weight: 800; font-display: swap; src: url(/assets/fonts/lineseedjp-extrabold.woff2) format("woff2"); }

:root {
  --ink: #2C2724;
  --muted: #7A736E;
  --line: #E7E3DF;
  --bg: #FFFFFF;
  --tile: #F4F2F0;
  --orange: #FE5624;
  --paper: #F5F3EE;
  --grid: rgba(44, 39, 36, .06);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.08);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
/* 地はいつも白（アプリと同じ。暗い表示にはしない） */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 地：うすい方眼（ストアと X のヘッダと同じ紙の色とマス。白だけだと寂しい：2026-10-13 ユーザー）。使い方の所だけコルク */
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center top;
  color: var(--ink);
  font-family: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-weight: 700;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* フィルムの穴の帯（両はし。アプリのピモカメのホームと、招待のページ invite.css と同じ形：2026-10-13 ユーザー）。
   色は灰ではなく、紙になじむ茶色がかった色。最初の画面のフィルムの帯・画面・シール（z-index 1）の下に通す（ユーザー） */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='30'%3E%3Crect x='5' y='6' width='8' height='16' rx='2.5' fill='%23E6DDD1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='30'%3E%3Crect x='5' y='6' width='8' height='16' rx='2.5' fill='%23E6DDD1'/%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: left top, right top;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 700; }

/* 上の帯 */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 26px 0;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand img:first-child { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wordmark { height: 17px; width: auto; }
.top-note { font-size: 12px; color: var(--muted); }

/* 1. 最初の画面 */
.hero {
  position: relative;
  /* 画面いっぱいにせず、下に次のコンテンツ（小物）を少しのぞかせる（続きがあると分かるように。2026-10-03 ユーザー） */
  min-height: calc(100svh - 88px);
  padding: 68px 26px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero h1 {
  margin-top: 6px;
  font-size: clamp(24px, 8.1vw, 60px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em;
}
.accent { color: var(--orange); }
.lead { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 本物の動き（X 用の動画の、撮る → 袋 → 現像 → アルバム）。iPhone の枠は描かない（Apple の枠を使うときは、傾けたり物をはみ出させたりできないため）。
   まわりに、ストアのスクショと同じ組の写真から切り抜いたシール（白いふちは絵に入っている）を貼る */
.stage { position: relative; margin-top: 18px; height: clamp(240px, calc(100svh - 500px), 600px); aspect-ratio: 9 / 16; }
/* TikTok の中では、ボタンの下に案内の2行（約64px）が出る。そのぶん画面を低くして、下向きの矢印が最初の画面に収まるようにする */
.hero:has(.tiktok-help:not([hidden])) .stage { height: clamp(192px, calc(100svh - 574px), 560px); }
.screen {
  position: absolute; inset: 0; z-index: 1; border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04), 0 18px 48px rgba(0,0,0,.16);
}
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--r));
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.stage .st { pointer-events: auto; }
.js .stage .st { opacity: 0; }
.js .stage.play .st { animation: stick .6s var(--ease-pop) calc(.5s + var(--d) * .15s) both, wobble 4s ease-in-out calc(1.4s + var(--d) * .4s) infinite; }
@keyframes stick {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--r) - 16deg)) scale(1.7); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
}
@keyframes wobble { 50% { translate: 0 -5px; rotate: 2deg; } }
.stage .st:active { scale: 1.12; }
/* フィルムの帯：画面の後ろを横切る（はみ出た所は最初の画面の外で切れる） */
.ribbon { position: absolute; left: 50%; width: 1000px; max-width: none; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.ribbon.r1 { top: 22%; }
.ribbon.r2 { top: 78%; }
@media (min-width: 720px) { .ribbon { width: 1600px; } }

/* 手描きの絵：いつも字の後ろで、ゆっくり浮く */
.deco-layer { position: absolute; inset: 0; pointer-events: none; }
.deco { position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r); }
.deco.f1 { animation: float 5s ease-in-out infinite; }
.deco.f2 { animation: float 6.5s ease-in-out -2s infinite; }
.deco.f3 { animation: float 5.8s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.hero > :not(.deco-layer) { position: relative; z-index: 1; }

/* ダウンロード：公式のバッジをそのまま（傾けない・動かさない・色を変えない） */
.cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; }
.badge { display: block; padding: 6px; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.badge img { height: 56px; width: auto; }
.badge:active { opacity: .7; }
.cta-note { margin-top: 6px; font-size: 12px; color: var(--muted); }
/* 下に続きがあることを知らせる、手描きの矢印（ゆっくり下へ動く） */
.hero .cta { margin-bottom: 10px; }
.more { margin-top: auto; flex: none; animation: more 1.6s ease-in-out infinite; }
.more path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes more { 50% { translate: 0 6px; } }
.tiktok-help { margin-top: 10px; font-size: 12px; color: var(--muted); background: var(--tile); padding: 8px 14px; border-radius: 12px; }

/* 見せ方：下からふわっと（JS が動くときだけ隠す） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .7s var(--ease-pop); }
.js .reveal.in { opacity: 1; transform: none; }

section { padding: 72px 26px; overflow: hidden; }
main { overflow: hidden; }
section > h2 { text-align: center; }

/* 2. 使い方：画面とことばを1段ずつ。画面のまわりにもシール */
/* 使い方の所の地：うすいコルク（QR のカードのコルクを明るくした、細かい粒のある地。ここで地が変わって区切りになる） */
.how { background: #F0E8DC url(/assets/lp/cork.webp) repeat; background-size: 160px; border-radius: 32px 32px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.05); position: relative; margin-top: -32px; }
.flow { list-style: none; padding: 0; margin: 36px auto 0; max-width: 760px; display: grid; gap: 40px; }
/* スマホでも、ことばと画面を左右に並べる（1段が1画面より長くならないように）。偶数の段は左右を入れかえる */
.step { display: grid; grid-template-columns: 1fr 44%; gap: 18px; align-items: center; }
.step:nth-child(even) { grid-template-columns: 44% 1fr; }
.step:nth-child(even) .step-text { order: 2; }
.step-text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.step h3 { font-size: clamp(17px, 5vw, 28px); line-height: 1.35; font-weight: 800; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.7; }
/* 「アプリなしで撮れる」は、入る人がいちばん気にすることなので札にして目立たせる（2026-10-13 ユーザー） */
.step p.pill { margin-top: 4px; padding: 8px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.45; box-shadow: 0 0 0 2px var(--orange), 0 6px 16px rgba(254,86,36,.18); rotate: -2deg; }
.pill b { color: var(--orange); font-weight: 800; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.frame { position: relative; }
.step .shot { width: 100%; border-radius: 20px; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 14px 36px rgba(0,0,0,.14); }
/* 画面が右にある段は、シールを外側（右のふち）に寄せる */
.step:nth-child(odd) .frame .st { left: calc(100% - var(--x)); }

/* 3. 届いたあと：大きさの違うカードを並べる */
.bento { margin: 32px auto 0; max-width: 960px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; overflow: hidden; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.04); border-radius: 24px;
  padding: 16px; min-height: 180px; display: flex; flex-direction: column; gap: 12px;
}
.tile h3 { position: relative; z-index: 1; }
.tile.tall { grid-column: 1 / -1; }
.tile.wide { grid-column: 1 / -1; }
.tile .shot { width: 86%; margin: 4px auto -16px; border-radius: 18px 18px 0 0; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.10); height: auto; aspect-ratio: 940 / 1240; object-fit: cover; object-position: top; }
.tile.tall .shot { width: 64%; aspect-ratio: 940 / 1400; }
.tile.wide .shot { width: 58%; aspect-ratio: 940 / 1100; }
/* 4. 安心 */
.safe { text-align: center; }
.facts { list-style: none; padding: 0; margin: 28px auto 0; max-width: 420px; display: grid; gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; }
.facts li { background: #fff; padding: 14px 18px; text-align: left; font-size: 15px; }
.facts b, .facts span { display: block; }
.facts span { color: var(--muted); font-size: 13px; }
.facts { border: 1px solid var(--line); }

/* 5. 最後 */
.final { text-align: center; padding-bottom: 96px; }
.final-icon { margin: 0 auto 20px; width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.final .cta { margin-top: 20px; }

/* 下に付いてくるボタン（ホームのバーから離す） */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px; border-radius: 22px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 28px rgba(0,0,0,.14);
  transform: translateY(140%); transition: transform .45s var(--ease-pop);
  max-width: 480px; margin: 0 auto;
}
.dock.show { transform: none; }
.dock img { border-radius: 10px; }
.dock-text { flex: 1; min-width: 0; line-height: 1.3; }
.dock-text b { display: block; font-size: 15px; }
.dock-text span { display: block; font-size: 12px; color: var(--muted); }
.get {
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px;
  padding: 10px 22px; border-radius: 999px; -webkit-tap-highlight-color: transparent;
}
.get:active { transform: scale(.94); }

.foot { padding: 24px 16px 120px; text-align: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.foot nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.foot a { color: var(--muted); }

/* 広い画面（あとから足す） */
@media (min-width: 720px) {
  h2 { font-size: 40px; }
  section { padding: 112px 24px; }
  .hero { padding-top: 96px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile.tall { grid-column: span 2; grid-row: span 2; }
  .tile.wide { grid-column: span 2; }
  .tile { min-height: 240px; }
  .tile.tall .shot { width: 56%; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr 1fr; gap: 48px; }
  .step .frame { width: 300px; justify-self: center; }
}

/* 動きを減らす設定では止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .stage .st { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

/* TikTok の中からブラウザへ移る案内（下から出る。右上の「…」を矢印で指す） */
.sheet {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.sheet[hidden] { display: none; }
.sheet.show { opacity: 1; }
.sheet-arrow { position: absolute; top: 8px; right: 24px; animation: nudge 1.2s ease-in-out infinite; }
.sheet-arrow path { stroke: #fff; }
@keyframes nudge { 50% { translate: 4px -4px; } }
.sheet-card {
  width: 100%; max-width: 480px; background: #fff; border-radius: 28px 28px 0 0;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom)); text-align: center;
  transform: translateY(100%); transition: transform .4s var(--ease-pop);
}
.sheet.show .sheet-card { transform: none; }
.sheet-icon { margin: -52px auto 8px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.sheet-card h2 { font-size: 22px; }
.sheet-card ol { text-align: left; margin: 14px auto 16px; padding: 0 0 0 1.4em; max-width: 280px; font-size: 15px; display: grid; gap: 6px; }
.dots { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--tile); letter-spacing: .1em; }
.copy, .close { display: block; width: 100%; font: inherit; border: 0; border-radius: 999px; padding: 14px; cursor: pointer; }
.copy { background: var(--ink); color: #fff; font-size: 16px; }
.close { background: none; color: var(--muted); font-size: 14px; margin-top: 4px; }
.sheet-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
