/* トップ（home.js）。浩樹さん 2026-10-17「LINEスタンプ作成アプリとわかるような、かわいいスタンプがたくさんのアニメーション付きのトップページ」
   / を開くと最初に出る（head の小片が html.home-on を付ける）。帯は CSS だけで流れ、スタンプは1枚ずつぷかぷか浮く。
   視差効果を減らす がオンでも同じように動く（浩樹さんの決まり。ちらつき・点滅・揺れは元から入れていない） */
.home{display:none}
html.home-on,html.home-on body{overflow:hidden}
html.home-on .home{display:flex}
.home{position:fixed;inset:0;z-index:4000;flex-direction:column;gap:clamp(6px,1.2svh,14px);padding:max(10px,env(safe-area-inset-top)) 0 max(16px,env(safe-area-inset-bottom));overflow:hidden;color:var(--ink,#17201d);background:radial-gradient(120% 55% at 50% 0%,#fff3e2 0%,rgb(255 243 226 / 0) 62%),radial-gradient(80% 45% at 100% 100%,#e3f3ff 0%,rgb(227 243 255 / 0) 62%),radial-gradient(70% 40% at 0% 78%,#ffe8f1 0%,rgb(255 232 241 / 0) 60%),#f5fbf8;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif}
html.home-leaving .home{opacity:0;transform:scale(1.02);transition:opacity .26s cubic-bezier(.23,1,.32,1),transform .26s cubic-bezier(.23,1,.32,1)}
.home-top{display:flex;align-items:center;gap:10px;padding:2px max(18px,env(safe-area-inset-left)) 0;font-size:17px;font-weight:900;letter-spacing:.02em}
.home-rows{display:grid;gap:clamp(2px,.6svh,8px)}
.home-row{overflow:hidden;padding:clamp(4px,1svh,10px) 0}
.home-track{display:flex;width:max-content;animation:home-marquee var(--dur,48s) linear infinite;will-change:transform}
.home-row.rev .home-track{animation-direction:reverse}
.hs{flex:none;width:var(--s);height:var(--s);margin-right:var(--g,14px);animation:home-bob 3.4s ease-in-out infinite;animation-delay:var(--d,0s)}
.hs:nth-child(4n+2){--d:-.85s}.hs:nth-child(4n+3){--d:-1.7s}.hs:nth-child(4n+4){--d:-2.55s}
.hs img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px rgb(23 32 29 / .16));-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.home-row.r1{--s:clamp(72px,11.5svh,140px);--dur:46s}
.home-row.r2{--s:clamp(72px,11.5svh,140px);--dur:54s}
.home-row.r3{--s:clamp(58px,9svh,116px);--dur:60s;--g:10px}
.home-row.r4{--s:clamp(50px,7.5svh,96px);--dur:126s;--g:18px}
@keyframes home-marquee{to{transform:translateX(-50%)}}
@keyframes home-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7%)}}
.home-copy{flex:1;display:grid;align-content:center;justify-items:center;gap:clamp(6px,1.2svh,12px);padding:0 20px;text-align:center}
.home-copy h1{margin:0;font-size:clamp(30px,8.4vw,60px);font-weight:900;line-height:1.18;letter-spacing:0;word-break:keep-all;outline:none}
.home-copy h1 em{font-style:normal;color:var(--accent,#0a7c68)}
.home-catch{margin:0;font-size:clamp(16px,4.3vw,21px);font-weight:900;line-height:1.45;word-break:keep-all}.home-catch-lead{display:block;margin-bottom:2px;color:var(--accent,#0a7c68);font-size:.9em;letter-spacing:.04em}.home-catch em{font-style:normal;background:linear-gradient(transparent 58%,#ffe46b 58%)}
.home-flow{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:4px 0 0;padding:0;list-style:none}
.home-flow li{display:flex;align-items:center;gap:6px;padding:6px 12px 6px 7px;border-radius:999px;background:#fff;box-shadow:0 1px 0 rgb(23 32 29 / .06),0 4px 14px rgb(23 32 29 / .07);font-size:15px;font-weight:800;white-space:nowrap}
.home-flow b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent,#0a7c68);color:#fff;font-size:13px}
.home-cta{display:grid;justify-items:center;padding:0 max(18px,env(safe-area-inset-left))}
.home-start{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:min(420px,100%);min-height:60px;padding:0 20px;border:0;border-radius:18px;background:var(--accent,#0a7c68);color:#fff;font:inherit;font-size:19px;font-weight:900;letter-spacing:.02em;box-shadow:0 10px 24px rgb(23 32 29 / .22);box-shadow:0 10px 24px color-mix(in srgb,var(--accent,#0a7c68) 30%,transparent);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .09s cubic-bezier(.23,1,.32,1)}
.home-start:active{transform:scale(var(--press,.96))}
.home-start .ico{width:24px;height:24px;stroke-width:2.6}
.home-start:focus-visible{outline:3px solid var(--accent-ring,rgb(10 124 104 / .35));outline-offset:4px}
/* 右上の QR（見せるだけで共有・押すと共有の一覧） */
.home-qr{position:absolute;z-index:2;top:max(8px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:grid;justify-items:center;gap:3px;padding:6px 6px 5px;border:0;border-radius:14px;background:#fff;color:var(--ink,#17201d);box-shadow:0 6px 18px rgb(23 32 29 / .16);font:inherit;font-size:12px;font-weight:800;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .09s cubic-bezier(.23,1,.32,1);animation:home-in .5s cubic-bezier(.23,1,.32,1) .2s both}
.home-qr[hidden]{display:none}
.home-qr:active{transform:scale(var(--press,.96))}
.home-qr:focus-visible{outline:3px solid var(--accent-ring,rgb(10 124 104 / .35));outline-offset:3px}
.home-qr img{display:block;width:var(--q,76px);height:var(--q,76px);image-rendering:pixelated}
@media (min-width:900px){.home-qr{--q:120px;font-size:14px}}
@media (max-height:520px){.home-qr{--q:60px}}
@keyframes home-in{from{opacity:0;transform:translateY(14px)}}
.home-row,.home-copy>*,.home-cta{animation:home-in .5s cubic-bezier(.23,1,.32,1) both}
.home-row.r1{animation-delay:.04s}.home-row.r2{animation-delay:.1s}.home-copy>:nth-child(1){animation-delay:.16s}.home-copy>:nth-child(2){animation-delay:.21s}.home-copy>:nth-child(3){animation-delay:.26s}.home-row.r3{animation-delay:.3s}.home-row.r4{animation-delay:.34s}.home-cta{animation-delay:.38s}
@media (min-width:900px){.home-copy h1 br{display:none}.home-copy h1{font-size:clamp(40px,4.4vw,64px)}}
@media (max-height:760px){.home-row.r4{display:none}}
@media (max-height:640px){.home-rows.b{display:none}}
@media (max-height:520px){.home-row.r2,.home-flow{display:none}.home-row.r1{--s:clamp(60px,17svh,84px)}.home-copy h1{font-size:clamp(24px,7.5svh,34px)}.home-copy h1 br{display:none}.home-start{min-height:52px}}
