body {
  overflow-x: hidden;
}

.signup_wrap {
  overflow-x: hidden;
}

.guide_logo img {
  width: 254px;
  height: 45px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .guide_logo img {
    width: 100%;         /* 모바일에서는 가로폭 70%로 줄이기 */
    max-width: 200px;   /* 최대 200px까지만 */
    height: auto;       /* 비율 유지 */
  }
}


/* ===== PC 헤더 스타일 ===== */
.guide_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
}

.guide_logo {
  display: flex;
  align-items: center;
  gap: 8px;
    font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;     /* 링크 밑줄 제거 */
  color: inherit;            /* 기본 글자색 유지 */
}

.guide_menu_wrap {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.guide_menu {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide_home_btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: #005f4c;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
    font-family: 'Pretendard', sans-serif;
}

.guide_home_btn:hover {
  background-color: #004437;
  transform: translateY(-1px);
}

.guide_menu li a {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  color: #000;
  background: transparent;
  transition: background 0.2s, color 0.2s;
    font-family: 'Pretendard', sans-serif;
}

/* hover 시: 마우스 올렸을 때만 색 반전 */
.guide_menu li a:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

/* active 시: 선택된 메뉴만 항상 스타일 유지 */
.guide_menu li a.active {
  background: #000;
  color: #fff;
}

.guide_nav_right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger_btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  gap: 6px;
}

.hamburger_icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
}

.hamburger_icon span {
  height: 2px;
  background: #000;
  border-radius: 1px;
  display: block;
}

.hamburger_text {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Pretendard', sans-serif;
  color: #000;
}

/* ===== 오버레이 ===== */
.hamburger_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* JS로 toggle 예정 */
  z-index: 9999;
  justify-content: flex-end;
}

.hamburger_inner {
  background: #fff;
  height: 100%;
  overflow-y: auto;
  padding: 32px 24px;
  box-sizing: border-box;
  position: relative;
  width: 400px; /* 기본은 PC용 너비 */
  margin-left: auto;    /* ✅ 오른쪽 정렬 */
}

.close_btn {
  background: none;
  border: none;
  font-size: 16px;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
    font-family: 'Pretendard', sans-serif;
  color: #000;
}

/* 헤더 글씨 */
.menu_section li strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
    font-family: 'Pretendard', sans-serif;
}

.menu_section {
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}

.menu_section li {
  margin-bottom: 8px;
}

/* 하위 메뉴 a */
.menu_section li a {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  padding: 10px 16px;
  border-radius: 999px;
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
    font-family: 'Pretendard', sans-serif;
}

/* 호버 시 */
.menu_section li a:hover {
  background-color: #000;
  color: #fff;
}

/* 헤더 세부내용 */
.guide_menu .sub_menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%); /* 중앙 정렬 */
  background: white;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 160px;
  z-index: 1000;
  text-align: center; /* 글자 가운데 정렬 */
  list-style: none;
}

.guide_menu .sub_menu li a {
  font-size: 14px;
  font-weight: 500;
  display: block;
  padding: 10px 16px;
  color: #333;
  white-space: nowrap;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
}

.guide_menu .sub_menu li a:hover {
  background: #005f4c;
  color: white
}

/* 마우스 오버 시 보여주기 */
.guide_menu li.has_sub {
  position: relative;
}

.guide_menu li.has_sub:hover .sub_menu {
  display: block;
}


/* ===== 📱 모바일 대응 ===== */
@media screen and (max-width: 768px) {
  .guide_menu {
    display: none;
  }

  .guide_header {
    flex-wrap: nowrap;
    padding: 12px 16px;
  }

  .guide_logo {
    font-size: 16px;
      font-family: 'Pretendard', sans-serif;
  }

  .guide_home_btn {
    font-size: 14px;
    padding: 5px 12px;
      font-family: 'Pretendard', sans-serif;
  }

  .hamburger_text {
    font-size: 14px;
      font-family: 'Pretendard', sans-serif;
  }

  .guide_nav_right {
    justify-content: flex-end;
    gap: 8px;
  }

  .guide_nav {
    flex-grow: 1;
    justify-content: space-between;
  }

  .hamburger_inner {
    width: 100%;
    max-width: 400px;        /* ✅ 너비 제한 추가 */
    margin-left: auto;       /* ✅ 오른쪽 정렬 */
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1); /* ✅ 우측 그림자 효과 */
  }
    .menu_section li strong {
    font-size: 24px;
      font-family: 'Pretendard', sans-serif;
  }

  .menu_section li a {
    font-size: 16px; /* 동일 유지 */
      font-family: 'Pretendard', sans-serif;
  }
}

