@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@500&family=Righteous&display=swap');
/* header banner area ============================================================================== */
.banner { height: 180px; background-image: url(../TS_img_layout/banner_m.jpg); 
  background-position: left top; background-size: cover; }

@media(min-width: 400px){ .banner { height: 220px; background-image: url(../TS_img_layout/banner.jpg); }  }
@media(min-width: 500px){ .banner { height: 260px; }  }
@media(min-width:1400px){ .banner { height: 270px; }  }
@media(min-width:2000px){ .banner { height: 350px; }  }


/* body>section area ========================================================================== 
#sec2, #sec4 { background: url(../TS_img_layout/434.png) repeat center center; }
*/
/*
body>section { padding: 30px 0; min-height: 100vh; 
  background: url(../TS_img_layout/shadow1.png) no-repeat center -2px, 
    url(../TS_img_layout/shadow2.png) no-repeat center bottom; }
*/
body>section { padding: 30px 0; min-height: 100vh; 
  background: url(../TS_img_layout/shadow1.png) no-repeat center -2px; }
#sec4 { padding-bottom: 80px }
section h1 { height: 50px; color: #214263; margin-bottom: 20px; position: relative;
  background-repeat: no-repeat; background-position: left center; }
section h1 small { font-size: .7em; font-weight: normal;
  font-family: Helvetica, Arial, STHeiti, "Microsoft JhengHei", 微軟正黑體, sans-serif; }

#sec1 h1 { background-image: url(../TS_img_layout/hbg2.png); padding: 10px 0 0 100px; }
#sec2 h1 { background-image: url(../TS_img_layout/hbg3.png); padding: 0px 0 0 90px; }
#sec3 h1 { background-image: url(../TS_img_layout/hbg4.png); padding: 10px 0 0 120px; }
#sec4 h1 { background-image: url(../TS_img_layout/hbg1.png); padding: 5px 0 0 110px; }

.h1small { position: absolute; left: 100px; top: 0; transform: translateY(-1em); }

@media(min-width:700px){  
  body>section { padding: 70px 0; }
  .h1small { position: static; transform: translateY(0); }
}


/* 區段過濾分類按鈕 ================================================================= */
.filter-btns { text-align: center; margin-bottom: 20px; }

.filter-btn { cursor: pointer; display: inline-block; 
  outline: 0; border: none; text-transform: none; text-shadow: none;
  background: #e0e0e0 none; color: #000; border-radius: .3rem;
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 14px;
  min-height: 1rem; line-height: 1rem; vertical-align: baseline;
  margin: .25rem .1rem; padding: .7rem 1.2rem;
  -webkit-box-shadow: inset 1px 1px 1px #ccc, inset -1px -1px 1px #fff;
  box-shadow: inset 1px 1px 1px #ccc, inset -1px -1px 1px #fff;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  will-change: ''; -webkit-tap-highlight-color: transparent; 
}

.filter-btn:hover, .filter-btn.active:active, 
.filter-btn:active, .filter-btn.active { background-color: #ddd;
  -webkit-box-shadow: inset 0 0 0 transparent, 1px 1px 1px #aaa;
  box-shadow: inset 0 0 0 transparent, 1px 1px 1px #aaa; }

.filter-btn.active:active, .filter-btn:active, .filter-btn.active { background-color: #ccc; }


/* 區段過濾內容 ==================================================================== */
.filter-container { padding: 15px; position: relative; width: 100%; 
  display: flex; flex-wrap: wrap; align-items: flex-start; }

.filtr-item { width: 49.9%; padding: 15px; position: relative; cursor: pointer; }

.filtr-item img { width: 100%; height: auto; display: block; cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); border-radius: 6px; background-color: #fff; }

.filtr-item .itemContent { overflow: hidden; letter-spacing: 0;
  display: block; width: 100%; height: 100%; padding: 10px 0; }

.filtr-item .itemDesc { text-align: center; background-color: transparent; color: #214263;
  display: flex; justify-content: center; align-items: center; flex-direction: column; }

.filtr-item .header { font-size: 13px; padding: 0; margin: 0; font-weight: normal; text-align: center; }

.filtr-item p { display: none; }


@media(min-width:701px){ .filtr-item { width: 24.9%; } }

@media(min-width:1100px){
  .filtr-item .itemContent { position: absolute; left: 0; top: 0; padding: 15px; }

  .filtr-item .itemDesc { opacity: 0; transform: scaleY(0); transform-origin: 0 100%;
    transition: all 0.5s; letter-spacing: 1px; width: 100%; height: 100%;
    background-color: rgba(33, 66, 99, 0.85); color: #fff; }

  .filtr-item .header { font-size: 1.3rem; text-align: center; }
  .filtr-item .itemDesc .header { padding-bottom: 5px; margin-bottom: 10px;
    border-bottom: 1px solid #fff; width: 90%; 
    text-shadow: 2px 2px 2px #c26, -1px -1px 2px #000; }

  .filtr-item p { display: block; font-size: 1rem; }

  .filtr-item:hover .itemDesc { opacity: 1; transform: scaleY(1); }
  .filtr-item:hover a { border: none; }

  /* .filter-btn { font-family: 'Noto Sans TC', sans-serif; font-weight: normal; } */
}


