body {
    position: relative;
    min-width: 320px;
}
.wrapper {
    position: relative;
    padding: 0 16px;
    width: 100%;
}
@media screen and (min-width: 1025px) {
    .wrapper {
        max-width: 1312px;
    }
}
img {
    max-width: 100%;
}

/* ******************************************** *
 * ************ navigation global ************* *
 * ******************************************** */
#globalnav,
#nav-menustate:checked ~ #globalnav {
    /*background-color: #fff;*/
}
#globalnav .nav-stock,
#globalnav .nav-stock .nav-link {
    /*color: #ff6b00;*/
    text-align: center;
}
#globalnav .nav-stock-basic {
    position: absolute;
    top: 0;
    right: 14px;
    width: auto;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: right;
}
#globalnav .nav-list .nav-stock {
    display: none;
}
#globalnav .nav-stock-basic .nav-stock-text {
    opacity: .8;
    -webkit-transform: scale(.84);
    transform: scale(.84);
}
#globalnav .nav-stock-basic .nav-stock-code {
    opacity: .9;
}
@media screen and (max-width: 767px) {
    #globalnav,
    #globalnav .nav-header,
    #nav-placeholder {
        height: 52px;
    }
    #globalnav .nav-item,
    #globalnav .nav-link {
        height: 52px;
    }
    #globalnav .nav-logo {
        left: 50%;
        width: 140px;
        overflow: hidden;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    #globalnav .nav-logo .nav-link {
        padding: 5px 4px 0;
    }
    #globalnav .nav-logo img {
        display: block;
    }
    #globalnav .nav-menuicon {
        left: 0;
        right: auto;
    }

    #globalnav .nav-list {
        top: 52px;
        background-color: #000;
    }
    #globalnav .nav-list:nth-child(2) {
        margin-top: 0;
    }
    #globalnav .nav-home {
        display: block;
        height: 18px;
        text-indent: -9999px;
    }
    #globalnav .nav-link {
        font-size: 18px;
        line-height: 2.685;
    }
}
@media screen and (min-width: 768px) {
    #globalnav .nav-home .nav-link-text {
        display: none;
    }
    #globalnav .nav-home img {
        height: 68%;
    }
    #globalnav .nav-list .nav-stock-basic {
        display: inline-block;
        position: static;
        width: auto;
        padding-top: 8px;
        text-align: center;
    }
}
@media screen and (min-width: 1025px) {
    #globalnav .nav-content {
        max-width: 1100px;
    }
    #nav-placeholder,
    #globalnav,
    #globalnav .nav-list,
    #globalnav .nav-item,
    #globalnav .nav-link {
        height: 60px;
        max-height: 60px;
    }
    #globalnav .nav-item .nav-link-text {
        line-height: 60px;
    }
    #globalnav .nav-item.current .nav-link {
        color: #5a5a5a;
    }
    #globalnav .nav-home .nav-link img {
        position: relative;
        top: -4px;
        vertical-align: text-top;
    }
    #globalnav .nav-list .nav-stock {
        display: inline-block;
    }
    #globalnav .nav-list .nav-stock-basic {
        display: none;
    }
    #globalnav .nav-list .nav-stock {
        left: -68px;
    }
    #globalnav .nav-list .nav-stock .nav-link {
        font-size: 16px;
        min-width: 240px;
        text-align: left;
    }
}
@media screen and (min-width: 1030px) {
    #globalnav .nav-list .nav-stock {
        left: -70px;
    }
}
@media screen and (min-width: 1050px) {
    #globalnav .nav-list .nav-stock {
        left: -72px;
    }
}
@media screen and (min-width: 1100px) {
    #globalnav .nav-list .nav-stock {
        left: -74px;
    }
}
@media screen and (min-width: 1200px) {
    #globalnav .nav-list .nav-stock {
        left: -76px;
    }
}
@media screen and (min-width: 1312px) {
    #globalnav .nav-list .nav-stock {
        left: -80px;
    }
}

/* ******************************************** *
 * ************* navigation local ************* *
 * ******************************************** */
#localnav .localnav-menucta {
    position: relative;
}
#localnav .localnav-menucta:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border: 1px solid #333;
    border-radius: 50%;
}
#localnav .localnav-title {
    max-width: 40%;
}
#localnav .localnav-title a {
    display: -webkit-box;
    display: -moz-box;
    line-height: inherit;
    white-space: normal;
}
#localnav .localnav-title-parent {
    /*font-weight: bold;*/
}
@media screen and (max-width: 767px) {
    #localnav .localnav-title-current {
        font-size: 18px;
    }
}
@media screen and (min-width: 768px) {
    #localnav .localnav-title-current {
        display: none;
    }
}

