@charset "UTF-8";
/* ======================================================
   Oyakutati List Page Styles
   ナレッジ一覧ページ専用CSS
   
   配色・デザインは詳細ページ (oyakutati.css) に準拠
====================================================== */

/* ------------------------------------------------------
   Page Container
------------------------------------------------------ */
.oyakutati-list-page {
    padding-top: 190px;
    padding-bottom: 120px;
    background-color: #fff;
}

/* ------------------------------------------------------
   Header Area
------------------------------------------------------ */
.oyakutati-list-header {
    margin-bottom: 40px;
    max-width: 800px;
}

.oyakutati-list-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-forest-dark, #063026);
}

.oyakutati-list-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-normal, #333333);
}

/* ------------------------------------------------------
   Filter Tabs
------------------------------------------------------ */
.oyakutati-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-300, #e5e5e5);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700, #525252);
    background: #fff;
    border: 1px solid var(--gray-400, #d4d4d4);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--color-forest-dark, #063026);
    border-color: var(--color-forest-dark, #063026);
    background: var(--color-green-lightE8, #E5EEE8);
    text-decoration: none;
}

.filter-tab.active {
    color: #fff;
    background: var(--color-forest-dark, #063026);
    border-color: var(--color-forest-dark, #063026);
}

.filter-tab.active:hover {
    background: var(--color-teal, #2C7260);
    border-color: var(--color-teal, #2C7260);
}

/* ------------------------------------------------------
   Card Grid
------------------------------------------------------ */
.oyakutati-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* ------------------------------------------------------
   Card Component
------------------------------------------------------ */
.oyakutati-card {
    background: #fff;
    border: 1px solid var(--gray-300, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.oyakutati-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 114, 96, 0.12);
    border-color: var(--color-teal, #2C7260);
}

.oyakutati-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.oyakutati-card-link:hover {
    text-decoration: none;
}

/* Card Thumbnail */
.card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 536;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.oyakutati-card:hover .card-thumbnail img {
    transform: scale(1.03);
}

/* Card Body */
.card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card Meta (Category & Reader) */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.card-category {
    display: inline-block;
    padding: 4px 10px 6px;
    background: var(--color-forest-dark, #063026);
    color: #fff;
    font-weight: 600;
    border-radius: 3px;
}

.card-reader {
    color: var(--gray-600, #737373);
    font-size: 0.75rem;
}

/* Card Title */
.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-forest-dark, #063026);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oyakutati-card:hover .card-title {
    color: var(--color-teal, #2C7260);
}

/* Card Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px 6px;
    background: var(--color-teal, #2C7260);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Card Action Button */
.card-action {
    margin: 0 auto;
    padding-top: 8px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 50px 15px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-teal, #2C7260);
    background: #fff;
    border: 2px solid var(--color-teal, #2C7260);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.oyakutati-card:hover .btn-detail {
    background: var(--color-teal, #2C7260);
    color: #fff;
}

/* No Posts Message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-100, #fafafa);
    border-radius: 8px;
}

.no-posts-message p {
    font-size: 1rem;
    color: var(--gray-600, #737373);
    margin-bottom: 24px;
}

.no-posts-message .btn {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    border: 2px solid var(--color-teal, #2C7260);
    color: var(--color-teal, #2C7260);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.no-posts-message .btn:hover {
    background: var(--color-teal, #2C7260);
    color: #fff;
}

/* ------------------------------------------------------
   Pagination
------------------------------------------------------ */
.oyakutati-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700, #525252);
    background: #fff;
    border: 1px solid var(--gray-400, #d4d4d4);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-link:hover:not(.disabled) {
    color: var(--color-teal, #2C7260);
    border-color: var(--color-teal, #2C7260);
    text-decoration: none;
}

.pagination-link.disabled {
    color: var(--gray-400, #d4d4d4);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700, #525252);
    background: #fff;
    border: 1px solid var(--gray-400, #d4d4d4);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    color: var(--color-teal, #2C7260);
    border-color: var(--color-teal, #2C7260);
    text-decoration: none;
}

.pagination-number.active {
    color: #fff;
    background: var(--color-forest-dark, #063026);
    border-color: var(--color-forest-dark, #063026);
}

.pagination-number.active:hover {
    background: var(--color-teal, #2C7260);
    border-color: var(--color-teal, #2C7260);
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 0.875rem;
    color: var(--gray-500, #a3a3a3);
}


/* ------------------------------------------------------
   Responsive Styles
------------------------------------------------------ */

/* Tablet (2 columns) */
@media (max-width: 1024px) {
    .oyakutati-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile (1 column) */
@media (max-width: 768px) {
    .oyakutati-list-page {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .oyakutati-list-header {
        margin-bottom: 32px;
    }

    .oyakutati-list-title {
        font-size: clamp(24px, 5vw, 32px);
    }

    /* Filter Tabs - Horizontal Scroll */
    .oyakutati-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        margin-bottom: 32px;
        padding-bottom: 16px;
    }

    .oyakutati-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    /* Card Grid - 1 column */
    .oyakutati-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-body {
        padding: 16px 20px 20px;
    }

    .card-title {
        font-size: 0.9375rem;
        -webkit-line-clamp: 2;
    }

    /* Pagination */
    .oyakutati-pagination {
        gap: 4px;
        flex-wrap: wrap;
    }

    .pagination-link {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8125rem;
    }

    .pagination-dots {
        min-width: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oyakutati-list-page {
        padding-top: 120px;
    }

    .oyakutati-list-page .container {
        padding: 40px 24px 0;
    }

    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .card-tags {
        gap: 6px;
    }

    .card-tag {
        font-size: 0.6875rem;
        padding: 3px 10px;
    }

    .btn-detail {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    /* Pagination - Simplified on small screens */
    .pagination-prev,
    .pagination-next {
        padding: 8px 10px;
    }
}
