html {
    background: url("../img/main_bg.png");
    font-size: 10px;
}

body {
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif !important;
    color: #000;
    font-weight: 500;
}

body.hidden {
    overflow: hidden;
}

a:link,
a:visited {
    color: #00f;
    transition: .3s;
}

a:hover {
    color: #f03;
}

img {
    vertical-align: bottom;
}

sup {
    font-size: 1.2rem;
}

#wrapper {
    padding: 0 20px 100px;
    position: relative;
}

#wrapper #maincontents {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 auto;
    max-width: 1500px;
    box-sizing: border-box;
}

#wrapper #maincontents #contents {
    width: calc(100% - 417px);
}

.disp_pc {
    display: inline;
}

.disp_sp {
    display: none;
}

@media only screen and (max-width: 600px) {
    .disp_pc {
        display: none;
    }

    .disp_sp {
        display: inline;
    }
}


/*     navigation PC     */

#wrapper #maincontents #navigation {
    width: 417px;
}

#wrapper #maincontents #navigation nav ul {
    width: 100%;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.6rem;
}

#wrapper #maincontents #navigation nav ul li a {
    color: #444444;
    text-decoration: none;
    height: 65px;
    display: flex;
    align-items: center;
    letter-spacing: .05rem;
    line-height: 1.2;
    border-bottom: 1px solid #dcdbda;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 65px;
    padding-right: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .86) url("../img/common/nav_icn.png") no-repeat 25px 50%;
    border-left: none;
    overflow: hidden;
    position: relative;
    text-align: left;
    font-weight: bolder;
}

#wrapper #maincontents #navigation nav ul li a:before {
    position: absolute;
    left: -11px;
    top: 0;
    content: "";
    width: 11px;
    height: 100%;
    background: #fad334;
    transition: .3s;
}

#wrapper #maincontents #navigation nav ul li:last-child a {
    border-bottom: none;
}

#wrapper #maincontents #navigation nav ul li a:hover:before {
    left: 0;
}

#wrapper #maincontents #navigation {
    width: 417px;
}

#wrapper #maincontents #navigation nav {
    padding-right: 60px;
}

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

    #wrapper #maincontents #navigation {
        width: 297px;
    }

    #wrapper #maincontents #navigation nav {
        padding-right: 30px;
    }

    #wrapper #maincontents #contents {
        width: calc(100% - 297px);
    }
}

@media screen and (max-width: 1079px) {
    #wrapper #maincontents #navigation nav ul li a:hover:before {
        left: -11px;
    }
}


/*     navigation foot     */

#foot_navi {
    padding: 0 15px;
    box-sizing: border-box;
    display: none;
    margin-bottom: -15px;
}

#foot_navi ul {
    width: 100%;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    font-size: 1.4rem;
}

#foot_navi ul li a {
    color: #444444;
    text-decoration: none;
    display: block;
    height: 55px;
    display: flex;
    align-items: center;
    letter-spacing: .05rem;
    line-height: 1.3;
    border-bottom: 1px solid #dcdbda;
    padding-left: 65px;
    padding-right: 10px;
    background: rgba(255, 255, 255, .86) url("../img/common/nav_icn.png") no-repeat 25px 50%;
    border-left: none;
    overflow: hidden;
    position: relative;
    text-align: left;
}

#foot_navi ul li a:before {
    position: absolute;
    left: -11px;
    top: 0;
    content: "";
    width: 11px;
    height: 100%;
    background: #fad334;
    transition: .3s;
}

#foot_navi ul li:last-child a {
    border-bottom: none;
}

#foot_navi ul li a:hover:before {
    left: 0;
}

@media screen and (max-width: 1079px) {
    #foot_navi {
        display: block;
    }

    #foot_navi ul li a:hover:before {
        left: -11px;
    }
}

/*     navigation SP     */

#nav-toggle {
    display: none;
    position: absolute;
    right: 0px;
    top: 0px;
    width: 54px;
    height: 54px;
    cursor: pointer;
    z-index: 101;
    background: #fdd119;
    padding-top: 5px;
    box-sizing: border-box;
}

#nav-toggle div {
    position: relative;
}

#nav-toggle div:before {
    content: "MENU";
    font-weight: bold;
    text-align: center;
    display: block;
    font-size: 1rem;
    color: #7c671b;
    line-height: 1;
    padding-top: 2px;
}

#nav-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    border-radius: 4px;
    width: 27px;
    background: #7c671b;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}

#nav-toggle span:nth-child(1) {
    top: 17px;
}

#nav-toggle span:nth-child(2) {
    top: 26px;
}

