/* NTS integration: layout fallbacks, approved photography and bilingual visibility. */
html:not([lang="ja"]) .elementor .nts-lang-ja,
html[lang="ja"] .elementor .nts-lang-en {display:none!important}
.elementor .elementor-widget-text-editor p:last-child {margin-bottom:0}
.elementor .e-con {min-width:0}
.elementor .e-con > .e-con,.elementor .e-con-inner > .e-con {flex-shrink:1}
.elementor .nts-el-hero {position:relative;isolation:isolate;overflow:hidden;background:#eee9df}
.elementor .nts-el-hero>.e-con-inner {position:static}
.elementor .nts-el-photo-hero {position:absolute;inset:0;width:100%;height:100%;background-image:var(--nts-hero-default);background-size:cover;background-position:center 64%;z-index:-2}
.elementor .nts-el-photo-hero:after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(248,245,232,.87),rgba(248,245,232,.50) 31%,rgba(248,245,232,0) 57%);pointer-events:none}
.elementor .nts-el-hero-copy {position:relative;z-index:1}
.elementor .nts-el-photo-why {background-image:var(--nts-why-default);background-size:contain;background-position:center;background-repeat:no-repeat}
.elementor .nts-el-photo-contact {background-image:var(--nts-contact-default);background-size:cover;background-position:center}
.elementor .nts-el-search {position:relative;z-index:3}
.elementor .nts-el-search .nts-search-wrap {margin-top:-62px!important}
.elementor .nts-quick-search select {font-family:inherit}
.elementor .brand-logo img {width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.elementor .nts-inquiry-panel {margin-top:8px;margin-bottom:8px}
.elementor .nts-inquiry-panel,.elementor .nts-vehicle-grid {width:100%}
.elementor .elementor-widget-google_maps iframe {display:block}
.elementor .elementor-widget-button {width:auto}
.elementor .e-con:has(> .elementor-widget-button) {--width:auto;width:auto;flex-shrink:0}
body.elementor-editor-active .elementor .nts-lang-en,
body.elementor-editor-active .elementor .nts-lang-ja {display:block!important}
body.elementor-editor-active .nts-lang-en:before,
body.elementor-editor-active .nts-lang-ja:before {font:10px Arial;color:#68716c;display:block}
body.elementor-editor-active .nts-lang-en:before {content:"EN"}
body.elementor-editor-active .nts-lang-ja:before {content:"日本語"}
@media(max-width:1024px){
 .elementor .nts-el-hero {min-height:640px}
 .elementor .nts-el-photo-hero {background-position:62% center}
}
@media(max-width:767px){
 .elementor .nts-el-hero {min-height:0;background:#f7f5f0;overflow:visible}
 .elementor .nts-el-hero>.e-con-inner {gap:0}
 .elementor .nts-el-hero-copy {order:0}
 .elementor .nts-el-photo-hero {position:relative;inset:auto;order:1;height:240px;min-height:240px;width:calc(100% + 36px);margin-left:-18px;margin-right:-18px;background-position:center;z-index:auto}
 .elementor .nts-el-photo-hero:after {display:none}
 .elementor .nts-el-search .nts-search-wrap {margin-top:-10px!important}
 .elementor .nts-el-photo-why,.elementor .nts-el-photo-contact {min-height:280px}
}
@media(prefers-reduced-motion:reduce){.elementor .brand-track{animation:none!important}}
