/* #################################################################################################################### */
/* #################################################################################################################### */
/* ▼global_navi
*/

/* ===================================================================================================== */
/* スクロール表示
*/

/*3本線*/
.global_navi_hamb_in_icon, .global_navi_hamb_in_icon::before, .global_navi_hamb_in_icon::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 100;
    top:9px;
    bottom:0;
    width: 42px;
    height: 5px;
    background: #1cb0c7;
    cursor: pointer;
}
.global_navi_hamb_in_icon:before {
    top: 10px;
}
.global_navi_hamb_in_icon:after {
    top: 20px;
}

/*3本線背景*/
#global_navi_hamb_icon_scroll_btn{
	position: fixed;
	top: 10px;
	left: 20px;
	z-index: 101;
	width: 50px;
	height: 42px;
	background:rgba(161, 161, 161, 0.5);
}

/* ===================================================================================================== */
/* ハンバーガーメニュー hamburger menu
*/

.global_navi_hamb{
  position: relative;
}
/*inputのcheckboxは非表示に*/
.global_navi_hamb_check {
  display:none;
}
/*ハンバーガーメニュー*/
.global_navi_hamb_icon {
    display: inline-block;
    z-index: 200;
    width: 40px;
    height: 32px;
    padding:4px;
    text-align:center;
    vertical-align: middle;
}
/*メニュー以外を暗くする*/
#gNaviHambBlack {
    display: none;
    position: fixed;
    z-index: 98;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4087ad;
    opacity: 0;
    transition: .7s ease-in-out;
}
/*中身*/
#global_navi_hamb_contents {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    padding: 70px 16px 500px 16px;
    background: #a19c9c;
    overflow: auto;
    transition: .3s ease-in-out;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
    -webkit-overflow-scrolling: touch;
}
/*チェックボックスにチェックが入ったら表示*/
input:checked ~ #global_navi_hamb_icon_scroll_btn .global_navi_hamb_icon .global_navi_hamb_in_icon{
    background: transparent;
}
input:checked ~ #global_navi_hamb_icon_scroll_btn .global_navi_hamb_icon .global_navi_hamb_in_icon::before{
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top:10px;
    z-index:999;
}
input:checked ~ #global_navi_hamb_icon_scroll_btn .global_navi_hamb_icon .global_navi_hamb_in_icon::after{
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    top:10px;
    z-index:999;
}
input:checked ~ #gNaviHambBlack {
    display: block;/*カバーを表示*/
    opacity: .8;
}
#global_navi_hamb_checkbox:checked ~ #global_navi_hamb_contents {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
    box-shadow: 6px 0 25px rgba(0,0,0,.15);
}
#global_navi_hamb_icon_scroll_btn .global_navi_hamb_icon .global_navi_hamb_in_icon, #global_navi_hamb_icon_scroll_btn .global_navi_hamb_icon .global_navi_hamb_in_icon::before, #global_navi_hamb_icon_scroll_btn .global_navi_hamb_icon .global_navi_hamb_in_icon::after, #gNaviHambBlack, #global_navi_hamb_contents{
    -webkit-transition: all .3s ;
    transition: all .3s ;}

/* ===================================================================================================== */
/* 開閉メニュー global_navi_accordion_menu
*/

/* メニュー全体 */
.global_navi_accordion_menu {
  width: 20rem;
}

/* ハンバーガーメニュー縦スクロール調整用 ※背景が動かないように */
.global_navi_accordion_menu_inner {
  height: 100vh;
  width: 20rem;
  padding-bottom:300px;
}

/* チェックボックスは非表示にする（内部的な Off/On の機能だけ利用する） */
.global_navi_accordion_menu .global_navi_accordion_menu_inner input {
    display: none;
}

/* ============== 親項目の装飾 ============== */
.global_navi_accordion_menu .global_navi_accordion_menu_inner label {
    color:#ffffff;
    font-weight:bold;
    display: block;
    margin: 0;
    padding: 0.5rem;
    cursor: pointer;
}

.global_navi_accordion_menu .global_navi_accordion_menu_inner label a {
    color:#ffffff;
    font-weight:bold;
    text-decoration: none;
}

.global_navi_accordion_menu .global_navi_accordion_menu_inner label:hover {
    color:#ffffff;
}

/* ============== サブメニュー ============== */
/* 開いた状態のサブメニュー */
.global_navi_accordion_menu .global_navi_accordion_menu_inner input:checked + ul {
    display: block;  /* 表示する */
    line-height: 1.5;
    padding: 1rem 1rem;
}

/* 閉じた状態のサブメニュー */
.global_navi_accordion_menu .global_navi_accordion_menu_inner ul {
    display: none;
    overflow: hidden;
    line-height: 0;
    transition: 0.2s;
    /* 下記は開閉によらず共通の設定 */
    list-style: none;
    margin: 0 0 1.0rem 0;
    padding: 1.0rem 1.0rem 2.0rem 1.0rem;
}

.global_navi_accordion_menu .global_navi_accordion_menu_inner ul li{
    margin-left:10px;
    border-bottom: solid 1px #b8cdd6;
}
.global_navi_accordion_menu .global_navi_accordion_menu_inner ul li a {
    font-weight:normal;
    display: block;
    font-size: 14px;
    padding: 0.5rem;
    text-decoration: none;
    transition-duration: 0.2s;
    color: #ffffff;
}
.global_navi_accordion_menu .global_navi_accordion_menu_inner ul li a:hover {
    background: #ed5353;
}

/* ============== 矢印 ============== */
/* 左→ */
.global_navi_accordion_menu .global_navi_accordion_menu_inner > label > a > .caret_t,
.global_navi_accordion_menu .global_navi_accordion_menu_inner > label > .caret_t {
	border-left: 8px solid #67d2f0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	content: '';
	display: inline-block;
	height: 0;
	width: 0;
	vertical-align: middle;
	-webkit-transition: color 0.1s linear;
	        transition: color 0.1s linear;
}
/* 右↓ */
.global_navi_accordion_menu .global_navi_accordion_menu_inner > label > .caret {
	border-top: 6px solid #fff;
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
	content: '';
	display: inline-block;
	height: 0;
	width: 0;
	vertical-align: middle;
	-webkit-transition: color 0.1s linear;
	        transition: color 0.1s linear;
}

/* ===================================================================================================== */
/* 開閉メニューボックス
*/

#global_navi_box{
	width: 100%;
	background-color:#8a8a8a;
	margin: 0 auto 0 auto;
}
#global_navi{
	width: 100%;
	margin: 0 auto 0 auto;
	padding: 0;
}
#global_navi{
	display: none;
}
#globalToggle{
	display: block;
	position: relative;
	width: 100%;
}
#globalToggle a{
	display: block;
	position: relative;
	padding: 12px 0 10px;
	color: #fff;
	text-align: center;
	text-decoration: none;
}
#globalToggle:before{
	display: block;
	content: "";
	position: absolute;
	top: 50%;
	left: 10px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
}
#globalToggle a:before, #globalToggle a:after{
	display: block;
	content: "";
	position: absolute;
	top: 50%;
	left: 10px;
	width: 20px;
	height: 4px;
	background: #ccf6ff;
}
#globalToggle a:before{
	margin-top: -6px;
}
#globalToggle a:after{
	margin-top: 2px;
}
