/* LP(index.html)だけの見た目。手書きのCSSだけで、ビルドしない。
   色はデザインのE案(design/src/gen_mkt.py の GREEN、HERO、BTN、MINT など、ダークは DARK_EXTRA)と、
   ウェブ版の web/src/theme/theme.css に合わせる。
   CSPで style 属性を許していないので、見た目はすべてここのクラスで決める(public/_headers)。
   動く絵はCSSのアニメーションだけで作る。prefers-reduced-motion のときは止めて、最後の場面を見せる */

:root {
  color-scheme: light dark;
  --bg: #fffffe;
  --surface: #ffffff;
  --ink: #111318;
  --text: #2f3640;
  --mute: #7c828c;
  --hair: #e6e8ec;
  --fill: #f3f4f6;
  --green: #06c755;
  --hero-ink: #0b3d24;
  --btn: #0b3d25;
  --on-btn: #ffffff;
  --mint: #ddf6e7;
  /* ぼかした丸の背景の下地(ヒーロー、最後の呼びかけ、フッター、上下の余白)。丸を重ねたときになじむよう、白にごく薄く緑を混ぜた色。
     body の背景を color-mix() にしたら、iOS 26 の Safari でステータスバーと引っ張ったときの余白が白くなった(2026-10-11)。混ぜた結果の色(緑 7%)をそのまま書く。
     theme-color(index.html)と同じ値にする */
  --tint-bg: #eefbf3;
  --mark: #9be8b8;
  --chat: #f5faf7;
  --bubble: #9be8b8;
  --dot-y: #ffd84d;
  --dot-c: #ff8a7a;
  --av-y: #ffc9c0;
  --av-m: #bfdcff;
  --av-a: #ffe08a;
  --shadow: 0 14px 30px rgb(17 19 24 / 0.16);
  --phone-shadow: 0 30px 60px rgb(17 19 24 / 0.25);
  /* サムネイルの絵の色(前景 / 背景) */
  --pin: #d2543f;      --pin-bg: #ffe0da;
  --cup: #8a5a3c;      --cup-bg: #f3e3d6;
  --rug: #a5642f;      --rug-bg: #fbe6d2;
  --bld: #5560a8;      --bld-bg: #e2e5fa;
  --btl: #2e7f99;      --btl-bg: #d9f0f7;
  --std: #4c6b8a;      --std-bg: #dce9f5;
  --font: "LINE Seed JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #181b21;
    --ink: #f2f3f5;
    --text: #cdd2dc;
    --mute: #9aa1ad;
    --hair: #2b2f37;
    --fill: #1e2229;
    --hero-ink: #7fe0a6;
    --btn: #06c755;
    --on-btn: #111318;
    --mint: #123325;
    --tint-bg: #172725;
    --mark: #1e6b43;
    --chat: #1b2620;
    --bubble: #1e6b43;
    --dot-y: #f2c94c;
    --dot-c: #ff9a88;
    --av-y: #6b3a33;
    --av-m: #2c4a6e;
    --av-a: #5c4b17;
    --shadow: 0 14px 30px rgb(0 0 0 / 0.4);
    --phone-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
    --pin: #ff9a88;      --pin-bg: #432320;
    --cup: #d9a988;      --cup-bg: #35271d;
    --rug: #f0b27c;      --rug-bg: #3a2a1c;
    --bld: #9aa4f0;      --bld-bg: #262b4a;
    --btl: #76c8e0;      --btl-bg: #1c3640;
    --std: #8db4dc;      --std-bg: #22303f;
  }
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* iOS 26 の Safari は theme-color を見ず、body の背景色でステータスバーとツールバーを塗る。
   引っ張ったときに見える上下の余白は html の背景で塗られる。
   どちらも、いちばん上のヒーローと、いちばん下(最後の呼びかけとフッター)と同じ薄い緑にし、間の白は main で塗る */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--tint-bg); }
