.news-container-wrapper {
  display: grid;
  gap: 20px;

  article {
    padding: 5vw 7vw 6vw;
    background-color: rgba(255, 255, 255, 0.96);
    display: grid;
    row-gap: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;

    .news-content-header {
      display: flex;
      align-items: center;
      gap: 16px;

      .news-content-date {
        color: #00A73C;
        font-family: 'ZenKakuGothicAntique-Bold', sans-serif;
        font-weight: bold;
        font-size: clamp(14px, 1.2vw, 16px);
      }
      .news-content-category {
        display: flex;
        align-items: center;
        gap: 8px;
        list-style: none;

        li {
          padding: 0.1vw 0.5vw;
          border-radius: 20px;
          font-size: clamp(11px, 0.8vw, 15px);
          letter-spacing: 1px;
          font-weight: 400;
          color: #fff;
          width: 6vw;
          height: 1.5vw;
          min-height: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
          text-decoration: none;
          background-color: #00a73c;
        }
      }
    }
    .news-content-title {
      font-family: 'Zen Kaku Gothic Antique', sans-serif;
      font-weight: 600;
      font-size: clamp(24px, 4vw, 26px);
      margin-bottom: 80px;
      letter-spacing: 2px;
    }
    .news-content-text {
      display: grid;
      gap: 20px;
      font-family: 'ZenKakuGothicAntique-Medium', sans-serif;
      
      .wp-caption {
        width: auto !important;
      }
    }

    img {
      width: auto;
    }
  }
  .news-link {
    text-decoration: none;
    display: inline-block;
    margin: 0 auto;
  }
}

.news-list-container-wrapper {
  position: relative;
  margin-top: 60px;
  min-height: 800px;

  .news-filter-content {
    display: grid;
    gap: 20px;
    align-content: flex-start;
  }

  .news-filter {
    background-color: #00A73C;
    width: 400px;
    height: 640px;
    position: absolute;
    top: 0px;
    left: calc(calc(8vw + 20px) * -1);
    padding: 40px 60px;
    display: grid;
    gap: 40px;
    align-content: flex-start;

    h2 {
      color: #fff;
      font-family: 'Book Antiqua', serif;
      font-size: clamp(22px, 4vw, 24px);
      border-bottom: 1px solid #FFFFFF;
      padding-bottom: 8px;
      letter-spacing: 1.5px;
    }
  }
  .news-filter-list {
    display: grid;
    gap: 16px;
    list-style: none;

    li a {
      font-size: clamp(14px, 1.2vw, 16px);
      color: #fff;
      text-decoration: none;
      font-weight: 400;
    }
  }

  .news-filter-list-category {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-filter-list-archive {
    grid-template-columns: repeat(4, 1fr);
    letter-spacing: 1px;
  }
}

.news-list-content {
  display: grid;
  padding-left: calc(400px - calc(8vw + 20px) + 8vw);
  padding-right: 40px;;

  /* front-page.phpのnews-listスタイルを適用 */
  .news-item {
    border-bottom: 1px solid #00a73c;
    padding: 1.3vw;
    position: relative;
  }

  .news-item:first-child {
    border-top: 1px solid #00a73c;
  }

  .news-item:last-child {
    border-bottom: 1px solid #00a73c;
  }

  .news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .news-item-container {
    display: flex;
    column-gap: 8px;
  }

  .news-date {
    font-size: clamp(16px, 1.2vw, 22px);
    color: #00a73c;
    font-weight: 800;
    min-width: 6vw;
  }

  .news-tags {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 5px;
    flex: 1;
  }

  .news-tag {
    padding: 0.1vw 0.5vw;
    border-radius: 20px;
    font-size: clamp(11px, 0.8vw, 15px);
    letter-spacing: 1px;
    font-weight: 400;
    color: #fff;
    width: 6vw;
    height: 1.5vw;
    min-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: #00a73c;
  }



  .news-arrow {
    color: #00a73c;
    font-size: clamp(20px, 1.4vw, 22px);
    font-weight: 600;
    align-items: center;
    position: absolute;
    right: 0;
    top: 35%;
    text-decoration: none;
  }

  .news-description {
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
    margin-top: 0.8vw;

    a {
      font-size: clamp(14px, 1.1vw, 18px);
      text-decoration: none;
      color: black;
      line-height: 1.6;
    }
  }
}

.pagination nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 3vw auto 0;

  a {
    width: 28px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-weight: bold;
    padding-bottom: 5px;

    img {
      width: 7px;
    }
  }
  a.current {
    color: #00A73C;
    border-bottom: 2px solid #00A73C;
  }

  .pagination-icon img {
    width: 20px;
  }

  .pagination-numbers {
    display: flex;
    align-items: center;
    gap: 12px;

    .pagination-dots {
      color: #000000;
      font-size: 16px;
      font-family: 'Zen Kaku Gothic Antique', sans-serif;
      font-weight: bold;
      padding: 0 5px;
    }
  }

  /* PC版表示（820px以上） */
  .pagination-pc {
    display: flex;
  }

  .pagination-sp {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .news-container-wrapper {
    article {
      padding-block: 60px;

      .news-content-header {
        .news-content-category {
          li {
            width: 8vw;
            height: 2vh;
          }
        }
      }
    }
  }
  .news-list-container-wrapper {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 60px;
    min-height: auto;

    .news-filter {
      position: static;
      width: 100%;
      height: auto;
      padding: 40px 30px;

      .news-filter-list-category {
        display: flex;
        flex-wrap: wrap;
      }
      .news-filter-list-archive {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
      }
    }

    .news-item-container {
      gap: 2vw;
    }

    .news-list-content {
      padding: 0;

      .news-tag {
        width: 8vw;
      }
    }
  }
}

@media (max-width: 819px) {
  .news-container-wrapper {
    article {
      .news-content-title {
        margin-bottom: 40px;
      }
      .news-content-header {

        align-items: flex-start;

        .news-content-category {

          display: flex;
          flex-wrap: wrap;
          gap: 4px;

          li {
            width: 65px;
            height: 18px;
          }
        }
      }
    }
  }

  .news-list-container-wrapper {
    .news-list-content {
      .news-item {
        padding: 3vw 2vw;
      }

      .news-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .news-tags {
        justify-content: flex-start;
        column-gap: 5px;
      }
      
      .news-tag {
        width: 65px;
        height: 18px;
      }
      
      .news-arrow {
        margin-left: 0;
        align-self: flex-end;
      }

      .news-description{
        margin-top: 1.5vw;
      }
    }

    .pagination nav {
      margin: 10vw auto 0;

      /* スマホ版表示（819px以下） */
      .pagination-pc {
        display: none;
      }

      .pagination-sp {
        display: flex;
      }
    }
  }
}

@media (max-width: 375px) {
  .news-container-wrapper {
    article {
      padding: 5vw 6vw 6vw;

      .news-content-header {
        gap: 10px;
      }
    }
  }
}