@charset "UTF-8";

/* ========================================
   TOP
======================================== */

.p-top {
  background: #000842;
}

/* ========================================
   FV
======================================== */

.p-top-fv {
  position: relative;
  overflow: hidden;
}

.p-top-fv__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3211 / 1801;
  min-height: 360px;
}

.p-top-fv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.p-top-fv__slide.is-active {
  opacity: 1;
}

.p-top-fv__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-fv__button {
  position: absolute;
  top: 50%;
  z-index: 10;
  translate: 0 -50%;

  display: grid;
  place-items: center;

  width: 47px;
  height: 80px;

  background: rgba(2, 6, 51, 0.5);

  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.p-top-fv__button:hover {
  background: rgba(2, 6, 51, 1);
}

.p-top-fv__button::before {
  content: "";
  display: block;

  width: 20px;
  height: 20px;

  border-top: 5px solid #fff;
  border-right: 5px solid #fff;
}

.p-top-fv__button--prev {
  left: 0;
  border-radius: 0 16px 16px 0;
}

.p-top-fv__button--prev::before {
  rotate: -135deg;
  margin-left: 4px;
}

.p-top-fv__button--next {
  right: 0;
  border-radius: 16px 0 0 16px;
}

.p-top-fv__button--next::before {
  rotate: 45deg;
  margin-right: 4px;
}

/* ========================================
   FV Pagination
======================================== */

.p-top-fv__pagination {
  position: absolute;
  left: 50%;
  bottom: 3.646vw;
  z-index: 5;

  display: flex;
  gap: 10px;

  translate: -50% 0;
}

.p-top-fv__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;

  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.p-top-fv__dot.is-active {
  background: #02063e;
}

@media (max-width: 767px) {
  .p-top-fv__pagination {
    bottom: 14px;
    gap: 8px;
  }

  .p-top-fv__dot {
    width: 8px;
    height: 8px;
  }
}

/* ========================================
   Products Area
======================================== */

.p-top-products {
  padding: 32px 0 0;
  overflow-x: clip;
  overflow-y: visible;
}

.p-top-products__inner {
  overflow: visible;
}

/* ========================================
   Tabs
======================================== */

.p-top-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 56px 8px;
  scrollbar-width: none;
}

.p-top-tabs::-webkit-scrollbar {
  display: none;
}

