@charset "UTF-8";

@media screen and (min-width: 769px) {
  nav {
      position: relative;
      display: flex;
      align-items: flex-start;
      padding: 0 0 5px;
      box-sizing: border-box;
  }
  nav ul {
      position: relative;
      margin: 0;
      padding: 0;
      list-style: none;
  }
  nav ul li {
      position: relative;
      float: left;
  }
  nav ul li:not(:first-child) {
      border-left: none;
  }
  nav ul li a {
      display: inline-block;
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 700;
      font-style: italic;
      font-family: 'Open Sans', sans-serif;
      text-align: center;
      letter-spacing: 1px;
      }
  nav ul li a:link, nav ul li a:visited {
      text-decoration: none;
  }
  nav>ul>li>a:hover {
      text-decoration: underline;
  }
  nav ul li:hover > ul {
      display: block;
  }
  nav ul ul {
      display: none;
      position: absolute;
      top: 100%;
      left: -2px;
  }
  nav ul ul li {
      float: none;
      margin: 0;
      background: rgba(255,255,255,.7);
      border-bottom: 1px solid #fff;
      width: 180px;
  }
  nav ul ul li a {
      color: #111;
  }
  nav ul ul li:hover {
      background: rgba(255,255,255,95);
  }
  nav ul ul ul {
      position: absolute;
      top: -2px;
      left: 100%;
  }
}




@media screen and (max-width: 768px) {
  #nav-top {
      margin: 2rem 0 0;
  }
  #nav-top nav {
      position: absolute;
      z-index: 100;
      width: 100%;
      height: 80vh;
      top: -150vh;
      left: 0;
      background: #866146;
      box-sizing: border-box;
      transition: .3s ease-in-out;
      text-align: left;
      overflow: auto;
  }
  #nav-top nav ul {
      margin: 0;
      padding: 0;
      list-style: none;
  }
  #nav-top ul li {
      line-height: 1.5;
    }
  #nav-top ul li a {
      display: block;
      color: #FFF !important;
      text-decoration: none;
      font-weight: 700;
      font-style: italic;
      font-family: 'Open Sans', sans-serif;
  }
  #nav-top ul>li a {
      margin: 0 0 1px;
      padding: 10px 0 10px 20px;
      background: rgba(255,255,255,.05);
  }
  #nav-top ul>li>ul>li a {
      padding: 10px 0 10px 30px;
      background: rgba(255,255,255,.15);
  }
  #nav-top ul>li>ul>li>ul>li a {
      padding: 10px 0 10px 40px;
      background: rgba(255,255,255,.25);
  }


  /*--- クリック時 ---*/
  .openNav nav {
      transform: translateY(150vh);
  }
  #nav-top.openNav  nav {
      background: rgba(0,0,0,.95);
  }
  .openNav #toggle span:nth-child(1) {
      top: 11px;
      transform:rotate(-45deg);
      border-color: #FFF;
  }
  .openNav #toggle span:nth-child(2),.openNav #toggle span:nth-child(3) {
      top: 11px;
      transform:rotate(45deg);
      border-color: #FFF;
  }


  /*--- トグルアイコン ---*/
  #toggle {
      position: absolute;
      z-index: 200;
      width: 25px;
      height: 20px;
      top: -35px;
      left: 20px;
      cursor: pointer;
  }
  #toggle div {
      position:relative;
  }
  #toggle span {
      display: block;
      position: absolute;
      width: 100%;
      border-bottom: solid 3px #FFF;
      transition: .38s ease-in-out;
  }
  #toggle span:nth-child(1) {
      top: 0;
  }
  #toggle span:nth-child(2) {
      top: 8px;
  }
  #toggle span:nth-child(3) {
      top: 16px;
  }
}