<style>
/* ===========================================================
   전기안전관리협회
   style.css
=========================================================== */

/* ------------------------------
   RESET
------------------------------ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Noto Sans KR',sans-serif;

    background:#ffffff;

    color:#222;

    line-height:1.7;

    overflow-x:hidden;

}

img{

    display:block;

    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}


/* ------------------------------
   CONTAINER
------------------------------ */

.container{

    width:92%;

    max-width:1300px;

    margin:auto;

}


/* ------------------------------
   SECTION
------------------------------ */

section{

    padding:120px 0;

}

.sectionTitle{

    color:#1d63c8;

    font-size:14px;

    font-weight:700;

    letter-spacing:4px;

    margin-bottom:20px;

    text-transform:uppercase;

}

section h2{

    font-size:48px;

    font-weight:900;

    line-height:1.25;

    margin-bottom:35px;

}

section p{

    color:#666;

    font-size:18px;

    max-width:820px;

}



/* ===========================================================
   HERO
=========================================================== */

#hero{
    position:relative;
    width:100%;
    height:100vh;
    min-height: 700px; /* [추가] 브라우저 세로가 줄어들어도 배경 최소 높이 유지 */
    overflow:hidden;
}

/* 배경 */
.heroBackground{
    position:absolute;
    inset:0;
}

.heroImage{
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position: top center; /* [수정] 배경 이미지의 상단을 고정하여 상단 여백을 항상 유지 */
}

.heroStart{
    position:absolute;
    left:50%;
    bottom:160px;
/*    transform:translateX(-50%); */
    z-index:30;
}

/* 어둡게 */

.heroOverlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        rgba(0,0,0,.08),
        rgba(0,0,0,.1)
    );
}

/* ===========================================================
   NAVIGATION
=========================================================== */

nav{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    z-index:20;
    display:flex;
    align-items:center;
    padding:20px 50px; /* [수정] 5px -> 20px로 변경하여 상하 안정적인 안전 여백 확보 */
}

.logo{
    color:white;
    font-size:24px;
    font-weight:800;
    letter-spacing:1px;
    white-space:nowrap;
    display: flex;        /* [추가] 로고 이미지 정렬 */
    align-items: center;  /* [추가] 로고 이미지 정렬 */
}

/* [신규 추가] 로고 이미지 크기 규격화 */
.logo img{
    height: 45px;         /* 로고 높이를 고정하여 침범 방지 (필요 시 40~50px 조절) */
    width: auto;          /* 비율 유지 */
    display: block;
}

nav ul{
    margin-left:auto;
    display:flex;
    gap: 45px;
    padding-right: 150px;
}

/*
nav li{
    color:white;
    font-size:16px;
    transition:.3s;
}

nav li:hover{
    color: #000000;
}
*/
/* 상위 메뉴 항목 기준점 설정 */
nav ul li {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

/* 화살표 아이콘 스타일 */
.nav-arrow {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

/* 마우스 호버 시 화살표 회전 */
nav ul li:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* 숨겨진 서브메뉴 기본 상태 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 살짝 아래 배치 */
    background: rgba(255, 255, 255, 0.96); /* 미세한 투명도로 세련미 추가 */
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(23, 64, 123, 0.12);
    border: 1px solid #eef2f8;
    padding: 12px 0;
    list-style: none;
    display: block;
    opacity: 0;
    pointer-events: none; /* 평소에는 클릭 방지 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 마우스 올렸을 때 자연스럽게 나타나는 효과 */
nav ul li:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0); /* 제자리로 슬라이딩 업 */
}

/* 서브메뉴 내부 링크 스타일 */
.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #444 !important; /* 메인 메뉴 텍스트 색상에 구애받지 않도록 고정 */
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

/* 서브메뉴 호버 효과 */
.dropdown-menu li a:hover {
    background: #e6f1ff; /* 소프트 블루 배경 */
    color: #0077ff !important; /* 스마트 시스템 포인트 컬러 매칭 */
}
/* ===========================================================
   HERO TEXT
=========================================================== */

.heroText{
    position:absolute;
    left:10%;
    top:50%;
    transform:translateY(-50%);
    color:white;
    z-index:30;
    max-width:650px;
}

.subTitle{
    font-size:18px;
    letter-spacing:4px;
    margin-bottom:20px;
    opacity:.9;
}

.heroText h1{
    font-size:74px;
    line-height:1.15;
    font-weight:900;
    margin-bottom:30px;
}

.heroText p{
    font-size:22px;
    color:#f4f4f4;
    margin-bottom:50px;
    line-height:1.8;
}

/* ===========================================================
   BUTTON
=========================================================== */

.mainButton{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:210px;
    height:62px;
    border-radius:60px;
    background:#0077ff;
    color:white;
    font-weight:700;
    transition:.35s;
}

.mainButton:hover{
    background:#0057d8;
    transform:translateY(-4px);
    box-shadow:0 20px 40px rgba(0,90,255,.35);
}

/* ===========================================================
   HERO EFFECT
=========================================================== */

.heroImage{
  animation:none;
}

.heroText{
    animation:fadeUp 1.2s ease;
}

/* ===========================================================
   COMMON CARD
=========================================================== */

.cardShadow{
    background:white;
    border-radius:18px;
    box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

/* ===========================================================
   SPACING
=========================================================== */

.mt40{
    margin-top:40px;
}

.mt60{
    margin-top:60px;
}

.mb40{
    margin-bottom:40px;
}

.mb80{
    margin-bottom:80px;
}
</style>