#nav-toggle span:nth-child(3) {
    top: 35px;
}

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

    #wrapper #maincontents #navigation {
        z-index: 10;
    }

    #wrapper #maincontents #navigation #global-nav {
        width: 100%;
    }

    #wrapper #maincontents #contents {
        width: 100%;
    }

    #navigation {
        width: 100% !important;
        z-index: 1;
    }

    #navigation {
        top: 0;
        left: 0;
        position: fixed;
        margin-top: 0;
    }

    #navigation.fixed {
        padding-top: 0;
        background: transparent;
    }

    #mobile-head {
        width: 56px;
        height: 56px;
        z-index: 999;
        position: absolute;
        right: 0;
        top: 0;
    }

    #global-nav {
        position: absolute;
        top: -1200px;
        background: #fff;
        width: 100%;
        text-align: center;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        height: 100vh;
        overflow-y: scroll;
        display: block;
    }

    #global-nav ul {
        list-style: none;
        position: static;
        right: auto;
        bottom: auto;
        padding: 54px 0 76px;
    }

    #global-nav ul li {
        float: none;
        position: static;
    }

    #wrapper #maincontents #navigation nav {
        padding-right: 0;
    }

    #wrapper #maincontents #navigation nav ul li a {
        display: block;
        height: 41px;
        font-size: 1.4rem;
        display: flex;
    }

    #wrapper #maincontents #navigation nav ul li:last-child a {
        border-bottom: 1px solid #dcdbda;
    }

    #wrapper #maincontents #navigation nav ul li:first-child a {
        border-top: 1px solid #dcdbda;
    }

    #wrapper #maincontents #navigation nav ul li a:hover {
        background-color: rgba(255, 255, 255, 1);
    }

    #wrapper #maincontents #navigation nav ul li a:hover:before {
        left: -11px;
    }

    #nav-toggle {
        display: block;
    }

    .open #nav-toggle span:nth-child(1) {
        left: 14px;
        top: 27px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }

    .open #nav-toggle span:nth-child(3) {
        left: 14px;
        top: 27px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .open #global-nav {
        -moz-transform: translateY(1200px);
        -webkit-transform: translateY(1200px);
        transform: translateY(1200px);
    }

    .open #nav-toggle div:before {
        content: "CLOSE";
    }
}


/*     navigation Activearea     */

#top #wrapper #maincontents #navigation nav ul li:nth-child(1) a,
#top #wrapper #foot_navi ul li:nth-child(1) a {
    background-color: rgba(255, 249, 232, 1);
}

#top #wrapper #maincontents #navigation nav ul li:nth-child(1) a:before,
#top #wrapper #foot_navi ul li:nth-child(1) a:before {
    left: 0;
}

#about #wrapper #maincontents #navigation nav ul li:nth-child(2) a,
#about #wrapper #foot_navi ul li:nth-child(2) a {
    background-color: rgba(255, 249, 232, 1);
}

#about #wrapper #maincontents #navigation nav ul li:nth-child(2) a:before,
#about #wrapper #foot_navi ul li:nth-child(2) a:before {
    left: 0;
}

#cause #wrapper #maincontents #navigation nav ul li:nth-child(3) a,
#cause #wrapper #foot_navi ul li:nth-child(3) a {
    background-color: rgba(255, 249, 232, 1);
}

#cause #wrapper #maincontents #navigation nav ul li:nth-child(3) a:before,
#cause #wrapper #foot_navi ul li:nth-child(3) a:before {
    left: 0;
}

#patient #wrapper #maincontents #navigation nav ul li:nth-child(4) a,
#patient #wrapper #foot_navi ul li:nth-child(4) a {
    background-color: rgba(255, 249, 232, 1);
}

#patient #wrapper #maincontents #navigation nav ul li:nth-child(4) a:before,
#patient #wrapper #foot_navi ul li:nth-child(4) a:before {
    left: 0;
}

#inspection #wrapper #maincontents #navigation nav ul li:nth-child(5) a,
#inspection #wrapper #foot_navi ul li:nth-child(5) a {
    background-color: rgba(255, 249, 232, 1);
}

#inspection #wrapper #maincontents #navigation nav ul li:nth-child(5) a:before,
#inspection #wrapper #foot_navi ul li:nth-child(5) a:before {
    left: 0;
}

#treatment #wrapper #maincontents #navigation nav ul li:nth-child(6) a,
#treatment #wrapper #foot_navi ul li:nth-child(6) a {
    background-color: rgba(255, 249, 232, 1);
}

#treatment #wrapper #maincontents #navigation nav ul li:nth-child(6) a:before,
#treatment #wrapper #foot_navi ul li:nth-child(6) a:before {
    left: 0;
}

#hospitalization #wrapper #maincontents #navigation nav ul li:nth-child(7) a,
#hospitalization #wrapper #foot_navi ul li:nth-child(7) a {
    background-color: rgba(255, 249, 232, 1);
}

#hospitalization #wrapper #maincontents #navigation nav ul li:nth-child(7) a:before,
#hospitalization #wrapper #foot_navi ul li:nth-child(7) a:before {
    left: 0;
}

#immunoglobulin #wrapper #maincontents #navigation nav ul li:nth-child(8) a,
#immunoglobulin #wrapper #foot_navi ul li:nth-child(8) a {
    background-color: rgba(255, 249, 232, 1);
}

#immunoglobulin #wrapper #maincontents #navigation nav ul li:nth-child(8) a:before,
#immunoglobulin #wrapper #foot_navi ul li:nth-child(8) a:before {
    left: 0;
}

#life #wrapper #maincontents #navigation nav ul li:nth-child(9) a,
#life #wrapper #foot_navi ul li:nth-child(9) a {
    background-color: rgba(255, 249, 232, 1);
}

#life #wrapper #maincontents #navigation nav ul li:nth-child(9) a:before,
#life #wrapper #foot_navi ul li:nth-child(9) a:before {
    left: 0;
}

#system #wrapper #maincontents #navigation nav ul li:nth-child(10) a,
#system #wrapper #foot_navi ul li:nth-child(10) a {
    background-color: rgba(255, 249, 232, 1);
}

#system #wrapper #maincontents #navigation nav ul li:nth-child(10) a:before,
#system #wrapper #foot_navi ul li:nth-child(10) a:before {
    left: 0;
}

#reference #wrapper #maincontents #navigation nav ul li:nth-child(11) a,
#reference #wrapper #foot_navi ul li:nth-child(11) a {
    background-color: rgba(255, 249, 232, 1);
}

#reference #wrapper #maincontents #navigation nav ul li:nth-child(11) a:before,
#reference #wrapper #foot_navi ul li:nth-child(11) a:before {
    left: 0;
}