:root {
  --fp-u: calc(min(100vw, 576px) / 576);
  --fp-ink: #000;
  --fp-icon: #484848;
  --fp-line: #8e8e8e;
  --fp-drawer-bg: #fff;
  --fp-stage-bg: #f0f1f5;
}

#fp-stage {
  background: var(--fp-stage-bg);
  transform-origin: 0 50%;
}

body > #fp-stage {
  overflow: visible;
}

:where(#fp-stage) > * {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  html.fp-drawer-open,
  html.fp-drawer-open body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.fp-drawer-open body {
    background: var(--fp-drawer-bg);
  }

  html.fp-drawer-open #fp-stage {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  html.fp-drawer-open #fp-stage * {
    pointer-events: none;
  }

  html.fp-drawer-open .fp-scroll-sidebar {
    visibility: hidden;
  }

  html.fp-drawer-open .fp-header,
  html.fp-drawer-open #fp-cat-nav {
    position: relative;
    top: 0;
    transform: translateY(var(--fp-lock-y, 0px));
  }
}

.fp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--fp-drawer-bg);
  color: var(--fp-ink);
  visibility: hidden;
  overflow: hidden;
}

.fp-drawer.is-active {
  visibility: visible;
}

.fp-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--fp-u) * 66);
  padding-bottom: calc(var(--fp-u) * 43);
  box-sizing: border-box;
  font-family: var(--fp-font, inherit);
  font-weight: 700;
  font-size: calc(var(--fp-u) * 22.5);
  line-height: 1.2;
  letter-spacing: 0;
}

.fp-drawer__panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fp-drawer__panel::-webkit-scrollbar {
  display: none;
}

.fp-drawer__panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--fp-u) * 43);
  height: 1px;
  background: var(--fp-line);
  pointer-events: none;
}

.fp-drawer__top {
  flex: none;
}

.fp-drawer__head {
  display: flex;
  align-items: center;
  height: calc(var(--fp-u) * 54);
  padding: 0 calc(var(--fp-u) * 22);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.fp-drawer__avatar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(var(--fp-u) * 52);
  height: calc(var(--fp-u) * 52);
  border: calc(var(--fp-u) * 2.5) solid var(--fp-ink);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  color: var(--fp-ink);
}

.fp-drawer__avatar i {
  font-size: calc(var(--fp-u) * 32);
  line-height: 1;
}

.fp-drawer__avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.fp-drawer__name {
  margin-left: calc(var(--fp-u) * 23);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.fp-drawer__close {
  display: none;
}

.fp-drawer__nav {
  flex: none;
  margin-top: calc(var(--fp-u) * 34.7);
}

.fp-drawer__account:empty {
  display: none;
}

.fp-drawer__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fp-drawer__list li {
  flex: none;
  display: block;
  margin: 0;
  padding: 0;
}

.fp-drawer__list .sub-menu {
  display: none;
}

.fp-drawer__list a {
  display: flex;
  align-items: center;
  height: calc(var(--fp-u) * 74.6);
  padding: 0 calc(var(--fp-u) * 22) 0 calc(var(--fp-u) * 19);
  box-sizing: border-box;
  color: var(--fp-ink);
  text-decoration: none;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.fp-drawer__list a:active {
  background: rgba(0, 0, 0, 0.05);
}

.fp-drawer__list a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-drawer__ico {
  flex: none;
  width: calc(var(--fp-u) * 36);
  margin-right: calc(var(--fp-u) * 20);
  font-size: calc(var(--fp-u) * 34);
  line-height: 1;
  text-align: center;
  color: var(--fp-icon);
}

.fp-drawer__foot {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
  padding: calc(var(--fp-u) * 24) calc(var(--fp-u) * 33) calc(var(--fp-u) * 14) calc(var(--fp-u) * 30);
}

.fp-drawer__ver {
  font-weight: 700;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .fp-drawer__list a:active {
    background: transparent;
  }
}

@media (min-width: 992px) {
  :root {
    --fp-u: 0.7px;
  }

  html.fp-drawer-open {
    overflow: hidden;
  }

  .fp-drawer {
    z-index: 1050;
    background: rgba(0, 0, 0, 0.45);
  }

  .admin-bar .fp-drawer {
    top: 32px;
    height: calc(100% - 32px);
  }

  .fp-drawer__panel {
    width: 280px;
    background: var(--fp-drawer-bg);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  }

  .fp-drawer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--fp-ink);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.15s;
  }

  .fp-drawer__close:hover {
    background: var(--fp-line);
  }

  .fp-drawer__list a:hover {
    background: #fafafa;
    color: var(--fp-red, #e4002b);
  }
}
