/* Top nav: hover dropdowns + scroll-to-dark header (replaces Google Sites JS) */



nav#WDxLfe > ul > li.VsJjtf {

  position: relative;

}



nav#WDxLfe .oGuwee.Mkt3Tc li,
nav#WDxLfe .oGuwee.eWDljc.Mkt3Tc li.ijMPi {
  position: relative;
  overflow: visible !important;
}

nav#WDxLfe .oGuwee.eWDljc.RPRy1e.Mkt3Tc,
nav#WDxLfe .oGuwee.Mkt3Tc {
  overflow: visible !important;
}

/* 二/三级子菜单默认隐藏（压住 Google Sites 悬停写入的 style） */
nav#WDxLfe li.ijMPi:not(.nav-nested-open) > .oGuwee.Mkt3Tc:not(.eWDljc),
nav#WDxLfe li[data-nav-level="2"]:not(.nav-nested-open) > .oGuwee.Mkt3Tc:not(.eWDljc),
nav#WDxLfe li[data-nav-level="3"]:not(.nav-nested-open) > .oGuwee.Mkt3Tc:not(.eWDljc) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

nav#WDxLfe li.ijMPi:not(.nav-nested-open),
nav#WDxLfe li[data-nav-level="2"]:not(.nav-nested-open):has(> .oGuwee.Mkt3Tc:not(.eWDljc)),
nav#WDxLfe li[data-nav-level="3"]:not(.nav-nested-open):has(> .oGuwee.Mkt3Tc:not(.eWDljc)) {
  height: auto !important;
  max-height: none !important;
}

/* 点击图标展开：内联下拉，不用右侧 flyout */
nav#WDxLfe li.ijMPi.nav-nested-open > .oGuwee.Mkt3Tc:not(.eWDljc),
nav#WDxLfe li[data-nav-level="2"].nav-nested-open > .oGuwee.Mkt3Tc:not(.eWDljc),
nav#WDxLfe li[data-nav-level="3"].nav-nested-open > .oGuwee.Mkt3Tc:not(.eWDljc) {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
  box-shadow: none !important;
  background: rgba(0, 0, 0, 0.18) !important;
  border-radius: 0 !important;
}

nav#WDxLfe li.ijMPi.nav-nested-open > .oGuwee.Mkt3Tc > ul.VcS63b,
nav#WDxLfe li[data-nav-level="2"].nav-nested-open > .oGuwee.Mkt3Tc > ul.VcS63b {
  padding: 0 !important;
}

/* 一级下拉仍悬停展开 */
nav#WDxLfe > ul > li.VsJjtf:hover > .oGuwee.eWDljc.RPRy1e.Mkt3Tc {
  display: block !important;
}



nav#WDxLfe .oGuwee.eWDljc.RPRy1e.Mkt3Tc {

  position: absolute;

  top: 100%;

  left: 0;

  background: rgb(33, 33, 33);

  min-width: 200px;

  border-radius: 4px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

  z-index: 1000;

  padding: 4px 0;

}



/* 禁用 Sites 默认右侧 flyout，二/三级仅 nav-nested-open 内联展开（见上） */

nav#WDxLfe .j10yRb,
nav#WDxLfe [jsname="ix0Hvc"].j10yRb,
nav#WDxLfe .mBHtvb[jsname="ix0Hvc"] {
  cursor: pointer;
}



nav#WDxLfe .oGuwee ul.VcS63b li {

  display: block;

  white-space: nowrap;

}



nav#WDxLfe .oGuwee a {

  display: block !important;

  padding: 8px 16px !important;

  color: rgba(255, 255, 255, 0.87) !important;

  font-size: 14px !important;

  text-decoration: none;

  transition: background 0.2s;

}



nav#WDxLfe .oGuwee a:hover {

  background: rgba(255, 255, 255, 0.1) !important;

  color: rgb(255, 255, 255) !important;

}



nav#WDxLfe .mBHtvb.u5fiyc svg {

  transition: transform 0.2s;

}



nav#WDxLfe > ul > li.VsJjtf:hover > div > div > .mBHtvb.u5fiyc svg {

  transform: rotate(180deg);

}

nav#WDxLfe li.nav-nested-open .j10yRb svg,
nav#WDxLfe li.nav-nested-open .mBHtvb[jsname="ix0Hvc"] svg {
  transform: rotate(180deg);
}



/* 桌面：主栏 / 「更多」可见性（覆盖快照 .ZmrVpf） */

nav#WDxLfe > ul > li.VsJjtf:not(.nav-main-hidden) {

  display: inline-block !important;

  vertical-align: middle;

}



nav#WDxLfe > ul > li.VsJjtf.nav-main-hidden,

nav#WDxLfe > ul > li[data-nav-overflow-hidden] {

  display: none !important;

}



nav#WDxLfe > ul > li[more-menu-item].VsJjtf {

  display: inline-block !important;

  vertical-align: middle;

}



nav#WDxLfe > ul > li[more-menu-item].nav-more-empty {

  display: none !important;

}



nav#WDxLfe li[more-menu-item] .RPRy1e > ul.VcS63b > li.nav-more-hidden,
nav#WDxLfe li[more-menu-item] li[in-more-item].nav-more-hidden {
  display: none !important;
}

nav#WDxLfe li[more-menu-item] .RPRy1e > ul.VcS63b > li.nav-more-visible,
nav#WDxLfe li[more-menu-item] li.nav-more-visible {
  display: block !important;
}

nav#WDxLfe li[more-menu-item] li.nav-more-visible li[in-more-item],
nav#WDxLfe li[more-menu-item] li.nav-more-visible .ZmrVpf {
  display: block !important;
}

