/* --------------------
         共通 
 -------------------- */
.acg-post p:nth-child(1) > br,
.acg-post p:nth-child(2) > br{
  display: none;
}
.acg-post > *{
  margin-block: 20px;
}
.acg-post strong{
  display: block;
  text-decoration: underline;
}
.acg-post strong + br,
.acg-post strong + br + br{
  display: none;
}
.acg-post ul li:not(:last-child){
  margin-bottom: 10px;
}
.acg-post ol{
  margin-left: 10px;
}
.acg-post {
  /* 全テーブル共通 */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 1.4rem;
    table-layout: fixed;
    word-wrap: break-word;
  }

  /* ヘッダー（th） */
  table th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border: 1px solid #ccc;
  }

  /* データセル（td） */
  table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
  }

  /* スマホ対応（レスポンシブ） */
  @media screen and (max-width: 768px) {
    table {
      font-size: 0.9rem;
    }

    table th, table td {
      padding: 8px;
    }
  }
}
/* --------------------
  キャッチ部分
 -------------------- */
/* --------------------
  2カラム部分
 -------------------- */
.container{
  &:has(#aside){
    display: flex;
    align-items: start;
    gap: 60px;
    width: min(100% - 4rem , 1200px);
    margin-inline: auto;
    margin-bottom: 70px;
    @media (max-width: 768px) {
      flex-direction: column;
    }    
    #main{
      width: 75%;
      @media (max-width: 768px) {
        width: 100%;
      }
      .pankuzu{
        margin: 20px 0;
      }
      .inner{
        width: 100%;
        padding-bottom: 0;
      }
    }
    #aside{
      width: 25%;
      display: flex;
      flex-direction: column;
      gap: 20px;
      position: var(--position,static);
      inset-block-start: 20px;
      @media (max-width: 768px) {
        width: 100%;
        position: static;
      }
      h2{
        background: var(--color,#333);
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 120%;
        text-align: center;
        color: #fff;
        padding-block: 10px;
      }
      a{
        text-decoration: none;
        color: #000;
        font-weight: 400;
        font-size: 80%;
        @media (max-width: 768px) {
          font-size: 90%;
        }
      }
    }
    /* 最新の投稿 */
    #block-3{
      ul{
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      li{
        display: flex;
        align-items: start;
        gap: 8px;
        div{
          width: 30%;
        }
        a{
          width: 70%;
          line-height: 1.4;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          overflow: hidden;
        }
      }
    }
    /* アーカイブ */
    #block-5{}
    /* カテゴリー */
    #block-6{
      li{
        a{
          position: relative;
          display: block;
          padding-left: 10px;
          &:before{
            position: absolute;
            inset-block: 0;
            inset-inline-start: 0;
            content: "";
            display: block;
            margin: auto;
            width: 3px;
            height: 3px;
            background: #999;
            border-radius: 100vmax;
          }
        }
      }
    }
  }
  &:has(.sidebar-right){
    flex-direction: row;
  }
  &:has(.sidebar-left){
    flex-direction: row-reverse;
  }
}
/* --------------------
  日付、カテゴリー
 -------------------- */
 .acg-meta{
  display: flex;
  align-items: center;
  gap: 20px;
  border-block: 1px solid #ddd;
  padding-block: 15px;
  .acg-date{
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .dli-clock {
    display: inline-block;
    vertical-align: middle;
    color: #333;
    line-height: 1;
    position: relative;
    width: 1em;
    height: 1em;
    border: 0.1em solid currentColor;
    border-radius: 50%;
    box-sizing: content-box;
  }
  .dli-clock::before, .dli-clock::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 50%;
    background: currentColor;
    border-radius: 0.1em;
    transform: translate(-0.05em, 0.05em);
  }
  .dli-clock::before {
    width: 0.1em;
    height: 0.4em;
  }
  .dli-clock::after {
    width: 0.35em;
    height: 0.1em;
  }
  .acg-categories{
    list-style-type: none;
    padding-left: 0;
    li{
      a{
        color: #000;
        display: flex;
        align-items: center;
        gap: 5px;
      }
    }
  }
  .dli-feed {
    display: inline-block;
    vertical-align: middle;
    color: #333;
    line-height: 1;
    position: relative;
    width: 0.9em;
    height: 1em;
    border: 0.1em solid currentColor;
    border-radius: 0.1em;
    box-sizing: content-box;
  }
  .dli-feed::before, .dli-feed::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    height: 0.1em;
    background: currentColor;
    border-radius: 0.1em;
  }
  .dli-feed::before {
    width: 70%;
    box-shadow: 0 0.25em 0 0 currentColor;
  }
  .dli-feed::after {
    margin-top: 0.5em;
    width: 45%;
  }
 }
/* --------------------
  関連記事
 -------------------- */
 .acg-related{
  ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
  }
  li{
    border: 2px solid #ccc;
    padding: 10px;
  }
  a{
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: start;
    gap: 10px;
  }
  .thumbnail{
    width: 30%;
    img{
      width: 100% !important;
      aspect-ratio: 4/3;
      object-fit: cover;
    }
  }
  .content-wrap{
    width: 70%;
  }
  .title{
    font-weight: bold;
    font-size: 110%;
    margin-bottom: 10px;
  }
  .excerpt{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
 }
/* --------------------
  目次
 -------------------- */
 .wpacg-toc{
  padding: 20px !important;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: 7px solid var(--color,#333);
  & > h2{
    border-bottom: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    &:before{
      position: absolute;
      inset-block: 0;
      inset-inline-end: 0;
      content: "×";
      border: 1px solid #333;
      color: #333;
      border-radius: 100vmax;
      font-weight: 100 !important;
      aspect-ratio: 1/1;
      display: grid;
      place-content: center;
      font-size: 90%;
      line-height: 1;
      transition-duration: .3s;
    }
    &.active{
      &:before{
        transform: rotate(45deg);
      }
    }
    &:after{
      display: none !important;
    }
    &:hover{
      cursor: pointer;
    }
  }
  ul{
    list-style: none !important;
    padding-inline-start: 40px !important;
  }
  li{
    a{
      text-decoration: none;
      color: #000;
      line-height: 1.4;
    }
  }
  & > ul{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-inline-start: 0 !important;
    & > li{
      & > a{
        display: flex;
        align-items: center;
        gap: 5px;
        span{
          background: var(--color,#333);
          color: #fff;
          aspect-ratio: 1/1;
          display: grid;
          place-content: center;
          width: 35px;
          min-width: 35px;
          border-radius: 100vmax;
          @media (max-width: 768px) {
            width: 8%;
            min-width: 8%;
          }
        }
      }
    }
  }
  .wpacg-h2-anchor{}
  .wpacg-h3-anchor{}
  .wpacg-h4-anchor{}
 }