/* 초기 언어 적용 전까지 콘텐츠 숨김 */
html[data-i18n-ready="0"] .main-content { visibility: hidden; }
html[data-i18n-ready="1"] .main-content { visibility: visible; }

/* 기본 스타일 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    color: white;
}

#root {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 배경 이미지 */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('pexels-jonas-mohamadi-1416783.jpg') no-repeat center center/cover;
    filter: brightness(0.7);
    z-index: -1;
}

/* 메인 컨텐츠 정렬 */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 왼쪽 정렬 */
    height: 100%;
    padding-left: 10%;
}

/* 메시지 스타일 */
.message {
    font-size: 2.5rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.message.show {
    opacity: 1;
}

/* 로고 및 회사명 */
.logo-section {
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s;
}

.logo-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* 메뉴 버튼 */
.menu-section {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.menu-section.show {
    opacity: 1;
}

.mui-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    margin-right: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    position: relative; /* 리플 효과의 기준점이 됨 */
    overflow: hidden;   /* 버튼 밖으로 나가는 효과를 숨김 */
}

.mui-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 리플 효과를 위한 스타일 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

/* 리플 애니메이션 정의 */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0,0,0,0.5);*/
    background-color: transparent;
}

.modal-content {
    position: absolute;
    bottom: -100%;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

.close-btn {
    color: #eee;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

.modal-content h2 {
    color: white;
    margin-top: 0;
}

.modal-content .contact-info,
.modal-content .contact-info a {
    color: white;
}

#map {
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map p {
    padding: 0;
}

.icon {
    background-color: transparent; /* 강제로 투명 배경 유지 */
    display: inline-block;
    width: 32px;  /* 적절한 크기 */
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
    /*
    width: 16px;
    margin-right: 5px;
    */
}

/* 모든 화면 크기에서 적용되는 모달 애니메이션 */
@keyframes slideUp {
    from { bottom: -100%; }
    to { bottom: 20px; }
}

@keyframes slideDown {
    from { bottom: 20px; }
    to { bottom: -100%; }
}

/* 하단 저작권 */
.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer .footer-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.footer .footer-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    /* 로고 컨테이너 크기 축소 */
  #new-logo-container svg {
    max-width: 240px; /* 원하는 크기로 조절 */
  }
    .main-content {
        align-items: center;
        padding-left: 0;
        text-align: center;
    }
    .message {
        font-size: 1.3rem;   /* 폰트 크기 축소 */
        line-height: 1.4;    /* 줄 간격 조정 */
        word-break: keep-all; /* 단어 단위 줄바꿈 */
    }
    .logo-section {
        flex-direction: column;
    }
    #company-name {
        font-size: 2.2rem;
        margin-left: 0;
        margin-top: 15px;
    }
    .menu-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mui-btn {
        margin-right: 0;
        margin-bottom: 10px;
        width: 150px;
    }
    .modal-content {
        right: 50%;
        transform: translateX(50%);
        width: 85%;
    }
    /* 모바일용 애니메이션 재정의 */
    @keyframes slideUp {
        from { bottom: -100%; }
        to { bottom: 10px; }
    }
    @keyframes slideDown {
        from { bottom: 10px; }
        to { bottom: -100%; }
    }
    
    /* 모바일에서 언어 버튼 세로 배치 */
    #lang-switcher-top {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    #lang-switcher-top .lang-btn {
        margin-left: 0;
        margin-bottom: 5px;
        width: 80px; /* 모바일에서 고정 너비 */
    }
}

/* 우측 상단 언어 선택 버튼 스타일 - 개선된 버전 */
#lang-switcher-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px; /* 버튼 간 일정한 간격 */
}

#lang-switcher-top .lang-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px 16px; /* 상하 패딩을 조금 줄이고 좌우 패딩 증가 */
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-align: center;
    
    /* 고정 너비로 균등한 크기 */
    min-width: 80px;
    height:40px;
    width: 100px;
    
    /* 텍스트 넘침 방지 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 박스 크기 계산 방식 통일 */
    box-sizing: border-box;
}

#lang-switcher-top .lang-btn:hover,
#lang-switcher-top .lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px); /* 미세한 hover 효과 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height:40px;
}

#lang-switcher-top .lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* 포커스 상태 접근성 개선 */
#lang-switcher-top .lang-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ========== 새로운 로고 스타일 ========== */

/* 로고 컨테이너 기본 위치 조정 */
#new-logo-container {
    min-height: 150px; /* 로고가 로드되는 동안 공간을 유지 */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 550px; /* 웹 로고 최대 너비 */
    margin-bottom: 20px;
}

#new-logo-container svg {
    width: 100%;
    height: auto;
}

/* --- 웹용 로고 (logotest.html) 스타일 --- */
#new-logo-container .logo {
    width: 100%;
    position: relative;
    animation: glitch 2.5s infinite alternate;
    overflow: visible; /* 빛 효과가 잘리지 않도록 */
}

@keyframes glitch {
  0%,100% { transform: none; filter: none; }
  20% { transform: skew(-1deg); }
  40% { transform: skew(1deg); }
}

/* --- 모바일용 로고 (logotest2.html) 스타일 --- */
#new-logo-container .logo-mobile {
    width: 100%;
    max-width: 400px;
    position: relative;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}


.logo-mobile svg {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.7)) 
            drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- 모바일 화면에서 로고 중앙 정렬 --- */
@media (max-width: 768px) {
    #new-logo-container {
        justify-content: center;
    }

    /* 모바일에서 로고와 메뉴 사이의 간격 조정 */
    .logo-section.show {
        margin-bottom: 25px;
    }
}

#map { height: 320px; border-radius: 14px; }

/* Google Maps InfoWindow 가독성 보정: 흰 배경 위 흰 글자 문제 해결 */
#contact-us-modal .gm-style-iw-c,
#contact-us-modal .gm-style-iw-d,
#contact-us-modal .gm-style-iw-c *,
#contact-us-modal .gm-style-iw-d * {
  color: #111 !important;   /* 본문 색상 */
}

#contact-us-modal .gm-style-iw-c a,
#contact-us-modal .gm-style-iw-d a {
  color: #1a73e8 !important; /* 링크 색상 */
  text-decoration: underline;
}

.contact-link {
  text-decoration: none;     /* 밑줄 제거 원하면 */
}
#privacy-modal .modal-content [data-translate="modalPrivacyContent"] {
  font-size: 13.3px; /* 10pt */
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.modal-content:focus { outline: none; }