/*override*/
main {
  overflow: unset;
}

#contents {
  min-width: 0;
}

#page-aside {
  width: 240px;
}

#page-aside ul li a {
  padding: 15px 20px 15px 10px;
}

@media (max-width: 767px) {
  #contents {
    width: 100%;
  }
}

/*sitesync plugin icon*/
.-mt8 {
  margin-right: 5px;
  display: inline-block;
  border-radius: 100px;
  padding: 0px 10px;
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 2rem;
}

.-mt8.-s3 {
  background: #fff;
  border: solid 1px #e3a917;
  color: #e3a917;
}

.-mt8.-rsync {
  background: #fff;
  border: solid 1px #e82b25;
  color: #e82b25;
}

.-mt8.-ftp {
  background: #fff;
  border: solid 1px #1f76c0;
  color: #1f76c0;
}

/* asset-image */
#single-block .asset-image {
  max-width: 910px;
}

/* pre */
#single-block pre {
  overflow-x: scroll;
  box-sizing: border-box;
  margin: 1em 0 0 0;
  padding: 1.5rem;
  background-color: #f3f3f3;
  font-size: 1.6rem;
  line-height: 150%;
}

/* m-table */
#single-block .m-table {
  margin-top: 2em;
}

#single-block .m-table thead,
#single-block .m-table tfoot {
  background: #f9f9f9;
}

#single-block .m-table th,
#single-block .m-table td {
  padding: .75rem 1.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

#single-block .m-table.w-1 tr th:first-child,
#single-block .m-table.w-1 tr td:first-child {
  width: 10% !important;
}

#single-block .m-table td .m-required {
  color: red;
}

#single-block .m-table th p:first-child,
#single-block .m-table td p:first-child {
  margin-top: 0px;
}



#single-block.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-areas:
    "title toc"
    "content toc";
  gap: 2rem;
}

#single-block .main-title {
  grid-area: title;
  min-width: 0;
}

#single-block .main-contents {
  grid-area: content;
  min-width: 0;
  overflow-wrap: anywhere;
}

#single-block .toc-wrap {
  grid-area: toc;
  min-width: 0;
  background: #fafbff;
  padding: 10px;
  border-left: 1px solid #ddd;
}

#single-block .toc-wrap p {
  color: #468ed7;
  font-size: 3rem;
  margin: 0;
  border-bottom: solid 1px #d4d5d8;
}


#single-block .toc {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: scroll;
  margin-top: 15px;
}

#single-block .toc ul {
  margin: 0;
  padding-left: 0;
  margin-top: 10px;
}

#single-block .toc li {
  list-style: none;
}

#single-block .toc>ul>li::before {
  content: "・";
  width: 18px;
  height: 20px;
  display: inline-block;
}

#single-block .toc a {
  text-decoration: none;
  color: #3d3d3d;
  opacity: .8;
  font-size: 16px;
}

#single-block .toc a:hover {
  opacity: 1;
  text-decoration: underline;
}

#single-block .toc a.is-active {
  opacity: 1;
  font-weight: bold;
  color: #0065B4;
  text-decoration: none;
}

#single-block .toc a.toc-h3 {
  padding-left: 0.5rem;
  font-size: 14px;
  display: flex;
}

#single-block aside {
  margin-right: 0;
}

#single-block .toc a.toc-h3::before {
  content: "▶︎";
  display: inline-block;
  width: 10px;
  height: 10px;
  padding-right: 5px;
  color: #aebdd8;
}

@media (max-width: 1024px) {
  #single-block.layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "toc"
      "content";
  }

  #single-block .toc-wrap {
    height: 200px;
    overflow-y: scroll;
  }

  #single-block .toc {
    position: static;
    max-height: none;
    border-left: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
  }
}