/*Google fonts*/

/*黑體*/

@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
/*楷體*/

@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);
/*明體*/

@import url(https://fonts.googleapis.com/earlyaccess/cwtexming.css);

*{
    font-family: 'cwTeXKai', '標楷體', serif;
    box-sizing: border-box;
}

body, html{
    width: 100%;
    margin: 0px;
    padding: 0px;
}

html{
    background-image: url(https://www.linkingbooks.com.tw/LNB/top/2019/9789570850260_20190819/images/9789570850260_bg.png);
}

a{
    text-decoration: none;
    color: black;
}

a img{
    border: 0px;
}

.header{
    height: 35px;
    background-color: #424242;
}

.header-content{
    margin: auto;
    position: relative;
}

.header-content>a img{
    margin-top: 5px;
}

.lang{
    float: right;
    color: white;
}

.lang p, .lang a{
    color: white;
    font-family: "Noto Sans TC", "微軟正黑體", "sans-serif";
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 35px;
}

.lang p{
    margin: 0;
    margin-right: 30px;
}

.footer{
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #999;
    clear: left;
}

.footer h5{
    margin: 0px;
    letter-spacing: 4px;
    font-weight: 400;
    font-family: "Noto Sans TC","微軟正黑體", "sans-serif";
}

img{
    border: 0px;
}

#back-to-top{
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}

map *:focus{
    outline: none;
}

.book-name{
    text-align: center;
    padding: 30px 20px 50px;
}

.book-name img{
    max-width: 100%;
}

.top{
    background-image: url(https://www.linkingbooks.com.tw/LNB/top/2019/9789570850260_20190819/images/9789570850260a_01.jpg);
    height: 350px;
    text-align: center;
    padding: 50px 20px;
}

.top img:first-child{
    max-width: 25%;
}

.top img:nth-child(2){
    max-width: 70%;
}

.section-1{
    padding: 50px 20px;
    text-align: center;
}

.section-1 p{
    margin-top: 20px;
    font-weight: bold;
}

.section-1 img{
    display: block;
    margin: auto;
    max-width: 100%;
}

.s2 img{
    max-width: 100%;
}

.s2-1, .s3-2, .s6-2{
    text-align: center;
}

.s3-1 img, .s6-1 img:first-of-type{
    border-left: solid 5px #B92A1F;
    padding-left: 20px;
    max-width: 100%;
}

.section-3, .section-4{
    margin-top: 30px;
    margin-bottom: 30px;
}

.s3-1 p{
    padding-left: 25px;
    margin-top: 10px;
}

.s4-2 p, .section-5 p{
    font-weight: bold;
}

.section-5 p:first-of-type{
    margin-top: 20px;
}

.section-5 p{
    padding-left: 25px;
}

.section-5 p:last-of-type{
    margin-bottom: 30px;
}


.s4-2 span, .section-5 span{
    border: solid 1px black;
    width: 100px;
    display: inline-block;
    margin-bottom: 5px;
    text-align: center;
    margin-right: 10px;
    line-height: 20px;
    padding: 1px 0;
}

.section-5 .s5-span-jp{
    width: 220px;
}

.section-5{
    background-image: url(https://www.linkingbooks.com.tw/LNB/top/2019/9789570850260_20190819/images/9789570850260_bg-2.jpg);
    margin-top: 80px;
    padding: 80px 0px;
}

.section-5 .content{
    position: relative;
}

.section-5 .content::after{
    content: "";
    display: block;
    clear: both;
}

.s5-1{
    border: solid 1px black;
    padding: 30px;
    position: absolute;
    right: 50px;
    top: -160px;
}

.s5-2{
    border-left: solid 5px #B92A1F;
    padding-left: 20px;
    max-width: 100%;
}

.s6-1 p{
    padding-left: 25px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.section-6{
    padding: 80px 0 40px;
}

.section-7{
    padding-bottom: 80px;
    margin-top: 50px;
}

.logo-1{
    margin-right: 15px;
    margin-left: 25px;
}

.book p, .book span{
    font-family: "微軟正黑體", "sans-serif";
    font-size: 0.8rem;
    color: #B82D1F;
    font-weight: bold;
}

.book span{
    padding: 5px 20px;
    margin-left: 12px;
    border: solid 1px #B82D1F;
    font-weight: bold;
    transition-duration: 0.5s;
    -moz-transition-duration: 0.5s; /* Firefox 4 */
    -webkit-transition-duration: 0.5s; /* Safari 和 Chrome */
    -o-transition-duration: 0.5s; /* Opera */
    font-weight: 400;
}

.book span:hover{
    background-color: #B82D1F;
    color: white;
}

.section-7 .content{
    text-align: center;
}

.book{
    text-align: left;
    display: inline-block;
}

.section-8{
    background-image: url(https://www.linkingbooks.com.tw/LNB/top/2019/9789570850260_20190819/images/9789570850260_bg-3.jpg);
    height: 150px;
    background-position: top;
}

/*-----Desktop-----*/

@media only screen and (min-width: 481px){
    
    html{
        font-size: 20px;
    }
    
    .header-content{
        padding-left: 30px;
        max-width: 1200px;
    }
    
    .content{
        max-width: 1200px;
        margin: auto;
        padding: 0 40px;
    }
    
    .footer h5{
        font-size: 13px;
    }
    
    p{
        font-size: 1.1rem;
        line-height: 1.7rem;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .section-1 .title-img-2{
        display: none;
    }
    
    .s2, .s6{
        display: inline-block;
        vertical-align: middle;
    }

    .s2-1, .s3-1, .s4-1{
        width: 50%;
        margin-right: 8%;
    }
    
    .s6-1{
        width: 50%;
        margin-right: 4%;
    }
    
    .s2-2, .s3-2, .s4-2{
        width: 40%;
    }
    
    .s6-2{
        width: 44%;
    }
    
    .s5-img img{
        float: left;
        width: 24%;
        margin-right: 1%;
    }
    
    .book-small{
        margin-right: 50px;
    }
    
    .fb-top{
        margin-top: 30px;
    }
        
}

@media only screen and (max-width: 1000px){
    
    .s5-1{
        display: none;
    }
    .s5-img{
        width: 80%;
        margin: auto;
    }
    .s5-img img{
        float: left;
        width: 49%;
        margin-right: 1%;
        margin-bottom: 1%;
    }
    
    .logo-1, .logo-2{
        display: inline-block;
        width: 45%;
        margin: 0px;
    }
    
    .logo-1{
        max-width: 200px;
    }
    
    .logo-2{
        max-width: 175px;
    }
    
    .book-small{
        margin: 0 0 50px 0;
    }
}

@media only screen and (max-width: 700px){
    
    .section-1 .title-img-1{
        display: none;
    }
    
    .section-1 .title-img-2{
        display: block;
    }
    
    .section-1{
        padding-bottom: 20px;
    }
    
    .s2{
        width: 100%;
        margin: 0 auto;
    }
    
    .s2-1, .s3-2, .s6-1{
        width: 100%;
    }
    
    .content{
        margin: 0 auto;
    }
    
    .s3-1{
        margin-top: 50px;
    }
    
    .s3-1 p{
        padding-left: 0px;
        margin-top: 10px;
        margin-bottom: 30px;
    }
    
    .section-4 .content{
        text-align: center;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        padding-top: 30px;
    }
    
    .s4-1{
        -webkit-order: 2;
        order: 2;
    }
    
    .s4-2{
        display: inline-block;
        width: auto;
        text-align: left;
        -webkit-order: 1;
        order: 1;
        padding-bottom: 40px;
    }
    
    .s5-img{
        width: 100%;
    }
    
    .s6-2{
        margin-top: 50px;
    }
    
}


/*-----Phone-----*/

@media only screen and (max-width: 480px){
    
    html{
        font-size: 20px;
    }
    
    p{
        font-size: 1rem;
        line-height: 1.5rem;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .header-content{
        padding-left: 10%;
        width: 100%;
    }
    
    .content{
        width: 85%;
        overflow: hidden;
        margin: 0 auto;
    }
    
    .footer{
        font-size: 0.75rem;
        padding: 10px 50px;
    }
    
    .top{
        height: auto;
    }
    
    .s2-1{
        width: 100%;
        margin-right: 0;
    }
    
    .s2-1 img{
        width: 100%;
    }
    
    .book{
        width: 100%;
    }
    
    .book a img{
        width: 100%;
    }
    
    .section-4{
        margin-bottom: 50px;
    }
    
    .section-5{
        margin-top: 0px;
    }
    
    .section-7{
        margin: 0;
        padding-bottom: 0px;
    }
    
    .fb-top{
        margin-top: 30px;
        margin-left: 5%;
    }
    
    .section-5 p{
        padding-left: 0px;
    }
    
    .section-5 .s5-span-jp{
        width: 100%;
        margin-right: 0;
    }
    
    .section-5 p:nth-of-type(2) .s5-span-jp,
    .section-5 p:nth-of-type(3) .s5-span-jp{
        margin-top: 20px;
    }
    
    .s6-1 p{
        padding-left: 0px;
    }
    
    .logo-1, .logo-2{
        margin: 0px;
        max-width: 45%;
        display: inline-block;
    }
    
}