@charset "utf-8";
button {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  vertical-align: middle;
  text-align: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
/**************** 以下、ハンバーガーボタンのスタイリング ****************/
.btn {
  /* ボタンの配置位置  */
  position: fixed;
  top: 20px;
  right: 20px;
  /* 最前面に */
  z-index: 1002;
  /* ボタンの大きさ  */
  width: 36px;
  height: 36px;
}
@media screen and (min-width: 780px) {
  .btn {
    top: 26px;
    right: 30px;
    width: 60px;
    height: 60px;
  }
}
/***** 真ん中のバーガー線 *****/
.btn-line {
  display: block;
  /* バーガー線の位置基準として設定 */
  position: relative;
  /* 線の長さと高さ */
  width: 100%;
  height: 3px;
  /* バーガー線の色 */
  background-color: #BD0002;
  transition: 0.2s;
}
/***** 上下のバーガー線 *****/
.btn-line::before,
.btn-line::after {
  content: "";
  /* 基準線と同じ大きさと色 */
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #BD0002;
  transition: 0.5s;
}
.btn-line::before {
  /* 上の線の位置 */
  transform: translateY(-10px);
}
.btn-line::after {
  /* 下の線の位置 */
  transform: translateY(10px);
}
@media screen and (min-width: 780px) {
  .btn-line {
    height: 4px;
  }
  .btn-line::before {
    transform: translateY(-18px);
  }
  .btn-line::after {
    transform: translateY(18px);
  }
}
/***** メニューオープン時 *****/
.btn-line.open {
  /* 真ん中の線を透明に */
  background-color: transparent;
}
.btn-line.open::before,
.btn-line.open::after {
  content: "";
  background-color: #ffffff;
  transition: 0.2s;
}
.btn-line.open::before {
  /* 上の線を傾ける */
  transform: rotate(135deg);
}
.btn-line.open::after {
  /* 上の線を傾ける */
  transform: rotate(-135deg);
}
/**************** ここまで、ハンバーガーボタンのスタイリング ****************/
/**************** 以下、メニューのスタイリング ****************/
.menu {
  /* メニューを縦に */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  /* メニューの位置マイナス指定で画面外に */
  right: -70%;
  width: 70%;
  height: 100vh;
  margin: 0;
  padding: 60px 0 0 0;
  background-color: #BD0002;
  color: #ffffff;
  transition: 0.3s;
  z-index: 1001;
}

.menu .menu-list {
  display: flex;
  text-align: center;
}

.menu .menu-list a {
  flex: 1 1 auto;
  color: #ffffff;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}
@media screen and (min-width: 780px) {
  .menu {
    right: -22%;
    width: 22%;
    padding: 80px 0 0 0;
  }
}
.menu-list {
  /* メニューテキスト位置をリスト内中心に */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
}
.menu-list:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}
/***** メニューオープン時位置0にして画面内に *****/
.menu.open {
  position: fixed;
  right: 0;
  top: 0;
}


