@charset "utf-8";

/* add */
#nav {
    clear: both;
    width: 100%;
    background: #2f5a98;
}

/* add */
#nav li {
    position: relative;
}

#nav li:after {
    content: "";
    position: absolute;
    background: #fff;
    margin: 0 auto;
    top: 50%;
    right: 2px;
    width: 1px;
    height: 20px;
    transform: translateY(-50%);
}

#nav li:last-child:after {
    display: none;
}

#nav a {
    color: #fff;
    margin: 0;
    width: 220px;
    height: 60px;
    line-height: 60px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    position: relative;
    -webkit-transition: all .2s ease;
    -moz-transition: all .2s ease;
    -o-transition: all .2s ease;
    -ms-transition: all .2s ease;
    transition: all .2s ease;
}

#nav a:hover {
    color: #fff;
    text-decoration: underline;
}

#Top #nav li:first-child a,
#Program #nav li:nth-child(2) a,
#List #nav li:nth-child(3) a,
#Detail #nav li:nth-child(3) a,
#Post #nav li:nth-child(4) a,
#stockQuotes #nav li:nth-child(5) a {
    color: #fff;
}

#Top #nav li:first-child a:before,
#Program #nav li:nth-child(2) a:before,
#List #nav li:nth-child(3) a:before,
#Detail #nav li:nth-child(3) a:before,
#Post #nav li:nth-child(4) a:before,
#stockQuotes #nav li:nth-child(5) a:before {
    border-left: 1px solid #fff;
}

#nav .badge {
    color: #fff;
    background: #70b52c;
    min-width: 10px;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 155px;
    transform: translateY(-50%);
}

/* add */
#nav_text {
    display: inline;
    text-align: center;
}

/* add */
#nav ul {
    clear: both;
    width: 1100px;
    margin: 0 auto;
}

/* add */
#nav ul li {
    float: left;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
}

#nav ul li:first-child {
    border-left: 0;
}

#path {
    height: 35px;
    line-height: 35px;
    clear: both;
}

#path a {
    color: #003570;
}

#path li {
    color: #003570;
    float: left;
    margin-right: 1em;
    font-size: 85%;
}

#mainimg {
    float: right;
    width: 700px;
}

.slide {
    position: relative;
}

/* add */
.slide .slide_item {
    position: absolute;
    top: 89px;
    left: 0;
}


@media screen and (max-width: 640px) {

    /* // nav sp
----------------------------------------------- */

    /* add */
    #nav {
        margin-bottom: 10px;
    }

    #nav ul {
        width: 94%;
        display: -webkit-flex;
        display: flex;
    }

    #nav ul:after {
        content: ".";
        display: block;
        height: 0;
        font-size: 0;
        clear: both;
        visibility: hidden;
    }

    #nav ul {
        display: inline-block;
    }

    /* Hides from IE Mac */
    * html #nav ul {
        height: 1%;
    }

    #nav ul {
        display: block;
    }

    /* End Hack */

    /* add */
    #nav ul li {
        float: left;
        box-sizing: border-box;
        width: 25%;
    }

    #nav ul li:first-child {
        border-left: 0;
        display: none;
    }

    #nav a {
        display: block;
        width: 100%;
        height: 100%;
        padding: 8px 2px;
        font-size: 11px;
        line-height: 1.1em;
        box-sizing: border-box;
    }

    #nav ul li a div.row1 {
        padding-top: 0.6em;
    }

    #nav a:link {
        background-image: none;
    }

    #nav a:hover {
        background-image: none;
    }

    #nav_text {
        padding-top: 0;
    }

    #Top #nav li:first-child a,
    #Program #nav li:nth-child(2) a,
    #List #nav li:nth-child(3) a,
    #Detail #nav li:nth-child(3) a,
    #stockQuotes #nav li:nth-child(5) a {
        border-bottom: none;
    }

    #nav a:before {
        bottom: -2px;
        height: 3px;
    }

    #nav a:hover:before {
        bottom: -2px;
        height: 3px;
    }

    #Top #nav li:first-child a:before,
    #Program #nav li:nth-child(2) a:before,
    #List #nav li:nth-child(3) a:before,
    #Detail #nav li:nth-child(3) a:before,
    #Post #nav li:nth-child(4) a:before,
    #stockQuotes #nav li:nth-child(5) a:before {
        bottom: -2px;
        height: 3px;
    }

    #nav .badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
    }


}

/* CLEARFIX 
=====CLEARFIX==========================================*/ 
.clearfix {
    zoom: 1;
}

.clearfix:after {
    content: url(/images/mediasouken/add/common/spacer.gif);
    display: block;
    clear: both;
    height: 0;
}

* html .clearfix {
    display: inline-table;
    display: block;
}