/* お知らせ一覧ページ専用CSS */
/* News List Section */
.page-news .news-list-section {
    padding: 0 0 60px;
}

.page-news .news-header,
.page-news .news-list {
    padding-left: 20px;
    padding-right: 20px;
}

.page-news .news-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* Category Filter */
.page-news .category-filter {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 15px;
}

.page-news .filter-btn {
    background: transparent;
    border: 1px solid #171717;
    color: #171717;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    min-width: 120px;
}

.page-news .filter-btn:hover,
.page-news .filter-btn.active {
    background-color: #171717;
    color: #fff;
}

/* News List */
.page-news .news-list {
    margin: 40px 0 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #171717;
}

.page-news .news-item {
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    padding: 20px 20px;
    transition: background-color 0.3s ease;
    gap: 30px;
    margin-bottom: 20px;
}

.page-news .news-item:hover {
    background-color: #fafafa;
}

.page-news .news-date {
    font-size: 0.95rem;
    color: #171717;
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 500;
}

.page-news .news-category {
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #171717;
    border-radius: 3px;
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.page-news .news-category.news_ctg_job {
    background-color: #666;
    color: #fff;
}

.page-news .news-category.news_ctg_base {
    background-color: #fff;
}

.page-news .news-category.news_ctg_resource {
    background-color: #333;
    color: #fff;
}

.page-news .news-category.news_ctg_mypage {
    background-color: #888888;
    color: #fff;
}

.page-news .news-category.news_ctg_seminar {
    background-color: #2E2E2E;
    color: #fff;
}

.page-news .news-title {
    flex: 1;
    line-height: 1.6;
}

.page-news .news-title a {
    color: #171717;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: color 0.3s ease;
}

.page-news .news-title a:hover {
    color: #666;
}

/* Pagination */
.page-news .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-news .pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    color: #171717;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    min-width: 45px;
    min-height: 45px;
    text-align: center;
}

.page-news .pagination .page-numbers:hover,
.page-news .pagination .page-numbers.current {
    background-color: #171717;
    color: #fff;
    border-color: #171717;
}

.page-news .pagination .prev,
.page-news .pagination .next {
    padding: 10px 20px;
}

/* フィルター機能用（JavaScript制御） */
.page-news .news-item.hidden {
    display: none;
}

