@charset "utf-8";
/* CSS Document */
.menu {
  width: 100%;
  padding: 0 0 0 0;
}
.menu input {
  display: none; /*チェックボックスを隠す*/
}
/*バー部分*/
.menu label {
  cursor :pointer;
  display: block;
  text-decoration: none;
  line-height: 1;
  position: relative;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}
/*開いたときに表示される部分*/
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;

}
.menu li {
  height: 0;
  overflow-y: hidden;
  transition: padding-bottom 0.5s, padding-top 0.5s; /*閉じるときのアニメーション*/
  -webkit-transition: padding-bottom 0.5s, padding-top 0.5s
  -moz-transition: padding-bottom 0.5s, padding-top 0.5s;
  -ms-transition: padding-bottom 0.5s, padding-top 0.5s;
  -o-transition: padding-bottom 0.5s, padding-top 0.5s;
}
#menu_bar01:checked ~ #links01 li,
#menu_bar02:checked ~ #links02 li,
#menu_bar03:checked ~ #links03 li,
#menu_bar04:checked ~ #links04 li,
#menu_bar05:checked ~ #links05 li
{
  height: auto; /*開いたときに表示されるliの高さ*/
  opacity: 1;
  padding: 0 0 0 0;
}
 /*開いたときの下の余白*/
#menu_bar01:checked ~ #links01 li:last-child,
#menu_bar02:checked ~ #links02 li:last-child,
#menu_bar03:checked ~ #links03 li:last-child,
#menu_bar04:checked ~ #links04 li:last-child,
#menu_bar05:checked ~ #links05 li:last-child
{
  margin-bottom: 20px;
}
/*閉じた状態の矢印描画*/
.menu label:after{
  content:"";
  display:block;
  width:10px;
  height:10px;
  border-top: #FFF 2px solid;
  border-right: #FFF 2px solid;
  -webkit-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
  position:absolute;
  right: 5%;
  top: auto;
  bottom: 15%;
  margin: auto;
}
/*開いた状態の矢印描画*/
.menu input[type=checkbox]:checked + label:after{
  content:"";
  display:block;
  width:10px;
  height:10px;
  border-top: #FFF 2px solid;
  border-right: #FFF 2px solid;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position:absolute;
  right: 5%;
  top: auto;
  bottom: 10%;
  margin: auto;
}

.menu label.arrow:after{
  content:"";
  display:block;
  width:10px;
  height:10px;
  border-top: #000000 2px solid;
  border-right: #000000 2px solid;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position:absolute;
  right: 5%;
  top: auto;
  bottom: 10%;
  margin: auto;
}
@media screen and (min-width: 768px) {
/*閉じた状態の矢印描画*/
.menu label:after{
  content:"";
  display:block;
  width:30px;
  height:30px;
  border-top: #FFF 2px solid;
  border-right: #FFF 2px solid;
  -webkit-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
  position:absolute;
  right: 5%;
  top: auto;
  bottom: 15%;
  margin: auto;
}
/*開いた状態の矢印描画*/
.menu input[type=checkbox]:checked + label:after{
  content:"";
  display:block;
  width:30px;
  height:30px;
  border-top: #FFF 2px solid;
  border-right: #FFF 2px solid;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position:absolute;
  right: 5%;
  top: auto;
  bottom: 10%;
  margin: auto;
}
.menu label.arrow:after{
  content:"";
  display:block;
  width:30px;
  height:30px;
  border-top: #000000 2px solid;
  border-right: #000000 2px solid;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position:absolute;
  right: 5%;
  top: auto;
  bottom: 10%;
  margin: auto;
}

}

@media screen and (min-width: 768px) {
#menu_bar01:checked ~ #links01 li,
#menu_bar02:checked ~ #links02 li,
#menu_bar03:checked ~ #links03 li,
#menu_bar04:checked ~ #links04 li,
#menu_bar05:checked ~ #links05 li{
  height: auto; /*開いたときに表示されるliの高さ*/
  opacity: 1;
  padding: 0 0 0 0;
}

}
