@charset "UTF-8";

.main .content {
    background-color: var(--blue_3);
    padding-bottom: 50px;
}

.max-w {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.h1-wrap {
    background-color: #fff;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: solid 1px var(--blue_2);
}

.filter li {
    cursor: pointer;
    font-size: 14px;
    border-radius: 5rem;
    padding: 5px 30px 5px 13px;
    background-color: #fff;
    color: var(--blue);
    position: relative;
}

.filter li.is-active {
    background-color: var(--blue);
    color: #fff;
}

.filter li::before {
    content: "\2b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: var(--blue_2);
    position: absolute;
    top: 50%;
    right: 10px;
    margin-right: 0;
    transform: translate(0, -50%) rotate(0deg);
    transition: all 0.2s;
}

.filter li.is-active::before {
    color: #fff;
    transform: translate(0, -50%) rotate(-45deg);
}

.category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 10px;
}

.category li {
    display: none;
}

.category li.is-show {
    display: block;
}

.category li a {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    padding: 12px 40px 18px 20px;
    position: relative;
}

.category li a:hover {
    color: #fff;
    background-color: var(--blue);
}

.category li a::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--blue);
    width: 45px;
    height: 45px;
    background-color: var(--blue_3);
    clip-path: circle(100% at 100% 100%);
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 15px 0 0 20px;
}

.category li h3 {
    font-size: 17px;
    font-weight: 700;
}

.category li p {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.3;
}

@media screen and (max-width: 640px) {
    .category {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter {
        gap: 5px 5px;
    }

    .filter li {
        font-size: 12px;
    }

    .category li a {
        padding: 12px 40px 18px 20px;
    }

    .category li a::before {
        width: 35px;
        height: 35px;
        background-size: 11px;
    }

    .category li h3 {
        font-size: 16px;
    }

    .category li p {
        margin-top: 5px;
        font-size: 13px;
    }

}