/* ==================================
 * Works Archive - Page Title Header
 * ================================== */
.post-type-archive-works .c-pageTitle {
    width: 100%;
    max-width: 100%;
    background-color: #f7f7f7;
    padding: 80px 0;
    margin-bottom: 60px;
    text-align: center;
    /* 背景画像は各サイトに合わせて変更してください */
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.post-type-archive-works .c-pageTitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.post-type-archive-works .c-pageTitle > * {
    position: relative;
    z-index: 1;
}

.post-type-archive-works .c-pageTitle__en {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    line-height: 1.2;
}


/* ==================================
 * Works Filter Tabs
 * ================================== */
.p-works-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.c-filter-btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .c-filter-btn {
        font-size: 10px;
    }
}

.c-filter-btn:hover {
    background: #f0f0f0;
}

.c-filter-btn.active {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
}


/* ==================================
 * Works Archive Grid
 * ================================== */
.p-works-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .p-works-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .p-works-archive__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ==================================
 * Work Card
 * ================================== */
.c-work-card {
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.c-work-card__thumb {
    width: 100%;
    aspect-ratio: 55 / 36; /* 実画像サイズ 440×288 と同じ比率 */
    background: #f0f0f0;
    overflow: hidden;
}

.c-work-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-work-card__body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.c-work-card__meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #888;
}

.c-work-card__title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    line-height: 1.4;
    color: #333;
    border-bottom: none;
}

.c-work-card__info {
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 20px;
    margin-top: 0;
}

.c-work-card__row {
    display: flex;
    margin-bottom: 5px;
    line-height: 1.5;
}

.c-work-card__row:last-child {
    margin-bottom: 0;
}

.c-work-card__row dt {
    width: 5em;
    flex-shrink: 0;
    color: #888;
    font-weight: normal;
}

.c-work-card__row dd {
    margin-left: 0;
    color: #333;
    font-weight: 500;
}

.c-work-card__btn {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
}

.c-btn-official,
.c-btn-news-release {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.c-btn-official {
    background: #333;
    color: #fff;
}

.c-btn-official:hover {
    background: #555;
    color: #fff;
}

.c-btn-news-release {
    background: #fff;
    color: #1e73be;
    border: 1px solid #1e73be;
}

.c-btn-news-release:hover {
    background: #1e73be;
    color: #fff;
}


/* ==================================
 * Pagination
 * ================================== */
 .c-pagination {
    text-align: center;
 }
.c-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.c-pagination .page-numbers.current,
.c-pagination .page-numbers:hover {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
}


/* ==================================
 * News Archive Grid
 * ================================== */
.p-news-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .p-news-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .p-news-archive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ==================================
 * News Card
 * ================================== */
.c-news-card {
    background: #fff;
    overflow: hidden;
}

.c-news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.c-news-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    overflow: hidden;
}

.c-news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-news-card:hover .c-news-card__thumb img {
    transform: scale(1.05);
}

.c-news-card__body {
    padding: 16px 20px 20px;
}

.c-news-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.c-news-card__date {
    font-size: 0.85rem;
    color: #888;
}

.c-news-card__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e73be;
    background: rgba(30, 115, 190, 0.08);
    border: 1px solid rgba(30, 115, 190, 0.3);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}

.c-news-card__title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 4px;
    border-bottom: none;
}
