section { padding: 4vw 0; }
section .title_box {font-size: 30px;font-weight: 600;}
section .sub_title_box  {font-weight: 500;font-size: 20px;letter-spacing: 1px;}
section .more_btn {padding: 18px 85px;background: var(--secondary);font-size: 15px;color: white;}
section .more_btn:hover{background:var(--primary)}

/* wrap */
#wrap img{filter: saturate(70%);}

/* firstBox */
#firstBox{display:grid;grid-template-columns: 65% 35%;justify-content: space-between;margin-top: 89px;}
#firstBox .Rbox{position:relative;display: flex;flex-direction: column;justify-content: center;}
#firstBox .Rbox >div{overflow:hidden;}
#firstBox .Rbox >div .front{position:relative;z-index:5}
#firstBox .Rbox >div .front img{height:calc(676px/2);object-fit: cover;object-position: left;}
#firstBox .Rbox >div:hover .front{transform: translateY(-100%);transition: all .6s linear;}
#firstBox .Rbox >div#newreport:hover .front{transform: translateY(100%);}

/* exhibition */
#exhibition .runbox {width: 100%;position:absolute;top: 0;height: 100%;}
#exhibition .info img{width:100%;height: 100%;aspect-ratio: 336 / 169;}
#exhibition .info:hover img, #newreport .img_scale:hover .img_box img, #custom_area li:hover  .clip img{ transform: scale(1.1);}
#exhibition .info .h3 {bottom: 0;left: 0;z-index: 10;padding: 35px 40px;}
#exhibition .info .h3 span{-webkit-line-clamp: 2;color: white;font-weight: 400;background-image: linear-gradient(currentColor 1px, transparent 1px);background-repeat: no-repeat;background-size: 0% 1px;background-position: 0 100%;transition: background-size .3s cubic-bezier(.32,.72,0,1);font-size: 20px;line-height: 1.8;}

/* newreport */
#newreport .runbox{position:absolute;top: 0;width: 100%;height: 100%;}
#newreport .img_scale {border-bottom:1px solid #e9e9e9;display: grid;justify-content: space-between;grid-template-columns: 170px 1fr;gap: 30px;}
#newreport .info_box{display:flex;flex-direction: column;align-items: flex-start;justify-content: center;}
#newreport .info_box p{color:#858585;font-size: 14px;}
#newreport .info_box a{position:relative;z-index:2;width: 90%;}
#newreport .info_box span{-webkit-line-clamp: 2;color: var(--secondary);font-weight: 400;background-image: linear-gradient(currentColor 1px, transparent 1px);background-repeat: no-repeat;background-size: 0% 1px;background-position: 0 100%;transition: background-size .3s cubic-bezier(.32,.72,0,1);font-size: 20px;line-height: 1.8;}

/* custom_area */
#custom_area {
  border-bottom: 1px solid var(--secondary);
  overflow: hidden;
}
#custom_area .workframe {
  width: 95%;
  margin: 0 auto;
}

/* Swiper 外框 */
#custom_area .mySwiper {
  padding: 40px 0;
  overflow: hidden;
}

/* 軌道（swiper-wrapper） */
#custom_area .nowrap_box {
  list-style: none;
  margin: 70px 0 0;
  padding: 0;
  position: relative;
}

/* 每一張卡片 */
#custom_area .swiper-slide {
  width: 380px;
  padding: 0 35px;
  border-right: 1px solid #ebebeb;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-right: 0 !important;
}

/* 連結層級 */
#custom_area .swiper-slide > div > a {
  z-index: 5;
}
#custom_area .swiper-slide > div a.tit {
  z-index: 10;
  position: relative;
}

/* 圖片比例 */
#custom_area .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 155 / 194;
}

