/*Wordpress*/
#wpadminbar {
  position: fixed !important;
}

body.admin-bar header,
body.admin-bar .sidebar {
  top: 32px;
}

@media screen and (max-width: 992px) {
  body.admin-bar header,
  body.admin-bar .sidebar {
    top: 46px;
  }
}

/* 메인 페이지(header 배경 투명 + 텍스트 흰색) */
body.home header,
body.home footer {
  background-color: transparent;
}

body.home header a,
body.home footer a,
body.home footer p {
  color: var(--primary-white);
}

body.home .svg_white {
  display: block;
}

body.home .svg_black {
  display: none;
}

body.home .footer_content .footer_left--block div p .line::before,
body.home .footer_content .footer_right--block .footer_util--list li a .line::before {
  background: #fff;
}

/* 메인페이지에서 사이드바 열렸을때 */
body.home .header.active .svg_black {
  display: block;
}

body.home .header:not(.active) .svg_black {
  display: none;
}

body.home .header.active .svg_white {
  display: none;
}

body.home .header.active a {
  color: var(--primary-black);
}

/* 그 외 페이지(header 배경 흰색 + 텍스트 검은색) */
body:not(.home) header,
body:not(.home) footer {
  background-color: #faf9f5;
}

body:not(.home) .footer_content {
  border-top: 1px solid #000;
}

body:not(.home) .header_content {
  border-bottom: 1px solid #000;
}

body:not(.home) header a,
body:not(.home) footer a,
body:not(.home) footer p {
  color: var(--primary-black);
}

body:not(.home) .svg_white {
  display: none;
}

body:not(.home) .svg_black {
  display: block;
}

/*  */
body {
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.header {
  position: relative;
}

.header.active {
  background: #faf9f5 !important;
}

.header_content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 52px 0 0 0;
  border-bottom: 0px;
}

.header_content .header_logo {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header_content .header_logo .logo_link {
  display: block;
  width: 150px;
}

.header_content .header_nav {
  display: flex;
  align-items: center;
  margin-left: 5vw;
}

.header_content .header_nav--list {
  display: flex;
  gap: 50px;
}

.header_content .header_nav--list > .menu-item {
  position: relative;
  padding: 20px 0;
}

.header_content .header_nav--list .menu-item a {
  display: block;
  font-size: 15px;
  text-transform: uppercase;
  font-family: var(--hoho);
}

.header_content .header_nav--list .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  padding: 30px 0 20px 20px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none;
}
.header_content .header_nav--list .menu-item .sub-menu a {
  color: #777;
  font-size: 13px;
  padding: 0 0 8px 0;
  transition: all 0.4s ease;
}

.header_content .header_nav--list .menu-item .sub-menu a:hover {
  color: #222;
}

/* .header_content .header_nav--list>.menu-item:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(30px);
} */

.header_content .header_util {
  display: flex;
  margin-right: 5vw;
}

.header_content .header_util--list {
  display: flex;
  gap: 40px;
}

.header_content .header_util--list li a {
  display: flex;
  gap: 10px;
}

.header_content .header_util--list li a p {
  font-size: 14px;
  font-weight: var(--font-r);
}

.lang-dropdown {
  position: relative;
}

.lang-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--page-bg);
  border: 1px solid #000;
  display: none;
  padding: 10px 0;
  margin: 5px 0 0 0;
  width: 100px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 3;
  font-family: var(--pre);
}

.lang-options li a {
  display: block;
  padding: 0px 20px;
  color: #000 !important;
  /* font-family: var(--hoho); */
}
.lang-options .current-lang a {
  font-weight: 600;
}
.lang-options li a:hover {
  background-color: #f2f2f2;
}

