* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: #202228;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: #202228;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: min(112.24vw, 2155px);
  overflow: hidden;
  background-image: url("https://lootfiend-res.megoogames.com/jp/assets/pc/page-bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100vw auto;
}

.hero {
  position: relative;
  min-height: clamp(690px, 56.25vw, 1080px);
}

.hero-logo {
  position: absolute;
  top: clamp(30px, 2.34vw, 45px);
  left: max(64px, calc((100vw - 1920px) / 2 + 64px));
  width: clamp(178px, 13.96vw, 268px);
  height: auto;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: clamp(520px, 39.06vw, 750px);
  width: min(89.8vw, 1724px);
  transform: translateX(-50%);
}

.store-links {
  position: absolute;
  top: clamp(615px, 49.11vw, 943px);
  left: 50%;
  display: flex;
  gap: clamp(10px, 0.78vw, 15px);
  transform: translateX(-50%);
}

.store-links a {
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-links a:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.store-links img {
  width: clamp(190px, 16.15vw, 310px);
  height: auto;
}

.x-link {
  position: fixed;
  right: 0;
  z-index: 20;
  display: flex;
  width: clamp(62px, 4.79vw, 92px);
  aspect-ratio: 92 / 120;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.x-link:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.x-link-hero {
  top: clamp(390px, 21.6vw, 415px);
}

.x-link-feature {
  top: clamp(305px, 19.5vw, 375px);
}

.features {
  position: relative;
  min-height: clamp(850px, 56vw, 1075px);
  padding-top: clamp(28px, 1.67vw, 32px);
}

.section-title {
  width: clamp(310px, 21.2vw, 407px);
  margin: 0 auto clamp(25px, 1.56vw, 30px);
}

.carousel-wrap {
  position: relative;
  width: min(74vw, 1160px);
  margin: 0 auto;
}

.feature-swiper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(540px, 37.8vw, 726px);
  overflow: visible;
}

.swiper-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.swiper-slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: auto;
  width: clamp(318px, 23.4vw, 450px);
  visibility: hidden;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), z-index 420ms ease;
  will-change: transform;
}