/* 圖片上文字區塊 */
#custom_area .swiper-slide .clip {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-bottom: 20px;
  align-items: center;
}
#custom_area .swiper-slide .clip b {
  position: absolute;
  -webkit-line-clamp: 4;
  height: auto;
  font-weight: 400;
  color: white;
  z-index: 3;
  font-size: 15px;
  padding: 0 25px;
  text-align: justify;
  top: -50%;
  transition: top .5s;
}
#custom_area .swiper-slide:hover .clip b {
  top: auto;
}

/* 標題底線 hover 動畫 */
#custom_area .swiper-slide span.h3 {
  -webkit-line-clamp: 2;
  color: var(--secondary);
  font-weight: 400;
  background-image: linear-gradient(currentColor 1px, transparent 1px);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .3s cubic-bezier(.32,.72,0,1);
  font-size: 20px;
  line-height: 1.8;
}
#custom_area .swiper-slide:hover span.h3 {
  background-size: 100% 1px;
}

/* 讓跑馬燈更順：把動畫改成線性 */
#custom_area .mySwiper .swiper-wrapper {
  transition-timing-function: linear !important;
}


/* book_area */
#book_area{border-bottom: 1px solid var(--secondary);}
#book_area .workframe{width: 100%;margin: 0;display: grid;grid-template-columns: 45% 51%;justify-content: space-between;}
#book_area .tit {margin-bottom: 65px;padding: 0 5%;}
#book_area .booknavitem{margin-top:30px;display:flex;gap: 15px;}
#book_area .booknavitem p{border: 1px solid #888888;line-height: 1;padding: 15px 34px;border-radius: 50px;color: #888888;cursor: pointer;}
#book_area .booknavitem p:hover, #book_area .booknavitem p.active{border-color:var(--primary);background:var(--primary);color:white}
#book_area li >a{z-index:5} 
#book_area li img{width:100%;aspect-ratio: 174/95;}
#book_area li .info{margin: 40px 50px 0;display: flex;gap: 10px;flex-direction: column;}
#book_area li .info a.cate, #book_area .boooklist a.cate{font-size:14px;z-index: 6;}
#book_area li .info p, #book_area .boooklist .info p{font-size:14px;color: #6d6d6d;height: 92px;-webkit-line-clamp: 3;line-height: 2.2;width: 95%;text-align: justify;}
#book_area .boooklist .info_box:hover .info p{position:relative;z-index:2}
#book_area li .info .h3tit{width: 75%;position:relative;z-index:6;display: block;}
#book_area li .info .h3tit span{-webkit-line-clamp: 2;color: var(--secondary);font-weight: 500;background-image: linear-gradient(currentColor 1px, transparent 1px);background-repeat: no-repeat;background-size: 0% 1px;background-position: 0 100%;transition: background-size .3s cubic-bezier(.32,.72,0,1);font-size: 22px;line-height: 1.8;}
#book_area .boooklist .boook_item {display:flex;flex-direction: column;justify-content: space-between;gap: 60px;}
#book_area .boooklist .info {display:flex;flex-direction: column;align-items: flex-start;gap: 10px;}
#book_area .boooklist .info_box:hover .info *{color:white}
#book_area .boooklist .info_box{padding: 0 10% 0 8%;display: grid;grid-template-columns: 62% 28%;align-items: center;justify-content: space-between;}
#book_area .boooklist .info_box:after{content:'';position: absolute;width: 0;height: 120%;top: -10%;right: 0;background: var(--primary);z-index: 1;}
#book_area .boooklist .info_box:hover:after{width:100%}
#book_area .boooklist img{width:100%;order: 2;aspect-ratio: 43 / 54;}
#book_area .boooklist .h3tit{position:relative;z-index:6;display: block;}
#book_area .boooklist .h3tit span{-webkit-line-clamp: 2;color: var(--secondary);font-weight: 500;background-image: linear-gradient(currentColor 1px, transparent 1px);background-repeat: no-repeat;background-size: 0% 1px;background-position: 0 100%;transition: background-size .3s cubic-bezier(.32,.72,0,1);font-size: 22px;line-height: 1.8;}

