@font-face {
  font-family: "jalnan";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.2/JalnanOTF00.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}
@import url("http://fonts.googleapis.com/earlyaccess/nanumgothic.css");

/* 나눔스퀘어 폰트 추가 */
@import url("https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css");

body {
  min-height: 100vh;
  width: 100%;
  background-color: #333333;
  color: #333;
  font-family: "Pretendard", "NanumSquare", sans-serif;
}

#header {
  width: 100%;
  height: 86px;
  box-shadow: 0px 4px 15px 0px rgb(0, 0, 0, 25%);
  background-color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9999;
  padding: 0 42px;
  box-sizing: border-box;
}

#header > div {
  display: flex;
  align-items: center;
}

#header > div:first-child a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background-color: #333;
  border-radius: 5px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg);
}

#mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#mobile-nav-panel.open {
  display: flex;
}

#mobile-nav-panel a {
  font-size: 24px;
  color: #333;
  text-decoration: none;
  margin: 20px 0;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  #header {
    padding: 0 20px;
  }
}

#header > div img {
  width: 32px;
  height: 38.23px;
  margin-right: 0.521vw;
}

#header > div #logo-text {
  font-family: jalnan;
  font-size: 24px;
  color: #000;
  margin-top: 7px;
}

.header-menu-item {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #111111;
  text-decoration: none;
  margin-left: 40px;
  padding: 5px 10px;
  position: relative;
}

.header-menu-item.active {
  color: #9745ff;
  font-weight: 700;
}

.header-menu-item.active::after {
  content: "";
  position: absolute;
  bottom: -29px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #9745ff;
}

#contact-button {
  background-color: #9542ff;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: "NanumSquare", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

#contact-button:hover {
  background-color: #7f38d9;
}

.section {
  height: 1100px;
  overflow: hidden;
}

#main > :nth-child(2n) {
  background-color: #f6efff;
}

#main > :nth-child(2n + 1) {
  background-color: #f8f8f8;
}

/* 첫번째 섹션 */
#main > :nth-child(1) {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12.448vw 0 18.958vw;
}

#main > :nth-child(1) > #container {
  position: relative;
}

#main > :nth-child(1) > #container > #text-box {
  font-family: "NanumSquare";
  color: #000;
  font-weight: 100;
  font-size: 90px;
  line-height: 1.44;
}

#main > :nth-child(1) > #container > #text-box-m {
  display: none;
  font-family: "NanumSquare";
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
}

#main > :nth-child(1) .text-point {
  font-weight: 800;
  color: #9542ff;
}

#main > :nth-child(1) > #container .store-button {
  width: 220px;
  height: 80px;
  background-color: #2c2c2c;
  border-radius: 100px;

  font-family: "nanumgothic";
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.7px;

  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

#store-box {
  display: flex;
  gap: 15px;
  margin-top: 90px;
}

#store-box img {
  width: 30px;
  object-fit: contain;
}

#store-box p {
  display: inline;
}

#appstore {
  margin-top: 4px;
  margin-left: 4px;
}

#playstore {
  margin-top: 1px;
  margin-left: 4px;
}

/* 두번쨰 섹션 */
#main > :nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: start;
  height: 1170px;
}

#main > :nth-child(2) #device {
  width: 853px;
  height: 812px;
  margin-left: 20px;
}

#main > :nth-child(2) #device_m {
  display: none;
}

#second-section-container {
  margin-top: 75px;
}

#second-section-container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  margin-bottom: 61px;
}

#second-section-container > div :first-child {
  font-family: "NanumSquare";
  font-weight: 800;
  font-size: 72px;
  line-height: 1.1;
  color: #000;
  white-space: nowrap;
}

#second-section-container > div > p {
  font-family: "NanumSquare";
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: #5f5f5f;
}

/* 세번째 섹션 */
#main > :nth-child(3) {
  height: 1296px;
}

#main > :nth-child(3) > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 0 0 0;
}

#third-section-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

#third-section-container > div :first-child {
  font-family: "NanumSquare";
  font-weight: 800;
  font-size: 72px;
  line-height: 1.1;
  color: #000;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 20px;
}

#third-section-container > div > p {
  font-family: "NanumSquare";
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: #5f5f5f;
  text-align: center;
}

#main > :nth-child(3) #third-section-device {
  width: 906px;
  height: 965px;
  margin-top: 20px;
  margin-left: 140px;
}

#third-section-device-m {
  display: none;
}

/* 네번째 섹션 */
#main > :nth-child(4) {
  position: relative;
  height: 1345px;
}

#fourth-section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  margin-top: 90px;
}

#fourth-section-container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#fourth-section-container > div :first-child {
  font-family: "NanumSquare";
  font-weight: 800;
  font-size: 72px;
  line-height: 1.1;
  color: #000;
  white-space: nowrap;
}

#fourth-section-container > div > p {
  font-family: "NanumSquare";
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: #5f5f5f;
}

.reward-carousel {
  position: relative;
  width: 1716px;
  height: 880px;
  margin-top: 50px;
  overflow: hidden;
}

#reward-container {
  position: absolute;
  z-index: 1;
  height: 100%;
  transform: translateX(15px);
}

.mobile-swiper {
  display: none;
}

.swiper {
  position: absolute;
  width: 1716px;
  height: 466px;
  z-index: 2;
  margin-top: 140px;
  transform: translateX(22px);
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 75%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 90%,
    transparent
  );
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.swiper-slide img {
  width: 312px;
  height: 466px;
  object-fit: contain;
}

