@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);

html {
    font-size: 100%;
}

body {
    font-family: "cwTeXKai", serif;
    line-height: 1.7;
    color: #432;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.logo {
    width: 210px;
    margin-top: 14px;
}

.main-nav {
    display: flex;
    font-size: 1.3rem;
    list-style: none;
    margin-top: 34px;
}

.main-nav li {
    margin-left: 36px;
}

.main-nav li:first-child a {
    border-color: #800020;
    background-color: #800020;
}

.main-nav a {
    color: #fff;
    border-style: solid;
    border-color: #432;
    background-color: #432;
    border-radius: 5px;
}

.main-nav a:hover {
    color: #ced1b3;
}

.page-header {
    display: flex;
    justify-content: space-between;
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

#search {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

#search li {
    padding: 1rem 0.5rem;
}

#search #article_keyword {
    font-size: 1.2rem;
    background: #F8F4F1;
    color: #000;
    border-radius: 5px;
    padding: 0.1rem 0.6rem;
    transition-duration: 0.4s;
    width: 400px;
}

#search #article_search {
    font-size: 1.2rem;
    background: #98a0a5;
    color: #fff;
    border-radius: 5px;
    padding: 0.1rem 0.6rem;
    transition-duration: 0.4s;
}

/* HOME */
.home-content {
    text-align: center;
    margin-top: 10%;
}

.home-content p {
    font-size: 1.125rem;
    margin: 10px 0 42px;
}

/* 標題 */
.page-title {
    font-size: 5rem;
    font-weight: normal;
}

/* 按鈕 */
.button {
    font-size: 1.375rem;
    background: #432;
    color: #fff;
    border-radius: 5px;
    padding: 18px 32px;
    transition-duration: 0.4s;
}

.button2 {
    font-size: 1.375rem;
    background: #800020;
    color: #fff;
    border-radius: 5px;
    padding: 18px 32px;
    transition-duration: 0.4s;
}

.button:hover,.button2:hover {
    background: #ced1b3;
    color:#87888e
}

/* 大型背景影像 */
.big-bg {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

#home {
    background-image: url(/assets/web/images/dawn-3208158_1280.jpg);
    background-color: #b07f72;
    background-blend-mode: hard-light;
    min-height: 100vh;
}

#home .page-title {
    text-transform: none;
}

/*introduction*/
#introduction {
    background: radial-gradient(circle farthest-side, #fceabb, #f9eb8f);
    height: 270px;
    margin-bottom: 40px;
}

#introduction .page-title {
    text-align: center;
    text-shadow: 0px 0px 5px #f1eac3;
}

/*頁尾*/
footer {
    background: radial-gradient(circle farthest-side, #fceabb, #f9eb8f);
    text-align: center;
    padding: 26px 0;
}

footer p {
    color: #432;
    font-size: 1.50rem;
}

/*主要區域*/
article {
    width: 74%;
}

.post-info {
    position: relative;
    padding-top: 4px;
    margin-bottom: 20px;
}

.post-date {
    background: #8b0304;
    border-radius: 50%;
    color: #fff;
    width: 100px;
    height: 100px;
    font-size: 1.625rem;
    text-align: center;
    position: absolute;
    top: 0;
    padding-top: 10px;
}

.post-date span {
    font-size: 1rem;
    border-top: 1px rgba(255, 255, 255, .5) solid;
    padding-top: 6px;
    display: block;
    width: 60%;
    margin: 0 auto;
}

.post-title {
    font-size: 2rem;
    font-weight: normal;
    margin-left: 120px;
}

.post-cat {
    margin-left: 120px;
}

article img {
    margin-bottom: 20px;
}

article p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: black;
}

.search_result {
    color: #f00;
}

/*邊欄*/
aside {
    width: 22%;
}

.sub-title {
    font-size: 1.375rem;
    padding: 0 8px 8px;
    border-bottom: 2px #8b0304 solid;
    font-weight: normal;
    text-align: center;
}

aside p {
    padding: 12px 10px;
}

.sub-menu {
    margin-bottom: 60px;
    list-style: none;
}

.sub-menu li {
    border-bottom: 1px #ddd solid;
}

.sub-menu a {
    font-size: 1.25rem;
    color:#432;
    padding: 10px;
    display: block;
    transition-duration: 0.3s;
    border-radius: 2px;
}

.sub-menu a:hover {
    color: whitesmoke;
    background: #800020;
}

.introduction-contents {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

/*手機版----------------------------------------------*/
@media (max-width: 600px) {
    #search #article_keyword {
        width: 200px;
    }

    .page-title {
        font-size: 2.5rem;
    }
    /*HEADER*/
    .main-nav {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    .main-nav li {
        margin: 0 20px;
    }
    /*HOME*/
    .home-content {
        margin-top: 20%;
    }
    .page-header {
        flex-direction: column;
        align-items: center;
    }
    /*INTRO*/
    .introduction-contents {
        flex-direction: column;
    }
    article, aside {
        width: 100%;
    }
    #introduction .page-title {
        margin-top: 30px;
    }
    aside {
        margin-top: 60px;
    }
    .post-info {
        margin-bottom: 30px;
    }
    .post-date {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
    .post-date span {
        font-size: 0.875rem;
        padding-top: 2px;
    }
    .post-title {
        font-size: 1.375rem;
    }
    .post-cat {
        font-size: 0.875rem;
        margin-top: 10px;
    }
    .post-title, .post-cat {
        margin-left: 80px;
    }
    article p {
        font-size: 1.5rem;
    }
}

/*CATEGORY---------------------------------*/
#category {
    background: radial-gradient(circle farthest-side, #fceabb, #f9eb8f);
}
.page-title {
    text-align: center;
    text-shadow: 0px 0px 5px #ced1b3;
}
.grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    display: grid;
    gap: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    flex-wrap: wrap;
}

.catbutton {
    font-size: 1.3rem;
    background: #3d2b1f;
    color: #efdecd;
    border-radius: 7px;
    padding: 2px 4px;
    cursor: pointer;
    transition-duration: 0.4s;
    width: 70%;
}
.catbutton:hover {
    background-color: #b38b6d;
    color: #3d2b1f;
}

.catbutton2 {
    font-size: 1.3rem;
    background: #800020;
    color: #ffffff;
    border-radius: 7px;
    padding: 2px 4px;
    transition-duration: 0.4s;
    width: 70%;
}
.catbutton2:hover {
    background-color: #c2b280;
    color: #800020;
}


/*文章頁面*/
.post-title-pages {
    font-size: 2rem;
    font-weight: normal;
}
.wrapper-pages {
        max-width: 1100px;
        max-height: 114px;
        margin: 0 auto;
        padding: 0 4%; 
}
#introduction-pages {
    background: radial-gradient(circle farthest-side, #fceabb, #f9eb8f);
    height: 200px;
    margin-bottom: 40px;
}