@charset "UTF-8";

/* Maison KOSE ランキングページ（PC / SP共通） */
.ranking-breadcrumb {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 5px 0;
  box-sizing: border-box;
}

.ranking-breadcrumb__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}

.ranking-breadcrumb__list li + li::before {
  content: ">";
  margin: 0 10px;
  color: #aaa;
}

.ranking-breadcrumb__list a {
  color: #777;
  text-decoration: none;
}

.ranking-page,
.ranking-page * {
  box-sizing: border-box;
}

.ranking-page {
  width: 100%;
  padding: 55px 0 70px;
  background: #fff;
  color: #3b4043;
}

.ranking-page__inner {
  width: calc(100% - 40px);
  max-width: 1170px;
  margin: 0 auto;
}

.ranking-page__header {
  padding-bottom: 28px;
  text-align: center;
  position: relative;
}

.ranking-page__header::before {
  content: "";
  width: 100vw;
  background: #f3f3f3;
  position: absolute;
  top: -55px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.ranking-page__header > * {
  position: relative;
  z-index: 1;
}

.ranking-page__title {
  margin: 0;
  color: #3b4043;
  font-weight: normal;
  line-height: 1;
}

.ranking-page__seo-heading {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  position: absolute;
}

.ranking-page__title-visual > span {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 30px;
  letter-spacing: .22em;
  text-indent: .22em;
}

.ranking-page__title-visual > small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: .08em;
}

.ranking-page__lead {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.ranking-page__category-nav {
  margin-top: 38px;
}

.ranking-page__category-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 15px;
}

.ranking-page__category-tab {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid #3b4043;
  border-radius: 0;
  background: transparent;
  color: #3b4043;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
  appearance: none;
}

.ranking-page__category-tab:hover,
.ranking-page__category-tab:focus-visible {
  opacity: .65;
}

.ranking-page__category-tab.is-active {
  background: #3b4043;
  color: #fff;
}

.ranking-page__subcategory {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: -5px 0 0;
  padding: 0;
  background: #f3f3f3;
}

.ranking-page__subcategory[hidden] {
  display: none;
}