#localnav .localnav-menu-link.current,
#localnav .directory-section-title.current,
#localnav .directory-section-link.current {
    color: #ff6b00;
}

#localnav .localnav-menu-item {
    height: auto;
    display: block;
}

#localnav .directory-section {
    border: none;
}
#localnav .directory-section-state:checked+.directory-section .directory-section-title {
    font-weight: bold;
}
#localnav .directory-section-list {
    padding-bottom: 16px;
}
#localnav .directory-section-link {
    line-height: 30px;
    padding: 0 14px;
}

@media screen and (min-width: 1025px) {
    #localnav .localnav-title {
        opacity: 0;
        -webkit-transition: opacity .1s ease,
                    -webkit-transform .3s cubic-bezier(0.19, 1, 0.22, 1);
        transition: opacity .1s ease,
                    transform .3s cubic-bezier(0.19, 1, 0.22, 1);
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }
    #localnav.localnav-sticking .localnav-title {
        opacity: 1;
        -webkit-transition: opacity .4s ease,
                    -webkit-transform .7s cubic-bezier(0.19, 1, 0.22, 1);
        transition: opacity .4s ease,
                    transform .7s cubic-bezier(0.19, 1, 0.22, 1);
        -webkit-transform: none;
        transform: none;
    }
    #localnav .localnav-content {
        max-width: 1100px;
    }
    #localnav .localnav-background:after {
        left: 0;
        width: 100%;
        margin-left: 0;
    }
    #localnav-sticky-placeholder.no-css-sticky.localnav-sticking,
    #localnav {
        height: 66px;
    }
    #localnav .localnav-title {
        padding-top: 10px;
        font-size: 22px;
    }
    #localnav .localnav-menu {
        padding-top: 11px;
        font-size: 16px;
    }
}

/* ******************************************** *
 * ****************** footer ****************** *
 * ******************************************** */
#footer {
    padding-top: 24px;
    color: #787878;
    background-color: #f9f9f9;
}

#footer .logo {
    margin-bottom: 25px;
}
#footer .logo img {
    max-width: 152px;
}

#footer .service span {
    position: relative;
    display: inline-block;
    font-size: 16px;
    height: 26px;
    line-height: 26px;
    vertical-align: middle;
}
#footer .service .text {
    top: 1px;
}
#footer .service .tel {
    margin-left: 10px;
    color: #fe730e;
    color: rgba(254,115,14,0);
    font-size: 24px;
    background: url('../images/400-611-0208.png') no-repeat center;
    background-size: contain;
}
#footer .service .tel:nth-of-type(2) {
    margin-left: 4px;
}
#footer .service .tel:nth-of-type(3) {
    background-image: url('../images/400-626-3881.png');
}
@media screen and (max-width: 600px) {
    #footer .service .tel {
        margin-left: 72px;
    }
    #footer .service .tel:nth-of-type(2) {
        margin-left: 4px;
    }
}
#footer .service .tel a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#footer .directory-section-link.current {
    color: #ff6b00;
}

#footer .footer {
    padding-bottom: 22px;
    font-size: 12px;
    text-align: center;
    line-height: 1.334;
}
#footer .info {
    padding: 0 14px;
    margin-bottom: 16px;
    line-height: inherit;
}
#footer .links a {
    position: relative;
    display: inline-block;
    margin-right: 12px;
    padding: 0 2px;
    line-height: inherit;
    cursor: pointer;
    word-wrap: break-word;
    word-break: break-all;
    white-space: wrap;
}
#footer .links a:after {
    position: absolute;
    height: 12px;
    width: 1px;
    background-color: #787878;
    top: 50%;
    right: -8px;
    margin-top: -6px;
    content: '';
    pointer-events: none;
}
#footer .links a:last-child {
    margin-right: 0;
}
#footer .links a:last-child:after {
    height: 0;
    width: 0;
}

#footer .qr {
    margin-top: 20px;
}
#footer .qr img {
    display: block;
    margin: 0 auto;
    width: 25%;
    max-width: 200px;
}

