@font-face {
  font-family: "SB 어그로 M"; /* 폰트 이름 */
  src: url("./font/SB 어그로 M.ttf") format("truetype"); /* 폰트 경로와 형식 */
  font-weight: normal; /* 폰트 굵기 (옵션) */
  font-style: normal; /* 폰트 스타일 (옵션) */
}
html {
  font-size: 10px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, "SB 어그로 M";
}
h3 {
  font-size: 4rem;
  padding: 2rem 0;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #7e7067;
  text-align: right;
}

ul li {
  padding: 0 2rem;
}
.hidden {
  display: none;
}

/* 전화 또는 위로 가기 버튼 스타일 */
.floating-buttons {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 버튼 간격 */
  z-index: 1000;
}

.floating-buttons a,
.floating-buttons button {
  width: 6rem;
  height: 6rem;
  background-color: #7c6b61; /* 버튼 배경색 */
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.floating-buttons a:hover,
.floating-buttons button:hover {
  transform: scale(1.1);
  background-color: #5a4c45; /* hover 시 색상 */
}

.floating-buttons img {
  width: 3rem;
  height: 3rem;
}

/* 개별 버튼 스타일 */
.phone-btn img {
  filter: invert(1); /* 흰색 아이콘 */
}

.top-btn img {
  filter: invert(1); /* 흰색 아이콘 */
}

/* 상단의 메뉴바 스타일 */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25); /* X축, Y축, 흐림 반경, 그림자 색상 */
  padding: 3rem 6rem;
  position: fixed;
  box-sizing: border-box;
  z-index: 1000;
}
.mobile-design {
  display: none;
  height: 34rem;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1 {
  margin: 0;
  color: #7e7067;
  font-size: 3.2rem;
  font-weight: 600;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  text-decoration: none;
  color: #7e7067;
  font-size: 2.2rem;
}

.navbar a:hover {
  transform: scale(1.1); /* 확대 효과 */
  display: inline-block; /* 글씨 확대를 위해 블록으로 설정 */
}
/* 섹션 스타일 */
section {
  display: flex;
  justify-content: center;
}
.section-class {
  width: 85%;
}
/* 메인 화면 스타일 */
.hero {
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  height: 70rem;
  background-color: #f8f8f8;
  background-image: url(./images/입주\ 청소\ 전문\ 이미지.jpg);
  background-repeat: no-repeat; /* 이미지 반복 제거 */
  background-position: center; /* 이미지 위치 설정 */
  background-size: cover; /* 이미지 크기 조정 */
}

.hero h2 {
  font-size: 5rem;
  color: #ffffff;
  font-weight: 400;
}

.hero p {
  font-size: 3rem;
  color: #ffffff;
  line-height: 1.5;
}
/* 작업 이미지 스타일 */
.work-gallery {
  position: relative;
  background-color: #ffffff;
  text-align: center;
  height: 110rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.work-text {
  width: 90%;
}

.work-background {
  width: 100%;
  height: 75rem;
  background-color: #af9384;
}
/* 작업 사진 슬라이더 스타일 */
.slider {
  padding-top: 5rem;
  position: relative;
  width: 100%;
  max-width: 165rem; /* 슬라이더 최대 너비 */
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

/* 슬라이드 이미지들 */

.slider {
  width: 100%;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide img {
  width: auto;
  height: 58rem;
  display: block;
  margin: 2rem 4rem;
  margin-top: 6rem;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25); /* X축, Y축, 흐림 반경, 그림자 색상 */
}

.slide img:hover {
  transform: scale(1.1); /* 확대 효과 */
}

/* 버튼 스타일 */
.work-gallery button {
  width: 5.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 100;
}
.prev,
.next {
  position: absolute;
}
.prev {
  left: 8rem;
  top: 50rem;
}

.next {
  right: 8rem;
  top: 50rem;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 리뷰 섹션 */
.reviews {
  background-color: #ebe6e3;
  padding: 4rem 2rem;
  text-align: center;
  font-family: Arial, sans-serif;
}

#reviews {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.reviews h2 {
  font-size: 2.4rem; /* 24px */
  color: #7e7067;
  font-size: 5rem;
  margin-bottom: 10px;
  font-weight: 400;
}
.review-span {
  font-weight: 600;
}
.reviews .date {
  font-size: 2.5rem;
  color: #888;
  margin-bottom: 30px;
}

/* 리뷰 카드 스타일 */
.review-card {
  position: relative;
  background-color: #fff;
  width: 77rem;
  height: 44rem;
  border-radius: 2rem;
  margin: 5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-image: url(./images/리뷰\ 프로필.png);
  background-repeat: no-repeat; /* 이미지 반복 제거 */
  background-position: center; /* 이미지 위치 설정 */
  background-size: cover; /* 이미지 크기 조정 */
}
#review-card2 {
  background-image: url(./images/리뷰\ 프로필2.png);
  background-repeat: no-repeat; /* 이미지 반복 제거 */
  background-position: center; /* 이미지 위치 설정 */
  background-size: cover; /* 이미지 크기 조정 */
}
.review-card:hover {
  transform: scale(1.1); /* 확대 효과 */
}
.review-name {
  position: absolute;
  font-weight: 400;
  top: 1.6rem;
  left: 4.5rem;
  font-size: 2rem;
  color: #fff;
}
.review-date {
  color: #7e7067;
  position: absolute;
  font-weight: 400;
  top: 12rem;
  left: 4.5rem;
  font-size: 2.2rem;
}
.review-text {
  color: #7e7067;
  position: absolute;
  font-weight: 400;
  top: 22rem;
  left: 4.5rem;
  font-size: 2.6rem;
  text-align: left;
}
.review-image {
  width: 15rem;
  position: absolute;
  top: 6.5rem;
  right: 8rem;
}

/* 청소 방법 스타일 */
.cleaning-methods {
  padding: 10rem 0;
  border-bottom: solid 1px #dfdfdf;
}
#cleaning-methods {
  width: 70%;
}
.content {
  position: relative;
}
#cleaning-h3 {
  text-align: left;
}
.content p {
  position: relative;
  font-size: 2rem;
  font-family: "NanumSquare";
  color: #7e7067;
  z-index: 100;
}
#cleaning-image1 {
  position: absolute;
  right: 1rem;
  bottom: 55rem;
  width: 65rem;
  z-index: 1;
}
#cleaning-image2 {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 42rem;
  z-index: 1;
}
/* 서비스 가격 스타일 */
.service {
  height: 150rem;
  padding-top: 20rem;
}
.service-images {
  display: flex;
  justify-content: center;
}
.service-images img {
  width: 95%;
}
.service-h3 {
  text-align: left;
}