body {
  margin: 0;
  background: var(--tint-bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.8;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; letter-spacing: 0.01em; }
p { margin: 0; }
/* 見出しは文節の途中で折り返さない(日本語は語の切れ目が分からないため、まとまりごとに区切る) */
.nw { display: inline-block; }
main { display: block; background: var(--bg); }
section { padding: 72px 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--btn); color: var(--on-btn); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ぺたりんの印。アプリのアイコン(design/app-icon/petalin-icon-1024.png を縮めたもの)を、アプリと同じく角を丸めて見せる */
.mark {
  display: inline-block; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  object-fit: cover;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; text-decoration: none; }

.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 16px 20px;
}
.top-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 800; font-size: 14px; text-decoration: none;
}
.top-cta:active { background: rgb(17 19 24 / 0.08); }

.eyebrow { font-weight: 800; font-size: 14px; color: var(--hero-ink); letter-spacing: 0.06em; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 30px; margin-top: 32px;
  background: var(--btn); color: var(--on-btn);
  border-radius: 16px; text-decoration: none; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 24px rgb(11 61 37 / 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0); filter: brightness(0.9); }
/* App Store のバッジ。LINEの友だち追加のボタンの下に、別の行で置く。
   高さは Apple のガイドラインの最小(40px)より大きくし、まわりの空きはバッジの高さの1/4以上とる */
.store { display: flex; width: fit-content; margin-top: 16px; padding: 4px 0; border-radius: 10px; }
.hero-copy .store, .end .store { margin-left: auto; margin-right: auto; }
.store img { display: block; width: auto; height: 48px; }
.store:active { opacity: 0.8; }
.note { margin-top: 12px; font-size: 14px; color: var(--text); }
.sec-lead { margin: 16px auto 0; max-width: 34em; color: var(--text); text-align: center; }
h2 { font-size: clamp(26px, 5vw, 38px); text-align: center; }

/* ---------- ぼかした丸の背景 ---------- */
/* 絵の下地と最後の呼びかけは、平らな色で塗らず、ヒーローと同じく緑・黄・さんご色の丸をぼかして重ねた背景にする。
   丸はぼかした円の代わりに、端が透明に消える放射状のグラデーションで描く(filter を使わず軽くするため)。
   --blob1 と --blob2 で、どの2色を重ねるかを場所ごとに選ぶ */
.blurbg, .feat-art, .art:not(.art-send), .end {
  --blob1: var(--green); --blob2: var(--dot-y); --blob-mix: 38%;
  background:
    radial-gradient(90% 100% at 10% 5%, color-mix(in srgb, var(--blob1) var(--blob-mix), transparent), transparent 75%),
    radial-gradient(80% 95% at 95% 100%, color-mix(in srgb, var(--blob2) var(--blob-mix), transparent), transparent 75%),
    color-mix(in srgb, var(--blob1) 7%, var(--surface));
}
@media (prefers-color-scheme: dark) {
  .blurbg, .feat-art, .art:not(.art-send), .end { --blob-mix: 22%; }
}

/* ---------- 1. ヒーロー ---------- */
/* 背景は、緑(いちばん大きい)、黄、さんご色の丸をぼかして重ね、上から下へ淡く色がにじむようにする。
   iOSアプリのはじめての使い方の背景(OnboardingBackground)と同じ見せ方。丸は ::before と ::after と、.stage の ::before */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--tint-bg);
  padding: 104px 20px 56px;
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -2; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: drift 12s ease-in-out infinite;
}
.hero::before {
  width: min(120vw, 900px); aspect-ratio: 1; left: -25%; top: -35%;
  background: var(--green); opacity: 0.45;
}
.hero::after {
  width: min(80vw, 560px); aspect-ratio: 1; right: -15%; top: 20%;
  background: var(--dot-y); opacity: 0.5;
  animation-delay: -6s;
}
/* ダークでは、丸が濁って見えないよう淡くする(iOSアプリと同じく、ライトより薄く) */
@media (prefers-color-scheme: dark) {
  .hero::before { opacity: 0.3; }
  .hero::after { opacity: 0.18; }
}
/* ヒーローのいちばん上は、ステータスバーと同じ色(--tint-bg)で塗り、下へ向けてぼかした丸になじませる。
   iOS 26 の Safari はステータスバーを body の背景の1色で塗るので、丸の色がそのまま上の端まで来ると、境目が見えるため。
   丸(z-index: -2)より上、文字より下に置く。一直線に薄くすると変わりはじめに線が見えるので、はじめはゆっくり薄くする */
