/*v1.0.13*/
/************************************************************/
/* 目次 ***************************************************/
/************************************************************/

.post-toc {
  background-color: #eee;
  min-width: 40%;
  /* 幅の最小値を40%に設定 */
  max-width: fit-content;
  /* コンテンツに応じて幅を広げる */
  margin-left: auto;
  /* 左: 自動調整 */
  margin-right: auto;
  /* 右: 自動調整 */
  margin-top: var(--ly-elementTopMargin);
  padding: calc(var(--ly-elementPadding) * 2);
  /*2倍にしている*/
  margin-bottom: calc(var(--ly-elementBottomMargin) * 2);
  border-radius: 10px;
  text-align: center;
}

.post-toc h2 {
  border-bottom: none;
  text-align: center;
  width: fit-content;
}

.post-toc ul {
  list-style-type: none;
  text-align: left;
}

.post-toc ul li {
  content: " ";
  /*ダミー*/
  border-bottom: 1px dotted #999;
}

.post-toc ul li a {
  text-decoration: none;
  color: #222;
  line-height: 2.2;
  color: #222;
  font-size: 0.9rem;
  /* フォントを少し小さく */
}

.post-toc ul li a:hover {
  text-decoration: underline;
}

.post-toc ul li.toc-h1 a {
  font-weight: bold;
}

.post-toc ul li.toc-h2 a {
  content: " ";
  /*ダミー*/
}

.post-toc ul li.toc-h3 a {
  content: " ";
  /*ダミー*/
}

@media (max-width: 768px) {
  .post-toc {
    margin-top: calc(var(--ly-elementTopMargin) * 2);
    margin-bottom: calc(var(--ly-elementTopMargin) * 2);
    padding: 1.5rem;
    border-radius: 10px;
  }
}
