/* ヘッダー最上部固定 */
header {
    position: fixed;
    z-index: 900;
}

.character-category {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 150px;
}

.character-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 50px;
}

.character {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.character.floating {
    transform: translateY(-5px);
    box-shadow: 0 8px 13px rgba(0, 0, 0, 0.3);
}

.character:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 13px rgba(0, 0, 0, 0.3);
}

.character-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-img-wrapper img {
    width: 60%;
}

.character-name {
    text-align: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.character-description {
    font-size: 1rem;
    text-align: center;
    font-weight: 350;
}

@media screen and (min-width : 480px){
    .character {
        width: 80%;
        margin: 0 auto;
    }
    .character-category {
        font-size: 3rem;
    }
    .character-img-wrapper img {
        width: 60%;
    }
}

@media screen and (min-width: 768px) {
    .character-category {
        font-size: 3.5rem;
    }
    .character-container {
        flex-direction: row;
        gap: 2%;
    }
    .character {
        width: 32%;
        box-shadow: none;
        transition: none;
    }
    .character-dummy {
        width: 32%;
    }
    .character.floating {
        transform: none;
        box-shadow: none;
    }
    .character-img-wrapper img {
        width: 60%;
    }
    .character-name {
        font-size: 1.25rem;
    }
    .character-description {
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 1024px) {
    .character-description {
        font-size: 0.95rem;
    }
}