/*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: "Noto Sans TC", "微軟正黑體", "sans-serif";
    box-sizing: border-box;
    /*    transition-duration: 0.5s;*/
}

body,
html {
    width: 100%;
    margin: 0px;
    padding: 0px;
}

html {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: black;
}

p,
ul {
    font-size: 1rem;
    line-height: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: justify;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

a img {
    border: 0px;
}

.header {
    height: 35px;
    background-color: #424242;
}

.content {
    position: relative;
}

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 10;
}

map *:focus {
    outline: none;
}

.header-content {
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-40%);
}

.footer {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #999;
    clear: left;
}

.footer h5 {
    margin: 0px;
    font-weight: 400;
    color: #333;
}

.top{
    background-color: #171817;
}

.top .content{
    font-size: 0;
    padding-top: 80px;
    padding-bottom: 10px;
}

.fb-like{
    left: 0;
    top: 0;
    margin: 30px 0 0 30px;
}

.s2 .content{
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.s2 .content>img{
    border: solid 1px #9D4D27;
    border-right: solid 8px #9D4D27;
    border-left: solid 8px #9D4D27;
    padding: 10px 30px;
    max-width: 100%;
}

.s2-text{
    max-width: 796px;
    margin: 0 auto;
    text-align: left;
}

.s2-text h4{
    margin: 20px 0 10px 0;
}

.s3{
    background-color: #EADDBE;
    font-size: 0;
}

.s3 .content{
    padding-top: 50px;
    padding-bottom: 50px;
}

.s3-left{
    width: 35%;
    text-align: center;
    display: inline-block;
    vertical-align: top;
}

.book img{
    width: 100%;
    max-width: 280px;
}

.book p{
    text-align: center;
    margin-top: 20px;
}

.book span {
    padding: 3px 15px;
    margin-left: 12px;
    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;
    border: solid 1px black;
}

.book span:hover {
    color: #fff;
    background-color: black;
}

.s3-right{
    width: 60%;
    display: inline-block;
    margin-top: 80px;
    text-align: right;
    margin-left: 5%;
}

.s3-right img{
    max-width: 100%;    
}

.author{
    max-width: 280px;
    margin: 0 auto;
    text-align: left;
    margin-top: 50px;
}

.author p:first-of-type{
    background-color: #9D4D27;
    color: white;
    display: inline-block;
    padding: 0 10px;
    border-radius: 30px;
}

.author p:nth-of-type(2){
    color: #9D4D27;
    font-size: 1.3rem;
    font-weight: bold;
}

.author p:nth-of-type(3){
    border-top: solid 1px #9D4D27;
    padding-top: 10px;
}

.blackbg{
    width: 100%;
    height: 150px;
    background-color: #171817;
    position: absolute;
    bottom: 0;
}

.s4{
    background-color: #171817;
    position: relative;
}

.s4 .content{
    padding-top: 50px;
    padding-bottom: 80px;
}

.s4-1 img:first-of-type{
    float: left;
    margin: 0 30px 20px 0;
}

.s4-1::after{
    content: "";
    display: block;
    clear: both;
}

.s4-1 h4{
    background-image: url(images/9789570851618_s4_03.jpg);
    width: 70px;
    display: inline-block;
    height: 54px;
    margin: 0 15px 0 0;
    text-align: center;
    vertical-align: bottom;
    padding-top: 14px;
    color: #9D4D27;
}

.s4-1 h4:nth-of-type(2){
    margin-top: 30px;
}

.s4-1 p{
    color: white;
    margin: 10px 0 0;
}

.s4-1 a{
    color: #FFF2CD;
}

.s4-1 a:hover{
    text-decoration: underline;
}

.s4-2{
    margin-top: 80px;
    font-size: 0;
    text-align: center;
}

.box{
    width: 30%;
    max-width: 300px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    position: relative;
}

.box img{
    width: 100%;
}

.box img:last-of-type{
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
}

.box:first-of-type, .box:nth-of-type(2){
    margin-right: 2%;
}

.box h4{
    margin: 15px 0 0;
    color: #EADDBE;
}

.box-title{
    text-align: center;
}

.box-title>*{
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    color: #9D4D27;
}

.box-title h2{
    margin: 30px 0px;
}

.box-title img{
    height: 1.8rem;
    margin-bottom: -5px;
}

.box-title img:first-of-type{
    margin-right: 10px;
}

.box-title img:nth-of-type(2){
    margin-left: 10px;
}

.box-content>img{
    float: left;
    margin: 0 20px 10px 0;
    max-width: 100%;
}

.r01{
    padding: 100px 0 80px;
}

.r01 h2{
    color: #9D4D27;
    margin: 0 0 20px;
    display: inline-block;
    vertical-align: middle;
}


/*-----Desktop-----*/

@media only screen and (min-width: 769px){
    
    .header-content {
        padding-left: 30px;
        max-width: 1200px;
    }

    .content {
        max-width: 1200px;
        margin: auto;
        position: relative;
        padding: 0 100px;
    }
    
    .top .content{
        padding-left: 50px;
        padding-right: 50px;
    }
        
    .top .content>img:first-of-type{
        width: 70%;
    }
    
    .top .content>img:nth-of-type(2){
        display: none;
    }

    .chicken{
        position: absolute;
        width: 40%;
        max-width: 550px;
        right: 50px;
        top: 60px;
        text-align: right;
    }

    .chicken img:first-of-type{
        width: 50%;
        max-width: 200px;
    }

    .chicken img:nth-of-type(2){
        width: 100%;
    }
    
    .s2 .content>img:nth-of-type(2){
        display: none;
    }
    
    .s3-m{
        display: none;
    }
    
    .s3{
    position: relative;
    margin-top: 92px;
    }

    .s3 .content::before{
        content: "";
        display: block;
        background-image: url(images/9789570851618_s3_bg.jpg);
        max-width: 558px;
        width: 100%;
        height: 92px;
        position: absolute;
        top: -92px;
    }
    
}


/*-----Medium Screen-----*/

@media only screen and (max-width: 768px){
    
    .header-content {
        padding-left: 30px;
    }

    .content {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    #back-to-top{
        right: 5px;
        bottom: 5px;
    }
    
    .fb-like{
        left: 0;
        top: 0;
        margin: 20px 0 0 10%;
    }
    
    .top .content{
        padding: 50px 0 0 0;
    }
    
    .top .content>img:first-of-type{
        display: none;
    }
    
    .top .content>img:nth-of-type(2){
        width: 100%;
    }
    
    .chicken{
        display: none;
    }
    
    .s2 .content{
        padding-top: 10px;
    }
    
    .s2 .content>img:first-of-type{
        display: none;
    }
    
    .s2 .content>img:nth-of-type(2){
        padding: 0px;
        border: 0;
    }
    
    .s3-left, .s3-right{
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .s3-right{
        margin-top: 30px;
    }
    
    .s3-m{
        display: none;
    }
    
    .blackbg{
        display: none;
    }
    
    .box-title img{
        display: none;
    }
    
    .box-content{
        text-align: center;
    }
    
    .box-content>img{
        float: inherit;
    }
    
    .r01{
        padding: 40px 0 80px;
    }
        
}


/*-----Phone-----*/

@media only screen and (max-width: 540px){
    
    .header-content {
        padding-left: 10%;
        width: 100%;
    }

    .content {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    #back-to-top{
        right: 0;
        bottom: 0;
    }
    
    .s3-right{
        display: none;
    }
    
    .s3-m{
        display: block;
        background-image: url(images/9789570851618_s3_menubg.png);
        background-position: top center;
    }
    
    .s3-m .content{
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .s3-m img{
        width: 100%;
        max-width: 424px;
    }
    
    .menu{
        background-color: #F7F7F7;
        padding: 20px;
        box-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    }
    
    .menu p{
        background-color: #E8E6E2;
        padding: 10px 30px;
        margin: 20px 0 0;
    }
    
    .s4-1 img:first-of-type{
        display: none;
    }
    
    .box{
        width: 100%;
        margin: 0 0 40px 0!important;
    }
    
    .r01{
        padding: 20px 0 50px;
    }
    
}