/* --- 태블릿 반응형 (1050px 이하) --- */
@media (max-width: 1050px) {
  .hero-section {
    background-size: cover;
    height: auto;
  }

  .weekly-mission {
    background-size: cover;
    height: auto;
    background-position: top center;
  }

  .bottom-section {
    background-size: cover;
  }

  .bottom2-section {
    background-size: cover;
    height: auto;
  }

  /*상단 영역*/
  .hero-content {
    margin-top: 10px;
    margin-bottom: 20%;
    margin-left: 10%;
  }

  .hero-content .head-line h1,
  .weekly-mission h2,
  .participation-info-section h2,
  .point-info-text h2,
  .recent-post-section h2,
  .participation-section h2 {
    font-size: 5vw;
    line-height: 1.3;
  }

  /*이번 주 미션 */
  .weekly-mission .point-image {
    transform: scale(0.5);
    top: -70%;
    right: -30%;
  }

  .mission-text .highlight {
    font-size: 5vw;
  }

  /*참여 방법*/
  .steps-container {
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center; /* 필요 시 flex-start로 변경해보세요 */
    gap: 40px;
  }

  .steps-container::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 60%;
    height: 5px;
    background-color: #ffb6ac;
    z-index: 0;
  }

  .step-item .step-image {
    width: 150px;
    height: 150px;
  }

  .step-item p {
    font-size: 20px;
  }

  .quick-info-bubble {
    width: 250px;
    font-size: 16px;
    height: 45px;
  }

  /*포인트 info*/
  .point-info-content {
    padding-top: 20%;
  }

  .point-info-message {
    margin-top: 100px;
    flex-direction: row !important;
    justify-content: flex-start;
    gap: 50px;
    flex-wrap: wrap;
  }

  .point-info-message .card {
    width: 300px;
    height: 160px;
  }

  .point-info-message .card p {
    font-size: 24px;
  }

  .bottom-section {
    background-size: cover;
  }
}

@media (max-width: 930px) {
  .hero-section {
    background-size: cover;
    height: auto;
  }

  .weekly-mission {
    background-size: cover;
    height: auto;
    background-position: top center;
  }

  .bottom-section {
    background-size: cover;
    height: 2750px;
  }

  .bottom2-section {
    background-size: cover;
    height: auto;
  }

  /*상단 영역*/
  .hero-content {
    margin-left: 10%;
    margin-bottom: 10%;
    margin-top: 4%;
  }

  .hero-content .head-line p {
    font-size: 19px;
  }

  .hero-cta {
    margin-top: 50px;
    padding: 20px 44px;
  }

  .hero-cta a {
    font-size: 20px;
  }

  /*이번 주 미션 */
  .weekly-mission .point-image {
    transform: scale(0.5);
    top: -70%;
    right: -40%;
  }

  .bottom2-section {
    margin-top: 10px;
  }

  .card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .participation-card {
    width: 360px;
    height: 460px;
    padding: 24px;
    gap: 16px;
  }

  .participation-card img {
    width: 280px;
    height: 280px;
  }

  .participation-card p {
    font-size: 28px;
    padding-bottom: 16px;
  }
}

@media (max-width: 870px) {
  .hero-section {
    background-size: cover;
    height: auto;
  }

  .weekly-mission {
    background-size: cover;
    height: auto;
    background-position: top center;
  }

  .bottom-section {
    background-size: cover;
  }

  .bottom2-section {
    background-size: cover;
    height: auto;
  }

  /*반려동물 타입 선택*/
  .animal-type {
    margin-top: 100px;
    margin-bottom: 100px;
  }
  /* 이번 주 미션*/
  .weekly-mission h2 {
    font-size: 4.5vw;
    margin-bottom: 0px;
  }

  .mission-text .desc {
    font-size: 2.5vw;
  }

  .mission-text .highlight {
    font-size: 5vw;
  }

  .mission-text .sub {
    font-size: 3.5vw;
  }
}

