*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; }

ul, li{
    list-style: none;}

a{  color: inherit;
    text-decoration: none;}

.h-wrap{
    width: 1160px;
  /*  margin-left: auto;
    margin-right: auto; */
     margin-top: 60px;
    margin-left: 16%;
    margin-right: 25%;  
    height: 150px;
    display: flex;
    z-index: 1000;}

.util{
    font-size: 17px;
    font-weight: bold;
    color: #363636;    
    position: absolute;
    top: 38px;    
    right: 283px;}

.util ul{    display: flex;}

.util li{font-weight: bold;
         text-align: center;
         margin-left: 17px;
         margin-right: 17px;
         align-items: center;}

.util li img {width: 27px;   height: 17px;}

h1{    padding-top: 15px;}

h1 img{    width: 500px;}

  .main-menu{
    display: flex;
    width: 160px;   
    position: absolute;
    top: 90px;
    left: 43%;
    right: 0;}

.main-menu > li {
  position: relative; 
  display: inline-block;
  list-style: none;

} 
.main-menu > li > a {
  display: block;
  padding: 5px 10px; /* 메인 메뉴의 높이와 너비를 패딩으로 결정 */
  color: rgb(54, 49, 49);
  text-decoration: none;
}
   
.menu{     
    width: 160px;
    height: 100%;
    display: block;
    text-align: center;
    align-items: center;
    color: black;
    font-weight: bold;
   /* padding: 0px 10px;  */
    font-size: 22px;
    border-radius: 10px;
    position: relative;
    z-index: 900;
    left: 0;   
    /* display: inline-block; */  }

.menu > a{
    align-items: center;
    width: 160px;
    padding: 5px 10px;
   line-height: 33px;
    font-weight: bold;
    transition: all 0.2s;
        }

.menu:hover > a {    
    text-align: center;
    align-items: center;    
     padding: 7px 10px;
     margin-top: 0;
    color: #fff;
    background-color: navy;
    border-radius: 7px;    }

/* position: absolute;
            top: 100%; 
            left: 0;         */

.sub-menu{      
    display: none;  
    position: absolute;
            top: 100%; 
            left: 0;  
    width: 160px;         
    margin-top: 0;
    padding: 0;          
    text-align: left;
    font-weight: bold;
    color: rgb(46, 46, 46);
    background-color:#dad6d6;   
    border: 1px solid #dee2e6;
     box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);    
    border-radius: 8px;       
   }

    .sub-menu li {
            position: relative;        }

    .main-menu > li:hover .sub-menu {
  display: block;  }  /* 마우스 올리면 서브메뉴 나타남 */


/* 서브메뉴의 링크 태그 설정 */
.sub-menu li a {
  display: block;    /* 1. 가로 영역을 100% 꽉 채우는 성질로 변경 */
  width: 100%;   
  height: 100%;    /* 2. 가로폭 100% 지정 (생략 가능) */
  font-size: 17px;
  padding: 12px; /* 3. li 안의 위아래, 좌우 여백을 주어 세로 크기 조절 */
  text-decoration: none;
   transition: all 0.2s;  }



