#mokuji,
#mokuji-cat {
  background: #eee;
  border: 2px solid #d2d0c5;
  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%;
  padding: 10px 20px 10px 10px;
  position: relative;
  counter-reset: counter;
  line-height: 1.3;
  /* margin-bottom: 1em; */
  width: 100%;
  max-width: 700px;
  margin: 0 auto 20px;
}

@media screen and (max-width: 768px) {

  #mokuji,
  #mokuji-cat {
    padding: 8px 14px 8px 10px;
  }
}


#mokuji-btn {
  display: flex;
  align-items: center;
  width: 35px;
  height: 30px;
  justify-content: center;
  direction: ltr;
  cursor: pointer;
}

.mokuji-ttl {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mokuji-ttl:before,
.mokuji-ttl:before {
  content: "\76EE\6B21";
  /* content: "目次"; */
  line-height: 1.45;
  margin: 0;
  padding: 0;
  display: inline;
  text-align: left;
  vertical-align: middle;
  font-size: 120%;
}

#mokuji ul {
  display: block;
  gap: 0px;
  margin-top: 12px;
  margin-bottom: 0px;
}

#mokuji ul li {
  list-style-type: none;

}

#mokuji li a,
#mokuji-cat li a {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding: 6px;
  text-decoration: none;
  color: #584752;
}

#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: 95%;
  user-select: none;
}

#mokuji .mokuji-h2 {
  counter-reset: sub-counter;
  margin: 0;
  text-indent: 0;
  position: relative;
}

#mokuji .mokuji-h3 {
  margin-left: 1.2em !important;
  text-indent: 0;
  position: relative;
}

#mokuji .mokuji-h3 a {
  font-size: 90%;
}

#mokuji .mokuji-h2 a:before {
  counter-increment: counter;
  content: counter(counter) ". ";
  margin-right: .2em;
}

#mokuji .mokuji-h3 a:before {
  counter-increment: sub-counter;
  content: counter(counter) "." counter(sub-counter) ". ";
  margin-right: .2em;
  flex-shrink: 0;
}