.commonheader {
    z-index: 50;
    position: fixed;
    top: 0;
    display: block;
    width: 100%;

    font-family: "Hiragino Sans W3",
        "Hiragino Kaku Gothic ProN",
        "ヒラギノ角ゴ ProN W3",
        '游ゴシック体',
        "Yu Gothic Medium",
        YU Gothic,
        "メイリオ",
        Meiryo,
        "ＭＳ Ｐゴシック",
        "MS PGothic",
        sans-serif;
    padding-top: 25px;
    padding-bottom: 20px;
    background-color: #fff;
}

.commonheader div,
.commonheader ul {
    box-sizing: border-box;
    margin: 0;
}

.commonheader-gray {
    background-color: #F2F2F2;
}


.commonheader .headerMain {
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

}

.commonheader .headerMain .logo {
    width: 120px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.commonheader .headerMain .logo a {
    display: block;
}

.commonheader .headerMain .logo a img {
    width: 100%;
}

.commonheader .headerMain .headerNavi ul {
    display: flex;
    width: 90%;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    list-style-type: none;
    justify-content: space-between;
}

.commonheader .headerMain .headerNavi ul li {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;

}

.commonheader .headerMain .headerNavi ul li a {
    color: #000;
    font-size: 13px;
    text-decoration: none;
    display: block;
    line-height: 1em;
}

.commonheader .headerMain .headerNavi ul li a:visited {
    color: #000;
}

.commonheader .headerMain .headerNavi ul li a .off {
    display: none;
}

.commonheader .headerMain .headerNavi ul li a .hover {
    font-size: 0.85em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.commonheader .headerMain .headerSub ul {
    display: flex;
    list-style-type: none;
    width: 90%;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    justify-content: end;


}

.commonheader .headerMain .headerSub ul li a {
    display: block;
    border: solid 1px #015FB0;
    background-color: #015FB0;
    color: #fff;
    font-size: 10px;
    text-decoration: none;
    padding: 1px 4px;
    transition: background-color .2s, color .2s;
    margin-left: 10px;
    border-radius: 4px;
}

.commonheader .headerMain .headerSub ul li a:visited {
    color: #fff;
}

.commonheader .headerMain .headerSub ul li a:hover {
    background-color: #fff;
    color: #015FB0;
}









@media screen and (min-width:1000px) and (max-width: 1179px) {
    .commonheader {
        padding-bottom: 20px;
    }

    .commonheader .headerMain {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 30px;
        padding-right: 30px;
        display: flex;
        align-items: center;
    }

    .commonheader .headerMain .logo {
        margin: 0;
        width: 100px;
        height: auto;
    }

    .commonheader .headerMain .logo a {
        width: 100px;
    }

    .commonheader .headerMain .headerNavi {
        flex: 1;
    }

    .commonheader .headerMain .headerNavi ul {
        width: 500px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .commonheader .headerMain .headerNavi ul li {
        margin: 0;
        width: 90px;
        text-align: center;
        border-right: solid 1px #000;
        height: 20px;
    }

    .commonheader .headerMain .headerNavi ul li:first-child {
        border-left: solid 1px #000;
    }

    .commonheader .headerMain .headerNavi ul li a {
        font-size: 13px;
        display: block;
    }

    .commonheader .headerMain .headerNavi ul li a span {
        display: block;
        width: 90px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

    }

    .commonheader .headerMain .headerSub {
        width: 230px;
    }

    .commonheader .headerMain .headerSub ul {
        width: 100%;
        margin-right: 0;
    }

    .commonheader .headerMain .headerSub ul li a {
        font-size: 13px;
        white-space: nowrap;
    }
}

@media screen and (min-width: 1180px) {
    .commonheader {
        padding-bottom: 20px;
    }

    .commonheader .headerMain {
        width: 90%;
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 30px;
        padding-right: 30px;
        display: flex;
        align-items: center;
    }

    .commonheader .headerMain .logo {
        margin: 0;
        width: 15%;
        height: auto;
    }

    .commonheader .headerMain .logo a img {
        max-width: 140px;
    }

    .commonheader .headerMain .headerNavi {
        flex: 1;
    }

    .commonheader .headerMain .headerNavi ul {
        width: 600px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .commonheader .headerMain .headerNavi ul li {
        margin: 0;
        width: 120px;
        text-align: center;
        border-right: solid 1px #000;
        height: 20px;
    }

    .commonheader .headerMain .headerNavi ul li:first-child {
        border-left: solid 1px #000;
    }

    .commonheader .headerMain .headerNavi ul li a {
        font-size: 15px;
        display: block;
    }

    .commonheader .headerMain .headerNavi ul li a span {
        display: block;
        width: 120px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

    }

    .commonheader .headerMain .headerSub {
        width: 230px;
    }

    .commonheader .headerMain .headerSub ul {
        width: 100%;
        margin-right: 0;
    }

    .commonheader .headerMain .headerSub ul li a {
        font-size: 13px;
        white-space: nowrap;
    }


}