.wrap{
    width: 100% !important;
}

#main.main{
    background-color: var(--white);
    color: var(--text-main);
    padding: 0;
}

.entry-content{
    margin-bottom: 0 !important;
}

/* ファーストビュー */
.firstview-img img {
    object-fit: cover;
    width: 100%;
    object-position: center;
}

/* お知らせ一覧タイトル */
.entry-header { 
    background-color: color-mix(in srgb, var(--green-1) 65%, transparent) !important; 
    position: absolute;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 45%;
}

p.entry-title {
    font-weight: bold;
    color: var(--white);
    margin: 0 !important;
    text-align: center;
}

/* タブ */
.news-category-tabs-wrapper {
    display: flex;
    justify-content: center;
}

.news-category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--gray-4);
    width: 100%;
}

.news-category-tabs .tab {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 10rem;
    background: var(--white);
    color: var(--text-main);
}

/* 選択されたタブ */
.news-category-tabs .tab.current {
    background: var(--green-1);
    color: var(--white);
    font-weight: bold;
}

/* お知らせ一覧内容 */
.news-list{
    padding-left: 0;
}

/* お知らせタイトル */
.news-archive-title{
    text-align: center;
    margin: 40px 0 30px 0;
}

.news-list-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0 !important;
}

.news-list{
    list-style-type: none;
}


.news-item{
    display: flex;
}

.news-item:not(:last-child){
    border-bottom: 1px solid var(--gray-2);
}

/* 日付 */
.news-date{
    font-weight: bold;
    color: var(--green-1);
    background: #f8f9fa;
    padding: 0 10px;
    line-height: normal;
}

/* 投稿タイトル */
.news-title{
    color: var(--text-main);
    text-decoration: none;
    color: inherit;
}

/* 投稿タイトルホバー */
.news-item:hover .news-title{
    color: var(--green-1);
    font-weight: bold;
}

/* カテゴリ */
.news-category {
    background-color: transparent; /* デフォルト透明 */
    color: inherit; /* デフォルト文字色 */
    text-align: center;
    border-radius: 10rem;
    width: 130px;
    display: inline-block;
}

/* カテゴリの中身があるときだけスタイル付け */
.news-category:not(:empty) {
    background-color: var(--white);
    color: var(--green-1);
    border: 1px solid var(--green-1);
    font-weight: bold;
}

/* カテゴリの中身があるときのホバー */
.news-item:hover .news-category:not(:empty){
    background-color: var(--green-1);
    color:var(--white);
    border: 1px solid var(--green-1);
}

/* 投稿が０件の時 */
.no-news-posts-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-to-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    background: var(--green-1);
    border: 2px solid var(--green-1);
    border-radius: 50px;
    transition: background 0.3s;
    font-weight: bold;
    padding: 10px 40px;
}

.home-to-btn:hover {
    background: var(--white);
    color: var(--green-1);
}

/* ページネーション */
.pagination .page-numbers {
    border-radius: 50%;
    text-decoration: none;
    color: var(--green-1);
    background-color: var(--white);
    font-size: 18px;
    border: 2px solid var(--green-1);
}

/* 選択されたページネーション */
.pagination .page-numbers.current {
    color: var(--white);
    background-color: var(--green-1);
}

/* ホバーされたページネーション */
.pagination .page-numbers:hover{
    color: var(--white);
    background-color: var(--green-1);
}  


/* PC表示（1024px以上） */
@media screen and (min-width: 1024px) { 
    
    .sp-only {
        display: none;
    }
    
    /* ファーストビュー */
    .firstview-img {
        height: 430px;
    }
    
    .firstview-img img {
        height: 380px;
        margin-bottom: 60px;
    }
    
    .entry-header {
        height: 200px;
        top: 252px;
    }
    
    /* お知らせ一覧タイトル */
    p.entry-title{
        font-size: 48px !important;
        margin-right: 25% !important;
    }
    
    /* タブ */
    .news-category-tabs-wrapper {
        margin-top: 50px;
    }

   .news-category-tabs {
        margin-bottom: 20px;
        height: 100px;
        max-width: 1024px;
        gap: 10px;
    }

   .news-category-tabs .tab {
        width: 180px;
        height: 50px;
        transition: background-color 0.4s ease, color 0.4s ease; /* なめらかに変化 */
    }

   /* ホバーされたタブ */
   .news-category-tabs .tab:hover{
       background: var(--green-1);
       color: var(--white);
       font-weight: bold;
   }

    /* お知らせ一覧内容 */
    .news-list{
        list-style-type: none;
        width: 80%;
        margin-top: 60px;
    }

    .news-item{
        gap: 30px;
        align-items: baseline;
        padding: 20px 0;
    }

    /* 日付 */
    .news-date{
        font-size: 14px;
    }

    /* カテゴリ */
    .news-category {
        display: inline-block;
        font-size: 14px;
    }

    .news-title {
        width: 80%;
    }

    /* 投稿が０件の時 */
    .no-news-posts-inner {
        margin: 100px 0px;
    }

    .no-news-posts-inner h2 {
        margin-bottom: 100px;
    }

    /* ページネーション */
    .pagination .page-numbers {
        font-size: 18px;
        transition: all 0.3s ease;
    }

}

/* SP表示（1023px以下） */
@media screen and (max-width: 1023px) {   
    
    .pc-only {
        display: none !important;
    }

    /* ファーストビュー */
    .firstview-img img {
        height: 130px;
    }

    .entry-header {
        height: 50px;
        top: 96px;
    }

    /* お知らせ一覧タイトル */
    p.entry-title{
        font-size: 16px;
        margin-right: 2% !important;
    }

    /* タブ */
    .news-category-tabs-wrapper {
        margin-top: 20px;
        margin-bottom: 10px !important;
    }

    .news-category-tabs {
        flex-direction: column;
        height: 100%;
        gap: 10px;
        padding: 20px 0;
    }

    .news-category-tabs .tab {
        width: 240px;
        height: 34px;
        font-size: 15px;
    }

    /* お知らせ一覧内容 */
    .news-list-wrapper {
        margin-bottom: 10px;
        margin-top: 30px;
    }

    .news-list{
        width: 90%;
    }

    .news-item{
        flex-direction: column;
        align-items: start;
        padding: 16px 0;
        gap: 8px;
    }

    .news-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }
       
    /* 日付 */
    .news-date{
        font-size: 12px;
    }
    
    /* カテゴリ */
    .news-category {
        font-size: 12px;
    }
    
    .news-title {
        padding-left: 10px;
        font-size: 14px;
    }

    /* 投稿が０件の時 */
    .no-news-posts-inner {
        margin: 50px 0px;
    }

    .no-news-posts-inner h2 {
        font-size: 16px;
        margin-bottom: 50px;
    }

    /* ページネーション */
    .pagination {
        margin: 20px 0!important;
    }
    
    .pagination .page-numbers {
        font-size: 16px;
    }

}