/*//////////////////////////////////////////////////

Title : layout.css
For   : FURFUR styles of ranking page

Created       : 2022-08-16
Last Modified : 2022-08-16

//////////////////////////////////////////////////*/

/*
==============================================================================================
																				1. common / module
==============================================================================================
*/
#Contents .contRanking img {
  width: 100%;
  height: auto;
}

#Contents .contRanking .content__block {
  display: grid;
}

#Contents .contRanking .content__unit {
  position: relative;
}

#Contents .contRanking .rank {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#Contents .contRanking .rank {
  background-color: var(--rank-color, #B3B3B3);
}

#Contents .contRanking .rank {
  position: absolute;
  top: 0;
  left: 0;
  color: #FFFFFF;
}

#Contents .contRanking .content__unit:first-of-type .rank {
  --rank-color: #AF8F1F;
}

#Contents .contRanking .content__unit:nth-of-type(2) .rank {
  --rank-color: #808080;
}

#Contents .contRanking .content__unit:nth-of-type(3) .rank {
  --rank-color: #BB633C;
}

#Contents .contRanking .content__image {
  background: #fff;
}

#Contents .contRanking .tab {
  text-align: center;
}

#Contents .contRanking .tab__category {
  width: fit-content;
  color: #808080;
  cursor: pointer;
  letter-spacing: 0.035em;
}

#Contents .contRanking .product__info {
  text-align: center;
}

#Contents .contRanking .swiper-slide-thumb-active {
  color: #000000;
  border-bottom: 1px solid #000000;
}
/*
//////////////////////////////////////////////////////////////////////////////////////////////
                                          for desktop
//////////////////////////////////////////////////////////////////////////////////////////////
*/
@media screen and (min-width: 600px) {
  .hidden-desktop {
    display: none;
  }

  #Contents .contRanking {
    padding-block: 60px;
  }

  #Contents .contRanking .rank {
    width: 12px;
    height: 15px;
    font-size: 12px;
  }

  #Contents .contRanking .content__unit:nth-child(n + 10) .rank {
    width: 17px;
    padding-inline-end: 1px;
  }

  #Contents .contRanking .tab {
    margin-block-start: 40px;
  }

  #Contents .contRanking .content__block {
    grid-template-columns: repeat(5,1fr);
    column-gap: 20px;
    row-gap: 40px;
    max-width: 1020px;
    width: 95%;
    margin-inline: auto;
  }

  #Contents .contRanking .content__image {
    padding: 1rem 2rem;
  }

  #Contents .contRanking .tab__category {
    font-size: 15px;
    line-height: 1.5;
  }

  #Contents .contRanking .tab__category + .tab__category {
    margin-inline-start: 15px;
  }

  #Contents .contRanking .products {
    margin-block-start: 40px;
  }

  #Contents .contRanking .product__info {
    margin-block-start: 20px;
    font-size: 13px;
    line-height: 1.69231;
  }

  #Contents .contRanking .product__info {
    margin-top: 20px;
  }

  #Contents .contRanking .tab__list {
    justify-content: center;
  }
}
/*
//////////////////////////////////////////////////////////////////////////////////////////////
                                          for mobile
//////////////////////////////////////////////////////////////////////////////////////////////
*/
@media screen and (max-width: 599px) {
  .hidden-phone {
    display: none;
  }

  #Contents .contRanking {
    padding-block: calc(100* (100vw/750));
    padding-inline: calc(30* (100vw/750));
  }

  #Contents .contRanking .content__block {
    grid-template-columns: repeat(2,1fr);
    column-gap: calc(20* (100vw/750));
    row-gap: calc(50* (100vw/750));
  }

  #Contents .contRanking .rank {
    width: calc(24* (100vw/750));
    height: calc(30* (100vw/750));
    padding-block-start: calc(5* (100vw/750));
    font-size: calc(24* (100vw / 750));
  }

  #Contents .contRanking .content__unit:nth-child(n + 10) .rank {
    width: calc(34* (100vw/750));
    padding-inline-end: calc(2* (100vw/750));
  }

  #Contents .contRanking .content__image {
    padding: calc(15* (100vw / 750));
  }

  #Contents .contRanking .tab {
    margin-block-start: calc(60* (100vw/750));
  }
  
  #Contents .contRanking .tab__list {
    padding-block-end: calc(30* (100vw/750));
  }

  #Contents .contRanking .tab__category {
    font-size: calc(28* (100vw/750));
    line-height: 1.2;
  }

  #Contents .contRanking .tab__category + .tab__category {
    margin-inline-start: calc(30* (100vw/750));
  }

  #Contents .contRanking .products {
    margin-block-start: calc(30* (100vw/750));
  }

  #Contents .contRanking .product__info {
    margin-block-start: calc(15* (100vw/750));
    font-size: calc(20* (100vw/750));
    line-height: 1.5;
  }

  #Contents .contRanking .product__info {
    margin-top: calc(25* (100vw / 750));
    font-size: calc(20*(100vw/750));
  }
}