/* focus_area */
#focus_area{display:grid;grid-template-columns: 68% 28%;justify-content: space-between;}

/* focusBox */
#focusBox{border-right: 1px solid var(--secondary);padding-right: 6%;}
#focusBox .box{display:grid;grid-template-columns: repeat(2, 1fr);gap: 30px 40px;}
#focusBox .box >.tit{margin: 10px 50px 0;}
#focusBox .box >.tit .sub_title_box{margin: 0 0 10px;}
#focusBox .box >.tit p a{font-size:18px;background: #ebebeb;border-radius: 10px;padding: 10px 40px;letter-spacing: .5px;}
#focusBox .box >.tit p a:hover{background:#323232;color:white;}
#focusBox .infobox img{width: 100%;aspect-ratio: 119 / 60;}
#focusBox .infobox >a{z-index:3}
#focusBox .infobox .tit{margin: 15px 15px 0;position: relative;z-index: 4;}
#focusBox .infobox .tit span{-webkit-line-clamp: 2;color: var(--secondary);font-weight: 400;background-image: linear-gradient(var(--secondary) 1px, transparent 1px);background-repeat: no-repeat;background-size: 0% 1px;background-position: 0 100%;transition: background-size .3s cubic-bezier(.32,.72,0,1);font-size: 20px;line-height: 1.8;}
#focusBox .button_box{margin-top: 60px;text-align: center;}

/* followBox */
#followBox{padding-right: 18%;}
#followBox .h5tit{font-size:21px;display: flex;align-items: baseline;margin-bottom: 45px;}
#followBox .h5tit span{color:#888888;font-size:17px;font-weight: 300;}
#followBox .h5tit b{color:#888888;font-size:17px;font-weight: 400;margin: 0 16px;}
#fb-wrap{margin-bottom:60px;}
#followBox .recommendbox{display:flex;flex-direction: column;gap: 40px;}
#followBox .info_box{background:#eee;padding: 30px;}
#followBox .info_box p{color:#909090;font-size: 13px;height: auto;-webkit-line-clamp: 2;text-align: justify;}
#followBox .info_box .topBpx{display:grid;align-items: center;grid-template-columns: 45px 1fr 55px;gap: 20px;margin-bottom: 15px;}
#followBox .info_box .topBpx img{aspect-ratio: 1/1;border-radius: 50px;}
#followBox .info_box .topBpx .tit span{-webkit-line-clamp: 2;color: var(--secondary);font-weight: 400;background-image: linear-gradient(currentColor 1px, transparent 1px);background-repeat: no-repeat;background-size: 0% 1px;background-position: 0 100%;transition: background-size .3s cubic-bezier(.32,.72,0,1);font-size: 18px;line-height: 1.8;}
#followBox .info_box .button_box{display:flex;justify-content: flex-end;}
#followBox .info_box .topBpx .more_btn{padding: 5px 0;font-size: 12px;width: 55px;display: inline-flex;align-items: center;justify-content: center;}

