@charset "utf-8";

/*==========================
catch class
==========================*/

.catch--class {
    margin: 59px 7.7vw 0px;
}


/* .catch class pc */
@media screen and (min-width:835px) {

    .catch--class {
        margin: 52.4px 5.2vw 0px 15.2vw;
    }

}

/*==========================
topics
==========================*/

body {
    background-color: var(--base-white);
}

.footer__group {
    background-color: var(--base-beige);
}

.topics {
    margin: 114px 10.6vw 66px;
}

.category {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 11px;
}

.category__list {
    color: #6D6D6D;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: 0.15px;
    cursor: pointer;
    position: relative;
    transition: 0.5s;
}

.category__list.active { 
    color: #3C3835;
    font-weight: 700;
}

.category__list::after { 
    content: '';
    display: block;
    width: 18px;
    height: 0.3px;
    background-color: transparent;
    position: absolute;
    top: 28px;
    bottom: 0px;
    right: 0;
    left: 0;
    margin: 0px auto;
    transition: 0.5s;
}

.category__list.active::after { 
    background-color: var(--accent-black);
}

.topics__content {
    margin-top: 42px;
}

.topics__frame--topics {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.topics__item {
    background-color: var(--base-beige);
    padding: 16px 26px;
    position: relative;
}

.topics__top {
    height: 122px;
}

.topics__item::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.5px;
    background-color: var(--accent-black);
    position: absolute;
    bottom: -20px;
    right: 0;
    left: 0; 
}

.topics__day {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.14;
    letter-spacing: 0.14px;  
}

.topics__title {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.85;
    margin-top: 5px;
}

.topics__category {
    color: #6D6D6D;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.14; /* 214.286% */
    letter-spacing: 0.14px;
    margin-top: 5px;
}

.moreframe--topics {
    text-align:left;
    margin-top: 57px;
}

.more--topics {
    font-size: 1.4rem;
    letter-spacing: 0.14px;
}

.arrow--topics {
    width: 26px;
    height: 18px;
}

.topics__img {
    object-fit: cover;
    margin-top: 12px;
    width: 72vw;
    height: auto;
}

.pagination {
    text-align: center;
    margin-top: 61px;
}

.page-numbers {
    color: #6D6D6D;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: 0.14px;
    position: relative;
    margin-left: 25px;
}

.page-numbers.current {
    color: #3C3835;
    font-weight: 900;
}

.page-numbers.current::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.3px;
    background-color: var(--accent-black);
    position: absolute;
    bottom: -5px;
    right: 0;
    left: 0; 
}

/* .topics pc */
@media screen and (min-width:835px) {

    .topics {
        margin: 182px 0px 118px 19.2vw;
    }
    
    .category {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 25px;
    }
    
    .category__list {
        font-size: 1.6rem;
        line-height: 1.25;
        letter-spacing: 0.16px;
    }
    
    .category__list.active { 
        color: #3C3835;
        font-weight: 700;
    }

    .topics__content {
        margin-top: 3.5px;
    }

    .topics__frame--topics {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 35px;
    }

    .topics__item {
        width: 316px;
        height: 458px;
        padding: 14px 21px 0px;
        margin-top: 50px;
        background-color: transparent;
        transition: 0.6s;
    }

    .topics__top {
        height: 134px;
    }

    .topics__item::after {
        top: 500px;
    }

    .topics__item:hover {
        background-color: var(--base-beige);
    }

    .topics__day {
        display: block;
        font-size: 1.6rem;
        line-height: 1.87;
        letter-spacing: 0.16px;  
    }
    
    .topics__item .topics__title {
        display: inline;
        font-size: 1.6rem;
        line-height: 1.87;
        letter-spacing: 0.16px;
        margin-top: 7px;
        position: relative;
        background: linear-gradient(var(--accent-black), var(--accent-black)) 0 100%/0 0.3px no-repeat;
        transition: background 0.7s;
        text-decoration: none;
    }

    .topics__item:hover .topics__title {
        background-size: 100% 0.5px;
    }
    
    .topics__category {
        margin-top: 7px;
    }
    
    .moreframe--topics {
        text-align:left;
        margin-top: 89px;
    }
    
    .more--topics {
        font-size: 1.6rem;
        letter-spacing: 0.16px;
        padding: 0px;
        overflow: hidden;
        color: transparent;
        text-shadow: 0 -1.5em 0 var(--accent-black), 0 0 0 var(--accent-black);
        transition: 0.3s;
    }

    .topics__item:hover .more--topics {
        text-shadow: 0 0 0 var(--accent-black), 0 1.5em 0 var(--accent-black);
    }
    
    .topics__img {
        width: 272px;
        height: 173px;
        object-fit: cover;
        margin-top: 15px;
    }

    .pagination {
        margin: 128px 9vw 0px 0px;
    }

    .page-numbers {
        color: #6D6D6D;
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: 0.16px;
    }
}