@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__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.p-top-fv__bg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.p-top-fv__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-fv__gradient {
  position: absolute;
  top: 0;
  left: -1px;
  z-index: 2;
  display: block;
  width: calc(100% + 2px);
  height: 100%;
  pointer-events: none;
}

.p-top-fv__gradient img {
  display: block;
  width: 100%;
  height: 100%;
}

.p-top-fv__content {
  --hero-scale: calc(100vw / 1440);

  position: absolute;
  z-index: 3;
  left: calc(130 * var(--hero-scale));
  top: 50%;
  transform: translateY(-50%);
  width: calc(430 * var(--hero-scale));
}

.p-top-fv__title {
  margin: 0;
  width: calc(360 * var(--hero-scale));
}

.p-top-fv__title img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35))
    drop-shadow(0 8px 30px rgba(0, 0, 0, 0.25));
}

.p-top-fv__catch {
  margin: calc(36 * var(--hero-scale)) 0 0;
  color: #fff;
  font-size: calc(14 * var(--hero-scale));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: pre-line;
}

.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: 8px 56px 8px;
  margin-bottom: 40px;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 110;
  background: #000842;
}

.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-radius: 5px;
  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: 42px;
}

/* ========================================
   Series Collection Card
======================================== */

.c-series-card {
  --card-scale: calc(360 / 510);

  position: relative;
  overflow: hidden;
  width: 360px;
  aspect-ratio: 510 / 286;
  border-radius: 5px;
}

