#mokuji,
#mokuji-cat {
  background: #F9F8F2;
  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%;
  max-width: 700px;
  margin-bottom: 1em;
  padding: 16px 20px 16px 16px;
  margin: 30px auto;
  position: relative;
  counter-reset: counter;
  line-height: 1.3;
}

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

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

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

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

@media screen and (max-width: 767px) {
  #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: 8px 8px 8px 30px;
  text-decoration: none;
  color: #1E2533;
}

#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: 16px;
  user-select: none;
}

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

  #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 {
  font-size: 90%;
}

#mokuji .mokuji-h2 a:before {
  position: absolute;
  left: 0;
  top: .46em;
  display: block;
  counter-increment: counter;
  content: counter(counter) ". ";
  margin-right: .2em;
  text-align: center;
  min-width: 23px;
}

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