html,main {
    overflow-x: hidden;
}

.pageHero {
  padding-top: 15.5rem;
  @media screen and (max-width: 767px) {
    padding-top: 12rem;
  }
}

.breadcrumb {
  margin-top: 0.3rem;
}

@media screen and (max-width: 767px) {
  .container1040 {
    padding-inline: 3rem;
  }
  .container1100 {
    padding-inline: 0;
  }
}

/* メインコンテンツ */
.topics-wrap {
  display: flex;
  column-gap: 4%;
  margin-top: 5rem;
  padding-bottom: 8rem;
  .topics-main {
    width: calc(96% - 19.75rem);
    .main-article {
      .post-list-wrap {
        .post-list {
          display: grid;
          grid-template-columns: repeat(3,1fr);
          gap: 1.4rem;
          .post-list__item {
            a {
              padding: 1.9rem 1.8rem;
              background: var(--colorWhite);
              border-radius: 2rem;
              display: block;
              transition: 0.3s;
              .post-list__thumb {
                img {
                  object-fit: cover;
                  object-position: center;
                  aspect-ratio: 240 / 135;
                }
              }
              .post-list__meta {
                padding-top: 1.5rem;
                &.post-list__meta:has(.post-list__category:empty) {
                  .post-list__date {
                    margin-top: 0;
                  }
                }
                .post-list__category {
                  font-size: 1.6rem;
                  font-weight: 700;
                  font-family: var(--familyZenMaruGothic);
                }
                .post-list__date {
                  font-size: 1.4rem;
                  font-family: var(--familyZenMaruGothic);
                  font-weight: 700;
                  line-height: 1.83;
                  margin-top: 0.3rem;
                }
                .post-list__title {
                  display: -webkit-box;
                  -webkit-line-clamp: 2;
                  -webkit-box-orient: vertical;
                  overflow: hidden;
                  font-size: 1.5rem;
                  line-height: 1.57;
                  margin-top: 1rem;
                }
                .post-list__businessWrap {
                  display: flex;
                  flex-wrap: wrap;
                  margin-top: 1rem;
                  gap: 0.185rem;
                  .post-list__business {
                    font-size: 1rem;
                    padding: 0.4rem 0.6rem;
                    border-radius: 0.3rem;
                    width: fit-content;
                  }
                }
              }
            }
          }
        }
      }
      .pagenation {
        margin: 6.5rem auto 0;
        width: fit-content;
        .wp-pagenavi {
          display: flex;
          gap: 0.8rem;
          .current {
            color: var(--colorSocioakGreen);
            border-color: var(--colorSocioakGreen);
            font-weight: 400;
          }
          a,span {
            width: 3.2rem;
            height: 3.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #D9D9D9;
            background: var(--colorWhite);
            font-size: 1.4rem;
            border-radius: 0.2rem;
          }
          .previouspostslink {
            position: relative;
            &::before {
              content: "";
              display: inline-block;
              vertical-align: middle;
              color: #333;
              line-height: 1;
              width: 0.7rem;
              height: 0.7rem;
              border: 0.1em solid currentColor;
              border-left: 0;
              border-bottom: 0;
              box-sizing: border-box;
              transform: translateX(25%) rotate(-135deg);
            }
          }
          .nextpostslink {
            position: relative;
            &::before {
              content: "";
                display: inline-block;
                vertical-align: middle;
                color: var(--colorBlack);
                line-height: 1;
                width: 0.7rem;
                height: 0.7rem;
                border: 0.1em solid currentColor;
                border-left: 0;
                border-bottom: 0;
                box-sizing: border-box;
                transform: translateX(-25%) rotate(45deg);
            }
          }
        }
      }
    }
  }
  @media (hover: hover) {
    .topics-main {
      .main-article {
        .post-header {
          .post__meta--right {
            display: contents;
          }
        }
        .post-list-wrap {
          .post-list {
            .post-list__item {
              a:hover {
                opacity: 0.8;
              }
            }
          }
        }
      }
    }
  }
  @media screen and (max-width: 767px) {
    display: grid;
    gap: 7rem;
    margin-top: 3rem;
    padding-bottom: 0;
    .topics-main {
      padding-inline: 3rem;
      width: 100%;
      .main-article {
        .post-list-wrap {
          .post-list {
            grid-template-columns: 1fr;
            .post-list__item {
              a {
                .post-list__meta {
                  padding-top: 2.5rem;
                  .post-list__date {
                    margin-top: 0.7rem;
                  }
                  .post-list__title {
                    margin-top: 1.8rem;
                    line-height: 1.76;
                  }
                  .post-list__businessWrap {
                    margin-top: 1.2rem;
                    .post-list__business {
                      padding-block: 0.6rem;
                    }
                  }
                }
              }
            }
          }
        }
        .pagenation {
          margin-top: 2.5rem;
          .wp-pagenavi {
            gap: 0.5rem;
            a, span {
              width: 3rem;
              height: 3rem;
              font-size: 1.2rem;
            }
          }
        }
      }
    }
  }
}

.topicks-ttl {
  background-color: var(--colorWhite);
  border-radius: 2rem;
  font-family: var(--familyZenMaruGothic);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 2rem 3rem;
  margin-bottom: 2.3rem;
  @media screen and (max-width: 767px){
    padding: 1.8rem 2.5rem;
  }
}