.service-span {
  font-size: 2.2rem;
}
.service-span:hover,
.best:hover {
  transform: scale(1.1); /* 확대 효과 */
  display: inline-block; /* 글씨 확대를 위해 블록으로 설정 */
}

.click {
  position: absolute;
  width: 4rem;
  top: 10.5rem;
  left: 29rem;
  animation: float 2s infinite ease-in-out; /* 둥둥 떠다니는 애니메이션 설정 */
}

/* 둥둥 떠다니는 애니메이션 */
@keyframes float {
  0% {
    transform: translateY(0); /* 기본 위치 */
  }
  50% {
    transform: translateY(-10px); /* 위로 10px 이동 */
  }
  100% {
    transform: translateY(0); /* 원래 위치로 복귀 */
  }
}

.toggle {
  cursor: pointer;
  text-decoration: none;
}

.cleaning-methods .hidden {
  display: none;
}
.price-list {
  list-style-type: none;
  margin: 2rem 0;
  font-size: 2.5rem;
  color: #555;
  font-weight: 500;
  padding: 0;
}

.pricing {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.pricing p {
  font-size: 2.5rem;
  color: #7e7067;
  padding: 1rem 0;
}
.pricing-container {
  display: flex;
}
#pricing-box1 {
  padding-right: 15rem;
  border-right: 1px solid #c9c9c9;
}
#pricing-box2 {
  padding-left: 15rem;
}
.best {
  padding: 0.3rem;
  background-color: #7e7067;
  color: #fff;
  border-radius: 0.2rem;
}

/* 신청하기 페이지 스타일 */
#unique {
  background-color: #ebe6e3;
  height: 100rem;
  position: relative;
}

#unique-class {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#unique-class h3 {
  padding: 0;
  margin: 0;
}
#unique-class p {
  font-size: 2.5rem;
  color: #7e7067;
  margin-bottom: 8rem;
}

#unique-class label {
  width: 30rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1e1e1e;
  border-right: #cfcfcf 1px solid;
}
#unique-class label {
  font-size: 2.4rem;
}

#unique-class input,
#unique-class select,
#unique-class textarea {
  border: none;
  font-size: 1.9rem;
  margin-left: 4rem;
  color: #4c4c4c;
  font-family: "NanumSquare";
}
#unique-class textarea {
  width: 40rem;
}
#unique-class input,
#unique-class select {
  width: 36rem;
}
#unique-form-container {
  background-color: #ffffff;
  border-radius: 0.8rem;
  box-shadow: 4px 4px 4rem rgba(0, 0, 0, 0.1);
  width: 100rem;
}

