.news-pagination {
    margin-top: 80px;

    @media (max-width: 1000px) {
        margin-top: 60px;
    }
}


.single-content {
    position: relative;
    width: 100%;
    max-width: calc(900px + (20px * 2));
    padding-inline: 20px;
    margin-inline: auto;
    box-sizing: border-box;
}
.single-content__header {
    .news-event__category {
      margin-bottom: 16px;
    }
    .single-ttl {
      font-size: 30px;
      font-weight: 500;
      color: var(--color-main);
      margin-bottom: 0;

      @media (max-width: 600px) {
        font-size: 24px;
      }
    }
    time {
        display: block;
        margin-top: 8px;
    }
}

.single-content__body {
  margin-top: 60px;

  > *:first-child {
    margin-top: 0 !important;
  }

  > * + * {
    margin-top: 24px;
  }

  p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 0;

    + *:not(h2, h3, h4) {
        margin-top: 15px;
    }
  }

  h2 {
    font-size: 22px;
    font-weight: 500;
    padding: 10px 16px;
    margin-top: 60px;
    margin-bottom: 16px;
    background-color: #f4f3e1;
    letter-spacing: 0.05em;
    border-radius: 6px;

    + *:not(h2) {
        margin-top: 15px;
    }
  }

  h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-main);
    letter-spacing: 0.05em;

    + *:not(h2) {
        margin-top: 15px;
    }
  }

  h4 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--color-main);
    letter-spacing: 0.04em;
    
    + *:not(h2) {
        margin-top: 15px;
    }
  }

  strong {
    font-weight: var(--font-weight-black);
  }

  a {
    color: #6d8eab;

    &:hover {
        text-decoration: none;
    }
  }

  .wp-block-image {
    margin: 24px 0;
  }

  .wp-block-embed__wrapper {
    position: relative;

    iframe {
      width: 100%;
      height: 100%;
      border: none;
      aspect-ratio: 16 / 9;
    }
  }
}

.btn.all {
    text-align: center;
    margin-top: 50px;

.btn-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 216px;
    min-height: 56px;
    padding: 14px 48px 14px 34px;
    border-radius: 30px;
    background-color: #AB9253;
    color: var(--color-white);
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;

    &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 28px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
    transform: translateY(-50%);
    }

    &:hover,
    &:focus-visible {
    background-color: var(--color-white);
    color: #AB9253;

    &::after {
        border-left-color: #AB9253;
    }
    }
}
}

/* ==============================================
   news一覧：サムネイル付きカードグリッド
   tmpl/common/news-card-list.php
   ベースは interview.css の .interview-card / .interview-card-grid。
   列数・gap 等を変えたい場合は .news-card-grid で .interview-card-grid を上書きする。
   ここでは news 固有クラス（.news-card*）で上書き・調整する。
   ※ news.css は interview.css より後に読み込まれる（lib/scripts.php）ため
     同詳細度でも後勝ちで上書きできる。
   ============================================== */

/* カテゴリーバッジ：塗り（interview風）→ アウトライン（news風）に変更。
   色は news 側に準拠し、未定義スラッグは既定色にフォールバック。 */
.news-card .news-card__category {
  --news-card-category-color: #ab9253;
  background-color: var(--color-white);
  color: var(--news-card-category-color);
  border: 1px solid var(--news-card-category-color);
}

.news-card__category.is-category-news {
  --news-card-category-color: #ab9253;
}

.news-card__category.is-category-event {
  --news-card-category-color: #6d8eab;
}

.news-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .news-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 375px) {
  .news-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}