/* shoppingrhythm.app の紹介ページ（/ と /en）。2026-10-16〜17 作り直し。
   アプリの配色（紺 #193452・生成り #FAF7F2・テラコッタ #D46B4C）に 淡い桃・空・ミント・バターの色を少し。
   ありがちな飾り（下線・マーカー・ぼかしの丸・色の移り変わりの文字）は使わない。電話の後ろはアプリの棚と同じ平らな板。
   動き: 読み込み時は @starting-style（吹き出しがぽんと出る）、スクロールでの出方は animation-timeline: view()
   （使えないブラウザは landing.js が IntersectionObserver で同じ姿にする）、上の帯の進み具合は scroll()、
   売り場順の見本の並べ替えと日本語⇔英語の移動は view transitions。動きを減らす設定の人には どれも動かさない。 */
:root {
  color-scheme: light;
  --ink: #193452;
  --ink-2: #2e4d6e;
  --body: #4f5e6e;
  --accent: #d46b4c;
  --accent-ink: #b9502f;
  --cream: #faf7f2;
  --line: #e8e0d4;
  --peach: #fbe5da;
  --sky: #e2ecf5;
  --mint: #e2f0e8;
  --butter: #f8edc9;
  --green: #2f6f57;
  /* アプリの買い物リストの色（lib/app/theme.dart の AppColors） */
  --app-text: #1f2f4a;
  --app-tertiary: #666f7a;
  --app-divider: #e8e0d4;
  --app-board: #ddd1bf;
  --app-board-edge: #766a55;
  --round: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .8, .25, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 16px; line-height: 1.85; background: var(--cream); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
p, h1, h2, ol, figure { margin: 0; }
p, h1, h2, q { text-wrap: pretty; }
:lang(ja) { word-break: auto-phrase; line-break: strict; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 18px; background: #fff; border-radius: 8px; z-index: 30; }
.skip-link:focus { top: 10px; }

/* 上の帯 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(250 247 242 / .9); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid rgb(232 224 212 / .7); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font: 700 19px/1 var(--round); letter-spacing: -.2px; white-space: nowrap; }
.brand img { border-radius: 22%; box-shadow: 0 0 0 1px rgb(25 52 82 / .08), 0 1px 2px rgb(25 52 82 / .12); }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
nav a { text-decoration: none; color: var(--body); }
nav a:hover { color: var(--accent-ink); }
.language-link { border: 1px solid #d8cfc2; border-radius: 999px; padding: 3px 14px; color: var(--ink); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* いちばん上（見出し・1行・ボタン・お使いの会話） */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
/* 見出しの上の札（アプリの種類と、App Store の順位の吹き出し。2026-10-28 運営者） */
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.eyebrow { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); background: #fff; border: 1px solid #f1d3c6; border-radius: 999px; padding: 4px 14px; }
.rank { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 14px 6px 11px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px/1.3 var(--round); box-shadow: 0 10px 20px -12px rgb(25 52 82 / .6); transform-origin: 24px 120%; transition: scale .55s var(--pop) .5s, opacity .3s var(--ease) .5s; }
.rank::after { content: ""; position: absolute; bottom: -5px; left: 20px; width: 11px; height: 11px; background: var(--ink); rotate: 45deg; border-radius: 0 0 2px 0; }
.rank svg { width: 15px; height: 15px; flex: none; translate: 0 -1px; }
.rank small { font: 500 11px/1 var(--sans); opacity: .75; padding-left: 7px; border-left: 1px solid rgb(255 255 255 / .35); }
@starting-style { .rank { scale: .3; opacity: 0; } }
h1 { font: 700 clamp(38px, 5.4vw, 64px)/1.3 var(--round); letter-spacing: -.01em; margin: 22px 0 18px; }
h1 > span, h2 > span { display: inline-block; }
h1 > span + span, h2 > span + span { display: block; }
h1 em { font-style: normal; color: var(--accent-ink); }
/* 見出しの言葉の切れ目（「定期購入品も」「毎日の買い物も」）でだけ折り返す */
h1 .w { display: inline-block; font-style: normal; }
.lead { color: var(--body); font-size: 18px; margin-bottom: 28px; }

/* ダウンロードのボタン（App Store・Google Play の黒い札。同じ高さで並べる） */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none; line-height: 1.15; text-align: left; white-space: nowrap; transition: translate .25s var(--pop); }
.store-badge:hover { translate: 0 -2px; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; letter-spacing: .02em; }
.store-badge b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
:lang(ja) .store-badge b { font-size: 16px; }

.hero-visual { display: grid; place-items: center; }
.family-scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; width: min(500px, 100%); margin-inline: auto; isolation: isolate; }
.family-scene::before { content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: 2%; height: 18px; border-radius: 4px; background: #dccfb4; box-shadow: inset 0 3px 0 #fffbf2, 0 2px 0 #c9b998; }
.family-person { display: flex; flex-direction: column; align-items: center; }
.family-person.man { padding-top: 40px; }
.speech { position: relative; width: 100%; padding: 12px; text-align: center; font: 700 15px/1.45 var(--round); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 24px -14px rgb(25 52 82 / .4); transform-origin: 50% 110%; }
.speech::after { content: ""; position: absolute; bottom: -7px; left: calc(50% - 7px); width: 14px; height: 14px; background: #fff; box-shadow: 1px 1px 0 var(--line); rotate: 45deg; }
.man .speech { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -14px rgb(25 52 82 / .6); }
.man .speech::after { background: var(--ink); box-shadow: none; }
.person { width: 84px; margin: 8px auto 6px; }
.phone { position: relative; width: min(290px, 100%); padding: 9px; border-radius: 46px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgb(25 52 82 / .35), 0 12px 24px -12px rgb(25 52 82 / .18); }
.phone img { width: 100%; border-radius: 37px; background: var(--cream); }
.phone.small { width: 100%; padding: 6px; border-radius: 30px; }
.phone.small img { border-radius: 25px; }
.woman .phone.small { rotate: -3deg; }
.man .phone.small { rotate: 3deg; }

/* 入ってくる時（読み込みの直後）。@starting-style から。吹き出しは あとから ぽんと出る */
.enter { transition: opacity .8s var(--ease), translate .8s var(--ease); }
.e1 { transition-delay: .08s; } .e2 { transition-delay: .18s; } .e3 { transition-delay: .28s; }
@starting-style { .enter { opacity: 0; translate: 0 18px; } }
.speech { transition: scale .55s var(--pop), opacity .3s var(--ease); }
.woman .speech { transition-delay: .7s; }
.man .speech { transition-delay: 1.3s; }
@starting-style { .speech { scale: .3; opacity: 0; } }

/* 品の絵が流れる帯（アプリの品の絵） */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: slide 60s linear infinite; }
.marquee-track span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--cream); }
.marquee-track img { width: 52px; height: 52px; }
@keyframes slide { to { translate: calc(-50% - 7px) 0; } }