.hero-fade {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 360px; pointer-events: none;
  background: linear-gradient(
    var(--tint-bg) 0%,
    color-mix(in srgb, var(--tint-bg) 92%, transparent) 15%,
    color-mix(in srgb, var(--tint-bg) 70%, transparent) 35%,
    color-mix(in srgb, var(--tint-bg) 40%, transparent) 60%,
    color-mix(in srgb, var(--tint-bg) 15%, transparent) 82%,
    transparent 100%
  );
}
@keyframes drift { 50% { transform: translate(3%, 4%); } }
.hero > * { max-width: 1160px; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(26px, 7.4vw, 54px); margin-top: 12px; line-height: 1.25; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--mark) 62%); color: inherit; }
.hero .lead { margin: 20px auto 0; max-width: 26em; font-size: clamp(16px, 2.4vw, 19px); color: var(--text); }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    padding: 120px max(40px, calc((100vw - 1160px) / 2)) 80px;
  }
  .hero-copy { text-align: left; }
  .hero-copy .store { margin-left: 0; }
  .hero h1 { font-size: clamp(30px, 3.9vw, 54px); }
  .hero .lead { margin-left: 0; }
}

.hero-demo { display: grid; justify-items: center; gap: 20px; }
.stage { position: relative; padding: 16px 34px; }
.stage::before {
  content: ""; position: absolute; left: -30%; bottom: -5%; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: var(--dot-c); opacity: 0.45;
  filter: blur(60px); z-index: -1;
}
@media (prefers-color-scheme: dark) { .stage::before { opacity: 0.18; } }

/* 端末の絵。中は em で書き、.phone の文字の大きさだけで全体の大きさが変わる */
.phone {
  position: relative; z-index: 1;
  font-size: 10.5px;
  width: 23em; height: 44em;
  padding: 0.8em; border-radius: 3.6em;
  background: #111318;
  box-shadow: var(--phone-shadow);
  transform: rotate(2deg);
}
@media (min-width: 900px) { .phone { font-size: 12.5px; height: 46em; } }
@media (max-width: 360px) { .phone { font-size: 9.5px; } }
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 2.9em; overflow: hidden;
  background: var(--surface);
}
.screen::before {  /* ノッチ */
  content: ""; position: absolute; left: 50%; top: 0.7em; z-index: 3;
  width: 7em; height: 1.7em; margin-left: -3.5em; border-radius: 1em; background: #111318;
}