/* ========================================
   Responsive Design
======================================== */
/* Large devices (1280px and above) */
@media (max-width: 1280px) {
    .page-news .news-header {
        display: block;
    }
    .page-news .filter-btn {
        font-size: 13px;
        padding: 5px 10px;
    }
    .page-news .category-filter{
        padding-top: 0;
    }
}
/* Tablets (960px and below) */
@media (max-width: 960px) {
    .page-news .news-list-section {
        padding: 0 0 55px;
        font-size: 13.5px;
    }

    .page-news .news-header,
    .page-news .news-list {
        padding-left: 0px;
        padding-right: 0px;
    }

    .page-news .news-list{
        margin-bottom: 55px;
        padding-bottom: 55px;
    }
    
    .page-news .news-item:last-child{
        margin-bottom: 0;
    }

    .page-news .news-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 15px;
        padding: 25px 20px;
    }
    
    .page-news .news-date {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .page-news .news-category {
        min-width: auto;
        align-self: flex-start;
    }
    
    .page-news .news-title {
        width: 100%;
        flex: auto;
    }
    
    .page-news .category-filter {
        justify-content: flex-start;
    }
    
    .page-news .filter-btn {
        min-width: 100px;
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

/* Mobile landscape (640px and below) */
@media (max-width: 640px) {
    .page-news .category-filter {
        gap: 10px;
    }
    
    .page-news .filter-btn {
        min-width: 80px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .page-news .news-item {
        gap: 10px;
        padding: 10px;
    }
    
    .page-news .news-title a {
        font-size: 0.9rem;
    }
    
    .page-news .pagination .page-numbers {
        padding: 8px 12px;
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }
}

/* Mobile portrait (480px and below) */
@media (max-width: 480px) {
    .page-news .category-filter {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .page-news .filter-btn {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .page-news .news-date {
        font-size: 0.85rem;
    }
    
    .page-news .news-category {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .page-news .news-title a {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .page-news .pagination {
        gap: 5px;
        margin-top: 0;
        padding: 0;
    }
    
    .page-news .pagination .page-numbers {
        padding: 6px 10px;
        min-width: 35px;
        min-height: 35px;
        font-size: 0.8rem;
    }
}

/* Small mobile (375px and below) */
@media (max-width: 375px) {
    .page-news .pagination .page-numbers {
        padding: 5px 8px;
        min-width: 30px;
        min-height: 30px;
        font-size: 0.75rem;
    }
}

/* ========================================
   お知らせ詳細ページ専用CSS
======================================== */
/* パンくずナビ */
.page-news-single .breadcrumb {
    font-size: 0.9rem;
    color: #171717;
    margin-bottom: 40px;
}

.page-news-single .breadcrumb a {
    color: #171717;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-single .breadcrumb a:hover {
    color: #666;
}

.page-news-single .breadcrumb .separator {
    margin: 0 8px;
    color: #666;
}

.page-news-single .breadcrumb .current {
    color: #666;
}

/* 記事ヘッダー */
.page-news-single .article-header {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #171717;
}

.page-news-single .article-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #171717;
    line-height: 1.4;
    margin-bottom: 40px;
}

.page-news-single .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.page-news-single .article-category {
    padding: 5px 15px;
    font-size: 0.8rem;
    color: #171717;
    border: 1px solid #171717;
    font-weight: 500;
}

.page-news-single .article-date {
    font-size: 0.95rem;
    color: #171717;
    font-weight: 500;
}

/* 記事コンテンツ */
.page-news-single .article-content {
    line-height: 1.8;
    color: #171717;
    margin-bottom: 60px;
}

.page-news-single .article-content a,
.page-news-single .article-content a:visited {
    color: #171717;
    text-decoration: underline;
    font-weight: 700;
}

.page-news-single .article-content p {
    font-size: 1rem;
}

.page-news-single .article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2em 0 1em 0;
    color: #171717;
}

.page-news-single .article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5em 0 0.8em 0;
    color: #171717;
}

/* LINEコンテンツ専用スタイル */
.page-news-single .line-qr-section {
    text-align: center;
    margin: 40px 0;
}

.page-news-single .line-qr-code {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.page-news-single .qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.page-news-single .line-info {
    margin-top: 30px;
}

.page-news-single .line-info p {
    margin-bottom: 1.2em;
}

.page-news-single .line-info strong {
    font-weight: 600;
}

/* 記事ナビゲーション */
.page-news-single .article-navigation {
    padding: 60px 0;
    border-top: 1px solid #171717;
}

.page-news-single .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.page-news-single .nav-links > div {
    max-width: 200px;
    width: 100%;
}

.page-news-single .nav-previous,
.page-news-single .nav-next {
    flex: 1;
    max-width: 45%;
}

.page-news-single .nav-next {
    text-align: right;
}

.page-news-single .nav-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-news-single .nav-title {
    display: block;
    font-size: 13px;
    color: #171717;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.page-news-single .nav-title:hover {
    color: #666;
}

.page-news-single .nav-title.disabled {
    color: #ccc;
    cursor: default;
}

/* ========================================
   詳細ページのレスポンシブデザイン
======================================== */

/* Tablets (960px and below) */
@media (max-width: 960px) {
    .sub-page.page-news-single {
        font-size: 12px;
    }

    .page-news-single .article-header{
        margin-bottom: 50px;
        padding-bottom: 50px;
    }

    .page-news-single .article-content{
        margin-bottom: 50px;
    }

    .page-news-single .article-navigation{
        padding: 50px 0;
    }

    .page-news-single .article-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .page-news-single .article-content p {
        font-size: 15px;
    }
    
    .page-news-single .nav-links {
        gap: 30px;
    }
    
    .page-news-single .nav-links > div {
        max-width: 150px;
    }

    .page-news-single .nav-links > div a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
    }
}

/* Mobile landscape (640px and below) */
@media (max-width: 640px) {
    .page-news-single .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 30px;
    }

    .page-news-single .breadcrumb-list {
        font-size: 11px;
    }
    
    .page-news-single .article-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .page-news-single .article-content p {
        font-size: 14px;
    }
    
    .page-news-single .line-qr-code {
        max-width: 150px;
    }
}

/* Mobile portrait (480px and below) */
@media (max-width: 480px) {
    .page-news .news-header{
        margin-bottom: 1.5rem;
    }

    .page-news .news-list-section{
        padding: 0 0 40px;
    }

    .page-news .news-list{
        margin: 2.5rem 0 40px 0;
        padding-bottom: 40px;
    }

    .page-news .news-item:last-child {
        margin-bottom: 0;
    }

    .page-news-single .breadcrumb {
        margin-bottom: 30px;
    }

    .page-news-single .breadcrumb-list {
        font-size: 9px;
    }

    .page-news-single .article-header {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .page-news-single .article-content {
        margin-bottom: 40px;
    }

    .page-news-single .article-content p {
        font-size: 13px;
        line-height: 1.5;
    }

    .page-news-single .article-navigation {
        padding: 40px 0;
    }
    
    .page-news-single .article-title {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .page-news-single .article-content p {
        font-size: 0.9rem;
    }
    
    .page-news-single .line-info p {
        font-size: 0.85rem;
    }
    
    .page-news-single .nav-title {
        font-size: 12px;
    }
    
    .page-news-single .nav-label {
        font-size: 14px;
    }

    .page-news-single .nav-links {
        gap: 40px;
    }
}

/* Small mobile (375px and below) */
@media (max-width: 375px) {
    .page-news-single .breadcrumb .current {
        margin-top: 5px;
    }
    
    .page-news-single .article-meta {
        gap: 8px;
    }
    
    .page-news-single .nav-links {
        gap: 40px;
    }
}
