@charset "utf-8";

/* ===============================================
ヘッダーのスタイリング
=============================================== */
.header {
  height: 70px !important; /*WordPressのスタイル上書きに!important*/
/*  background-color: #fff;*/
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.header__container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: inherit;
  color: #666;
  padding: 0 25px;
  margin-right: auto;
  margin-left: auto;
}
.header__logo a {
  text-decoration: none;
  font-size: 30px;
  color: #555;
  font-weight: bold;
  text-align: center;
}

/* ===============================================
ハンバーガーボタンのスタイリング
=============================================== */
.hamburger {
  width: 50px;
  height: 80px;
  position: relative;
  /* appearance: none; */
  border: 0;
  padding: 0;
  margin: 0;
  background-color: transparent;
  cursor: pointer;
  z-index: 2;
}
.hamburger span,
.hamburger span::after,
.hamburger span::before {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.5s;
}
.hamburger span::before {
  top: -10px;
}
.hamburger span::after {
  bottom: -10px;
}
.hamburger.open span {
  background-color: transparent;
}
.hamburger.open span::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #fff;
}
.hamburger.open span::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: #fff;
}

/*----------------------------
* メニュー本体
*----------------------------*/
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}
.nav__list {
  width: 100vw;
  display: block;
}
.nav__item {
  width: 100%;
  height: auto;
  padding: .5em 1em;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
  list-style: none;
}
.nav__item a {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  padding: .2em 0 .2em 0;
}
.nav__item a:hover {
  color: #0f5474;
  background-color: #fff;
}

/*----------------------------
* アニメーション部分
*----------------------------*/

/* アニメーション前のメニューの状態 */
.nav {
  transform: translateX(100vw);
  transition: all .3s linear;
}
/* アニメーション後のメニューの状態 */
.nav.open {
  transform: translateX(0);
}