@media (max-width: 800px) {
  .hero-section {
    background-size: cover;
    height: auto;
  }

  .weekly-mission {
    background-size: cover;
    height: auto;
    background-position: top center;
  }

  .bottom-section {
    background-size: cover;
    height: 2600px;
  }

  .bottom2-section {
    background-size: cover;
    height: auto;
  }

  /*동물 타입 고르기*/
  .animal-type p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .animal-type .pet-selection {
    gap: 20px;
  }

  .pet-selection .pet-button {
    width: 180px;
    height: 180px;
  }

  .pet-selection .pet-button img {
    margin-top: 10%;
  }

  .weekly-mission .point-image {
    transform: scale(0.4);
    top: -70%;
    right: -50%;
  }

  .weekly-mission h2 {
    font-size: 6vw;
  }

  .mission-text .desc {
    font-size: 3vw;
  }

  .mission-text .highlight {
    font-size: 5vw;
  }

  .mission-text .sub {
    font-size: 3.5vw;
  }

  .steps-container {
    padding: 0 10px;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .steps-container::before {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
  }

  .step-item .step-image {
    width: 120px;
    height: 120px;
  }

  .step-item p {
    font-size: 16px;
  }

  .quick-info-bubble {
    width: 200px;
    height: 40px;
    font-size: 14px;
  }

  /*포인트 안내*/
  .point-info-content {
    padding-top: 5%;
  }

  .point-info-message {
    gap: 15px;
    margin-top: 100px;
  }

  .point-info-message .card {
    width: 220px;
    height: 120px;
    border-radius: 50px;
    padding: 15px;
  }

  .point-info-message .card p {
    font-size: 18px;
  }

  .point-info-message .point-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border: #f9afa5 solid 6px;
    top: -22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  /*최근 게시물*/
  .recent-post-section h2 {
    padding-top: 60px;
  }

  /*참여하기*/

  .card-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .participation-card {
    width: 250px;
    height: 350px;
    padding: 15px;
    gap: 14px;
  }

  .participation-card img {
    width: 200px;
  }

  .participation-card p {
    font-size: 20px;
    padding-bottom: 12px;
  }
}

@media (max-width: 650px) {
  .hero-section {
    background-size: 100% auto;
    height: auto;
  }

  .weekly-mission {
    background-size: 100% auto;
    height: auto;
    background-position: top center;
  }

  .bottom-section {
    background-size: 100% auto;
    height: 1700px;
  }

  .bottom2-section {
    background-size: 100% auto;
    height: auto;
  }

  /*상단 영역*/
  .hero-content {
    margin-left: 3%;
    margin-bottom: 12%;
  }

  .hero-content .head-line h1 {
    font-size: 5vw;
  }

  .hero-content .head-line p {
    font-size: 2.5vw;
  }

  .hero-cta {
    margin-top: 20px;
    padding: 9px 21px;
  }

  .hero-cta a {
    font-size: 2vw;
  }

  /* 말풍선 스타일 */
  .hero-content .speech-bubble {
    width: 100px;
    height: 40px;
    border-radius: 25px;
    margin-bottom: 4px;
  }

  .hero-content .speech-bubble::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffbdb5;
  }

  .hero-content .speech-bubble span {
    font-size: 2vw;
  }

  /*동물 타입 고르기*/

  .animal-type p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .pet-selection .pet-button {
    width: 150px;
    height: 150px;
  }

  .pet-selection .pet-button img {
    margin-top: 8%;
  }

  /*이번 주 미션*/
  .weekly-mission h2 {
    font-size: 5.5vw;
  }

  .mission-text .desc {
    font-size: 2.5vw;
  }

  .mission-text .highlight {
    font-size: 4.5vw;
  }

  .mission-text .sub {
    font-size: 3vw;
  }

  .weekly-mission .point-image {
    transform: scale(0.3);
    top: -65%;
    right: -50%;
  }

  /*참여 방법*/
  .steps-container {
    padding: 0 5px;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .steps-container::before {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
  }

  .step-item .step-image {
    width: 100px;
    height: 100px;
  }

  .step-item p {
    font-size: 14px;
  }

  .quick-info-bubble {
    width: 180px;
    height: 35px;
    font-size: 12px;
  }

  .note {
    margin-top: 60px;
    font-size: 15px;
  }

  .note img {
    width: 15px;
    height: 15px;
  }

  /*포인트 지급 안내*/
  .point-info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
  }

  .point-info-content {
    padding-left: 10%;
    padding-top: 10%;
  }

  .point-info-text h2 {
    font-size: 5vw;
  }

  .point-info-text p {
    font-size: 3vw;
  }

  .point-info-message {
    margin-top: 60px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .point-info-message .card {
    width: 200px;
    height: 120px;
    padding: 8px;
    border-radius: 30px;
  }

  .point-info-message .card p {
    font-size: 2.5vw;
    line-height: 1.3;
  }

  .point-info-message .point-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border: 5px solid #f9afa5;
    top: -18px;
  }

  /*최근 게시물*/
  .recent-post-swiper .swiper-slide {
    width: 90vw;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .recent-post-swiper .mb-profile-img {
    top: calc(66.66% - 40px);
    width: 70px;
    height: 70px;
  }

  .recent-post-swiper .content-cate {
    width: 40px;
  }

  .recent-post-swiper .txt-box {
    padding: 10px 20px 8px;
    gap: 4px;
  }

  .recent-post-swiper .txt1,
  .recent-post-swiper .txt2 {
    font-size: 13px;
  }

  .recent-post-swiper .txt3 {
    font-size: 12px;
    gap: 2px;
  }

  .recent-post-swiper .txt3 img {
    width: 13px;
  }

  /*참가하기*/

  .card-container {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .participation-card {
    width: 220px;
    height: 300px;
    padding: 12px;
    gap: 12px;
  }

  .participation-card img {
    width: 160px;
    height: 160px;
  }

  .participation-card p {
    font-size: 18px;
    padding-bottom: 10px;
  }
}

@media (max-width: 500px) {
  /*상단 영역*/
  .hero-section {
    background-size: cover;
    height: auto;
    padding-bottom: 60px;
  }

  .hero-content {
    margin-left: 5%;
    margin-bottom: 10%;
    margin-top: 40px;
  }

  .hero-content .head-line h1 {
    font-size: 18px;
    margin: 6px 0 4px;
  }

  .hero-content .head-line p {
    font-size: 7.8px;
  }

  .hero-cta {
    margin-top: 10px;
    padding: 5px 15px;
  }

  .hero-cta a {
    font-size: 9px;
  }

  /* 말풍선 스타일 */
  .hero-content .speech-bubble {
    width: 70px;
    height: 25px;
    border-radius: 15px;
    margin-bottom: 4px;
  }

  .hero-content .speech-bubble::after {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #ffbdb5;
  }

  .hero-content .speech-bubble span {
    font-size: 9px;
  }

  /*동물 타입 선택*/

  /* 반려동물 타입 선택 */
  .animal-type {
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .animal-type p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .pet-selection .pet-button {
    width: 130px;
    height: 130px;
  }

  .pet-selection .pet-button img {
    margin-top: 6%;
  }

  /*이번 주 미션*/
  .weekly-mission {
    height: auto; /* auto로 설정 */
    padding: 5px 0 20px 0; /* 위쪽만 여백 */
    background-size: 100% auto;
    background-position: top center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .weekly-mission .point-image {
    transform: scale(0.2);
    top: -160%;
    right: -80%;
  }

  .weekly-mission h2 {
    font-size: 5vw;
    margin-top: 10px;
    margin-bottom: 20px; /* 간격 좁히기 */
  }

  .text-background {
    margin-top: -40px; /* 배경을 위로 끌어올리기 */
    height: 200px;
  }

  .mission-text .desc {
    font-size: 2.2vw;
  }

  .mission-text .highlight {
    font-size: 4vw;
  }

  .mission-text .sub {
    font-size: 2.8vw;
  }

  /*참여 방법*/
  .participation-info-section {
    padding-top: 20px;
    margin-top: 20px;
  }

  .participation-info-section h2 {
    margin-bottom: 100px;
  }

  .steps-container {
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .steps-container::before {
    top: 40%;
    transform: translate(-50%, -40%);
    width: 80%;
  }

  .step-item .step-image {
    width: 80px;
    height: 80px;
  }

  .step-item p {
    font-size: 12px;
  }

  .quick-info-bubble {
    width: 150px;
    height: 30px;
    font-size: 11px;
  }

  .note {
    margin-top: 40px;
    font-size: 10px;
  }

  .note img {
    width: 10px;
    height: 10px;
  }

  /*하단 배경*/
  .bottom-section {
    height: 1100px;
  }

  /*포인트 지급 안내*/
  .point-info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
  }

  .point-info-content {
    padding-left: 10%;
    padding-top: 10%;
  }

  .point-info-text h2 {
    font-size: 5vw;
  }

  .point-info-text p {
    font-size: 3vw;
  }

  .point-info-message {
    margin-top: 60px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .point-info-message .card {
    width: 140px;
    height: 90px;
    padding: 8px;
    border-radius: 30px;
  }

  .point-info-message .card p {
    font-size: 2.5vw;
    line-height: 1.3;
  }

  .point-info-message .point-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border: 5px solid #f9afa5;
    top: -18px;
  }

  /*하단 무늬 배경*/
  .bottom2-section {
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  /*최근 게시물*/
  .recent-post-section h2 {
    padding-top: 30px;
    margin-bottom: 20px;
  }

  /* 각 슬라이드 */
  .recent-post-swiper .swiper-slide {
    width: 85vw;
    max-width: 220px;
    aspect-ratio: 1 / 1;
  }

  .recent-post-swiper .mb-profile-img {
    top: calc(66.66% - 30px);
    width: 60px;
    height: 60px;
  }

  .recent-post-swiper .content-cate {
    width: 30px;
  }

  .recent-post-swiper .txt-box {
    gap: 3px;
  }

  .recent-post-swiper .txt1 {
    font-size: 12px;
  }

  .recent-post-swiper .txt2 {
    font-size: 13px;
    padding: 6px 0;
  }

  .recent-post-swiper .txt3 {
    font-size: 8px;
    gap: 2px;
  }

  .recent-post-swiper .txt3 img {
    width: 10px;
  }

  /* 참가하기 */
  .participation-section {
    margin-top: 50px;
  }

  .participation-section h2 {
    margin-bottom: 40px;
  }

  .card-container {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .participation-card {
    width: 169px;
    height: 200px;
    padding: 10px;
    gap: 10px;
  }

  .participation-card img {
    width: 140px;
    height: 140px;
  }

  .participation-card p {
    font-size: 16px;
    padding-bottom: 8px;
  }
}
