﻿/* 浮き出しmodal用 */
body{
	overflow-y: scroll;
}
/* メニューボタンのアウター */
#ht_menu_button {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 3px 10px;
    z-index: 10040;
    cursor: pointer;
}
/* メニューボタンのインナーリンク */
.ht_modal-a{
	z-index:10050;
	height:100%;
	width:100%;
	position: absolute;
	left:0;
	top:0;
}
/* メニューボタン内のハンバーガー */
.ht_menu-line1,
.ht_menu-line2,
.ht_menu-line3 {
	position: absolute;
    left: 5px;
    width: 40px;
    height: 1px;
    border-radius: 2px;
    opacity:0.8;
    background-color: #333;
    transition-duration: 0.5s;
}
.ht_menu-line1 {
	top:12px;
}
.ht_menu-line2 {
	top:24px;
}
.ht_menu-line3 {
	bottom:13px;
}
/* 通常時のモーダルオープン */
.ht_modal-open {
	display:block;
}
.ht_modal-close {
  display:block;
}
a.ht_modal-close > .ht_menu-line1 {
  -webkit-transform: translateY(11px) rotate(-45deg);
  transform: translateY(12px) rotate(-45deg);
}
a.ht_modal-close > .ht_menu-line2 {
  opacity: 0;
}
a.ht_modal-close > .ht_menu-line3 {
  -webkit-transform: translateY(-11px) rotate(45deg);
  transform: translateY(-12px) rotate(45deg);
}

/* モーダルの中身 */
#ht_menu {
	width: 290px;
    height: 600px;
    max-height: calc(100vh - 30px);
    text-decoration: none;
    text-align: left;
    z-index: 9999;
    background: #FFF;
    display: none;
    border: 1px solid #666;
    opacity: 1;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#ht_menu::-webkit-scrollbar {  /* Chrome, Safari 対応 */
    display:none;
}
#ht_menu-content {
    width: 100%;
    margin: 5px auto;
    padding: 10px 30px;
    z-index: 10020;
    position: relative;
    height: calc(600px - 40px);
    
}
/* モーダル内のタイトル */
#ht_menu-content .menu_title{
	width: 100%;
    margin: 0px auto;
    margin-top: 3px;
    font-weight: normal;
    font-size: 1.5em;
}
#ht_menu-content .menu_sub_title{
    font-size: 0.9em;
    line-height: 1;
}
#ht_menu-content ul{
	list-style-type: none;
    width: 100%;
    margin: 50px auto 0;
    padding: 0px;
    font-size: 1.5em;
}

#ht_menu-content li{
	width: 98%;
	margin:0px auto;
	padding:3px 1%;
	color:#323333;
	border-bottom:1px solid #989898;
}
#ht_menu-content li:first-child{
	border-top:1px solid #989898;
}
#ht_menu-content li:hover,
#ht_menu-content li:active,
#ht_menu-content li.li_here{
	border-bottom: 1px solid #aaa;
	transition-duration: 0.3s;
}
#ht_menu-content ul li a{
 	margin:0px 0px 0px 0px;
	padding:5px 5px 5px 0;
	display:block;
	color: #323333;
	text-decoration:none;
}
#ht_menu-content .menu_footer{
	font-size: 0.9em;
    position: absolute;
    bottom: 0;
    left: 50%;
    text-align: center;
    margin: auto;
    width: 100%;
	transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
}
#ht_menu-content p {
    margin:0;
    padding:0;
}
/* bodyを固定するクラス */
.ht_modal-fixed {
    position: fixed;
	left:0;
}
/* 全体を覆うレイヤー */
.ht_modal-overlay {
    z-index:10000;
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:130vh;
    opacity: 0.5;
}
/* 後から追加するモーダルのラッパー */
.ht_modal-wrap {
    z-index: 10010;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    height: 100%;
}
.ht_modal-open {
    text-decoration:none;
    cursor: pointer;

}
.ht_modal-close {
    text-decoration:none;
    cursor:pointer;

}
