
.sw-drop-menu,
.sw-drop-menu * {
  box-sizing: border-box;
}

.sw-drop-menu {
  position: relative;
  z-index: var(--sw-z-menu);
}

.sw-menu-icon {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  z-index: var(--sw-z-toggle);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.sw-menu-icon:hover,
.sw-menu-icon:focus,
.sw-menu-icon:active,
.sw-menu-icon:focus-visible {
  background: var(--sw-menu-surface);
  outline: none;
  box-shadow: none;
}

.sw-menu-bar {
  position: absolute;
  left: 50%;
  height: 1px;
  background: var(--sw-accent);
  border-radius: 999px;
  transition: transform .35s ease, opacity .25s ease, width .25s ease, margin-left .25s ease;
}

.sw-menu-bar1 {
  top: 22px;
  width: 20px;
  margin-left: -10px;
}

.sw-menu-bar2 {
  top: 31px;
  width: 30px;
  margin-left: -15px;
}

.sw-menu-bar3 {
  top: 40px;
  width: 40px;
  margin-left: -20px;
}

.sw-menu-icon.is-open .sw-menu-bar1,
.sw-menu-icon.is-open .sw-menu-bar3 {
  width: 30px;
  margin-left: -15px;
}

.sw-menu-icon.is-open .sw-menu-bar1 {
  transform: translateY(9px) rotate(45deg);
}

.sw-menu-icon.is-open .sw-menu-bar2 {
  opacity: 0;
  transform: scaleX(.4);
}

.sw-menu-icon.is-open .sw-menu-bar3 {
  transform: translateY(-9px) rotate(-45deg);
}

.sw-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  z-index: var(--sw-z-panel);
  pointer-events: none;
  visibility: hidden;
}

.sw-menu-con {
  flex: 1 1 20%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  background: var(--sw-menu-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #000;
  transform: translateY(-110%);
  transition-property: transform, background-color, color;
  transition-duration: .55s, .25s, .25s;
  transition-timing-function: cubic-bezier(.22,.8,.28,1), ease, ease;
  transition-delay: var(--close-delay-pc, 0s), 0s, 0s;
  overflow: hidden;
}

.sw-menu-con::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 90%;
  background: var(--sw-accent);
  transform: translateY(-50%);
}

.sw-menu-con:last-child::before {
  display: none;
}

.sw-menu-con:hover {
  background: var(--sw-surface-tint);
  color: var(--sw-accent);
}

.sw-menu-con span {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
}

.sw-drop-menu.is-open .sw-menu-overlay {
  visibility: visible;
  pointer-events: auto;
}

.sw-drop-menu.is-open .sw-menu-con {
  transform: translateY(0);
  transition-delay: var(--open-delay-pc, 0s), 0s, 0s;
}

@media (min-width: 901px) {
  .sw-menu-con span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .18em;
    line-height: 1.2;
    font-size: clamp(22px, 1.8vw, 34px);
  }
}

@media (max-width: 900px) {
  .sw-menu-overlay {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .sw-menu-con {
    flex: 0 0 20%;
    width: 100%;
    height: 20dvh;
    transform: translateX(-110%);
    transition-delay: var(--close-delay-sp, 0s), 0s, 0s;
  }

  .sw-drop-menu.is-open .sw-menu-con {
    transform: translateX(0);
    transition-delay: var(--open-delay-sp, 0s), 0s, 0s;
  }

  .sw-menu-con::before {
    top: auto;
    bottom: 0;
    right: 50%;
    width: 90%;
    height: 1px;
    background: var(--sw-accent);
    transform: translateX(50%);
  }

  .sw-menu-con:last-child::before {
    display: none;
  }

  .sw-menu-con span {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 20px;
    letter-spacing: .08em;
  }
}

@media (max-width: 480px) {
  .sw-menu-icon {
    top: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .sw-menu-bar1 {
    top: 19px;
    width: 18px;
    margin-left: -9px;
  }

  .sw-menu-bar2 {
    top: 27px;
    width: 26px;
    margin-left: -13px;
  }

  .sw-menu-bar3 {
    top: 35px;
    width: 34px;
    margin-left: -17px;
  }

  .sw-menu-icon.is-open .sw-menu-bar1,
  .sw-menu-icon.is-open .sw-menu-bar3 {
    width: 26px;
    margin-left: -13px;
  }

  .sw-menu-icon.is-open .sw-menu-bar1 {
    transform: translateY(8px) rotate(45deg);
  }

  .sw-menu-icon.is-open .sw-menu-bar3 {
    transform: translateY(-8px) rotate(-45deg);
  }

  .sw-menu-con span {
    font-size: 18px;
  }
}