.lang-dropdown.open .lang-options {
  display: block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* submenu */
/* background block: hidden by default */
.sm-bg--block {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
  border-top: 1px solid #ddd;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms ease,
    visibility 260ms;
  z-index: 1;
}

/* Preferred: use :has() to target when the nav list is hovered */
.header_nav:hover .sm-bg--block,
.header_nav:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Fallback for browsers without :has() (shows when hovering anywhere on header) */
.header_nav:hover .sm-bg--block,
.header_nav:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 사이드바 */
.sb_btn.hidden {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0px;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: #1f1f1f;
  color: white;
  transition: all 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* iOS 스크롤 부드럽게 */
  z-index: 2;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.sidebar.open {
  right: 0;
}

.sidebar > .sidebar-menu {
  padding: 40px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar > .sidebar-menu > li > a {
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  /* 50% 투명 */
}

.sidebar > .sidebar-menu > li > .sub-menu {
  margin: 20px 0 0 0;
}

.sidebar > .sidebar-menu > li > .sub-menu .menu-item > a {
  font-size: 14px;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.sidebar > .sidebar-menu > li > .sub-menu .menu-item > a:hover {
  opacity: 1;
}

.sidebar .sidebar-menu li a {
  display: block;
  padding-bottom: 5px;
  font-family: var(--hoho);
}

.sidebar_bottom--block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 100px 0;
}

.close--btn {
  width: 20px;
  height: 20px;
  padding: 1px;
  display: none;
}

.close--btn.visible {
  display: block;
}

/* sidebar sns  */
.sidebar .sns--list {
  display: flex;
  flex-direction: row;
  padding-top: 100px;
  padding-left: 40px;
  gap: 8px;
}

.sidebar_bottom_menu {
  display: flex;
  flex-direction: column;
  padding-bottom: 120px;
  padding-left: 40px;
  gap: 10px;
}

/* pagination */
.pagination--area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px 0;
}

.pagination--area .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 16px;
}

.pagination--area .page-numbers > li .page-numbers {
  color: var(--primary-black);
  opacity: 0.4;
  transition: all 0.4s ease;
  cursor: pointer;
}

.pagination--area .page-numbers > li .page-numbers:hover {
  opacity: 1;
}

.pagination--area .page-numbers > li .page-numbers.active {
  opacity: 1;
}

.pagination--area .page-numbers > li:first-child,
.pagination--area .page-numbers > li:last-child {
  transform: translateY(-1px);
}

/* search */
.search--area {
  /* display: none; */
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
  /* 90% 불투명 흰색 */
  z-index: 4;
}

.search--area .search--block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.search--area .search--block .search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
  width: 30%;
}

.search--area .search--block .search-form .search-field {
  background: transparent;
  width: 100%;
  height: 40px;
}

.search--area.active {
  /* display: block; */
  visibility: visible;
  opacity: 1;
}

.search-field::placeholder {
  color: #000;
  /* 원하는 색상 */
  opacity: 1;
  /* 투명도 (기본적으로 크롬에서 0.5 적용됨) */
}

.search-field:focus,
.search-field:active {
  border: none;
  outline: none;
}

.search--area.v1 {
  display: block;
  position: relative;
  padding: 50px 0;
  width: 100%;
  height: 100px;
  background: transparent;
  z-index: 1;
}

.search-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-list li {
  display: flex;
  justify-content: center;
  width: 100%;
  /* width: 1250px; */
}

.search-list .search--link {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 80%;
  padding: 15px 0;
  border-bottom: 1px solid #000;
}
@media screen and (max-width: 992px) {
  .search--area.v1 {
    padding: 50px 0 20px 0;
  }
  .search-list .search--link {
    width: 100%;
  }
  .search--area .search--block .search-form {
    width: 70%;
  }
}
.search-thumb {
  width: 120px;
  height: 70px;
  overflow: hidden;
}

.search-thumb img {
  width: 100%;
  height: 100%;
}

.search-left {
  width: 10%;
}

.page-parent {
  font-family: var(--hoho);
  font-size: 16px;
  text-transform: uppercase;
}

.search-content {
}

.search-content .search-title {
  font-size: 16px;
  font-weight: var(--font-sb);
}

.search-content .search-excerpt {
  display: -webkit-box;

  font-size: 15px;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 두 줄까지만 표시 */
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  gap: 10px;
}

.search--area .search-close--btn {
  position: absolute;
  top: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}
.noSearch--block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 30vh;
}
.pagination.search__page {
  padding-top: 60px;
}

/* footer css */
.footer {
}

.footer_content {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.footer_content .footer_left--block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer_content .footer_left--block .grs_img {
  display: none;
}
.footer_content .footer_left--block div .more_tx {
  position: relative;
  margin-left: 10px;
  font-size: 13px;
}

.footer_content .footer_left--block div p {
  position: relative;
  font-weight: var(--font-r);
  font-size: 15px;
}

.footer_content .footer_left--block div p .line {
  position: relative;
}

.footer_content .footer_left--block div p .line::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  transition: all 0.4s ease;
  background: #000;
}

