@charset "UTF-8";

#mokuji,
#mokuji-cat {
  width: 100%;
  counter-reset: counter;
  margin-top: 55px;
  padding: 24px 40px;
  background: #f5f5f5;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  #mokuji,
  #mokuji-cat {
    margin: 30px auto 40px;
    padding: 20px;
  }
}

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

.mokuji-ttl:before {
  content: "INDEX";
  display: block;
  width: 100%;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #007ec6;
}

#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: 12px;
  padding-left: 0;
}

#mokuji ul li {
  list-style-type: none;
  position: relative;
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  #mokuji ul li {
    font-size: 14px;
  }
}

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

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

#mokuji .mokuji-h2,
#mokuji .mokuji-h3 {
  margin-top: 10px;
  user-select: none;
}

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

#mokuji .mokuji-h2 a {
  position: relative;
  padding-left: 19px;
  width: fit-content;
}

#mokuji .mokuji-h2 a:before {
  content: counter(counter) ". ";
  counter-increment: counter;
  position: absolute;
  top: 2px;
  left: 0;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

#mokuji .mokuji-h3 {
  margin-left: 1em;
  text-indent: 0;
  position: relative;
  margin-bottom: 8px;
}

#mokuji .mokuji-h3 a {
  position: relative;
  font-size: 90%;
  padding-left: 17px;
  width: fit-content;
}

#mokuji .mokuji-h3 a:before {
  content: counter(sub-counter) ". ";
  counter-increment: sub-counter;
  position: absolute;
  top: 2px;
  left: 0;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
