body {
  position: relative;
  background-color: #f2e9d8;
  line-height: 1.3;
}

strong {
  font-weight: 700;
  color: #d97652;
}

button:hover {
  cursor: pointer;
}

.titleText {
  font-size: 3rem;
  font-weight: 700;
}

.modalText > .titleText,
.floatTextSection > .titleText {
  font-size: 2.25rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* 헤더 스타일 */
#header {
  width: 100%;
  height: 49.875rem;
  overflow: hidden;
}

/* 네비게이션 바 스타일 */
.headerNav {
  display: flex;
  padding: 1.6rem 20rem;
  justify-content: space-between;
  position: sticky;
  align-items: center;
  top: 0;
  z-index: 1000;
  background-color: #f2e9d8;
}

.headerNav a {
  color: black;
}

.headerMenuList {
  display: flex;
  align-items: center;
}

.mobileHeaderMenuList,
.mobileHeaderMenuImg,
.footerMobileMenuList {
  display: none;
}

.mobileMenuContainer {
  height: 0;
}

.closeMenuImg {
  visibility: hidden;
}

.headerMenuList li:nth-child(1),
.headerMenuList li:nth-child(2) {
  margin-right: 1.8rem;
}

.headerMenuList li:nth-child(3) {
  margin-right: 2.5rem;
}

.downloadBtn {
  background-color: #d97652;
  border-radius: 40px;
  padding: 1rem 1.8rem;
  color: white;
  border: none;
}

/* 헤더 텍스트 및 이미지 섹션 스타일 */
.headerTextAndImg {
  padding: 2rem 20rem 0;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}

.headerText {
  display: flex;
  flex-flow: column wrap;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 10rem;
  padding-right: 8rem;
}

.headerText h2,
.headerText p {
  margin-bottom: 2.5rem;
}

/* 메인 스타일 */
#main {
  padding: 5rem 20rem;
  background-color: white;
}

/* 첫번째 이미지 섹션 */
.imgSection1 {
  display: flex;
  align-items: center;
}

.imgSection1 img {
  max-width: 41.25rem;
  max-height: 24.375rem;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 30px;
  filter: drop-shadow(10px 10px 30px rgba(0, 0, 0, 0.25));
}

.imgSection1Text {
  padding: 5.75rem 0 5.75rem 6.875rem;
}

.imgSection1Text h2 {
  margin-bottom: 1.875rem;
}

/* 두번째 이미지 섹션 */
.imgSection2 {
  margin-top: 7.5rem;
  position: relative;
}

.imgSection2Text1 {
  text-align: center;
}

.imgSection2Text1 h2 {
  margin-bottom: 2.5rem;
  color: #d97652;
}

.imgSection2Text1 p {
  padding: 0 10rem;
}

.imgSection2ImgContainer {
  position: relative;
}

.imgSection2ImgWrapper {
  margin-top: 5.5rem;
  display: flex;
  justify-content: space-between;
}

.imgSection2ImgCarousel {
  overflow: hidden;
}

.catImg {
  width: 23.625rem;
  border-radius: 30px;
  box-shadow: 10px 0 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease;
}