/* できること */
.feature { position: relative; padding: clamp(64px, 9vw, 112px) 0; overflow: clip; isolation: isolate; }
.tint-peach { --deep: #f7d3c1; }
.tint-sky { --deep: #cfe0ef; }
.tint-mint { --deep: #cbe6d6; }
.tint-butter { --deep: #f3dfa0; }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.rev .feature-copy { order: 2; }
.feature-media { position: relative; display: grid; place-items: center; isolation: isolate; padding: 28px 0; }
.feature-media:has(.phone)::before { content: ""; position: absolute; z-index: -1; inset: 8% 6% 14%; border-radius: 28px; background: var(--deep); }
.feature-media:has(.phone)::after { content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: 10%; height: 16px; border-radius: 4px; background: #dccfb4; box-shadow: inset 0 3px 0 #fffbf2, 0 2px 0 #c9b998; }
.label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; font-weight: 700; color: var(--accent-ink); margin-bottom: 18px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff; font: 700 14px/1 var(--round); rotate: -6deg; }
.feature-copy h2 { font: 700 clamp(30px, 3.6vw, 44px)/1.4 var(--round); margin-bottom: 18px; }
.feature-copy > p:not(.label) { color: var(--body); font-size: 17px; max-width: 32em; }

.say { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 18px 10px 10px; width: fit-content; max-width: 100%; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgb(25 52 82 / .35); }
.say .mic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; }
.say .mic svg { width: 20px; height: 20px; }
.say q { font: 700 15px/1.5 var(--round); color: var(--ink); quotes: "「" "」"; }
html[lang="en"] .say q { quotes: "“" "”"; }

/* 本番の買い物リストと同じ形の札（行の高さ64・絵46・棚板54×4・丸40で紺の線2・売り場の見出し11.5） */
.app-card { list-style: none; padding: 0; width: min(360px, 100%); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--app-divider); box-shadow: 0 18px 36px -24px rgb(25 52 82 / .4); font-family: var(--round); text-align: left; }
.app-row { position: relative; display: flex; align-items: center; min-height: 64px; }
.app-row::before { content: ""; position: absolute; left: 64px; right: 0; top: 0; height: 1px; background: var(--app-divider); }
.app-row.list-first::before { display: none; }
.app-photo { position: relative; flex: none; width: 64px; height: 64px; }
.app-photo .item-icon { position: absolute; left: 12px; top: 12px; width: 46px; height: 46px; object-fit: contain; }
.app-photo .board { position: absolute; left: 8px; top: 60px; width: 54px; height: 4px; border-radius: 2px 2px 0 0; background: linear-gradient(var(--app-board) 50%, var(--app-board-edge) 50%); }
.app-name { flex: 1; min-width: 0; padding: 0 4px 0 8px; font-size: 16px; line-height: 21px; font-weight: 700; color: var(--app-text); }
.app-check { flex: none; width: 40px; height: 40px; margin: 0 10px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }

/* 03 品の絵がつく: 見えたら 1品ずつ絵が ぽんと入る */
.js .icons-demo .item-icon { scale: .2; opacity: 0; transition: scale .55s var(--pop), opacity .25s var(--ease); transition-delay: calc(.25s + var(--k) * .45s); }
.js .icons-demo .app-row:nth-child(1) .item-icon { --k: 0; }
.js .icons-demo .app-row:nth-child(2) .item-icon { --k: 1; }
.js .icons-demo .app-row:nth-child(3) .item-icon { --k: 2; }
.js .icons-demo.on .item-icon { scale: 1; opacity: 1; }

/* 04 売り場分けの見本（押すと 入れた順 ⇔ 売り場順。並べ替えの動きは view transitions） */
.demo { width: min(360px, 100%); }
.demo-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 6px; }
/* 「タップしてみて」（2026-10-27 運営者: もっと大きく動かして目立たせる）。
   橙の吹き出しにして、ふくらんで右の切り替えへ跳ねる。押したら（.touched）静かに消す。 */
.demo-hint { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 16px/1 var(--round); box-shadow: 0 6px 16px rgb(212 107 76 / .35); transform-origin: right center; transition: opacity .3s var(--ease), scale .3s var(--ease); }
.demo-hint::after { content: "→"; display: inline-block; font-size: 18px; }
.demo.touched .demo-hint { opacity: 0; scale: .8; pointer-events: none; }
.demo-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none; font: 700 15px/1 var(--round); color: var(--app-text); cursor: pointer; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: #d5d9de; transition: background .3s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: translate .35s var(--pop); }
.demo-toggle[aria-pressed="true"] .switch { background: var(--ink); }
.demo-toggle[aria-pressed="true"] .switch::after { translate: 20px 0; }
.store-name { margin: 0 0 8px 4px; font: 700 15px/1.3 var(--round); color: var(--app-text); }
.demo-list > li { order: var(--n); }
.demo-list .aisle-head { display: none; padding: 10px 16px 2px; border-top: 1px solid var(--app-divider); font: 700 11.5px/1.3 var(--round); color: var(--app-tertiary); }
.demo-list .aisle-head.first { padding-top: 8px; border-top: 0; }
.demo.sorted .demo-list > li { order: var(--a); }
.demo.sorted .demo-list .aisle-head { display: block; }
.demo.sorted .app-row.list-first::before { display: block; }
.demo.sorted .app-row.aisle-first::before { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .demo:not(.touched) .switch { animation: nudge 2.4s var(--ease) 1.2s infinite; }
  .demo:not(.touched) .demo-hint { animation: hint-pop 1.6s var(--pop) .6s infinite; }
  .demo:not(.touched) .demo-hint::after { animation: hint-arrow 1.6s var(--ease) .6s infinite; }
  .demo:not(.touched) .switch::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 3px solid var(--accent); opacity: 0; animation: hint-ring 1.6s var(--ease) .6s infinite; }
}
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgb(212 107 76 / 0); } 80% { box-shadow: 0 0 0 6px rgb(212 107 76 / .35); } }

