/* Only the revised visual regions; base typography and section geometry stay intact. */
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.carousel-controls button { width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; }
.carousel-controls [data-carousel-count] { min-width: 3.5em; text-align: center; font-size: 14px; }
[data-carousel-controls][hidden] { display: none; }
.bento-gallery:not([data-initialized]) .bento-gallery__autoplay { display: none; }
.hero-carousel { position: absolute; inset: 0; pointer-events: none; }
.hero__copy { pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero-carousel [data-carousel-frame] { position: absolute; inset: 0 0 auto; height: 810px; }
.hero-carousel .carousel-controls { position: absolute; top: calc(1040px + max(0px, calc(50rem - 800px))); left: calc(50% - 220px); z-index: 5; pointer-events: auto; }
.hero-slide { position: absolute; inset: 0; }
.hero-slot { position: absolute; pointer-events: auto; margin: 0; }
.hero-slot--primary { top: 345px; left: calc(50% - 465px); width: 520px; aspect-ratio: 1040 / 984; }
.hero-slot--secondary { top: 168px; left: calc(50% + 83px); width: 530px; aspect-ratio: 1044 / 728; }
.hero-slot--lower { top: 568px; left: calc(50% + 66px); width: 470px; aspect-ratio: 469.16 / 468.1; }
.hero-slot .parallax-layer, .hero-slot picture { display: block; width: 100%; height: 100%; }
.hero-slot img { width: 100%; height: 100%; object-fit: cover; }
.hero-slot--primary picture { -webkit-mask: url('../images/revision-0930/image02-mask.png') center / 100% 100% no-repeat; mask: url('../images/revision-0930/image02-mask.png') center / 100% 100% no-repeat; }
.hero-slot--secondary picture { -webkit-mask: url('../images/revision-0930/image01-mask.png') center / 100% 100% no-repeat; mask: url('../images/revision-0930/image01-mask.png') center / 100% 100% no-repeat; }
.hero-slot--lower picture { -webkit-mask: url('../images/yuho.svg') center / 100% 100% no-repeat; mask: url('../images/yuho.svg') center / 100% 100% no-repeat; }
.hero-color img { object-fit: fill; }
.hero-color.hero-slot--secondary img { position: absolute; left: 50%; top: 50%; width: 69.73%; height: 143.41%; max-width: none; transform: translate(-50%, -50%) rotate(-90deg); }
.carousel-frame { position: relative; }
.carousel-frame > .carousel-slide:not(:first-child) { position: absolute; inset: 0; }
.carousel-slide { position: relative; transition: opacity var(--carousel-fade, 600ms) ease; }
.hero-slide.carousel-slide { position: absolute; }
.carousel-slide[hidden] { display: none; }
.carousel-slide.is-entering { opacity: 0; }
.work-carousel__images { aspect-ratio: 1027 / 716; }
.work-carousel__images .carousel-slide, .work-carousel__images .parallax-layer, .work-carousel__images picture { width: 100%; height: 100%; }
.work-carousel__images picture { display: block; -webkit-mask: url('../images/revision-0930/image03-mask.png') center / 100% 100% no-repeat; mask: url('../images/revision-0930/image03-mask.png') center / 100% 100% no-repeat; }
.work-carousel__images img { width: 100%; height: 100%; object-fit: cover; }
.work-carousel .carousel-controls { position: absolute; top: calc(100% + 20px); width: 100%; z-index: 4; }
.bento-gallery__main .carousel-frame, .bento-gallery__main .carousel-slide, .bento-gallery__main picture { display: block; width: 100%; height: 100%; }
.bento-gallery__main img { transition: none; }
.bento-gallery__autoplay, .bento-gallery .gallery-arrow { width: 44px; height: 44px; }
.bento-gallery__count { position: absolute; right: 64px; bottom: 17px; z-index: 3; color: white; background: rgb(35 30 27 / 86%); padding: 1px 8px; border-radius: 12px; font-size: 14px; }
.bento-gallery__thumbs { min-width: 0; }
.bento-gallery__thumb picture { display: block; width: 100%; height: 100%; }
.recruit__staff--revised { top: auto; bottom: 50px; width: min(1175px, calc(100vw - 32px)); }
.recruit__staff--revised picture { display: block; }
.facility-card__image-frame picture { display: block; height: 100%; }
@media (min-width: 768px) and (max-width: 1100px) {
 .hero-slot--primary { left: 10vw; width: 42vw; }
 .hero-slot--secondary { left: 55vw; width: 40vw; }
 .hero-slot--lower { left: 57vw; width: 37vw; }
 .hero-carousel .carousel-controls { left: auto; right: 6vw; }
}
@media (max-width: 767px) {
 .hero-slot--primary { top: 75px; left: 25px; width: 330px; }
 .hero-slot--secondary { top: 402px; left: 26px; width: 330px; }
 .hero-slot--lower { top: 641.26px; left: 25.95px; width: 349.57px; aspect-ratio: 345.87 / 345.09; }
 /* Keep the existing two-photo vertical sequence and bottom decorative silhouette. */
 .hero-slide--yellow .hero-slot--secondary { top: 75px; left: 25px; }
 .hero-slide--yellow .hero-slot--lower, .hero-slide--green .hero-slot--lower { top: 402px; left: 26px; width: 330px; aspect-ratio: 1044 / 728; }
 .hero-slide--yellow .hero-slot--lower picture, .hero-slide--green .hero-slot--lower picture { -webkit-mask-image: url('../images/revision-0930/image01-mask.png'); mask-image: url('../images/revision-0930/image01-mask.png'); }
 .hero-slide--yellow .hero-color, .hero-slide--green .hero-color { top: 641.26px; left: 25.95px; width: 349.57px; aspect-ratio: 471 / 445; }
 .hero-slide--green .hero-color img { position: static; width: 100%; height: 100%; transform: none; }
 .hero-carousel .carousel-controls { top: 683px; left: 50%; transform: translateX(-50%); width: max-content; }
 .work-carousel .carousel-controls { top: calc(100% + 7px); left: 66px; width: min(100vw, 430px); }
 .bento-gallery__controls { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 2px; padding: 0 5px; }
 .bento-gallery .gallery-arrow { display: grid; }
 .bento-gallery__thumbs { position: static; width: 100%; transform: none; grid-template-columns: repeat(3,minmax(0,1fr)); }
 .bento-gallery__thumb, .bento-gallery__thumb--center { min-width: 0; height: 94px; padding: 0 3px; }
 .recruit__staff--revised { top: auto; bottom: -70px; width: 1175px; }
 .page-top main .recruit__stage::before { bottom: -70px; height: 250px; border-radius: 50% 50% 0 0; }
}
@media (prefers-reduced-motion: reduce) { .carousel-slide { transition: none; } }
@media (max-width: 359px) {
 .page-top main .recruit__staff--revised { bottom: calc(-70px - max(0px, calc(4.5rem - 72px))); }
 .page-top main .recruit__stage::before { bottom: calc(-70px - max(0px, calc(4.5rem - 72px))); }
}