/* index */
.guide_banner {
  background: url("https://ecohigh.kr/application/assets/front/img/intro_photo.png") no-repeat center center;
  background-size: cover;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  color: #fff;
}

.guide_banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* 반투명 오버레이 */
  z-index: 0;
}

.banner_center {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.banner_center h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
    font-family: 'Pretendard', sans-serif;
}

.banner_center p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
    font-family: 'Pretendard', sans-serif;
}

/* 검색창 */
.search_box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search_box input {
  flex-grow: 1;
  font-size: 16px;
  padding: 10px;
  border: none;
  outline: none;
  background: transparent;
  color: #333;
}

.search_box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.search_box svg {
  width: 22px;
  height: 22px;
  color: #005f4c;
  transition: color 0.2s;
}

.search_box button:hover svg {
  color: #005f4c;
}

/* 카드 전체 여백 */
.main-chapter {
  max-width: var(--max-content-width);
  margin: 6rem auto; /* ✅ 넉넉한 세로 여백 + 가운데 정렬 */
  scroll-margin-top: calc(var(--header-height) + 2.5rem);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}


/* p영역 밑 배너 이미지 */
.step_banner {
  width: 100%;
  max-width: 620px;
  height: 635px;
  background-color: #e8ffee;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step_banner img {
  max-width: 380px;
  width: 100%;
  height: auto;
  object-fit: contain; 
  display: block;
}

@media screen and (max-width: 768px) {
  .step_banner {
    width: calc(100vw);           /* 화면 전체 너비 */
    margin-left: calc(-1rem);     /* 부모 패딩 제거 */
    margin-right: calc(-1rem);
    border-radius: 0;
    padding: 0;
  }

  .step_banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

/* 카드 디테일 */
/* 카드 디테일 */
.guide_card {
  background: #ffffff;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
  font-family: 'Pretendard', sans-serif;
}

/* 상단 박스 */
.guide_card_head {
  position: relative;
  background-color: transparent;
  background-image: linear-gradient(135deg, #005f4c, #037b61); /* ✅ 그라데이션 */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 30px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
  perspective: 800px; /* ✅ 3D 효과의 기반 */
  z-index: 0; /* ✅ 명시적 기준 */
}

/* 섹션별 배경 색상 */
.guide-green .guide_card_head {
  background-image: linear-gradient(135deg, #5bbd91, #84e8c2);
}
.guide-yellow .guide_card_head {
  background-image: linear-gradient(135deg, #b08968, #ddbca5);
}
.guide-pink .guide_card_head {
  background-image: linear-gradient(135deg, #ff6b6b, #ffb1a8);
}


/* 배경 도형 ::before / ::after */
.guide_card_head::before,
.guide_card_head::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(60px);
  animation: blobFloat2D 12s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0; /* ✅ 텍스트보다 뒤로 */
}

.guide_card_head::before {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.4);
  top: -60px;
  left: -40px;
  animation-delay: 0s;
}

.guide_card_head::after {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(30px); /* ✅ blur 줄이기 */
  animation: blobFloat2D 10s ease-in-out infinite alternate;
}

@keyframes blobFloat2D {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.15); }
  100% { transform: translate(-20px, 20px) scale(1); }
}
/* 텍스트 위로 띄우기 */
.guide_card_head .guide_text {
  position: relative;
  z-index: 2;
}

.guide_card_head .bg-deco {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(50px);
  right: -40px;       /* 살짝 우측 바깥 */
  bottom: -100px;     /* 💡 여기만 기존보다 더 내려줌 */
  animation: floatRight 10s ease-in-out infinite alternate;
  z-index: 0;
}

/* 움직이는 애니메이션 */
@keyframes floatRight {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20px, -20px) scale(1.1); }
  100% { transform: translate(10px, 10px) scale(1); }
}

