/*
  Appfolio Bubbleブラシ配布LP(第2弾)｜LP本体の見た目
  設計＝LPデザイン設計書 案A v3 §1・§3-5(A-2)・§3-6(A-3)・§4・§5／Figma v3.1「A-2 LP本体(余白詰め)」(段の上の端から見出しまで56)
  座標は幅390の時の値。列の幅が変わる時は、絵は縦横の比を保って縮む
  書体＝Hiragino Kaku Gothic Std W8 はWebで配らない(契約が決まっていない)。入っていない端末ではヒラギノ角ゴ・OSの書体で出る
  パスワード画面の見た目は src/base-css.js(同じ色の値)
*/
:root{color-scheme:dark;
  --bg:#111114;--face:#1C1C21;--line:#2C2C33;--inline:#3A3A44;
  --head:#F5F5F7;--body:#A1A1A6;--step:#E5E5EA;--band:#C7C7CC;--link:#7C8CFF;--err:#FF8A8A;
  --f-head:"Hiragino Kaku Gothic StdN","Hiragino Kaku Gothic Std","Hiragino Sans","Noto Sans JP",-apple-system,BlinkMacSystemFont,sans-serif;
  --f-body:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif;
  --f-latin:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  --colw:100vw}
html[lang=en]{--f-head:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{background:var(--bg);color:var(--head);overflow-x:hidden;overflow-x:clip}
body{font-family:var(--f-body);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
img,video{display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- 広い画面(481以上)＝列を幅390で中央に置き、左右はKVをぼかした絵(v2 §0-7・§3-9) ---- */
.backdrop{display:none}
.col{position:relative;width:100%;margin:0 auto;background:var(--bg);container-type:inline-size;overflow:hidden}
@media (min-width:481px){
  :root{--colw:390px}
  .backdrop{display:block;position:fixed;inset:0;background:#111114 url(/gate-assets/backdrop.webp) center/cover no-repeat;transform:scale(1.1)}
  .backdrop::after{content:"";position:absolute;inset:0;background:rgba(17,17,20,.7)}
  .col{width:390px;overflow:visible;box-shadow:1px 0 0 rgba(255,255,255,.06),-1px 0 0 rgba(255,255,255,.06)}
}

/* ---- 光(§1-1・中心は195,225) ---- */
.light{position:absolute;pointer-events:none;border-radius:50%;filter:blur(30px);
  left:-26.92cqw;top:-32.56cqw;width:153.85cqw;height:153.85cqw;
  background:radial-gradient(circle closest-side,rgba(123,107,255,.85) 0%,rgba(83,64,224,.5) 35%,rgba(42,31,128,.18) 70%,rgba(17,17,20,0) 100%)}

/* ---- ヘッダー ---- */
.hd{position:relative;z-index:5;height:52px;display:flex;align-items:center;padding:0 24px}
.hd .icon{width:28px;height:28px;border-radius:6px}
.hd .brand{margin-left:8px;font-family:var(--f-latin);font-weight:600;font-size:17px;line-height:22px}
.lang{margin-left:auto;display:flex;align-items:center;justify-content:center;height:32px;width:76px;border-radius:999px;background:var(--face);border:1px solid var(--line);font-family:var(--f-latin);font-weight:600;font-size:13px}
.lang button{background:none;border:0;color:#8A8A92;height:44px;min-width:30px;cursor:pointer;font-weight:600;-webkit-tap-highlight-color:transparent}
.lang button[aria-pressed=true]{color:var(--head)}
.lang i{width:1px;height:12px;background:#5A5A63;display:block}

/* ---- 文字 ---- */
.h-big{font-family:var(--f-head);font-weight:800;font-size:30px;line-height:40px;text-align:center}
.h-sec{font-family:var(--f-head);font-weight:800;font-size:26px;line-height:36px;text-align:center}
html[lang=en] .h-big,html[lang=en] .h-sec{letter-spacing:-.02em}
.txt{font-size:15px;line-height:24px;color:var(--body);text-align:center}
.small{font-size:13px;line-height:20px;color:var(--body);text-align:center}

/* ---- ボタン ---- */
.pill{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:56px;border-radius:999px;border:0;font-weight:700;font-size:17px;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s}
.pill:active{transform:scale(.98)}
.pill.main{background:#F5F5F7;color:#111114}
.pill.sub{background:#2C2C2E;color:var(--head);border:1px solid var(--inline);position:relative}
.pill.sub .ic{position:absolute;left:20px;top:13px;width:28px;height:28px;border-radius:6px}
.pill.off{background:#2A2A31;color:#A1A1A6;border:1px solid var(--inline);cursor:default}
.pill.off:active{transform:none}
.pill .arrow{width:20px;height:20px;flex:none}
.pill.off .arrow{display:none}
.badge{display:block;width:120px;height:41px;margin:0 auto}
.badge img{width:120px;height:41px}

/* ---- 段1 1画面目(y0・高さ676) ---- */
.s1{position:relative;padding-bottom:37px}
.kv{position:relative;width:100%;aspect-ratio:1092/960;overflow:hidden;
  background:url("data:image/webp;base64,UklGRnwAAABXRUJQVlA4IHAAAACwBACdASoYABUAPrlMnkunJKMht+gA4BcJZQDI1C23ypGjoEskqfxj4jKagPaAAP7xb4i/EAsKa0dJoya9LpRUrSXVg+HR9GGQ1xDyWXNLR1pe3Hmw4RBDIWFwVYIPr5fnbnslwJM72vti5JnfAAAA") center/cover no-repeat}
.kv.ready{background:none}
.kv>*{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;user-select:none;-webkit-user-select:none}
.kv .lay{object-fit:cover}
.kv .bl-r{background:radial-gradient(50% 50% at 50% 52%,rgba(17,17,20,0) 0%,rgba(17,17,20,0) 55%,#111114 100%)}
.kv .bl-t{height:14%;background:linear-gradient(#111114,rgba(17,17,20,0))}
.kv .bl-b{top:auto;bottom:0;height:23.3%;background:linear-gradient(rgba(17,17,20,0),#111114)}
/* 案4 falの動画。地は#111114に替えてあり、lightenで重ねるので光・飾りの泡は動画の後ろでも見える */
.kv video{height:auto;aspect-ratio:1170/1032;mix-blend-mode:lighten;display:none;object-fit:fill}
.kv.motion video{display:block}
.kv.motion .k-text,.kv.motion .k-icon,.kv.motion .k-brush{opacity:0}
.kv.finish video{display:block;opacity:0;transition:opacity .2s ease-out}
.kv.finish .k-icon{animation:rise 1.2s cubic-bezier(.22,1,.36,1) both}
.kv.finish .k-brush{animation:rise 1.2s cubic-bezier(.22,1,.36,1) .3s both}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.s1 .catch{margin:16px 24px 0}
.s1 .sub{margin:8px 24px 0}
.s1 .dlwrap{margin:24px 24px 0}
.s1 .after-next{margin:4px 24px 0;text-align:center}
.s1 .after-next a{display:inline-flex;align-items:center;justify-content:center;height:44px;min-width:200px;font-weight:600;font-size:15px;color:var(--link)}
.s1 .note{margin:12px 24px 0}

/* ---- 段2〜段6 共通＝段の上の端から見出しまで56(v3.1) ---- */
.sec{position:relative;padding-top:56px}
.sec .h-sec{margin:0 24px}

/* 段2 2種類のブラシ */
.brushes{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 24px 0}
.brushes img{width:100%;height:auto;aspect-ratio:163/172;border-radius:16px;object-fit:cover;background:var(--face)}
.brushes h3{margin-top:16px;font-family:var(--f-latin);font-weight:700;font-size:20px;line-height:26px;text-align:center}
.brushes p{margin-top:4px;font-size:14px;line-height:22px;color:var(--body);text-align:center}

/* 段3 こんな作品が作れます */
.works1{margin-top:24px;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;background:#0D0B32}
.works2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 24px 0}
.works2 img{width:100%;height:auto;aspect-ratio:163/204;border-radius:16px;object-fit:cover;background:#0D0B32}
.s3 .dlwrap{margin:32px 24px 0}

/* 段4 ブラシの設定方法 */
.steps{list-style:none;margin:24px 24px 0}
.steps li{display:flex;gap:8px;font-size:15px;line-height:24px;color:var(--step)}
.steps li+li{margin-top:16px}
.steps b{flex:none;width:24px;font-family:var(--f-latin);font-weight:700;color:var(--link)}

/* 段5 使い方はAppfolioで */
.s5 .appicon{width:64px;height:64px;border-radius:14px;margin:0 auto}
.s5 .h-sec{margin-top:24px}
.s5 .txt{margin:8px 24px 0}
.s5 .howto{margin:24px 24px 0}
.s5 .badge{margin-top:16px}
.s5 .small{margin:8px 24px 0}

/* 段6 フッター */
.s6 .rule{height:1px;background:var(--line);margin:0 24px}
.s6 .small{margin:24px 24px 0;padding-bottom:48px}

/* ---- 段に入る時＝下から16px上がりながら出る(0.6秒) ---- */
.js .rv{opacity:0;transform:translateY(16px);transition:opacity .6s ease-out,transform .6s ease-out}
.js .rv.in{opacity:1;transform:none}

/* ---- 背景の泡＝左右の端だけを上がる(§4-2) ---- */
.bgb{position:fixed;top:0;bottom:0;left:50%;width:var(--colw);transform:translateX(-50%);pointer-events:none;z-index:1;opacity:0;transition:opacity 1s}
.bgb.on{opacity:1}
.bgb span{position:absolute;bottom:-24px;animation:up var(--d) linear var(--dl) infinite}
.bgb span i{display:block;width:var(--s);height:var(--s);border-radius:50%;border:1px solid rgba(255,255,255,.12);animation:sway 6s ease-in-out infinite alternate}
@keyframes up{from{transform:translateY(0)}to{transform:translateY(calc(-100vh - 48px))}}
@keyframes sway{from{transform:translateX(-4px)}to{transform:translateX(4px)}}

/* ---- DL直後(A-3)＝下から出るシート ---- */
.veil{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.55);opacity:0;transition:opacity .35s}
.sheet{position:fixed;z-index:21;bottom:0;left:50%;width:var(--colw);transform:translate(-50%,100%);transition:transform .35s cubic-bezier(.22,1,.36,1);
  background:var(--face);border-radius:20px 20px 0 0;padding:12px 24px calc(24px + env(safe-area-inset-bottom));max-height:92vh;overflow:auto}
.veil.on{opacity:1}
.sheet.on{transform:translate(-50%,0)}
.sheet .grip{width:48px;height:5px;border-radius:999px;background:var(--inline);margin:0 auto}
.sheet .done{display:flex;align-items:center;gap:8px;margin-top:24px}
.sheet .done .ok{flex:none;width:24px;height:24px;border-radius:50%;background:rgba(124,140,255,.15);display:flex;align-items:center;justify-content:center}
.sheet .done p{font-family:var(--f-head);font-weight:800;font-size:15px;line-height:22px}
.sheet .steps{margin:24px 0 0}
.sheet .steps li{font-size:17px;font-weight:500}
.sheet .steps b{font-size:17px}
.sheet .howto{margin-top:32px}
.sheet .badge{margin-top:16px}
.sheet .iphone{margin-top:32px;text-align:center}
.sheet .iphone h3{font-family:var(--f-head);font-weight:800;font-size:15px;line-height:22px}
.sheet .iphone p{margin-top:4px}
.sheet .close{display:block;margin:16px auto 0;height:44px;min-width:120px;background:none;border:0;color:var(--link);font-size:15px;cursor:pointer}
.is-ipad .sheet .iphone{display:none}
.is-ipad .sheet .close{margin-top:32px}

@media (prefers-reduced-motion:reduce){
  .js .rv{opacity:1;transform:none;transition:none}
  .bgb{display:none}
  .sheet,.veil{transition:none}
}
.sheet .close:focus:not(:focus-visible){outline:none}

/* ---- アプリ内ブラウザ(LPの1画面目の1行と、入力を開いた時の帯) ---- */
.s1 .inapp-note{margin:12px 24px 0;font-size:13px;line-height:20px;color:var(--band);text-align:center}
.band{border-radius:16px;background:var(--face);border:1px solid var(--inline);padding:11px 16px 9px;margin-bottom:16px}
.band .row{display:flex;align-items:center;gap:8px;min-height:44px}
.band .t{flex:1;font-family:var(--f-head);font-weight:800;font-size:15px;line-height:22px}
.band .x{font-size:14px;line-height:20px;color:var(--band);margin-top:8px}
.band .copy{flex:none;width:116px;height:44px;font-size:14px}
.pill.next{background:#2A2A31;color:var(--head);border:1px solid var(--inline)}

/* ---- DLの所のパスワード入力＝案2「ボタンがその場で入力欄に変わる」(設計書 §3 案2) ----
   座標はBをボタンの上の端として＝入力欄 B・送る丸 右から6・上から6・案内 B+64・手順 B+96・Instagramを開く B+160 */
.pw2{animation:pw2in .25s ease-out both}
@keyframes pw2in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pw2-form{position:relative}
.pw2-inp{display:block;width:100%;height:56px;border-radius:999px;background:var(--face);border:1px solid #7C8CFF;padding:0 60px 0 24px;
  font:inherit;font-size:17px;color:var(--head);outline:none;-webkit-appearance:none;appearance:none;text-align:left}
.pw2-inp::placeholder{color:#8E8E93}
.pw2.err .pw2-inp{border:2px solid var(--err);padding-left:23px}
.pw2-go{position:absolute;right:6px;top:6px;width:44px;height:44px;border-radius:50%;border:0;background:#F5F5F7;color:#111114;
  display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pw2-go svg{width:20px;height:20px}
.pw2-go .i-retry,.pw2-go .i-spin{display:none}
.pw2.net .pw2-go .i-arrow{display:none}
.pw2.net .pw2-go .i-retry{display:block}
.pw2.checking .pw2-go{background:#D1D1D6;cursor:default}
.pw2.checking .pw2-go .i-arrow,.pw2.checking .pw2-go .i-retry{display:none}
.pw2.checking .pw2-go .i-spin{display:block;width:18px;height:18px;border-radius:50%;border:2px solid #111114;border-right-color:transparent;animation:spin .8s linear infinite}
.pw2.empty .pw2-go{background:#2A2A31;color:#8E8E93}
.pw2.closed .pw2-go{background:#2A2A31;color:#A1A1A6;cursor:default}
@keyframes spin{to{transform:rotate(360deg)}}
.pw2-msg{margin-top:8px;min-height:20px;font-size:13px;line-height:20px;color:var(--body);text-align:center}
.pw2.err .pw2-msg,.pw2.net .pw2-msg,.pw2.closed .pw2-msg{color:var(--err)}
.pw2-nopw{margin-top:12px;text-align:center}
.pw2-steps{list-style:none;font-size:13px;line-height:20px;color:var(--body)}
.pw2-steps b{display:inline-block;min-width:16px;margin-right:4px;font-family:var(--f-latin);font-weight:700;color:var(--link)}
.pw2-insta{display:inline-flex;align-items:center;justify-content:center;height:44px;min-width:200px;margin-top:4px;font-weight:600;font-size:15px;color:var(--link)}
.pw2.miss3 .pw2-nopw{margin:16px 0 0;padding:8px 8px 0;border:1px solid var(--inline);border-radius:16px;background:var(--face)}
.pill.dl.done .arrow{display:none}
@media (prefers-reduced-motion:reduce){.pw2{animation:none}.pw2.checking .pw2-go .i-spin{animation:none}}
