#mokuji,
#mokuji-cat {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto 3rem;
  padding: 2em;
  background: linear-gradient(-45deg, transparent 25%, var(--color_gray) 25%, var(--color_gray) 50%, transparent 50%, transparent 75%, var(--color_gray) 75%, var(--color_gray));
  background-clip: padding-box;
  background-size: 4px 4px;
  border-bottom: 4px double var(--color_border);
  border-top: 4px double var(--color_border);
}

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

  #mokuji,
  #mokuji-cat {
    padding: 1.5em 1em 1em;
  }

}

#mokuji:after {
  background: var(--color_bg);
  bottom: 0;
  content: "";
  height: 7em;
  left: 0;
  opacity: 0.45;
  position: absolute;
  width: 100%;
  z-index: 1;
}

#mokuji.open::after {
  display: none;
}

#mokuji .mokuji-box {}

#mokuji .mokuji-ttl {
  display: block;
  font-size: 1.2em;
  line-height: 1;
  position: relative;
  text-align: center;
  margin-bottom: 0.8em;
}

#mokuji .mokuji-ttl:before {
  content: "\e918";
  display: inline-block;
  font-family: icomoon;
  margin-right: .5em;
  padding-bottom: .2em;
  vertical-align: middle;
  font-size: 1em;
}

#mokuji ol {
  counter-reset: counter;
  max-height: 210px;
  overflow: hidden;
  transition: .4s;
}

#mokuji.open ol {
  max-height: none;
}

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

  margin: .6em 0;
}

#mokuji ol li a,
#mokuji-cat ol li a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: .5em;
  transition: 0.3s;
  color: inherit;
  text-decoration: none;
}


#mokuji ol li a:hover,
#mokuji-cat ol li a:hover {
  opacity: 0.6;
}

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

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

#mokuji .mokuji-h2:has(.mokuji-h3) {
  margin-top: 1em;
}

#mokuji .mokuji-h3 {
  margin-left: 1.5em !important;
  text-indent: 0;
  font-size: 90%;
}

@media only screen and (max-width: 600px) {
  #mokuji .mokuji-h3 a {
    font-size: 98%;
  }
}

#mokuji .mokuji-h2 a:before {
  flex-shrink: 0;
  counter-increment: counter;
  content: counter(counter);
  border-right: 1px solid #333;
  padding: 0 .5em 0 0;
}

#mokuji .mokuji-h3 a:before {
  flex-shrink: 0;
  counter-increment: sub-counter;
  content: counter(counter) "-" counter(sub-counter);
  border-right: 1px solid #333;
  padding: 0 .5em 0 0;
}

.mokuji-btn {
  background-color: #f7f7f7;
  border: rgba(0, 0, 0, .2);
  border-radius: 5em;
  box-shadow: 0 0 0 1px #bbb;
  color: #333;
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin: .75em auto 0;
  min-width: 6em;
  padding: .5em 1em;
  position: relative;
  transition: box-shadow .25s;
  z-index: 2;
  cursor: pointer;
}

@media only screen and (max-width: 600px) {
  .article .mokuji-btn {
    font-size: 0.9em;
  }
}

.mokuji-btn:after,
.mokuji-btn:before {
  border-top-color: inherit;
  border-top-style: dotted;
  border-top-width: 3px;
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  top: calc(50% - 1px);
  transition: border-color .25s;
  width: 100%;
  width: 22px;
}

.mokuji-btn:before {
  right: calc(100% + 1em);
}

.mokuji-btn:after {
  left: calc(100% + 1em);
}