header {
  box-shadow: none;
  padding: 1rem 8% 0.8rem;
  position: fixed;
  text-align: center;
  top: 0;
  width: 100vw;
  z-index: 999;
  }


@media screen and (min-width: 280px) and (max-width: 919px) {
  header {
    background-color: rgba(0, 0, 0, 0);
    display: block;
    height: 60px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    text-align: left;
  }
}


@media screen and (min-width: 920px) {
  input[type="checkbox"] {
    visibility: hidden;
  }
}

nav {
  margin: auto;
  z-index: 999;
}

@media screen and (min-width: 280px) and (max-width: 919px) {
  #sidebarMenu {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    left: 0;
    position: fixed;
    transform: translateX(-100vw);
    transition: transform 250ms ease-in-out;
    top: 0px;
    width: 100vw;
  }
}
@media screen and (min-width: 280px) and (max-width: 919px) and (orientation: portrait) {
  #sidebarMenu {
    padding-top: 100px;
  }
}
@media screen and (min-width: 280px) and (max-width: 919px) and (orientation: landscape) {
  #sidebarMenu {
    padding-top: 65px;
  }
}

@media screen and (min-width: 280px) and (max-width: 919px) {
  #sidebarMenu ul {
    list-style: none;
    margin: auto;
  }
}
@media screen and (min-width: 920px) {
  #sidebarMenu ul {
    display: flex;
    list-style: none;
    margin: auto 0 auto;
    position: relative;
    right: 0;
  }
}

@media screen and (min-width: 280px) and (max-width: 919px) {
  #sidebarMenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    display: block;
    font-weight: bold;
    list-style: none;
    text-transform: uppercase;
    width: 100vw;
  }
}
@media screen and (min-width: 920px) {
  #sidebarMenu li {
    align-items: center;
    background-color: rgba(42, 42, 42, 0.7);
    display: flex;
    justify-items: start;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    padding: 10px 60px 10px 12px;
    white-space: nowrap;
  }
}

@media screen and (min-width: 280px) and (max-width: 919px) {
  #sidebarMenu li:nth-child(1) {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
  }
}
@media screen and (min-width: 280px) and (max-width: 919px) and (orientation: portrait) {
  #sidebarMenu li {
    padding-bottom: 15px;
  }
}
@media screen and (min-width: 280px) and (max-width: 919px) and (orientation: landscape) {
  #sidebarMenu li {
    padding-bottom: 9px;
  }
}

#sidebarMenu li:hover,
#sidebarMenu li:focus {
  background-color: rgba(230, 212, 74, 0.7);
  cursor: pointer;
}

@media screen and (min-width: 280px) and (max-width: 919px) {
  #sidebarMenu li a {
    border-left: solid rgba(255, 255, 255, 1) 10px;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.2rem;
    line-height: 40px;
    margin: auto 0;
    text-decoration: none;
    text-indent: 1rem;
  }
}
@media screen and (min-width: 920px) {
  #sidebarMenu li a {
    border-left: solid #ececec 5px;
    box-sizing: border-box;
    color: #fff;
    display: block;
    text-decoration: none;
    text-indent: 10px;
    width: 100%;
  }
}

@media screen and (min-width: 280px) and (max-width: 919px) and (orientation: portrait) {
  .button1,
  .button2,
  .button3,
  .button4,
  .button5,
  .button6 {
    width: 100vw;
    height: 70px;
    /* (buttonのheight)-(aのline-height:40)/2 */
    padding-top: 15px;
  }
}
@media screen and (min-width: 280px) and (max-width: 919px) and (orientation: landscape) {
  .button1,
  .button2,
  .button3,
  .button4,
  .button5,
  .button6 {
    width: 100vw;
    height: 50px;
    padding-top: 5px;
  }
}

@media screen and (min-width: 920px) {
  /* 左マージン:12px */
  .button1 {
    width: calc(102px - 12px);
  }
  .button2 {
    width: calc(147px - 12px);
  }

  .button3 {
    width: calc(143px - 12px);
  }

  .button4 {
    width: calc(203px - 12px);
  }
  .button5 {
    width: calc(135px - 12px);
  }
  .button6 {
    display: none;
  }
}

@media screen and (min-width: 280px) and (max-width: 919px) {
  input[type="checkbox"]:checked ~ #sidebarMenu {
    transform: translateX(0);
  }
  /* メニューアイコン */
  input[type="checkbox"] {
    box-sizing: border-box;
    display: none;
    transition: all 0.3s;
  }
  .sidebarIconToggle {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    cursor: pointer;
    left: 0;
    height: 60px;
    padding: auto;
    position: absolute;
    text-align: center;
    top: 0;
    transition: all 0.3s;
    width: 60px;
    z-index: 999;
  }
  .spinner {
    background-color: #ececec;
    box-sizing: border-box;
    height: 2px;
    margin: auto;
    position: absolute;
    transition: all 0.3s;
    width: 50%;
  }
  .horizontal {
    box-sizing: border-box;
    float: none;
    margin-top: 8px;
    position: relative;
    transition: all 0.3s;
  }
  .diagonal.part-1 {
    box-sizing: border-box;
    float: none;
    margin-top: 12px;
    position: relative;
    transition: all 0.3s;
  }
  .diagonal.part-2 {
    box-sizing: border-box;
    float: none;
    margin-top: 8px;
    position: relative;
    transition: all 0.3s;
  }
  .sidebarIconToggle::after {
    bottom: 2px;
    color: #fff;
    content: "MENU";
    float: none;
    font-size: 10px;
    margin: auto;
    position: relative;
  }

  input[type="checkbox"]:checked ~ .sidebarIconToggle > .horizontal {
    box-sizing: border-box;
    opacity: 0;
    transition: all 0.3s;
  }
  input[type="checkbox"]:checked ~ .sidebarIconToggle > .diagonal.part-1 {
    box-sizing: border-box;
    margin-top: 28px;
    transition: all 0.3s;
    transform: rotate(135deg);
  }
  input[type="checkbox"]:checked ~ .sidebarIconToggle > .diagonal.part-2 {
    box-sizing: border-box;
    margin-top: -12px;
    transition: all 0.3s;
    transform: rotate(-135deg);
  }
  input[type="checkbox"]:checked ~ .sidebarIconToggle::after {
    opacity: 0;
  }
}
