body {
    background: #FFFFFF;
}

.main-contents {
    max-width: 1024px;
    margin: auto;
    text-align: center;
}

.main-contents h1 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 40px;
}

.main-contents h3 {
    width: 100%;
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #000000CC;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.portal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 500px));
    column-gap: 24px;
    row-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-list li {
    display: block;
    max-width: 500px;
}

.portal-list img {
    display: block;
    width: 100%;
    border-bottom: 1px solid #00000014;
}

.portal-list a {
    display: block;
    width: 100%;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #0000002E;
    overflow: hidden;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.portal-list a:hover {
    background: #f5f5f5;
}

.portal-list a:active {
    transition: transform 50ms ease;
    transform: scale(0.99);
}

.portal-list .description {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 16px 16px 24px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.portal-list .description .area-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.portal-list .description p {
    width: 100%;
    display: block;
    font-size: 12px;
    color: #00000099;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-list .icon {
    width: 40px;
    height: auto;
    color: #00000099;
}

@media screen and (max-width: 1024px) {
    .main-contents {
        margin: 0 16px;
    }

    .main-contents h3 {
        font-size: 16px;
    }

    .portal-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 24px;
        margin-bottom: 64px;
    }

    .portal-list li {
        width: 100%;
        max-width: 500px;
    }

    .portal-list .icon {
        width: 24px;
    }

    .portal-list .description {
        gap: 8px;
        padding: 12px;
    }
}
