html{
  // overflow-y: auto;
  &::-webkit-scrollbar {
    width: 8px;
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
    background-color: #D8D8D8;
  }
}
body {
  font-size: 16px;
}

// .markdown-section{
//   .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
//     // font-family: inherit;
//     font-weight: 500;
//     // line-height: 1.1;
//     // color: inherit;
//   }
//   a {
//     font-weight: 500;
//   }
  
// }


.content {
  width: calc(100% - 280px - 350px);
  left: 280px;

  img {
    border: 1px solid #e1e3e5;
    border-radius: 4px;
  }
}

.pageNavi {
  position: fixed;
  top: 100px;
  width: 300px;
  right: 30px;
  height: calc(100% - 150px);

  .tlt {
    color: #00123e;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
  }
  .navi-content {
    border-left: 2px solid #e7ebf0;
    overflow-y: auto;
    height: calc(100% - 20px);
  }
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: -2px;
    counter-reset: title;
    li {
      width: 100%;
      padding-left: 6px;
      line-height: 26px;
      a {
        // padding-left: 14px;
        display: inline-block;
        text-decoration: none;
        font-size: 12px;
        color: #324980;
        line-height: 16px;
        // width: 100%;
      }
      &.active {
        position: relative;
        &:after {
          content: "";
          position: absolute;
          top: 0;
          left: 0px;
          width: 2px;
          height: 100%;
          background-color: #2b60dd;
        }
        &:before {
          color: #2b60dd;
        }
        a {
          color: #2b60dd;
          font-weight: 500;
        }
      }
    }
    .h3 {
      counter-reset: subtitle;
    }
    .h3::before {
      content: counter(title) ".";
      counter-increment: title;
    }
    .h3 a {
      font-weight: 600;
    }
    .h5::before {
      counter-increment: subtitle;
      content: counter(title) "." counter(subtitle);
      padding-left: 14px;
    }
    .h5 a {
      // padding-left: 28px;
    }
  }
}

.tltH3 {
  display: block;
  position: relative;
  margin-top: 50px;
  &:before {
    content: attr(data-text);
    font-size: 26px;
    color: #2b60dd;
  }
  a {
    padding-left: 5px;
  }
}
.tltH5 {
  display: block;
  position: relative;
  &:before {
    content: attr(data-text);
    font-size: 16px;
    color: #2b60dd;
  }
  a {
    padding-left: 5px;
  }
}

.sidebar {
  width: 280px;
  background-color: #f8f9fb;
  .sidebar-nav {
    height: 48px;
    ul li.file {
      height: 48px;
      line-height: 48px;
      > a {
        display: inline-block;
        width: 248px;
        height: 48px;
        font-weight: normal;
        color: #00123e;
        text-decoration: none;
        font-size: 14px;
        line-height: 48px;
        padding-left: 16px;
        border: none;
      }
    }
    ul li {
      cursor: pointer;
      margin: 0;
      line-height: 48px;
      > a {
        border: none;
      }
      &.active > a,
      &:hover > a {
        background: #ffffff;
        box-shadow: 0px 4px 10px 0px #f0f2f5;
        border-radius: 8px;
        color: #2b60dd;
        font-weight: 600;
      }
      ul {
        padding-left: 0;
        margin: 0;
      }
    }
    > ul > li.folder {
      position: relative;
      color: #00123e;
      font-size: 14px;
      font-weight: bold;
      &:before {
        content: "";
        position: absolute;
        right: 24px;
        top: 20px;
        background-image: url("https://help.wshoto.com/images/arrow.png");
        background-size: 100% 100%;
        width: 16px;
        height: 16px;
      }
      &.open:before {
        transform: rotate(180deg);
      }
    }
  }
}

.back-top-container {
  z-index: 999;
  position: fixed;
  bottom: 44px;
  right: 15px;
  width: 48px px;
  padding: 12px;
  cursor: pointer;
  background: #2b60dd;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: all 218ms;
  -o-transition: all 218ms;
  transition: all 218ms;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  line-height: 24px;
  .back-top {
    flex-direction: column;
    align-items: center;
    display: flex;
  }
}

@media screen and (min-width: 768px) {
  body {
    .sidebar-toggle {
      position: fixed;
    }

    .sidebar-toggle {
      width: 32px;
      top: 3.1rem;
      bottom: auto;
      left: 263px;
      padding: 0;
      background-color: transparent;
      span {
        display: none;
      }
      .sidebar-toggle-button {
        background-image: url("../img/common/sidebar.png");
        background-size: 100% 100%;
        width: 32px;
        height: 32px;
        &:hover {
          background-image: url("../img/common/sidebar-hover.png");
        }
      }
    }

    &.close .sidebar-toggle {
      left: 0;
      .sidebar-toggle-button {
        background-image: url("../img/common/close-sidebar.png");

        &:hover {
          background-image: url("../img/common/close-sidebar-hover.png");
        }
      }
    }
  }
}

@media screen and (max-width: 1550px) {
  .pageNavi {
    display: none;
  }
}

@media screen and (max-width: 1280px) {
  .content {
    width: calc(100% - 280px);
    img {
      max-width: 100%;
    }
  }
}
@media screen and (max-width: 768px) {
  .content {
    width: 100%;
  }
  .content .markdown-section > h1 {
    margin-top: 16px !important;
  }
  .app-nav li {
    margin: 0 0.4rem;
  }
  .app-nav li p a {
    font-size: 14px;
  }
}

.search input:focus {
  box-shadow: 0 0 5px var(--theme-color, #42b983);
  border: 1px solid var(--theme-color, #42b983);
}