
/* pageRanking-layout */
.pageRanking-layout{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0 auto;
    padding: 0 32.5px;
    width: 100%;
    max-width: 1920px;
}

/* Ranking-grid */
.pageRanking-layout .Ranking-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 30px 40px;
    counter-reset: section;
}

/* Ranking-pane */
.pageRanking-layout .Ranking-pane{
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px 40px;
    padding: 20px 40px;
    width: 100%;
    color: #fff;
    z-index: 1;
}
.pageRanking-layout .Ranking-pane::before{
    content: '';
    position: absolute;
    inset: 0;
    background: transparent linear-gradient(279deg, #017E84 0%, #008186 100%) 0% 0% no-repeat padding-box;
    border-radius: 11px;
    opacity: 0.17;
    z-index: -1;
}
.pageRanking-layout .Ranking-pane::after{
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: transparent linear-gradient(270deg, #017E84 0%, #008186 100%) 0% 0% no-repeat padding-box;
    border-radius: 11px;
    opacity: 0.18;
    z-index: -1;
}
.pageRanking-layout .Ranking-pane .Ranking-header{
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 30px;
    width: 500px;
}
.pageRanking-layout .Ranking-pane .Ranking-body{
    width: auto;
    flex-grow: 1;
}
.pageRanking-layout .Ranking-pane .Ranking-footer{
    width: auto;
    flex-shrink: 0;
}
@media only screen and (min-width: 1200px){
    .pageRanking-layout .Ranking-pane:nth-child(-n+2){
        flex-direction: column;
        width: calc( ( 100% - ( 2 - 1 ) * 40px ) / 2 );
    }
    .pageRanking-layout .Ranking-pane:nth-child(-n+2) .Ranking-header{
        padding-right: calc( 3rem + 10px + 10px );
        width: auto;
    }
    .pageRanking-layout .Ranking-pane:nth-child(-n+2) .Ranking-footer{
        display: none;
    }
}
@media only screen and (min-width: 1600px){
    .pageRanking-layout .Ranking-pane:nth-child(-n+3){
        flex-direction: column;
        width: calc( ( 100% - ( 3 - 1 ) * 40px ) / 3 );
    }
    .pageRanking-layout .Ranking-pane:nth-child(-n+3) .Ranking-header{
        padding-right: calc( 3rem + 10px + 10px );
        width: auto;
    }
    .pageRanking-layout .Ranking-pane:nth-child(-n+3) .Ranking-footer{
        display: none;
    }
}
@media only screen and (max-width: 1399.98px){
    .pageRanking-layout .Ranking-pane .Ranking-footer{
        display: none;
    }
}
@media only screen and (max-width: 1199.98px){
    .pageRanking-layout .Ranking-pane{
        flex-direction: column;
    }
    .pageRanking-layout .Ranking-pane .Ranking-header{
        width: auto;
    }
}
@media only screen and (max-width: 767.98px){
    .pageRanking-layout .Ranking-pane{
        padding: 30px 20px 20px;
        align-items: flex-start;
    }
    .pageRanking-layout .Ranking-pane .Ranking-header{
        width: auto;
        gap: 15px;
    }
}

/* Ranking-index */
.pageRanking-layout .Ranking-index{
    counter-increment: section;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.375rem;
    line-height: 1;
    background: transparent linear-gradient(141deg, #008186 0%, #52DCE0 100%) 0% 0% no-repeat padding-box;
    border-radius: 50%;
}
.pageRanking-layout .Ranking-index::after{
    content: counter(section);
}
@media only screen and (min-width: 1200px){
    .pageRanking-layout .Ranking-pane:nth-child(-n+2) .Ranking-index{
        position: absolute;
        top: 15px;
        right: 10px;
    }
}
@media only screen and (min-width: 1600px){
    .pageRanking-layout .Ranking-pane:nth-child(-n+3) .Ranking-index{
        position: absolute;
        top: 15px;
        right: 10px;
    }
}
@media only screen and (max-width: 767.98px){
    .pageRanking-layout .Ranking-index{
        display: none;
    }
    .pageRanking-layout .Ranking-mobileIndex{
        counter-increment: section;
        position: absolute;
        top: 0;
        left: 0;

        display: flex;
        justify-content: center;
        align-items: center;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
        line-height: 1;
        background: transparent linear-gradient(141deg, #008186 0%, #52DCE0 100%) 0% 0% no-repeat padding-box;
        border-radius: 50%;

        transform: translate3d(-50%, -50%, 0);
    }
    .pageRanking-layout .Ranking-mobileIndex::after{
        content: counter(section);
    }
}

/* firm-logo */
.pageRanking-layout .firm-logo{
    flex-shrink: 0;
    align-self: flex-start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 145px;
    height: 145px;
    background: #000;
    border-radius: 10px;
}
.pageRanking-layout .firm-logo a{
    display: flex;
    justify-content: center;
    align-items: center;
}
.pageRanking-layout .firm-logo img{
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}
@media only screen and (max-width: 767.98px){
    .pageRanking-layout .firm-logo{
        /* 460 ~ 760 - 16px */
        padding: clamp(5px, 1.6666666666666667vw + -2.666666666666667px ,10px);
        width: clamp(100px, 15vw + 31px ,145px);
        height: clamp(100px, 15vw + 31px ,145px);
        border-radius: clamp(5px, 1.6666666666666667vw + -2.666666666666667px ,10px);
    }
}

/* firm-company */
.pageRanking-layout .firm-company{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pageRanking-layout .company-title .title{
    margin: 0 0 0;
    color: #fff;
    font-size: 1.375rem;
    font-weight: normal;
    line-height: 1.363636;
}
@media only screen and (max-width: 767.98px){
    .pageRanking-layout .company-title .title{
        font-size: 1.25rem;
    }
}

/* company-reviews */
.pageRanking-layout .company-reviews{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 5px;
}
.pageRanking-layout .company-reviews .icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background: #133D5B 0% 0% no-repeat padding-box;
}
.pageRanking-layout .company-reviews .reviews-num{
    font-size: 18px;
    line-height: calc( 22/ 18 );
}
.pageRanking-layout .company-reviews .starBox{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #13DBC4;
}
.pageRanking-layout .company-reviews .starBox .item{
    --width: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pageRanking-layout .company-reviews .starBox svg {
    width: 1em;
    height: 1em;
    color: currentColor;
    fill: currentColor;
}
.pageRanking-layout .company-reviews .starBox .item svg:first-child{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-50%,0);
    clip-path: polygon(0 0, calc(100% - var(--width)) 0%, calc(100% - var(--width)) 100%, 0% 100%);
}
.pageRanking-layout .company-reviews .link{
    width: 100%;
    font-size: 13px;
    line-height: calc( 16 / 13);
}
.pageRanking-layout .company-reviews .link a{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #fff;
} 
.pageRanking-layout .company-challenges a{
    display: inline-block;
    margin: 0 0 0;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: normal;
    line-height: 1.307692;
    text-align: center;
    background-color: #133D5B;
    border-radius: 10px;
    user-select: none;
}



/* Ranking-list */
.pageRanking-layout .Ranking-list{
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 10px 20px;
}
.pageRanking-layout .Ranking-list .text{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
}
.pageRanking-layout .Ranking-list .text span{
    align-self: flex-start;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1;
    background: #008186;
    border-radius: 50%;
}
@media only screen and (max-width: 767.98px){
    .pageRanking-layout .Ranking-list{
        grid-template-columns: auto;
    }
}


/* Ranking-link */
.pageRanking-layout .Ranking-link{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    width: max-content;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: normal;
    line-height: 1.307692;
    background-color: rgb(9, 104, 120);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: all ease-in 300ms;
}
.pageRanking-layout .Ranking-link:hover{
    background-color: #1abc9c;
}
