@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2) format("woff2");
}

/* メインのスタイルシート */
* {
    margin: 0;
    padding: 0;
}
*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

html,body {
    height: 100%;
    background: #eee;
}
body {
    font-size: 14px;
    font-family: "Open Sans";
    background: #eee;
    -webkit-text-size-adjust: 100%;
}

/* メインコンテンツエリアのスタイル */
.main-content {
    padding-left: 260px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.content-wrapper {
    padding: 80px 0 30px 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

#main p {
    margin-bottom: 1em;
    line-height: 1.9;
}

#main .inner {
    padding: 80px 30px 30px 30px;
}

#global-head {
    position: fixed;
    color: #033560;
    width: 260px;
    text-align: center;
    padding-top: 60px;
    z-index: 100;
}

#sidebar {
    font-size: 15px;
    padding-top: 120px;
    width: 260px;
    height: 100%;
    position: fixed;
    color: #033560;
    background: #fff;
    text-align: center;
}

#global-nav ul {
    list-style: none;
    margin-left: 0;
}
#global-nav > ul > li {
    position: relative;
}

#global-nav a,
.logout-btn {
    color: #033560;
    text-decoration: none;
    display: block;
    padding: 15px 0;
    -moz-transition: background-color .3s linear;
    -webkit-transition: background-color .3s linear;
    transition: background-color .3s linear;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

#global-nav .sub-menu.is-active > a,
#global-nav a:hover,
.logout-btn:hover {
    color: #fff;
    background: #033560;
}

.logout-btn {
    font-family: "Open Sans";
}

#nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    height: 32px;
    width: 32px;
    cursor: pointer;
    z-index: 1001;
}

#nav-toggle > div {
    position: relative;
    width: 100%;
    height: 100%;
}

#nav-toggle span {
    width: 100%;
    height: 2px;
    left: 0;
    display: block;
    background: #033560;
    position: absolute;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}

#nav-toggle span:nth-child(1) {
    top: 0;
}
#nav-toggle span:nth-child(2) {
    top: 11px;
}
#nav-toggle span:nth-child(3) {
    top: 22px;
}

#overlay {
    display: none;
    position: fixed;
    background: rgba(0,0,0,.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

@media screen and (max-width: 900px) {
    .main-content {
        padding-left: 0;
    }

    #global-head {
        width: 100%;
        padding: 15px;
        background: rgba(255,255,255,.8);
        display: -webkit-flex;
        display: flex;
    }

    #sidebar {
        position: fixed;
        right: -300px;
        top: 0;
        height: 100%;
        width: 300px;
        color: #333;
        background: #fff;
        -webkit-transition: .35s ease-in-out;
        transition: .35s ease-in-out;
        z-index: 1000;
    }

    body.open #sidebar {
        right: 0;
    }

    body.open .main-content {
        padding-left: 0;
    }

    #nav-toggle {
        display: block;
        padding-top: 5px;
    }

    body.open #overlay {
        display: block;
    }

    /* ハンバーガーメニューのアニメーション */
    body.open #nav-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 11px;
    }
    body.open #nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.open #nav-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        top: 11px;
    }
}

@media screen and (max-width: 400px) {
    #sidebar {
        width: 100%;
        right: -100%;
    }

    body.open #sidebar {
        right: 0;
    }

    body.open .main-content {
        padding-left: 0;
    }
}

#brand-logo {
    font-size: 24px;
    font-weight: bold;
    color: #033560;
} 