@charset "UTF-8";
html, body, div, span, iframe,h1, h2, h3, h4, h5, h6, p,a, em, img,
b, u, i, dl, dt, dd, ol, ul, li,form, label, article, aside, nav {margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit; vertical-align: baseline;}
article, aside,footer, header, menu, nav{display: block;}
body {line-height: 1;}
html, body { height: 100%; margin: 0; }
ol, ul { list-style: none;}
blockquote, q { quotes: none;}
table {border-collapse:clapse; border-spacing: 0;}
body { font-family: "微軟正黑體" !important;
       image-rendering:-moz-crisp-edges;          /* Firefox        */
       image-rendering:-o-crisp-edges;            /* Opera          */
       image-rendering:-webkit-optimize-contrast; /* Safari         */
       image-rendering:optimize-contrast;         /* CSS3 Proposed  */
       -ms-interpolation-mode:nearest-neighbor;   /* IE8+           */
    }
.clearfix {clear: both;}

/*置頂按鈕*/
.gotop{ background: #f39800; font-size: 40px; width: 60px; height: 60px; display: flex; justify-content: center;  align-items: center; border-radius: 50px; position: fixed; bottom: 10%; right: 2%; z-index: 999;}
.gotop a{ text-decoration: none; color: #fff; }

/* ===== desktop ===== */
header{width: 100%;padding-bottom:50%;position: relative;overflow: hidden; }
header::after{content:'';background:url(../images/header-01.jpg);background-size: cover;position: absolute;top: 0;left: 0;width: 100%;height: 100%;
	animation: slideDown .5s linear;animation-fill-mode: both;animation-delay:.1s;
}
.header::after{
	content:'';background:url(../images/header-text.png);background-size: cover;position: absolute;top: 40px;left: 620px;z-index:1;width:780px;height: 220px;
	transform-origin:30% 23%; animation:headBe 1s linear; animation-delay: .8s; animation-fill-mode: both;
}
@keyframes headBe{
	0%{transform: scale(0);}
	40%{transform: scale(1);}
	45%{transform: scale(1) rotateZ(15deg);}
	55%{transform: scale(1) rotateZ(-15deg);}
	65%{transform: scale(1) rotateZ(15deg);}
	75%{transform: scale(1) rotateZ(-15deg);}
	85%{transform: scale(1) rotateZ(15deg);}
	95%{transform: scale(1) rotateZ(-15deg);}
	100%{transform: scale(1) rotateZ(0deg);}
}

.story{box-sizing: border-box;padding:50px calc((100% - 1200px)/2) 70px calc((100% - 1200px)/2); text-align: center;overflow: hidden;}
.story h2{font-size: 50px;font-weight: bold;color:#0269A4;text-align: center;display: inline-block;position: relative;margin-bottom:20px; z-index: 999;}
.story h2::after{content:'';display: block;background:#caeceb;height: 20px;width: 100%; position: absolute; bottom:-10px;left: 0;z-index: -1;}
.story ul{ position: relative; width: 100%; height: 960px; text-align:center ;}
.story ul li{position: absolute;}
.story ul li:nth-Child(1){ top: 4%; left: 3%;}
.story ul li:nth-Child(2){ top: 6%; right: 3%;}
.story ul li:nth-Child(3){ bottom: 6%; left: 3%;}
.story ul li:nth-Child(4){ right: 3%; bottom: 0%;}

.benefit{box-sizing: border-box;padding:60px calc((100% - 1200px)/2) 70px calc((100% - 1200px)/2); text-align: center;overflow: hidden; background-color: #FFC655;}
.benefit h2{font-size: 44px;font-weight: bold;color:#0269A4;text-align: center;display: inline-block;position: relative;margin-bottom:20px; z-index: 999;}
.benefit p{ font-size: 26px;}
.benefit .content{ margin: 50px 0 0; display: flex; justify-content: center; flex-wrap: nowrap; }
.benefit .person{ padding: 50px 0 0 50px; animation: movepoint 2s infinite;}

@keyframes movepoint {
		0% {transform: translate(0px, 0px);}            
		50% {transform: translate(0px, -30px);}            
		100% {transform: translate(0px, 0px);}
}

.onThelist{position: relative;padding:100px calc((100% - 1200px)/2) 100px calc((100% - 1200px)/2);text-align: center; background-color: #BCD668;}
.onThelist>img{position: absolute;bottom: 0;left:5.5%;width:13.6vw;}
.onThelist h2{font-size: 72px;font-weight: bold;color:#01314E;text-align: center;display: inline-block;position: relative;margin-bottom:20px; z-index: 999;}
.onThelist h2::after{content:'';display: block;background:#6CBCBC;height: 15px;width: 100%; position: absolute; bottom:-10px;left: 0;z-index: -1;}
.onThelist ul{display:flex;justify-content: space-around;margin-top:100px;}
.onThelist ul li{width:24%;display: flex;flex-flow: column;justify-content: space-between;}
.onThelist ul .top01{height: 220px;}
.onThelist ul .top01 a{ 
    display: block; height: 100%; padding: 80px 30px 20px 30px; background: #3196CD; border-radius:20px; position: relative;box-sizing: border-box;
    text-decoration: none; color: #fff;font-size: 19px;text-align:left;line-height: 1.3;
}
.onThelist ul .top01 a::after{content:'';display: block;background:url(../images/onThelist-5.png) no-repeat;width: 40px;height: 25px;position: absolute;bottom:-10px;left:45%;transform: translateY(100%);}
.onThelist ul .top01 a::after{animation:UpDown 1s linear infinite;}
.onThelist ul .top01 img{position: absolute;top:0;left:30%;width:40%;transform: translateY(-50%);}
.onThelist ul .top01 p.tit{font-size: 32px;font-weight: bold;margin:2px 0;text-align: center;}
.onThelist ul .top02{height: 220px;}
.onThelist ul .top02 a{ 
    display: block; height: 100%; padding: 80px 30px 20px 30px; background: #01314E; border-radius:20px; position: relative;box-sizing: border-box;
    text-decoration: none; color: #fff;font-size: 19px;text-align:left;line-height: 1.3;
}
.onThelist ul .top02 a::after{content:'';display: block;background:url(../images/onThelist-5.png) no-repeat;width: 40px;height: 25px;position: absolute;bottom:-10px;left:45%;transform: translateY(100%);}
.onThelist ul .top02 a::after{animation:UpDown 1s linear infinite;}
.onThelist ul .top02 img{position: absolute;top:0;left:30%;width:40%;transform: translateY(-50%);}
.onThelist ul .top02 p.tit{font-size: 32px;font-weight: bold;margin:2px 0;text-align: center;}

@keyframes UpDown{
    0%{transform: translateY(100%);}
    25%{transform: translateY(90%);}
    75%{transform: translateY(110%);}
    100%{transform: translateY(100%);}
}
.onThelist ul .down{background: #ffffff; height: 180px;  border-radius: 20px;margin-top:50px;display: none; padding: 20px;}
.onThelist ul .down h3{ margin: 0 0 20px; padding: 8px ; background-color: #989898; border-radius: 50px; font-size: 28px; color: #ffffff; }
.onThelist ul .down p{ text-align: left; font-size: 24px; font-weight: normal; line-height: 1.5;}
.onThelist ul .down>a{font-size: 24px;font-weight: bold;color: #333;text-decoration: none;line-height: 1.2;box-sizing: border-box;display: block;padding: 10px 0;}
.onThelist>a{font-size: 24px;font-weight: bold;color: #fff;background: #1976d3;text-decoration: none;padding: 15px 45px;box-sizing: border-box;border-radius: 20px;display: inline-block;margin-top:70px;}
.onThelist>a{border:2px solid #135CA4;border-width:0 5px 5px 0;display: inline-block;}
.onThelist>a:active{border-width:0 2px 2px 0;transform:translateX(5px) translateY(5px);margin-bottom: 3px;}

.formCon{box-sizing: border-box;padding:95px calc((100% - 1200px)/2) 70px calc((100% - 1200px)/2);background:#E5E5E5;display: flex;justify-content: center;align-items: flex-start;}
.join{width:40%;margin-right: 5%;}
.join h2{ padding: 20px; background-color: #01314E; border-radius: 50px;  color: #fff;font-weight: bold;font-size: 36px;margin:20px 0 15px 0;text-align: center;}
.join h2 span{ color: #FFC655;}
.join p{ margin: 0 60px; color: #01314E;line-height:1.4;font-size: 24px;}
.join img{ width: 100%;}

.OHform{
    background: #ffffff; border-radius: 3px; box-shadow: 8px 8px 0 #B2B2B2;padding:25px 35px;box-sizing: border-box;width: 55%;  color: #333;font-size: 18px;
    display: flex;flex-wrap: wrap;justify-content: space-between; 
}
.OHform h3{ font-size: 24px; font-weight: bold; line-height: 1.6;}
.OHform span{color: #3196CD;}
.OHform input[type="text"],.OHform .address>select{width: 100%;box-sizing: border-box;padding: 10px;margin: 0;border-radius:5px;border: 1px solid #d1d1d1;font-size: 18px;}
.OHform .fname,.OHform .phone{width: 49%;}
.OHform select{color: #666666;}
.OHform>div{width: 100%;margin-top:10px;}
.OHform .question{margin-top: 20px;}
.OHform .question p{font-weight: bold;margin-bottom: 15px;}
.OHform .question em{width: 100%;display: block;margin-bottom: 10px;}
.OHform .question em:last-Child{margin-bottom: 0;}
.OHform .sendOhData{background: #6CBCBC;color: #fff;border: 0;border-radius: 50px;font-size: 28px;font-weight: bold;padding: 10px 0;display: block;width: 100%;margin-top:20px;cursor: pointer;text-align: center;text-decoration: none;}
.OHform .sendOhData:hover{box-shadow:0 0 4px #6CBCBC;}
.OHform a{color: #3196CD;}

.OHform .error input[type="text"]{border: 1px solid red;}
.OHform .error select{border: 1px solid red;}
.OHform .error::after{content:attr(data-error);color:red;}
.OHform .question.error p{color:red;}
.OHform .question.error p::after{content:'*';color:red;}
.OHform .warnCon{margin-top: 10px;}
.OHform .warnCon.error label{color:red;}

footer{background: #01314E;padding: 20px 0;box-sizing: border-box;height: 80px; }
footer ul{display: flex;justify-content: center;}
footer ul li{border-right: 1px solid #eee;padding:0 10px;margin-bottom:10px;}
footer ul li:last-Child{border:0;}
footer ul a{text-decoration: none;color: #eee;position: relative;}
footer ul a::after{content:'';display: block;position:absolute;bottom:-3px;left: 45%;height:2px;width: 0;background: #808080;transition: all .8s;}
footer ul a:hover::after{left: 0;width: 100%;}
footer>p{text-align: center;color: #eee;}

.bottom-bt{ display: none;}

/*感謝頁*/
.grateful { padding:40px calc((100% - 1000px)/2) 70px calc((100% - 1000px)/2); overflow: hidden; background:url(../images/grateful_bg.jpg); text-align: center; min-height: calc(100% - 80px); }
.grateful p{ margin: 2px 0; font-size: 24px; line-height: 1.3;}
.grateful p span{ color: #3196CD; font-weight: bold;}
.grateful>img{ margin: 40px 0 0;}
.grateful h3{ margin: 10px auto ; width: 70%; padding: 10px 0; font-size: 36px; color: #01314E; border-top: 1px dashed #01314E;  border-bottom: 1px dashed #01314E;}

.grateful .ad{ display: flex; justify-content: space-around;}
.grateful .ad img{ margin: 20px 0 0;}
.grateful .ad p a{ display: block; margin: 20px 0 0; padding: 10px; background: #3196CD; color: #fff; border-radius: 50px; font-size: 26px; font-weight: bold;}


/* ===== table ===== */
@media screen and ( min-width:768px ) and ( max-width:1024px ){

header{background:url('../images/m-header.jpg') no-repeat; padding-bottom: 50%;}
    .header::after{	top: 20px;left: 200px;width:380px;height: 107px;}

    .story{padding:50px 20px; }
    .story h2{font-size: 36px;}
    .story h2::after{height: 10px; bottom:-5px;}
    .story ul{ height: 600px;}
    .story ul li:nth-Child(1){ top: 2%; left: -10%;}
    .story ul li:nth-Child(2){ top: 5%; right: -10%;}
    .story ul li:nth-Child(3){ bottom: 6%; left: -10%;}
    .story ul li:nth-Child(4){ right: -10%; bottom: 0%;}
    .story ul li img { margin: 0; width:60%;}

    .benefit{padding:50px 20px}
    .benefit h2{font-size: 36px;;margin-bottom:10px;}
    .benefit p{ font-size: 20px;}
    .benefit .content{ margin: 50px 0 0;}
    .benefit .content img{ width: 100%;}
    .benefit .person{ padding: 50px 10px 0 ;}

    .onThelist{ padding:50px 20px 70px;}
    .onThelist h2{font-size: 50px;}
    .onThelist h2::after{height: 10px;bottom:-5px;}
    .onThelist ul{margin-top:50px;}
    .onThelist ul .top01{height: 150px;}
    .onThelist ul .top01 a{padding: 50px 10px 20px; }
    .onThelist ul .top01 a::after{left:40%;}
    .onThelist ul .top01 p.tit{font-size: 22px;}
    .onThelist ul .top02{height: 150px;}
    .onThelist ul .top02 a{padding: 50px 10px 20px; }
    .onThelist ul .top02 a::after{left:40%;} 
    .onThelist ul .top02 p.tit{font-size: 22px;}

    .onThelist ul .down{ height: 140px; margin-top:50px; padding: 10px;}
    .onThelist ul .down h3{ margin: 0 0 20px; padding: 8px ; background-color: #989898; border-radius: 30px; font-size: 20px; }
    .onThelist ul .down p{ text-align: left; font-size: 15px; font-weight: normal; line-height: 1.5;}
    .onThelist ul .down>a{font-size: 24px;font-weight: bold;color: #333;text-decoration: none;line-height: 1.2;box-sizing: border-box;display: block;padding: 10px 0;}

    .formCon{padding:50px 20px; flex-wrap: wrap;}
    .join{ width:70%;margin-right: 0; text-align: center;}
    .join h2{ padding: 15px; border-radius: 50px;font-size: 32px;margin:20px 0 10px;text-align: center;}
    .join p{ margin: 0 30px;font-size: 18px;}
    .join img{ width: 60%;}

    .OHform{width: 100%; }

    footer ul{ flex-wrap: wrap;}

    /*感謝頁*/
    .grateful { padding:30px 4%; background: #FFC655; }
    .grateful p{ font-size: 20px;}
    .grateful img{ margin: 20px 0; width: 100%;}
    .grateful h3{ margin: 0 auto 10px ; width: 80%; font-size: 30px;}

    .grateful .ad{ display: flex; justify-content: space-around; }
    .grateful div{ margin:0 20px;}
    .grateful .ad img{ margin: 20px 0 0;}
    .grateful .ad p a{ border-radius: 50px; font-size: 20px;}

}

/* ===== phone ===== */
    @media(max-width: 600px){
    body { padding-bottom: 150px; }

	header{background:url('../images/m-header.jpg');padding-bottom: 140%;background-size: cover;}	
	header::after{display:none !important;}
    main{ padding-bottom: 50px;}

    .story {padding:40px 4% 20px;} 
    .story h2{font-size: 32px;}
    .story h2::after{height: 10px;bottom:-6px;}
    .story ul{ height: auto;}
    .story ul li{position:static;}
    .story ul li img { margin: 10px 0; width:100%;}

    .benefit{padding:40px 4% 10px;}
    .benefit h2{font-size: 32px; line-height: 1.2; margin-bottom: 10px;}
    .benefit p{ font-size: 20px; line-height: 1.2;}
    .benefit .content{ margin: 20px 0 0; flex-wrap: wrap; }
    .benefit .content img {width: 100%;}
    .benefit .person{ padding: 40px 0 0 0;}

    .onThelist{padding:40px 2% 10px;}
    .onThelist h2{font-size: 52px; margin-bottom:20px; z-index: 999;}    
    .onThelist ul{flex-wrap: wrap;margin-top:0;}
    .onThelist ul li{width: 90%;margin:80px auto 40px auto;}
    .onThelist ul .down{ margin-top:50px;}
    .onThelist>a{margin-top: 0;}
    .onThelist>img{width: 15%;}

    .formCon{padding:40px 3% 30px; flex-wrap: wrap;}
    .join{width:100%;margin-right: 0;}
    .join h2{ padding: 15px;font-size: 28px;margin:0 0 20px;}
    .join p{ margin: 0 20px; font-size: 22px;}
    .join img{ width: 100%;}

    .OHform{ margin: 20px 0 0; box-shadow: 6px 6px 0 #B2B2B2;padding:20px 25px; width: 100%; line-height: 1.3;}
    .OHform h3{ font-size: 24px; font-weight: bold; line-height: 1.3;}
    .OHform .fname, .OHform .phone{width: 100%;}

    footer{ display: none;}
    footer ul{ flex-wrap: wrap; }
    
    .bottom-bt { display: block; position: relative;}

    .bottom-bt a{ 
        width: 100%; height: 40px; background-color: #f60; position: fixed; z-index:999; left: 0; bottom: 0; padding: 15px 0 0; 
        box-shadow:10px 10px 10px 10px rgba(0, 0, 0, 0.2);
        color: #ffffff; font-size: 22px; text-align: center; font-weight: bold; text-decoration: none ;
        cursor: pointer; 
	}
    .bottom-bt p::after{ 
        content:'\f0a5'; font-family: "Font Awesome 6 Free"; transform:  translateY(-50%); position: absolute; right:70px;
        animation:handmove 1s linear infinite;}

    @keyframes handmove{
        0%{transform: translateX(100%);}
        25%{transform: translateX(90%);}
        75%{transform: translateX(120%);}
        100%{transform: translateX(100%);}
    }
    
    .gotop{ display: none;}

    /*感謝頁*/
    .grateful { padding:30px 4%; background: #FFC655; }
    .grateful img{ width: 100%;}
    .grateful p{ margin: 2px 0; font-size: 18px;}
    .grateful h3{ margin: 10px auto; width: 80%; padding: 10px 0; font-size: 24px; line-height: 1.3;}
    .grateful .ad{ display: flex; justify-content: space-around; flex-wrap: wrap;}
    .grateful .ad p a{ font-size: 22px;}

}