form {
  position: relative;
}

.unique-form-row {
  display: flex;
  border: #cfcfcf 1px solid;
  height: 4.8rem;
}

.unique-form-label {
  font-size: 0.7rem;
  color: #6f5d54;
  display: block;
}

.unique-form-input,
.unique-form-select,
.unique-form-textarea {
  width: 100%;
  padding: 1rem;
  border: 0.1rem solid #898989;
  border-radius: 0.4rem;
  font-size: 0.7rem;
  color: #6f5d54;
  overflow: hidden;
}

.unique-form-textarea {
  resize: none;
}

.unique-form-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 100;
}

.unique-form-checkbox input {
  position: absolute;
  width: 2rem !important;
  left: 1rem;
}

.unique-form-checkbox label {
  width: 50rem !important;
  position: absolute;
  left: 0rem;
  border: none !important;
  color: #7f7f7f !important;
  font-size: 2.2rem !important;
}

.unique-form-submit {
  font-family: "SB 어그로 M";
  position: absolute;
  background-color: #ffffff;
  color: #7f7f7f;
  border: none;
  border-radius: 5rem;
  padding: 1rem;
  font-size: 2.2rem;
  cursor: pointer;
  width: 14rem;
  transition: background-color 0.3s;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
  margin-left: auto;
  right: 1rem;
  bottom: -6rem;
}

.unique-form-submit:hover {
  background-color: #6b5a52;
  color: white;
}

/* 약도 섹션 스타일 */
.map-section {
  height: 90rem;
  padding: 3rem 1rem;
  position: relative;
  display: flex;
  align-items: center;
}
#map-section {
  display: flex;
  flex-direction: column;
}
.map-section h3 {
  text-align: center;
}

.map-container {
  display: flex;
  gap: 6rem;
  width: 100%;
}

.info-icons {
  background-color: #ffffff;
  border-radius: 5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: #ebebeb 1px solid;
  padding: 4rem;
  width: 56rem;
  height: 40rem;
  gap: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  justify-items: center;
  align-items: center;
  text-align: center;
}
.icons:hover {
  transform: scale(1.1);
}
.info-icons p {
  font-size: 1.8rem;
  font-weight: 400;
}
.info-icons img {
  width: 7rem;
  margin-bottom: 1rem;
}

.info-icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.map-frame {
  width: 90rem;
  height: 55rem;
  background-color: #dcdcdc;
  border-radius: 1rem;
}

.buttons {
  margin-top: 1.5rem;
  gap: 1rem;
  padding: 2rem 0;
  width: 100%;
  height: 5rem;
}

.buttons button {
  padding: 1.2rem 4rem;
  border: none;
  border-radius: 5rem;
  background-color: #ffff;
  color: #7a675f;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  font-family: "SB 어그로 M";
  margin-left: 2.5rem;
  float: right;
}

.buttons button:hover {
  background-color: #6b5a52;
  color: #ffff;
}
.buttons p {
  top: 72rem;
  position: absolute;
  width: 65rem;
  font-family: "NanumSquare";
  font-size: 1.8rem;
  text-align: center;
  color: #1e1e1e;
  height: 3rem;
}

/* 하단의 푸터 섹션 스타일 */
.footer {
  background-color: #7a675f;
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.footer p {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  font-family: "NanumSquare";
  font-weight: 500;
}

.footer .company-name {
  font-weight: bold;
  font-size: 2rem;
}

#footer-text:hover {
  cursor: pointer;
}

/* 개인정보 처리 방침 */

.privacy-policy {
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  z-index: 2000;
}

.privacy-policy p {
  max-width: 60rem;
  line-height: 150%;
}
.privacy-policy strong {
  font-size: 2.5rem;
}

.privacy-policy button {
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background-color: #ffffff;
  color: #555;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.privacy-policy button:hover {
  background-color: #f0f0f0;
}

