html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 56px;
}
  @media (min-width: 576px) {
    body {
      padding-top: 60px;
    }
  }
  @media (min-width: 992px) {/*より大きい*/
   body {
      padding-top: 75px;
    }
  }
@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    right: 100%;
    width: 100%;
    overflow-y: auto;
    visibility: hidden;
    background-color: #011942;
    transition-timing-function: ease-in-out;
    transition-duration: .3s;
    transition-property: right, visibility;
  }
  .offcanvas-collapse.open {
    right: 0;
    visibility: visible;
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
}