/* 텍스트는 위에 */
.guide_card_head .guide_text {
  position: relative;
  z-index: 1;
}


.guide_text h3 {
  font-size: 36px;
  font-family: 'Pretendard', sans-serif;
  margin-bottom: 8px;
}

.guide_text p {
  font-size: 24px;
  font-family: 'Pretendard', sans-serif;
  line-height: 1.4;
}

.guide_img img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* 하단 그리드 링크 */
.guide_grid_links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #eee;
}

.guide_link_item {
  font-size: 22px;
  font-family: 'Pretendard', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px; 
  text-decoration: none;
  font-weight: 600;
  color: #111;
  border-bottom: 1px solid #eee;
  background: #fff;
  transition: background 0.2s, color 0.2s;
  border-radius: 0; /* 기본은 직각 */
}

.guide_link_item:hover {
  background-color: #f9f9f9;
}

.guide_link_item span {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  color: #bbb;
}

/* ✅ 클릭한 상태 */
.guide_link_item.active {
  background-color: #000;
  color: #fff;
  border-radius: 12px;
}

.guide_link_item.active span {
  color: #fff;
}


.guide_link_item:nth-child(odd) {
  border-right: 1px solid #eee;
}

.guide_link_item:hover {
  background-color: #333333;
  color: #fff; /* ✅ 글씨 흰색 */
}

.guide_link_item:hover span {
  color: #fff; /* ✅ 오른쪽 화살표도 흰색 */
}

.guide_link_item span {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  color: #bbb;
}

/* 모바일 */
@media screen and (max-width: 768px) {
  .guide_text h3 {
  font-family: 'Pretendard', sans-serif;
    font-size: 24px;
  }

  .guide_text p {
  font-family: 'Pretendard', sans-serif;
    font-size: 16px;
  }

  .guide_link_item {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    padding: 20px 16px;
  }
}

/* 회원가입 */
.signup_wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 가운데 정렬 전체 래퍼 */
.guide_title_wrap {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 480px) {
  .guide_title_wrap {
    margin-top: 1.5rem; /* 모바일에선 더 작게 */
      margin-bottom: 2rem;
  }
}

/* 파란 pill 형태 배지 */
.guide_badge {
  font-family: 'Pretendard', sans-serif;
  display: inline-block;
  background-color: #005f4c; /* 파란색 */
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 12px;
}

/* 아래 큰 타이틀 */
.guide_title {
  font-family: 'Pretendard', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  color: #000;
}

.step_desc {
  margin-top: 0;     /* ✅ 상단 여백 제거 */
  margin-bottom: 0px;  /* 하단도 필요 없으면 함께 제거 */
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  line-height: 1.6;
}

.guide_video_wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.guide_video_wrap iframe {
  width: 100%;
  max-width: 1280px;
  height: 720px;
  border: none;
}

@media screen and (max-width: 768px) {
  .guide_video_wrap iframe {
    height: 240px; /* 또는 280px, 적당한 값으로 조절 */
  }
}

