/*
 * 檔案路徑：/assets/kenmos-front-function-restore.css
 * 程式名稱：前台原有功能精準恢復
 * 功能說明：只恢復 Header Logo 翻轉，以及三個既有全球地圖雙圖層的必要顯示條件。
 */

/* 左上角 KENMOS Logo：沿用 2026.7.24 原版 Y 軸翻轉，不受 Reduce Motion 規則覆蓋。 */
body .site-header .brand{
  perspective:1000px!important;
  transform-style:preserve-3d!important;
}
body .site-header .brand img{
  display:block!important;
  transform-origin:50% 50%!important;
  backface-visibility:visible!important;
  -webkit-backface-visibility:visible!important;
  will-change:transform!important;
}
body .site-header .brand:hover img,
body .site-header .brand:focus-visible img{
  animation:kenmos-logo-hover-rotate-y-restored .95s cubic-bezier(.22,.72,.18,1) both!important;
}
@keyframes kenmos-logo-hover-rotate-y-restored{
  0%{transform:rotateY(0deg) scale(1)}
  50%{transform:rotateY(180deg) scale(1.035)}
  100%{transform:rotateY(360deg) scale(1)}
}

/*
 * 首頁、關於我們、全球據點共用相同兩張地圖。
 * 只補雙圖層必要定位，不改卡片、文字、據點資料或其他 UI。
 */
.home-global-modern-map.home-global-modern-map-two-frame,
.about-global-clone .global-modern-map.global-modern-map-two-frame,
.global-contactlike-page .global-modern-map.global-modern-map-two-frame{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.home-global-modern-map.home-global-modern-map-two-frame .home-global-map-frame,
.about-global-clone .global-modern-map.global-modern-map-two-frame .global-map-frame,
.global-contactlike-page .global-modern-map.global-modern-map-two-frame .global-map-frame{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  border:0!important;
  transform:none!important;
}
.home-global-modern-map.home-global-modern-map-two-frame .home-global-map-frame-clean,
.about-global-clone .global-modern-map.global-modern-map-two-frame .global-map-frame-clean,
.global-contactlike-page .global-modern-map.global-modern-map-two-frame .global-map-frame-clean{
  z-index:1!important;
  opacity:1!important;
}
.home-global-modern-map.home-global-modern-map-two-frame .home-global-map-frame-marked,
.about-global-clone .global-modern-map.global-modern-map-two-frame .global-map-frame-marked,
.global-contactlike-page .global-modern-map.global-modern-map-two-frame .global-map-frame-marked{
  z-index:2!important;
  opacity:0;
  pointer-events:none!important;
  will-change:opacity;
}
