/* =======================================================
   NEWS ARCHIVE PAGE STYLES
   ======================================================= */

/* アーカイブヘッダー */
.news-archive-block .archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.news-archive-block .archive-title {
    font-size: 2.5rem;
    color: #013567;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-archive-block .archive-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* カテゴリーフィルター */
.news-filter {
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-filter .filter-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.category-filter-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item .filter-link {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-item .filter-link:hover {
    background: #e9ecef;
    border-color: #013567;
}

.filter-item .filter-link.active {
    background: #013567;
    color: #fff;
    border-color: #013567;
}

.filter-item .filter-link .count {
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 検索フォーム */
.news-search {
    margin-bottom: 40px;
}

.search-form .search-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.search-form .search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-form .search-input::placeholder {
    color: #999;
}

.search-form .search-button {
    padding: 12px 20px;
    background: #013567;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.search-form .search-button:hover {
    background: #0052a3;
}

/* 検索結果表示 */
.search-results-info {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #e7f3ff;
    border-left: 4px solid #013567;
    border-radius: 4px;
}

.search-results-info p {
    margin: 0;
    color: #013567;
    font-weight: 500;
}

/* ニュース一覧 */
.news-list {
    margin-bottom: 40px;
}

.news-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-article {
    padding: 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-category {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

.news-category.category-お知らせ { background: #28a745; }
.news-category.category-技術コラム { background: #007bff; }
.news-category.category-製品情報 { background: #fd7e14; }
.news-category.category-イベント { background: #dc3545; }

.news-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.news-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.news-text {
    flex: 1;
}

.news-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: #013567;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0052a3;
}

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

.news-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* 記事が見つからない場合 */
.no-news-found {
    text-align: center;
    padding: 60px 20px;
}

.no-results-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results-message p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.no-results-actions {
    margin-top: 30px;
}

.no-results-actions a {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 25px;
    background: #013567;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.no-results-actions a:hover {
    background: #0052a3;
}

.back-to-all {
    background: #6c757d !important;
}

.back-to-all:hover {
    background: #5a6268 !important;
}

/* サイドバー */
.news-sidebar {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 2px solid #013567;
    padding-bottom: 5px;
}

.sidebar-links,
.month-archive {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li,
.month-archive li {
    margin-bottom: 8px;
}

.sidebar-links a,
.month-archive a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-links a:hover,
.month-archive a:hover {
    color: #013567;
}

.sidebar-links .count,
.month-archive .count {
    font-size: 0.8rem;
    color: #999;
}

/* =======================================================
   SINGLE NEWS PAGE STYLES
   ======================================================= */

/* 記事ヘッダー */
.news-single-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.news-single-header .news-meta {
    margin-bottom: 20px;
}

.news-single-header .news-title {
    font-size: 2.2rem;
    color: #333;
    line-height: 1.3;
    margin-bottom: 25px;
}

.news-featured-image {
    margin-top: 25px;
    text-align: center;
}

.news-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 記事本文 */
.news-content {
    margin-bottom: 40px;
}

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.news-body h2 {
    color: #013567;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    border-left: 4px solid #013567;
    padding-left: 15px;
}

.news-body h3 {
    color: #333;
    margin: 25px 0 12px 0;
    font-size: 1.3rem;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-body ul,
.news-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.news-body li {
    margin-bottom: 8px;
}

/* 記事フッター */
.news-article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.article-meta {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.article-meta p {
    margin: 5px 0;
    color: #666;
}

.article-categories a {
    color: #013567;
    text-decoration: none;
}

.article-categories a:hover {
    text-decoration: underline;
}

/* ソーシャルシェア */
.social-share {
    margin-bottom: 40px;
}

.share-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.twitter-share { background: #1da1f2; }
.facebook-share { background: #3b5998; }
.line-share { background: #00c300; }
.copy-url { background: #6c757d; }

/* ページナビゲーション */
.news-pagination {
    margin-bottom: 40px;
}

.prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prev-article,
.next-article {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    background: #e9ecef;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-link {
    text-decoration: none;
    color: #333;
}

.nav-title {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.nav-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.back-to-archive {
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 12px 25px;
    background: #013567;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #0052a3;
}

/* 関連記事 */
.related-news {
    margin-bottom: 40px;
}

.related-news .section-title {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-5px);
}

.related-news-content {
    padding: 20px;
}

.related-news-thumbnail {
    margin-bottom: 15px;
}

.related-news-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.related-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.related-news-date {
    color: #666;
    font-size: 0.8rem;
}

.related-news-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.related-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-title a:hover {
    color: #013567;
}

.related-news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.no-related-news {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* CTA セクション - 削除済み（footerのCTAを使用） */

/* =======================================================
   CATEGORY ARCHIVE STYLES
   ======================================================= */

.category-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.category-archive-header .archive-title {
    font-size: 2.2rem;
    color: #013567;
    margin-bottom: 15px;
}

.category-archive-header .category-label {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-stats {
    color: #013567;
    font-size: 1rem;
}

/* カテゴリーナビゲーション */
.category-navigation {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-navigation .nav-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.category-nav-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav-ul .nav-link {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-nav-ul .nav-link:hover {
    background: #013567;
    color: #fff;
}

/* カテゴリー検索 */
.category-search {
    margin-bottom: 30px;
}

/* カテゴリーサイドバー */
.category-sidebar {
    margin-top: 40px;
}

.category-month-archive {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-month-archive li {
    margin-bottom: 8px;
}

.category-month-archive a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-month-archive a:hover {
    color: #013567;
}

.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.popular-post-title {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.popular-post-link:hover .popular-post-title {
    color: #013567;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* =======================================================
   RESPONSIVE STYLES
   ======================================================= */

@media (max-width: 768px) {
    /* アーカイブヘッダー */
    .news-archive-block .archive-title {
        font-size: 2rem;
    }
    
    .news-archive-block .archive-description {
        font-size: 1rem;
    }
    
    /* カテゴリーフィルター */
    .category-filter-ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-item .filter-link {
        width: 100%;
        text-align: center;
    }
    
    /* ニュース一覧 */
    .news-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-thumbnail {
        width: 100%;
    }
    
    .news-thumbnail img {
        height: 200px;
    }
    
    /* 検索フォーム */
    .search-form .search-input-group {
        max-width: 100%;
    }
    
    /* 単一記事 */
    .news-single-header .news-title {
        font-size: 1.8rem;
    }
    
    .news-body {
        font-size: 1rem;
    }
    
    /* ページナビゲーション */
    .prev-next-nav {
        grid-template-columns: 1fr;
    }
    
    /* 関連記事 */
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTAボタン */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* シェアボタン */
    .share-buttons {
        justify-content: center;
    }
    
    /* カテゴリーナビゲーション */
    .category-nav-ul {
        flex-direction: column;
    }
    
    .category-nav-ul .nav-link {
        width: 100%;
        text-align: center;
    }
    
    /* サイドバー */
    .news-sidebar,
    .category-sidebar {
        margin-top: 30px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-archive-block .archive-title {
        font-size: 1.8rem;
    }
    
    .news-single-header .news-title {
        font-size: 1.5rem;
    }
    
    .news-item,
    .related-news-item {
        margin-bottom: 20px;
    }
    
    .news-article,
    .related-news-content {
        padding: 20px;
    }
    
    .news-cta {
        padding: 30px 20px;
    }
}

/* =======================================================
   2カラムレイアウト
   ======================================================= */
.news-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.news-main-content {
    min-width: 0; /* グリッドアイテムのオーバーフロー防止 */
}

.news-sidebar {
    margin-top: 0; /* 2カラム時はマージンリセット */
}

/* レスポンシブ対応：タブレット以下では1カラムに */
@media (max-width: 1024px) {
    .news-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-sidebar {
        margin-top: 30px;
    }
}