.imgSection2Text2 {
  margin: 5.625rem 0 12.25rem 0;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.imgSection2Text2 p {
  margin-right: 3.25rem;
  word-break: keep-all;
  width: 100%;
}

.downloadBtnWrapper {
  display: flex;
  justify-content: flex-end;
  width: 50%;
}

/* 플로팅 박스 스타일 */
.floatingBox {
  position: absolute;
  background-color: #263140;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 66%;
  padding: 3.125rem 3.625rem;
  color: white;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

/* 텍스트 섹션 스타일 */
.floatTextSection {
  flex-grow: 1;
  margin-right: 9rem;
  width: 100%;
}

.floatTextSection h3 {
  margin-bottom: 1rem;
}

/* 인풋 박스 스타일 */
.floatInputSection {
  flex-grow: 1;
}

.floatInputSection {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
}

.inputWrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.floatInput {
  width: 100%;
  padding: 1rem 10rem 1rem 3rem;
  background: url("../images/mail.svg") no-repeat 10px center; /* 아이콘 위치 */
  background-color: white;
  text-align: left;
  border-radius: 60px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 1rem;
}

.inputWrapper > .downloadBtn {
  position: absolute;
  right: 0.5rem;
  height: calc(100% - 0.5rem);
  padding: 0 1.5rem;
}

/* 고양이 백그라운드 이미지 */
.catBackImg {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  vertical-align: middle;
  opacity: 0.6;
  object-position: center 40%;
}

/* 푸터 스타일 */
#footer {
  background-color: white;
  padding: 1.6rem 20rem;
}

.footerMenuContainer {
  display: flex;
  justify-content: space-between;
}

.footerMenuSection {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footerMenuList {
  display: flex;
  justify-content: space-between;
}

.footerMenuList li {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #f29d52;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footerMenuList li a {
  display: flex;
}

.footerMenuList li:not(:last-child) {
  margin-right: 1.25rem;
}

.footerMobileMenuList li a {
  color: #767676;
}

.topBtn {
  visibility: hidden;
  position: fixed;
  bottom: 10rem;
  right: 1.5rem;
  background-color: #fafafa;
  width: 40px;
  height: 40px;
  z-index: 100;
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.3s;
}

.topBtn.top {
  visibility: visible;
}

.topBtn:hover {
  opacity: 1;
  cursor: pointer;
}

/* 모달 스타일 */
.subModal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.subModal.on {
  display: block;
}

.modalPopup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 20rem;
  width: 37.5rem;
  border-radius: 30px;
  padding: 5rem 5rem 3rem;
  align-content: center;
  background: url("../images/modal-bg-img.png") center;
  background-size: cover;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  align-items: center;
}

.modalImg,
.modalBtn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modalText {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
}

.modalText h3 {
  margin-bottom: 1rem;
}

.modalPopup img {
  width: 50%;
}

.carSlide {
  flex: 1 1 100%;
  display: flex;
}

.carSlide:nth-child(1) {
  justify-content: flex-start;
}
.carSlide:nth-child(2) {
  justify-content: center;
}
.carSlide:nth-child(3) {
  justify-content: flex-end;
}

.carSlide:not(:last-child) {
  margin-right: 2rem;
}

/* 이미지가 깨는 1500px부터 769px까지 */
@media (max-width: 1800px) and (min-width: 1301px) {
  .headerNav {
    padding: 1.6rem 10rem;
  }

  .headerText {
    padding-top: 0;
  }

  .headerTextAndImg {
    padding: 2rem 10rem 0;
  }

  #main {
    padding: 5rem 10rem;
  }

  #footer {
    padding: 1.6rem 10rem;
  }
}