/* 場面1と2: トーク */
.talk, .list { position: absolute; inset: 0; }
.talk { background: var(--chat); }
.talk-head {
  padding: 3.4em 1.2em 0.9em; display: flex; align-items: center; gap: 0.4em;
  font-weight: 800; font-size: 1.15em; background: var(--surface); border-bottom: 1px solid var(--hair);
}
.talk-head .back { font-size: 1.5em; line-height: 1; margin-right: 0.2em; color: var(--mute); }
.talk-head .count { color: var(--mute); font-weight: 700; }
.talk-body { padding: 1.2em 1em; display: grid; gap: 1.1em; }
.msg { display: flex; gap: 0.6em; align-items: flex-start; }
.msg.me { justify-content: flex-end; }
.who { display: block; font-size: 0.85em; color: var(--mute); margin: 0 0 0.2em 0.2em; }
.av {
  flex: none; display: inline-grid; place-items: center;
  width: 2.6em; height: 2.6em; border-radius: 50%;
  font-weight: 800; font-size: 1em; color: var(--ink);
  border: 2px solid var(--surface);
}
.av-y { background: var(--av-y); }
.av-m { background: var(--av-m); }
.av-a { background: var(--av-a); }
.bub {
  display: inline-block; max-width: 14.5em;
  padding: 0.6em 0.9em; border-radius: 1.2em;
  background: var(--surface); font-size: 1.05em; line-height: 1.5;
  box-shadow: 0 1px 0 rgb(17 19 24 / 0.06);
}
.me .bub { background: var(--bubble); }
.bub .t, .bub .url { display: block; }
.url { color: #2a6bd1; word-break: break-all; font-size: 0.92em; }
@media (prefers-color-scheme: dark) { .url { color: #8ab8ff; } }
.ogcard {
  display: flex; gap: 0.7em; align-items: center;
  width: 15.5em; margin-top: 0.4em; padding: 0.6em;
  border-radius: 1em; background: var(--surface);
}
.og-text, .row-text { min-width: 0; flex: 1; display: block; }
.og-text b, .row-text b {
  display: block; font-size: 1em; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.og-text small, .row-text small { display: block; font-size: 0.82em; color: var(--mute); line-height: 1.5; }
.m2 > div { position: relative; }
.pick {
  position: absolute; right: -0.6em; top: 1.2em;
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.35em 0.8em; border-radius: 999px;
  background: var(--btn); color: var(--on-btn);
  font-size: 0.9em; font-weight: 800; white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
}

/* サムネイル。前景の色を currentColor、くり抜く部分を背景の色で塗る */
.th {
  flex: none; display: block; overflow: hidden;
  width: 3.6em; height: 3.6em; border-radius: 0.8em;
  color: var(--fg); background: var(--tb);
}
.th svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.th .cut { fill: var(--tb); }
.th .cut-s { stroke: var(--tb); }
.th-pin { --fg: var(--pin); --tb: var(--pin-bg); }
.th-cup { --fg: var(--cup); --tb: var(--cup-bg); }
.th-rug { --fg: var(--rug); --tb: var(--rug-bg); }
.th-building { --fg: var(--bld); --tb: var(--bld-bg); }
.th-bottle { --fg: var(--btl); --tb: var(--btl-bg); }
.th-stand { --fg: var(--std); --tb: var(--std-bg); }

/* 場面3: ぺたりんのリスト */
.list { background: var(--surface); opacity: 0; }
.list-head {
  padding: 3.4em 1.2em 0.6em; display: flex; align-items: center; gap: 0.3em;
  font-weight: 800; font-size: 1.25em;
}
.list-head .avs { margin-left: auto; font-size: 0.7em; }
.avs { display: inline-flex; }
.avs .av + .av, .avs .av + .mark { margin-left: -0.6em; }
.tabs { display: flex; gap: 0.2em; padding: 0 0.8em; border-bottom: 1px solid var(--hair); }
.tabs span {
  position: relative; padding: 0.7em 0.6em; font-size: 0.95em; font-weight: 700; color: var(--mute);
}
.tabs .on { color: var(--ink); font-weight: 800; }
.tabs .on::after {
  content: ""; position: absolute; left: 0.6em; right: 0.6em; bottom: -1px;
  height: 0.25em; border-radius: 0.2em; background: var(--green);
}
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.row {
  display: flex; gap: 0.8em; align-items: center;
  padding: 0.75em 1em; border-bottom: 1px solid var(--hair);
  background: var(--surface);
}
.row .av { width: 2.1em; height: 2.1em; font-size: 0.85em; }
.chips { position: relative; display: block; height: 1.6em; margin-top: 0.25em; }
.chip {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; height: 1.6em; padding: 0 0.7em;
  border-radius: 0.8em; font-size: 0.8em; font-weight: 800;
  background: var(--mint); color: var(--hero-ink);
}
.chip-old { background: var(--fill); color: var(--mute); }
.newrow { overflow: hidden; }

/* ---------- ヒーローの動き(14秒で1周) ----------
   0〜30%  : トークにメッセージが順に届く
   30〜55% : 文章が薄くなり、リンクだけが残る(リンクだけ保存)
   58〜95% : リストに切り替わり、新しい行が入って「未分類」から「食べる」に分かれる */
.talk { animation: talk 14s infinite; }
.m1 { animation: in1 14s infinite; }
.m2 { animation: in2 14s infinite; }
.m3 { animation: in3 14s infinite; }
.talk .t { animation: fade-text 14s infinite; }
.m2 .bub .url, .m2 .ogcard { animation: glow 14s infinite; }
.pick { animation: pick 14s infinite; }
.list { animation: list 14s infinite; }
.newrow { animation: newrow 14s infinite; }
.newrow .chip-old { animation: chip-old 14s infinite; }
.newrow .chip-new { animation: chip-new 14s infinite; }

@keyframes talk { 0%, 55% { opacity: 1; } 59%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes in1 { 0%, 3% { opacity: 0; transform: translateY(1.2em); } 7%, 95% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes in2 { 0%, 11% { opacity: 0; transform: translateY(1.2em); } 15%, 95% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes in3 { 0%, 20% { opacity: 0; transform: translateY(1.2em); } 24%, 95% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes fade-text { 0%, 31% { opacity: 1; filter: none; } 36%, 95% { opacity: 0.18; filter: blur(2px); } 100% { opacity: 1; } }
@keyframes glow {
  0%, 31% { box-shadow: none; }
  36%, 55% { box-shadow: 0 0 0 0.25em var(--green); }
  59%, 100% { box-shadow: none; }
}
@keyframes pick {
  0%, 37% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1.1); }
  42%, 55% { opacity: 1; transform: scale(1); }
  58%, 100% { opacity: 0; }
}
@keyframes list { 0%, 55% { opacity: 0; } 59%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes newrow {
  0%, 61% { max-height: 0; padding-top: 0; padding-bottom: 0; background: var(--mint); border-bottom-width: 0; }
  66% { max-height: 6em; padding-top: 0.75em; padding-bottom: 0.75em; background: var(--mint); border-bottom-width: 1px; }
  86% { background: var(--mint); }
  92%, 100% { max-height: 6em; padding-top: 0.75em; padding-bottom: 0.75em; background: var(--surface); border-bottom-width: 1px; }
}
@keyframes chip-old { 0%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes chip-new {
  0%, 72% { opacity: 0; transform: scale(0.7); }
  76% { opacity: 1; transform: scale(1.15); }
  79%, 100% { opacity: 1; transform: none; }
}

/* 端末の下の「1 2 3」。いまの場面だけ濃くする */
.demo-steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.demo-steps li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-size: 12px; font-weight: 800;
}
@media (min-width: 420px) { .demo-steps li { font-size: 13px; } }
/* スマホの幅では3つが1行に入りきらず、3だけが次の行に落ちる。3列に並べ、番号の下に文を置いて、文節の切れ目(wbr)で折り返す */
@media (max-width: 559px) {
  .demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .demo-steps li {
    flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 8px 4px; border-radius: 16px;
    text-align: center; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere;
  }
}
.demo-steps li span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fill); color: var(--ink); font-size: 12px;
}
.ds1 { animation: ds1 14s infinite; }
.ds2 { animation: ds2 14s infinite; }
.ds3 { animation: ds3 14s infinite; }
@keyframes ds1 { 0%, 29% { background: var(--btn); color: var(--on-btn); } 31%, 100% { background: var(--surface); color: var(--text); } }
@keyframes ds2 { 0%, 30% { background: var(--surface); color: var(--text); } 32%, 56% { background: var(--btn); color: var(--on-btn); } 58%, 100% { background: var(--surface); color: var(--text); } }
@keyframes ds3 { 0%, 57% { background: var(--surface); color: var(--text); } 59%, 95% { background: var(--btn); color: var(--on-btn); } 97%, 100% { background: var(--surface); color: var(--text); } }

/* ---------- 2. 使い方 ---------- */
.how { max-width: 1160px; margin: 0 auto; }
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 24px;
  padding: 20px 20px 24px;
}
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-top: 18px; }
.step p { margin-top: 8px; color: var(--text); font-size: 15px; }
.num {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--btn); color: var(--on-btn); font-size: 15px;
}
.art {
  position: relative; height: 120px; border-radius: 18px;
  display: grid; place-items: center; overflow: hidden;
  font-size: 12px;
}
.art-add { grid-auto-flow: column; gap: 14px; }
.art-group { --blob1: var(--dot-y); --blob2: var(--dot-c); align-content: center; gap: 12px; }
.art-send { background: var(--chat); }
.art-web { --blob2: var(--dot-c); align-content: center; justify-items: stretch; gap: 6px; padding: 0 24px; }
.mark.big { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow); }
.add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 999px; background: var(--btn); color: var(--on-btn);
  font-weight: 800; font-size: 14px;
  animation: tap 3s ease-in-out infinite;
}
@keyframes tap { 0%, 60%, 100% { transform: none; } 70% { transform: scale(0.92); } 80% { transform: scale(1.04); } }
.art-group .avs { font-size: 15px; }
.art-group .av { border-color: var(--surface); }
.mark.join { width: 2.6em; height: 2.6em; border-radius: 50%; border: 2px solid var(--surface); animation: join 3s ease-in-out infinite; }
@keyframes join { 0%, 15% { transform: translateX(1.2em); opacity: 0; } 35%, 100% { transform: none; opacity: 1; } }
.sys {
  padding: 3px 12px; border-radius: 999px; background: rgb(17 19 24 / 0.08);
  font-size: 12px; color: var(--text);
  animation: sys 3s ease-in-out infinite;
}
@keyframes sys { 0%, 35% { opacity: 0; } 45%, 100% { opacity: 1; } }
.art-send .bub { font-size: 14px; animation: send 3s ease-in-out infinite; }
@keyframes send { 0% { transform: translateY(24px); opacity: 0; } 20%, 100% { transform: none; opacity: 1; } }
.art-web .bar {
  display: block; padding: 4px 12px; border-radius: 999px; background: var(--surface);
  color: var(--mute); font-size: 12px; text-align: center;
}
/* 4. リストを見る: トークの下のメニュー(リッチメニュー。design/richmenu)の3つのボタン。真ん中を押す */
.art-menu { --blob2: var(--dot-c); align-content: center; justify-items: stretch; gap: 8px; padding: 0 20px; }
.rm {
  display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden;
  border-radius: 10px; background: var(--surface); font-size: 11px; font-weight: 800; text-align: center;
}
.rm span { padding: 9px 2px; }
.rm span + span { border-left: 1px solid var(--hair); }
.rm-hit { animation: rm-tap 3s ease-in-out infinite; }
@keyframes rm-tap { 0%, 30% { background: var(--surface); } 40%, 100% { background: var(--mark); } }
.art-menu .mini { animation: rm-open 3s ease-in-out infinite; }
@keyframes rm-open { 0%, 45% { opacity: 0; transform: translateY(8px); } 60%, 100% { opacity: 1; transform: none; } }
.mini {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 10px; background: var(--surface);
}
.mini .th { width: 26px; height: 26px; border-radius: 7px; }
.mini .ln { display: block; flex: 1; height: 8px; border-radius: 4px; background: var(--hair); }