.c-series-card__bg,
.c-series-card__gradient {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.c-series-card__bg {
  z-index: 1;
}

.c-series-card__gradient {
  z-index: 2;
  left: -1px;
  width: calc(100% + 2px);
  pointer-events: none;
}

.c-series-card__bg img,
.c-series-card__gradient img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-series-card__content {
  position: absolute;
  z-index: 3;
  left: calc(46px * var(--card-scale));
  top: 50%;
  transform: translateY(-50%);
  width: calc(220px * var(--card-scale));
}

.c-series-card__title {
  width: 80%;
  margin: 0;
}

.c-series-card__title img {
  display: block;
  width: 100%;
  height: auto;
}

.c-series-card__catch {
  margin: calc(14px * var(--card-scale)) 0 0;
  color: #fff;
  font-size: calc(9px * var(--card-scale));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: pre-line;
}

/* ========================================
   SP / TOP
======================================== */

@media (max-width: 767px) {
  .p-top {
  }

  .p-top-fv__slider {
    aspect-ratio: 375 / 519;
    min-height: auto;
  }

  .p-top-fv__slide picture {
    width: 100%;
    height: 100%;
  }

  .p-top-fv__content {
    --hero-scale: calc(100vw / 375);

    left: calc(24 * var(--hero-scale));
    top: 50%;
    transform: translateY(-50%);
    width: calc(320 * var(--hero-scale));
  }

  .p-top-fv__title {
    width: 80%;
    margin: 0;
  }

  .p-top-fv__catch {
    margin-top: calc(18 * var(--hero-scale));
    font-size: calc(13 * var(--hero-scale));
    line-height: 1.7;
  }

  .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: 12px 8px;
    margin-bottom: 30px;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 8px;
    top: 64px;
  }

  .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;
    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--posts .c-scroll-row__track {
    gap: 8px;
  }

  .p-top .c-scroll-row--posts .c-scroll-row__item,
  .p-top .c-scroll-row--posts .c-product-card {
    flex: 0 0 auto;
    width: clamp(160px, 48vw, 180px);
  }

  .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 {
    --top-product-landscape-width: clamp(116px, 32vw, 150px);
    --top-product-landscape-height: calc(
      var(--top-product-landscape-width) * 187 / 262
    );
  }

  .p-top .c-product-card__image.is-landscape,
  .p-top .c-product-card__image.is-landscape img {
    width: var(--top-product-landscape-width);
    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-scroll-row:not(.c-scroll-row--posts)
    .c-product-card__image.is-square,
  .p-top
    .c-scroll-row:not(.c-scroll-row--posts)
    .c-product-card__image.is-square
    img {
    width: var(--top-product-landscape-height);
    height: var(--top-product-landscape-height);
    aspect-ratio: 1 / 1;
  }

  .p-top .c-scroll-row--posts .c-product-card__image.is-square,
  .p-top .c-scroll-row--posts .c-product-card__image.is-square img {
    width: 100% !important;
    height: auto !important;
    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-series-card {
    --card-width: calc((100vw - 36px) * 0.85);
    --card-scale: calc(var(--card-width) / 510px);

    width: var(--card-width);
    aspect-ratio: 510 / 286;
  }

  .c-series-card__content {
    left: calc(46px * var(--card-scale));
    top: 50%;
    transform: translateY(-50%);
    width: calc(220px * var(--card-scale));
  }

  .c-series-card__title {
    width: 80%;
    margin: 0;
  }

  .c-series-card__catch {
    margin-top: calc(14px * var(--card-scale));
    font-size: calc(9px * var(--card-scale));
    line-height: 1.2;
    letter-spacing: 0.04em;
  }
}

/* ========================================
   Tablet / TOP
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .p-top {
  }

  .p-top-fv__slider {
    aspect-ratio: 3211 / 1801;
    min-height: 420px;
  }

  .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: 24px;
    gap: 8px;
  }

  .p-top-fv__dot {
    width: 8px;
    height: 8px;
  }

  .p-top-products {
    padding: 18px 0 0;
    overflow: visible;
  }

  .p-top-products__inner {
    overflow: visible;
  }

  .p-top-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;

    padding: 12px 24px;
    margin-bottom: 40px;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    top: 64px;
  }

  .p-top-tabs::-webkit-scrollbar {
    display: none;
  }

  .p-top-tabs__item {
    flex: 0 0 auto;
    min-width: 120px;
    min-height: 40px;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .p-top-tabs__item.is-active {
    padding: 6px 15px;
  }

  .p-top .c-scroll-row {
    margin-top: 0;
    margin-bottom: 40px;
  }

  .p-top .c-scroll-row__head {
    padding: 0 24px;
    margin-bottom: 10px;
  }

  .p-top .c-scroll-row__title {
    font-size: 16px;
    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;
    overscroll-behavior-x: contain;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
  }

  .p-top .c-scroll-row__body::-webkit-scrollbar {
    display: none;
  }

  .p-top .c-scroll-row__track {
    display: flex;
    align-items: center;
    gap: 10px;

    width: max-content;
    padding: 0 24px;
    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 {
    --top-product-landscape-width: clamp(150px, 28vw, 220px);
    --top-product-landscape-height: calc(
      var(--top-product-landscape-width) * 187 / 262
    );
  }

  .p-top .c-product-card__image.is-landscape,
  .p-top .c-product-card__image.is-landscape img {
    width: var(--top-product-landscape-width);
    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(112px, 21vw, 160px);
    height: auto;
    aspect-ratio: 187 / 262;
  }

  .p-top
    .c-scroll-row:not(.c-scroll-row--posts)
    .c-product-card__image.is-square,
  .p-top
    .c-scroll-row:not(.c-scroll-row--posts)
    .c-product-card__image.is-square
    img {
    width: var(--top-product-landscape-height);
    height: var(--top-product-landscape-height);
    aspect-ratio: 1 / 1;
  }

  .p-top .c-product-card__body {
    display: none;
  }

  .p-top .c-scroll-row--ranking .c-scroll-row__track {
    gap: 48px;
    padding-left: 64px;
    padding-right: 24px;
  }

  .p-top .c-scroll-row--ranking .c-product-card {
    scroll-margin-left: 40px;
  }

  .p-top .c-scroll-row--ranking .c-product-card:nth-child(10) {
    scroll-margin-left: 72px;
  }

  .p-top .c-product-card__rank {
    left: -40px;
    height: 84px;
  }

  .p-top .c-product-card--ranking:nth-child(10) .c-product-card__rank {
    left: -72px;
    height: 84px;
  }

  .p-top .c-product-card--ranking:nth-child(9) {
    margin-right: 36px;
  }

  .c-series-card {
    --card-width: clamp(260px, 44vw, 360px);
    --card-scale: calc(var(--card-width) / 510px);

    width: var(--card-width);
    aspect-ratio: 510 / 286;
  }

  .c-series-card__content {
    left: calc(46px * var(--card-scale));
    top: 50%;
    transform: translateY(-50%);
    width: calc(220px * var(--card-scale));
  }

  .c-series-card__title {
    width: 80%;
    margin: 0;
  }

  .c-series-card__catch {
    margin-top: calc(14px * var(--card-scale));
    font-size: calc(9px * var(--card-scale));
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .p-top .c-scroll-row--posts .c-scroll-row__track {
    gap: 10px;
  }

  .p-top .c-scroll-row--posts .c-scroll-row__item,
  .p-top .c-scroll-row--posts .c-product-card {
    flex: 0 0 auto;
    width: clamp(220px, 36vw, 300px);
  }

  .p-top .c-scroll-row--posts .c-product-card__image.is-square,
  .p-top .c-scroll-row--posts .c-product-card__image.is-square img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
}

/* ========================================
   TOP Loading
======================================== */

.p-top-loading {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.p-top-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000842;
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}

.p-top-loading.is-wipe-blue::before {
  transform: translateY(-100%);
}

.p-top-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.p-top-loading__inner {
  position: relative;
  z-index: 1;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-top-loading.is-piece-hidden .p-top-loading__inner {
  opacity: 0;
}

.p-top-loading__puzzle {
  position: relative;
  width: 84px;
  height: 84px;
}

.p-top-loading__piece {
  position: absolute;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

/* 数値は現在イメージ通りのものをそのまま使ってください */
.p-top-loading__piece--tl {
  width: 57.1422px;
  height: 43.9317px;
  top: 0;
  left: 0;
}

.p-top-loading__piece--tr {
  width: 44.6844px;
  height: 55.592px;
  top: 0;
  left: 39.3156px;
}

.p-top-loading__piece--bl {
  width: 44.5286px;
  height: 55.1904px;
  top: 28.8096px;
  left: 0;
}

.p-top-loading__piece--br {
  width: 56.9371px;
  height: 44.6182px;
  top: 39.3818px;
  left: 27.0629px;
}

body.is-top-loading {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .p-top-loading {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 1023px) {
  .p-top .c-scroll-row {
    scroll-margin-top: 130px;
  }
}
