@media (max-width: 768px) { /* 모바일 */
/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", "맑은 고딕", "malgun", "sans-serif";
    background-color: #f7f8f2;
    color:#fff;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.logo img {
    height: 100%; /* 로고 이미지 높이 조정 */
    width: 120px;
    width: 120px; /* 모바일 기본 로고 크기 */
}

/* 네비게이션 바 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12; /* 계란 노른자 색상 */
    text-decoration: none;
}

.nav-links .btn {
    text-decoration: none;
    color: #333;
    margin-left: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links .btn:hover {
    background-color: #f0f0f0;
}

.nav-links .btn-primary {
    background-color: #f39c12;
    color: white;
}

.nav-links .btn-primary:hover {
    background-color: #e67e22;
}

/* 이미지 슬라이더 */



ul.top_section {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul.top_section li:after {
    content: "";
    display: block;
    position: absolute;
    background: #a4a2ac;
    top: 3px;
    right: 0;
    width: 1px;
    height: 11px;
}
ul.top_section li {
    display: inline-block;
    padding: 0 10px;
    line-height: 1.0em;
    position: relative;
}

ul.top_section li a {
  text-decoration: none; /* 링크의 밑줄 제거 */  
  color: inherit; /* 링크의 색상 제거 */
}

/* 슬라이더 도트 네비게이션 */

.nav2 {
    text-align: center;
    margin-top: 53px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav2 li {
    width: 20%;
    padding: 0;
    min-height: 100px;
    position: relative;
    text-align: center;
}

.nav2 li:hover ul {
    display: block;
}

.nav2 li ul li {
    display: block;
    min-height: 26px;
    line-height: 26px;
    margin: 5px 0;
    padding: 0;
    width: 100%;
}

.nav2 li ul {
    display: none;
    width: 160px;
    padding: 10px 0;
    text-align: left;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    z-index: 11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav2 li a {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    display: block;
}

.nav2 li ul li a {
    display: block;
    line-height: 26px;
    text-align: left;
    padding-left: 20px;
    font-size: 14px;
}

.nav2 li a img {
    display: block;
    margin: 0 auto 10px;
}

section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    background-color: #353535;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top:30px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: #000000;
    padding: 10px 0;
    border-top: 1px solid #000000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 500;
    padding-bottom: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    color: #fff; /* 기본 아이콘/텍스트 색상 */
    font-size: 12px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
    color: #5912f3; /* 활성화 시 색상 */
}
.gogo a {
    text-decoration: none; /* 링크의 밑줄 제거 */  
    color: inherit; /* 링크의 색상 제거 */
}
}
/* PC (데스크탑) 화면용 스타일 */

@media (min-width: 769px) { /* PC */
    /* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", "맑은 고딕", "malgun", "sans-serif";
    background-color: #f7f8f2;
    color:#ffffff;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.logo img {
    height: 100%; /* 로고 이미지 높이 조정 */
    width: 200px;
}

/* 네비게이션 바 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000001;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgb(0, 0, 0);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links .btn {
    text-decoration: none;
    color: #333;
    margin-left: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links .btn:hover {
    background-color: #f0f0f0;
}

.nav-links .btn-primary {
    background-color: #f39c12;
    color: white;
}

.nav-links .btn-primary:hover {
    background-color: #e67e22;
}

/* 이미지 슬라이더 */
ul.top_section {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul.top_section li:after {
    content: "";
    display: block;
    position: absolute;
    background: #a4a2ac;
    top: 3px;
    right: 0;
    width: 1px;
    height: 11px;
}
ul.top_section li {
    display: inline-block;
    padding: 0 10px;
    line-height: 1.0em;
    position: relative;
}

ul.top_section li a {
  text-decoration: none; /* 링크의 밑줄 제거 */  
  color: inherit; /* 링크의 색상 제거 */
}

/* 슬라이더 도트 네비게이션 */

.nav2 {
    text-align: center;
    margin-top: 53px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav2 li {
    width: 20%;
    padding: 0;
    min-height: 100px;
    position: relative;
    text-align: center;
}

.nav2 li:hover ul {
    display: block;
}

.nav2 li ul li {
    display: block;
    min-height: 26px;
    line-height: 26px;
    margin: 5px 0;
    padding: 0;
    width: 100%;
}

.nav2 li ul {
    display: none;
    width: 160px;
    padding: 10px 0;
    text-align: left;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    z-index: 11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav2 li a {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    display: block;
}

.nav2 li ul li a {
    display: block;
    line-height: 26px;
    text-align: left;
    padding-left: 20px;
    font-size: 14px;
}

.nav2 li a img {
    display: block;
    margin: 0 auto 10px;
}

section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
section p {
    color: #cccccc;
    line-height: 1.6;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    background-color: #353535;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top:30px;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: #000000;
    padding: 10px 0;
    border-top: 1px solid #000000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 500;
    padding-bottom: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #5912f3;
}
.gogo a {
    text-decoration: none; /* 링크의 밑줄 제거 */  
    color: inherit; /* 링크의 색상 제거 */
}
}

.modal-overlay {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 배경 어둡게 */
    backdrop-filter: blur(5px); /* 배경 흐리게 처리 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease-out;
    text-align: left;
}

.modal-content h2 {
    margin-top: 0;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}
.close-btn:hover { color: #ffffff; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}