/*
 * Manabi Video Navi V285
 * Public drawer input ownership and mobile MyPage summary contrast.
 */

/* Keep the open public drawer in one, explicit interaction layer regardless of
 * viewport rounding, browser zoom or iPadOS "desktop website" reporting. */
html.mobile-nav-open,
html.mobile-nav-open body.app-shell.public-app.mobile-nav-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: auto !important;
}

body.app-shell.public-app.mobile-nav-open .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 21400 !important;
  isolation: isolate !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.app-shell.public-app.mobile-nav-open .site-header::before,
body.app-shell.public-app.mobile-nav-open .site-header::after,
body.app-shell.public-app.mobile-nav-open .site-header-inner::before,
body.app-shell.public-app.mobile-nav-open .site-header-inner::after {
  pointer-events: none !important;
}

body.app-shell.public-app.mobile-nav-open .nav-scrim {
  z-index: 21380 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area.open,
body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area[aria-hidden="false"] {
  z-index: 21420 !important;
  contain: none !important;
  isolation: isolate !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
  filter: none !important;
}

body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area.open::before,
body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area.open::after,
body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area[aria-hidden="false"]::before,
body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area[aria-hidden="false"]::after {
  pointer-events: none !important;
}

body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area.open
  :is(.nav-drawer-close, .site-nav a, .site-nav button, .nav-actions a, .nav-actions button, .logout-inline-form button),
body.app-shell.public-app.mobile-nav-open .site-header .site-nav-area[aria-hidden="false"]
  :is(.nav-drawer-close, .site-nav a, .site-nav button, .nav-actions a, .nav-actions button, .logout-inline-form button) {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* The summary sits on a navy surface, while its menu tiles are light.  Keep
 * their foreground contracts separate instead of inheriting the tile ink. */
@media screen and (max-width: 780px) {
  body.app-shell #main-content .mobile-mypage-menu > summary,
  body.app-shell #main-content .mobile-mypage-menu > summary > span,
  body.app-shell #main-content .mobile-mypage-menu > summary strong {
    color: #f7fbff !important;
    -webkit-text-fill-color: #f7fbff !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
  }

  body.app-shell #main-content .mobile-mypage-menu > summary small,
  body.app-shell #main-content .mobile-mypage-menu > summary::after {
    color: #e4efff !important;
    -webkit-text-fill-color: #e4efff !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.app-shell #main-content .mobile-mypage-menu > summary > span > svg {
    color: #ff9d43 !important;
    -webkit-text-fill-color: #ff9d43 !important;
    stroke: currentColor !important;
    opacity: 1 !important;
  }
}

@media (forced-colors: active) {
  body.app-shell #main-content .mobile-mypage-menu > summary,
  body.app-shell #main-content .mobile-mypage-menu > summary :is(strong, small, span) {
    color: CanvasText !important;
    -webkit-text-fill-color: currentColor !important;
    forced-color-adjust: auto !important;
  }
}