.p-top-tabs__item {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 156px;
  min-height: 50px;
  padding: 6px 16px;

  border: 1px solid rgba(57, 174, 255, 0.8);
  border-radius: 10px;

  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.p-top-tabs__item.is-active {
  padding: 7px 17px;
  border: none;

  background: linear-gradient(90deg, #3547ff 0%, #19b8e8 100%);
}

/* TOP内の横スクロール余白 */
.p-top .c-scroll-row__head {
  padding: 0 56px;
}

.p-top-products__inner {
  overflow: visible;
}

/* TOP内の横スクロール余白 */
.p-top .c-scroll-row__head {
  padding: 0 56px;
}

.p-top .c-scroll-row__track {
  padding: 56px;
  margin-top: -56px;
  margin-bottom: -56px;
}

/* ========================================
   TOP10 Ranking
======================================== */

.c-scroll-row--ranking .c-scroll-row__track {
  gap: 92px;
  padding-left: 134px;
  padding-right: 220px;
}

.c-product-card--ranking {
  position: relative;
  flex: 0 0 auto;
}

.c-product-card--ranking .c-product-card__link {
  position: relative;
  z-index: 1;
  display: block;
}

.c-product-card__rank {
  position: absolute;
  z-index: 0;
  left: -76px;
  top: 50%;
  transform: translateY(-50%);
  height: 132px;
  width: auto;
  pointer-events: none;
}

.c-product-card__rank img {
  display: block;
  width: auto;
  height: 100%;
}

/* 10だけ調整 */
.c-product-card--ranking:nth-child(10) .c-product-card__rank {
  left: -118px;
  height: 132px;
}

/* 9→10間だけ余白追加 */
.c-product-card--ranking:nth-child(9) {
  margin-right: 72px;
}

/* ========================================
   SP / TOP
======================================== */

@media (max-width: 767px) {
  .p-top {
    overflow: hidden;
  }

  .p-top-fv__slider {
    aspect-ratio: 375 / 519;
    min-height: auto;
  }

  .p-top-fv__slide picture,
  .p-top-fv__slide img {
    width: 100%;
    height: 100%;
  }

  .p-top-fv__slide img {
    object-fit: cover;
    object-position: center top;
  }

  .p-top-fv__button {
    display: none;
  }

  .p-top-fv__pagination {
    bottom: 20px;
    gap: 8px;
  }

  .p-top-fv__dot {
    width: 8px;
    height: 8px;
  }

  .p-top-products {
    padding: 14px 0 0;
    overflow: visible;
  }

  .p-top-products__inner {
    overflow: visible;
  }

  .p-top-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 6px;

    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;

    padding: 0 8px;
    margin-bottom: 30px;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 8px;
  }

  .p-top-tabs::-webkit-scrollbar {
    display: none;
  }

  .p-top-tabs__item {
    flex: 0 0 auto;
    min-width: 98px;
    min-height: 36px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .p-top-tabs__item.is-active {
    padding: 5px 11px;
  }

  .p-top .c-scroll-row {
    margin-top: 0px;
    margin-bottom: 30px;
  }

  .p-top .c-scroll-row__head {
    padding: 0 18px;
    margin-bottom: 8px;
  }

  .p-top .c-scroll-row__title {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .p-top .c-scroll-row__title-link {
    gap: 6px;
  }

  .p-top .c-scroll-row__title-link img {
    width: 18px;
    height: 18px;
  }

  .p-top .c-scroll-row__body {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
  }

  .p-top .c-scroll-row__body::-webkit-scrollbar {
    display: none;
  }

  .p-top .c-scroll-row__track {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 18px;
    margin: 0;

    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .p-top .c-scroll-row__item,
  .p-top .c-product-card {
    flex: 0 0 auto;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .p-top .c-scroll-row__button {
    display: none !important;
  }

  .p-top .c-product-card__link {
    transform: none !important;
  }

  .p-top .c-product-card__image {
    border-radius: 5px;
  }

  .p-top .c-product-card__image.is-landscape,
  .p-top .c-product-card__image.is-landscape img {
    width: clamp(116px, 32vw, 150px);
    height: auto;
    aspect-ratio: 262 / 187;
  }

  .p-top .c-product-card__image.is-portrait,
  .p-top .c-product-card__image.is-portrait img {
    width: clamp(88px, 25vw, 112px);
    height: auto;
    aspect-ratio: 187 / 262;
  }

  .p-top .c-product-card__image.is-square,
  .p-top .c-product-card__image.is-square img {
    width: clamp(88px, 25vw, 112px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-top .c-product-card__body {
    display: none;
  }

  .p-top .c-scroll-row--ranking .c-scroll-row__track {
    gap: 36px;
    padding-left: 48px;
    padding-right: 18px;
  }

  .p-top .c-scroll-row--ranking .c-product-card {
    scroll-margin-left: 31px;
  }

  .p-top .c-scroll-row--ranking .c-product-card:nth-child(10) {
    scroll-margin-left: 58px;
  }

  .p-top .c-product-card__rank {
    left: -31px;
    height: 66px;
  }

  .p-top .c-product-card--ranking:nth-child(10) .c-product-card__rank {
    left: -58px;
    height: 66px;
  }

  .p-top .c-product-card--ranking:nth-child(9) {
    margin-right: 28px;
  }

  .c-scroll-row--series .c-product-card__image,
  .c-scroll-row--series .c-product-card__image img {
    width: clamp(180px, 62vw, 260px);
    height: auto;
  }

  .c-scroll-row--posts .c-product-card__image,
  .c-scroll-row--posts .c-product-card__image img {
    width: clamp(150px, 48vw, 220px);
    height: auto;
  }
}
