:root{
  /* 表示順 */
  --pushbar_overlay-z-index:1000;
}
html.pushbar_locked {
    /* overflow: hidden; */
    -ms-touch-action: none;
    touch-action: none;
}
html.pushbar_locked body{
    overflow: hidden;
}
.pushbar_overlay {
    z-index: var(--pushbar_overlay-z-index);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    visibility:hidden;
}
html.pushbar_locked .pushbar_overlay {
    opacity: 1;
    visibility:visible;
}
/*menu*/
[data-pushbar-id] {
    z-index: calc(var(--pushbar_overlay-z-index) + 1);
    position: fixed;
    overflow-y: auto;
    transition: transform 0.3s ease;
}
[data-pushbar-direction="left"][data-pushbar-id], [data-pushbar-direction="right"][data-pushbar-id] {
    top: 0;
    width: 40%;
    max-width: 100%;
    height: 100%;
}
[data-pushbar-direction="top"][data-pushbar-id], [data-pushbar-direction="bottom"][data-pushbar-id] {
    left: 0;
    width: 100%;
    min-height: 150px;
}
[data-pushbar-direction="left"][data-pushbar-id] {
    left: 0;
    transform: translateZ(0) translateX(-100%);
}
[data-pushbar-direction="right"][data-pushbar-id] {
    right: 0;
    transform: translateZ(0) translateX(100%);
}
[data-pushbar-direction="top"][data-pushbar-id] {
    top: 0;
    transform: translateZ(0) translateY(-100%);
}
[data-pushbar-direction="bottom"][data-pushbar-id] {
    bottom: 0;
    transform: translateZ(0) translateY(100%);
}
[data-pushbar-id].opened {
    display: block;
    transform: translateX(0px) translateY(0px);
}

@media screen and (max-width: 1024px) {
  [data-pushbar-direction="left"][data-pushbar-id], [data-pushbar-direction="right"][data-pushbar-id] {
    width: 70%;
  }
}
@media screen and (max-width: 640px) {
  [data-pushbar-direction="left"][data-pushbar-id], [data-pushbar-direction="right"][data-pushbar-id] {
    width: 100%;
  }
}