@charset "UTF-8";
/* CSS Document */
/*tabの形状*/
.tab {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.tab li a {
  display: block;
  border-bottom: solid 1px #999;
  color: #999;
  font-weight: 600;
  margin: 0 0px;
  padding: 15px 20px;
}
/*liにactiveクラスがついた時の形状*/
.tab li.active a {
  color: #333;
  border-bottom: solid 1px #333;
}
/*エリアの表示非表示と形状*/
.ranking-area {
  display: none; /*はじめは非表示*/
  opacity: 0; /*透過0*/
  background: #fff;
  padding: 10px 20px;
}
/*areaにis-activeというクラスがついた時の形状*/
.ranking-area.is-active {
  display: block; /*表示*/
  animation-name: displayAnime; /*ふわっと表示させるためのアニメーション*/
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
@keyframes displayAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*========= レイアウトのためのCSS ===============*/
body {
  background: #eee;
}
ul {
  list-style: none;
  padding-left: 0px;
}
a {
  color: #333;
  text-decoration: none;
}
.ranking-wrapper {
  max-width: 375px;
  width: 100%;
  margin: 30px auto;
  background: #fefefe;
}
.ranking-wrapper h1 {
  color: #333;
  font-size: 1.5rem;
  padding-top: 60px;
  margin-bottom: 60px;
  text-align: center;
}
.ranking-contents {
  display: flex;
  justify-content: center;
}
.ranking-contents-items {
  margin: 3px;
}
.ranking-contents-items p {
  font-size: 0.5rem;
  color: #333;
  text-align: center;
}
.ranking-contents-items img {
  width: 167px;
  height: 167px;
  object-fit: cover;
}
.ranking-icon {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}
.ranking01 {
  color: #ba9e21;
}
.ranking02 {
  color: #aaaaaa;
}
.ranking03 {
  color: #a36b21;
}
@media(min-width:1160px) {
  body {
    background: #fff;
  }
  .tab li a {
    padding: 15px 30px;
    font-size: 1.2rem;
  }
  .ranking-wrapper {
    max-width: 1140px;
  }
  .ranking-contents-items p {
    font-size: 1.2rem;
  }
  .ranking-contents-items img {
    width: 400px;
    height: 400px;
  }
  .ranking-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}