@charset "utf-8";

* { box-sizing: border-box; }

body
{
    margin: 150px auto 0px;
    width: 1260px;
}

body.withBackground
{
    background-image: url('../images/pageBg_top.png'), url('../images/pageBg_bottom.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top, bottom;
    background-size: 100%, 100%;
}

/* header */
header
{
    margin-bottom: 20px;
    padding: 10px;
    width: 1260px;
    position: fixed;
    top: 0px;
    z-index: 1000;
    border-radius: 0px 0px 20px 20px;
    background-image: linear-gradient(to bottom, #aa8562, #91663d, #aa8562);
    white-space: nowrap;
}

/* header -> left block (title) */
#header_title_image
{
    display: inline-block;
    padding-left: 10px;
    width: 500px;
    position: relative;
    top: 13px;
    vertical-align: top;
    white-space: normal;
    cursor: pointer;
}

/* header -> right block (navigation) */
#header_normalNav_block
{
    display: inline-block;
    width: calc(100% - 500px);
    vertical-align: top;
    white-space: normal;
}

/* header -> right block (navigation) -> container of menus */
.header_menu_container
{
    display: inline-block;
    width: 100%;
}

/* header -> right block (navigation) -> container of menus -> menus */
#header_normalNav_block ul
{
    margin: 0px;
    padding: 0px;
    float: right;
    list-style: none;
}

/* header -> right block (navigation) -> secondary menu */
#header_normalNav_block
#header_secondaryMenu_block
{
    margin: 0px 0px 10px;
}

/* header -> right block (navigation) -> secondary menu -> items */
#header_secondaryMenu_block li
{
    display: inline-block;
    margin-right: 10px;
}

/* header -> right block (navigation) -> main menu */
#header_normalNav_block
#header_mainMenu_block
{
    margin: 15px 0px;
}

/* header -> right block (navigation) -> main menu -> items */
#header_mainMenu_block li
{
    display: inline-block;
    padding: 0px 10px;
}

/* header -> right block (navigation) -> menus -> items -> icons */
#header_normalNav_block ul li img
{
    vertical-align: top;
    margin-right: 5px;
    width: 25px;
}

/* header -> right block (navigation) -> menus -> items -> links */
#header_normalNav_block li a,
#header_normalNav_block li a:link,
#header_normalNav_block li a:visited
{
    vertical-align: top;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    line-height: 25px;
    cursor: pointer;
}

#header_normalNav_block li a:hover,
#header_normalNav_block li a:active
{
    color: #ffcf33;
}

/* header -> right block (navigation) -> menus -> items -> links */
#header_normalNav_block #header_secondaryMenu_block a,
#header_normalNav_block #header_secondaryMenu_block a:link,
#header_normalNav_block #header_secondaryMenu_block a:visited
{
    font-size: 18px;
}

/* header -> right block (navigation) -> subMenus */
#header_mainMenu_block      .header_subMenu_container,
#header_secondaryMenu_block .header_subMenu_container
{
    display: none;
    padding: 0px;
    position: fixed;
    z-index: 999;
}

.header_subMenu_block
{
    background-color: #c4a487;
    border: 2px solid #845a00;
    border-radius: 0px 0px 20px 20px;
}

#header_mainMenu_block
.header_subMenu_block li
{
    margin: 10px 0px;
    width: 100%;
    padding: 0px;
    text-align: center;
}

.header_subMenu_item
{}

/* blocker */
#header_blocker_block
{
    position: fixed;
    top: 0px;
    bottom: 0px;
    z-index: 1003;
    background-color: #000000cf;
}

/* aside -> navigation */
#header_sidebarNav_block
{
    display: none;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1005;
    overflow-y: auto;
    background-color: #91663d;
    background-image: url('../images/mobileMenuBg.png');
    background-size: 50%;
    background-position: bottom right;
    background-repeat: no-repeat;
    border-radius: 20px 0px;
}

/* aside -> navigation -> closing button */
#header_closeSidebarNav_button
{
    display: block;
    padding: 10px 0px;
    width: 100%;
    background-color: transparent;
    border: 3px solid #eae6e0;
    border-radius: 10px;
    color: #eae6e0;
    font-family: Arial;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

#header_closeSidebarNav_button:hover
{
    background-color: #eae6e0;
    border: 3px solid #dba800;
    color: #dba800;
}

/* aside -> navigation -> menu */
#header_sidebarNav_block ul
{}

/* aside -> navigation -> menu -> items */
#header_sidebarNav_block ul li
{
    padding: 5px 0px;
    color: #ffffff;
}

/* aside -> navigation -> menu -> items (with subMenu) */
.header_sidebarMenu_withSubMenu_item+li
{
    list-style: none;
}

/* aside -> navigation -> menu -> items (with subMenu) -> links */
.header_sidebarMenu_withSubMenu_item a
{
    color: #ffffff;
    cursor: default;
}

.header_sidebarMenu_withSubMenu_item a:hover
{
    color: #ffffff !important;
}

/* aside -> navigation -> menu -> items -> links (contains subMenu) */
#header_sidebarNav_block ul li a
{
    font-size: 20px;
}

/* aside -> navigation -> menu -> items -> links (no subMenu) */
#header_sidebarNav_block ul li a:link,
#header_sidebarNav_block ul li a:active
{
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

#header_sidebarNav_block ul li a:hover,
#header_sidebarNav_block ul li a:active
{
    color: #ffcf33;
}

/* section */
section
{
    margin: 0px auto 40px;
    color: #68686a;
    font-size: 21px;
}

/* section -> text */
section>h1
{
    margin: 10px 0px 30px;
    color: #5781a9;
    font-size: 37px;
}

section p
{
    margin: 30px 40px;
    color: #545454;
    font-size: 21px;
}

.section_iconOfHeading_image
{
    vertical-align: top;
    max-height: 50px;
}

article
{
    margin: 0px auto 40px;
    color: #68686a;
    font-size: 21px;
}

/* list */
section ul,
section ol
{
    margin: 0px 40px 0px 0px;
}

/* link */
section a:link,
section a:visited,
article a:link,
article a:visited
{
    border-bottom: 1px solid transparent;
    color: #a47300;
    text-decoration: none;
}

section a:hover,
section a:active,
article a:hover,
article a:active
{
    border-bottom: 1px solid #a47300;
}

/* footer */
footer
{
    margin: 0px;
    background-color: #91663d;
    background-image: url('../images/footerBg.png');
    background-position: top right;
    background-size: 50%;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: 微軟正黑體;
    font-size: 16px;
    white-space: nowrap;
}

/* footer -> address */
footer address
{
    display: inline-block;
    padding: 10px 60px 0px;
    width: 50%;
    font-family: 微軟正黑體;
    font-size: 16px;
    font-style: normal;
    line-height: 1.5;
    white-space: normal;
}

footer address h2
{
    margin: 0px;
    font-size: 24px;
}

#footer_bottomInfo_block
{
    display: inline-block;
    padding: 10px 40px;
    width: 50%;
    text-align: right;
    white-space: normal;
}

/* @overwrite form.css */
#footer_sitemap_button,
#footer_management_button
{
    padding-left: 35px;
    background-size: 20px 20px;
    font-size: 12px;
}

/* footer link */
footer a:link,
footer a:visited
{
    color: #ffffff;
    text-decoration: none;
}

footer a:hover,
footer a:active
{
    border-bottom: 1px solid #ffffff;
}

/* space block */
.halfTinySpace_block
{
    height: 25px;
}

.tinySpace_block
{
    height: 50px;
}

.smallSpace_block
{
    height: 100px;
}

/* RWD */
@media only screen and (max-width: 1260px)
{
    body
    {
        padding: 0px 20px;
        width: 100%;
    }

    #header_title_image
    {
        padding: 0px;
    }

    footer
    {
        white-space: normal;
    }

    footer address,
    #footer_bottomInfo_block
    {
        width: 100%;
    }
}

@media only screen and (max-width: 700px)
{
    section p
    {
        word-break: break-all;
    }

    footer address
    {
        padding: 10px 20px 20px;
        word-break: break-all;
    }
}

@media only screen and (max-width: 550px)
{
    #header_title_image
    {
        width: 100%;
    }
}

@media only screen and (max-width: 600px)
{
    /* Hide vertical split lines of footer menu. */
    footer ul li:not(:nth-child(1))::before
    {
        display: none;
    }

    footer ul li
    {
        width: 100%;
    }
}

