@import "var.css";
@import "font.css";

.header {
  display: flex;
  max-width: var(--limit);
  background-color: #fff;
  margin: 0 auto;
  flex-direction: column;

  .top_menu1 {
    align-items: center;
    font-size: 14px;
    display: flex;
    justify-content: end;
    height: 45px;
    gap: 20px;
    padding-right: 154px;
    margin-bottom: 20px;
  }

  .top_menu2_wrap {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;

    .search_input {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      & button {
        position: absolute;
        right: 10px;
        top: 0;
        width: 40px;
        height: 40px;
        text-align: center;
        background: none;
        border: none;
        & img {
          width: 18px;
          height: 18px;
        }
      }
      & input {
        background-color: #f1f2f3;
        border-radius: 20px;
        width: 330px;
        padding: 14px 0;
        padding-left: 20px;
        padding-right: 42px;
        &:focus {
          outline: none !important;
          box-shadow: unset;
          border: none !important;
        }
      }
    }

    .logo_wrap {
      padding-left: 46px;

      & img {
        /* width: 140px; 2025-11-28 */
		width: 250px;
      }
    }

    .top_menu2 {
      align-items: center;
      font-size: 14px;
      display: flex;
      justify-content: end;
      height: 45px;
      gap: 20px;
      padding-right: 154px;
    }
  }
}

.main_menu_wrap {
  position: sticky;
  top: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #eee;

  -webkit-overflow-scrolling: touch;
  .main_menu {
    display: flex;
    /* font-size: 16px; 2025-11-28 */
    font-size: 19px;
    justify-content: center;
    align-items: center;
    height: 51px;
    gap: 25px;
    .item {
      display: flex;
      position: relative;
      height: 100%;
      align-items: center;
      & a {
        display: block;
      }
      .sub_category {
        display: none;
        left: 50%;
        top: 100%;
        width: 120px;
		font-size: 16px;
        transform: translateX(-50%);
        position: absolute;
        border: 1px solid #ebebeb;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
        text-align: center;
        z-index: 999;
        & li {
          & a {
            padding: 8px 0;
            display: block;
          }
        }
      }
      &:hover {
        .sub_category {
          display: block;
        }
      }
    }
  }
}

.container {
  width: 100%;

  &.limit {
    max-width: var(--limit);
    margin: 0 auto;
  }
  &.mo {
    padding: 0 16px;
  }
}

@media (max-width: 964px) {
  .header {
    .top_menu1 {
      padding-right: 46px;
    }
    .top_menu2_wrap {
      .search_input {
        left: unset;
        top: 50%;
        transform: translateY(-50%);
        right: 46px;
      }
    }
    .top_menu2_parent {
      display: none;
    }
  }

  .main_menu_wrap {
    padding: 5px 0;
    white-space: nowrap;
    overflow-x: auto;
    .main_menu {
      /* font-size: 13px; 2025-11-28 */
      font-size: 16px;
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: start;
      scrollbar-width: none;
      padding: 0 20px;
      .item {
        flex: 0 0 auto;
        min-width: max-content;
        white-space: nowrap;
        box-sizing: border-box;
      }
    }
  }
}

.mobile_header {
  display: none;
}

main {
  /*margin-left: 16px;*/
  /*margin-right: 16px;*/
}

@media (max-width: 570px) {
  .header {
    display: none;
  }
  .mobile_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    position: relative;
    .menu {
      padding-left: 20px;
      font-size: 30px;
    }
    .logo {
      transform: translateY(-1px);
      & img {
        width: 110px;
      }
    }
    .search {
      position: absolute;
      right: 60px;
      font-size: 30px;
      cursor: pointer;
    }
    .cart {
      font-size: 30px;
      padding-right: 20px;
    }
  }

  /* 모바일에서 search_input 숨김 및 표시 스타일 */
  .header .search_input {
    display: none;
  }
  .mobile_search_input {
    top: 70px !important;
    z-index: 1001 !important;
    box-shadow: none !important;
  }
  .mobile_search_input,
  .search_input {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    &.active {
      display: block;
    }

    & form {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
    }

    & input {
      flex: 1;
      width: 100%;
      background-color: #f1f2f3;
      border-radius: 20px;
      padding: 12px 20px;
      padding-right: 50px;
      font-size: 16px;
      border: none;

      &:focus {
        outline: none;
        box-shadow: unset;
        border: none;
      }
    }

    & button {
      position: absolute;
      right: 30px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      text-align: center;
      background: none;
      border: none;
      cursor: pointer;

      & img {
        width: 18px;
        height: 18px;
      }
    }
  }
}

@media (max-width: 855px) {
  .category {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;

    .menus {
      display: flex;
      flex-wrap: nowrap;
      gap: 20px;
      list-style: none;
      margin: 0;
      padding: 0;

      .item {
        flex: 0 0 auto;
      }
    }
  }
}

.footer {
  border-top: 1px solid #eee;
  color: #626262;
  margin-bottom: 130px;
  .top_line {
    margin-bottom: 40px;
    margin-top: 40px;
    & a {
      margin-right: 5px;
      margin-left: 5px;
    }
  }
  .footer_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer > div {
  max-width: var(--limit);
  display: flex;
  margin: 0 auto;
}
.footer .area1 {
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  border-right: 1px solid #bebebe;
  padding-right: 50px;
}
.footer .area2 {
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  margin-left: 10px;
  border-right: 1px solid #bebebe;
}
.footer .area3 {
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  margin-left: 10px;
  .notice_list {
    .content {
      margin-bottom: 6px;
      display: flex;
      justify-content: space-between;
    }
  }
}

@media (max-width: 570px) {
  .footer {
    padding: 0 16px;
    margin-bottom: 20px;
    .footer_content {
      display: grid;
      grid-template-columns: 1fr;
      .area1 {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
      }
      .area2 {
        padding-top: 20px;
        border-top: 1px solid #bebebe;
        border-right: 0;
        margin-left: 0;
        padding-bottom: 20px;
      }
      .area3 {
        padding-top: 20px;
        border-top: 1px solid #bebebe;
        margin-left: 0;
      }
    }
  }
}


.cnj-system-text {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    text-align: center;
}

.cnj-system-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #111;
    word-break: keep-all;
}

.cnj-system-desc {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    text-align: center;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .cnj-system-text {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cnj-system-title {
        margin-top: 30px;
        margin-bottom: 16px;
        font-size: 18px;
        line-height: 1.5;
    }

    .cnj-system-desc {
        font-size: 15px;
        line-height: 1.8;
    }
}