/* js scrollReveal 요소를 미리 숨기기 */
html.sr .reveal {
  visibility: hidden;
}
body{overflow-x: hidden;}
.inner {
  width: 90%;
  max-width: 1440px;
  margin: auto;
  overflow-x: hidden;
}

section {
  width: 100%;
  padding-top: 4%;
  padding-bottom: 100px;
}

header {
  position: relative;
}

/* #header style */
#header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* .inner 기준 중앙 정렬 */
  width: 90%;
  max-width: 1440px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

header .inner {
  padding-top: 0;
}

#header .logo {
  height: 50px;
}

#header .logo .m_logo {
  display: none;
}

#header .menu {
  height: 100%;
  padding: 10px 50px;
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 50px;
  align-items: center;
  color: #c2c2c2;
}

#header nav .close {
  display: none;
}

#header .search {
  width: fit-content;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 30px;
  border-radius: 30px;
}

#header input {
  border: none;
  outline: none;
  padding-left: 10px;
  background-color: transparent;
}

#header input::placeholder {
  color: #b5b5b5;
}

#header .search {
  color: #9b9b9b;
}

#header .hambuger span {
  color: #fafafa;
}

#header .menu :hover {
  color: #9c62ff;
}

.search input[type] {
  caret-color: #ffffff;
  color: rgb(255, 255, 255);
}

/* ★ header 반응형 스타일 */
#header .hambuger {
  display: none;
}

@media (max-width:1400px) {
  #header .search {
    background-color: transparent;
  }

  .search input[type] {
    display: none;
  }

  #header .logo .pc_logo {
    display: none;
  }

  #header .logo .m_logo {
    display: block;
  }
}

@media (max-width:1200px) {
  #header .hambuger {
    display: block;
    cursor: pointer;
  }

  #header .search {
    display: none;
  }

  #header .menu {
    background: transparent;
    padding: 0;
    gap: 0;
  }

  #header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 520px;
    height: 100vh;
    background: #000;
    z-index: 1000;
    padding: 80px 32px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    justify-content: center;

    /* 기본: 화면 밖 화면 오른쪽 고정 영역으로 숨겨두기*/
    transform: translateX(110%);
    transition: transform .35s ease;
  }

  /* 열렸을 때 : 화면 안으로 들어오게 */
  #header nav.is-open {
    transform: translateX(20%);
  }

  /* 헤더 메뉴 세로 정렬 */
  #header nav .menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    color: #fff;
  }

  #header nav .menu a {
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
  }

  #header .menu :hover {
    color: #9c62ff;
  }

  /* 닫기 버튼: nav 우상단 고정 */
  #header nav .close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 90px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
  }
}

/* ★ 색션별 공통 스타일 */
/* (1) 타이틀 스타일 */
.sub_title {
  font-size: 48px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 40px 0;
}

/* (2) 타이틀 아래 설명글 */
.title_desc {
  font-size: 20px;
  font-weight: 400;
  color: #1c1c1c;
  line-height: 1.5;
}

/* ★ 푸터 스타일 */
footer {
  color: #1c1c1c;
  margin-top: 50px;
  margin-bottom: 100px;
}

.family_site {
  display: flex;
  justify-content: center;
  gap: 200px;
  margin-bottom: 100px;
}

.family_site img {
  width: 150px;
  height: 80px;
  object-fit: contain;
}

footer .infomation {
  display: flex;
  justify-content: space-between;
}

footer .footer_logo {
  font-size: 48px;
  font-weight: 700;
  margin-top: 100px;
  margin-bottom: 30px;
}

footer .left p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.8;
}

footer .left .copyright {
  margin-top: 20px;
  opacity: 1;
}

footer .right .guide {
  display: flex;
  gap: 100px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 100px;
}

footer .right .newsletter {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
}

footer .right .newsletter p {
  font-size: 15px;
}

footer form {
  width: 310px;
  height: 40px;
  border: 1px solid rgba(28, 28, 28, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  padding: 2px;
}

footer input {
  border: none;
  outline: none;
  background-color: transparent;
}

footer input[type="email"] {
  margin-left: 20px;
}

footer input[type="submit"] {
  background-color: #766fdd;
  color: #fafafa;
  border-radius: 20px;
  padding: 0 20px;
}

/* 푸터 반응형 스타일 */
@media (max-width: 1280px) {
  footer {
    margin-top: 40px;
    margin-bottom: 80px;
  }

  .family_site {
    gap: 120px;
    margin-bottom: 70px;
  }

  .family_site img {
    width: 120px;
    height: auto;
  }

  footer .footer_logo {
    font-size: 36px;
    margin-bottom: 20px;
  }

  footer .left p {
    font-size: 13px;
    margin-bottom: 8px;
  }

  footer .left .copyright {
    margin-top: 15px;
  }

  footer .right .guide {
    gap: 40px;
    font-size: 14px;
    margin-bottom: 60px;
  }

  footer .right .newsletter {
    gap: 8px;
  }

  footer .right .newsletter p {
    font-size: 13px;
  }

  footer form {
    width: 260px;
    height: 36px;
    border-radius: 18px;
    padding: 1px 2px;
  }

  footer input[type="email"] {
    margin-left: 15px;
    font-size: 13px;
  }

  footer input[type="submit"] {
    font-size: 13px;
    padding: 0 16px;
  }
}

@media (max-width: 960px) {
  footer {
    margin-top: 30px;
    margin-bottom: 60px;
  }

  .family_site {

    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
  }

  .family_site img {
    width: 100px;
    height: auto;
  }

  footer .infomation {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  footer .footer_logo {
    font-size: 36px;
    margin-bottom: 15px;
  }

  footer .left p {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.6;
  }

  footer .left .copyright {
    margin-top: 15px;
  }

  footer .right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer .right .guide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
  }

  footer .right .guide p::after {
    content: "｜";
    margin-left: 10px;
    color: rgba(0, 0, 0, 0.4);
  }

  footer .right .guide p:last-child::after {
    content: "";
  }

  footer .right .newsletter {
    align-items: center;
    gap: 12px;
  }

  footer .right .newsletter p {
    font-size: 14px;
  }

  footer form {
    width: 90%;
    max-width: 340px;
    height: 38px;
    border: 1px solid rgba(28, 28, 28, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    padding: 2px;
  }

  footer input[type="email"] {
    width: 100%;
    margin-left: 15px;
    font-size: 13px;
  }

  footer input[type="submit"] {
    font-size: 13px;
    background-color: #766fdd;
    color: #fafafa;
    border-radius: 20px;
    padding: 0 16px;
  }
}