/* 768px 기준 */
@media (max-width: 1300px) and (min-width: 769px) {
  .titleText {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.875rem;
  }

  #header,
  #main {
    padding: 0 2rem;
  }

  /* 네비게이션 바 스타일 */
  .headerNav {
    padding: 1.25rem 1.5rem;
  }

  .headerMenuImg {
    width: 50%;
  }

  /* 모바일 메뉴 스타일 */
  .mobileMenuContainer {
    position: fixed;
    visibility: hidden;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 2000;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
  }

  .mobileHeaderMenu {
    display: block;
    background-color: #263140;
    height: 100%;
    width: 0;
    margin-left: auto;
    transition: all 0.5s ease;
  }

  .mobileMenuContainer.open {
    visibility: visible;
  }

  .mobileHeaderMenu.open {
    width: 80%;
  }

  .mobileMenuContainer.open .closeMenuImg {
    /* display: block; */
    visibility: visible;
  }

  .mobileHeaderMenuList {
    display: flex;
    flex-flow: column wrap;
    padding: 2rem;
    height: 20%;
    justify-content: space-between;
  }

  .mobileHeaderMenuList a {
    color: white;
  }

  .mobileHeaderMenuImg {
    display: block;
  }

  .backImgWrapper {
    padding: 1rem;
  }

  /* 헤더 스타일 */
  #header {
    height: 44rem;
    width: auto;
  }

  .headerText h2,
  .headerText p {
    text-align: center;
  }

  .headerImgWrapper {
    display: flex;
    justify-content: center;
  }

  .headerImgWrapper img {
    width: 12.5rem;
  }

  .headerMenuList {
    display: none;
  }

  .headerTextAndImg {
    padding: 0;
  }

  .headerTextAndImg,
  .imgSection1,
  .imgSection2Text2 {
    flex-flow: column wrap;
  }

  .headerText {
    align-items: center;
    padding: 5rem 0 0 0;
  }

  /* 메인 스타일 */
  .imgSection1 {
    padding: 2.5rem 0 0 0;
  }

  .imgSection1 img {
    width: 100%;
    height: 13.375rem;
  }

  .imgSection1Text {
    padding: 2.5rem 0 0 0;
  }

  .catImg {
    width: 16.25rem;
  }

  .imgSection2Text2 {
    margin: 5.625rem 0 0 0;
  }

  .imgSection2Text2,
  .imgSection2Text1 p {
    padding: 0 2rem;
  }

  .imgSection2Text2 p,
  .floatTextSection {
    margin: 0;
  }

  .downloadBtnWrapper {
    width: 100%;
    margin: 2rem 0 24rem;
  }

  /* 플로팅 박스 스타일 */
  .floatingBox {
    flex-flow: column wrap;
    width: 70%;
    transform: translateX(-50%) translateY(-70%);
    padding: 2rem;
  }

  .floatTextSection h3 {
    width: 70%;
  }

  .floatTextSection p {
    margin-bottom: 1rem;
  }

  .floatInputSection {
    width: 100%;
  }

  .floatInput {
    padding: 1rem 1rem 1rem 3rem;
  }

  .floatInput::placeholder {
    font-size: 0.875rem;
  }

  .inputWrapper {
    flex-flow: column;
    align-items: flex-end;
  }

  .inputWrapper > .downloadBtn {
    position: static;
    height: auto;
    padding: 1rem 1.8rem;
    margin-top: 2rem;
  }

  .catBackImg {
    height: 20rem;
    object-position: center 40%;
  }

  /* 푸터 스타일 */
  #footer {
    padding: 0 1.2rem;
  }

  .footerMenuContainer {
    padding: 2rem 0;
  }

  .footerMenuSection {
    flex-flow: column wrap;
    align-items: flex-start;
  }

  .footerMenuList li {
    width: 32px;
    height: 32px;
  }

  .footerMenuList li a img {
    width: 18.29px;
    height: 18.29px;
  }

  .footerMobileMenuList {
    display: flex;
    width: 100%;
    flex-flow: column wrap;
    align-items: flex-end;
  }

  .footerMobileMenuList li:not(:last-child) {
    margin-bottom: 1rem;
  }

  .footerMobileMenuList li a {
    font-size: 0.875rem;
  }

  /* 탑 버튼 스타일 */
  .topBtn {
    display: none;
  }

  /* 모달 스타일 */
  .modalPopup {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .titleText {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.875rem;
  }

  #header,
  #main {
    padding: 0 2rem;
  }

  /* 네비게이션 바 스타일 */
  .headerNav {
    padding: 1.25rem 1.5rem;
  }

  .headerMenuImg {
    width: 50%;
  }

  /* 모바일 메뉴 스타일 */
  .mobileMenuContainer {
    position: fixed;
    visibility: hidden;
    width: 100%;
    height: 0;
    top: 0;
    right: 0;
    z-index: 2000;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
  }

  .mobileHeaderMenu {
    display: block;
    background-color: #263140;
    height: 100%;
    width: 0;
    margin-left: auto;
    transition: all 0.5s ease;
  }

  .mobileMenuContainer.open {
    visibility: visible;
    height: 100%;
  }

  .mobileHeaderMenu.open {
    width: 80%;
  }

  .mobileMenuContainer.open .closeMenuImg {
    /* display: block; */
    visibility: visible;
  }

  .mobileHeaderMenuList {
    display: flex;
    flex-flow: column wrap;
    padding: 2rem;
    height: 20%;
    justify-content: space-between;
  }

  .mobileHeaderMenuList a {
    color: white;
  }

  .mobileHeaderMenuImg {
    display: block;
  }

  .backImgWrapper {
    padding: 1rem;
  }

  /* 헤더 스타일 */
  #header {
    height: 44rem;
    width: auto;
  }

  .headerText h2,
  .headerText p {
    text-align: center;
  }

  .headerImgWrapper {
    display: flex;
    justify-content: center;
  }

  .headerImgWrapper img {
    width: 12.5rem;
  }

  .headerMenuList {
    display: none;
  }

  .headerTextAndImg {
    padding: 0;
  }

  .headerTextAndImg,
  .imgSection1,
  .imgSection2Text2 {
    flex-flow: column wrap;
  }

  .headerText {
    align-items: center;
    padding: 5rem 0 0 0;
  }

  /* 메인 스타일 */
  .imgSection1 {
    padding: 2.5rem 0 0 0;
  }

  .imgSection1 img {
    width: 100%;
    height: 13.375rem;
  }

  .imgSection1Text {
    padding: 2.5rem 0 0 0;
  }

  .catImg {
    width: 16.25rem;
  }

  .imgSection2Text2 {
    margin: 5.625rem 0 0 0;
  }

  .imgSection2Text2,
  .imgSection2Text1 p {
    padding: 0 2rem;
  }

  .imgSection2Text2 p,
  .floatTextSection {
    margin: 0;
  }

  .downloadBtnWrapper {
    width: 100%;
    margin: 2rem 0 24rem;
  }

  /* 캐러셀 스타일 */
  .imgSection2ImgWrapper {
    display: flex;
    transition: transform 0.5s ease;
  }

  .carouselBtnLeft,
  .carouselBtnRight {
    position: absolute;
    top: 50%;
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.5s;
  }
  .carouselBtnLeft:hover,
  .carouselBtnRight:hover {
    opacity: 1;
  }

  .carouselBtnLeft {
    left: -20px;
  }

  .carouselBtnRight {
    right: -20px;
  }

  /* 플로팅 박스 스타일 */
  .floatingBox {
    flex-flow: column wrap;
    width: 70%;
    transform: translateX(-50%) translateY(-70%);
    padding: 2rem;
  }

  .floatTextSection h3 {
    width: 70%;
  }

  .floatTextSection p {
    margin-bottom: 1rem;
  }

  .floatInputSection {
    width: 100%;
  }

  .floatInput {
    padding: 1rem 1rem 1rem 3rem;
  }

  .floatInput::placeholder {
    font-size: 0.875rem;
  }

  .inputWrapper {
    flex-flow: column;
    align-items: flex-end;
  }

  .inputWrapper > .downloadBtn {
    position: static;
    height: auto;
    padding: 1rem 1.8rem;
    margin-top: 2rem;
  }

  .catBackImg {
    height: 20rem;
    object-position: center 40%;
  }

  /* 푸터 스타일 */

  #footer {
    padding: 0 1.2rem;
  }

  .footerMenuContainer {
    padding: 2rem 0;
  }

  .footerMenuSection {
    flex-flow: column wrap;
    align-items: flex-start;
  }

  .footerMenuList li {
    width: 32px;
    height: 32px;
  }

  .footerMenuList li a img {
    width: 18.29px;
    height: 18.29px;
  }

  .footerMobileMenuList {
    display: flex;
    width: 100%;
    flex-flow: column wrap;
    align-items: flex-end;
  }

  .footerMobileMenuList li:not(:last-child) {
    margin-bottom: 1rem;
  }

  .footerMobileMenuList li a {
    font-size: 0.875rem;
  }

  /* 탑 버튼 스타일 */
  .topBtn {
    display: none;
  }

  /* 모달 스타일 */
  .modalPopup {
    width: 40%;
  }
}

@media (max-width: 390px) {
  .catBackImg {
    object-position: center top;
  }
}
