/* Blur squares stay put in the viewport (reference: careers.kk-ems.jp).
   .px-sticky is a fixed, viewport-high stage; the section layer clips it with clip-path
   (overflow does not clip fixed boxes), so squares show only through the light sections
   and are hidden wherever a dark section is on screen.
   Square top = (viewport - size) x (Figma top / (section height - size)), clamped 0..1. */
.av-squares{position:absolute;inset:0;pointer-events:none}
/* One continuous clipped stage spans both adjacent light sections. */
.og-light-region{position:relative;isolation:isolate;background:#f8f8f8}
.og-light-region>.av-squares{z-index:-1}
.og-light-region>.av-section{isolation:auto;background:transparent}
.sw-parallax,.av-squares{clip-path:inset(0)}
.px-sticky{position:fixed;top:0;left:0;width:100%;height:100vh;pointer-events:none}

/* Figma alpha .15 / .05 read as almost nothing on #f8f8f8; raised at the client's request. */
.px-sticky .sw-square-0,.px-sticky .av-square-0{background:rgba(209,186,217,.38)}
.px-sticky .sw-square-2,.px-sticky .av-square-1{background:rgba(125,206,244,.38)}
.px-sticky .sw-square-3,.px-sticky .av-square-2{background:rgba(250,205,137,.38)}
.px-sticky .sw-square-1,.px-sticky .av-square-3{background:rgba(228,0,127,.13)}

.px-sticky .av-square-0{top:calc((100vh - 250rem) * .767)}
.px-sticky .av-square-1{top:calc(100vh - 94rem)}
.px-sticky .av-square-2{top:calc((100vh - 84rem) * .078)}

@media(max-width:900px){
.px-sticky .av-square-0{top:calc((100vh - 76rem) * .979)}
.px-sticky .av-square-1{top:calc((100vh - 90rem) * .763)}
.px-sticky .av-square-2{top:0}
.px-sticky .av-square-3{top:calc((100vh - 79rem) * .234)}
}

/* Section 2 reuses the ADVANTAGE arrangement (same colour -> same place), so the squares
   sit in one position all page long. Its layer fades in from mid-section instead of
   being cut at the FV edge. */
.sw-parallax{-webkit-mask-image:linear-gradient(to bottom,transparent 42%,#000 58%);mask-image:linear-gradient(to bottom,transparent 42%,#000 58%)}
/* Q&A is the last light section with squares; fade them out before its bottom edge
   instead of cutting them at the footer. */
.qa-squares{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 360rem),transparent 100%);mask-image:linear-gradient(to bottom,#000 calc(100% - 360rem),transparent 100%)}
.px-sticky .sw-square-0{left:90.387695rem;width:250rem;height:250rem;top:calc((100vh - 250rem) * .767)}
/* Pink (PC section 2 only in Figma) stays, and ADVANTAGE shows it in the same place too. */
.px-sticky .sw-square-1,.px-sticky .av-square-3{display:block;left:1003.488281rem;width:170rem;height:170rem;top:calc((100vh - 170rem) * .706);filter:blur(20rem)}
.px-sticky .sw-square-2{left:1196rem;width:94rem;height:94rem;top:calc(100vh - 94rem)}
.px-sticky .sw-square-3{left:75rem;width:84rem;height:84rem;top:calc((100vh - 84rem) * .078)}
@media(max-width:900px){
.px-sticky .sw-square-0{left:16rem;width:76rem;height:76rem;top:calc((100vh - 76rem) * .979)}
.px-sticky .sw-square-1,.px-sticky .av-square-3{display:block;left:321rem;width:79rem;height:79rem;top:calc((100vh - 79rem) * .234)}
.px-sticky .sw-square-2{left:276rem;width:90rem;height:90rem;top:calc((100vh - 90rem) * .763)}
.px-sticky .sw-square-3{left:0;width:40rem;height:40rem;top:0}
}

/* 軽量化: 固定(fixed)ステージ＋clip-pathの切り抜きは、iPhoneでスクロールのたびに描き直しが走ってカクつくため、
   セクションの上下へ1画面ぶん伸ばしたトラックの中でstickyにして同じ「画面に固定された四角」を再現し、切り抜きはoverflow:clipにする */
.sw-parallax,.av-squares{clip-path:none;overflow:hidden;overflow:clip}
.px-track{position:absolute;left:0;right:0;top:-100vh;bottom:-100vh;pointer-events:none}
.px-track>.px-sticky{position:sticky;top:0;left:auto}
/* square-bake.js: ぼかしを1回だけ画像に描いて貼る（見た目は同じ、毎フレームのぼかし処理をなくす） */
.sw-square.is-baked,.av-square.is-baked{filter:none!important;background-color:transparent!important}
.is-baked::before{content:"";position:absolute;inset:calc(var(--bake-pad) * -1);background:var(--bake) 0 0/100% 100% no-repeat;pointer-events:none}
