/* トップページ（/）だけが読み込む。古いテーマのCSS（top-page.css、common-theme.css）の
   上に重ねる。対象は sites/towel/pages/index.html の agent-home-* の付いたブロック。 */

/* ---- 人気ランキング: スマートフォンでも5位まで出す ---- */
.agent-home-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
.agent-home-ranking .ranking-item:nth-child(4),
.agent-home-ranking .ranking-item:nth-child(5) {
  display: flex;
}
.agent-home-ranking .ranking-title a {
  color: inherit;
}
/* 画像は枠いっぱいに、順位の印は左上に（画像の右下には「全面印刷」の印がある） */
.agent-home-ranking .ranking-img {
  height: auto;
  align-self: flex-start;
}
.agent-home-ranking .ranking-img a {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  padding-bottom: 0;
}
.agent-home-ranking .ranking-img a img {
  display: block;
  position: static;
  transform: none;
  width: 100%;
  height: auto;
  max-height: none;
}
.agent-home-ranking .ranking-img::after {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
}

/* ---- 1枚から作れるオリジナルタオル ---- */
/* 古いCSSは、PCで5・6件目を隠す */
.product-you-see .agent-home-items .item:nth-child(5),
.product-you-see .agent-home-items .item:nth-child(6) {
  display: flex;
}
.product-you-see .agent-home-items .item {
  display: flex;
  flex-direction: column;
}
.agent-home-items .item-img {
  height: auto;
  margin: 0 0 10px;
}
.agent-home-items .item-img a {
  display: block;
  width: 100%;
  height: auto;
}
.agent-home-items .item-img a img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}
.agent-home-items .item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.agent-home-items .item-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
}
.agent-home-items .item-title a {
  color: inherit;
  text-decoration: none;
}
.agent-home-items .item-type {
  margin-bottom: 8px;
}
.agent-home-items .item-price {
  margin-top: auto;
}
.agent-home-items .item-btn .cs-btn {
  display: block;
  box-sizing: border-box;
  padding-right: 4px;
  padding-left: 4px;
  font-size: 14px;
  white-space: nowrap;
}
.agent-home-detail {
  display: block;
  margin-top: 10px;
  padding: 4px 0;
  font-size: 13px;
  color: #01133b;
  text-decoration: underline;
}

/* ---- 100枚以上のまとめ注文 ---- */
.agent-home-bulk {
  margin-top: 40px;
  padding: 24px 16px;
  border-radius: 6px;
  background: #f1f3f8;
}
.agent-home-bulk-title {
  margin-bottom: 12px;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
}
.agent-home-bulk-des {
  margin: 0 0 16px;
  font-size: 14px;
}
.agent-home-bulk-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
  padding: 0;
  list-style: none;
}
.agent-home-bulk-list li {
  box-sizing: border-box;
  width: 50%;
  padding: 4px;
}
.agent-home-bulk-list a {
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d5d9e3;
  border-radius: 4px;
  background: #fff;
  color: #01133b;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

@media (min-width: 768px) {
  .agent-home-ranking .ranking-item:not(:last-child) {
    margin-right: 16px;
  }
  .agent-home-ranking .ranking-title {
    padding-top: 12px;
    text-align: left;
  }
  .agent-home-items .item-title {
    font-size: 15px;
  }
  .agent-home-bulk {
    padding: 32px 28px;
  }
  .agent-home-bulk-title {
    font-size: 24px;
  }
  .agent-home-bulk-list li {
    width: 25%;
  }
}
