#mokuji,
#mokuji-cat {
  position: relative;
  width: 100%;
  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);
  padding: 1.5em 1em 1em;
  border-radius: var(--swl-radius--2, 0);
  margin: 4em auto;
  counter-reset: counter;
}

@media (min-width: 960px) {

  #mokuji,
  #mokuji-cat {
    width: 92%;
  }
}

@media (min-width: 600px) {

  #mokuji,
  #mokuji-cat {
    padding: 2em;
  }
}

#mokuji::before,
#mokuji-cat::before {
  background: linear-gradient(hsla(0, 0%, 100%, 0), var(--color_bg));
  bottom: 5em;
  content: "";
  height: 4em;
  left: 0;
  opacity: .75;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

#mokuji::after,
#mokuji-cat::after {
  background: var(--color_bg);
  bottom: 0;
  content: "";
  height: 5em;
  left: 0;
  opacity: .75;
  position: absolute;
  width: 100%;
  z-index: 1;
}

div.mokuji-ttl {
  display: block;
  font-size: 1.2em;
  line-height: 1;
  position: relative;
  text-align: center;

  margin-bottom: .75em;
}

div.mokuji-ttl::before {
  content: "\e918";
  display: inline-block;
  font-family: icomoon;
  margin-right: .5em;
  padding-bottom: 2px;
  vertical-align: middle;
}

#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;
}

#mokuji-btn::before,
#mokuji-btn::after {
  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);
}

#mokuji ul {
  height: 200px;
  overflow: hidden;
}

#mokuji ul li {
  list-style: none;
  position: relative;
  line-height: 1.4;
  margin: .25em 0;
  color: #333;
}

#mokuji li a,
#mokuji-cat li a {
  width: 100%;
  padding: 2px 0;
  display: block;
  width: fit-content;
  color: #202020;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s ease 0s;
}

#mokuji li a:hover,
#mokuji-cat li a:hover {
  opacity: .8;
  text-decoration: underline;
}

#mokuji .mokuji-h2,
#mokuji .mokuji-h3 {
  user-select: none;
}

#mokuji .mokuji-h2 {
  counter-reset: sub-counter;
  margin-left: 2em;
  padding-left: 0;
  position: relative;
}


#mokuji .mokuji-h2:before {
  content: counter(counter);
  counter-increment: counter;
  border-right: 1px solid;
  display: block;
  font-family: inherit;
  letter-spacing: -.1px;
  line-height: 1.1;
  padding: 0 .5em 0 0;
  position: absolute;
  right: calc(100% + .5em);
  top: .25em;
  -webkit-transform: scale(.95);
  transform: scale(.95);
  white-space: nowrap;
  width: auto;
}

#mokuji .mokuji-h3 {
  margin-left: 4.5em;
  text-indent: 0;
  position: relative;
  font-size: .9em;
}


#mokuji .mokuji-h3:before {
  position: absolute;
  counter-increment: sub-counter;
  content: counter(counter) "-" counter(sub-counter);
  border-right: 1px solid;
  display: block;
  font-family: inherit;
  letter-spacing: -.1px;
  line-height: 1.1;
  padding: 0 .5em 0 0;
  right: calc(100% + .5em);
  top: .25em;
  -webkit-transform: scale(.95);
  transform: scale(.95);
  white-space: nowrap;
  width: auto;
}


#mokuji.open .mokuji-list {
  height: auto;
}

#mokuji.open::before,
#mokuji.open::after {
  display: none;
}