/* 終わり（料金はここだけ） */
.closing { padding: 80px 0; text-align: center; background: var(--ink); color: #fff; }
.closing-icon { margin: 0 auto 18px; border-radius: 22%; }
.closing-brand { font: 700 18px/1 var(--round); color: #c9d4e0; letter-spacing: .02em; }
.price { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 30px; font: 700 clamp(44px, 6vw, 64px)/1.2 var(--round); }
.price small { font: 700 15px/1.4 var(--round); color: #1f3a5a; background: #f6c9b4; border-radius: 999px; padding: 4px 14px; }
.closing .stores { justify-content: center; }

.site-footer { padding-block: 40px 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-top .brand { font-size: 16px; }
.footer-top nav { gap: 8px 20px; flex-wrap: wrap; font-size: 13px; }
.fine-print { color: var(--body); font-size: 11px; line-height: 1.9; }
.footer-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--body); font-size: 11px; }

html[lang="en"] h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.15; letter-spacing: -.02em; }
html[lang="en"] .feature-copy h2 { line-height: 1.2; letter-spacing: -.01em; }

/* スクロールで現れる（使えるブラウザは CSS だけで。使えないブラウザは landing.js が .in を付ける） */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 1; translate: 0 0; transition: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .float img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 40px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes drift { from { translate: 0 14px; } to { translate: 0 -14px; } }
@keyframes progress { to { transform: scaleX(1); } }

/* 日本語⇔英語の移動をなめらかに（使えるブラウザだけ） */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
}

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .stores { justify-content: center; }
  .hero-tags { justify-content: center; }
  .rank::after { left: calc(50% - 5px); }
  .feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev .feature-copy { order: 0; }
  .feature-copy { text-align: center; }
  .feature-copy > p:not(.label) { margin-inline: auto; }
  .label { justify-content: center; }
  .say { margin-inline: auto; text-align: left; }
}
@media (max-width: 560px) {
  .hide-s { display: none; }
  /* 狭い画面では順位の吹き出しを2行に（順位の1行と、記録した月の1行） */
  .rank { flex-wrap: wrap; justify-content: center; row-gap: 1px; padding: 7px 16px; border-radius: 16px; font-size: 12px; }
  .rank span { white-space: nowrap; }
  .rank small { flex-basis: 100%; text-align: center; padding-left: 0; border-left: 0; font-size: 10.5px; }
  nav { gap: 14px; font-size: 13px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  h1 { font-size: clamp(34px, 10vw, 44px); }
  html[lang="en"] h1 { font-size: clamp(30px, 9vw, 42px); }
  .lead { font-size: 16px; }
  .stores { gap: 10px; flex-wrap: nowrap; }
  .store-badge { flex: 1 1 0; min-width: 0; justify-content: center; gap: 8px; padding: 0 10px; height: 52px; }
  .store-badge svg { width: 22px; height: 22px; }
  .store-badge small { font-size: 10px; }
  .store-badge b { font-size: 16px; }
  :lang(ja) .store-badge b { font-size: 14px; }
  .phone { width: min(250px, 74vw); padding: 7px; border-radius: 38px; }
  .phone img { border-radius: 31px; }
  .family-scene { gap: 12px; }
  .speech { font-size: 13px; padding: 10px 8px; border-radius: 16px; }
  .person { width: 70px; }
  .family-person.man { padding-top: 28px; }
  .phone.small { width: 100%; padding: 5px; border-radius: 24px; }
  .phone.small img { border-radius: 20px; }
  .feature-copy h2 { font-size: clamp(27px, 7.6vw, 34px); }
  .feature-copy > p:not(.label) { font-size: 16px; }
  .say q { font-size: 13px; }
  .marquee-track span { width: 60px; height: 60px; border-radius: 16px; }
  .marquee-track img { width: 44px; height: 44px; }
  .closing { padding: 64px 0; }
}
@media (max-width: 360px) {
  .hide-xs { display: none; }
}

/* 動きを減らす設定では、動かさずに最後の姿を出す */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .icons-demo .item-icon { scale: 1; opacity: 1; }
  .progress { display: none; }
}

