/* 第一區-導覽列 */
.header{
    width: 100%;
    padding: 20px 0px;
    background-color: #FFF;
}
.headerFlex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.headerLogo{
    width: 10%;
    padding: 0px 50px !important;
}
.headerMenu{
    display: flex;
    justify-content: end;
    align-items: center;
}

.MenuLine{
    width: 1px;
    height: 20px;
    background-color: black;
    border: 1px solid black;
    margin-left: 15px;
}
@media(max-width:800px){
  .headerLogo{
    padding: 0px 10px !important;
}  
}
.headerMenu{
    width: 60%;
    text-align: right;
    padding: 0px 40px;
}
.headerMenu a{
    color: black;
    text-align: center;
    font-size: 1.2rem;
    margin-left: 15px;
}

.headerMenu a:hover{
    color: #015a86;
    font-weight: bold;
    border-bottom: 1px solid #015a86;
}

@media(max-width:800px){
    .headerMenu{
    padding: 0px 10px;
}
    .headerMenu a{
    font-size: 1rem;
}
}
@media(max-width:600px){
   .header{
    display: none;
   }
}


/* 手機版 Header */
.headerMobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background: #f5f5f5;
    position: relative;
}
.headerLogo {
    padding: 0px;
}
.headerLogo img {
    height: 40px;
}

/* 漢堡按鈕 */
.mobileMenu {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 2000; /* 保證在最上層 */
}

.mobileLine {
    border-bottom: 2px solid black;
    margin-top: 6px;
    transition: 0.4s;
}

/* 三條線 */
.mobileLine {
    width: 30px;
    height: 2px;
    background-color: black;
    margin: 4px 0;
    transition: 0.4s;
}

/* 點擊後 → X */
.mobileMenu.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobileMenu.active .line2 {
    opacity: 0;
}

.mobileMenu.active .line3 {
    transform: rotate(-45deg) translate(4px, -4px);
}


/* 手機選單 */
.mob-headerMenu {
    width: 100%;
    display: none;
    flex-direction: column;
    background: #f5f5f5;
    position: absolute;
    top: 64px;
    right: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0.95;
    z-index: 1001;
}

.mob-headerMenu a {
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.mob-headerMenu a:hover {
    font-weight: bold;
    background: #eee;
}

/* RWD：只有 600px 以下才啟用 */
@media (min-width: 601px) {
    .headerMobile, .mobileMenu, .mob-headerMenu {
    display: none !important;
    }
}