Files
dnssash/theme/rd.dnssash/skin/nav/lwd_laser_nohp/style.css
T
2026-06-11 18:47:38 +09:00

335 lines
6.1 KiB
CSS

@charset "utf-8";
/* LWD Basic 메뉴 스킨 스타일 (nobeltimes.com 참고) */
.lwd-header-wrap {
width: 100%;
background: #fff;
border-bottom: 1px solid #ddd;
}
.lwd-header-wrap .container {
max-width: 1600px;
margin: 0 auto;
position: relative;
padding: 0 15px;
}
/* 1. 상단 헤더 (로고, 검색, 유틸) */
.header-top {
border-bottom: 1px solid #eee;
background: #fff;
}
.header-top .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
}
.header-top .logo {
flex-shrink: 0;
margin: 0;
}
.header-top .logo img {
max-height: 40px;
width: auto;
vertical-align: middle;
}
.header-search {
flex-grow: 1;
max-width: 400px;
margin: 0 30px; /* 간격 조정 */
position: relative;
}
.header-search input[type="text"] {
width: 100%;
height: 40px;
border: 2px solid #0056b3; /* 포인트 컬러 적용 */
padding: 0 45px 0 15px;
font-size: 14px;
border-radius: 20px;
background: #fff;
box-sizing: border-box;
}
.header-search button {
position: absolute;
top: 0;
right: 5px;
width: 40px;
height: 40px;
background: none;
border: none;
color: #0056b3;
font-size: 18px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.header-top .top-util {
display: flex;
list-style: none;
margin: 0;
padding: 0;
flex-shrink: 0;
margin-left: auto;
}
.header-top .top-util li {
margin-left: 20px;
font-size: 13px;
color: #555;
white-space: nowrap;
}
.header-top .top-util li a {
color: #555;
text-decoration: none;
transition: color 0.2s;
}
.header-top .top-util li a:hover {
color: #0056b3;
}
/* 2. 메인 헤더 (로고, 배너) */
.header-main {
padding: 20px 0;
}
.header-main .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.header-main .logo {
flex: 0 0 auto;
margin: 0 20px;
text-align: center;
}
.header-main .logo img {
height: 120px;
width: auto;
}
/* 배너 영역 */
.header-main .banner-left,
.header-main .banner-right {
flex: 1;
display: flex;
align-items: center;
overflow: hidden;
}
.header-main .banner-left {
justify-content: flex-start;
margin-right: 80px;
}
.header-main .banner-right {
justify-content: flex-end;
margin-left: 80px;
}
.header-main .banner-left img,
.header-main .banner-right img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* 3. GNB 네비게이션 */
.gnb-wrap {
background: #0056b3;
border-top: 1px solid #eee;
}
.gnb {
display: flex;
list-style: none;
margin: 0;
padding: 0;
justify-content: center;
}
.gnb-item {
position: relative;
}
/* GNB 링크 스타일 (2줄 표시) */
.gnb-link {
display: flex;
flex-direction: column; /* 세로 정렬 */
justify-content: center;
align-items: center;
padding: 10px 25px;
height: 60px;
color: #fff;
text-decoration: none;
transition: background-color 0.2s;
text-align: center;
/* 💡 [수정] 강제로 라인 제거 */
border: none !important;
outline: none !important;
}
.gnb-txt-ko {
font-size: 16px;
font-weight: 700;
line-height: 1.2;
}
.gnb-txt-en {
font-size: 11px;
font-weight: 400;
opacity: 0.8;
margin-top: 2px;
text-transform: uppercase;
}
.gnb-item:hover .gnb-link {
background-color: #004494;
/* 💡 [수정] 강제로 라인 제거 */
text-decoration: none !important;
border: none !important;
outline: none !important;
}
/* 💡 [추가] 가상 요소(::before, ::after)로 인한 애니메이션 라인 제거 */
.gnb-item:hover .gnb-link::before,
.gnb-item:hover .gnb-link::after,
.gnb-link::before,
.gnb-link::after {
display: none !important;
content: none !important;
width: 0 !important;
height: 0 !important;
opacity: 0 !important;
transition: none !important;
}
/* 서브 메뉴 스타일 (너비 축소 및 세로 나열) */
.gnb-sub {
display: none;
position: absolute;
top: 60px;
left: 50%;
transform: translateX(-50%);
min-width: 300px;
background: #fff;
border: none;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
z-index: 999;
list-style: none;
padding: 15px 0;
text-align: left;
}
.gnb-item:hover .gnb-sub {
display: block;
}
.gnb-sub li {
display: block;
width: 100%;
box-sizing: border-box;
}
.gnb-sub li a {
display: block;
padding: 10px 20px;
color: #333;
text-decoration: none;
transition: background-color 0.2s, color 0.2s;
/* 💡 [수정] 강제로 라인 제거 */
border: none !important;
outline: none !important;
}
.sub-txt-ko {
display: block;
font-size: 16px;
font-weight: 600;
line-height: 1.3;
}
.sub-txt-en {
display: block;
font-size: 11px;
color: #888;
margin-top: 2px;
text-transform: uppercase;
}
.gnb-sub li a:hover {
background-color: #f0f2f5;
color: #0056b3;
/* 💡 [수정] 강제로 라인 제거 */
text-decoration: none !important;
border: none !important;
outline: none !important;
}
.gnb-sub li a:hover .sub-txt-en {
color: #0056b3;
}
/* 반응형 */
@media (max-width: 991px) {
.header-top .container {
flex-wrap: wrap;
justify-content: center;
}
.header-top .logo {
width: 100%;
text-align: center;
margin-bottom: 15px;
}
.header-search {
width: 100%;
max-width: 100%;
margin: 0 0 15px 0;
order: 2;
}
.header-top .top-util {
width: 100%;
justify-content: center;
margin-bottom: 15px;
order: 1;
margin-left: 0;
}
.gnb-wrap {
overflow-x: auto;
}
.gnb-link {
padding: 10px 15px;
height: auto;
}
/* 모바일에서는 서브메뉴 너비 자동 */
.gnb-sub {
min-width: 200px;
left: 0;
transform: none;
}
.gnb-sub li {
display: block;
width: 100%;
}
}