* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Pretendard', sans-serif;
  scroll-behavior: smooth;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  min-height: 6500px;
  background-image: url('img/back04.png');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 110%;
  color: white;
}

h2, p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


/* ----- header ----- */
header {
  width: 100%;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.header-in {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-in img {
  width: 180px;
}

/* ----- nav ----- */
.nav {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav li a {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.nav li a:hover {
  color: #fd97a8;
}

/* ----- social-fixed ----- */

.social-fixed {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.fixed-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); */
  /* transition: transform 0.2s ease; */
}

.fixed-img:hover {
  /* transform: scale(1.1); */
}


/* ----- nav-main ----- */

.nav-main {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.nav-main ul {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.nav-main li {
  width: 120px;
  height: 140px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: 0 0 12px 4px #bbbbbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.nav-main li:hover {
  box-shadow: 0 0 12px 4px #888;
  background-color: rgba(255, 255, 255, 1);
}

.nav-main li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FD97A8;
}

.nav-main li img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
}

.nav-main li span {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}



/* ----- page01 ----- */
.page01 {
  width: 100%;
  padding: 8rem 2rem 4rem; /* header 아래 공간 확보 */
  display: flex;
  justify-content: center;
  height: 1000px;
}

.page01-in {
  max-width: 1440px;
  width: 100%;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.page01-text {
  flex-basis: 70%;
}

.page01-text h2 {
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page01-text p {
  font-size: 1.5rem;
  font-weight: 600;
}

.page01-img {
  flex-basis: 30%;
}

.page01-img img {
  width: 100%;
  max-width: 300px;
  height: auto;
}


.page01-text h2 span {
  display: inline-block;
}


/* ----- page02 ----- */
.page02 {
  width: 100%;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.page02 h2 {
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page02 p {
  font-size: 1.5rem;
  font-weight: 700;
}

.page01-text{
  margin-left: 3rem;
}

.page02-img {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 왼쪽 2장, 오른쪽 2장 */
  gap: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.page02-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.page02-img img:hover {
  transform: scale(1.05);
}


.page02-img img:nth-child(5) {
  width: 50%;
  grid-column: 1 / 3;
  margin: 2rem auto 0;
}


/* ----- page03 ----- */
.page03 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8rem 2rem 4rem;
  color: #000;
}

.page03-text-and-img {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
}

.page03 p {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.5rem 0;
  text-align: center;
  color: #000;
}


.page03-text {
  flex: 0 0 30%;
  text-align: center;
}

.page03-text h2 {
  font-size: 2.8rem;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page03-text p {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.page03-img {
  flex: 0 0 70%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.page03-img img {
  width: 30%;
  min-width: 120px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease; 
}

.page03-img img:hover {
  transform: scale(1.05);
}

/* 마지막 문구 */
.page03-bottom-text {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  color: #000;
}




/* ----- page04 ----- */
.page04 {
  width: 100%;
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: #000;
}

.page04 h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.slider-wrapper {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}


/* 슬라이드 이미지들 */
.slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%; /* 슬라이드 개수만큼 늘려줌 */
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}

.slide img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* 아래 인디케이터 */
.dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.dots span.active {
  background: #FD97A8;
}


/* ----- page05 -----*/
.page05 {
  padding: 50px 5%;
  text-align: center;
  background-color: #FD97A8;
}

.page05 h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page05 p {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.photo-wrapper {
  display: flex;
  justify-content: center;
}

.photo-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4열 */
  grid-gap: 20px; /* 이미지 사이 간격 */
  max-width: 1200px;
}

.photo-container img {
  width: 100%;
  border-radius: 20px; /* 모서리 둥글게 */
  object-fit: cover;
  height: auto;
}

/* 기본 상태: 이미지 살짝 작고, 투명 */
.photo-container img {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 뷰포트에 들어오면 활성화 */
.photo-container img.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}




/* ----- page06 ----- */
.page06 {
  text-align: center;
  padding: 50px 5%;
  margin-top: 100px;
  color: #000;
}

.page06 h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page06 p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

/* 초기 상태: 투명 + 아래에 위치 */
.page06 img {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

/* 활성화되면 자연스럽게 올라오며 나타남 */
.page06 img.active {
  opacity: 1;
  transform: translateY(0);
}


/* 1번 + 2번 나란히 */
.page06-img-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page06-img-row img {
  width: 45%;
  max-width: 400px;
  object-fit: contain;
}

/* 3번, 4번 공통: 아래쪽에 중앙 정렬 */
.page06-img-single {
  margin-top: 20px;
}

.page06-img-single img {
  display: block;
  margin: 0 auto;
  object-fit: contain;
  width: 90%;
}

/* 3번은 작게 */
.page06-img-single.small img {
  max-width: 200px;
}

/* 4번은 크게 */
.page06-img-single.large img {
  max-width: 600px;
}



/* ----- page07 ----- */
.page07 {
  text-align: center;
  padding: 50px 5%;
  color: #000;
}

.page07 h2 {
  font-size: 3rem;
  margin: 2rem 0 1.5rem;
}

.page07-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 200px; /* 이미지 묶음 아래 여백 */
}

.img-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.img-row img {
  flex: 0 0 45%;
  max-width: 450px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease; /* 부드러운 전환 추가 */
}

.img-row img:hover {
  transform: scale(1.05); /* 살짝 확대 효과 */
}

.link-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;         /* 이미지 사이 간격 */
  margin-top: 40px;
  margin-bottom: 200px; /* 전체 아래 여백 */
  flex-wrap: wrap;   /* 모바일에서 줄바꿈 */
}

.link-buttons a img {
  width: 300px;           /* 원하는 너비 */
  max-width: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.link-buttons a img:hover {
  transform: scale(1.05); /* 살짝 확대 효과 */
}




/* ----- page08 ----- */

.page08 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* flex 아이템을 가로 중앙 정렬 */
  /* 혹은 space-around, space-between 등 원하는 정렬로 */
  /* 기존 속성 유지 */
  padding: 40px 5%;
  text-align: center;
  box-sizing: border-box;
  background-color: #FD97A8;
}

.page08 .box {
  /* background: #f9f9f9; */
  padding: 20px;
  border-radius: 12px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  box-sizing: border-box;
}

.box-procedure {
  flex: 0 0 calc(25% - 14px);
}

.box-expense {
  flex: 0 0 calc(25% - 14px);
}

.box-revenue {
  flex: 0 0 calc(35% - 14px);
}


.page08 h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.page08 p {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page08 img {
  width: auto;
  height: 570px;
  border-radius: 10px;
  object-fit: cover;
}

.procedure {
  margin-top: 35px;
}


/* ----- page09 ----- */

.page09 {
  padding: 60px 5%;
  text-align: center;
  color: #000;
  margin: 100px 0;
}

.page09 h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

.page09-img {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.page09-img .reg {
  width: 370px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* ----- page10 ----- */

.page10 {
  padding: 60px 5%;
  background-color: #FD97A8;
}

.page10-in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.page10-left {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 2rem;
}

.page10-left h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.page10-left .friend {
  width: 100%;
  border-radius: 12px;
  margin-top: auto; /* 이미지 아래 정렬 */
  max-width: 500px; /* 최대 너비 500px 추가 */
}

.page10-right {
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page10-right .list {
  width: 700px;
  border-radius: 12px;
}


/* ----- page11 ----- */

.page11 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.page11-in {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page11-in h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page11-in p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.map {
  width: 100%;
  height: 358px;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
}

.map-contact {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
}

.map-area {
  width: 100%;
  max-width: 700px;
  padding: 20px;
  box-sizing: border-box;
}




/* ----- footer ----- */

footer {
  background-color: #555;
  height: 200px;
  /* width: 2000px; */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-in {
  display: flex;
  width: 100%;
  max-width: 1800px;
  padding: 0 40px;
  box-sizing: border-box;
}

.footer-left,
.footer-right {
  width: 50%;
  display: flex;
  align-items: center;
}

.footer-left {
  justify-content: flex-start;
}

.footer-logo {
  height: 50px;
  object-fit: contain;
  margin-top: -50px;
}

.footer-right {
  justify-content: flex-start;
  flex-direction: column;
}

.footer-text p {
  margin: 4px 0;
  font-size: 1rem;
}

.footer-text p:first-child {
  font-weight: bold;
  font-size: 1.2rem;
}




@media (max-width: 460px) {
 /* 텍스트 줄간격 넓히기 */
  h2, p {
    line-height: 1.6;  /* 기본보다 조금 넓게 */
  }

  /* 단어가 잘리는 문제 방지 */
  p, h2 {
    word-break: keep-all;  /* 한글 단어 잘림 방지 */
    white-space: normal;   /* 줄 바꿈 허용 */
  }



  /* 너무 긴 단어(특히 영어 등) 자동 줄바꿈 허용 */
  p {
    overflow-wrap: break-word;
  }
  /* header */
  header {
    padding: 1rem;
  }
  .header-in {
    padding: 0 1rem;
  }
  .header-in img {
    width: 140px;
  }

  .nav {
    display: none;
  }

  /* social-fixed (작게 줄임) */
  .social-fixed {
    bottom: 1rem;
    right: 1rem;
  }
  .fixed-img {
    width: 40px;
    height: 40px;
  }

  /* nav-main - 가로 스크롤 혹은 세로 정렬 */
  .nav-main ul {
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
  }
  .nav-main li {
    width: 100px;
    height: 120px;
    border-radius: 20px;
  }

  
.nav-main ul li {
  width: 33.33%; /* 3개씩 배치 */
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 10px; /* 아이템 간 세로 간격 */
}
  .nav-main li img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.3rem;
  }
  .nav-main li span {
    font-size: 1rem;
  }

  /* page01 */
  .page01 {
    background-image: url("img/back01.png");
    padding: 6rem 1rem 2rem;
    height: auto;
  }
  .page01-in {
    flex-direction: column;
    gap: 1.5rem;
  }
  .page01-text {
    flex-basis: auto;
    margin-left: 0;
    text-align: center;
  }
  .page01-text h2 {
    font-size: 2rem;
  }
  .page01-text p {
    font-size: 1.2rem;
  }
  .page01-img {
    flex-basis: auto;
  }
  .page01-img img {
    max-width: 200px;
  }

  /* page02 */

  .page02 {
    background-size: cover; 
    background-position: center;
  }
  .page02 h2 {
    font-size: 2rem;
    color: #000;
  }
  .page02 p {
    font-size: 1.2rem;
    color: #000;
  }
  .page02-img {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  .page02-img img {
    width: 100%;
  }
  .page02-img img:nth-child(5) {
    width: 100%;
    grid-column: auto;
    margin: 1rem 0 0 0;
  }

  /* page03 */
  .page03 {
    padding: 4rem 1rem 2rem;
  }
  .page03-text-and-img {
    flex-direction: column;
    gap: 2rem;
  }
  .page03-text {
    flex: none;
    width: 100%;
  }
  .page03-text h2 {
    font-size: 2rem;
  }
  .page03-text p {
    font-size: 1rem;
  }
  .page03-img {
    flex: none;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
  .page03-img img {
    width: 40%;
    min-width: 100px;
  }
  .page03-bottom-text {
    font-size: 1rem;
  }

  /* page04 */
  .page04 h2 {
    font-size: 2rem;
  }
  .slider-wrapper {
    max-width: 100%;
  }
  .slider {
    width: 300%;
  }
  .slide img {
    max-width: 100%;
  }
  .dots {
    gap: 0.4rem;
  }
  .dots span {
    width: 10px;
    height: 10px;
  }

  /* page05 */
  .page05 {
    padding: 30px 3%;
  }
  .page05 h2 {
    font-size: 2rem;
  }
  .page05 p {
    font-size: 1.1rem;
  }
  .photo-container {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    max-width: 100%;
  }

  /* page06 */
  .page06 {
    padding: 30px 3%;
    margin-top: 50px;
  }
  .page06 h2 {
    font-size: 2rem;
  }
  .page06 p {
    font-size: 1.2rem;
  }
  .page06-img-row {
    flex-direction: column;
    gap: 15px;
  }
  .page06-img-row img {
    width: 100%;
    max-width: 100%;
  }
  .page06-img-single img {
    width: 100%;
    max-width: 100%;
  }
  .page06-img-single.small img {
    max-width: 150px;
    margin: 0 auto;
  }
  .page06-img-single.large img {
    max-width: 100%;
  }

  /* page07 */
  .page07 {
    padding: 30px 3%;
  }
  .page07 h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
  }
  .page07-img {
    gap: 15px;
    margin-bottom: 100px;

  }
  .img-row {
    flex-direction: column;
    gap: 15px;
  }
  .img-row img {
    flex: none;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
  }
  .link-buttons {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 100px;
  }
  .link-buttons a img {
    width: 200px;
    max-width: 100%;
  }

  /* page08 */
  .page08 {
    flex-direction: column;
    padding: 20px 3%;
  }
  .box-procedure,
  .box-expense,
  .box-revenue {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }
  .page08 img {
    height: auto;
    max-width: 100%;
  }
  .page08 h2 {
    font-size: 2rem;
  }
  .page08 p {
    font-size: 1rem;
  }

  /* page09 */
  .page09 {
    padding: 40px 3%;
    margin: 50px 0;
  }
  .page09 h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .page09-img .reg {
    width: 100%;
    max-width: 300px;
  }

  /* page10 */
  .page10-in {
    flex-direction: column;
  }
  .page10-left,
  .page10-right {
    max-width: 100%;
    margin-left: 0;
  }
  .page10-left h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .page10-left .friend {
    max-width: 100%;
    margin-top: 10px;
  }
  .page10-right .list {
    width: 100%;
  }


  /* page11 */
  .page11 {
    padding: 40px 3%;
  }

  .page11-in h2 {
    font-size: 2rem;
  }

  .page11-in p {
    font-size: 1rem;
  }

  /* 추가: map-contact 영역 세로 정렬 */
  .map-contact {
    flex-direction: column;
    padding: 20px 0;
  }

  .map-area,
  .contact-form {
    width: 100%;
    padding: 10px 0;
  }

  .contact-form {
    height: auto;
    padding: 20px 10px;
  }

  .contact-form h2 {
    margin-bottom: 40px; /* 모바일에 맞게 간격 축소 */
  }

  .contact-form .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .submit-btn {
    font-size: 18px;
    padding: 10px;
  }


    .checkbox-row {
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    margin-top: 1rem;
    color: #000;
  }

  .checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1.5;
  }

  .checkbox-row input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
  }






  /* footer */
  footer {
    height: auto;
    padding: 1rem 1rem 2rem;
  }
  .footer-in {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .footer-left,
  .footer-right {
    width: 100%;
    justify-content: center;
  }
  .footer-logo {
    margin-top: 0;
    height: 40px;
  }
  .footer-text p {
    font-size: 0.9rem;
  }
}