/* ---------- 3. できること ---------- */
.features { max-width: 1160px; margin: 0 auto; padding-top: 24px; display: grid; gap: 56px; }
.features h2 { margin-bottom: -8px; }
.feature { display: grid; gap: 24px; align-items: center; }
@media (min-width: 840px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature:nth-of-type(even) .feat-art { order: 2; }
}
.feat-text h3 { font-size: clamp(22px, 3.6vw, 28px); }
.feat-text p { margin-top: 12px; color: var(--text); }
.feat-art {
  display: grid; place-items: center;
  padding: 40px 20px; border-radius: 28px;
}
.feature:nth-of-type(2) .feat-art { --blob1: var(--dot-y); --blob2: var(--dot-c); }
.feature:nth-of-type(3) .feat-art { --blob2: var(--dot-c); }
.card {
  width: 100%; max-width: 340px; font-size: 13px;
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.card .row:last-child { border-bottom: 0; }

.f-cat .row { padding: 14px; }
.f-cat .chip-old { animation: f-old 6s infinite; }
.f-cat .chip-new { animation: f-new 6s infinite; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; background: var(--fill); }
.cats span {
  padding: 2px 10px; border-radius: 999px; background: var(--surface);
  font-size: 12px; font-weight: 700; color: var(--mute);
}
.cats .hit { animation: f-hit 6s infinite; }
@keyframes f-old { 0%, 35% { opacity: 1; } 40%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes f-new { 0%, 35% { opacity: 0; transform: scale(0.7); } 42% { opacity: 1; transform: scale(1.15); } 46%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes f-hit {
  0%, 35% { background: var(--surface); color: var(--mute); }
  42%, 92% { background: var(--btn); color: var(--on-btn); }
  97%, 100% { background: var(--surface); color: var(--mute); }
}

.f-group .row { padding: 12px 14px; }
.f-group .g1 { animation: g1 7s infinite; }
.f-group .g2 { animation: g2 7s infinite; }
.f-group .g3 { animation: g3 7s infinite; }
@keyframes g1 { 0%, 5% { opacity: 0; transform: translateX(-16px); } 12%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes g2 { 0%, 22% { opacity: 0; transform: translateX(-16px); } 29%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes g3 { 0%, 39% { opacity: 0; transform: translateX(-16px); } 46%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* コピーしたリンクを送る: 送り先を選ぶ画面。ぺたりんがいるグループを選ぶ */
.feature:nth-of-type(4) .feat-art { --blob1: var(--dot-c); --blob2: var(--dot-y); }
.f-send .copied { display: grid; gap: 2px; margin: 12px; padding: 10px 12px; border-radius: 12px; background: var(--fill); }
.copied-label { font-size: 11px; font-weight: 700; color: var(--mute); }
.f-send .to { display: grid; }
.to-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--hair); font-weight: 700; }
.to-row .av { font-size: 12px; }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--mint); color: var(--hero-ink); font-size: 11px; }
.check {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hair);
  animation: pick 6s infinite;
}
.to-hit { animation: pick-row 6s infinite; }
@keyframes pick { 0%, 30% { background: transparent; border-color: var(--hair); } 38%, 92% { background: var(--green); border-color: var(--green); } 98%, 100% { background: transparent; border-color: var(--hair); } }
@keyframes pick-row { 0%, 30% { background: var(--surface); } 38%, 92% { background: var(--chat); } 98%, 100% { background: var(--surface); } }

.f-search .search {
  display: flex; align-items: center; gap: 8px; margin: 12px; padding: 8px 12px;
  border-radius: 12px; background: var(--fill); color: var(--mute); font-size: 14px;
}
.typed {
  display: inline-block; overflow: hidden; white-space: nowrap; color: var(--ink);
  width: 0; animation: typed 7s infinite;
}
.caret { display: inline-block; width: 2px; height: 1.2em; margin-left: -6px; background: var(--green); animation: caret 1s steps(1) infinite; }
/* 「ラ」「グ」と1文字ずつ打ち、打ち終わってから結果が絞られる。キーフレームを近くに2つ置いて、文字を一度に出す */
@keyframes typed { 0%, 12% { width: 0; } 12.1%, 22% { width: 1em; } 22.1%, 88% { width: 2em; } 88.1%, 100% { width: 0; } }
@keyframes caret { 50% { opacity: 0; } }
.f-search .row { padding: 10px 14px; }
.f-search .s-miss { animation: miss 7s infinite; }
.f-search .s-hit { animation: hit 7s infinite; }
/* 余白と線も、すべてのキーフレームに書く。書かないと、0%から40%までかけて余白が少しずつ縮み、打つ前から行が詰まって見える */
@keyframes miss { 0%, 30% { opacity: 1; max-height: 5em; padding-top: 10px; padding-bottom: 10px; border-bottom-width: 1px; } 34% { opacity: 0; max-height: 5em; padding-top: 10px; padding-bottom: 10px; border-bottom-width: 1px; } 40%, 88% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; } 94% { opacity: 0; max-height: 5em; padding-top: 10px; padding-bottom: 10px; border-bottom-width: 1px; } 98%, 100% { opacity: 1; max-height: 5em; padding-top: 10px; padding-bottom: 10px; border-bottom-width: 1px; } }
@keyframes hit { 0%, 34% { background: var(--surface); } 42%, 86% { background: var(--mint); } 92%, 100% { background: var(--surface); } }

