/* CSS Reset */
/* font face : Pretendard */
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./font/pretendard/Pretendard-Regular.woff2") format("woff2"),
    url("./font/pretendard/Pretendard-Regular.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./font/pretendard/Pretendard-Medium.woff2") format("woff2"),
    url("./font/pretendard/Pretendard-Medium.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./font/pretendard/Pretendard-SemiBold.woff2") format("woff2"),
    url("./font/pretendard/Pretendard-SemiBold.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./font/pretendard/Pretendard-Bold.woff2") format("woff2"),
    url("./font/pretendard/Pretendard-Bold.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./font/pretendard/Pretendard-ExtraBold.woff2") format("woff2"),
    url("./font/pretendard/Pretendard-ExtraBold.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("./font/pretendard/Pretendard-Black.woff2") format("woff2"),
    url("./font/pretendard/Pretendard-Black.woff2") format("woff");
}

/* font face : SUIT */
@font-face {
	font-family: 'SUIT';
	font-weight: 100;
	src: url('./font/suit/SUIT-Thin.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 200;
	src: url('./font/suit/SUIT-ExtraLight.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 300;
	src: url('./font/suit/SUIT-Light.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 400;
	src: url('./font/suit/SUIT-Regular.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 500;
	src: url('./font/suit/SUIT-Medium.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 600;
	src: url('./font/suit/SUIT-SemiBold.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 700;
	src: url('./font/suit/SUIT-Bold.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 800;
	src: url('./font/suit/SUIT-ExtraBold.woff2') format('woff2');
}
@font-face {
	font-family: 'SUIT';
	font-weight: 900;
	src: url('./font/suit/SUIT-Heavy.woff2') format('woff2');
}

/* font face : BM HANNA 11yrs old */
@font-face {
    font-family: "BM HANNA 11yrs old";
    src: url("https://db.onlinewebfonts.com/t/8914c48bb6cbcf51c389da71e776340d.eot");
    src: url("https://db.onlinewebfonts.com/t/8914c48bb6cbcf51c389da71e776340d.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/8914c48bb6cbcf51c389da71e776340d.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/8914c48bb6cbcf51c389da71e776340d.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/8914c48bb6cbcf51c389da71e776340d.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/8914c48bb6cbcf51c389da71e776340d.svg#BM HANNA 11yrs old")format("svg");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: auto; /* 가로 스크롤 허용 */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

strong {
  font-weight: 800;
}

.highlight {
  color: #ff3742;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
  min-width: 1280px; /* PC 최소 너비 설정 */
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.header__logo-img {
  height: 28px;
  cursor: pointer;
}

.header__download-btn {
  height: 43px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 120px 40px 70px;
  background: linear-gradient(to bottom, #fff 0%, #fff calc(100% - 70px), #e00 calc(100% - 70px), #e00 100%);
  color: #333;
  position: relative;
  overflow: hidden;
  min-width: 1280px; /* PC 최소 너비 설정 */
}

.hero__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  text-align: left;
  align-items: center;
  gap: 60px;
}

.hero__content {
  flex: 1;
  margin-top: 50px;
}

.hero__subtitle {
  color: #1c1c1c;
  font-family: Pretendard;
  font-size: 25.818px;
  font-style: normal;
  font-weight: 500;
  line-height: 37.044px;
  letter-spacing: -0.258px;
  margin-bottom: 20px;
}

.hero__subtitle img {
  width: 114px;
  height: 22px;
  display: inline;
}

.hero__title {
  color: #1c1c1c;
  font-family: Pretendard;
  font-size: 44.901px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.449px;
  margin-bottom: 40px;
}

.hero__title--highlight {
  color: #e00;
}

.hero__toggle {
  margin-top: 45px;
  margin-bottom: 40px;
}

.hero__toggle-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.hero__toggle-switch {
  position: relative;
  display: inline-block;
  width: 135px;
  height: 74px;
}

.hero__toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hero__toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0e0e0;
  border-radius: 50px;
  transition: .4s;
}

.hero__toggle-slider:before {
  position: absolute;
  content: "";
  height: 60px;
  width: 60px;
  left: 7px;
  bottom: 7px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.hero__toggle-switch input:checked + .hero__toggle-slider {
  background-color: #ee0000;
}

.hero__toggle-switch input:checked + .hero__toggle-slider:before {
  transform: translateX(60px);
}

.hero__toggle-text {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #0c0c0c;
  text-align: center;
  font-size: 28px;
  font-style: normal;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.hero__toggle-text-click {
  color: #0C0C0C;
  text-align: center;
  font-family: "BM HANNA 11yrs old";
  font-size: 28.063px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.281px;
}

.hero__pin-arrow {
  margin-top: 25px;
  height: 36px;
}

.hero__toggle-text span {
  display: flex;
  position: relative;
  bottom: -30px;
}

.hero__phones {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.hero__phone--left {
  position: relative;
  bottom: -130px;
  max-width: 314px;
  max-height: 584px;
  width: 314px;
  height: 584px;
}

.hero__phone--right {
  position: relative;
  bottom: -30px;
  max-width: 365px;
  max-height: 641px;
  width: 365px;
  height: 641px;
}

/* Features Section */
.features {
  padding: 140px 0px;
  background: #eee;
  min-width: 1280px; /* PC 최소 너비 설정 */
}

.features__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features__title {
  color: #1c1c1c;
  text-align: center;
  font-family: Pretendard;
  font-size: 35px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.35px;
  margin-bottom: 40px;
}

.features__title--highlight {
  color: #ee0000;
}

.features__content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.features__item {
  text-align: center;
}

.features__item-title {
  color: #1c1c1c;
  font-family: Pretendard;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.25px;
  padding: 12px 0;
  background-color: #fff;
  border-radius: 18px 18px 0 0;
}

.features__item-img-container {
  position: relative;
  display: inline-block;
}

.features__item-img {
  max-width: 300px;
  margin: 0 auto;
}

.features__item-finger {
  position: absolute;
  transform: translate(-50%, -30%);
  width: 70px;
  z-index: 2;
  bottom: -65px;
  right: -20px;
}

/* How to Use Section */
.howtouse {
  padding: 140px 0px;
  background: white;
  min-width: 1280px; /* PC 최소 너비 설정 */
}

.howtouse__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.howtouse__title {
  color: #1C1C1C;
  font-family: Pretendard;
  font-size: 40px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -0.4px;
  margin-bottom: 40px;
}

.howtouse__slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howtouse__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1400px;
}

.howtouse__item {
  text-align: center;
}

.howtouse__img {
  margin: 0 auto 25px;
  border-radius: 20px;
}

.howtouse__img_01 {
  max-width: 265px;
  max-height: 485px;
}

.howtouse__img_02 {
  max-width: 328px;
  max-height: 485px;
}

.howtouse__img_03 {
  max-width: 331px;
  max-height: 485px;
}

.howtouse__img_04 {
  max-width: 329px;
  max-height: 485px;
}

.howtouse__desc {
  color: #1c1c1c;
  text-align: center;
  font-family: Pretendard;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.24px;
}

.howtouse__desc strong {
  font-weight: 700;
}

.howtouse__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
}

.howtouse__arrow--left {
  left: 10px;
}

.howtouse__arrow--right {
  right: 10px;
}

.howtouse__arrow img {
  width: 16px;
  height: 34px;
}

/* Recommendation Section */
.recommendation {
  padding: 140px 10px;
  background: #1e1e1e;
  color: white;
  position: relative;
  background-image: url("./img/recommendation_background_logox2.png");
  background-repeat: no-repeat;
  background-position: bottom -3px right;
  background-size: 600px;  
  min-width: 1280px; /* PC 최소 너비 설정 */
}

.recommendation__container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.recommendation__title {
  color: #fff;
  font-family: Pretendard;
  font-size: 50px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.5px;
  margin-bottom: 50px;
}

.recommendation__title-next-line {
  display: inline;
}

.recommendation__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.recommendation__card {
  background: white;
  border-radius: 16px;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  overflow: hidden;
}

.recommendation__number {
  background: #ff4242;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 52px;
  justify-content: flex-end;
  padding-right: 30px;
  border-radius: 16px 16px 0 0;
  color: #FFF;
  font-family: SUIT;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  letter-spacing: -0.96px;
}

.recommendation__text {
  padding: 30px 20px 20px 30px;
  flex: 1;  
  align-items: center;
  color: #2A2A2A;

  font-family: SUIT;
  font-size: 23px;
  font-style: normal;
  font-weight: 500;
  line-height: 29.6px; /* 128.696% */
  letter-spacing: -0.69px;
}

.recommendation__text strong {
  font-weight: 800;
}

.recommendation__footer-text {
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
  font-family: Pretendard;  
  font-weight: 400;
  font-size: 25px;
  font-style: normal;
  line-height: 33px;
  letter-spacing: -0.25px;
}

/* Download Section */
.download {
  padding: 140px 20px;
  background: white;
  background: linear-gradient(to bottom, #fff 0%, #fff calc(100% - 15px), #e00 calc(100% - 15px), #e00 100%);
  min-width: 1280px; /* PC 최소 너비 설정 */
}

.download__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.download__title {  
  margin-bottom: 30px;  
  color: #1C1C1C;
  text-align: center;
  font-family: Pretendard;
  font-size: 45px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -0.45px;
}

.download__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
}

.download__stores {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.download__store-btn {
  max-width: 180px;
}

.download__store-btn-google {
  max-width: 199px;
}

.download__store-btn:active {
  filter: brightness(0.8);    /* 원래보다 10% 어둡게 */
  transition: transform 0.1s; 
}

.download__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download__arrow--right .download__arrow-img {
  position: relative;
  width: 61px;
  bottom: -30px;
}

.download__arrow--left .download__arrow-img {
  position: relative;
  width: 76px;
  bottom: -30px;
}

.download__arrow-text {
  color: #E00;
  text-align: center;
  font-family: "BM HANNA 11yrs old";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.2px;
  position: relative;
  bottom: -25px;
}

.download__arrow--left .download__arrow-text {
  transform: rotate(12deg);
  left: -60px;
}

.download__arrow--right .download__arrow-text {
  transform: rotate(-9deg);
  right: -45px;
  bottom: -30px;
}

.download__mobile-arrow {
  display: none;
  margin-top: 20px;
}

.download__mobile-arrow-img {
  width: 40px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #EDEDED;
  padding: 40px 40px;
  border-top: 1px solid #e9ecef;
  min-width: 1280px; /* PC 최소 너비 설정 */
  font-weight: 400;
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center; /* 세로 중앙 정렬로 변경 */
  gap: 110px;
}

.footer__logo {
  flex-shrink: 0;
  padding-left : 25px;
}

.footer__logo-img {
  max-width: 142px;
}

.footer__info {
  flex: 1;
  text-align: left;
}

.footer__text {
  font-family: SUIT;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.28px;
}

.footer__text strong {
  font-weight: 700;
}

.footer__text .footer_sep {
  padding: 0 5px;
}


@media (min-width: 769px) {
  .hero__subtitle .next_line {display: block;}
  .hero__title .next_line {display: block;}
}

/* 모바일 스타일만 별도로 정의 */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden; /* 모바일에서는 가로 스크롤 방지 */
  }

  .header {
    min-width: auto;
  }

  .header__container {
    padding: 20px 30px;
  }

  .header__logo-img {
    width: 120px;
    height: auto;
  }

  .header__download-btn {
    height: 35px;
  }

  /* 1) Hero 전체 여백 및 최소 너비 해제 */
  .hero {
    min-width: auto;                /* PC용 min-width 제거 */
    padding: 80px 20px 20px;        /* 위쪽 공간을 조금 더 확보, 아래 여백은 약간만 */
  }

  /* 2) Hero 컨테이너를 세로 정렬로 변경, 텍스트·토글 중앙 정렬 */
  .hero__container {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 20px;
  }
  .hero__subtitle {
    font-size: 20px;
  }
  .hero__title {
    font-size: 32px;
  }

  /* 2) 토글(wrapper) 영역을 화면 가로 중앙에 배치 */
  .hero__toggle {
    width: 100%;
    display: flex;
    justify-content: center;    
    position: absolute;
    left:-100px;
    bottom: 350px;
  }

  /* 3) 토글 컨테이너를 ‘가로(Row)’로 재설정 */
  .hero__toggle-container {
    display: flex;
    flex-direction: row;       /* ← 가로 배치 */
    align-items: center;       /* 세로 중앙 정렬 */
    gap: 10px;                 /* 토글과 텍스트(화살표) 간격 */
  }

  /* 4) 실제 스위치(슬라이더) 크기 조정 */
  .hero__toggle-switch {
    width: 80px;
    height: 40px;
    position: relative;
    left: -30px;
    top: -20px;
  }
  .hero__toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .hero__toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    border-radius: 50px;
    transition: .4s;
  }
  .hero__toggle-slider:before {
    position: absolute;
    content: "";
    height: 32px;              /* 내부 원 세로 */
    width: 32px;               /* 내부 원 가로 */
    left: 4px;                 /* 토글 안쪽 왼쪽 여백 */
    bottom: 4px;               /* 토글 안쪽 아래 여백 */
    background-color: white;
    border-radius: 50%;
    transition: .4s;
  }
  .hero__toggle-switch input:checked + .hero__toggle-slider {
    background-color: #ff3742;
  }
  .hero__toggle-switch input:checked + .hero__toggle-slider:before {
    transform: translateX(40px); /* 체크 상태에서 원 이동 거리 */
  }

  /* 5) 화살표 아이콘과 텍스트 묶음 */
  .hero__toggle-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 16px;
        line-height: 1.2;
        color: #0c0c0c;
        position: absolute;
        top: 10px;
        margin-left: 20px;
  }
  .hero__pin-arrow {
        width: 40px;
        height: auto;
        transform: rotate(30deg);
  }

  .hero__toggle-text span {
    display: flex;
    position: relative;
    bottom: -10px;
    left: 25px;
    transform: rotate(-13deg);
  }

  /* 6) 폰 이미지 크기 및 위치 (기존 설정 그대로 유지하되 필요시 조정) */
  .hero__phones {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .hero__phone--left {    
    width: 158px;
    height: 293px;
    margin-left:50px;
    bottom: -131px;
  }

  .hero__phone--right {
    width: 230px;
    height: 403px;
    bottom: 30px;
  }

  .features {
    min-width: auto;
    padding: 60px 20px;
  }

  .features__title {
    font-size: 30px;
  }

  .features__content {
    flex-direction: column;
    margin-top: 0;
  }

  .features__item-title {
    font-size: 20px;
  }

  .features__item-img {
    max-width: 240px;
  }

  .features__item-finger {
    width: 50px;    
    bottom: -35px;
    right: -28px;
  }

  .howtouse {
    min-width: auto;
    padding: 60px 20px;
  }

  .howtouse__title {
    font-size: 30px;
  }
  
  .howtouse__title-next-line {
    display: block;
  }
  .howtouse__content {
    grid-template-columns: repeat(1, 1fr);
  }

  .howtouse__desc {
    font-size: 24px;
  }

  .howtouse__arrow {
    display: block;
  }

  .recommendation {
    min-width: auto;
    padding: 60px 20px 80px 20px;
    background-position: bottom -2px center;
    background-size: 320px;
  }

  .recommendation__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .recommendation__title-next-line {
    display: block;
  }

  .recommendation__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .recommendation__card {
    flex-direction: row;
    min-height: 100px;
  }

  .recommendation__number {
    width: 60px;
    height: 100%;
    font-size: 18px;
    justify-content: center;
    padding-right: 0;
    border-radius: 0;
  }

  .recommendation__text {
    font-size: 22px;
    padding: 20px;
    line-height: 1.4;
    letter-spacing: -0.6px;
  }

  .recommendation__footer-text {
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: -0.6;
  }

  .recommendation__footer-text-next-line {
    display: block;
  }

  .download {
    min-width: auto;
    padding: 60px 20px 0;
    height: 500px;
  }

  .download__title {
    font-size: 35px;
    line-height: 1.2;
  }
  
  .download__title-next-line{
    display: block;
  }
  .download__stores {
    flex-direction: column;
  }

  .download__store-btn {
    max-width: 200px;
    width: 200px;
  }

  .download__arrow {
    display: none;
  }

  .download__mobile-arrow {
    display: inline-block;
    position: absolute;
    margin-top: 250px;
    margin-left:180px;
  }

  .download__mobile-arrow .download__mobile-arrow-img{
    width: 30px;
  }

  .download__mobile-arrow .download__arrow-text {
    position:relative;
    font-size: 20px;
    bottom: -5px;
    left: 30px;
    transform: rotate(-15deg);
    display: block;
  }

  .footer {
    min-width: auto;
    padding: 55px 20px;
  }
  
  .footer__container {
    flex-direction: column; /* PC에서는 가로(기본), 모바일에서는 세로로 쌓이도록 설정 */
    align-items: left;    /* 모바일에서 가로 중앙 정렬 */
    text-align: left;     /* 텍스트도 중앙 정렬 */
    gap: 20px;
  }

  .footer__logo {
    align-self: center; /* 로고는 좌측 정렬 */
    padding-left: 0;
    margin-right: 150px;
  }

  .footer__info {
    margin-top: 0px; /* 로고와 텍스트 사이 여백 */
    align-items: left;
  }

  .footer__text .company_name {
    text-align: left;
    display: block;
  }

  .footer__text .hide_sep {
    display: none;
  }
  
}