nav#WDxLfe > ul.jYxBte {
  white-space: nowrap;
}

@media screen and (min-width: 768px) {
  /* 覆盖 Sites 默认 table 布局，左侧 Logo 与右侧导航留出固定间距 */
  .VLoccc.K5Zlne.QDWEj.U8eYrb {
    --nav-logo-gap: 40px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .VLoccc.K5Zlne .Pvc6xe {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: var(--nav-logo-gap) !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  .VLoccc.K5Zlne .TlfmSc,
  .VLoccc.K5Zlne .TlfmSc.YSH9J {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: min(380px, 42vw) !important;
    height: auto !important;
    min-height: 56px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .VLoccc.K5Zlne .TlfmSc .GAuSPc {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-decoration: none !important;
  }

  .VLoccc.K5Zlne .lzy1Td {
    display: block !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    height: 56px !important;
    width: auto !important;
    max-width: 225px !important;
    max-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    vertical-align: middle !important;
  }

  .VLoccc.K5Zlne .TlfmSc .QTKDff {
    display: inline-block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 0 0 12px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
  }

  .VLoccc.K5Zlne .plFg0c,
  .VLoccc.K5Zlne nav.plFg0c#WDxLfe,
  nav#WDxLfe.plFg0c {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    max-width: none !important;
    text-align: right !important;
    width: auto !important;
    vertical-align: middle;
  }

  .VLoccc.K5Zlne .RBEWZc {
    display: block !important;
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    z-index: auto !important;
  }

  nav#WDxLfe > ul.jYxBte {
    overflow: visible !important;
    max-width: 100%;
  }
}



nav#WDxLfe > ul > li[more-menu-item]:hover > .oGuwee.eWDljc.RPRy1e.Mkt3Tc,
nav#WDxLfe > ul > li[more-menu-item].nav-more-open > .oGuwee.eWDljc.RPRy1e.Mkt3Tc {

  display: block !important;

}



/* 「更多」下拉右对齐，避免超出视口右侧 */

nav#WDxLfe > ul > li[more-menu-item] > .oGuwee.eWDljc.RPRy1e.Mkt3Tc {

  left: auto !important;

  right: 0 !important;

  top: 100% !important;

  width: max-content !important;

  min-width: 0 !important;

  max-width: calc(100vw - 16px);

  overflow: visible !important;

}



nav#WDxLfe li[more-menu-item] .RPRy1e > ul.VcS63b > li,
nav#WDxLfe li[more-menu-item] .oGuwee ul.VcS63b > li {
  margin: 0 !important;
}



.VLoccc.K5Zlne .plFg0c,

.VLoccc.K5Zlne nav#WDxLfe,

.VLoccc.K5Zlne nav#WDxLfe > ul.jYxBte,

nav#WDxLfe > ul > li[more-menu-item] {

  overflow: visible !important;

}



.vB4mjb.phf0q.QOTFId {

  position: fixed !important;

  top: 0 !important;

  left: 0 !important;

  right: 0 !important;

  z-index: 21 !important;

}



.VLoccc.K5Zlne.QDWEj.U8eYrb {

  position: fixed !important;

  left: 0 !important;

  right: 0 !important;

  z-index: 20 !important;

  transition: background 0.3s ease, box-shadow 0.3s ease;

}



body.nav-scrolled .VLoccc.K5Zlne.QDWEj.U8eYrb {

  background: rgb(33, 33, 33) !important;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

}



body.nav-scrolled .VLoccc.K5Zlne .TlfmSc,

body.nav-scrolled .VLoccc.K5Zlne .QTKDff,

body.nav-scrolled .VLoccc.K5Zlne .jgXgSe,

body.nav-scrolled .VLoccc.K5Zlne .M9vuGd {

  color: rgba(255, 255, 255, 0.87) !important;

}



body.nav-scrolled .VLoccc.K5Zlne .jgXgSe:hover,

body.nav-scrolled .VLoccc.K5Zlne .M9vuGd:hover {

  color: #fff !important;

}



/* 移动端：汉堡 + 侧栏 */

@media screen and (max-width: 767px) {

  .VLoccc.K5Zlne > .DXsoRd#s9iPrd {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    cursor: pointer;

  }



  nav#yuynLe.JzO0Vc {

    display: block !important;

    left: -100%;

    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  }



  nav#yuynLe.JzO0Vc.jsnVQ,

  body.nav-drawer-open nav#yuynLe.JzO0Vc {

    left: 0 !important;

  }



  body.nav-drawer-open .TxnWlb {
    display: block !important;
    opacity: 0.5 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
    z-index: 65 !important;
    transition: opacity 0.5s !important;
  }



  body.nav-drawer-open {

    overflow: hidden;

  }

  /* 侧栏：默认向下；仅本项 nav-nested-open 时向上（含二级如ママのプロフィール） */
  nav#yuynLe svg.dvmRw .K4B8Y,
  nav#yuynLe svg.dvmRw .MrYMx {
    -webkit-transform: none !important;
    transform: none !important;
  }

  /* 仅本行标题旁的箭头（不含子菜单里的二级项） */
  nav#yuynLe li.nav-nested-open > .PsKE7e svg.dvmRw .K4B8Y,
  nav#yuynLe li.nav-nested-open > .Fpy8Db svg.dvmRw .K4B8Y {
    -webkit-transform: rotate(-90deg) !important;
    transform: rotate(-90deg) !important;
  }

  nav#yuynLe li.nav-nested-open > .PsKE7e svg.dvmRw .MrYMx,
  nav#yuynLe li.nav-nested-open > .Fpy8Db svg.dvmRw .MrYMx {
    -webkit-transform: rotate(90deg) !important;
    transform: rotate(90deg) !important;
  }

}

