/* ===== news-archive.css - ニュースアーカイブページ専用スタイル (モダン&ダイナミック版) ===== */

/* ===================================================
   レイアウト
   ================================================ */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 60px 0;
}

.main-column {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ===================================================
   年別タブ
   ================================================ */
.year-tabs {
    display: flex;
    background: transparent;
    margin-bottom: 40px;
    overflow: hidden;
}

.year-tab {
    padding: 14px 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #888;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 3px solid transparent;
}

.year-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.year-tab.active {
    color: #2d5a27;
}

.year-tab.active::after {
    width: 100%;
}

.year-tab:hover:not(.active) {
    color: #2d5a27;
    transform: translateY(-2px);
}

/* ===================================================
   ニュースリスト - モダンカードデザイン
   ================================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.news-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #2d5a27, #4a7c59);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
}

.news-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 35px rgba(45, 90, 39, 0.15);
    border-color: rgba(45, 90, 39, 0.2);
}

.news-item:hover::before {
    width: 6px;
    opacity: 1;
}

.news-item:hover .news-title {
    color: #1a3a1e;
}

/* 矢印アイコン - よりダイナミック */
.news-meta {
    display: flex;
    align-items: center;
}

.news-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    color: #2d5a27;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-item:hover .news-arrow {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    transform: translateX(4px) rotate(0deg);
    box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
}

/* ===================================================
   サイドバー - グラスモーフィズム風
   ================================================ */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

.widget-title {
    margin: 0 0 20px 0;
    font-size: 19px;
    font-weight: 700;
    color: #334636;
    padding-bottom: 14px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, #2d5a27, transparent) bottom left;
    background-size: 60% 3px;
    background-repeat: no-repeat;
}

/* 年別アーカイブ */
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.archive-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.archive-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(45, 90, 39, 0.1), transparent);
    transition: width 0.3s ease;
}

.archive-list a:hover,
.archive-list a.current {
    background: rgba(45, 90, 39, 0.08);
    color: #2d5a27;
    transform: translateX(4px);
}

.archive-list a:hover::before,
.archive-list a.current::before {
    width: 100%;
}

.archive-list .count {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(45, 90, 39, 0.2);
}

/* カテゴリ一覧 */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.category-list a:hover {
    background: rgba(45, 90, 39, 0.08);
    color: #2d5a27;
    transform: translateX(4px);
}

.sidebar .category-name {
    color: inherit;
    font-size: inherit;
    font-weight: 600;
}

.category-list .count {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(45, 90, 39, 0.2);
}

/* ===================================================
   ページネーション
   ================================================ */
.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 8px;
}

/* ページネーションボタン */
.pagination-btn {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    font-weight: bold;
    color: #2d5a27;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    border-color: #2d5a27;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ページ情報表示 */
.page-info {
    position: relative;
    width: 90px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    color: #2d5a27;
    background-image: url('../images/t-rex.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8),
                 0 0 10px rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 2px 8px rgba(45, 90, 39, 0.2));
}

/* ===================================================
   ニュース詳細ページ
   ================================================ */
.news-header {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 45px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.news-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #2d5a27, #4a7c59);
}

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

.news-header .news-date {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    min-width: auto;
}

.news-header .news-category {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-header .news-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a3a1e;
    line-height: 1.4;
    margin-bottom: 0;
    padding: 0;
}

.news-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 45px;
    margin-bottom: 45px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.news-content h2 {
    color: #2d5a27;
    font-size: 26px;
    font-weight: 700;
    margin: 35px 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, rgba(45, 90, 39, 0.2), transparent) bottom left;
    background-size: 100% 3px;
    background-repeat: no-repeat;
}

.news-content h3 {
    color: #2d5a27;
    font-size: 22px;
    font-weight: 600;
    margin: 28px 0 14px 0;
}

.news-content p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.8;
}

.news-content ul,
.news-content ol {
    margin: 22px 0 22px 32px;
}

.news-content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-content blockquote {
    border-left: 5px solid #2d5a27;
    margin: 28px 0;
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05), rgba(74, 124, 89, 0.05));
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.news-content a {
    color: #2d5a27;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    background: linear-gradient(to right, #2d5a27, #2d5a27) bottom left;
    background-size: 0 2px;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.news-content a:hover {
    color: #1a3a1e;
    background-size: 100% 2px;
}

/* ===================================================
   ナビゲーションリンク
   ================================================ */
.navigation-links {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 45px;
}

.nav-link {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
    color: #333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05), rgba(74, 124, 89, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(45, 90, 39, 0.15);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #2d5a27;
    position: relative;
    z-index: 1;
}

/* ===================================================
   アニメーション
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* アニメーション遅延 */
.news-item:nth-child(1) { animation-delay: 0.05s; }
.news-item:nth-child(2) { animation-delay: 0.1s; }
.news-item:nth-child(3) { animation-delay: 0.15s; }
.news-item:nth-child(4) { animation-delay: 0.2s; }
.news-item:nth-child(5) { animation-delay: 0.25s; }
.news-item:nth-child(6) { animation-delay: 0.3s; }
.news-item:nth-child(7) { animation-delay: 0.35s; }
.news-item:nth-child(8) { animation-delay: 0.4s; }
.news-item:nth-child(9) { animation-delay: 0.45s; }
.news-item:nth-child(10) { animation-delay: 0.5s; }

/* ===================================================
   レスポンシブ対応
   ================================================ */
@media (max-width: 768px) {
    .container2 {
        padding: 40px 25px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 24px;
        margin: 40px 0 0;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-column {
        width: 100%;
    }
    
    .sidebar-widget {
        padding: 22px;
        margin-bottom: 18px;
    }
    
    .year-tabs {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 24px;
    }
    
    .year-tab {
        min-width: 85px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .news-list {
        gap: 18px;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-radius: 12px;
    }
          
    .news-meta {
        align-self: flex-end;
    }
    
    .news-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
       
    .pagination {
        gap: 20px;
        padding: 12px;
    }
    
    .pagination-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .page-info {
        width: 80px;
        height: 60px;
        font-size: 16px;
    }
    
    /* 詳細ページのレスポンシブ */
    .news-header,
    .news-content {
        padding: 28px;
        border-radius: 12px;
    }
    
    .news-header .news-title {
        font-size: 26px;
    }
    
    .news-header .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .navigation-links {
        flex-direction: column;
        gap: 18px;
    }
    
    .nav-link.next {
        text-align: left;
    }
}

@media (max-width: 480px) {  
    .container2 {
        padding: 40px 25px 0;
    }

    .content-wrapper {
        margin: 30px 0 0;
    }

    .news-item {
        padding: 18px;
    }
          
    .pagination {
        gap: 16px;
        padding: 10px;
    }
    
    .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sidebar-widget {
        padding: 18px;
    }
}