/* ========================================
   News & Blog Page Styles - T054実装
   だいほう合同会社 コーポレートサイト
======================================== */

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    display: inline-flex;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: ">";
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

/* News Filter */
.news-filter {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* News Content */
.news-content {
    padding: 4rem 0;
    background: var(--background-light);
}

/* News List */
.news-list {
    margin-bottom: 3rem;
}

.news-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

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

.news-item.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
}

.news-item-content {
    padding: 2rem;
}

.news-item-header {
    margin-bottom: 1rem;
}

.news-item-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.news-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-category-news {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.news-category-blog {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.news-category-press {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Pagination */
.news-pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    border: none;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

/* Sidebar */
.news-sidebar {
    padding-left: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Search Box */
.search-box .form-control {
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
}

/* Recent Posts */
.recent-posts .recent-post {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts .recent-post:last-child {
    border-bottom: none;
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.recent-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--background-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: white;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-item:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Archive List */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--background-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.archive-item:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.archive-name {
    font-weight: 500;
}

.archive-count {
    background: white;
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.archive-item:hover .archive-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .news-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .news-filter {
        position: static;
        padding: 1.5rem 0;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .news-item-content {
        padding: 1.5rem;
    }
    
    .news-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .sidebar-section {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .news-content {
        padding: 3rem 0;
    }
    
    .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-item {
        margin-bottom: 1.5rem;
    }
    
    .news-item-content {
        padding: 1rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .recent-posts .recent-post {
        padding: 0.75rem 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Search Hidden State */
.news-item.search-hidden {
    display: none;
}

/* Loading Spinner */
.loading-spinner {
    padding: 2rem 0;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

/* Mobile Filters */
.mobile-filters {
    padding: 1rem 0;
}

.mobile-filters .filter-tabs {
    justify-content: center;
}

/* Print Styles */
@media print {
    .page-hero,
    .news-filter,
    .cta-section {
        display: none;
    }
    
    .news-item {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .sidebar-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
