@charset "utf-8";

/*==================================
　スマートフォン用ナビゲーション
===================================*/

@media screen and (max-width:767px) {
    .g-nav-openbtn {
        display: block;
        position: fixed;
        z-index: 9999;
        top: 10px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        background: #fff;
        box-sizing: border-box;
        border: 2px solid #009FE8;
    }
    
    /*ボタン内側*/
    
    .g-nav-openbtn .openbtn-area {
        transition: all .4s;
    }
    
    .g-nav-openbtn span {
        display: inline-block;
        transition: all .4s;/*アニメーションの設定*/
        position: absolute;
        left: 13px;
        height: 3px;
        border-radius: 2px;
        background: #009FE8;
        width: 45%;
    }
    
    .g-nav-openbtn span:nth-of-type(1) {
        top:14px;	
    }
    
    .g-nav-openbtn span:nth-of-type(2) {
        top:22px;
    }
    
    .g-nav-openbtn span:nth-of-type(3) {
        top:30px;
    }
    
    /*activeクラスが付与されると
    線と周りのエリアが回転して×になる*/

    .g-nav-openbtn.active {
        background: rgba(206, 155, 0, 0);
        border: 2px solid #FFF;
    }
    
    .g-nav-openbtn.active .openbtn-area {
        transform: rotateY(-360deg);
    }
    
    .g-nav-openbtn.active span:nth-of-type(1) {
        top: 17px;
        left: 13px;
        transform: translateY(6px) rotate(-135deg);
        width: 45%;
        background: #FFF;
    }
    
    .g-nav-openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }
    
    .g-nav-openbtn.active span:nth-of-type(3) {
        top: 29px;
        left: 12px;
        transform: translateY(-6px) rotate(135deg);
        width: 45%;
        background: #FFF;
    }

	.side_poster_sm{
		display:block;
		width:200px;
		margin:10px auto;
	}
}

/* クリックしたらナビが上から下に出現 */

@media screen and (max-width:767px) {
    #g-nav {
        /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
        position:fixed;
        z-index: 999;
        /*ナビのスタート位置と形状*/
        top:-120%;
        left:0;
        width:100%;
        height: 100vh;/*ナビの高さ*/
        background: rgba(0, 159, 232, 0.95);
        /*動き*/
        transition: all 0.6s;
    }
    
    /*アクティブクラスがついたら位置を0に*/
    #g-nav.panelactive {
        top: 0;
    }
    
    /*ナビゲーションの縦スクロール*/
    #g-nav.panelactive #g-nav-list{
        /*ナビの数が増えた場合縦スクロール*/
        position: fixed;
        z-index: 999; 
        width: 100%;
        height: 100vh;/*表示する高さ*/
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        align-items: center;
    }
    
    /*ナビゲーション*/
    #g-nav ul {
        /*ナビゲーション天地中央揃え*/
        width: 90%;
        margin: 0 auto;
    }
        
    #g-nav ul ul{
        width: 100%;
        margin: 0;
    }
    
    /*リストのレイアウト設定*/
    
    #g-nav li {
        list-style: none;
        text-align: center; 
        padding: 1em 0;
    }

    #g-nav .menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    #g-nav li .child li {
        padding-bottom: 0;
        padding-top: 1em;
    }
    
    #g-nav li a {
        color: #fff;
        text-decoration: none;
        display: block;
        font-weight: bold;
    }

    #g-nav li.active a {
        /* color: #ccc; */
    }

    #g-nav ul li.parent div {
        position: relative;
        color: #fff;
        text-decoration: none;
        display: block;
        font-weight: bold;
    }

    #g-nav ul li.parent div::before {
        position: absolute;
        content: "";
        width: 5px;
        height: 5px;
        top: 8px;
        border-top: 1px solid #FFF;
        border-right: 1px solid #FFF;
        transform: rotate(135deg);
        transition: 0.35s ease-in-out;
    }

    #g-nav ul li.parent div.clicked::before {
        transform: rotate(-45deg);
        top: 11px;
    }

    #g-nav ul li.parent div:hover {
        cursor: pointer;
        opacity: 1;
        transition: 0.3s ease;
    }

    #g-nav ul li.parent div span {
        margin-left: 1em;
    }

    #g-nav ul li.parent .child {
        display: none;
    }

    #g-nav ul li.parent div.clicked {
        border-bottom: none;
    }

    #g-nav ul li.parent .child li a {
        /* padding: 0 0 10px; */
    }
  
}


