﻿@charset "utf-8";

/* /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
 共通設定及智慧型手機、小型平板電腦版型
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/

/*==========================================
 body
===========================================*/
html {
    width:100%;
}

body {
    width: 100%;
    margin: 0px auto 0px auto;
    padding: 0px;
    color: darkslategray;
    /* background-color: #fbe5d6; */
}

a {
    color:#000;
}

a:hover {
    color:#333;
    text-decoration:underline;
}

/*==========================================
 header style
===========================================*/
header {
    text-align:center;
}

header h2 {
    margin:0 auto;
    line-height:1.4;
    padding:5px;
    width:90%;
}

header h2 #master-title {
    width:100%;
    max-width:265px;
}

header {
    position:relative;
    overflow:hidden;
}

header ul#s_nav {
    position:relative;
    left:50%;
    float:left;
}

header ul#s_nav li {
    float:left;
    position:relative;
    left: -50%;
}

div#search {
    display: block;
    margin-bottom: 10px;
}

input#txtSearchWord {
    width: 120px;
    height: 21px;
    border-right: none;
    padding-left:10px
}

input#btnSearch {
    border: 2px solid gray;
    border-radius: 0;
    width: 23px;
    height: 23px;
    background-color: #e6e6e6;
}

.btn-search {
    vertical-align: bottom;
}

header ul#s_nav li a {
    display:block;
    /*font-size:0.8em;*/
    margin-right:20px;
    padding-left:20px;
    vertical-align:middle;
}

header ul#s_nav li.to-login a {
    background:url(../../Images/login-32.png) no-repeat left center;
    background-size:15px;
    color:red;
}

header ul#s_nav li.logged-info {
    font-size:0.8em;
}

header ul#s_nav li.logout a {
    background:url(../../Images/logout-32.png) no-repeat left center;	
    background-size:15px;
}

header p {
    width:100%;
}

header p img {
    width:100%;
    height:auto;
    max-width:960px;
}

/* 電腦或大型平板的版型設定：769px～960px */
@media only screen and (min-width: 769px) {
    header {
        position:static;
        overflow:visible;
    }
    header h2 {
        text-align:left;
        padding:5px;
        width:280px;
        float:left;
    }
    header h2 #master-title {
    
    }

    div#search {
        display: inline-block;
        margin-top:20px;
    }

    header ul#s_nav {
        float:right;
        margin-top:20px;
        position:static;

        margin-bottom:15px;
    }

    header ul#s_nav li {
        float:left;
        position:static;
    }
}

/* 電腦版型設定：961px以上固定版型 */
@media only screen and (min-width: 961px) {
    header {
        width:960px;
        margin-left:auto;
        margin-right:auto;
    }
}



/*==========================================
 global navigation style
===========================================*/
nav ul {
    margin-bottom: 15px;
}

nav ul li {
    text-align: center;
    float: left;
    width: 50%;
    border-bottom: 2px solid #000;
}

nav ul li:nth-child(odd) {
    width: 49%;
    border-right: 1px dotted #000;
}

nav ul li div{
    display: block;
    width: 100%;
}

nav ul li img {
    display:inline-block;
    width:20px;
}

/* 電腦或大型平板的版型設定：769px～960px */
@media only screen and (min-width: 769px) {
    nav {
        text-align: center;
        margin: 10px auto 15px auto; 
    }

    nav ul li {
        text-align: center;
        float: left;
        width: 16%;
        border-bottom: none;
        border-right: 1px dotted #000;
    }

    nav ul li:nth-child(odd) {
        width: 17%;
        border-bottom: none;
    }

    nav ul li img {
        display:inline-block;
        width:20px;
    }

    nav ul li a{
        display: block;
    }
}


/* 電腦版型設定：961px以上固定版型 */
@media only screen and (min-width: 961px) {
    nav {
        max-width: 960px;
    }

    nav ul{
        margin-left: auto;
        margin-right: auto;
    }

    nav ul li:nth-child(odd) {
        border-bottom: none;
    }
}

/*==========================================
 back to 
===========================================*/
.back {
    writing-mode:vertical-rl;
    position:fixed;
    right:2px;
    background-color:black;
    color:white;
    opacity:0.6;
    padding:5px 3px;
}

.back a {
    color:white;
}

.back a:hover {
    color:yellow;
    text-decoration:underline;
}

#backmarket {
    top: 250px;
}

/*==========================================
 content area style
===========================================*/
div#contents {
    padding-bottom: 90px;
}

@media only screen and (min-width: 769px) {
}

@media only screen and (min-width: 961px) {
    div#contents {
        max-width: 960px;
        margin: 0 auto;
    }
}

/*==========================================
 footer
===========================================*/
footer {
    min-height:150px;
}