@charset "UTF-8";
/* サイズ定義を追加（管理画面でも設定している） */
html {
  font-size: 62.5%;
}

@media screen and (min-width: 768px) {
  html {
    font-size: 70%;
  }
}
@media screen and (min-width: 1280px) {
  html {
    font-size: 90%;
  }
}
/* ----- 全体 ----- */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, nav, hr {
  display: none;
}

h2 {
  display: none;
}

ol {
  counter-reset: ranking;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}
ol li {
  position: relative;
  flex: 0 0 40%;
  margin: 0 0.5rem 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem;
  box-sizing: border-box;
  /* 上位3位の強調 */
}
ol li img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: block;
}
ol li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #222;
  font-size: 0.8rem;
  line-height: 1.2;
  flex-wrap: wrap;
  /* 商品名の折り返し2行省略 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  /* ランキング番号 */
}
ol li a::before {
  counter-increment: ranking;
  content: counter(ranking);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #e63946;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-family: serif;
}
ol li:nth-child(1) a::before {
  background: gold;
  color: #000;
  font-size: 1.3rem;
}
ol li:nth-child(2) a::before {
  background: silver;
  color: #000;
  font-size: 1.2rem;
}
ol li:nth-child(3) a::before {
  background: #cd7f32;
  font-size: 1.2rem;
}

/* --- TB以上: 5カラム固定 --- */
@media screen and (min-width: 768px) {
  ol {
    flex-wrap: wrap;
    overflow-x: visible;
    margin: 0 -0.5rem;
  }
  ol li {
    flex: 0 0 calc((100% - 5rem) / 5);
    margin: 0 0.5rem 1rem;
  }
}/*# sourceMappingURL=ranking.css.map */