.footer_content .footer_left--block div p .line:hover::before {
  /* width: 100%; */
  animation: lineAni 0.5s ease;
}

@keyframes lineAni {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.footer_content .footer_left--block div .img--block {
  width: 100px;
}

.footer_content .footer_right--block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer_content .footer_right--block .footer_util--list {
  display: flex;
  gap: 40px;
  z-index: 3;
}

.footer_content .footer_right--block .footer_util--list li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer_content .footer_right--block .footer_util--list li a .subs_ic {
  /* min-width: 20px; */
}

.footer_content .footer_right--block .footer_util--list li a .line {
  position: relative;
  font-size: 14px;
}

.footer_content .footer_right--block .footer_util--list li a .line::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 1px;
  transition: all 0.4s ease;
  background: #000;
}

.footer_content .footer_right--block .footer_util--list li a:hover .line::before {
  width: 100%;
}

.footer_right--block .footer_sns--block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer_right--block .footer_sns--block p {
  font-size: 14px;
}

.footer_right--block .footer_sns--block .sns--list {
  display: flex;
  gap: 10px;
}

.footer_right--block .footer_sns--block .sns--list li {
  transition: all 0.4s ease;
}

.footer_right--block .footer_sns--block .sns--list li:hover {
  transform: translateY(-3px);
}

.header_lang--m,
.header_util--wrapper--m {
  display: none;
}

.lang_ic,
.shop_ic,
.search_ic,
.sb_btn {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* 404 page */
.lo-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 20px;
}
.lo-404 p {
  font-family: var(--hoho);
}

@media screen and (max-width: 1375px) {
  body:not(.home) .footer_content .footer_right--block .footer_util--list {
    border-top: 1px solid #000;
  }

  body:not(.home) .footer_content {
    padding: 27px 0 20px 0;
    border-top: 1px solid #000;
  }

  .header_content .header_logo {
    top: 50%;
  }

  .header_content .header_logo .logo_link {
    width: 100px;
  }

  .header_content {
    padding: 22px 0 20px 0;
  }

  .header_content .header_nav--list {
    display: none;
  }

  .header_content .header_util--list {
    display: none;
  }

  .header_lang--m,
  .header_util--wrapper--m {
    display: block;
  }

  .header_lang--m {
    font-size: 14px;
    color: var(--primary-white);
  }

  .header_lang--m a,
  .header_util--wrapper--m {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* pagination */
  .pagination--area {
    padding: 40px 0 60px 0;
  }

  /* footer */
  .footer_content {
    display: flex;
    flex-direction: column-reverse;
  }

  .footer_content .footer_left--block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 50px;
  }
  .only-pc {
    display: none;
  }

  .footer_right--block .footer_sns--block p {
    display: none;
  }

  .footer_content .footer_right--block .footer_util--list {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    gap: 0;
  }

  .footer_content .footer_right--block .footer_util--list li {
    position: relative;
    flex: 1;
    background: var(--primary-white);
  }

  .footer_content .footer_right--block .footer_util--list li a {
    padding: 15px 0;
    justify-content: center;
  }

  .footer_content .footer_right--block .footer_util--list li a .subs_ic .svg_white {
    display: none;
  }

  .footer_content .footer_right--block .footer_util--list li a .subs_ic .svg_black {
    display: block;
  }

  .footer_content .footer_right--block .footer_util--list li:first-child::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: var(--primary-black);
  }

  .footer_content .footer_right--block .footer_util--list li a p {
    font-weight: var(--font-m);
    color: var(--primary-black);
  }

  .footer_content .footer_left--block div p {
    font-size: 11px;
  }

  .footer_right--block .footer_sns--block {
    position: relative;
  }

  .footer_right--block .footer_sns--block .sns--list {
    position: absolute;
    top: -16px;
    right: 0;
  }
}
@media screen and (max-width: 500px) {
  .footer_content .footer_right--block .footer_util--list li:first-child a {
    gap: 0;
  }
  .footer_content .footer_right--block .footer_util--list li a .subs_ic .svg_black {
    width: 15px;
    height: 15px;
  }
  .footer_content .footer_right--block .footer_util--list li a .line {
    font-size: 10px;
  }
  .footer_content .footer_right--block .footer_util--list li a {
    gap: 5px;
  }
  .footer_content .footer_right--block .footer_util--list li:first-child a {
    gap: 5px;
  }
}
