/* カスタマイズ用CSS */
.hero_block {
    margin: 5em 0;
}

.btn_wrap {
    margin: 2.5em 0;
    text-align: center;
}

.btn_link {
    padding: 0.5em 1em;
    font-size: 1.5em;
    color: white;
    background: black;
}

/* トピック */
.topic {
    color: black;
}

.topic-head {
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;;
}

.topic-head * {
    margin: 0;
}

/* カスタムカテゴリー */
.custom-cateogories {
    display: block;
    width: 100%;
    margin: 3em 0;
    padding: 0 1em;
}

.custom-category-list {
    display: block;
}

.custom-category-list_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.custom-category-item {
    position: relative;
}

.custom-category-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.25em;
    font-weight: bold;
}

.custom-category-item img {
    max-width: 100%;
    border-radius: 8px;
    filter: brightness(75%);
    transition: 0.4s;
}

.custom-category-item:hover img {
    filter: brightness(100%);
}

.custom-category-item:hover .custom-category-name {
    color: #4c5159;
}

@media screen and (max-width: 768px) {
    .custom-category-list_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 428px) {
    .custom-category-list_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}