/* ===== News List ===== */

/* 共通のフォント設定を適用するならここに記述（例: font-family: sans-serif;） */

[id^="post-"] {
  scroll-margin-top: 100px;
}

#news {
    padding-top: 150px;
    padding-bottom: 60px;
    background: #B0BABF;
}

.news_container {
    max-width: 1060px;
    margin: 0 auto;
}

/* ニュースタイトル (News) */
.news_title {
    font-size: 80px;
    font-weight: 400;
    margin-bottom: 40px;
}

.news_item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    padding-top: 30px;
}

.news_item:first-of-type {
    padding-top: 0;
}


.news_date {
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.news_item_title {
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    border-bottom: solid 1.5px #000;
}

.news_item_content {
}

.news_item_content p,
.news_item_content ul,
.news_item_content ol {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0rem;
}

.news_item_content img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 30px 0;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.pagination_inner {
    display: flex;
    justify-content: center;
    gap: 20px;
}


.pagination_divider {
    border-right: solid 1px #707070;
}

/* ページネーションのリンク全体 */
.pagination .page-numbers {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    margin: 0 5px;
}

/* PREV/NEXTのスタイル調整 */
.pagination .prev,
.pagination .next {
    font-size: 16px;
    margin: 0 10px;
    letter-spacing: 0.1em;
}

/* Prev / Next リンク */
.pagination_prev a,
.pagination_next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
}

/* 文字部分（PREV/NEXT）のみ下線 */
.pagination_prev a span.text,
.pagination_next a span.text {
  position: relative;
  display: inline-block;
  top: 5px;
  text-decoration: underline;
}

/* .pagination_prev a span.text::after,
.pagination_next a span.text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #000;
  transition: transform 0.3s;
  transform: scaleX(0);
  transform-origin: right;
}

.pagination_prev a:hover span.text::after,
.pagination_next a:hover span.text::after {
  transform: scaleX(1);
  transform-origin: left;
} */

/* 矢印部分を個別サイズ調整 */
.pagination_prev a .arrow,
.pagination_next a .arrow {
  font-size: 40px; /* ← ここで矢印の大きさ変更 */
  line-height: 0;
}

/* 現在のページ番号 */
.pagination .current {
    font-weight: 700;
    color: #000;
    margin: 0 5px;
}

.pagination .page-numbers:not(.prev):not(.next) {

}

#headerimg {
    display: none;
}

#footer {
    display: none;
}

/* ===== Responsive (max-width: 768px) ===== */
@media screen and (max-width: 767px) {
    [id^="post-"] {
    scroll-margin-top: 100px;
    }


    #news {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .news_container {
        max-width: 320px;
        margin: 0 auto;
    }


    .news_title {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .news_item {
        margin-bottom: 20px;
        padding-bottom: 20px;
        padding-top: 20px;
    }
    
    .news_date {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .news_item_title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .news_item_content p {
        font-size: 14px;
    }

    .pagination {
        margin-top: 40px;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
        padding: 0 20px;
        max-width: 100%;
    }

    .pagination_inner {
        display: flex;
    }
    
    .pagination .nav-links {
        display: flex;
        align-items: center;
    }

    .pagination_divider {
        border-right: solid 1px #707070;
    }

    .pagination .prev,
    .pagination .next {
        flex-shrink: 0;
    }

    .pagination .page-numbers:not(.prev):not(.next) {
        display: none;
    }
    
    .pagination .page-numbers:not(.prev):not(.next) {
        display: none !important;
    }
    
    .pagination .prev { order: 1; }
    .pagination .next { order: 3; }
    .pagination .nav-links > * {
    }
}