/* ### 主架構 ### */

@font-face {
  font-family: Open_Sans;
  src: url(../fonts/Open_Sans/OpenSans-Light.ttf), url(../fonts/Open_Sans/OpenSans-Regular.ttf), url(../fonts/Open_Sans/OpenSans-Semibold.ttf);
}

ul,
li,
a,
p,
h1,
h2 {
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5 {line-height: 1.5em;}

a {
  text-decoration: none;
}

p {font-size:14px; line-height:1.5em;}


/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: none;
  border-radius: 0;
  background-color: #aaaaaa;
}
::-webkit-scrollbar-thumb {
  border-radius: 0;
  -webkit-box-shadow: inset 1px 1px 6px #333;
  background-color: #666666;

}

.clear {
  clear: both;
}
.textarea {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.FX {
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  transition: all 0.3s ease;
}

#tcBtn {display:none;}

/* ### 主架構 ### */
body {  font-family: 'Open_Sans', 'ヒラギノ角ゴ Pro', "Microsoft JhengHei", "微軟正黑體", "apple LiGothic Medium", Arial, Helvetica, sans-serif;
  margin: 0;   color:#656d78; height: 100%;}
#header {
  margin: 0;
}
#footer {
  clear: both;
}
/* OR TOP CI */
.FL {
  float: left;
}
.FR {
  float: right;
}

.clearfix {
    clear:both;
}
html[xmlns] .clearfix {
  display: block;
}
*html .clearfix {
  height: 1%;
}

.footerTop {display: none;}

/**** 主畫面 ****/

#headerimg {
  height: 100%;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.menuBox {position: absolute; left: 0; right: 0; bottom: 45px; margin: auto; font-size: 0; width: 100%; max-width: 820px;text-align:center;}
.menuBox .menu {display: inline-block;vertical-align: top; width: 31.332%; margin: 0 -3%; padding-bottom: 8%; }
/* .menuBox .menu1 {background: url('../images/vday/menuBtns.png') no-repeat 0 0;} */
.menuBox .menu2 {background: url('../images/CNY/menuBtns.png') no-repeat 50% 0;}
.menuBox .menu3 {background: url('../images/CNY/menuBtns.png') no-repeat 100% 0;}
.menuBox .menu1:hover, .menuBox .menu2:hover, .menuBox .menu3:hover {background-image: url('../images/CNY/menuBtns-hover.png');}
.menuBox .menu {background-size: 312%;}

.content {
  width: 100%;
  background-image: url(../images/paper.gif);
  padding:40px 0 50px;
  position: relative;
  min-height: 100%;
}

.titleImg {
  width: 95%; max-width: 630px; margin: 0 auto 40px; padding-bottom: 120px;
  background: url('../images/CNY/titleImg.png') no-repeat center center;
  background-size: contain; 
}

.grid {width:990px; margin:0 auto;}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-item {
  background-color: #fff;
  width: 320px;
  float: left;
  border-radius: 8px;
  margin:0 10px 20px 0;
  position:relative;
  overflow: hidden;
  border: 3px solid #459075;
}

.itemImg {width: 100%; height: 230px; background: url('../images/placehold.jpg') no-repeat center center; background-size: cover;}

.textArea {
  padding: 0 1.5em 50px 1.5em;
  line-height: 1.8em;
}

.textArea .textIcon {
  width: 50px; height: 50px; margin: 15px auto;
  background: url('../images/CNY/birdsIcon.png') no-repeat center center;
}

.textArea h2 {
  font-size: 1.4em; line-height: 1.2;
  font-weight: 800;
  text-align: left;
  color: #2e4363;
  margin: 0 0 10px;
}

.textArea p {
  font-size: 14px;
    padding-bottom:0.4em;
}

.bt-link {
  position: absolute; right: 0; bottom: 0; display: block;
  width: 0;
  height: 0;
  border-bottom: 70px solid #459075;
  border-left: 70px solid transparent;
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  transition: all 0.3s ease;
}
.bt-link:hover{
  border-bottom: 70px solid #2e4363;
} 
.bt-link:after{
  content: ''; display: block; position: absolute; right: 8px; bottom: -59px;
  background: url('../images/arrowR.png') no-repeat center center; width: 25px; height: 25px;
}


/* Mday */
.mday-KV-bg{ background: url(../images/CNY/CNY-topbar-desktop.gif) center top;min-height: 400px;}


/* --------------- Media Quary -------------*/
@media only screen and (min-width: 1500px) {
  
}

/* -------------------------------------------*/
@media only screen and (min-width: 1320px) {
  .grid {width:1320px;}
  
}

/* -------------------------------------------*/
@media only screen and (max-width: 1100px) {
  .grid-item {width: 365px;}
  .grid {max-width: 750px;}
}

/* -------------------------------------------*/
@media only screen and (max-width: 800px) {
  .grid-item {width: 265px;}
  .grid {max-width: 550px;}
}


/* -------------------------------------------*/
@media only screen and (max-width: 550px) {
  .mday-KV-bg{ background: url(../images/CNY/CNY-topbar-m.gif) center top; background-size: cover; min-height: 0; padding-bottom: 115%;}
  .menuBox {bottom: 3%;}
  .menuBox .menu {display: block;width: 70%; margin: 0 auto;padding-bottom: 17%; }
  .content {padding:15px 0 0; }
  .titleImg {
    background: url('../images/CNY/titleImg-m.png') no-repeat center center;
    background-size: contain;
    padding-bottom: 29.5%;
    width: 100%; margin: 0 0 15px;
  }
  .grid {width:90%;}
  .grid-item {width:100%; margin:0; position:relative!important; border-radius: 8px; }
  .grid-item:not(:last-child) {border-bottom: 5px solid #B21461;}
  .itemImg {height: auto; padding-bottom: 65%;}
  .textArea {padding:0 1em 50px;}
}