/* 가입하기 step */
.step_item {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.step_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step_number {
  font-family: 'Pretendard', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.step_title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  font-family: 'Pretendard', sans-serif;
  gap: 8px;
  flex-wrap: nowrap;         /* ✅ 줄바꿈 방지 */
  white-space: nowrap;       /* ✅ 줄바꿈 방지 */
}

.step_badge {
  font-family: 'Pretendard', sans-serif;
  display: inline-block;
  background-color: #e53935;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1;
}


/* 가입 선택 버튼 */
.method_selector {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.method_selector button {
  padding: 10px 20px;
  margin: 0 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #333;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.method_selector button:hover {
  background: #333333;
  color: #f9f9f9; 
}

.method_selector button.active {
  background: #333;
  color: #f9f9f9;
  border-color: #333;
}

.mobile_br {
  display: none;
}

.pet_status_item.active {
  border: 2px solid #28b36f;
  border-radius: 12px;
  background-color: #f0fdf4;
  box-shadow: 0 0 0 2px #28b36f40;
}

@media screen and (max-width: 768px) {
  .mobile_br {
    display: inline;
  }
  .method_selector {
  gap: 5px;
  }
  .method_selector button {
  margin: 0 2px;
  }
}

@media screen and (max-width: 768px) {
  .step_title {
      font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
  }

  .step_desc {
      font-family: 'Pretendard', sans-serif;
    font-size: 18px;
  }

  .step_badge {
      font-family: 'Pretendard', sans-serif;
    font-size: 14px;
  }

  .clover_table {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
  }

  .clover_table th,
  .clover_table td {
    font-size: 16px;
  }

}

/* 다음 버튼 */
.step_nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.step_card {
  flex: 1;
  max-width: 280px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  text-decoration: none;
  color: #222;
  background-color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  font-family: 'Pretendard', sans-serif;
}

.step_card:hover {
  border-color: #005f4c;
  background-color: #f8faff;
}

.step_card .label {
  font-size: 12px;
  color: #888;
}

.step_card .title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}

.step_card .arrow {
  font-size: 16px;
  color: #888;
}


/* 그린색 pill 형태 배지 */
.guide_badge--green {
  background-color: #5bbd91; /* 예시로 진초록 */
}

.guide_badge--yellow {
  background-color: #b08968; /* 예시로 진초록 */
}


.guide_badge--pink {
  background-color: #ff6b6b; /* 예시로 진초록 */
}


/* 클로버 획득 표 */
.clover_table_wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.clover_table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
}

.clover_table thead th {
  background-color: #333333;
  color:#f9f9f9;
  font-weight: bold;
  padding: 10px;
  border: 1px solid #ccc;
}

.clover_table tbody td {
  padding: 10px;
  border: 1px solid #ccc;
}

.clover_table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.clover_table tbody tr:hover {
  background-color: #e6f4ea;
}

.only-mobile {
  display: none;
}

.only-pc {
  display: inline;
}

@media screen and (max-width: 768px) {
  .only-mobile {
    display: inline;
  }

  .only-pc {
    display: none;
  }
}

/* 에코펫 */
.clover_link_btn {
  font-family: 'Pretendard', sans-serif;
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  background-color: #333333;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.clover_link_btn:hover {
  background-color: #43a047;
}

/* 환경활동 주최 메일 */
.mail_button {
  font-family: 'Pretendard', sans-serif;
  display: inline-block;
  padding: 10px 20px;
  background-color: #333333;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
  transition: background-color 0.2s;
  font-size: 14px;
}

.approval_banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fef9e7;
  border: 2px solid #facc15;
  border-radius: 16px;
  padding: 20px;
  margin: 0 auto 24px auto;
  max-width: 500px; /* 원하는 최대 폭 */
  text-align: center;
}

.warning_icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.warning_text {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.pet_status_grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
}

.pet_status_item {
  width: 120px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 12px;
  transition: transform 0.2s;
  background: #fff;
}

.pet_status_item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 8px;
}

.pet_status_item p {
  font-size: 14px;
  margin: 0;
  word-break: keep-all;
}

@media (max-width: 480px) {
  .pet_status_grid {
    gap: 12px;
  }

  .pet_status_item {
    width: 100px;
    padding: 8px;
  }

  .pet_status_item img {
    width: 60px;
    height: 60px;
  }

  .pet_status_item p {
    font-size: 13px;
  }
}

.cancel_button {
  font-family: 'Pretendard', sans-serif;
  background-color: #d60000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: 0.2s;
}

.cancel_button:hover {
  background-color: #a80000;
}

/* 박수 */
.clap-emoji {
  font-size: 36px;
  animation: clap-scale 0.6s ease-in-out infinite;
}

@keyframes clap-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4) rotate(5deg); }
}