#mokuji,
#mokuji-cat {
  width: 100%;
  margin: 26px 0;
  padding: 14px;
  border: 0;
  background-color: #f6f6f6;
  box-sizing: border-box;
  counter-reset: counter;
  border-width: 1px;
  border-color: #c1c0c0;
}

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

  #mokuji,
  #mokuji-cat {
    margin: 18px 0;
    padding: 16px 10px;
  }
}

.wp-contents div.mokuji-ttl {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 0;
}

.mokuji-ttl:before,
.mokuji-ttl:before {
  content: "\76EE\6B21";
  /* content: "目次"; */
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  display: block;
  text-align: center;
  width: 100%;
}

#mokuji-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 40px;
  height: 30px;
  justify-content: center;
  direction: ltr;
  cursor: pointer;
}

#mokuji ul {
  margin-top: 14px;
}

#mokuji ul li {
  list-style: none;
  position: relative;
  font-weight: 300;
}

#mokuji li a,
#mokuji-cat li a {
  width: 100%;
  padding: 2px 0;
  display: block;
  color: #000;
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  transition: all 0.3s ease 0s;
}

#mokuji li a strong,
#mokuji-cat li a strong {
  font-weight: 500 !important;
}

#mokuji .mokuji-h2,
#mokuji .mokuji-h3 {
  user-select: none;
}

#mokuji .mokuji-h2 {
  margin: 0;
  text-indent: 0;
  position: relative;
  padding-left: 12px;
  margin-bottom: 2px;
}

#mokuji .mokuji-h2 a {
  position: relative;
  padding-left: 22px;
}

#mokuji .mokuji-h2 a:before {
  content: counter(counter) ". ";
  counter-increment: counter;
  position: absolute;
  top: 2px;
  left: 0;
}

@media screen and (max-width: 640px) {
  #mokuji .mokuji-h2 a {
    padding-left: 20px;
  }
}

#mokuji .mokuji-h3 {
  margin-left: 3.5em;
  text-indent: 0;
  position: relative;
  margin-bottom: 2px;
  list-style-type: disc;
}

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