@charset "UTF-8";
/* CSS Document */
/* 横並びにしない */
/* nav ul ul {
    display: block
} */
/* 下の階層のulや矢印の基点にするためliにrelativeを指定 */
nav .header_navg ul li {
    position: relative;
}
 /* ナビゲーションリンクの設定 */
nav .header_navg ul li a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 20px 25px;
    transition: all .3s;
}
nav .header_navg ul li li a {
    padding: 10px 35px;
}
nav .header_navg ul li a:hover {
    color: #c5c5c5;
}
/* ＝＝矢印の設定 */
nav .header_navg ul li .has-child::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 25px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transform: rotate(135deg);
}
/* 下の階層の持っているulの設定 */
nav .header_navg li.has-child ul {
    /* 絶対配置で位置を指定 */
    position: absolute;
    left: 0;
    top: 62px;
    z-index: 4;
    /* 形状を指定 */
    /* background: #ffffff; */
    /* width: 180px; */
    /* 初めは非表示 */
    visibility: hidden;
    opacity: 0;
    /* アニメーション設定 */
    transition: all .3s;
}

/* hoverしたら表示 */
nav .header_navg li.has-child:hover > ul,
nav .header_navg li.has-child ul li:hover > ul,
nav .header_navg li.has-child:active > ul,
nav .header_navg li.has-child ul li:active > ul {
    visibility: visible;
    opacity: 1;
}
/* ナビゲーションaタグの形状 */
nav .header_navg li.has-child ul li a {
    color: #929292;
    width: 250px;
    border-bottom: solid 1px rgba(255,255,255,0.6);
}
nav .header_navg li.has-child ul li:last-child a {
    border-bottom: none;
}
nav .header_navg li.has-child ul li a:hover,
nav .header_navg li.has-child ul li a:active{
    color: #555555;
}
/* ==768px以下の形状 */
@media screen and (max-width: 768px) {
    nav {
        padding: 0px;
    }
    nav .header_navg ul {
        display: block;
    }
    nav .header_navg li.has-child ul{
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
    /* javascriptで制御するため一旦表示 */
    visibility: visible;
    /* javascriptで制御するため一旦表示 */
    opacity: 1;
    /* javascriptのslidetoggleで表示させるため非表示に */
    display: none;
    /* javascriptで制御するためcssのアニメーションを切る */
    transition: none;
    }
    nav .header_navg ul li a {
        border-bottom: 1px solid #ccc;
        width: 60%;
    }
    /* 矢印の位置と向き */
    
    nav .header_navg ul li.has-child::before {
        left: 20px;
    }
    /* nav .header_navg ul ul li.has-child::before{
        left: 20px;
    } */
    nav .header_navg ul li.has-child.active::before {
        transform: rotate(-45deg);
    }
}
