@charset "utf-8";
/* CSS Document */

.globalMenuSp {
    margin-top: 8px;
}

/* 親メニュー - Parent nav */

nav>ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-around;
}

nav>ul li {
    position: relative;
}

.menu-item-has-children {
    width: 100%;
    text-align: center;
}

nav a, nav a:link, nav a:visited {
    color: #222;
    text-decoration: none !important;
}

nav ul a:hover {
    color: #222;
}

#nav01, #nav02, #nav03, #nav04, #nav05 {
    display: block;
    padding-top: 60px;
    padding-bottom: 10px;
    font-size: 114%;
    border-right: solid 1px #B7E0E9;
    background-repeat: no-repeat;
    background-position: center 2px;
}

#nav01 {
    border-left: solid 1px #B7E0E9;
    background-image: url(/img/top/nav_icon01.png);
}

#nav02 {
    background-image: url(/img/top/nav_icon02.png);
}

#nav03 {
    background-image: url(/img/top/nav_icon03.png);
}

#nav04 {
    background-image: url(/img/top/nav_icon04.png);
}

#nav05 {
    background-image: url(/img/top/nav_icon05.png);
}

li.menu-item-has-children>a:hover {
    background-color: #EBF5F4;
}

/* 子メニュー - .sub-menu */

nav .sub-menu {
    position: absolute;
    width: 400px;
    background-color: #fff;
    /* top: 30px; */
    opacity: 0;
    visibility: hidden;
    transition: .5s;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border: solid 3px #9DCCC8;
    z-index: 20;
}

nav .sub-menu li {
    width: 50%;
}

nav .sub-menu a {
    color: #222;
    padding: 0.5em 15px 0.5em 26px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    background-image: url(/img/top/arrow04b.png);
    background-repeat: no-repeat;
    background-position: 10px center;
    text-align: left;
}

nav .sub-menu a:hover {
    color: #222;
}

li.menu-item-has-children:nth-child(4)>ul:nth-child(2), li.menu-item-has-children:nth-child(5)>ul:nth-child(2) {
    right: 0;
}

li.menu-item-has-children:nth-child(5)>ul:nth-child(2) {
    width: 623px;
}

/* ホバー＆フォーカスで子メニュー表示 */

/* Display sub menu by hover & focus */

nav .menu-item-has-children:hover ul, nav .menu-item-has-children ul.focused {
    opacity: 1;
    visibility: visible;
}

nav li.menu-item-has-children li a:hover, nav li.menu-item-has-children li a:focus {
    background-color: #EBF5F4;
}

/*  */

/*　ハンバーガーボタン　*/

.hamburger {
    display: none;
    position: fixed;
    z-index: 10001;
    right: 13px;
    top: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
    background-color: #eee;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    left: 6px;
    background: #222;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 20px;
}

.hamburger span:nth-child(3) {
    top: 30px;
}

/* ナビ開いてる時のボタン */

.hamburger.active span:nth-child(1) {
    top: 19px;
    left: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.hamburger.active span:nth-child(2), .hamburger.active span:nth-child(3) {
    top: 19px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* このクラスを、jQueryで付与・削除する */

nav.globalMenuSp.active {
    transform: translateY(0%);
}

@media screen and (max-width: 670px) {
    .hamburger {
        display: block;
    }
    nav.globalMenuSp {
        position: fixed;
        z-index: 10000;
        top: 0;
        left: 0;
        color: #222;
        background: #fff;
        transform: translateY(-100%);
        transition: all 0.6s;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow: auto;
        height: 100%;
    }
    .menu-item-has-children {
        width: auto;
        margin: 5px 0 0;
        border: solid 2px #d5edea;
    }
    nav>ul {
        flex-direction: column;
    }
    nav .sub-menu {
        position: relative;
        width: 100%;
        background: #FFF;
        top: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
        box-sizing: border-box;
        border: solid 1px #d5edea;
        border-right: none;
        border-bottom: none;
    }
    li.menu-item-has-children:nth-child(5)>ul:nth-child(2) {
        width: 100%;
    }
    nav .sub-menu li {
        border: solid 1px #d5edea;
        border-left: none;
        border-top: none;
    }
    #nav01 {
        border-left: none;
    }
    #nav01, #nav02, #nav03, #nav04, #nav05 {
        border-right: none;
        background-color: #F1F9F9;
        background-position: 10px center;
        padding-top: 0;
        height: 46px;
        background-size: 32px;
        padding-bottom: 0;
        align-items: center;
        display: flex;
        padding-left: 52px;
        font-size: 1.6em;
        font-weight: bold;
    }
}

/* 言語選択 */

/* 親メニュー - Parent section */

section>ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-around;
}

section>ul li {
    position: relative;
}

section a {
    color: #222;
    text-decoration: none;
}

section ul a:hover {
    color: #222;
}

div.langChildren .subMenu>a:hover {
    background-color: #EBF5F4;
}

/* 子メニュー - .subMenu */

section .subMenu {
    position: absolute;
    width: 130px;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border: solid 3px #9DCCC8;
    margin: 0;
    z-index: 20;
}

div#headerFront section .subMenu {
    width: 118px;
    right: 0;
}

section .subMenu li {
    /* width: 50%; */
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
}

section .subMenu a {
    color: #222;
    padding: 10px 15px 10px 26px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    background-image: url(/img/top/arrow04b.png);
    background-repeat: no-repeat;
    background-position: 10px center;
    text-align: left;
}

section .subMenu a:hover {
    color: #222;
}

div.langChildren:nth-child(4)>ul:nth-child(2), div.langChildren:nth-child(5)>ul:nth-child(2) {
    right: 0;
}

/* ホバー＆フォーカスで子メニュー表示 */

/* Display sub menu by hover & focus */

section .langChildren:hover ul, section .langChildren ul.focused {
    opacity: 1;
    visibility: visible;
}

section div.langChildren li a:hover, section div.langChildren li a:focus {
    background-color: #EBF5F4;
}

/*  */

/* このクラスを、jQueryで付与・削除する */

section.langMenu.active {
    transform: translateY(0%);
}

@media screen and (max-width: 670px) {
    /* 言語選択 */
    .langMenu {
        width: 100%;
        margin-bottom: 5px;
    }
    div.langChildren {
        width: 100%;
        padding: 0;
    }
    .front_index div.langChildren {
        width: auto;
        border-radius: 0;
    }
    section .subMenu {
        position: relative;
        opacity: 1;
        visibility: visible;
        border: solid 2px #d5edea;
        width: 100%;
    }
    .front_index section .subMenu {
        width: auto;
        border-radius: 0;
    }
    section .subMenu li {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
        flex: 1 0 auto;
    }
    section .subMenu a {
        padding: 11px 0;
        background-image: none;
        text-align: center;
        border-right: solid 1px #ccc;
    }
    .subMenu>li:last-child a {
        border-right: none;
    }
    div.langChildren>a:nth-child(1) {
        text-align: center;
    }
}