main {
    border-top: 1px solid #e5e5e5;
    padding-top: 4rem;
}
.main-frame {
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1050px;
}
.main-icon {
    height: 120px;
}
@media screen and (max-width: 500px) {
    .main-icon {
        width: 19vw;
    }
}
.main-categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 1.8rem 0 4rem 0;
    text-align: center;
    row-gap: 0.6rem;
    column-gap: 2rem;
}
.main-categories a {
    display: inline-block;
    width: 9rem;
    color: #2a2a2a;
    text-decoration-line: none;
    border: 1px #2a2a2a solid;
    border-radius: 1rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.main-categories-select {
    display: none;
}
@media screen and (max-width: 1050px) {
    .main-categories {
        width: 500px;
        justify-content:space-evenly;
    }
    .main-categories a {
        width: 14rem;
        border-radius: 0.7rem;;
    }
}
.main-categories a:hover, .main-categories a.selected {
    background-color: #f6f6f6;
}

.main-works {
    width: 100%;
    display: grid;
    grid-template-columns: 500px 500px;
    justify-content: space-between;
    row-gap: 2.5rem;
    margin-bottom: 8rem;
}
@media screen and (max-width: 1050px) {
    .main-works {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .main-works-item {
        padding-bottom: 10px;
    }
}
.main-works-item {
    width: 500px;
    height: max-content;
}
@media screen and (max-width: 520px) {
    .main-categories {
        width: 100%;
    }
    .main-categories a {
        display: none;
    }
    .main-categories-select {
        display: block;
        width: 8rem;
        font-size: 1rem;
    }
    .main-works {
        grid-template-columns: 100%;
    }
    .main-works-item {
        width: 100%;
        padding: 0 10px 0 10px;
        box-sizing: border-box;
    }
}
.main-works-img {
    display: block;
    width: 100%;
    aspect-ratio: 67/53;
}
.main-works-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main-works-caption {
    display: grid;
    grid-template-columns: 1fr 5rem;
    border-bottom: 1px #e5e5e5 solid;
    padding: 1.2rem 1rem 1.2rem 1rem;
}
.main-works-title {
    padding-right: 1.5rem;
    display: grid;
    place-items: center left;
}
.main-works-title>div>div:first-child {
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.main-works-title>div>div:last-child {
    font-size: small;
}
.main-works-categories {
    display: grid;
    place-items: center left;
    grid-template-columns: 5rem;
    font-size: small;
    color: #a6a6a6;
    justify-content: space-between;
}
