var H=Object.defineProperty;var r=(i,p)=>H(i,"name",{value:p,configurable:!0});(()=>{"use strict";const i=r((t,e=document)=>[...e.querySelectorAll(t)],"$$"),p=matchMedia("(prefers-reduced-motion: reduce)").matches,w=matchMedia("(hover: hover) and (pointer: fine)").matches,h=r(()=>innerHeight,"vh"),f=document.querySelector(".site-header");let y=scrollY,x=!1;const O=r(()=>{const t=scrollY;f&&!document.body.classList.contains("menu-open")&&f.classList.toggle("is-hidden",t>300&&t>y+4),t{x||(x=!0,requestAnimationFrame(O))},{passive:!0}),p){i("[data-count]").forEach(t=>t.textContent=$(t,+t.dataset.count));return}const X=navigator.connection&&navigator.connection.saveData||(navigator.hardwareConcurrency||8)<=4,z=[18,27,36,44].map(t=>{const e=document.createElement("canvas");e.width=e.height=32;const n=e.getContext("2d"),a=n.createRadialGradient(16,16,0,16,16,16);return a.addColorStop(0,`hsla(${t}, 100%, 70%, 1)`),a.addColorStop(1,`hsla(${t}, 100%, 50%, 0)`),n.fillStyle=a,n.fillRect(0,0,32,32),e});i("canvas[data-embers]").forEach(t=>{if(X){t.hidden=!0;return}const e=t.getContext("2d");if(!e)return;const n=matchMedia("(max-width: 760px)").matches,a=(+t.dataset.embers||50)*(n?.5:1);let s=0,o=0,d=[],m=!1,u,q=0;const R=r(()=>{const l=t.getBoundingClientRect();s=l.width,o=l.height,t.width=s,t.height=o},"resize"),Y=r(l=>({x:Math.random()*s,y:l?Math.random()*o:o+10,r:Math.random()*1.8+.4,vy:-(Math.random()*.6+.25),vx:(Math.random()-.5)*.3,life:0,ttl:130+Math.random()*190,sway:Math.random()*Math.PI*2,s:z[Math.random()*4|0],f:.55+Math.random()*.45}),"spawn"),j=r(()=>Math.round(a*Math.min(1,s*o/(1400*800))+a*.3),"count"),I=r(l=>{if(u=requestAnimationFrame(I),l-q<32)return;q=l,e.clearRect(0,0,s,o),e.globalCompositeOperation="lighter";const T=j();for(;d.length=1||c.y<-10)&&Object.assign(c,Y(!1))}e.globalAlpha=1},"tick");R(),addEventListener("resize",R);const D=r(()=>{m||(m=!0,u=requestAnimationFrame(I))},"start"),P=r(()=>{m=!1,cancelAnimationFrame(u)},"stop");new IntersectionObserver(([l])=>{l.isIntersecting&&!document.hidden?D():P()}).observe(t),document.addEventListener("visibilitychange",()=>{document.hidden&&P()})}),i(".split").forEach(t=>{const e=t.innerHTML.split(//i);t.innerHTML=e.map((n,a)=>`${n.trim()}`).join("")}),i([".sec-head > div > .eyebrow",".sec-head .lead",".svc li",".collab article",".timeline li",".office",".contact-card",".profile tr",".pay tbody tr",".biz-section .intro h2",".biz-section .intro p",".page-head p",".dish",".values article",".ledger > div"].join(",")).forEach(t=>t.classList.add("rv")),i(".biz-section .intro figure, .collab figure").forEach(t=>t.classList.add("rv","rv-img"));const C=r(t=>{const e=new Map;i(".rv, .dish",t).forEach(n=>{const a=n.parentElement;e.has(a)||e.set(a,[]),e.get(a).push(n)}),e.forEach(n=>n.forEach((a,s)=>a.style.setProperty("--i",s%8)))},"stagger");C(document);const A=new IntersectionObserver(t=>t.forEach(e=>{if(!e.isIntersecting)return;const n=e.target;n.classList.remove("pre"),n.classList.add("on"),n.querySelectorAll("[data-count]").forEach(L),n.matches("[data-count]")&&L(n),A.unobserve(n)}),{rootMargin:"0px 0px 15% 0px",threshold:0}),E=r((t=document)=>{i(".rv:not(.armed), .split:not(.armed), .dish:not(.armed), .phone.play:not(.armed), .sales.play:not(.armed), .ledger:not(.armed), .recruit .facts:not(.armed)",t).forEach(e=>{e.classList.add("armed"),e.getBoundingClientRect().top>h()*.92&&e.classList.add("pre"),A.observe(e)})},"arm");E(),new MutationObserver(t=>{let e=!1;t.forEach(n=>n.addedNodes.forEach(a=>{a.nodeType===1&&a.classList.contains("store")&&(a.classList.add("rv"),S(a),e=!0)})),e&&(C(document),E())}).observe(document.body,{childList:!0,subtree:!0}),i(".store").forEach(t=>t.classList.add("rv")),E();function $(t,e){const n=+t.dataset.dec||0;return t.hasAttribute("data-plain")?String(Math.round(e)):e.toLocaleString((document.documentElement.lang||"ja")+"-u-nu-latn",{minimumFractionDigits:n,maximumFractionDigits:n})}r($,"format");function L(t){if(t.dataset.done)return;t.dataset.done="1";const e=+t.dataset.count,n=t.hasAttribute("data-plain")?Math.round(e*.97):0,a=1800,s=performance.now(),o=r(d=>{const m=Math.min(1,(d-s)/a),u=1-Math.pow(1-m,4);t.textContent=$(t,n+(e-n)*u),m<1&&requestAnimationFrame(o)},"step");requestAnimationFrame(o)}r(L,"countUp"),setTimeout(()=>i(".hero [data-count]").forEach(L),parseInt(getComputedStyle(document.documentElement).getPropertyValue("--start"))+900||900);const k=i("[data-parallax]"),M=document.querySelector("[data-scroll-fade]"),b=document.querySelector(".timeline");function F(){for(const t of k){const e=t.parentElement.getBoundingClientRect();if(e.bottom<0||e.top>h())continue;const n=+t.dataset.parallax,a=e.top+e.height/2-h()/2;t.style.transform=`translate3d(0, ${(-a*n).toFixed(1)}px, 0)`}if(M){const t=scrollY,e=Math.min(1,t/(h()*.8));M.style.transform=`translate3d(0, ${t*.25}px, 0)`,M.style.opacity=String(1-e*.9)}if(b){const t=b.getBoundingClientRect(),e=Math.max(0,Math.min(1,(h()*.8-t.top)/t.height));b.style.setProperty("--tl",e.toFixed(3))}}r(F,"scrollEffects"),F();function g(t){let e=null,n=0;const a=r(s=>{e=s,n||(n=requestAnimationFrame(()=>{n=0,t(e)}))},"h");return a.cancel=()=>{cancelAnimationFrame(n),n=0},a}if(r(g,"perFrame"),w){const t=document.querySelector("[data-mouse-parallax]");t&&t.closest(".hero, .r-hero").addEventListener("pointermove",g(e=>{const n=e.clientX/innerWidth-.5,a=e.clientY/innerHeight-.5;t.style.transform=`translate3d(${n*-22}px, ${a*-14}px, 0) scale(1.03)`}),{passive:!0}),i("[data-magnetic]").forEach(e=>{e.addEventListener("pointermove",g(n=>{const a=e.getBoundingClientRect();e.style.transform=`translate(${(n.clientX-a.left-a.width/2)*.18}px, ${(n.clientY-a.top-a.height/2)*.3}px)`}),{passive:!0}),e.addEventListener("pointerleave",()=>{e.style.transform=""})}),i(".biz").forEach(e=>e.addEventListener("pointermove",g(n=>{const a=e.getBoundingClientRect();e.style.setProperty("--mx",`${n.clientX-a.left}px`),e.style.setProperty("--my",`${n.clientY-a.top}px`)}),{passive:!0})),i(".store, .tilt").forEach(S)}function S(t){if(!w||t.dataset.tilt)return;t.dataset.tilt="1";const e=g(n=>{const a=t.getBoundingClientRect(),s=(n.clientX-a.left)/a.width-.5,o=(n.clientY-a.top)/a.height-.5;t.style.transform=`perspective(900px) rotateX(${(-o*6).toFixed(2)}deg) rotateY(${(s*8).toFixed(2)}deg) translateY(-4px)`});t.addEventListener("pointermove",e,{passive:!0}),t.addEventListener("pointerleave",()=>{e.cancel(),t.style.transform=""})}r(S,"bindTilt"),i("[data-drag]").forEach(t=>{let e=!1,n=0,a=0,s=!1;t.addEventListener("pointerdown",o=>{o.pointerType==="mouse"&&(e=!0,s=!1,n=o.clientX,a=t.scrollLeft)}),addEventListener("pointermove",o=>{if(!e)return;const d=o.clientX-n;Math.abs(d)>4&&(s=!0,t.classList.add("dragging")),t.scrollLeft=a-d}),addEventListener("pointerup",()=>{e=!1,t.classList.remove("dragging")}),t.addEventListener("click",o=>{s&&(o.preventDefault(),o.stopPropagation())},!0)})})();