/* ---------- 4. プライバシーの約束 ---------- */
.privacy { background: var(--btn); color: var(--on-btn); }
@media (prefers-color-scheme: dark) { .privacy { background: #0b3d25; color: #ffffff; } }
.privacy-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; gap: 32px;
}
@media (min-width: 900px) {
  .privacy-inner { grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: center; }
  .pv-lists, .pv-more { grid-column: 1 / -1; }
}
.privacy .eyebrow { color: #9be8b8; }
.privacy h2 { text-align: left; margin-top: 10px; font-size: clamp(30px, 6vw, 46px); }
.pv-copy p:last-child { margin-top: 18px; color: rgb(255 255 255 / 0.86); }
.pv-demo {
  position: relative; display: grid; gap: 12px; justify-items: start;
  padding: 28px 22px 70px; border-radius: 28px; background: rgb(255 255 255 / 0.08);
  font-size: 15px;
}
.pv-bub {
  padding: 10px 14px; border-radius: 18px; background: #ffffff; color: #111318; max-width: 18em; line-height: 1.5;
}
.pv-link { justify-self: end; background: #9be8b8; }
.pv-link .pv-t, .pv-link .url { display: block; }
.pv-link .url { color: #0b3d25; font-weight: 800; }
.pv-t1, .pv-t2, .pv-t { animation: pv-gone 8s infinite; }
.pv-link { animation: pv-keep 8s infinite; }
.pv-box {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: #06c755; color: #111318;
  font-weight: 800; font-size: 14px;
  animation: pv-box 8s infinite;
}
@keyframes pv-gone {
  0%, 25% { opacity: 1; filter: none; transform: none; }
  40%, 85% { opacity: 0.12; filter: blur(3px); transform: scale(0.97); }
  95%, 100% { opacity: 1; filter: none; transform: none; }
}
@keyframes pv-keep {
  0%, 30% { box-shadow: none; }
  42%, 85% { box-shadow: 0 0 0 4px #06c755; }
  95%, 100% { box-shadow: none; }
}
@keyframes pv-box { 0%, 40% { opacity: 0; transform: translate(-50%, 8px); } 48%, 85% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; } }

.pv-lists { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pv-card { border-radius: 20px; padding: 20px 22px; background: rgb(255 255 255 / 0.1); }
.pv-card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.pv-card h3::before {
  content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #06c755; color: #111318; font-size: 14px;
}
.pv-card.no h3::before { content: "×"; background: #ffffff; }
.pv-card ul { margin: 10px 0 0; padding-left: 1.2em; }
.pv-card li + li { margin-top: 4px; }
.pv-more { margin: 0; padding-left: 1.2em; color: rgb(255 255 255 / 0.86); font-size: 15px; }
.pv-more li + li { margin-top: 6px; }

/* ---------- 5. よくある質問 ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 32px; }
details { border-bottom: 1px solid var(--hair); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 4px;
  font-weight: 800; font-size: 17px; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--fill);
  font-size: 18px; transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
summary:active { background: var(--fill); border-radius: 12px; }
details p { padding: 0 4px 18px; color: var(--text); }

/* ---------- 6. 最後の呼びかけ ---------- */
/* 下のフッターと1つの背景に見えるよう、丸は下の端より手前で消えるように置き、下地はフッターと同じ色にする */
.end {
  text-align: center;
  background:
    radial-gradient(70% 90% at 8% 15%, color-mix(in srgb, var(--green) var(--blob-mix), transparent), transparent 75%),
    radial-gradient(55% 75% at 92% 40%, color-mix(in srgb, var(--dot-y) var(--blob-mix), transparent), transparent 75%),
    var(--tint-bg);
}
.end h2 { font-size: clamp(26px, 5.4vw, 40px); }

/* ---------- フッター ---------- */
.foot {
  background: var(--tint-bg);
  padding: 32px max(20px, calc((100% - 1160px) / 2)) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--text);
}
.foot .brand { font-size: 17px; color: var(--ink); }
.foot .mark { width: 26px; height: 26px; border-radius: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { padding: 8px 0; }
/* 商標の注記(LINEヤフーのガイドライン、issue #83。App Store のバッジを置いたので Apple の注記も) */
.foot .tm { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--mute); }

/* ---------- 動きを減らす設定 ----------
   端末で動きを減らす設定をしていても、使い方を伝える絵(ヒーロー、はじめかた、できること、プライバシー)は動かす。
   絵が動かないと、LPで一番伝えたい「送る → リンクだけ保存 → 分かれる」の流れが伝わらないため(運営者の判断、2026-10-06)。
   飾りの動き(浮かぶ丸、スクロール、ボタンの浮き上がり)だけを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { animation: none; }
  .cta { transition: none; }
}
