/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

/* ==========================================================================
    style colors
   ========================================================================== */

article header {
    color: #307D7E;
    background-color: #E0FFFF;
    border-bottom: 2px solid #307D7E;
    border-left: 6px solid #307D7E;
}

section {
    border: 2px solid #B9C2C8;
}

.main-h {
    background: #EBF4FA;
    border-left: 3px solid #2B3856;
    border-bottom: 1px solid #B9C2C8;
}

.main-h h1 {
    color: #2B3856;
}

.main-sec h2 { 
    color: #2B3856;
}
.main-sec a {
    color: #fff;
    background: #307D7E;
}

.detail-sec {
    color: #2B3856;
    background: #EBF4FA;
    border: 1px solid #B9C2C8;
}

.tb-sec div span:first-child,
.tb-sec2 div span:first-child {
    background-color: #F5FEFF;
    border: 3px solid #D7E0E6;
    font-size: 0.8em;
}

/* ==========================================================================
    detail styles
   ========================================================================== */

article {
    position: relative;
    display: table;
    margin: 0;
    padding: 0;
    font-size: 0.8em;
}

article header {
    margin: 5px;
    padding: 3px 5px;
}
article header div {
    float: left;
    display: inline;
    word-break: keep-all;
}
article header img {
    display: inline;
    margin: 0;
    padding: 0;
    height: 22px;
    vertical-align: text-bottom;
}
article header h1 {
    display: inline;
    margin: 0;
    padding: 0 5px;
    font-size: 1em;
}

article header p {
    float: right;
    display: inline;
    margin: 2px 10px 0 10px;
    font-size: 0.9em;
    vertical-align: bottom;
}

section {
    position: relative;
    display: table-block;
    overflow: hidden;
    margin: 5px;
    padding: 5px;
    min-height: 200px;
}

#to_top {
    position: fixed;
    right: 5px;
    bottom: 5px;
    width: 10%;
    max-width: 50px
}
#to_top img {
    width: 100%;
}

.main-h {
    position: relative;
    margin: 0;
    padding: 0;
    height: 26px;
}
.main-h h1 {
    display: inline;
    margin: 0;
    padding-left: 20px;
    font-size: 1.2em !important;
}
.main-h img {
    vertical-align: text-bottom;
    display: inline-block;
}
.photo_new {
    margin: 2px 5px;
    height: 18px;
}
.photo_cre {
    float: right;
    margin: 5px 6px;
    height: 18px;
}
.photo_coupon {
    float: right;
    margin: 0 2px;
    height: 26px;
}

.main-sec {
    position: relative;
    margin: 3px;
    padding: 3px 0 3px 3px;
}
.detail-h {
    position: relative;
    margin: 0;
    padding: 0;
}
.main-sec h2 { 
    margin: 3px 30px 3px 3px;
    padding-left: 10px;
    
    font-size: 0.9em !important;
    line-height: 1.6;
    font-weight: normal;
}
.main-sec a {
    position: absolute;
    top: 10px;
    right: 0;
    margin: 0;
    padding: 3px;
    text-decoration: none;
}

.detail-sec {
    position: relative;
    overflow: hidden;
    margin: 5px;
    padding: 5px;
}
.detail-sec p {
    padding: 3px 5px;
    line-height: 1.6em;
}

.main-photos,
.sub-photos {
    border: none;
    text-align: center;
}
.main-photos {
    margin: 0 3px;
    width: 160px;
    height: auto;
    max-height: 100px;
}
.photo-sec {
    margin: 0;
    padding: 0;
    text-align: center;
    height: 100px;
}
.sub-photos {
    margin: 5px;
    height: 80px;
    cursor: pointer;
}
.hover-photos {
    position: absolute;
    top: 0;
    left: 10px;
    height: 220px;
    width: auto;
}

.tb-sec,
.tb-sec2 {
    margin: 0;
    padding: 0;
    width: 100%;
    
}
.tb-sec div,
.tb-sec2 div {
    float: left;
    margin: 3px;
    padding: 0;
    min-width: 220px;
}
.tb-sec div span,
.tb-sec2 div span {
    display: line-block;
    float: left;
    margin: 0 3px;
    padding: 0;
    padding-top: 2px;
}
.tb-sec div span:first-child,
.tb-sec2 div span:first-child {
    padding: 0;
    width: 60px;
    text-align: center;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 420px) {
    
/* ====================
    INTERMEDIATE: details
   ==================== */

    .main-photos  {
        float: left;
    }
    .detail-h {
        float: left;
        width: 70%;
        width: -webkit-calc(100% - 180px);
        width: -moz-calc(100% - 180px);
        width : calc(100% - 180px);
    }
    
/* ========================
    INTERMEDIATE: Main
   ======================== */

    section {
        min-height: 160px;
    }

    #to_top {
        width: 10%;
    }
}

@media only screen and (min-width: 768px) {
    
/* ============
    WIDE: Main
   ============ */

    section {
        float: left;
        width: 46%;
        min-height: 220px;
    }

    .detail-h {
        width: 100%;
    }
    
    .tb-sec2 div {
        min-width: 180px;
    }
    
    #to_top {
        width: auto;
    }
}

@media only screen and (min-width: 900px) {
    
/* ============
    WIDE: Main
   ============ */

    section {
        min-height: 160px;
    }

    .detail-h {
        width: 70%;
        width: -webkit-calc(100% - 180px);
        width: -moz-calc(100% - 180px);
        width : calc(100% - 180px);
    }
    
}

