@import url(reset.css);

body{
    background-color: #fff;
    /* font-family: 'M PLUS Rounded 1c', sans-serif; */
    /* font-family: 'Noto Sans TC', sans-serif; */
    font-family: 'Public Sans', sans-serif;
}

/* --------- header top --------- */

header{
    margin: auto;
    width: 100%;
    height: 650px;
    background-image: url("../IMG/rental/top_bg.jpg");
    background-repeat:no-repeat;
    background-size: cover;
    background-position: top center;

    position: relative;
    overflow: hidden;
}

.header-top{
    height: 75px;
    background-color:#19297C;
    
    position: relative;
}

.header-top:before{
    content: '';
    display: block;
    height: 150px;
    background-color: rgb(25, 41, 124, 50%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0% 100%); 
}

.header-menu{
    width: 1366px;
    margin: auto;
    display: flex;
    
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;    
}

.header-menu .logo{
    width: 200px;
    height: 250px;
    background-color: #fff;
    display: block;
    clip-path: polygon(0 0, 100% 0%, 100% 85%, 0% 100%);   
}

.header-menu .logo img{
    width: 150px;
    margin: auto;
    padding-top: 40px;
    display: block;
}

.header-menu ul{
    display: flex;
    margin-left: auto;
    width: 800px;
    height: 75px;
    
    position: relative;
}

.header-menu ul::before{
    content: 'RENTAL';
    color: #fff;
    font-size: 64px;
    font-weight: bold;

    position: absolute;
    bottom: -520px;
    left: -500px;
    z-index: 99;
}

.header-menu li{
    flex-grow: 1;
}

.header-menu li a{
    line-height: 75px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    position: relative;
}

.header-menu li a:before{
    content: '';
    display: block;
    width: 3px;
    height: 30px;
    background-color: #fff;

    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto; 
}

.header-menu li:nth-child(1)>a:before{
    display: none;
}

.header-menu li a:hover{
    color: #FFB630;
}

/* <!-- ----------- hambur ----------------- -- */

.hambur{
    display: none;
}

.bar{
    display: block;
    width: 40px;
    height: 5px;
    background-color: #FFB630;
    margin-bottom: 8px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.hambur.active .bar{
    opacity: .8;
}

.hambur.active .bar:nth-child(1) {
    width: 20px;
    transform: translateX(40px);
}

.hambur.active .bar:nth-child(2) {
    transform: translateX(20px); 
}

.hambur.active .bar:nth-child(3) {
    width: 60px;
}

/* --------- header bottom --------- */

.header-bottom{
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    
    clip-path: polygon(0 20%, 100% 70%, 100% 100%, 0% 100%);
}

.header-bottom img{
    display: block;
    right: 0;
    left: 0;
    margin: auto;
}



/* -------------- main -------------- */

.main{
    width: 1366px;
    margin: auto;
    padding-top: 150px;
}

.item{
    width: 1000px;
    height: 400px;
    margin: auto;
    margin-bottom: 150px;
}

.item h3{
    font-size: 50px;

    position: relative;
}

.item h3:after{
    content: '';
    display: block;
    width: 500px;
    height: 50px;
    background-color: yellow;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);

    position: absolute;
    top: 20px;
    left: -30px;
    z-index: -1;
}

.item:nth-child(2) h3::after{
    content: '';
    display: block;
    width: 300px;
    height: 50px;
    background-color: yellow;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);

    position: absolute;
    top: 20px;
    left: -30px;
    z-index: -1;
}

.item ul{
    display: flex;
    margin-top: 100px;
}

.item .item-pic{
    border: 3px solid black;
    width: 200px;
    height: 200px;
    display: block;
    margin: auto;
}

.item .item-pic img{
    width: 200px;
}

.item .item-pic p{
    font-size: 28px;
    margin: 20px;
    text-align: center;
}

.item .item-pic p:nth-child(2){
    font-size: 20px;
}


/* -------------- animation area -------------- */

.ani_area{
    position: relative;
}

.road{
    background-image: url(../IMG/rental/road.png);
    background-repeat: no-repeat;
    background-position: bottom;
    height: 200px;
}

.man{
    width: 150px;

    position: absolute;
    right: -150px;
    bottom: 30px;

    animation: man 5s linear infinite;
}

@keyframes man{
    0%{
        right: -150px;
        transform: translateY(0px);
        transform: rotate(0deg);
    }
    30%{
        right: 600px;
        transform: translateY(-80px);
    }
    40%{
        right: 750px;
        transform: translateY(-80px);
        transform: rotate(-900deg);
    }
    45%{
        right: 850px;
        transform: translateY(-80px);
        transform: rotate(800deg);
    }
    50%{
        right: 900px;
        transform: rotate(700deg);
    }
    100%{
        right: 1750px;
        
        transform:translateY(-70px);
        
        
    }
    
}