/* スマホでのメニュー表示のスタイルシート */
#wrapper {
  max-width: 640px;
  border: none;
}
#inner {
  margin: 0;
  padding: 0;
  max-width: 640px;
  border-top: 1px solid #06f;
  /* ヘッダー 64px, フッター 24px */
  min-height: calc(100vh - 64px - 24px);
}
.menu_mobile {
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.menu_mobile ul {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  list-style: none;
}
.menu_mobile li {
  height: 0;
  overflow: hidden;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
}
.menu_mobile li a:hover, .menu_mobile a:hover{
  color: #33c;
}
.menu_mobile a {
  margin: 0;
  padding: 15px;
  display: block;
  color: #000;
  background: #fff;
  text-decoration: none;
  border-bottom: 1px solid #06f;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.menu_mobile label {
  margin: 0;
  padding: 15px;
  display: block;
  color: #000;
  /* background: #fffcfc; */
  background: #eef;
  text-decoration: none;
  border-bottom: 1px solid #06f;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* 擬似要素で矢印アイコンを作成 */
/* rotate(135deg)で矢印を下向きで表示 */
.menu_mobile label:after {
  content: "";
  border: 0;
  border-top: solid 1px #000;
  border-right: solid 1px #000;
  color: #fff;
  width: 7px;
  height: 7px;
  position: absolute;
  right: 1.5em;
  margin-top: calc((1em - 0px) / 2);
  transform: rotate(135deg);
  transition:transform .3s ease;
}
/* 擬似要素で矢印アイコンを作成 */
/* rotate(-45deg)で矢印を上向きで表示 */
.menu_mobile input[type=checkbox]:checked + label:after {
  content: "";
  border: 0;
  border-top: solid 1px #000;
  border-right: solid 1px #000;
  color: #fff;
  width: 7px;
  height: 7px;
  position: absolute;
  right: 1.5em;
  margin-top: calc((1em - 0px) / 2);
  transform: rotate(-45deg);
  transition:transform .3s ease;
}
.menu_mobile input {
  display: none;
}
#menu1:checked ~ #list1 li,
#menu2:checked ~ #list2 li, 
#menu3:checked ~ #list3 li, 
#menu4:checked ~ #list4 li, 
#menu5:checked ~ #list5 li, 
#menu6:checked ~ #list6 li {
  height: 52px;
  opacity: 1;
}

/* スマホ向けの設定 */
@media screen and (max-width: 480px) {
  #inner {
    /* ヘッダー 64px, フッター(2行表示) 36px */
    min-height: calc(100vh - 64px - 36px);
  }
}