/*==================================
　PC用ナビゲーション
===================================*/

/* ナビゲーションメニュー：PC */
@media (min-width: 768px) {

    /* PCでは、表示させない */
    .g-nav-openbtn {
        display: none;
    }

    .nav {
        position: relative;
        height: 40px;
    }

    .menu {
        height: 40px;
        display: flex;
        justify-content: center;
        background-color: #009FE8;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
    }
    
    .menu li {
        position: relative;
        pointer-events: auto;
        transition: 0.3s;
        display: flex;
        align-items: center;
        margin-right: -1px;
    }
    
    .menu > li > a {
        height: 40px;
        background-color: #009FE8;
        background-image: linear-gradient(#009FE8, #009FE8);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        color: #FFFFFF;
        text-decoration: none;
        font-weight: bold;
        transition: color .5s;
    }

    .menu > li.parent > div {
        height: 40px;
        background-color: #009FE8;
        background-image: linear-gradient(#009FE8, #009FE8);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        color: #FFFFFF;
        text-decoration: none;
        font-weight: bold;
        transition: color .5s;
    }
    
    .menu li > a > span,
    .menu li.parent div>span {
        font-size: 12px;
        font-weight: bold;
    }

    .menu > li.parent > div > span {
        position: relative;
    }

    .menu > li.parent > div > span::after {
        position: absolute;
        bottom: 5px;
        margin-left: 4px;
        content: '';
        width: 12px;
        height: 12px;
        background-image: url(../images/ico_arrow-down.svg);
        background-repeat: no-repeat;   
    }
    
    .menu li > a:hover,
    .menu li.parent div:hover {
        background-color: #FFFFFF;
        background-image: linear-gradient(#0071b0, #0071b0);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        filter: brightness(90%) contrast(120%);
        color: #0071b0;
        text-decoration: none;
    }
    
    .menu li.parent:hover div {
        background-color: #FFFFFF;
        background-image: linear-gradient(#0071b0, #0071b0);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        filter: brightness(90%) contrast(120%);
        cursor: default;
        color: #0071b0;
    }

    .menu > li.parent:hover > div > span::after {
        opacity: 0.5; 
    }

    
    .menu li.active > a {
        background-color: #FFFFFF;
        background-image: linear-gradient(#0071b0, #0071b0);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        color: #0071b0;
        pointer-events: none;
    }
    
    .menu li.parent.active div {
        background-color: #FFFFFF;
        background-image: linear-gradient(#0071b0, #0071b0);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 100% 5px;
        color: #0071b0;
        pointer-events: none;
    }

    /* 子メニュー */

    .menu li.parent ul.child {
        display: block;
        position: absolute;
        left: 0;
        top: 40px;
        border-top: none;
    }
    
    .menu li.parent ul.child li {
        height: 0;
        overflow: hidden;
        transition: .5s;
        display: block;
        z-index: 9999;
        background: none;
        border-bottom: none;
    }
    
    .menu li.parent ul.child li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 207px;
        height: auto;
        min-height: 40px;
        background-image: linear-gradient(#FFFFFF, #FFFFFF);
        background-position: left center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        filter: brightness(100%) contrast(120%);
        padding: 0 20px;
        color: var(--sub-color);
        text-decoration: none;
        transition: color .5s;
        box-sizing: border-box;
        border-bottom: var(--sub-color) 1px solid;
        pointer-events: all;
    }

   

    .menu li.parent ul.child li > a:hover {
        cursor: pointer;
        background-image: linear-gradient(#0071b0, #0071b0);
        background-size: 100% 100%;
        filter: brightness(100%) contrast(120%);
        color: #fff;
        transition: color 1s;
    }

    .menu li.parent ul.child li > a > span {
        font-size: 12px;
        font-weight: bold;
        line-height: 1.2;
    }
    
    
    .menu li.parent:hover ul.child li {
        width: 100%;
        min-width: 207px;
        height: auto;
        min-height: 40px;
        overflow: visible;
    }
	
    /* 準備中 */
    .menu li.inactive a,
    .menu li.parent ul.child li.inactive a {
        pointer-events:none!important;
    }
}

.nav a[target="_blank"]::after {
    content: "\f360";
    font-family: "Font Awesome 5 Free";
    font-size: 0.85em;
    font-weight: 900;
    margin-left: .5em;
}