/*
Archive Page Custom Styles
このファイルはアーカイブページ専用のスタイルです
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgba(41, 169, 184, 0.95);
    --secondary-color: rgba(41, 169, 184, 0.95);
    --text-color: rgba(41, 169, 184, 0.95);
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.archive-header {
    background: #ffffff;
    color: rgba(41, 169, 184, 0.95);
    padding: 60px 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-title i {
    margin-right: 10px;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
.archive-main {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

/* Filter Section */
.filter-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.filter-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

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

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: 25px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

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

.search-box i {
    color: var(--text-light);
}

.search-box input[type="text"] {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    width: 200px;
}

/* Results Info */
.results-info {
    margin-bottom: 20px;
}

.results-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* News List */
.news-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: var(--bg-light);
}

.news-item-date {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
    min-width: 120px;
    flex-shrink: 0;
}

.news-item-title {
    flex: 1;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.6;
    padding: 0 20px;
}

.news-item-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-arrow {
    transform: translateX(5px);
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.archive-pagination .page-numbers {
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.archive-pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.archive-pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.no-posts i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive-title {
        font-size: 1.8rem;
    }

    .archive-description {
        font-size: 0.95rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left {
        justify-content: center;
    }

    .search-box {
        justify-content: center;
    }

    .search-box input[type="text"] {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 12px;
    }

    .news-item-date {
        min-width: auto;
        font-size: 0.9rem;
    }

    .news-item-title {
        padding: 0;
        font-size: 0.95rem;
    }

    .news-item-arrow {
        align-self: flex-end;
    }
}

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

    .archive-title {
        font-size: 1.5rem;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }

    .news-item {
        padding: 16px;
    }
}
