@charset "utf-8";
/* CSS Document */
.button_container {
  position: fixed;
  right: 0px;
  top:20px;
      height: 60px;
    width: 60px;
  cursor: pointer;
  z-index: 9999;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
  background-color: #1c1c1c;
  border-radius: 50%;
}

.button_container.active{
	  background-color: transparent;
}
.button_container.active .top {
  -webkit-transform: translateY(10px) translateX(0) rotate(45deg);
          transform: translateY(10px) translateX(0) rotate(45deg);
  background: #1c1c1c;
	 width: 35px;
}
.button_container.active .middle {
  opacity: 0;
  background: #1c1c1c;
}
.button_container.active .bottom {
  -webkit-transform: translateY(-10px) translateX(0) rotate(-45deg);
          transform: translateY(-10px) translateX(0) rotate(-45deg);
  background: #1c1c1c;
	 width: 35px;
}
.button_container:hover span {
  opacity: .6;
}
.button_container span {
  background: #fff;
  border: none;
  height: 1px;
  width: 35px;
  position: absolute;
  top: 20px;
  right: 12px;
  -webkit-transition: all .35s ease;
  transition: all .35s ease;
  cursor: pointer;
}
.button_container span:nth-of-type(2) {
  top: 30px;
  width: 28px;
  text-align: right;
}
.button_container span:nth-of-type(3) {
  top: 40px;
  width: 21px;
}

.overlay {
  position: fixed;
  background:rgba(255, 253, 248, 0.95);
  top: 0;
  right: 0;
  width: 100%;
  height: 0%;
  opacity: 1;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
	z-index: 999!important;
}
.overlay.open {
  opacity: 1.0;
  visibility: visible;
  height:100%;
}

.overlay nav {
  position: absolute;
  height: 70%;
  top: 50%;
	left: 0;
	right:0;
	margin: auto;
  -webkit-transform: translateY(-50%) translateX(0%);
  transform: translateY(-50%) translateX(0%);
  text-align: left;
}
.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
 width: 60%;
  position: relative;
  height: 100%;
	text-align: center;
    background-image: url(../img/dec.png);
    background-size: 120px;
    background-position: bottom right;
    background-repeat: no-repeat;
}
.overlay ul li {
  display: block;
  height: 10%;
  height: calc(100% / 10);
  min-height: 35px;
  position: relative;
  opacity: 1;
}
.overlay ul li a {
  display: block;
  position: relative;
  color: #1c1c1c;
  text-decoration: none;
  overflow: hidden;
	font-size: 14px;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 5px;
    padding-bottom: 10px;
}
.overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
  width: 50%;
}
.overlay ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  height: 1px;
     background-color: #aaa;
  -webkit-transition: .5s;
  transition: .5s;
}



/*ここからタブレット用（768px以下）環境の設定
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media screen and (max-width: 768px){

.overlay {
    background-image: url(../img/dec.png);
    background-size: 150px;
    background-position: bottom 50px right 50px;
    background-repeat: no-repeat;
}
.overlay ul {
    background-image: none;
}
	
}
	
/*ここからスマホ用（667px以下）環境の設定
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media screen and (max-width: 667px){
.button_container {
    top: 10px;
}
.overlay {
    background-size: 100px;
    background-position: bottom 20px right 20px;
}
}