/* サイドバー */
.topics-side {
  width: 19.75rem;
  .side-block {
    margin-bottom: 4.9rem;
    .search-form {
      position: relative;
      .search-text {
        padding-left: 1.2rem;
        width: 100%;
        font-size: 1.4rem;
        font-family: var(--fontRoboto);
        border: 1px solid #D9D9D9;
        &::placeholder {
          color: #D9D9D9;
        }
      }
      .submit-sidebar {
        position: absolute;
        top: 0;
        right: 0;
        background: #3C1F15;
        height: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
    .side-block__head {
      color: #3C1F15;
      font-size: 1.8rem;
      font-weight: 700;
      font-family: var(--familyZenMaruGothic);
      padding-left: 1rem;
    }
    .side-block__lists {
      margin-top: 0.8rem;
      &.side-block__lists--tag {
        .side-block__item a {
          font-size: 1.2rem;
        }
      }
      .side-block__item {
        a {
          display: block;
          font-size: 1.5rem;
          padding: 0.8rem 1.3rem 0.8rem 2rem;
          position: relative;
          transition: 0.3s;
          border-bottom: 1px solid rgba(174, 183, 192,0.5);
          &::before {
            content: "";
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: var(--colorBlack);
            width: 0.5rem;
            height: 0.1rem;
          }
          &::after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            background-image: url(../../images/common/icon-arrow.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            width: 0.8rem;
            height: 0.8rem;
          }
        }
      }
    }
  }

  @media (hover: hover)  {
    .side-block {
      .submit-sidebar:hover {
        cursor: pointer;
      }
      .side-block__lists {
        .side-block__item {
          a:hover {
            color: #047F4A;
            &::before {
              background: #047F4A;
            }
            &::after {
              background-image: url(../../images/common/icon-arrow-green.svg);
            }
          }
        }
      }
    }
  }
  @media screen and (max-width: 767px) {
    width: 100%;
    padding: 3rem 3rem 12rem;
    background: var(--colorWhite);
    .side-block {
      font-size: 2.2rem;
      margin-bottom: 3rem;
      .search-form {
        .search-text {
          padding-block: 0.4rem;
          font-size: 1.5rem;
        }
      }
      .side-block__lists {
        &.side-block__lists--tag {
          .side-block__item a {
            font-size: 1.5rem;
          }
        }
        .side-block__item {
          a {
            font-size: 1.5rem;
            padding-block: 1rem;
          }
        }
      }
    }
  }
}


.topics-single {
  width: calc(96% - 19.75rem);
  .main-article {
    background: var(--colorWhite);
    border-radius: 2rem;
    padding: 4rem 3rem 5rem 5rem;
    .post-header {
      padding-bottom: 2.4rem;
      border-bottom: 1px solid #AEB7C0;
      .post__meta {
        display: grid;
        grid-template-columns: 9.2rem auto;
        .post__type {
          font-size: 1.8rem;
          font-weight: 700;
          padding-left: 0.5rem;
          position: relative;
          &::after {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            background: var(--colorGreen);
            width: 0.3rem;
            height: 3rem;
          }
        }
        @media screen and (max-width: 767px) {
          &:has(.post__category:empty) .post__type::after {
            display: none;
          }
        }
        @media screen and (min-width: 768px) {
          &:not(:has(.post__category:not(:empty), .post__tagWrap)) .post__type::after {
            display: none;
          }
        }
      }
      .post__meta--right.for-pc {
        display: grid;
        gap: 2rem;
      }
      .post__category {
        font-size: 1.6rem;
        font-weight: 700;
        padding-left: 1.8rem;
        margin-top: 0.2rem;
        &:empty {
          display: none;
        }
      }
      .post__tagWrap {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem 0.5rem;
        padding-left: 1.8rem;
        .post__tag {
          font-size: 1.2rem;
          padding: 0.3rem 1.4rem;
          border-radius: 0.3rem;
          width: fit-content;
        }
        &.for-sp {
          display: none;
        }
      }
      .post__date {
        font-size: 1.6rem;
        font-weight: 700;
        font-family: var(--familyZenMaruGothic);
        line-height: 1.4375;
        margin-top: 2.5rem;
      }
      .post__head {
        font-size: 2.4rem;
        font-weight: 700;
        font-family: var(--familyZenMaruGothic);
        line-height: 1.667;
        margin-top: 1.5rem;
      }
    }
    .article-main {
      padding-top: 1.5rem;
      h3 {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.875;
        letter-spacing: 0.033em;
        margin-bottom: 2rem;
      }
      p {
        font-size: 1.6rem;
        letter-spacing: 0.033em;
        line-height: 1.875;
        margin-bottom: 2rem;
        padding-left: 1.3rem;
        &:last-child {
          margin-bottom: 0;
        }
      }
      a {
        font-size: 1.6rem;
        letter-spacing: 0.033em;
        line-height: 1.875;
        color: var(--colorGreen);
        word-break: break-all;
      }
    }
  }
  .simpleButton {
    margin: 3.5rem auto 0;
    display: flex;
    min-width: 25.6rem;
  }
  @media screen and (max-width: 767px) {
    padding-inline: 3rem;
    width: 100%;
    .main-article {
      padding: 2rem;
      .post-header { 
        .post__head {
          font-size: 2rem;
        }
        .post__meta--right.for-pc {
          display: none;
        }
        .post__tagWrap {
          grid-column: 1 / 3;
          grid-row: 2 / 3;
          padding-left: 0;
          margin-top: 2rem;
          &.for-sp {
            display: flex;
          }
        }
      }
      .article-main {
        padding-top: 4rem;
        .wp-block-group {
          padding-left: 0;
        }
        iframe {
          aspect-ratio: 500 / 375;
          width: 100%;
          height: auto;
        }
      }
    }
    .simpleButton {
      min-width: 31.2rem;
    }
  }
}

.footer {
  .bg-leaf {
    display: none;
  }
}