@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);

*{
    font-family: "Noto Sans TC","微軟正黑體", "sans-serif";
    box-sizing: border-box;
}

body, html{
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #EAE8D9;
}


a{
    text-decoration: none;
    color: black;
}

a img{
    border: 0px;
}

.header{
    height: 35px;
    background-color: #424242;
}

.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;
    letter-spacing: 4px;
    font-weight: 400;
}

img{
    border: 0px;
}

#back-to-top{
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}

map *:focus{
    outline: none;
}

.top{
    background-image: url(images/9789570850963a_01.jpg);
    background-position: top center;
    background-repeat: no-repeat;
}

.cha{
    padding-top: 80px;
}

.cha img{
    width: 100%;
}

.cha-1, .cha-2{
    width: 45%;
    max-width: 484px;
    display: inline-block;
}

.cha-1{
    margin-right: 4%;
}

.intro{
    padding-top: 60px;
    text-align: center;
}

.intro-left, .intro-right{
    display: inline-block;
    vertical-align: middle;
}

.intro-left{
    width: 60%;
    margin-right: 2%;
}

.intro-left p{
    text-align: justify;
}

.intro-right{
    width: 36%;
    text-align: center;
}

.intro-right img{
    width: 80%;
}

.intro-right a img{
    -webkit-filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

.intro-right span{
    padding: 5px 20px;
    margin-left: 12px;
    color: #443C29;
    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: 500;
    border: solid 1px #443C29;
}

.intro-right span:hover{
    background-color: #DBD8CC;
}

.intro-right p{
    margin-top: 20px;
    text-align: center;
    color: #443C29;
/*    font-size: 0.9rem;*/
}

.line hr{
    height: 1px;
    border: none;
    border-top: 4px dashed #D8D6CA;
    margin: 50px 0;
}

h2, h3{
    display: inline-block;
    margin: 0;
}

h2{
    color: #525E2C;
    margin-bottom: 15px;
}

h3{
    color: #965E2D;
}

.read-text{
    background-color: #D8D6CA;
    border-top: solid 2px #75A0A0;
    border-bottom: solid 2px #75A0A0;
    padding: 30px 50px;
    position: relative;
}

.read-text::before{
    content:"";
    display: inline-block;
    background-color: #75A0A0;
    color: white;
    position: absolute;
    width: 80px;
    height: 35px;
    top: -35px;
    left: 0px;
    text-align: center;
    line-height: 35px;
    border-radius: 10px 10px 0 0;
}

.rt1::before{
    content:"選文 1";
}

.rt2::before{
    content:"選文 2";
}

.read-text a{
    color: #E95532;
}

.read-text a:hover{
    text-decoration: underline;
    color: #ED6F56;
}

.read-img img{
    width: 100%;
    max-width: 323px;
}

.r01 p{
    margin-top: 1rem;
}

/*-----Desktop-----*/

@media only screen and (min-width: 541px){
    
    html{
        font-size: 18px;
    }
    
    p{
        font-size: 1rem;
        line-height: 2rem;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .header-content{
        padding-left: 30px;
        max-width: 1200px;
    }
    
    .content{
        max-width: 1200px;
        margin: auto;
        padding: 0 80px;
        position: relative;
    }
    
    .fb-top{
        top: 20px;
        left: 30px;
    }
    
    .top .content{
        padding: 0px;
    }
        
    .top img:first-of-type{
        width: 100%;
        visibility: hidden;
    }
    
    .top img:nth-of-type(2){
        display: none;
    }
    
    .cha .content{
        text-align: center;
    }
    
    .read{
        padding: 50px 0;
    }

    .read-img, .read-text{
        float: left;
    }
    .rt2{
        margin-top: 80px;
        width: 60%;
    }
    
    .rt2 p:first-of-type{
        margin-bottom: 0px;
    }
    
    .rt2 p:nth-of-type(2){
        margin-top: 0px;
        line-height: 1.6rem;
    }
        
    .read-img{
        width: 38%;
        margin-top: 80px;
        margin-left: 2%;
        text-align: center;
    }
    
    .read .content::after{
        content: "";
        display: block;
        clear: both;
    }
    
    .fb-bottom{
        margin-bottom: 80px;
    }
    
    .r01 .content{
        padding-bottom: 20px;
    }
    
}

@media only screen and (max-width: 1200px){
    
    .top{
        background-image: url(images/9789570850963a_01-2.jpg);
        background-size: 100%;
    }
    
    
}

@media only screen and (max-width: 768px){
    
    .cha-1, .cha-2{
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    
    .cha-1{
        margin-bottom: 30px;
    }
    
    .intro-left{
        width: 100%;
        margin: 0 auto;
    }
    
    .intro-right{
        width: 100%;
    }
    
    .intro-right a img{
        max-width: 360px;
        margin-top: 30px;
    }
    
    .rt2{
        width: 100%;
    }
    
    .read-img{
        text-align: center;
        margin: 50px 0 0;
        width: 100%;
    }
    
}

/*-----Phone-----*/

@media only screen and (max-width: 540px){
    
    html{
        font-size: 10px;
    }
    
    .header-content{
        padding-left: 10%;
        width: 100%;
    }
    
    .content{
        width: 85%;
        overflow: hidden;
        margin: auto;
    }
    
    p{
        font-size: 1.6rem;
        line-height: 2.5rem;
    }
    
    .top{
        background-image: url(images/9789570850963a_01-3.jpg);
    }
    
    .top .content{
        width: 100%;
    }
    
    .top img:first-of-type{
        display: none;
    }
    
    .top img:nth-of-type(2){
        width: 100%;
        visibility: hidden;
    }
    
    .cha{
        padding-top: 0px; 
    }
    
    .intro{
        padding-top: 20px;
    }
    
    .read-text{
        padding: 20px 30px;
    }
    
    .read-text::before{
        font-size: 1.8rem;
    }
    
    .read .content{
        padding-top: 50px;
    }
    
    .rt1{
        margin-bottom: 60px;
    }
    
    h2{
        font-size: 2.5rem;
        display: block;
        margin-bottom: 0;
    }
    
    h3{
        font-size: 1.8rem;
        display: block;
    }
    
    .read-img{
        margin-bottom: 40px;
    }
    
    .fb-top{
        position: absolute;
        padding-left: 10%;
        margin-top: 20px;
    }
        
    .footer{
        margin-top: 40px;
    }
    
}