/* 애니메이션 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 스타일 (PC, 태블릿, 모바일) */
@media only screen and (max-width: 1570px) {
  html {
    font-size: 9px;
  }
  footer {
    height: 35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  footer p {
    font-size: 2rem !important;
  }
}

/* 태블릿 반응형 사이즈 */
@media only screen and (max-width: 1390px) {
  html {
    font-size: 8px;
  }
}

@media only screen and (max-width: 1230px) {
  html {
    font-size: 7px;
  }
  .cleaning-methods {
    height: 140rem;
  }
  .section-class h3 {
    position: relative;
    z-index: 900;
  }
  .content img {
    z-index: 800;
  }
  .info-icons {
    width: 80rem;
    height: 45rem;
  }
  .map-section {
    height: 150rem;
  }

  .map-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .buttons p {
    width: 83%;
    top: 70rem;
  }
  .buttons {
    width: 82%;
  }
}
@media only screen and (max-width: 810px) {
  .mobile-design {
    display: block;
  }
  header {
    padding: 3rem 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.95;
  }
  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .grid-list {
    width: 100%;
    display: grid !important; /* 그리드 레이아웃 활성화 */
    grid-template-columns: repeat(3, 1fr); /* 2열 설정 */
    gap: 2.5rem !important; /* 항목 간의 간격 */
    padding: 0;
    margin: 0;
  }
  .grid-list a {
    font-size: 3rem;
  }
  .navbar {
    display: grid;
    grid-template-columns: repeat(1, 2fr); /* 3열 구성 */
    width: 90%;
    height: 30rem;
  }
  .navbar a:hover {
    transition: none;
  }
  .navbar h1 {
    font-size: 3.4rem;
    text-align: center;
  }
  #unique-form-container {
    width: 80rem;
  }
  .service {
    height: 130rem;
  }
  .map-section {
    height: 180rem;
  }
  .buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .buttons p {
    top: 85rem !important;
  }
  .buttons button {
    font-size: 3.2rem;
  }
  .unique-form-submit {
    width: 100%;
    padding: 1rem 0;
    font-size: 3.2rem;
    bottom: -8rem;
  }
}
@media only screen and (max-width: 666px) {
  html {
    font-size: 6px;
  }
  .content p {
    font-size: 2.5rem;
  }
  .cleaning-methods {
    height: 155rem;
  }
  .section-class,
  #cleaning-methods {
    width: 90%;
  }
  .info-icons p {
    font-size: 2.8rem;
  }
  .buttons p {
    font-size: 2.5rem;
  }
  footer {
    height: 60rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  footer p {
    font-size: 3rem !important;
  }
}
@media only screen and (max-width: 560px) {
  html {
    font-size: 5px;
  }
  .grid-list a {
    font-size: 3.5rem;
  }
  .content p {
    font-size: 2.6rem;
  }
  .buttons p {
    font-size: 2.5rem;
    top: 90rem !important;
  }
  .cleaning-methods {
    height: 170rem;
  }
  #unique-class label {
    font-size: 2.8rem;
  }
  #unique-class input,
  #unique-class select,
  #unique-class textarea,
  .info-icons p {
    font-size: 2.4rem;
  }
  .info-icons {
    height: 65rem;
  }
}
/* 모바일 반응형 */
@media only screen and (max-width: 480px) {
  .grid-list a {
    font-size: 3rem;
  }
  .pricing-container {
    display: flex;
    flex-direction: column;
  }
  #pricing-box1 {
    padding-right: 0rem;
    border: none;
  }
  #pricing-box2 {
    padding-left: 0rem;
  }
  h3 {
    font-size: 5rem;
  }
  p {
    font-size: 3rem;
  }
  .click {
    top: 12rem;
    left: 36rem;
  }
  .review-name {
    top: 1.1rem;
    font-size: 2.2rem;
  }
  #unique-form-container,
  .info-icons,
  .map-frame {
    width: 98%;
    height: 50rem;
  }
  .unique-form-submit {
    width: 97%;
    bottom: -7rem;
    box-shadow: none;
  }
  .unique-form-submit:hover {
    background-color: #ffffff;
    color: #5a4c45;
  }
  .buttons p {
    top: 87rem !important;
  }
  img {
    opacity: 0.7;
  }
  .floating-buttons a,
  .floating-buttons button {
    width: 9rem;
    height: 9rem;
  }
  .floating-buttons img {
    width: 4rem;
    height: 4rem;
  }
}
@media only screen and (max-width: 420px) {
  .grid-list a {
    font-size: 2.7rem;
  }
  .service {
    height: 150rem;
  }
  .review-card {
    width: 67rem;
    height: 38rem;
  }
  .review-name {
    top: 1.1rem;
    font-size: 1.95rem;
  }
  .review-date {
    top: 10rem;
  }
  .review-text {
    top: 19rem;
    font-size: 2.4rem;
  }
  .review-image {
    width: 13rem;
    top: 6rem;
    right: 7rem;
  }
}
@media only screen and (max-width: 380px) {
  .grid-list {
    gap: 1rem !important;
  }
  .grid-list a {
    font-size: 2.6rem;
  }
}
