
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Noto Sans KR", sans-serif;
}
 /* ====== 상단 네비게이션 ====== */
.hero-nav {
    background: white;
    position: relative;
    z-index: 10;
}
.hero-box{
    height: 10%;
    padding: 18px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 137px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}
.nav-left {
     display: flex;
     align-items: center;
     gap: 16px;
}

.logo {
     display: flex;
     align-items: center;
     font-weight: 700;
     font-size: 22px;
     letter-spacing: 1px;
}

.logo img {
 height: 38px;
 margin-right: 8px;
 display: block;
 transform: translateY(2px);
}

/* ====== 상단 메뉴 + 드롭다운 ====== */
.nav-menu { 
    margin-left: 40px; 
    font-size: 15px; 
}

.nav-menu .main-menu {
    list-style: none;
    display: flex;
    gap: 100px;
    align-items: center;
}

.nav-menu .menu-item { 
    position: relative; 
}

/* gap을 채우는 투명 영역 */
.nav-menu .menu-item::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
    display: none;
    z-index: 15;
}

.nav-menu .menu-item:hover::before {
    display: block;
}

.nav-menu .menu-link {
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color .2s ease;
}

.nav-menu .menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width .2s ease;
}

.nav-menu .menu-link:hover { 
    color: #000; 
}

.nav-menu .menu-item:hover > .menu-link::after { 
    width: 100%; 
}

.nav-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    margin-top: 12px;
    padding: 8px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 20;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu .sub-menu li a:hover { 
    background: #f5f5f5; 
    color: #000; 
}

.nav-menu .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-switch {
 display: inline-flex;
 border: 1px solid #ffffff55;
 border-radius: 999px;
 overflow: hidden;
}

.lang-switch button {
 background: transparent;
 border: none;
 color: #ffffffaa;
 padding: 6px 14px;
 font-size: 12px;
 cursor: pointer;
 transition: background .2s ease, color .2s ease;
}

.lang-switch button.active {
 background: #ffffff;
 color: #000;
}

.lang-switch button:hover:not(.active) {
 background: #ffffff22;
}

/* ====== 언어 드롭다운 ====== */
.lang-selector {
    position: relative;
    font-size: 13px;
}

.lang-toggle {
    display: inline-flex;
    gap: 6px;
    height: 100%;
    padding: 6px 12px 6px 10px;
    border: none;
    background: transparent;
    color: #000000;
    cursor: pointer;
    outline: none;
    align-items: center;
}


.lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-label {
    font-size: 13px;
}

.lang-arrow {
    font-size: 10px;
    transform: translateY(1px);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 130px;
    background: #151515;
    border-radius: 10px;
    border: 1px solid #ffffff33;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 6px 0;
    display: none;
    z-index: 20;
}

.lang-selector.open .lang-dropdown {
    display: block !important;
}

.lang-selector:not(.open) .lang-dropdown {
    display: none !important;
}

.lang-option {
    width: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #ffffffcc;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.lang-option:hover {
    background: #ffffff22;
    color: #fff;
}

.lang-option .lang-flag {
    width: 18px;
    height: 18px;
}

/* ====== 반응형 ====== */
/* 태블릿 가로 정도 (1024px 이하) */
@media (max-width: 1024px) {
    .hero-nav {
        margin: 0 40px;          /* 양 옆 여백 줄이기 */
        padding: 16px 24px;
    }
    .nav-menu {
        gap: 40px;               /* 메뉴 간격 줄이기 */
        margin-left: 24px;
        font-size: 12px;
    }
    .hero-content {
        padding: 0 120px;        /* 콘텐츠 좌우 여백 줄이기 */
    }
    .hero-title {
        font-size: 32px;
        margin-bottom: 32px;
    }
    .hero-button {
        font-size: 16px;
        padding: 12px 32px;
    }
}

/* 태블릿 세로 / 작은 노트북 (768px 이하) */
@media (max-width: 768px) {
    .hero-nav {
        margin: 0 20px;
        padding: 14px 0;
    }
    .nav-menu {
        display: none;           /* 모바일에서는 메뉴 숨김 (햄버거는 나중에 추가해도 됨) */
    }
    .hero-content {
        padding: 0 32px;
    }
    .hero-title {
        font-size: 26px;
        margin-bottom: 28px;
    }
    .hero-button {
        width: 100%;
        max-width: 260px;        /* 버튼 너무 길지 않게 */
        font-size: 15px;
    }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .hero-nav {
        margin: 0 16px;
        padding-top: 12px;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 22px;
        line-height: 1.4;
    }
    .hero-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    .lang-toggle {
        padding: 4px 8px;
    }
    .lang-label {
        font-size: 12px;
    }
}


/* ============= 푸터 ============= */
.site-footer {
    background: #4b4b4b;
    color: #d5d5d5;
    font-size: 12px;
    padding: 45px 0 60px;
    position: relative;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 200px;
    align-items: flex-start;
}

/* 왼쪽: 로고 + 회사 정보 */
.footer-left {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1.2;
}

.footer-logo {
    width: 130px;   /* 로고 크기 필요 시 조절 */
    height: auto;
    object-fit: contain;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color:#9C9C9C;
}

.footer-company-info p {
    margin-bottom: 3px;
    font-size: 18px;
    color: #9C9C9C;
}

/* 오른쪽: 메뉴 컬럼들 */
.footer-right {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #9C9C9C;
}

.footer-col ul {
    list-style: none;
}

.footer-col li + li {
    margin-top: 4px;
}

.footer-col a {
    color: #9C9C9C;
    text-decoration: none;
    font-size: 13px;
}

.footer-col a:hover {
    color: #ffffff;
}

/* 하단 카피라이트 */
.footer-bottom {

    margin: 24px auto 0;

    font-size: 15px;
    color: #9C9C9C;
}

/* 맨 위로 버튼 */
.footer-top-btn {
    position: absolute;
    right: 80px;
    bottom: 36px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #5f5f5f;
    background: #5f5f5f;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}

.footer-top-btn:hover {
    background: #777777;
    transform: translateY(-2px);
}

/* 푸터 반응형 */
@media (max-width: 960px) {
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
    .footer-right {
        gap: 40px;
    }
    .footer-top-btn {
        right: 24px;
    }
}

@media (max-width: 640px) {
    .footer-right {
        display: none;
    }
    .footer-top-btn {
        bottom: 14px;
    }
    .site-footer{
        display: flex;
    }
    .footer-left{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ✅ 관리자 로그인 FAB */
.admin-fab{
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #111;     /* 사이트 톤에 맞게 변경 가능 */
  color: #fff;
  text-decoration: none;

  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  z-index: 9999;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.admin-fab svg{
  width: 28px;
  height: 28px;
  fill: currentColor;
  opacity: .92;
}

.admin-fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.admin-fab:focus-visible{
  outline: 3px solid rgba(255,255,255,0.55);
  outline-offset: 4px;
}

/* 작은 뱃지(선택) */
.admin-fab-badge{
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17,17,17,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
  letter-spacing: .3px;
}

/* 모바일에서는 조금 작게 */
@media (max-width: 640px){
  .admin-fab{ width:56px; height:56px; right:16px; bottom:16px; }
  .admin-fab svg{ width:24px; height:24px; }
}