/* 하단 푸터 */
#footer {
  padding-top: 75px;
  padding-bottom: 51px;
  padding-left: 18.594vw;
  font-size: 16px;
  background-color: #333333;
}

#footer > p {
  margin-bottom: 6px;
}

#footer span,
#footer a {
  font-weight: bold;
}

#footer p,
#footer a {
  color: #ffffff;
}

#footer > div {
  margin-top: 40px;
}

#footer a {
  margin-right: 34px;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  #header {
    height: 60px;
    padding: 0 17px 0 0;
  }

  #header > div {
    justify-content: space-between;
  }

  #header > div img {
    width: 24px;
    height: 28.67px;
    margin-left: 20px;
    margin-right: 11px;
  }

  #header > div #logo-text {
    font-size: 16px;
  }

  #contact-button {
    padding: 7px 13px;
    font-size: 15px;
  }

  .section {
    height: 774px;
    overflow: visible;
    overflow-x: clip;
  }

  /* 첫번쩨 섹션 */
  #main > :nth-child(1) {
    background-image: url("../assets/first_section_main_m.png");
    background-repeat: no-repeat;
    background-position: -90px 200px;
    background-size: 643px;
    height: 724px;
  }

  #main-image {
    display: none;
  }

  #main > :nth-child(1) > #container {
    position: absolute;
    top: 100px;
    left: 8.142vw;
    right: auto;
  }

  #main > :nth-child(1) > #container > #text-box {
    font-size: 8.889vw;
  }

  #main > :nth-child(1) > #container .store-button {
    width: 24.267vw;
    height: 8.8vw;
    font-size: 2.3vw;
  }

  #store-box {
    margin-top: 10px;
    gap: 8px;
  }

  #store-box img {
    width: 12px;
  }

  #appstore {
    margin-top: 2px;
    margin-left: 2px;
  }

  #playstore {
    margin-top: 1px;
    margin-left: 2px;
  }

  /* 두번째 섹션 */
  #main > :nth-child(2) {
    height: 603px;
  }

  #second-section-container > div :first-child {
    font-size: 8.667vw;
  }

  #second-section-container > div > p {
    font-size: 3.5vw;
  }

  #main > :nth-child(2) #device {
    width: 402px;
    height: 395px;
    margin-left: 20px;
  }

  #second-section-container {
    margin-top: 50px;
  }

  #second-section-container > div {
    margin-bottom: 40px;
  }

  /* 세번째 섹션 */
  #main > :nth-child(3) {
    height: 683px;
  }

  #main > :nth-child(3) > div {
    padding: 50px 0 0 0;
  }

  #third-section-container > div :first-child {
    font-size: 8.667vw;
  }

  #third-section-container > div > p {
    font-size: 3.5vw;
  }

  #main > :nth-child(3) #third-section-device {
    display: none;
  }

  #third-section-device-m {
    display: block;
    width: 85vw;
    height: 120vw;
    margin-top: 20px;
    margin-left: 10px;
  }

  /* 네번째 섹션 */
  #main > :nth-child(4) {
    height: 725px;
  }

  #fourth-section-container {
    margin-top: 0px;
    padding-top: 50px;
  }

  #fourth-section-container > div :first-child {
    font-size: 8.667vw;
  }

  #fourth-section-container > div > p {
    font-size: 3.5vw;
  }

  .reward-carousel {
    margin-top: 30px;
  }

  #reward-container {
    position: absolute;
    z-index: 1;
    width: 230px;
    height: 480px;
    transform: translateX(5px);
  }

  .swiper .swiper-slide {
    display: none;
  }

  .mobile-swiper {
    display: block;
    position: absolute;
    width: 100%;
    top: 70px;
  }

  .mobile-swiper .swiper-slide {
    width: 175px;
  }

  .mobile-swiper .swiper-slide-active {
    opacity: 1;
  }

  .mobile-swiper .swiper-slide img {
    width: 175px;
    height: 262px;
  }

  /* 하단 푸터 */
  #footer {
    padding-top: 29px;
    padding-bottom: 27px;
    padding-left: 22px;
    font-size: 16px;
  }

  #footer span,
  #footer a {
    font-weight: bold;
  }

  #footer a {
    color: #ffffff;
    margin-bottom: 10px;
  }

  #footer > div {
    display: flex;
    flex-direction: column;
    margin-top: 34px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  #main > :nth-child(1) {
    background-image: url("../assets/first_section_main_m.png");
    background-repeat: no-repeat;
    background-position: 150px 100px;
    background-size: 104vw;
    height: 94.27vw;
  }

  #main-image {
    display: none;
  }

  #main > :nth-child(1) > #container {
    position: absolute;
    top: 13vw;
    left: 8.142vw;
    right: auto;
  }

  #main > :nth-child(1) > #container > #text-box {
    font-size: 7vw;
  }

  #main > :nth-child(1) > #container .store-button {
    width: 20vw;
    height: 7vw;
    font-size: 2vw;
  }

  #store-box {
    margin-top: 1.3vw;
    gap: 1vw;
  }

  #store-box img {
    width: 1.56vw;
  }

  #appstore,
  #playstore {
    margin-top: 0.26vw;
    margin-left: 0.26vw;
  }
}

.store-button p {
  font-family: "Nanum Gothic", "나눔고딕", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 600;
}

#appstore,
#playstore {
  font-family: "Nanum Gothic", "나눔고딕", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
