body{
    background-color: #424776;
    color: #ffffff;
}
section{
    margin: 90px auto;
}
h2{
    font-size: 30px;
    text-align: center;
}
.br-sp{
    content: "\A";
    white-space: pre;
}
.result_explain-head, .contest_list-head{
    font-size: 22px;
    font-weight: bold;
}

/* 雪のアニメーション */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP&display=swap");
#embedim--snow {
    z-index: -1 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== index.html ===== */
.contest_result-explain{
    text-align: center;
    line-height: 1.5rem;
}
.result_explain-head{
    margin-bottom: 20px;
}

.contest_result{
    max-width: 1245px;
    margin: 100px auto;
}
.result-item{
    display: flex;
    align-items: center;
}
.contest_result-rank{
    padding: 0 100px;
}
.contest_result-rank li{
    position: relative;
    margin-top: 100px;
}
.contest_result-rank .result-item-1{
    background-color: rgb(0 55 6);
    border-radius: 8px;
    width: 650px;
    height: 450px;
    margin: 60px auto;
    padding-left: 13px;
}
.rank {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
}
.contest_result-rank .result-item-1 img{
    width: 50%;
    height: 420px;
}
.contest_result-rank .bottom{
    display: flex;
    justify-content: center;
    gap: 60px;
}
.contest_result-rank .bottom .result-item{
    background-color: rgb(0 55 6);
    border-radius: 6px;
    width: 520px;
    height: 380px;
    padding-left: 13px;
}
.bottom .result-item img{
    width: 50%;
    height: 355px;
}
.contest_result-rank .class-type{
    margin: 20px 0 15px 0;
}
.text-wrap{
    color: #fff;
}
.result-item .text-wrap{
    text-align: center;
    width: 50%;
    padding: 0 10px;
}

/* ===== contest_list ===== */
.contest_list{
    max-width: 1200px;
    margin: 0 auto;
}
.contest_list p{
    text-align: center;
    margin-bottom: 60px;
}
.contest_list ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.contest_list-item{
    position: relative;
    width: 390px;
    height: 390px;
    padding: 20px;
}
.contest_list-item img{
    border-radius: 10px;
    width: 100%;
    height: 100%;
}
.contest_list-item .text-wrap{
    position: absolute;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.324);
    border-radius: 0 0 10px 10px;
    text-align: center;
    width: 350px;
    height: 22%;
    bottom: 20px;
}
.text-wrap .class-type{
    display: inline-block;
    font-size: 15px;
    border-radius: 50px;
    width: 150px;
    padding: 3px 0;
}
.contest_list-item .class-type{
    margin: 20px 0 7px 0;
}
.text-wrap .system{
    background-color: rgb(51, 187, 83);
}
.text-wrap .medical{
    background-color: rgb(187, 51, 51);
}
.text-wrap .technology{
    background-color: rgb(51, 90, 187);
}
.text-wrap .class-name{
    font-size: 18px;
    font-weight: bold;
}

.btn-long{
    background-color: #B3B3B3;
    border-radius: 80px;
    text-align: center;
    width: 240px;
    margin: 50px auto;
    padding: 18px 0;
}

@media only screen and (max-width: 1189px){
    .contest_result-rank{
        padding: 0;
    }
    .contest_result-rank .result-item-1{
        max-width: 520px;
        height: 380px;
    }
    .contest_result-rank .result-item-1 img{
        height: 355px;
    }
    .contest_result-rank .bottom{
        display: block;
    }
    .contest_result-rank .bottom .result-item{
        max-width: 520px;
        margin: 0 auto;
    }
    .result-item:first-child{
        margin-bottom: 60px;
    }
}
@media only screen and (max-width: 520px){
    h2{
        font-size: 28px;
    }
    .contest_result-explain{
        padding: 0 15px;
    }
    .contest_result-rank{
        padding: 0 20px;
    }
    .result-item{
        display: block;
    }
    .contest_result-rank .result-item-1,
    .contest_result-rank .bottom .result-item{
        max-width: 400px;
        width: 100%;
        padding: 13px;
        margin: 0 auto;
        height: 620px;
    }
    .contest_result-rank .result-item-1 img,
    .bottom .result-item img{
        border-radius: 2px;
        width: 100%;

        height: 500px;
        object-fit: fill;
    }
    .result-item .text-wrap{
        width: 100%;
        margin-top: 5px;
    }
    .text-wrap .class-type{
        margin: 20px 0 15px 0;
    }
    .contest_list-item{
        height: auto;
    }
    .contest_list-item .text-wrap{
        height: 25%;
    }
    .contest_list-item img{
        aspect-ratio: 1/1;
    }
}