@media not (pointer:coarse){
	#exhibition .info .h3:hover span, #newreport .info_box a:hover span, #custom_area li >div a.tit:hover span.h3, #book_area li .info .h3tit:hover span, #book_area .boooklist .h3tit:hover span, #focusBox .infobox .tit:hover span, #followBox .info_box .topBpx .tit:hover span{background-size: 100% 1px;}
}
@media screen and (max-width: 1680px){
	#firstBox .Rbox >div .front img{height: calc(581px/2);}
    #followBox .recommendbox{gap: 27px;}
    #fb-wrap{margin-bottom:30px;}
    #followBox .h5tit{margin-bottom: 25px;}
    #book_area li .info .h3tit{width:85%}
    #newreport .img_scale{grid-template-columns: 145.5px 1fr;}
}
@media screen and (max-width: 1440px){
	#firstBox .Rbox >div .front img{height: calc(497px/2);}
    #followBox .h5tit{margin-bottom: 15px;}
    #followBox .recommendbox{gap: 10px;}
    #book_area li .info .h3tit{width:100%}
    #book_area .booknavitem p{padding: 15px 27px;}
    #newreport .img_scale{grid-template-columns: 125px 1fr;}
}
@media screen and (max-width: 1400px){
    #firstBox .Rbox >div .front img{height: calc(471px/2);}
}
@media screen and (max-width: 1300px){
    #firstBox .Rbox >div .front img{height: calc(441px/2);}
}
@media screen and (max-width: 1280px){
    #focusBox .box >.tit p a{padding: 10px 15px;}
    #book_area .booknavitem p{padding: 12px 22px;}
    #newreport .img_scale{grid-template-columns: 111px 1fr;}
}
@media screen and (min-width: 1161px){
	#photo_area .item_row:hover { border-color: var(--primary); }
}
@media screen and (max-width: 1100px){
    #firstBox .Rbox >div .front img{height: auto;}
    #focusBox{border-right:0;padding-right: 0;}
    #focus_area{display: block;}
    #followBox{padding: 4vw 5%;border-top: 1px solid var(--secondary);}
    #book_area .boooklist .info_box{padding: 0 5%;}
    #book_area .boooklist .info_box:hover .info *{color: var(--secondary);}
    #book_area .boooklist .info_box:after{display:none;}
    #book_area .boooklist {margin-top:40px;}
    #book_area .workframe{display: block;}
    #newreport .img_scale{grid-template-columns: 126.5px 1fr;}
    #firstBox .Rbox{display:grid;grid-template-columns: 50% 50%;}
    #firstBox{display:block;margin-top: 84px;}
}
@media screen and (max-width: 768px){
    section {padding: 10vw 0;}
    #firstBox .Rbox{display:block;}
	#about_area .img_box { width: 100%; max-width: inherit; }
	#about_area .info_box { order: 1; }
    #newreport .img_scale{grid-template-columns: 189px 1fr;}
}
@media screen and (max-width: 550px){
    #book_area .booknavitem p{padding: 12px 20px;}
    #book_area .booknavitem{flex-wrap: wrap;gap: 5px;}
    @keyframes scroll{from{transform:translateX(0);}to{transform:translateX(-500%);}}
    section .title_box{font-size: 25px;line-height: 1.5;}
    #newreport .img_scale{grid-template-columns: 130px 1fr;gap: 20px;}
    #newreport .img_scale svg{aspect-ratio:3/4}
    #exhibition .info .h3 span, #newreport .info_box span{font-size: 16px;}
    #exhibition .info .h3{padding: 20px 20px;}
    #exhibition .info img{aspect-ratio: 5.5/3;}
    #firstBox .Rbox >div .front img{aspect-ratio: 5.5/3;object-fit: cover;object-position: left;}
    #firstBox{margin-top: 68px;}
	#product_list { margin: 2vmax auto 0; width: min(100%, 350px); }
    #newreport .info_box p{font-size:12px;}
    #newreport .img_scale:last-child{display:none;}
    #book_area li .info .h3tit span, #book_area .boooklist .h3tit span, #focusBox .infobox .tit span{font-size:20px;}
    #book_area li .info, #book_area .boooklist .info{margin: 30px 30px 0;}
    #book_area .boooklist .info_box{grid-template-columns:1fr;padding: 0;}
    #book_area .boooklist img{order:-1;aspect-ratio: 174 / 95;}
    #focusBox .box{grid-template-columns: 1fr;}
    #focusBox .box >.tit{margin: 10px 30px;}
    #focusBox .box >.tit p a{font-size:16px;}
    #focusBox .infobox .tit{margin:15px 30px 0}
    #followBox{padding: 10vw 0;}
    #followBox >div{margin: 0 auto;width: 85%;}
}