/* CLASSY SP drawer — design alignment. Only #spNav is affected. */
#spNav .p-drawer {
  background: #fff;
}
#spNav .p-drawer__heading {
  background: #fff;
  border-bottom: 1px solid #e9dfd3;
}
#spNav .p-drawer__heading h2 {
  color: #443d37;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: .06em;
}
#spNav .p-drawerMenu__item {
  border-bottom: 1px solid #e9dfd3;
}
#spNav .p-drawerMenu__link {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 10px 14px 10px 54px;
  color: #443d37;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}
/* Old CSS-class icons are not used in the SP drawer. */
#spNav .p-drawerMenu__link::before {
  content: none !important;
  display: none !important;
}
/* Fixed icon slot, including when an item has no image yet. */
#spNav .p-drawerMenu__link .classy-drawer-item-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  margin: 0;
  object-fit: contain;
}

/* Overlay drawer: do not slide the page or its fixed header. */
@media (max-width: 767px) {
  .l-wrapper.on {
    -webkit-transform: none !important;
    transform: none !important;
  }
  #spNav {
    width: 65vw !important;
    max-width: 65vw !important;
    left: auto !important;
    top: 0;
    height: 100dvh;
    max-height: 100vh;
    right: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  #spNav.on {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  #spNavSdw {
    position: fixed;
    inset: 0;
    height: 100dvh;
  }
}

/* Keep the last menu item above the fixed reservation buttons. */
@media (max-width: 767px) {
  #spNav .p-drawerMenu__items {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
}

/* Fill the reserved scroll space with the drawer background. */
@media (max-width: 767px) {
  #spNav,
  #spNav .p-drawer__menu,
  #spNav .p-drawerMenu__items {
    background-color: #fff;
  }
}
