@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/* CSS Document */
.top{	
	width: 100%; height: 10px;
	background: #fe0040;}
	
 
.main-nav { height:auto; 
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#1983c2+0,23b2cc+100 */
background: #fff;; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

border-bottom: 1px solid #e7e7e6;


}
.main-nav img{ width:200px; height:auto; margin-left:10px; margin-top:10px;}
.main-nav:after {
  clear: both;
  content: "\00a0";
  display: block;
  height: 0;
  font: 0px/0 serif;
  overflow: hidden;
}

.nav-brand {

  float: left;
  margin: 0;
} 



.nav-brand a {
  display: block;
  padding: 11px 11px 11px 20px;
  color: #fff;
  font-family:  "微軟正黑體";
  font-size: 1.5em; font-weight:bold;
  line-height: 17px;
  text-decoration: none;
}
/* PC版選單區塊距離 */

#main-menu {
  clear: both;
  border-bottom: 0; margin-right:20px; margin-top:10px;
}

@media (min-width: 768px) {
  #main-menu {
    float: right;
    clear: none;
  }
}


/* Mobile menu toggle button */

.main-menu-btn {
  float: right;
  margin: 25px 15px;
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  text-indent: 29px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* hamburger icon 漢堡選單條*/

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 2px;
  width: 24px;
  background: #2e2e2e;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.main-menu-btn-icon:before {
  content: '';
  top: -7px;
  left: 0;
}

.main-menu-btn-icon:after {
  content: '';
  top: 7px;
  left: 0;
}


/* x icon */

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
  height: 0;
  background: transparent;
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* hide menu state checkbox (keep it visible to screen readers) */

#main-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}


/* hide the menu in mobile view */

#main-menu-state:not(:checked) ~ #main-menu {
  display: none;
}

#main-menu-state:checked ~ #main-menu {
  display: block;
}

@media (min-width: 1280px) {
  /* hide the button in desktop view */
  .main-menu-btn {
    position: absolute;
    top: -99999px;
  }
  /* always show the menu in desktop view */
  #main-menu-state:not(:checked) ~ #main-menu {
    display: block;
  }
}


/* IGNORE: Unrelated generic demo styles */

body {
  margin: 0px;
  background: #FFF;

 font: 16px/1em 'Noto Serif TC', "微軟正黑體";
}

.demo-text {
  margin: 3em 22px;
}

.demo-text p {
  margin-bottom: 1em;
}

.demo-text a {
  color: #999;
}

@media screen and (min-width:500px) and (max-width:1178px){
.main-nav img{ width:60%; height:auto; margin-left:10px; margin-top:0px;}

.main-nav { height:auto; 
  border-bottom: 0px solid #9845aa;
  background: #fff;
}

	}
@media screen and (min-width:1195px){
	
.main-nav img{ width:280px; height:auto; margin-left:50px; margin-top:0px;}

.main-nav { 
height:auto; 
/*PC版 整體選單背景色 Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#1983c2+48,1983c2+48,1e9ac7+71,22adcb+100 */
background:#fff ; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  
}
.top{	
	width: 100%; height: 20px;
	background:#fe0040;}
	}
 /* --- 修正 1024x1366 等平板解析度選單文字不顯示的問題 --- */

@media (max-width: 1279px) {
    /* 1. 強制設定選單連結文字為黑色並確保顯示 */
    #main-menu a {
        color: #333333 !important;      /* 設定文字顏色為深灰色 */
        display: block !important;       /* 確保區塊顯示 */
        padding: 15px 20px !important;   /* 給予足夠的點擊空間 */
        font-size: 18px !important;      /* 調整字體大小 */
        line-height: 1.5em !important;
        text-decoration: none;
    }

    /* 2. 修正 SmartMenus 箭頭 (sub-arrow) 的顏色與位置 */
    #main-menu .sub-arrow {
        border-color: #333333 transparent transparent transparent !important; /* 箭頭顏色 */
        top: 50% !important;
        margin-top: -2px !important;
        right: 20px !important;
        display: block !important;
    }

    /* 3. 當選單項被點擊或展開時的背景色（選填，避免選單太單調） */
    #main-menu li {
        border-bottom: 1px solid #f0f0f0; /* 增加分隔線 */
        background-color: #ffffff;        /* 確保背景是白的 */
    }

    #main-menu a:hover {
        background-color: #f8f8f8;        /* 滑過時的淺灰色背景 */
    }
}