/*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: #F2EAD7;
}

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;
    margin: 0;
}

h3 {
    font-size: 1.4rem;
    margin: 0;
}

h4 {
    font-size: 1.2rem;
    margin: 0;
}

img{
    max-width: 100%;
}

a img {
    border: 0px;
}

.header {
    height: 35px;
    background-color: #424242;
}

.content {
    position: relative;
    overflow: hidden;
}


#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 .content{
    text-align: center;
    padding-top: 80px;
    padding-bottom: 50px;
    font-size: 0;
}

.books{
    margin-top: 30px;
}

.book{
    width: 33.33%;
    display: inline-block;
    vertical-align: top;
/*    border: solid 1px;*/
    padding: 20px;
    text-align: center;
}

.book h3{
    max-width: 250px;
    margin: 0 auto;
}

.s1 .content{
    padding-bottom: 50px;
}

.s1 .rec, .guide{
    text-align: center;
}

.s1 .rec img, .guide>img{
    margin-bottom: 20px;
}

.s1 .rec span{
    font-size: 1.4rem;
    font-weight: bold;
}

.s1 .guide{
    margin: 30px 0;
}

.s1 .guidebox{
    text-align: justify;
    background-color: #FEF6E6;
    border-radius: 20px;
    padding: 30px 40px;
    margin-top: 50px;
}

.s1 .guidebox:first-of-type{
    margin-top: 0;
}

.s1 .guidebox h3{
    color: #D88C12;
    margin-bottom: 10px;
}

.s1 .guidebox a{
    color: #E3474C;
}

.s1 .guidebox a:hover{
    text-decoration: underline;
}

.s1::after{
    content: "";
    display: block;
    max-width: 1920px;
    height: 130px;
    overflow: hidden;
    background-image: url(images/9789570851762_s2_after_bg.svg);
    background-position: center center;
}

.youtube{
    background-color: #333;
    color: white;
    width: 600px;
    height: 400px;
    margin: 30px auto;
    text-align: center;
    line-height: 400px;
}

.s3, .s5{
    background-color: #fff;
    font-size: 0;
}

.story{
    margin-top: 30px;
}

.story .left, .story .right{
    display: inline-block;
    vertical-align: top;
}

.story .left{
    width: 60%;
}

.story .right{
    width: 40%;
    padding-left: 30px;
}

.story .right 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;
    
}

.s3 .story .right span{
    background-color: #C3CFDD;
}

.s3 .story .right span:hover {
    background-color: #8EA1B2;
}

.s4 .story .right span{
    background-color: #F2DDDF;
}

.s4 .story .right span:hover {
    background-color: #CCAAAE;
}

.s5 .story .right span{
    background-color: #DDC9B8;
}

.s5 .story .right span:hover {
    background-color: #BAA493;
}

.read h2{
    text-align: left;
    margin-bottom: 20px;
}

.read h2::before{
    content: "";
    display: inline-block;
    width: 54px;
    height: 18px;
    background-image: url(images/9789570851762_color.png);
    vertical-align: middle;
    margin-right: 10px;
}

.read{
    text-align: center;
    margin-top: 50px;
}

.read-img{
    width: 50%;
    max-width: 470px;
    display: inline-block;
    padding: 10px;
    vertical-align: top;
}

.read .left{
    margin-top: 50px;
}

.read-img img{
    margin-bottom: 20px;
    cursor: zoom-in;
}

.s3::after{
    content: "";
    display: block;
    max-width: 1920px;
    height: 130px;
    overflow: hidden;
    background-image: url(images/9789570851762_s3_after_bg.svg);
    background-position: center center;
}

.s4{
    background-color: #F4C6C8;
    font-size: 0;
}

.s4::after{
    content: "";
    display: block;
    max-width: 1920px;
    height: 130px;
    overflow: hidden;
    background-image: url(images/9789570851762_s4_after_bg.svg);
    background-position: center center;
}

.s5::after{
    content: "";
    display: block;
    max-width: 1920px;
    height: 130px;
    overflow: hidden;
    background-image: url(images/9789570851762_s5_after_bg.svg);
    background-position: center center;
}

.bottom{
    height: 100px;
    width: 100%;
    position: relative;
}

.bottom img{
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 70%;
}

.r01{
    margin-bottom: 100px;
}

.r01-text{
    background-color: #FEF6E6;
    border-radius: 20px;
    padding: 50px;
    max-width: 1000px;
}

.r01-text h4{
    color: #E3474C;
}

.r01-text h2{
    color: #D88C12;
    margin-bottom: 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;
    }
    
    .fb-like{
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }
    
    .story .left img:nth-of-type(2){
        display: none;
    }
    
    .s4 .story .left, .s4 .story .right{
        position: relative;
    }
    
    .s4 .story .left{
        left: 40%;
    }
    
    .s4 .story .right{
        left: -60%;
        padding-left: 0;
        margin-top: 50px;
    }
    
    .top h2::before{
        content: "";
        display: inline-block;
        width: 54px;
        height: 18px;
        background-image: url(images/9789570851762_color.png);
        vertical-align: middle;
        margin-right: 10px;

    }

    .top h2::after{
        content: "";
        display: inline-block;
        width: 54px;
        height: 18px;
        background-image: url(images/9789570851762_color.png);
        vertical-align: middle;
        margin-right: 10px;
        transform: scaleX(-1);

    }
    
}

@media only screen and (max-width: 1024px){
    
    .story .left img:first-of-type{
        display: none;
    }
    
    .story .left img:nth-of-type(2){
        display: inline;
    }
    
}


/*-----Medium Screen-----*/

@media only screen and (max-width: 768px){
    
    .header-content {
        padding-left: 30px;
    }

    .content {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .fb-like{
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }
    
    .story .left, .story .right{
        width: 100%;
        max-width: 100%;
        display: block;
    }
    
    .story .left{
        text-align: center;
    }
    
    .story .right{
        margin-top: 30px;
        padding: 0;
    }
    
    .read-img{
        width: 100%;
        padding: 0;
    }
    
    .read .left{
        margin: 0;
    }

    
}


/*-----Phone-----*/

@media only screen and (max-width: 540px){
    
    .header-content {
        padding-left: 10%;
        width: 100%;
    }

    .content {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .fb-like{
        padding-left: 10%;
        padding-top: 15px;
    }
    
    #back-to-top {
        bottom: 0;
        right: 0;
    }
    
    .top .content>h2{
        font-size: 1.4rem;
        margin-top: 15px;
    }
    
    .top .content>p{
        display: none;
    }
    
    .book{
        padding: 0 5px;
    }
    
    .book h3{
        font-size: 1rem;
    }
    
    .rec img, .guide img{
        max-width: 140px;
    }
    
    .s1 .guidebox{
        padding: 25px;
    }
    
    .r01-text{
        padding: 30px;
    }
    
}