.swiper-slide.is-visible {
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.swiper-slide.is-active {
  z-index: 5;
  cursor: default;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: clamp(250px, 17vw, 326px);
  z-index: 15;
  width: clamp(62px, 5.36vw, 103px);
  aspect-ratio: 103 / 129;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 180ms ease, filter 180ms ease;
}

.carousel-btn:hover {
  filter: brightness(1.2);
  transform: scale(1.04);
}

.carousel-prev {
  left: max(-28px, -2vw);
  background-image: url("https://lootfiend-res.megoogames.com/jp/assets/common/prev-btn.png");
}

.carousel-next {
  right: max(-28px, -2vw);
  background-image: url("https://lootfiend-res.megoogames.com/jp/assets/common/next-btn.png");
}

.feature-pagination {
  display: flex;
  justify-content: center;
  gap: clamp(9px, 0.73vw, 14px);
  margin-top: clamp(14px, 0.78vw, 15px);
}

.feature-dot {
  display: block;
  width: clamp(30px, 2.24vw, 43px);
  height: clamp(16px, 1.2vw, 23px);
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 1;
  cursor: pointer;
  background: url("https://lootfiend-res.megoogames.com/jp/assets/common/dot.png") center / contain no-repeat;
}

.feature-dot.is-active {
  background-image: url("https://lootfiend-res.megoogames.com/jp/assets/common/active-dot.png");
}

.site-footer {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  min-height: 101px;
  padding: 22px 24px 21px;
  background: #202228;
}

.footer-inner {
  display: flex;
  width: min(1390px, 100%);
  align-items: center;
  justify-content: center;
  gap: clamp(42px, 4.4vw, 84px);
  margin: 0 auto;
}

.footer-logo {
  width: 132px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(25px, 2.3vw, 44px);
}

.footer-links a {
  display: block;
  transition: opacity 160ms ease;
}

.footer-links a:hover {
  opacity: 0.78;
}

.footer-links img {
  width: auto;
  height: 21px;
}

.footer-text-link {
  display: inline-flex;
  height: 21px;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  text-shadow: 0 0 1px #fff;
}

.footer-text-link::before {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff;
  content: "¥";
  font-size: 12px;
  font-weight: 900;
}

@media (min-width: 1921px) {
  .page-shell {
    background-size: 100vw auto;
  }
}

@media (max-width: 1200px) and (min-width: 768px) {
  .page-shell {
    min-height: 1320px;
    background-size: auto 1320px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-logo {
    left: 34px;
  }

  .hero-title {
    top: 480px;
    width: 92vw;
  }

  .store-links {
    top: 555px;
  }

  .features {
    min-height: 690px;
    padding-top: 16px;
  }

  .carousel-wrap {
    width: 78vw;
  }

  .feature-swiper {
    height: 540px;
  }

  .swiper-slide {
    width: clamp(300px, 33vw, 396px);
  }

  .x-link-hero {
    top: 310px;
  }

  .x-link-feature {
    top: 880px;
  }
}

@media (max-width: 767px) {
  body {
    background: #202228;
  }

  .page-shell {
    min-height: 314vw;
    background-image:
      url("https://lootfiend-res.megoogames.com/jp/assets/mobile/page-bg-top.png"),
      url("https://lootfiend-res.megoogames.com/jp/assets/mobile/page-bg-bottom%20.png"),
      url("https://lootfiend-res.megoogames.com/jp/assets/mobile/page-bg.png");
    background-repeat: no-repeat, no-repeat, repeat-y;
    background-position:
      top center,
      bottom center,
      top 152.6vw center;
    background-size:
      100vw auto,
      100vw auto,
      100vw auto;
  }

  .hero {
    min-height: 158.5vw;
  }

  .hero-logo {
    top: 6.8vw;
    left: 50%;
    width: 45.8vw;
    transform: translateX(-50%);
  }

  .hero-title {
    top: 108.9vw;
    width: 91.5vw;
  }

  .store-links {
    top: 136.4vw;
    gap: 1.7vw;
  }

  .store-links img {
    width: 28.5vw;
  }

  .x-link {
    right: 0;
    width: 13.9vw;
  }

  .x-link-hero {
    top: 37.2vw;
  }

  .features {
    min-height: 155vw;
    padding-top: 3.8vw;
  }

  .section-title {
    width: 57.8vw;
    margin-bottom: 4.5vw;
  }

  .carousel-wrap {
    width: 100vw;
  }

  .feature-swiper {
    width: 100vw;
    height: 128vw;
  }

  .swiper-slide {
    width: 72.2vw;
  }

  .carousel-btn {
    top: 55.8vw;
    width: 13.6vw;
  }

  .carousel-prev {
    left: 7.2vw;
  }

  .carousel-next {
    right: 7.2vw;
  }

  .feature-pagination {
    gap: 2vw;
    margin-top: 4.7vw;
  }

  .feature-pagination .swiper-pagination-bullet {
    width: 6.35vw;
    height: 3.45vw;
  }

  .feature-dot {
    width: 6.35vw;
    height: 3.45vw;
  }

  .x-link-feature {
    top: 39vw;
  }

  .site-footer {
    margin-top: 0;
    min-height: 40vw;
    padding: 5.6vw 5vw 4.6vw;
  }

  .footer-inner {
    flex-direction: column;
    gap: 3.7vw;
  }

  .footer-logo {
    width: 28.4vw;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3vw 4.6vw;
  }

  .footer-links a:nth-child(4) {
    grid-column: 1 / span 2;
    justify-self: end;
  }

  .footer-links a:nth-child(5) {
    justify-self: start;
  }

  .footer-links img {
    height: 4.35vw;
  }

  .footer-text-link {
    height: 4.35vw;
    gap: 1.2vw;
    font-size: 2.6vw;
  }

  .footer-text-link::before {
    width: 3.4vw;
    height: 3.4vw;
    border-width: 0.35vw;
    border-radius: 0.8vw;
    font-size: 2vw;
  }
}

@media (max-width: 430px) {
  .footer-links {
    gap: 2.6vw 3.7vw;
  }

  .footer-links img {
    height: 4vw;
  }
}
