/*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;
    background-color: #c0d4cb;
}

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: 50px;
    right: 50px;
    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 .content{
    text-align: center;
    font-size: 0;
}

.top .content img{
    max-width: 100%;
}

.section2 .content{
    padding-top: 50px;
    padding-bottom: 50px;
}

.s2_title{
    text-align: center;
    transform: rotate(3deg);
}

.s2_title h2{
    background-color: #222222;
    color: white;
    display: inline-block;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.s2_box{
    background-color: #fff;
    padding: 50px;
    margin-top: 50px;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

.s2_box h3{
    color: #c12616;
    margin: 0;
}

.s2_box p{
    margin-bottom: 20px;
}

.s2_box p:last-of-type{
    margin: 0;
    color: #83918a;
    font-weight: bold;
}

.section3{
    background-color: #eaeaea;
}

.section3 .content{
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 0;
}

.author{
    display: inline-block;
    width: 50%;
    margin-right: 5%;
    margin-left: 7.5%;
    vertical-align: middle;
}

.author .title h3{
    margin: 0;
    display: inline-block;
    margin-right: 10px;
}

.author .title h4{
    margin: 0;
    display: inline-block;
}

.author .title{
    background-color: #222222;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.book{
    display: inline-block;
    width: 30%;
    text-align: center;
    margin-right: 7.5%;
    vertical-align: middle;
}

.book img{
    width: 100%;
    max-width: 260px;
}

.book p{
    color: black;
    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;
    color: black;
    border: solid 1px black;
}

.book span:hover {
    border: solid 1px #587f6c;
    color: #587f6c;
}

.section4{
    background-color: #e2dfc9;
    background-image: url(images/9789570851519_s4_bg.png);
    background-position: top right;
    background-repeat: no-repeat;
}

.section4 .content{
    padding-top: 50px;
    padding-bottom: 50px;
}

.section4 .content h2{
    color: #c12616;
    margin: 0;
    margin-bottom: 20px;
}

.section4 .content span{
    color: #486858;
}

.section5 .content{
    padding-top: 80px;
    padding-bottom: 50px;
}

.readbox{
    max-width: 1000px;
    background-color: #fff;
    padding: 30px 50px;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    background-image: url(images/9789570851519_s5_bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 50px;
}

.readbox:nth-of-type(3){
    margin-bottom: 80px;
}

.readbox h4{
    margin: 0;
    color: #c12616;
}

.readbox span{
    font-size: 0.9rem;
}

.readbox .line{
    width: 100%;
    background-color: #486858;
    height: 2px;
    margin: 15px 0;
}

.readbox p{
    margin-bottom: 0;
}

.readbox p:first-of-type{
    color: #486858;
}

.readbox a{
    color: #c12616;
}

.readbox a:hover{
    text-decoration: underline;
}

.readbox:first-of-type::after{
    content: "導讀";
    display: block;
    position: absolute;
    background-image: url(images/9789570851519_s5_mark.png);
    width: 66px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    color: white;
    font-weight: bold;
    right: 10px;
    top: -30px;
}

.readbox:last-of-type::after{
    content: "選文";
    display: block;
    position: absolute;
    background-image: url(images/9789570851519_s5_mark.png);
    width: 66px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    color: white;
    font-weight: bold;
    right: 10px;
    top: -30px;
}

.r01{
    margin: 0 auto;
    padding: 60px 0;
    background-color: #eaeaea;
}

.r01 h2{
    color: #c12616;
    margin: 0;
}

.r01 h2 span{
    background-color: #c12616;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 10px;
}

.r01 h3{
    color: #486858;
    margin: 0;
}

.r01 h4{
    color: #486858;
    margin: 0;
    font-weight: normal;
    
}

.r01 p:first-of-type{
    margin-top: 20px;
}




/*-----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: 0;
    }
    
    .top .content img:nth-of-type(2){
        display: none;
    }
    
    .fb-like{
        right: 100px;
        bottom: 50px;
    }
    
    
}


/*-----Medium Screen-----*/

@media only screen and (max-width: 768px){
    
    .header-content {
        padding-left: 30px;
    }

    .content {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .fb-like{
        left: 30px;
        bottom: 30px;
    }
    
    .top .content{
        padding: 0;
    }
    
    .top .content img:first-of-type{
        display: none;
    }
    
    .s2_title{
        transform: none;
    }
    
    .author{
        width: 100%;
        margin: 0;
    }
    
    .book{
        width: 100%;
        margin: 0;
        margin-top: 30px;
    }
    
    
}


/*-----Phone-----*/

@media only screen and (max-width: 540px){
    
    .header-content {
        padding-left: 10%;
        width: 100%;
    }

    .content {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .fb-like{
        left: 10%;
        bottom: 20px;
    }
    
}