
/* ==========================================
   WEEDS MEDIA
========================================== */

.weeds-media {
    padding: 32px 0 80px;
}

.weeds-media__intro {
    padding: 36px 0 44px;
}

.weeds-media__eyebrow {
    margin-bottom: 12px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
}

.weeds-media__heading {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.5;
    font-weight: 700;
}

.weeds-media__description {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
}

.weeds-media__filters {
    margin-bottom: 52px;
}

.weeds-media__section-title {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.weeds-media__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.weeds-media__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: .2s ease;
}

.weeds-media__category:hover,
.weeds-media__category.is-active {
    border-color: #333;
    background: #333;
    color: #fff;
    text-decoration: none;
}

.weeds-media__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.weeds-media__sort {
    color: #888;
    font-size: 13px;
}

/* Article cards */

.weeds-media__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
}

.weeds-media__card {
    min-width: 0;
    margin: 0;
}

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

.weeds-media__card-link:hover {
    color: inherit;
    text-decoration: none;
}

.weeds-media__thumbnail {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: #f2f2f2;
}

.weeds-media__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.weeds-media__card-link:hover img {
    transform: scale(1.04);
}

.weeds-media__no-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.weeds-media__card-body {
    padding-top: 12px;
}

.weeds-media__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
    color: #888;
    font-size: 12px;
}

.weeds-media__card-category {
    color: #555;
    font-weight: 700;
}

.weeds-media__card-title {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

/* Pagination */

.weeds-media__pagination {
    margin-top: 55px;
}

.weeds-media__pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.weeds-media__pagination .page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.weeds-media__pagination a.page-numbers,
.weeds-media__pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    background: #fff;
    text-decoration: none;
}

.weeds-media__pagination .page-numbers.current {
    border-color: #333;
    background: #333;
    color: #fff;
}

.weeds-media__empty {
    padding: 50px 0;
    text-align: center;
    color: #777;
}

/* Responsive */

@media (max-width: 991px) {
    .weeds-media__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }
}

@media (max-width: 575px) {
    .weeds-media {
        padding: 20px 0 55px;
    }

    .weeds-media__intro {
        padding: 20px 0 36px;
    }

    .weeds-media__description {
        font-size: 14px;
    }

    .weeds-media__section-title {
        font-size: 19px;
    }

    .weeds-media__filters {
        margin-bottom: 38px;
    }

    .weeds-media__categories {
        gap: 8px;
    }

    .weeds-media__category {
        padding: 9px 13px;
        font-size: 12px;
    }

    .weeds-media__grid {
        gap: 24px 12px;
    }

    .weeds-media__card-title {
        font-size: 13px;
    }

    .weeds-media__meta {
        font-size: 11px;
    }
}

/* ==================================
   メディアトップ メインビジュアル
================================== */

.weeds-media-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 350px;
    padding: 40px 20px;
    overflow: hidden;
    isolation: isolate;
}

.weeds-media-cover .wp-block-cover__image-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.weeds-media-cover .wp-block-cover__background {
    position: absolute;
    inset: 0;
    background-color: rgba(61, 66, 67, 0.5);
    z-index: -1;
}

.weeds-media-cover .wp-block-cover__inner-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.weeds-media-cover__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}

.weeds-media-cover__subtitle {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .weeds-media-cover {
        min-height: 350px;
    }

    .weeds-media-cover__subtitle {
        font-size: 14px;
    }
}