@font-face {
    font-family: "main";
    src: url(./font/Hannari.otf) format("opentype");
}

@font-face {
    font-family: "sabu";
    src: url(./font/Honoka.otf) format("opentype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.65em;
}

img {
    vertical-align: middle;
}

html {
    font-size: 14px;
    font-family: "main", serif;
    color: #262626;
}

body {
    background-color: black;
}

#content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem;
    padding: 2rem;
    width: 500px;
    height: 1000px;
    background-color: #f3f3ee;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #262626;

    h1 {
        position: relative;
        top: -0.15em;
        right: -0.3em;
        font-size: 1.5lh;
        line-height: 1em;
        text-align: right;
    }

    .info {
        font-size: 0.85rem;
        border-right: 1px solid #262626;
    }

    > * {
        width: 50%;
    }

}


main {
    display: grid;
    grid-template-rows: 3fr 2fr 1fr;
    height: calc(100% - (1rem * 2 + 2lh));

    h2 {
        display: grid;
        grid-template-columns: fit-content(10em) auto;
        align-items: center;
        gap: 1rem;
        margin: 0.5rem 0;
        font-family: "sabu", serif;
        font-size: 1.25rem;

        &::after {
            content: "";
            display: block;
            width: 100%;
            height: 1px;
            border-bottom: 1px solid #262626;
        }

    }

    ul.container {
        list-style: none;
    }

}

.new_release, .free_game {

    ul.container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .thumb {
        margin-bottom: 0.5rem;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .title {
        font-size: 1.1rem;
        font-feature-settings: "palt";
    }

    .text {
        font-size: 0.84rem;
    }

    li.item .info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
}

.new_release {

    ul.container {
        > li.item {
            
            .thumb {
                width: 100%;
                height: auto;
                aspect-ratio: 1 / 1;
                border-radius: 2rem;
                overflow: hidden;
                border: #e6e6e1 1px solid;
            }

            .price {
                display: flex;
                gap: 0.5rem;
                list-style: none;
            }

        }

    }

}

.free_game {
    
    ul.container {

        > li.item {
            
            .thumb {
                width: 100%;
                height: auto;
                aspect-ratio: 2.35 / 1;
                background-color: aqua;
            }

            .title {
                height: 2lh;
            }
        
        }

    }

}

.other {
    position: relative;
    .title {
        font-weight: bold;
    }

    .text {
        font-size: 0.85rem;
    }

    ul.container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;

        > li.item {
            width: calc(50% - 0.5rem);
        }

        > li:last-child div {
            position: absolute;
            bottom: -1rem;
            right: 0;
            width: calc(50% - 0.5rem);
            text-align: right;
        }

    }

}
