.sub-navi {
  overflow: hidden;
  background-color: #e7fdce;
  transition: width 0.1s;
  width: 99%;
  font-family: Helvetica, sans-serif;
  height: 2rem;
}

.sub-navi-content {
  font-size: 1rem;
}

.sub-navi.expanded {
  height: auto;
  overflow: auto;
}

.sub-navi-content.closed {
  overflow: hidden;
}

.sub-navi-content ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.sub-navi-content li {
  margin: 0 0 1rem 1rem;
  line-height: 1;
}

.sub-navi.closed .sub-navi-content {
  width: 0;
  padding: 0;
}

.sub-navi-heading {
  margin-top: 0.5rem;
  padding-top: 0;
  text-align: center;
}

.sub-navi-toggle {
  padding: 0.3rem 0 0;
  text-align: center;
  display: block;
  cursor: pointer;
  font-family: Merriweather, Georgia, serif;
}

.sub-navi-toggle a {
  color: #417505;
}

@media screen and (min-width: 52rem) {
  .sub-navi-toggle {
    display: none;
  }

  .sub-navi {
    height: auto;
    overflow: auto;
  }

  .sub-navi-content {
    font-size: 1rem;
    padding: 2rem 2rem 0 1rem;
  }

  .sub-navi-heading {
    text-align: left;
    margin-top: 0;
  }
}

.sub-navi a {
  text-decoration: none;
}

.sub-navi a.active,
.sub-navi li.active a {
  color: #f5870a;
}

.sub-navi .back-to-top {
  display: none;
}

.back-to-top-mobile {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background-color: #f5870a;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  padding-top: 0.2rem;
  opacity: 0;
  transition: 0.3s;
}

.back-to-top-mobile:hover {
  color: #fff;
  background-color: #b96608;
}

@media screen and (min-width: 52rem) {
  .sub-navi .back-to-top {
    display: block;
    margin: 0 0 1rem;
    opacity: 0;
    transition: 0.2s;
  }

  .back-to-top-mobile {
    display: none;
  }
}

.is-sticky .sub-navi .back-to-top {
  opacity: 1;
}
