/* ========================================
   News Page（PC版）
======================================== */

.news-page-header {
    width: 100%;
    padding: 2.73vw 2.42vw;
    background: #fff;
}

@media (max-width: 767px) {
	.news-page-header {
    padding: 4.27vw;
	}
}

.news-page-logo img {
    width: 16.48vw;
    height: auto;
    display: block;
}

.news-page-title-wrap {
    padding: 0 2.42vw;
    margin-top: 11vw;
    margin-bottom: 2.34vw;
}

.news-page-title {
    color: #333;
    font-size: 6.25vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

/* カテゴリーフィルター */
.news-filter {
    padding: 0 2.42vw;
    margin-top: 2.34vw;
    margin-bottom: 3.91vw;
}

.news-filter-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.news-filter-btn {
    display: inline-block;
    padding: 0.47vw 1.25vw;
    border: none;
    background: none;
    color: #999;
    font-size: 2vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    .news-filter-btn {
        font-size: 4vw;
    }
}

.news-filter-btn:hover {
    color: #333;
}

.news-filter-btn.is-active {
    color: #333;
}

/* ニュースグリッド */
.news-archive {
    padding: 0 2.42vw;
}

@media (max-width: 767px) {
.news-archive {
        padding: 0 5vw;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.91vw 1.25vw;
    /* 行間 / 列間 */
}

@media (max-width: 767px) {
    .news-grid {
    grid-template-columns: repeat(1, 1fr);
    }
}

/* カード */
.news-grid-card {
    min-width: 0;
}

.news-grid-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 画像 */
.news-grid-card-image {
    width: 100%;
    aspect-ratio: 293 / 391;
    /* Figma clipPath比率 */
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 1.25vw;
}

@media (max-width: 767px) {
    .news-grid-card-image {
        margin-bottom: 4vw;
    }
}

.news-grid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.news-grid-card-link:hover .news-grid-card-image img {
    transform: scale(1.04);
}

.news-grid-card-image--empty {
    width: 100%;
    height: 100%;
    background: #d8d8d8;
}

/* カテゴリー */
.news-grid-card-category {
    display: block;
    color: #333;
    font-size: 1.172vw;
    /* 15px / 1280 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    margin-bottom: 1vw;
    /* 24px / 1280 */
}

@media (max-width: 767px) {
    .news-grid-card-category {
        font-size: 3.5vw;
    }
}

/* タイトル */
.news-grid-card-title {
    color: #333;
    font-size: 1.563vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 1.563vw 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .news-grid-card-title {
        font-size: 4.7vw;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* 本文 */
.news-grid-card-text {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    line-height: 1.7;
    margin: 0 0 1.563vw 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .news-grid-card-text {
        font-size: 3.5vw;
    }
}

/* 日付 */
.news-grid-card-date {
    display: block;
    color: #999;
    font-size: 1.016vw;
    /* 13px / 1280 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

@media (max-width: 767px) {
    .news-grid-card-date {
        font-size: 3vw;
    }
}

/* 投稿なし */
.news-no-posts {
    color: #999;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    grid-column: 1 / -1;
    padding: 5vw 0;
    text-align: center;
}

/* ========================================
   News 詳細ページ - ヒーロー
======================================== */
.news-single-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-single-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* 下部グラデーションオーバーレイ */
.news-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

/* ヘッダー（画像の上に重ねる） */
.news-single-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.73vw 2.42vw;
    z-index: 20;
}

.news-single-logo img {
    width: 16.48vw;
    height: auto;
    display: block;
}

/* タイトル（画像の上・左下） */
.news-single-hero-text {
    position: absolute;
    left: 2.42vw;
    bottom: 3.91vw;
    z-index: 10;
    max-width: 90%;
    letter-spacing: 0.08em;
}

.news-single-title {
    color: #fff;
    font-size: 3.5vw;
    /* 30px / 1280 */
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   画像の外：カテゴリー・日付
======================================== */
/* カテゴリー + 日付 */
.news-single-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.47vw;
    padding: 3.56vw 2.42vw 2.56vw;
}

.news-single-category {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

.news-single-date {
    display: flex;
    gap: 0.5vw;
}

.news-single-date-label {
    color: #333;
    font-size: 1.016vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

.news-single-date-value {
    color: #999;
    font-size: 1.016vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

/* ========================================
   本文
======================================== */
.news-single-content {
    padding: 0 2.42vw;
    margin-bottom: 5.47vw;
}

.news-single-content img {
    width: calc(100% + 4.84vw);
    height: auto;
    display: block;
}

.news-single-content p {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    line-height: 2;
    margin: 0 0 1.563vw 0;
}

.news-single-content h2 {
    color: #333;
    font-size: 1.875vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    margin: 3.125vw 0 1.563vw 0;
}

.news-single-content h3 {
    color: #333;
    font-size: 1.563vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    margin: 2.344vw 0 1.25vw 0;
}

/* ========================================
   Prev / Next ナビゲーション
======================================== */
.news-pager {
    display: flex;
    justify-content: space-between;
    padding: 0 2.42vw 11vw;
    margin: 3.91vw 0 11vw;
    border-bottom: 1px solid #333;
    gap: 2.42vw;
}

.news-pager-item {
    flex: 1;
    padding-top: 1.56vw;
}

.news-pager-item--next {
    text-align: left;
}

.news-pager-item--next .news-pager-label {
    text-align: right;
}

.news-pager-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.news-pager-link:hover {
    opacity: 0.6;
}

.news-pager-label {
    display: block;
    color: #333;
    font-size: 2.1vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    margin-bottom: 3vw;
}

.news-pager-title {
    color: #333;
    font-size: 1.7vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   関連記事
======================================== */
.news-related {
    padding: 0 2.42vw;
    margin-bottom: 7.81vw;
}

.news-related-title {
    color: #333;
    font-size: 5.5vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 4vw 0;
}

@media (max-width: 767px) {
    .news-related-title {
        color: #333;
        font-size: 16vw;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-weight: 500;
        line-height: 1;
        margin: 0 0 4vw 0;
    }
}

.news-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.91vw 1.25vw;
}

.news-single-content img,
.news-single-content .wp-block-image,
.news-single-content .wp-block-image img,
.news-single-content figure,
.news-single-content figure img {
    height: auto;
    display: block;
}

.news-single-content .wp-block-image {
    margin-top: 0;
    margin-bottom: 1.563vw;
}

.news-single-content figure {
    margin: 0 0 1.563vw 0;
}

.news-related-header {
    display: flex;
    align-items: flex-end;
    gap: 1.56vw;
    margin-bottom: 2.34vw;
    padding: 0 2.25vw;
}

@media (max-width: 767px) {
    .news-related-header {
        margin-top: 11vw;
        margin-bottom: 4vw;
    }
}

.news-related-header .news-related-title {
    margin-bottom: 0;
}

.news-related-back {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.39vw;
    margin-bottom: 0.8vw;
    transition: opacity 0.3s;
    border-bottom: 1px solid #333;
    padding-bottom: 0.16vw;
}

.news-related-back:hover {
    opacity: 0.6;
}

.news-related-back-arrow {
    width: 0.78vw;
    height: auto;
}

/* ========================================
   News 詳細ページ SP対応（767px以下）
======================================== */
@media (max-width: 767px) {

    /* ヒーロー */
    .news-single-logo img {
        width: 35vw;
    }

    .news-single-title {
        font-size: 6vw;
    }

    /* カテゴリー・日付 */
    .news-single-meta {
        padding: 6vw 5vw;
        gap: 3vw;
    }

    .news-single-category {
        font-size: 3.5vw;
    }

    .news-single-date-label,
    .news-single-date-value {
        font-size: 3vw;
    }

    /* 本文 */
    .news-single-content {
        padding: 0 5vw;
    }

    .news-single-content img {
        width: 100%;
    }

    .news-single-content p {
        font-size: 3.5vw;
    }

    .news-single-content h2 {
        font-size: 6vw;
    }

    .news-single-content h3 {
        font-size: 5vw;
    }

    /* Prev / Next */
    .news-pager {
        flex-direction: column;
        gap: 6vw;
        padding: 0 5vw 10vw;
        margin: 6vw 0 10vw;
    }

    .news-pager-label {
        font-size: 5vw;
        margin-bottom: 2vw;
    }

    .news-pager-title {
        font-size: 4vw;
    }

    /* 関連記事 */
    .news-related {
        padding: 0 5vw;
        margin-bottom: 15vw;
    }

    .news-related-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 8vw;
    }

    .news-related-back {
        font-size: 3.5vw;
    }

    .news-related-back-arrow {
        width: 3vw;
    }

}
@media (max-width: 767px) {

    .news-single-logo img,
    .news-page-logo img {
        width: 29.33vw;
        height: auto;
    }

}
