/* Chalk Digital Japan inside WPBakery + TheGem. Loaded only on the Japan pages (SETUP row). */
.vc_row.chalk-jp-row,.chalk-jp-row{position:relative!important;left:auto!important;right:auto!important;float:none!important;box-sizing:border-box!important;
  width:var(--jp-vw,100vw)!important;max-width:none!important;margin:0 0 0 calc(50% - var(--jp-vw,100vw) / 2)!important;padding:0!important;min-height:0!important;opacity:1!important}
.chalk-jp-row:before,.chalk-jp-row:after{display:none!important}
.chalk-jp-row>.wpb_column,.chalk-jp-row .vc_column_container,.chalk-jp-row .vc_column-inner,.chalk-jp-row .vc_column-inner>.wpb_wrapper,.chalk-jp-row .wpb_raw_code,.chalk-jp-row .wpb_raw_code>.wpb_wrapper{margin:0!important;padding:0!important;float:none!important;width:100%!important;min-height:0!important;border:0!important;background:none!important}
.chalk-jp-row .wpb_content_element{margin-bottom:0!important}
.chalk-jp-setup,.vc_row.chalk-jp-setup{display:none!important}
.vc_row-full-width{display:none!important}
html:not(#chalk-jp):not(#chalk-jp) body:has(.chalk-jp-row){overflow-x:clip;margin:0}
/* TheGem: remove content padding, page title area and white page background on Japan pages. */
body:has(.chalk-jp-row) .block-content{padding:0!important}
body:has(.chalk-jp-row) .page-title-block{display:none!important}
body:has(.chalk-jp-row) #page,body:has(.chalk-jp-row) #main{background:transparent!important}
/* Rows must not clip dropdowns: WPBakery's full-width rows use overflow:hidden, which cut off the mobile menu panel. */
.vc_row.chalk-jp-row,.chalk-jp-row .vc_column-inner,.chalk-jp-row .wpb_wrapper,.chalk-jp-row .wpb_raw_code{overflow:visible!important}
/* Narrow phones: keep "Let's connect" and "メニュー ☰" on one line (they wrapped in the original design too). */
@media (max-width: 420px) {
html:not(#chalk-jp):not(#chalk-jp) header nav[aria-label="メインナビゲーション"]{ gap: 8px 10px !important; }
html:not(#chalk-jp):not(#chalk-jp) header nav[aria-label="メインナビゲーション"] .cd-cta{ white-space: nowrap !important; padding: 0 12px !important; gap: 4px !important; }
html:not(#chalk-jp):not(#chalk-jp) header .cd-mnav>summary{ white-space: nowrap; gap: 6px; }
html:not(#chalk-jp):not(#chalk-jp) header div[style*="max-width"]{ gap: 10px !important; }
}
@media (max-width: 350px) {
html:not(#chalk-jp):not(#chalk-jp) header nav[aria-label="メインナビゲーション"] .cd-cta{ padding: 0 10px !important; font-size: 12px !important; }
html:not(#chalk-jp):not(#chalk-jp) header .cd-mnav>summary{ font-size: 13px; padding: 0 2px; }
html:not(#chalk-jp):not(#chalk-jp) header img[alt="CHALK DIGITAL"]{ height: 32px !important; }
}
/* Phones: the product label next to the SpreAD / NEXT GEN logo ("ロケーションプラットフォーム") was wider than the screen
   and pushed the page sideways (also in the original design). Let it wrap under the logo instead. */
@media (max-width: 640px) {
html:not(#chalk-jp):not(#chalk-jp) .chalk-jp-row div:has(> span[style*="gap: 14px; font-size: 14px; font-weight: 600; color: #555555"]){ flex-wrap: wrap !important; white-space: normal !important; row-gap: 6px; }
}
