/* fx-app-v2.css — 11/18 版(v1 + 磁石・弾け・読み込み→成功の輪・カードの扇/傾き)。IG Mate 会員画面の動きと質感の層。html.fx のときだけ効く(JS が切るか reduced-motion なら本番の姿のまま)。文・色の系統・並びは変えない */
#fx-open{display:none}
html.fx-open #fx-open{display:flex;position:fixed;inset:0;z-index:2147483000;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:#fbf8f5;animation:fx-o-bg 2.35s linear both;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#fx-open.fx-o-out{animation:fx-o-out .2s ease-out both!important}
.fx-o-mark{display:block;width:76px;height:76px;border-radius:19px;overflow:hidden;position:relative;opacity:0;transform:scale(.84);animation:fx-o-mark .62s cubic-bezier(.2,.9,.25,1.12) .08s both;box-shadow:0 10px 30px -10px rgba(193,53,132,.55)}
.fx-o-mark img{display:block;width:100%;height:100%}
.fx-o-mark::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.75) 48%,transparent 66%);transform:translateX(-120%);animation:fx-o-sweep .75s ease-out .55s both}
.fx-o-hy{position:relative;display:block;width:104px;height:104px;opacity:0;transform:translateY(12px) scale(.94);animation:fx-o-hy .6s cubic-bezier(.2,.8,.25,1) .5s both}
.fx-o-hy img{position:relative;display:block;width:100%;height:100%;border-radius:50%}
.fx-o-hy i{position:absolute;inset:-9px;border-radius:50%;background:conic-gradient(from 0deg,#833ab4,#e1306c,#f77737,#fcaf45,#833ab4);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));opacity:0;animation:fx-o-ring 1.5s ease-in-out .7s both}
@keyframes fx-o-bg{0%,80%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
@keyframes fx-o-mark{to{opacity:1;transform:scale(1)}}
@keyframes fx-o-sweep{to{transform:translateX(130%)}}
@keyframes fx-o-hy{to{opacity:1;transform:none}}
@keyframes fx-o-ring{0%{opacity:0;transform:rotate(-90deg) scale(.9)}35%{opacity:.95}100%{opacity:.0;transform:rotate(200deg) scale(1.12)}}
@keyframes fx-o-out{to{opacity:0;visibility:hidden}}

/* (a) 押した時の手触り: 沈む(CSS・遅れ 0)+ さざ波(JS) */
:where(html.fx) :where(button,a[href],[role="button"],summary):where(:not(:disabled,[aria-disabled="true"],[data-fx="off"])):active{transform:scale(.972);transition:transform 70ms ease-out} /* 沈むのは 元から在る物(.btn-*・.chip 等)はそのまま・無い所へだけ足す(優先度 0) */
:where(html.fx) :where(button,a[href],[role="button"],summary){transition:transform .2s cubic-bezier(.22,1,.36,1)}
.fx-rp{position:fixed;z-index:2147482000;overflow:hidden;pointer-events:none;contain:strict}
.fx-rp b{position:absolute;display:block;border-radius:50%;background:radial-gradient(circle,rgba(193,53,132,.30) 0,rgba(193,53,132,.14) 38%,rgba(193,53,132,0) 66%);will-change:transform,opacity}
.fx-rp u{position:absolute;top:0;bottom:0;left:0;width:55%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.5) 50%,transparent);transform:translateX(-110%);will-change:transform}
.fx-rp.hi b{background:radial-gradient(circle,rgba(255,255,255,.55) 0,rgba(255,255,255,.22) 40%,rgba(255,255,255,0) 66%)}

/* (b) 出来た瞬間(1〜1.4 秒) */
.fx-m{position:fixed;z-index:2147481000;pointer-events:none;contain:layout style}
.fx-m i{position:absolute;inset:0;display:block;border-radius:inherit}
.fx-m .b{background:radial-gradient(ellipse 48% 56% at var(--x,50%) var(--y,50%),rgba(252,175,69,.6) 0,rgba(225,48,108,.26) 42%,rgba(131,58,180,0) 100%);opacity:0}
.fx-m .e{padding:2px;background:conic-gradient(from var(--a,0deg),rgba(252,175,69,0) 0 55%,#fcaf45 78%,#fff3d0 88%,#fcaf45 94%,rgba(252,175,69,0) 100%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);opacity:0}
.fx-m .s{position:absolute;left:var(--x,50%);top:var(--y,50%);width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;display:grid;place-items:center;opacity:0;background:radial-gradient(circle at 35% 30%,#fff7df,#fcaf45 55%,#e1306c 130%);box-shadow:0 0 0 0 rgba(252,175,69,.6),0 8px 22px -6px rgba(225,48,108,.6)}
.fx-m .s svg{width:26px;height:26px;overflow:visible}
.fx-m .s path{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30}
.fx-m.go .b{animation:fx-m-b 1.15s ease-out both}
.fx-m.go .e{animation:fx-m-e 1.25s cubic-bezier(.3,.6,.3,1) both}
.fx-m.go .s{animation:fx-m-s 1.3s cubic-bezier(.2,.9,.25,1.15) both}
.fx-m.go .s path{animation:fx-m-p .42s ease-out .22s both}
@keyframes fx-m-b{0%{opacity:0;transform:scale(.55)}22%{opacity:1}100%{opacity:0;transform:scale(1.18)}}
@keyframes fx-m-e{0%{opacity:0;--a:0deg}12%{opacity:1}85%{opacity:1}100%{opacity:0;--a:300deg}}
@keyframes fx-m-s{0%{opacity:0;transform:scale(.4)}22%{opacity:1;transform:scale(1.1)}38%{transform:scale(1)}72%{opacity:1;box-shadow:0 0 0 14px rgba(252,175,69,0),0 8px 22px -6px rgba(225,48,108,.6)}100%{opacity:0;transform:scale(1.04);box-shadow:0 0 0 20px rgba(252,175,69,0)}}
@keyframes fx-m-p{to{stroke-dashoffset:0}}
@property --a{syntax:"<angle>";inherits:false;initial-value:0deg}

/* (d) AI ハヤテの存在感: 絵の周りの光が息をする。待っている間= 上の顔だけ ごく遅く・考えている間= 考え中の列の顔が少し速く強く。ほかの顔(吹き出しの横)は動かさない */
html.fx img[src*="hayate-profile"][width="38"],html.fx img[src*="hayate-profile"]:has(+ span){border-radius:50%;animation:fx-breath 5.2s ease-in-out infinite}
html.fx img[src*="hayate-profile"]:has(+ span){animation-duration:1.7s;--fx-g:.62}
html.fx img[src*="hayate-profile"].fx-off{animation-play-state:paused}
html.fx.fx-still img[src*="hayate-profile"]{animation:none}
@keyframes fx-breath{0%,100%{box-shadow:0 0 0 0 rgba(252,175,69,0),0 0 7px 0 rgba(225,48,108,calc(.16*var(--fx-g,1)))}50%{box-shadow:0 0 0 3px rgba(252,175,69,calc(.16*var(--fx-g,1))),0 0 17px 4px rgba(225,48,108,calc(.34*var(--fx-g,1)))}}
/* 下の真ん中のハヤテ(どの画面にも在る): 待っている間は ごく遅く・考えている間は少し速く 光が息をする(輪の外側の光だけ・絵は動かさない) */
html.fx button[aria-label="AIハヤテ"]>span:first-child{animation:fx-breath-tab 5.2s ease-in-out infinite}
html.fx body:has(img[src*="hayate-profile"]:has(+ span)) button[aria-label="AIハヤテ"]>span:first-child{animation-duration:1.7s;--fx-g:1.5}
html.fx.fx-still button[aria-label="AIハヤテ"]>span:first-child{animation:none}
@keyframes fx-breath-tab{0%,100%{box-shadow:0 10px 24px -10px rgba(193,53,132,.4),0 0 0 0 rgba(252,175,69,0)}50%{box-shadow:0 10px 24px -10px rgba(193,53,132,.5),0 0 0 4px rgba(252,175,69,calc(.18*var(--fx-g,1))),0 0 20px 4px rgba(225,48,108,calc(.3*var(--fx-g,1)))}}

/* (e) 大事なカード 2 種類だけ: ハヤテが差し出すカード・承認の 1 件ずつのカードに ガラス+金属の縁(色の系統は今のまま・指で光が付いてくる) */
html.fx :is([class*="rounded-2xl"][class*="bg-[color:var(--gold-dim)]"],li[data-testid="week1-item"]){position:relative;isolation:isolate;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 26px -14px rgba(120,40,90,.28);background-image:linear-gradient(160deg,rgba(255,255,255,.55),rgba(255,255,255,.08) 46%,rgba(255,255,255,.28))}
html.fx :is([class*="rounded-2xl"][class*="bg-[color:var(--gold-dim)]"],li[data-testid="week1-item"])::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;background:linear-gradient(135deg,rgba(255,243,208,.95),rgba(252,175,69,.35) 28%,rgba(131,58,180,.22) 60%,rgba(255,243,208,.85));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);z-index:1}
html.fx :is([class*="rounded-2xl"][class*="bg-[color:var(--gold-dim)]"],li[data-testid="week1-item"])::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(150px circle at var(--fx-lx,30%) var(--fx-ly,0%),rgba(255,255,255,.55),rgba(255,255,255,0) 70%);opacity:var(--fx-lo,.55);transition:opacity .25s;z-index:1}

/* 切る・止める */
@media (prefers-reduced-motion:reduce){html.fx #fx-open,.fx-rp,.fx-m{display:none!important}html.fx img[src*="hayate-profile"],html.fx button[aria-label="AIハヤテ"]>span:first-child{animation:none!important}}

/* (f) いいねの弾け */
.fx-bx{position:fixed;inset:0;z-index:2147481500;pointer-events:none;contain:strict;overflow:hidden}
.fx-bx i{position:absolute;display:block;border-radius:50%;will-change:transform,opacity}
.fx-bx i.st{border-radius:0;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);transform:scale(1.6)}

/* (g) 読み込み → 成功の輪 */
.fx-ld{position:fixed;z-index:2147481200;pointer-events:none;contain:layout style}
.fx-ld i{position:absolute;inset:0;display:block;border-radius:inherit;padding:2px;background:conic-gradient(from 0deg,rgba(252,175,69,0) 0 35%,#e1306c 62%,#fcaf45 86%,#fff3d0 96%,rgba(252,175,69,0) 100%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:fx-ld-spin .85s linear infinite}
.fx-ld.ok i{background:conic-gradient(#fcaf45,#fff3d0,#fcaf45,#e1306c,#fcaf45);animation:fx-ld-ok .6s cubic-bezier(.2,.8,.25,1) both}
.fx-ld.no i{animation:fx-ld-no .35s ease-out both}
@keyframes fx-ld-spin{to{transform:rotate(360deg)}}
@keyframes fx-ld-ok{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.22)}}
@keyframes fx-ld-no{to{opacity:0}}

/* (i) カードの扇(入る時に 1 枚ずつ扇のように開く・終わったら元の姿)。fill は backwards だけ= 終わった後は何も残さない */
html.fx li[data-testid="week1-item"]{animation:fx-fan .62s cubic-bezier(.2,.9,.25,1) backwards;animation-delay:calc(var(--fx-i,0)*85ms);transform-origin:50% 0}
html.fx li[data-testid="week1-item"]:nth-child(2){--fx-i:1}html.fx li[data-testid="week1-item"]:nth-child(3){--fx-i:2}html.fx li[data-testid="week1-item"]:nth-child(4){--fx-i:3}html.fx li[data-testid="week1-item"]:nth-child(n+5){--fx-i:4}
html.fx :is([class*="rounded-2xl"][class*="bg-[color:var(--gold-dim)]"]){animation:fx-rise .6s cubic-bezier(.2,.9,.25,1) backwards}
@keyframes fx-fan{from{opacity:0;transform:translateY(22px) rotate(-1.6deg) scale(.965)}}
@keyframes fx-rise{from{opacity:0;transform:translateY(16px) scale(.975)}}
@media (prefers-reduced-motion:reduce){.fx-bx,.fx-ld{display:none!important}html.fx li[data-testid="week1-item"],html.fx [class*="rounded-2xl"]{animation:none!important}}
