#mokuji,
#mokuji-cat {
  background: #f7f7f7;
  border: 1px solid #767676;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  box-sizing: border-box;
  display: table;
  width: 100%;
  max-width: 700px;
  padding: 16px 24px;
  margin: 30px auto 1em;
  position: relative;
  counter-reset: counter;
  font-size: 16px;
  cursor: pointer;
}

#mokuji-toggle {
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
  justify-content: center;
  direction: ltr;
}

.mokuji-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mokuji-title::after {
  content: "\76EE\6B21";
  /* content: "目次"; */
  color: #767676;
  margin: 0;
  padding: 0;
  display: inline;
  text-align: left;
  font-size: 20px;
}

#mokuji ul {
  display: block;
  gap: 0px;
  margin-top: 20px;
  margin-bottom: 0px;
}

@media screen and (max-width: 768px) {

  #mokuji,
  #mokuji-cat {
    padding: 12px;
  }

  .mokuji-title:before,
  .mokuji-title:before {
    font-size: 18px;
  }

  #mokuji ul {
    margin-top: 4px;
  }
}

#mokuji ul li {
  list-style-type: none;
}

#mokuji li a,
#mokuji-cat li a {
  position: relative;
  display: block;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 4px 8px 4px 30px;
  text-decoration: none;
  color: #333;
}

#mokuji li a:hover,
#mokuji-cat li a:hover {
  text-decoration: underline;
}

#mokuji li a strong,
#mokuji-cat li a strong {
  font-weight: 500 !important;
}

#mokuji .mokuji-h2,
#mokuji .mokuji-h3 {
  font-size: 15px;
  user-select: none;
}

@media screen and (max-width: 768px) {

  #mokuji .mokuji-h2,
  #mokuji .mokuji-h3 {
    font-size: 14px;
  }
}


#mokuji .mokuji-h2 {
  counter-reset: sub-counter;
  margin: 0;
  text-indent: 0;
  position: relative;
}

#mokuji .mokuji-h3 {
  text-indent: 0;
  position: relative;
}

#mokuji .mokuji-h3 a {
  position: relative;
  font-size: 90%;
  padding-left: 20px;
  margin-left: 20px;
}

#mokuji .mokuji-h2 a:before {
  position: absolute;
  left: 0;
  top: 0.3em;
  display: block;
  counter-increment: counter;
  content: counter(counter) ". ";
  margin-right: .2em;
  text-align: center;
  min-width: 23px;
}

#mokuji .mokuji-h3 a:before {
  position: absolute;
  left: 0;
  top: 0.3em;
  /* counter-increment: sub-counter;
  content: counter(counter) "." counter(sub-counter) ". "; */
  content: "\FF0D";
  margin-right: .2em;
}


@media screen and (max-width: 768px) {
  #mokuji .mokuji-h3 a {
    margin-left: 10px;
  }
}