/* section */
section {padding: 5vw 0;}
section.section_pad { padding: 5vw 0; }
section >* { z-index: 3; }
section .title_box { margin-bottom: 40px; }
section .title_box .area_title {font-weight: 600;font-size: 40px;font-family: 'Kanit', sans-serif;}
section .title_box .sub_title {font-weight: 500;font-size: 19px;}

/* bg_box */
.bg_box { width: 100%; height: 100%; background: no-repeat 50% / cover; background-attachment: fixed; opacity: .3; top: 0; left: 0; }
.bg_box:before { width: 100%; height: 100%; display: block; background: rgba(var(--primary-rgb), .2); content: ""; }
.bg_box.white:before { background: rgba(var(--white-rgb), .2); }

/* about_area */
#about_area{background-image: url(/images/40/img-bg.jpg);padding-top: 0;}
#about_area:after{content:url(/images/40/img-inngrit.png);position: absolute;top: 80px;animation-name: fish;animation-direction: alternate;animation-iteration-count: infinite;animation-timing-function: ease-in-out;animation-duration: 2s;}
@keyframes fish{0%{top:80px}100%{top:50px;}}
#about_area .workframe{width:1160px;display: flex;flex-wrap: wrap;justify-content: space-between;align-items: center;}
#about_area .title_box {writing-mode: vertical-lr;letter-spacing: 5px;}
#about_area .title_box p{color: var(--primary);font-size: 30px;font-weight: 600;}
#about_area .title_box h2{color:#1c1c1c;font-size: 30px;font-weight: 600;}
#about_area .info_box article {margin-bottom: 30px;width: 90%;line-height: 210%;letter-spacing: 1.5px;font-weight: 400;}
#about_area .info_box{width: 75%;border-left: 1px solid #d5d5d5;padding-left: 8%;}

/* product_area */
#product_area{padding-top:3vw}
#product_area:before{content:'';width: 460px;height: 460px;position: absolute;right: -90px;top: -320px;background: linear-gradient(90deg,#e2e2e2, #f5f5f5);border-radius: 50%;}
#product_area:after{content:'';position: absolute;width: 100%;height: 45%;background-image: url(/images/40/img-bg.jpg);background-repeat: no-repeat;background-position: 50% 50%;background-size: cover;bottom: 0;}
#product_area .title_box{width: 1550px;margin: 0 auto 50px;}
#product_area .title_box .sub_title{width: 300px;}
#product_area .list_box .arrowBox{display: flex;align-items: center;position: absolute;top: 55px;left: 28%;}
#product_area .list_box .arrowBox >div{cursor: pointer;}
#product_area .list_box .arrowBox .prev {opacity:.4;margin-right: 10px;}
#product_area .list_box ul{width: 95%;margin: 0 0 0 auto;box-shadow: 0 0 20px rgb(0 0 0 / 10%);padding: 50px 0 50px 50px;overflow: hidden;background: var(--white);}
#product_area .list_box li{border-left: 1px solid #eee;}
#product_area .list_box li .row{margin: 0 30px;}
#product_area .list_box li .row img{border-radius: 10px;background-position: 50% 50%;background-size: contain;}
#product_area .left_box h3{color: #232222;height: auto;font-size: 22px;margin: 10px 0 50px;}
#product_area .left_box p{background: #58585b;font-size: 12px;color: var(--white);display: inline-block;padding: 3px 10px;border-radius: 5px;margin-right: 5px;font-weight: 200;}
#product_area .left_box p.blue{background: #ea0029;}

/* news_area */
#news_area{display:flex;align-items: center;}
#news_area:after{content:url(/images/40/img-news-right.png);position: absolute;right: 0;}
#news_area .workframe{width:1160px;}
#news_area .list_box li {border-bottom: 1px solid #ddd;padding: 35px 0;}
#news_area .list_box li:first-child{border-top: 1px solid #ddd;}
#news_area .list_box .row {margin: 0;}
#news_area .list_box .info_box {display:flex;flex-wrap: wrap;align-items: flex-start;flex-direction: column;justify-content: center;}
#news_area .list_box .info_box p a { margin-right: 10px; max-width: calc(100% - 100px); font-weight: 400; z-index: 2; }
#news_area .list_box .info_box p .time {width: 90px;font-weight: 500;text-align: left;font-family: 'Kanit', sans-serif;font-size: 16px;color: #333;position: relative;}
#news_area .list_box .info_box p .time:after{content:'/';position: absolute;right: 25px;}
#news_area .list_box .info_box h3 {height: auto;font-size: 22px;color: #101010;width: calc(100% - 100px);}
#news_area .list_box .info_box .more_btn{position:absolute;right: 0;}

/* book_area */
#book_area .list_box img { height: 450px; }
#book_area .list_box .img_box { border: var(--white) solid; border-width: 0 1px 1px 0; }
#book_area .list_box .img_box:before , #book_area .list_box .img_box:after { position: absolute; width: 100%; height: 100%; background: var(--white); z-index: 9; opacity: .4; content: ""; }
#book_area .list_box .img_box:after { right: 0; bottom: 0; }
#book_area .list_box .atag_item { z-index: 10; }
#book_area .list_box .badge { margin: auto; padding: 10px 20px; max-width: calc(80% - 40px); height: 34px; line-height: 36px; font-size: 20px; }

