@charset "utf-8";

body {
	background-color: #fff;
}

/* ドロワーメニュー
////////////////////////////////////////////////////////////////////*/

#menu-function > input {
	display: none;
}

#css-menu, .next dd .content {
    box-sizing: border-box;
    padding-top: 50px;
    height: 435px;
}


/* 本体 ///
---------------------------------------------- */
#css-menu {
    margin: auto;
    width: 300px;
    border: 1px solid #fff;
    border-radius: 5px;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
	box-shadow: 6px 6px 6px 0px rgba(0,0,0,0.1);
    z-index: -1;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    transition: 0.2s linear;
    pointer-events: none;
}
input:not(#func-close):checked ~ #css-menu {
    opacity: 1;
    z-index: 9999;
	-webkit-transform: translateX(0);
    transform: translateX(0);
	/* z-index以外をtransition */
	-webkit-transition: -webkit-transform 0.15s linear,opacity 0.15s linear;
    transition: transform 0.2s linear,opacity 0.2s linear;
    pointer-events: auto;
}

/* 本体 > リスト ///
---------------------------------------------- */

#css-menu ul::-webkit-scrollbar {
    height: 10px;
    background: #f0f0f0;
}
#css-menu ul::-webkit-scrollbar-thumb {
    background: #cdcdcd;
    border-radius: 2px;
}

/*----------*/

#css-menu > ul {
    width: inherit;
    height: 100%;
    overflow-y: scroll;
    z-index: 1;
}
input:not(#func-close):not(.sub-menu):checked ~ #css-menu {
	-webkit-overflow-scrolling: touch;
}

/*----------*/

.next dt {
	position: relative;
}
.next dt::after {
    margin: auto;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-left: 10px solid currentColor;
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    content: "";
}

.next dd {
    width: 200px;
    position: absolute;
    top: 0;
    z-index: 10;
    -webkit-transform: translateX(300px);
    transform: translateX(300px);
    transition: 0.2s ease-in-out;
    overflow: hidden;
}
.next .content {
    overflow-y: scroll;
}
input.sub-menu:checked ~ #css-menu .next .content {
    -webkit-overflow-scrolling: touch;/*stacking context対策*/
}
input#func-sub0:checked ~ #css-menu .next #ul_sub1 ,
input#func-sub1:checked ~ #css-menu .next #ul_sub2 {
    box-shadow: -8px 0px 6px -5px rgba(0,0,0,0.3);
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
}

.back00::before {
    margin: auto;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-right: 10px solid rgba(255,255,255,0.6);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    content: ""
}
.back00 {
    padding-left: 40px !important;
}

/* メニュー内項目 ///
---------------------------------------------- */

#css-menu a, #css-menu dt > label {
    padding: 14px 20px 14px 40px;
    display: block;
    position: relative;
    font-size: 1.4rem;
}
#css-menu > label::after {
    color: rgba(255,255,255,0.6);
    position: absolute;
    right: 15px;
    content: "\f00d";
	font-family: fontawesome;
}
#menu-list > li:not(:nth-last-child(2)), .next ul > li:not(:last-child) {
    border-bottom: 1px dotted rgba(0,0,0,0.2);
}

/*----------*/

#css-menu ul a::before, #css-menu dt > label::before {
    margin: auto;
    height: 1em;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    font-weight: normal;
    line-height: 100%;
    opacity: 0.8;
    font-family: fontawesome;
}

/*----------*/

.css-mbtn {
    padding: 17px 20px;
    position: absolute !important;
    display: block;
    top: 0;
    right: 0;
    left: 0;
    color: #fff;
    font-size: 16px;
    line-height: 100%;
    z-index: 1;
}

/*----------*/

.back01 {
    display: none;
}
input.sub-menu:checked ~ #css-menu .back01 {
	display: block;
}
input.sub-menu:checked ~ #css-menu .back01 label {
    background-color: rgba(0,0,0,0.3);
    display: block;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-indent: 999px;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(0,0,0,0.2);
    z-index: 2;
}

/* 背景黒 + 閉じ用ラベル ///
---------------------------------------------- */
input:not(#func-close):checked ~ label {
    background-color: rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
}
