﻿@charset "utf-8";
/* サイドオープン時にメインコンテンツを覆う部分 */
.overlay {
  content: '';
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  z-index: 3;
}
.overlay::after {
  content: "×";
  visibility: hidden;
  position: fixed;
  top: 40%;
  left: 0;
  display: block;
  width: 100%;
  height: 50px;
  color: rgba(255,255,255,0);
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
}
@media screen and (max-width:720px){
  .side-open .overlay {
    visibility: visible;
    cursor: pointer;
    background: rgba(0,0,0,.7);
  }
  .side-open .overlay::after {
    visibility: visible;
    color: rgba(255,255,255,.8);
  }
}
/* サイドメニュー */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  text-align:left;
  width: 150px;
  height: 100%;
  padding-top: 20px;
  font-size: 13px;
  background: #2A408E;
  z-index: 1;
}
@media screen and (min-width:720px){
  .side-menu {
    position:sticky;
  }
  body{
    display:flex;
    flex-wrap:nowrap;
    flex-direction:row-reverse;
    justify-content:center;
  }
}
.side-menu p{
  color:#ffffff;
  padding-left:5px;
}
.side-menu .logout{
  display:inline-block;
  color:#ffffff;
  background:#336699;
  border-radius:8px;
  font-size:0.6em;
  padding:5px 10px;
  text-align:center;
  margin:0 auto;
  text-decoration:none;
}
.side-menu .logout a:visited{
  color:#ffffff;
}
.side-menu ul{
  padding:0px;
  border-top:solid 1px #999999;
}
.side-menu li{
  list-style-type:none;
  border-bottom:solid 1px #999999;
  line-height:1;
}
.side-menu li a{
  color:#ffffff;
  padding:10px 5px;
  text-decoration:none;
  display:block;
  width:140px;
}
.side-menu a:visited,
.side-menu a:hover{
  color:#ffffff;
  text-decoration:none;
}
/* 開閉用ボタン */
.side-menu-btn_1 {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background:url(/img/menu.png);
  background-size:40px 40px;
  cursor: pointer;
  z-index: 4;
}
/* トップページ行用ボタン */
.side-menu-btn_2 a{
  position: fixed;
  display:block;
  bottom: 20px;
  right: 80px;
  width: 40px;
  height: 40px;
  background:url(/img/menu2.png);
  background-size:40px 40px;
  cursor: pointer;
  z-index: 4;
}
/* メインコンテンツ */
.all{
  position: relative;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  z-index: 2;
}
/* サイドメニューオープン */
@media screen and (max-width:720px){
  .side-open .all,
  .side-open .overlay {
    -webkit-transform: translate3d(-150px, 0, 0);
    transform: translate3d(-150px, 0, 0);
  }
}