/* youtube_box */
#youtube_box { min-height: 1px; padding-bottom: 30%; }
#youtube_box a { position: absolute; background: var(--white); display: flex; top: 50%; left: 50%; z-index: 99; }
#youtube_box a i { margin: auto; font-size: 30px; color: var(--primary); }
#youtube_box iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 5; }

/* custom_area */
#custom_area {padding-top: 0;}
#custom_area .workframe{width: 1650px;margin: 0 auto;}
#custom_area:before {position: absolute;width: 100%;height: 50%;background: rgba(var(--primary-rgb), .1);display: block;left: 0;content: "";background-image: url(/images/40/img-bg.jpg);background-repeat: no-repeat;background-position: 50% 50%;background-size: cover;bottom: 0;}
#custom_box ul {display: flex;justify-content: center;align-items: center;}
#custom_box li{width: calc(100%/1);position: relative;}
#custom_box li img{width: 100%;}
#custom_box li a{position:absolute;left: 0;top: 0;width: 100%;height: 100%;z-index: 2;}
#custom_box li .innfo {position: absolute;padding: 75px;width: calc(100% - 150px);height: calc(100% - 150px);top: 0;left: 0;}
#custom_box li .innfo b{width: 75px;height: 75px;position: absolute;bottom: 75px;right: 75px;border: 1px solid #fff;border-radius: 50%;background: rgb(255 255 255 / 10%);display: inline-flex;align-items: center;justify-content: center;}
#custom_box li .innfo b svg{fill:#fff;}
#custom_box li .innfo h2 {font-size: 50px;color: var(--white);line-height: 150%;}
#custom_box li .innfo article {line-height: 200%;font-family: 'Kanit', sans-serif;font-size: 16px;color: #fff;}

@-webkit-keyframes spineer { 0% { -webkit-box-shadow: 0 0 0 0 var(--info); } 70% { -webkit-box-shadow: 0 0 0 20px transparent; } 100%{ -webkit-box-shadow: 0 0 0 0 transparent; } }
@keyframes spineer { 0% { box-shadow: 0 0 0 0 var(--info); } 70% { box-shadow: 0 0 0 20px transparent; } 100%{ box-shadow: 0 0 0 0 transparent; } }

@media screen and (min-width: 1281px){
	#book_area .list_box li:hover .badge { background: var(--primary); color: var(--white); }
	#custom_box li:hover .row { box-shadow: 0 4px 17px 0 rgba(var(--black-rgb), .2); }
}
@media screen and (max-width: 1680px){
	#product_area .title_box{width: 85%;}
	#custom_area .workframe{width:100%;}
	#product_area .list_box .arrowBox{left:30%;}
	#about_area:after{zoom:80%;}
	@keyframes fish{0%{top:150px}100%{top:100px;}}
	#custom_area{padding-bottom:0;}
}
@media screen and (max-width: 1280px){
	#product_area .title_box .sub_title{width:auto;}
	#product_area .list_box .arrowBox{left: 37%;top: 35px;}
	#news_area:after{zoom: 70%;}
	#about_area:after{left: -100px;}
	#custom_box li .innfo h2{font-size: 35px;}
}
@media screen and (max-width: 1024px){
	#custom_box li .innfo{padding:40px;width: calc(100% - 80px);height: calc(100% - 80px);}
	@keyframes fish{0%{top:250px}100%{top:200px;}}
	#about_area:after{zoom: 60%;}
	#product_area .list_box .arrowBox{left: 45%;}
	#news_area .workframe, #about_area .workframe{width:90%;}
	#custom_box li{
    width: 100%;
}
	#custom_box li .innfo b{right: 40px;bottom: 40px;}
}
@media screen and (max-width: 768px){
	#custom_box li{width:100%;}
	#custom_box li img{height:250px;object-fit: cover;}
	#product_area .list_box .arrowBox{display:none;}
	#news_area .list_box .info_box { padding: 15px 0; }
	#youtube_box { padding-bottom: 60vw; }
	#custom_box li .row { margin: 10px 15px; padding: 10px 0; }
}
@media screen and (max-width: 640px){
	#custom_box ul{
    flex-wrap: wrap;
}
	#custom_box li img{height:350px;}
	#news_area:after{display:none;}
	#about_area:after{left:auto;-moz-transform: scaleX(-1);-webkit-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1);right: -120px;}
	@keyframes fish{0%{bottom:-150px;top:unset}100%{bottom:-100px;top:unset}}
	#book_area .list_box img { height: 65vw; }
	#product_area:before{width: 320px;height: 320px;top: -260px;}
	#about_area .title_box{writing-mode: unset;width: 100%;display: flex;flex-direction: column;}
	#about_area .title_box h2{order:-1; }
	section, section.section_pad{padding:50px 0;}
	#about_area .info_box{border:0;width: 100%;padding: 0;}
}
@media screen and (max-width: 450px){
	#product_area .bgBox { width: 100%; object-fit: cover; }
}