@charset "utf-8";

/* ==========================================================================
   Newsページ専用：記事一覧レイアウト
   ========================================================================== */

.news-list-section {
    background-color: #f8f6e7;
    padding-top: 60px !important;
    padding-bottom: 100px !important;
}

/* 1. ニュース一覧のコンテナのpaddingを修正 */
.news-list-container {
    width: 100% !important;
    max-width: 960px !important;
    margin: 0 auto !important; 
    padding: 0 !important; /* paddingは0にリセット */
    border-top: 1px solid #3b2004 !important; 
    box-sizing: border-box !important;
}

/* 2. 中身のアイテムに左右20pxのpaddingを強制的に適用（線と揃える） */
.news-list-item {
    display: flex !important;
    align-items: center !important;
    padding: 25px 20px !important; /* ←左右を20pxに固定して線と揃える */
    border-bottom: 1px solid #3b2004 !important;
    text-decoration: none !important;
    color: #3b2004 !important;
    font-family: "futura-pt", sans-serif !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    position: relative !important;
    box-sizing: border-box !important; /* 幅計算を正確に */
}

/* スマホ版も同様にpaddingを調整 */
@media screen and (max-width: 768px) {
    .news-list-container {
        padding: 0 !important;
    }
    .news-list-item {
        padding: 20px !important; /* 左右に20px確保 */
    }
}

/* ホバー時の挙動（PCのみ適用推奨） */
@media (hover: hover) {
    .news-list-item:hover {
        background-color: #3b2004 !important;
        color: #ffffff !important;
    }
    .news-list-item:hover .arrow {
        border-color: #ffffff !important;
        transform: rotate(45deg) translateX(3px) !important;
    }
    .news-list-item:hover .date,
    .news-list-item:hover .title {
        color: #ffffff !important;
    }
}

/* 矢印（＞）のスタイル */
.news-list-item .arrow {
    width: 8px !important;
    height: 8px !important;
    border-top: 2px solid #3b2004 !important;
    border-right: 2px solid #3b2004 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
    margin-left: auto !important;
}

.news-list-item .date {
    width: 110px !important;
    font-size: 13px !important;
    font-family: "futura-pt", sans-serif !important;
}

.news-list-item .title {
    flex: 1 !important;
    font-size: 14px !important;
    padding-left: 10px !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   スマホ専用調整（画面幅768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
    .news-list-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 0 !important;
    }

    .news-list-item .date {
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .news-list-item .title {
        padding-left: 0 !important;
        width: 100% !important;
        padding-right: 30px !important;
    }

    .news-list-item .arrow {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
    }
}

/* ページネーション */
.pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 50px !important;
}

.page-num {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #3b2004 !important;
    text-decoration: none !important;
    color: #3b2004 !important;
}

@media screen and (max-width: 768px) {
    /* ニュースリストのスマホ調整 */
    .news-list-container {
    width: 100% !important;
    max-width: 960px !important;
    margin: 0 auto 50px auto !important; 
    padding: 0 20px !important;
    box-sizing: border-box !important;
    border-top: none !important; /* ←ここをnoneに！ */
}
    .news-list-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 0 !important;
    }
    .news-list-item .date { width: 100% !important; margin-bottom: 8px !important; }
    .news-list-item .title { padding-left: 0 !important; width: 100% !important; padding-right: 30px !important; }
    .news-list-item .arrow { position: absolute !important; right: 0 !important; top: 50% !important; }
}