/* 2. 서브메뉴 (자식 박스) 위치 및 밀착 설정 */


   /*     .sub-menu li a {
    width: 100%;
           padding: 12px ;
            font-size: 17px;
            transition: all 0.2s;}  */
                
        /* 첫 번째와 마지막 번째 메뉴 모서리 라운딩 자동 처리 */
        .sub-menu li:first-child > a {
            border-top-left-radius: 7px;
            border-top-right-radius: 7px;
        }
        .sub-menu li:last-child > a {
            border-bottom-left-radius: 7px;
            border-bottom-right-radius: 7px;
        }
        /* 상단 서브메뉴 호버 효과 */
        .sub-menu li:hover > a {
            background-color: #0056b3;
            color: #fff;
        }
       .menu:hover .sub-menu{
            display: block;
        } 

        /* [상단] 2차 하위 서브메뉴 (오른쪽으로 세로 펼침) */
        .sub-sub-menu {
            display: none;
            width: 180px;
            position: absolute;
            top: -1px; /* 부모 테두리선 정렬 맞춤 */
            left: 100%; /* 바로 오른쪽 배치 */            
            background-color: #fff;
            border: 1px solid #dee2e6;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            border-radius: 8px;
        }

        .sub3-menu{
            display: none;
            width: 180px;
            position: absolute;
            top: -1px; /* 부모 테두리선 정렬 맞춤 */
            left: 100%; /* 바로 오른쪽 배치 */            
            background-color: #fff;
            border: 1px solid #dee2e6;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            border-radius: 8px;
        }
        .sub-sub-menu .sub3-menu li:first-child > a {
            border-top-left-radius: 7px;
            border-top-right-radius: 7px;
        }
        .sub-sub-menu .sub3-menu li:last-child > a {
            border-bottom-left-radius: 7px;
            border-bottom-right-radius: 7px;
        }
        .sub-sub-menu li:hover > a {
            background-color: #0b82fa;
            color: #fff;
        }

        .sub3-menu li:hover > a {
            background-color: #9141fa;
            color: #fff;}


        /* 상단에서 서브메뉴 호버 시 오른쪽으로 노출 */
        .has-children:hover .sub-sub-menu {
            display: block;        }

        .has-grandchild:hover .sub3-menu {
            display: block;        }

    .sub3-menu{  width: 230px;}

.photo2017{
    width: 1570px;
    display: flex;
    margin-top: 10px;
    margin-left: 16%;}

.main-content { flex: 1;
                padding: 20px;        }

        /* ----------------------------------
           좌측 사이드바 영역
        ------------------------------------- */
        .sidebar {
            width: 200px;
            height: 220px;
           background-color: #ffffff; 
            border: 1px solid #ddd;
            border-radius: 12px; /* 메인 박스 4개 모서리 라운딩 */
        /*    overflow: hidden;    /* 내부 메뉴 호버 시 라운딩 깎인 부분이 깨지지 않도록 방지 */
           /* position: fixed; 
            left: 300px; 
            top: 200px; */
            border-radius: 9px; 
           /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
        }

        /* [요구사항] 서브 메뉴 4개를 감싸는 하나의 라운딩 박스 */
        .menu-box {
            list-style: none;
            padding: 0;
            margin: 0;
            background-color: #f4f4f4;
            border-style: ridge;           
          border-radius: 8px; /* 박스 모서리 라운딩 */
            /* [핵심] 내부 메뉴 배경이 라운딩을 벗어나지 않도록 함 */
        }

         .menu-box > li { position: relative; }



        /* 메뉴 링크 공통 스타일 */
        .menu-link {
            display: block;
            padding: 15px 20px;
            color: #333;
            text-decoration: none;
            font-weight: bold;
            font-size: 18px;
            transition: background-color 0.2s, color 0.2s;
            cursor: pointer;
        }

        /* [요구사항] 마우스 오버 시 배경 파란색, 글자 흰색 변경 */
       /* .menu-box:hover {
            background-color: #013a77;
            color: #ffffff;
        }

        /* ----------------------------------
           3번째 메뉴 - 하위 서브 메뉴 스타일
        ------------------------------------- */
        /* 기본적으로 하위 메뉴는 숨김 처리 */
        .submenu-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 500px;            
            transition: max-height 0.3s ease-out; /* 부드러운 슬라이드 효과 */
            background-color: #e9e9e9;
        }

        /* 3번째 메뉴에 마우스를 올리면 하위 메뉴가 펼쳐짐 */
        .menu-box:hover .submenu-list {
            max-height: 350px; /* 하위 메뉴 2개가 펼쳐질 충분한 높이 */
        }

        /* 하위 서브 메뉴 개별 링크 스타일 */
        
        
        .menu-box li a{
            display: block;
            width: 100%;
            padding: 10px;
            padding-left: 20px; /* 들여쓰기 */
            color: #555;
            text-decoration: none;
            font-size: 17px;           
            transition: background-color 0.2s, color 0.2s;}


        /* 하위 서브 메뉴 마우스 오버 스타일 */
        .submenu-link:hover {
            background-color: #013975; /* 조금 더 짙은 파란색 */
            color: #ffffff;        }
        
        
        /* 4번째 서브 메뉴 아이템에 relative 부여하여 하위 메뉴 위치 기준점 잡기 */
       /* .sub-menu > li { position: relative; }  */
        
        /* 4번째 서브 메뉴 호버 시 3차 하위 메뉴 우측으로 펼침 */      

/* 🌟 [핵심 변경] 마우스가 하위 메뉴에 있어도 상위 메뉴(부모 li)의 배경색을 유지 */
.menu-box li:hover > a { background-color:#0056b3; 
                        
                        color: #fff; }


/* 3번째, 4번째 메인 메뉴 호버 시 서브 메뉴 하단으로 펼침 */
.menu-box > li:hover > .submenu-list{ display: block; }


.menu-box li:first-child > a {
            border-top-left-radius: 7px;
            border-top-right-radius: 7px;        }

        .menu-box li:last-child > a {
            border-bottom-left-radius: 7px;
            border-bottom-right-radius: 7px;        } 

.submenu-list, .submenu-list li, .submenu-list a{
    border-radius: 0 !important;}


/* 서브 메뉴 공통 스타일 (기본적으로 숨김 처리) */
.submenu-list { display: none; background-color: #f9f9f9; }

/* 4번째 서브 메뉴 아이템에 relative 부여하여 하위 메뉴 위치 기준점 잡기 */
.submenu-list li { position: relative; 
                   text-align: center; }

/* 4번째 서브 메뉴 호버 시 3차 하위 메뉴 우측으로 펼침 */
.submenu-list > li:hover > .depth3-menu { display: block; }

.submenu-list > li:hover > a{color: white;
                             background-color: #0b82fa;}

.submenu-list a { padding-left: 35px; 
                  font-size: 17px;
                  width: 100%;
                  height: 100%; 
                  border-radius: 0%;}

              

/* 4번째 메뉴 전용: 서브 메뉴 안의 하위(3차) 메뉴 스타일 */
.depth3-menu { display: none; 
               position: absolute;                
               left: 100%; top: 0; width: 225px; 
               background-color: #eaeaea; 
               color: #333;
               border: 1px solid #ccc; 
               border-radius: 12px; /* 우측으로 펼쳐지는 메뉴 박스 모서리 라운딩 */
            overflow: hidden;    /* 내부 호버 시 라운딩 깨짐 방지 */
            box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
            z-index: 700;
        }
        
        /* 4번째 서브 메뉴에 마우스 올리면 3차 메뉴 우측 전개 */
        .sub-menu > li:hover > .depth3-menu { 
            display: block; }
        .depth3-menu a { padding-left: 20px; 
            font-size: 13px; 
            color: #555; 
            text-align: left;}
        
        /* 3차 하위 메뉴 자체 호버 색상 */
        .depth3-menu li:hover > a { background-color: #9141fa ; color: #fff; }

   
.gallery{
    width: 1050px;
    height: 1350px; 
    margin-left: 20PX;
}
.gallery h2{
    color: #4c4f55;
    font-size: 30px;  
    margin-left: 0 auto;  }

.gallery p{font-size: 20px;
    color: #4c4f55;
    line-height: 29px;
    font-weight: bolder;    }

    .photo {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 가로 3열 */
        gap: 10px; /* 사진 사이 여백 */
        max-width: 1100px;
        margin: 0 auto; }/* 가운데 정렬 */
  
      .photo img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 5px; /* 테두리 둥글게 (선택사항) */
      }

    footer .f-wrap{   
    width: 1100px;
    height: 220px;
    margin: 70px auto 60px;        }

footer .f-wrap .link-icon{
  width: 100%;
  height: 140px;
  margin-top: 100px;
  margin-left: 15px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;}

    footer .f-wrap .link-icon .busan img{ width: 220px; height: 110px; margin-right: 10px;}
    footer .f-wrap .link-icon .mafa img{ width: 220px; height: 120px; margin-right: 50px;}
    footer .f-wrap .link-icon .consul img{width: 170px;  height: 100px; 
                                          margin-left: 10px; margin-right: 30px;}
    footer .f-wrap .link-icon .acrc img{width: 220px;  height: 100px; margin-right: 10px;}
    footer .f-wrap .link-icon .tax img{width: 160px;  height: 120px;}

footer .f-wrap .copy-wrap{
  width: 1100px;  
  margin-left: 45px;
  display: flex;
  justify-content: center;
  align-items: center;  }

footer .f-wrap .f-logo{    width: 500px;}
footer .f-wrap .f-logo img{width: 500px;}
footer .f-wrap .f-copyright{
    flex: 1;
    font-size: 16px;
    margin: 0px 25px 5px 30px;
    }
p.f-right{display: flex;}

p.f-right .map{text-indent: 5px;}

   /* .f-copyright p{  line-height: 10px;} */

.f-copyright address{ font-style: normal;}  