.ranking-page__subcategory-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ranking-page__subcategory-tab {
  min-width: 0;
  margin: 0;
  padding: 11px 8px;
  border: 0;
  border-radius: 0;
  background: #f3f3f3;
  box-shadow: inset -1px -1px 0 #fff;
  color: #3b4043;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.ranking-page__subcategory-tab:hover,
.ranking-page__subcategory-tab:focus-visible {
  background: #e8e8e8;
}

.ranking-page__subcategory-tab.is-active {
  background: #3b4043;
  color: #fff;
}

.ranking-page__category-heading {
  margin: 45px 0 24px;
  color: #3b4043;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
}

.ranking-page__content {
  margin-top: 0;
}

.ranking-page__products {
  min-height: 280px;
}

.ranking-page__loading {
  display: none;
  margin: 0;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.ranking-page__products[aria-busy="true"] > .ranking-page__loading {
  display: block;
}

.ranking-page__product-panel > .ranking-page__empty {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
  line-height: 1.6;
  text-align: center !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.ranking-page__empty-line {
  display: inline;
}

.ranking-page__loading-dots {
  display: inline-flex;
  align-items: center;
  gap: .16em;
  width: 1.5em;
  height: 1em;
  vertical-align: middle;
}

.ranking-page__loading-dots > i {
  display: block;
  width: .18em;
  height: .18em;
  border-radius: 50%;
  background-color: currentColor;
  opacity: .25;
  animation: ranking-loading-dot 1.2s ease-in-out infinite;
}

.ranking-page__loading-dots > i:nth-child(2) {
  animation-delay: .15s;
}

.ranking-page__loading-dots > i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes ranking-loading-dot {
  0%, 60%, 100% {
    opacity: .25;
  }

  30% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-page__loading-dots > i {
    opacity: 1;
    animation: none;
  }
}

.ranking-page__product-panel {
  width: 100%;
}

/* 遅延表示対象は必ずdisplay:noneにし、Awooの初期取得対象から外す。 */
.ranking-page__products--preloaded .ranking-page__product-panel[data-ranking-preloaded]:not(.is-active) {
  display: none !important;
}

.ranking-page__product-panel[hidden] {
  display: none !important;
}

.ranking-page__products .awoo-hdg2 {
  display: none;
}

.ranking-page__products #awoo_content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.ranking-page__products .awoo-content-frame {
  width: 100%;
}

.ranking-page__products .awoo-product-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px 27px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  overflow: visible;
  counter-reset: ranking-item;
}

.ranking-page__products .awoo-product-item,
.ranking-page__products .awoo-product-item-ranking {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-increment: ranking-item;
}

.ranking-page__products .awoo-product-thumb {
  background-color: #f7f7f7;
}

.ranking-page__products .awoo-product-thumb::after {
  background-image: url("/freepage/maison-kose/common/img/frames/frame_product_s.png");
}

.ranking-page__products .awoo-product-item-ranking::after {
  content: counter(ranking-item);
  width: 48px;
  height: 48px;
  top: -5px;
  left: 0;
  padding: 0;
  border-radius: 50%;
  background-color: #48add3;
  background-image: none;
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  line-height: 48px;
  text-align: center;
  box-sizing: border-box;
}

.ranking-page__products .awoo-product-item-ranking.rank1::after,
.ranking-page__products .awoo-product-item-ranking.rank2::after,
.ranking-page__products .awoo-product-item-ranking.rank3::after {
  padding-top: 15px;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height: 1;
}

.ranking-page__products .awoo-product-item-ranking.rank1::after {
  background-image: url("/img/usr/ranking/rank01.png");
}

.ranking-page__products .awoo-product-item-ranking.rank2::after {
  background-image: url("/img/usr/ranking/rank02.png");
}

.ranking-page__products .awoo-product-item-ranking.rank3::after {
  background-image: url("/img/usr/ranking/rank03.png");
}

.ranking-page__products .awoo-product-brand {
  margin-top: 14px;
}

.ranking-page__products .awoo-product-attention {
  margin-top: 35px;
}

.ranking-page__category-link-wrap {
  margin: 48px 0 0;
  text-align: center;
}

.ranking-page__category-link-wrap[hidden] {
  display: none;
}

.ranking-page__category-link {
  color: #3b4043;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ranking-page__category-link:hover,
.ranking-page__category-link:focus-visible {
  opacity: .65;
}

.ranking-page__category-link-wrap:not([hidden]) + .ranking-page__footer-nav {
  margin-top: 56px;
}

.ranking-page__footer-nav {
  margin-top: 70px;
}

.ranking-page__pagetop {
  display: block;
  width: 280px;
  margin: 38px auto 0;
  padding: 16px 12px;
  background: #999999;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  position: relative;
  transition: opacity .2s ease;
}

.ranking-page__pagetop::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  transform: rotate(45deg);
  position: relative;
  top: 2px;
}

.ranking-page__pagetop:hover,
.ranking-page__pagetop:focus-visible {
  opacity: .65;
}

.ranking-page__notice {
  margin: 30px 0;
  text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .ranking-page__category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .ranking-breadcrumb {
    padding: 5px 5.2%;
  }

  .ranking-breadcrumb__list {
    font-size: 10px;
  }

  .ranking-page {
    padding: 42px 0 30px;
  }

  .ranking-page__inner {
    width: 100%;
  }

  .ranking-page__loading {
    padding: 40px 20px;
    font-size: 14px;
  }

  .ranking-page__product-panel > .ranking-page__empty {
    padding: 40px 20px;
    font-size: 14px;
    white-space: normal;
  }

  .ranking-page__empty-line {
    display: block;
  }

  .ranking-page__header,
  .ranking-page__category-nav,
  .ranking-page__footer-nav,
  .ranking-page__pagetop {
    width: auto;
    margin-right: 5.2%;
    margin-left: 5.2%;
  }

  .ranking-page__header::before {
    top: -42px;
  }

  .ranking-page__title-visual > span {
    font-size: 28px;
  }

  .ranking-page__title-visual > small {
    margin-top: 8px;
    font-size: 10px;
  }

  .ranking-page__lead {
    margin-top: 24px;
    padding: 0 8%;
    font-size: 14px;
    line-height: 1.65;
  }

  .ranking-page__category-nav {
    margin-top: 35px;
  }

  .ranking-page__category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .ranking-page__category-tabs.is-subcategory-open {
    gap: 0;
  }

  .ranking-page__category-tab {
    margin: 0;
    padding: 12px 4px;
    border: 0;
    background-color: #f3f3f3;
    box-shadow: inset -1px -1px 0 #fff;
    font-size: 12px;
  }

  .ranking-page__category-tabs.is-subcategory-open > .ranking-page__category-tab.is-after-active-row {
    display: none;
  }

  .ranking-page__category-tabs[data-ranking-main-tabs] > .ranking-page__category-tab.is-active {
    background-color: #3b4043;
    color: #fff;
    opacity: 1;
  }

  .ranking-page__subcategory {
    display: block;
    width: calc(100% - 1px);
    max-width: none;
    margin: 0;
    padding: 12px;
    background-color: #c9c9c9;
  }

  .ranking-page__subcategory-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background-color: #c9c9c9;
  }

  .ranking-page__subcategory-tab {
    padding: 10px 8px 10px 4px;
    background-color: #fff;
    box-shadow: none;
    font-size: clamp(8px, 2.65vw, 10px);
    letter-spacing: -.03em;
    white-space: nowrap;
    position: relative;
  }

  .ranking-page__subcategory-tab::after {
    content: ">";
    position: absolute;
    top: 50%;
    right: 6px;
    color: #3b4043;
    font-size: 12px;
    line-height: 1;
    transform: translateY(-50%);
  }

  .ranking-page__subcategory-tab.is-active {
    background-color: #e5e5e5;
    color: #3b4043;
  }

  .ranking-page__category-heading {
    margin: 30px 5.2% 20px;
    font-size: 17px;
  }

  .ranking-page__products {
    min-height: 180px;
    padding: 0 5.2%;
  }

  .ranking-page__products #awoo_content {
    padding: 0;
  }

  .ranking-page__products .awoo-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 12px;
  }

  .ranking-page__products .awoo-product-item,
  .ranking-page__products .awoo-product-item-ranking {
    width: 100% !important;
    min-width: 0 !important;
  }

  .ranking-page__products .awoo-product-item-ranking::after {
    width: 42px;
    height: 42px;
    font-size: 14px;
    line-height: 42px;
  }

  .ranking-page__products .awoo-product-item-ranking.rank1::after,
  .ranking-page__products .awoo-product-item-ranking.rank2::after,
  .ranking-page__products .awoo-product-item-ranking.rank3::after {
    padding-top: 13px;
  }

  .ranking-page__products .awoo-product-brand,
  .ranking-page__products .awoo-product-name,
  .ranking-page__products .awoo-product-price {
    font-size: 3.2vw;
  }

  .ranking-page__footer-nav {
    margin-top: 50px;
  }

  .ranking-page__category-link-wrap {
    margin: 38px 5.2% 0;
  }

  .ranking-page__category-link {
    font-size: 12px;
  }

  .ranking-page__category-link-wrap:not([hidden]) + .ranking-page__footer-nav {
    margin-top: 48px;
  }

  .ranking-page__pagetop {
    width: auto;
    max-width: 259px;
    margin: 28px auto 0;
    padding: 13px 10px;
  }

  .l-footer__scroll-sp a {
    display: none;
  }
}
