@charset "UTF-8";

/* -------------------------------------------------- */
/* 鍵カッコ */
/*--------------------------------------------------- */
/* -------------------------------------------------- */
/* html */
/*--------------------------------------------------- */
/* 変数ここまで */
header {
  max-width: 1000px;
  width: 100%;
  margin: 24px auto;
}

header div.flex {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

header a {
  color: #333;
}

header a:visited {
  color: #333;
}

header a:hover {
  color: #665035;
}

header img {
  max-width: 291px;
}

header li {
  list-style: none;
}

@media (min-width: 769px) {
  header li {
    padding-left: 3em;
  }
}

header li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

header li a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #fff;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
  -webkit-transform-origin: left top;
  transform-origin: left top;
  -webkit-transition: -webkit-transform .3s;
  transition: -webkit-transform .3s;
  transition: transform .3s;
  transition: transform .3s, -webkit-transform .3s;
}

header li a:hover::after {
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
}

header.white {
  display: block;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.8);
  margin-top: 0px;
  padding: 30px 0;
  width: 100%;
  max-width: initial;
  z-index: 100;
}

header.white img {
  max-height: 50px;
}

/*ナビゲーション*/
.navFlex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.navFlex a {
  text-decoration: none;
  font-size: 20px;
  font-size: 2rem;
  color: #333;
}

.navFlex a:visited {
  color: #333;
}

.navFlex a:hover {
  color: #665035;
}

#nav_toggle {
  display: none;
}

/*ハンバーガーメニュー部分*/
@media (max-width: 768px) {
  header nav {
    display: none;
    position: absolute;
    top: 84px;
    width: 100%;
    left: 0;
    z-index: 5;
  }
}

@media (max-width: 768px) and (max-width: 480px) {
  header nav {
    top: 80px;
  }
}

@media (max-width: 768px) {
  header nav ul {
    margin: 0 auto;
    display: block;
  }

  header nav ul li {
    margin: 0 auto;
  }
}

/*ハンバーガーメニューのレイアウト*/
@media (max-width: 768px) {
  header nav {
    background-color: white;
    border: 1px solid #eee;
  }

  header nav ul {
    width: 90%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  header nav ul li {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 16px 0 16px 0;
    width: 100%;
  }

  /*開閉ボタン*/
}

@media (max-width: 768px) {
  #nav_toggle {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 100;
    color: black;
  }

  #nav_toggle div {
    position: relative;
    top: 8px;
  }

  #nav_toggle span {
    display: block;
    height: 3px;
    background: #000;
    position: absolute;
    width: 100%;
    -webkit-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
  }

  #nav_toggle span:nth-child(1) {
    top: 0px;
  }

  #nav_toggle span:nth-child(2) {
    top: 12px;
  }

  #nav_toggle span:nth-child(3) {
    top: 24px;
  }
}

/*開閉ボタンopen時*/
.open #nav_toggle span:nth-child(1) {
  top: 12px;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}

.open #nav_toggle span:nth-child(2) {
  width: 0;
  left: 50%;
}

.open #nav_toggle span:nth-child(3) {
  top: 12px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

/*メニューを開閉した後にナビメニューが消えない対処法*/
@media (min-width: 769px) {
  header nav {
    display: block !important;
  }
}

/*レスポンシブ*/
@media (max-width: 768px) {
  header .flex img {
    max-width: 200px;
  }
}

@media (max-width: 768px) and (max-width: 480px) {
  .headFix {
    display: block;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  header.white {
    padding-top: 24px;
    padding-bottom: 16px;
    margin-top: 30px;
  }
}

.headFix li a {
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 700;
}

.headFix li a:after {
  background: #333;
  /* style */
}

@media (max-width: 768px) {
  header.white {
    padding-top: 24px;
    padding-bottom: 24px;
    margin-top: 0;
  }
}

@media (max-width: 768px) and (max-width: 480px) {
  header.white {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}