@media screen and (max-width: 1024px) {
    #footer .logo,
    #footer .qrs,
    #footer .design {
        display: none;
    }
    #footer .directory-items {
        margin: 24px 0;
        border-top: 1px solid #d6d6d6;
    }
    #footer .directory-section-title {
        color: #3f3f3f;
        line-height: 1.4286;
        background-color: #f9f9f9;
    }
}
@media screen and (min-width: 1025px) {
    #footer {
        padding-top: 65px;
        font-size: 12px;
        background-color: #fff;
        border-top: 1px solid #dcdcdc;
    }
    #footer .logo,
    #footer .qrs {
        display: block;
    }
    #footer .footer .qr {
        display: none;
    }
    #footer .qr {
        float: left;
        width: 100px;
        margin-left: 50px;
    }
    #footer .qr:first-child {
        margin-left: 0;
    }
    #footer .qr img {
        width: 100%;
    }
    #footer .service {
        margin-top: 30px;
    }
    #footer .service span {
        font-size: 18px;
        height: 24px;
        line-height: 24px;
    }
    #footer .service .tel {
        font-size: 24px;
    }
    #footer .briefly {
        float: left;
        width: 400px;
    }
    #footer .directory-items {
        float: right;
        padding-top: 8px;
        width: 560px;
        text-align: right;
    }
    #footer .directory-item {
        display: inline-block;
        margin-left: 100px;
        text-align: left;
        vertical-align: top;
    }
    #footer .directory-item:first-child {
        margin-left: 0;
    }
    #footer .directory-section {
        border: none;
    }
    #footer .directory-section-title  {
        color: #3f3f3f;
        font-size: 14px;
        font-weight: bold;
    }
    #footer .directory-section-title:after {
        content: '';
    }
    #footer .directory-section-list {
        position: static;
        z-index: 1;
        padding-top: 12px;
        padding-bottom: 0;
        visibility: visible;
        -webkit-transform: none;
        transform: none;
    }
    #footer .directory-section-link,
    #footer .directory-section-link:hover {
        padding: 0;
        line-height: 24px;
    }
    #footer .footer {
        margin-top: 50px;
        padding: 36px 0;
        background-color: #363636;
    }
    #footer .links .caption {
        margin-bottom: 4px;
        font-size: 16px;
    }
    #footer .links a {
        margin-top: 4px;
    }
    #footer .info {
        float: left;
        margin: 0;
        padding: 0;
    }
    #footer .design {
        display: block;
        float: right;
    }
}
@media screen and (min-width: 1200px) {
    #footer > .wrapper {
        padding: 0 120px;
    }
}

/* ******************************************** *
 * ************** online service ************** *
 * ******************************************** */
.nav-noscroll #YSF-BTN-HOLDER {
    display: none;
}
#YSF-BTN-HOLDER {
    position: absolute !important;
    bottom: 0;
    right: 37.5% !important;
    margin-right: -8px;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}
#YSF-CUSTOM-ENTRY-1 {
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    box-shadow: none !important;
    bottom: 0px !important;
    opacity: .76;
    -webkit-transform: scale(.64);
    transform: scale(.64);
}
@media screen and (min-width: 355px) {
    #YSF-CUSTOM-ENTRY-1 {
        -webkit-transform: scale(.72);
        transform: scale(.72);
        bottom: 5px !important;
    }
}
@media screen and (min-width: 370px) {
    #YSF-CUSTOM-ENTRY-1 {
        -webkit-transform: scale(.76);
        transform: scale(.76);
        bottom: 7px !important;
    }
}
@media screen and (min-width: 390px) {
    #YSF-BTN-HOLDER {
        margin-right: -12px;
    }
    #YSF-CUSTOM-ENTRY-1 {
        -webkit-transform: scale(.85);
        transform: scale(.85);
        bottom: 13px !important;
    }
}
/* ************* smaller - begin ************** */
#YSF-CUSTOM-ENTRY-1 {
    opacity: .72;
    -webkit-transform: scale(.54);
    transform: scale(.54);
    bottom: -1px !important;
}
@media screen and (min-width: 355px) {
    #YSF-CUSTOM-ENTRY-1 {
        -webkit-transform: scale(.62);
        transform: scale(.62);
        bottom: 4px !important;
    }
}
@media screen and (min-width: 370px) {
    #YSF-CUSTOM-ENTRY-1 {
        bottom: 5px !important;
    }
}
@media screen and (min-width: 390px) {
    #YSF-CUSTOM-ENTRY-1 {
        -webkit-transform: scale(.7);
        transform: scale(.7);
        bottom: 10px !important;
    }
}
/* ************** smaller - end *************** */
@media screen and (min-width: 430px) {
    #YSF-BTN-HOLDER {
        margin-right: -18px;
    }
    #YSF-CUSTOM-ENTRY-1 {
        -webkit-transform: scale(1);
        transform: scale(1);
        bottom: 50px !important;
    }
}

@media screen and (min-width: 1025px) {
    #YSF-BTN-HOLDER {
        right: 20px !important;
        margin-right: 0;
        -webkit-transform: none;
        transform: none;
    }
    #YSF-CUSTOM-ENTRY-1 {
        opacity: 1;
        bottom: 144px !important;
        -webkit-transform: none;
        transform: none;
    }
}
