/* Homepage editable core blocks: maintain original layout while allowing rearrangement. */
.kurasly-home-blocks .wp-block-group{box-sizing:border-box}
.kurasly-home-blocks .wp-block-group:where(:not(.is-layout-constrained)){max-width:none}
.kurasly-home-blocks .hero figure{margin:0}
.kurasly-home-blocks .hero img{display:block;width:100%;height:auto}
.kurasly-home-blocks .instagram-item figure{margin:0;width:100%;height:100%}
.kurasly-home-blocks .instagram-item img{width:100%;height:100%;object-fit:cover}
.kurasly-home-blocks .shop-image figure{margin:0;height:100%}
.kurasly-home-blocks .shop-image img{width:100%;height:100%;object-fit:cover}
.kurasly-home-blocks .shop-info-content .kurasly-shop-details{margin:0}
.kurasly-home-blocks .kurasly-shop-row{display:grid;grid-template-columns:95px 1fr;gap:12px;margin-bottom:14px}
.kurasly-home-blocks .kurasly-shop-term{font-family:Montserrat,sans-serif;font-size:11px;letter-spacing:.12em}
.kurasly-home-blocks .kurasly-shop-value{font-size:13px;line-height:1.9}
.kurasly-home-blocks .wp-block-group > p:has(> a.outline-button),
.kurasly-home-blocks .wp-block-group > p:has(> a.text-button){margin:0}
.kurasly-home-blocks .wrapping-section{position:relative;isolation:isolate;overflow:hidden;width:100%;padding:105px 0 110px;background:#fff;text-align:center}
.kurasly-home-blocks .wrapping-section > .section-inner{position:relative;z-index:1;width:min(760px,72%)}
.kurasly-home-blocks .wrapping-section h2{margin-bottom:5px}
@media(max-width:700px){.kurasly-home-blocks .wrapping-section{padding:70px 0}.kurasly-home-blocks .wrapping-section > .section-inner{width:90%}.kurasly-home-blocks .kurasly-shop-row{grid-template-columns:75px 1fr}}

/* v1.2.1: Restore original desktop/mobile composition for Gutenberg groups. */
.kurasly-home-blocks .wp-block-group{max-width:none}
.kurasly-home-blocks .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:none}
.kurasly-home-blocks .wp-block-group.is-layout-constrained > *{margin-block-start:0;margin-block-end:0}
.kurasly-home-blocks .instagram-grid.wp-block-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;width:min(900px,100%);margin:0 auto 45px!important}
.kurasly-home-blocks .instagram-grid > .instagram-item{min-width:0;aspect-ratio:1/1;overflow:hidden}
.kurasly-home-blocks .instagram-grid .wp-block-image{width:100%;height:100%;margin:0}
.kurasly-home-blocks .instagram-grid img{display:block;width:100%;height:100%;object-fit:cover}
.kurasly-home-blocks .shop-info-inner.wp-block-group{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;max-width:1150px;margin:0 auto!important;gap:0!important}
.kurasly-home-blocks .shop-info-inner > .shop-image{min-width:0;min-height:245px}
.kurasly-home-blocks .shop-image .wp-block-image{height:100%;margin:0}
.kurasly-home-blocks .shop-image img{width:100%;height:100%;object-fit:cover}
.kurasly-home-blocks .shop-info-inner > .shop-info-content{min-width:0;padding:28px 40px;background:#ede7dc;display:flex;flex-direction:column;justify-content:center}
.kurasly-home-blocks .wrapping-section{position:relative;isolation:isolate;overflow:hidden;width:100%;padding:105px 0 110px;background:#fff;text-align:center}
.kurasly-home-blocks .wrapping-section::before,.kurasly-home-blocks .wrapping-section::after{content:"";position:absolute;top:0;bottom:0;width:31%;background-size:cover;background-repeat:no-repeat;z-index:0;pointer-events:none}
.kurasly-home-blocks .wrapping-section::before{left:0;background-image:url("https://images.unsplash.com/photo-1528698827591-e19ccd7bc23d?auto=format&fit=crop&w=900&q=85");background-position:35% center;-webkit-mask-image:linear-gradient(to right,#000 0%,#000 42%,transparent 100%);mask-image:linear-gradient(to right,#000 0%,#000 42%,transparent 100%)}
.kurasly-home-blocks .wrapping-section::after{right:0;background-image:url("https://images.unsplash.com/photo-1549465220-1a8b9238cd48?auto=format&fit=crop&w=900&q=85");background-position:55% center;-webkit-mask-image:linear-gradient(to left,#000 0%,#000 42%,transparent 100%);mask-image:linear-gradient(to left,#000 0%,#000 42%,transparent 100%)}
.kurasly-home-blocks .wrapping-section > .section-inner{position:relative;z-index:1;width:min(760px,72%);margin:0 auto}
.kurasly-home-blocks .wrapping-section h2{margin-bottom:5px}
@media(max-width:900px){.kurasly-home-blocks .shop-info-inner.wp-block-group{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}}
@media(max-width:700px){
.kurasly-home-blocks .instagram-grid.wp-block-group{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
.kurasly-home-blocks .shop-info-inner.wp-block-group{grid-template-columns:minmax(0,1fr)!important}
.kurasly-home-blocks .shop-info-inner > .shop-info-content{padding:28px 24px}
.kurasly-home-blocks .wrapping-section{padding:70px 0}
.kurasly-home-blocks .wrapping-section::before,.kurasly-home-blocks .wrapping-section::after{width:27%;opacity:.55}
.kurasly-home-blocks .wrapping-section > .section-inner{width:90%}
}

/* v1.2.2 - Block editor layout parity and legible typography. */
.kurasly-home-blocks {font-family:"Noto Sans JP",sans-serif;font-weight:400;color:#4b4748;}
.kurasly-home-blocks .wp-block-group {box-sizing:border-box;}
.kurasly-home-blocks .instagram-section .instagram-inner {max-width:1100px!important;width:calc(100% - 40px)!important;margin-inline:auto!important;}
.kurasly-home-blocks .instagram-grid,
.kurasly-home-blocks .instagram-grid.wp-block-group,
.kurasly-home-blocks .instagram-inner > .instagram-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;max-width:900px!important;width:100%!important;margin:0 auto 45px!important;align-items:stretch!important;}
.kurasly-home-blocks .instagram-grid > .instagram-item,
.kurasly-home-blocks .instagram-grid > .wp-block-group {display:block!important;min-width:0!important;width:auto!important;max-width:none!important;aspect-ratio:1/1!important;overflow:hidden!important;margin:0!important;padding:0!important;}
.kurasly-home-blocks .instagram-grid > .instagram-item > figure,
.kurasly-home-blocks .instagram-grid > .instagram-item > .wp-block-image {width:100%!important;height:100%!important;margin:0!important;}
.kurasly-home-blocks .instagram-grid img {width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.kurasly-home-blocks .shop-info-section > .shop-info-inner,
.kurasly-home-blocks .shop-info-inner.wp-block-group {display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;max-width:1150px!important;width:100%!important;margin:0 auto!important;gap:0!important;align-items:stretch!important;}
.kurasly-home-blocks .shop-info-inner > .shop-image {width:100%!important;max-width:none!important;min-width:0!important;min-height:280px!important;margin:0!important;}
.kurasly-home-blocks .shop-info-inner > .shop-image figure {height:100%!important;width:100%!important;margin:0!important;}
.kurasly-home-blocks .shop-info-inner > .shop-image img {width:100%!important;height:100%!important;object-fit:cover!important;}
.kurasly-home-blocks .shop-info-inner > .shop-info-content {width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:35px 40px!important;background:#ede7dc!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
.kurasly-home-blocks .shop-info-content .kurasly-shop-row {display:grid!important;grid-template-columns:95px minmax(0,1fr)!important;gap:12px!important;margin-bottom:14px!important;}
.kurasly-home-blocks .about-content p:not(.section-label) {font-size:16px!important;line-height:1.95!important;font-weight:400!important;}
.kurasly-home-blocks .wrapping-section .section-description,
.kurasly-home-blocks .wrapping-section p:not(.section-label):not(:has(a)) {font-size:16px!important;line-height:1.9!important;font-weight:400!important;}
.kurasly-home-blocks .contact-section p:not(.section-label) {font-size:16px!important;line-height:1.9!important;}
.kurasly-home-blocks .section-label {font-size:12px!important;}
.kurasly-home-blocks .outline-button,.kurasly-home-blocks .text-button {font-size:14px!important;}
.kurasly-home-blocks .shop-info-content .kurasly-shop-value {font-size:15px!important;line-height:1.75!important;}
.kurasly-home-blocks .shop-info-content .kurasly-shop-term {font-size:12px!important;}
@media(max-width:700px){
.kurasly-home-blocks .instagram-grid,.kurasly-home-blocks .instagram-grid.wp-block-group {gap:6px!important;}
.kurasly-home-blocks .shop-info-section > .shop-info-inner,.kurasly-home-blocks .shop-info-inner.wp-block-group {grid-template-columns:minmax(0,1fr)!important;}
.kurasly-home-blocks .shop-info-inner > .shop-info-content {padding:28px 24px!important;}
.kurasly-home-blocks .about-content p:not(.section-label),.kurasly-home-blocks .contact-section p:not(.section-label),.kurasly-home-blocks .wrapping-section p:not(.section-label):not(:has(a)) {font-size:15px!important;}
}

/* v3.1: actual media images on editable homepage; no pseudo-element overlap. */
.kurasly-home-blocks .wrapping-section:has(> .kurasly-wrap-photo)::before,
.kurasly-home-blocks .wrapping-section:has(> .kurasly-wrap-photo)::after {background-image:none!important;display:none!important;}
.kurasly-home-blocks .wrapping-section > .kurasly-wrap-photo {position:absolute;top:0;bottom:0;width:31%;z-index:0;pointer-events:none;overflow:hidden;}
.kurasly-home-blocks .wrapping-section > .kurasly-wrap-photo-left {left:0;-webkit-mask-image:linear-gradient(to right,#000 0%,#000 42%,transparent 100%);mask-image:linear-gradient(to right,#000 0%,#000 42%,transparent 100%);}
.kurasly-home-blocks .wrapping-section > .kurasly-wrap-photo-right {right:0;-webkit-mask-image:linear-gradient(to left,#000 0%,#000 42%,transparent 100%);mask-image:linear-gradient(to left,#000 0%,#000 42%,transparent 100%);}
.kurasly-home-blocks .wrapping-section > .kurasly-wrap-photo img {display:block;width:100%;height:100%;max-width:none;object-fit:cover;}
.kurasly-home-blocks .wrapping-section > .section-inner {position:relative;z-index:2;}
@media(max-width:700px){.kurasly-home-blocks .wrapping-section > .kurasly-wrap-photo{width:27%;opacity:.55;}}