/* 02 入力しても話しても: 手入力のシートの電話と、マイクに話す人の吹き出し（見えたら ぽんと出る） */
.talk-media { gap: 0; }
.talk { position: absolute; left: 0; bottom: 14%; display: flex; flex-direction: column; align-items: flex-start; width: min(250px, 46%); }
.talk .speech { text-align: left; font-size: 14px; }
.talk .speech::after { left: 30px; }
.talker { position: relative; width: 92px; margin: 10px 0 0 6px; }
.talker img { width: 92px; height: 92px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 4px; }
.mic-badge { position: absolute; right: -6px; bottom: 2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px #fff; }
.mic-badge svg { width: 18px; height: 18px; }
.talk-media .phone { margin-left: 34%; }

/* 05 家族で共有: 共有中のリスト1台を、家族3人が囲む（上の2人とは並べ方を変える） */
.share-scene { position: relative; width: min(460px, 100%); padding: 40px 0 10px; }
.share-phone { width: min(250px, 58%); margin-inline: auto; }
.member { position: absolute; display: flex; flex-direction: column; align-items: center; width: 30%; max-width: 130px; }
.member img { width: 80px; height: 80px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -14px rgb(25 52 82 / .5); padding: 4px; }
.member .speech { width: auto; white-space: nowrap; margin-bottom: 10px; padding: 8px 14px; font-size: 14px; }
.speech.dark { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -14px rgb(25 52 82 / .6); }
.speech.dark::after { background: var(--ink); box-shadow: none; }
.m-man { right: 0; top: 4%; }
.m-woman { left: 0; top: 30%; }
.m-child { right: 4%; bottom: 8%; }
.m-child img { width: 66px; height: 66px; }

/* 見えたら吹き出しが ぽんと出る（JS が .on を付ける。動きを減らす設定では最初から出す） */
.js .pop-group .pop { scale: .3; opacity: 0; transition: scale .55s var(--pop), opacity .3s var(--ease); }
.js .pop-group .m-woman .pop { transition-delay: .6s; }
.js .pop-group.on .pop { scale: 1; opacity: 1; }

@media (max-width: 900px) {
  .talk { bottom: 10%; }
}
@media (max-width: 560px) {
  /* スマホ幅: 人と吹き出しを電話の上に横並びにして、画面に重ねない */
  .talk-media { display: flex; flex-direction: column-reverse; align-items: center; gap: 16px; }
  .talk { position: static; width: 100%; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 12px; }
  .talk .speech { flex: 1; max-width: 250px; font-size: 13px; padding: 10px 12px; }
  .talk .speech::after { left: -7px; top: calc(50% - 7px); bottom: auto; rotate: 135deg; }
  .talker { flex: none; margin: 0; }
  .talker, .talker img { width: 64px; height: 64px; }
  .mic-badge { width: 28px; height: 28px; right: -8px; }
  .mic-badge svg { width: 15px; height: 15px; }
  .talk-media .phone { margin-left: 0; }
  .member img { width: 60px; height: 60px; }
  .m-child img { width: 50px; height: 50px; }
  .member .speech { font-size: 12px; padding: 6px 10px; }
  .share-phone { width: min(210px, 56vw); }
}
@media (prefers-reduced-motion: reduce) {
  .js .pop-group .pop { scale: 1; opacity: 1; }
}

@keyframes hint-pop { 0%, 100% { scale: 1; } 30% { scale: 1.16; } 55% { scale: .97; } 75% { scale: 1.04; } }
@keyframes hint-arrow { 0%, 100% { translate: 0 0; } 40% { translate: 7px 0; } 60% { translate: 2px 0; } }
@keyframes hint-ring { 0% { opacity: .9; scale: .9; } 100% { opacity: 0; scale: 1.35; } }
