@charset "utf-8";

/* 基本CSS */
ul, li {
  margin: 0px;
  padding: 0px;
  list-style: none;
  font-weight: normal;
}
.h-wrapper {
  width: 100%;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}
#navi {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 110px;
  width: 100%;
  transition: all .4s;
  z-index: 100;
  padding-top: 20px;
  /*box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.1);*/
}
#navi input,
.side input {
  display: none;
}
.menu-left {
  float: left;
  margin-top: 6px;
}
#navi h1,
#navi p {
  float: right;
  transition: all .4s;
  font-size: 17px;
  font-weight: bold;
  line-height: 40px; 
}
#navi .menu {
  float: right;
  transition: all .4s;
}
#navi a {
  text-decoration: none;
  color: inherit;
}
#navi a:hover {
  color: #BF0000;
}
#navi .menu .menu-parent {
  float: left;
  padding: 0px 50px 0px 0px;
  height: 60px;
  line-height: 40px;
  font-size: 18px;
  font-weight: bold;
  transition: all .4s;
}
#menu-navibtn {
  display: none;
  cursor: pointer;
  cursor: hand;
}
#openmenu {
  font-weight: bold;
}

/* ドロップダウンメニュー */
.menu-parent {
  position: relative;
}
.menu-parent .menu-child {
  visibility: hidden;
  opacity: 0;
  z-index: 1;
  position: absolute;
  top: 60px;
  left: -75px;
  width: 220px;
  background: #fff;
  box-sizing: border-box;
  padding: 4px 15px;
  border: 1px solid #534741;
}
.menu-parent .menu-child .menu-grandchild {
  visibility: hidden;
  opacity: 0;
  z-index: 1;
  position: absolute;
  top: 60;
  left: 198px;
  width: 260px;
  background: #fff;
  box-sizing: border-box;
  padding: 4px 20px;
  border: 1px solid #534741;
}
#navi .menu-child li {
  line-height: 28px;
  font-size: 14px;
  border-bottom: 1px solid #C5B097;
  padding-left: 0.5em;
}
#navi .menu-child label a {
  width: 200px;
}
#navi .menu-child .menu-child-top {
  position: relative;
}
/* △部分 */
#navi .menu-child .menu-child-top::before,
#navi .menu-child .menu-child-top::after {
  border-left: solid 10px transparent;
  border-right: solid 10px transparent;
  border-bottom: solid 12px #fff;
  top: -15px;
  content: "";
  display: block;
  height: 0;
  left: 45%;
  position: absolute;
  width: 0;
}
#navi .menu-child .menu-child-top::before {
  border-bottom: solid 12px #534741;
  margin-top: -1px;
}
#navi .menu-child li:last-child {
  border: none;
}
#navi .menu-child li i {
  margin-right: 3px;
}
#navi .menu-child li a {
  display: block;
  padding: 8px 0px;
}
#navi ul > li .pd {
  display: none;
}
#navi ul > li.parent > a {
  color: #333;
}
#navi ul > li.parent > a:hover {
  color: #F63;
}

@media screen and (min-width: 980px) {
  #navi .menu .menu-parent:nth-child(8) {
    padding-right: 0px;
  }
  .menu-parent:first-child .menu-child {
  left: -80px;
  }
  .menu-parent:nth-child(2) .menu-child {
    left: -88px;
  }
  .menu-parent:hover .menu-child {
    top: 60px;
    visibility: visible;
    transition: all .8s;
    opacity: 1;
  }
  .menu-child li:hover .menu-grandchild {
    top: -1px;
    visibility: visible;
    transition: all .8s;
    opacity: 1;
  }
  .menu-child li:nth-child(2):hover .menu-grandchild {
    top: 45px;
  }
  .menu-child li:nth-child(3):hover .menu-grandchild {
    top: 90px;
  }
}

@media screen and (max-width: 979px) {
  #navi {
    height: 50px;
    padding-top: 0;
  }
  #navi .menu-left img {
    width: 65px;
    height: 44px;
    margin-left: 10px;
  }
  #navi .menu {
    display: none;
    padding-top: 60px;
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
  }
  #navi .menu .menu-parent {
    height: auto;
    width: 86%;
    line-height: 50px;
    margin: 0px 7%;
    padding: 0;
    border-top: 1px solid #534741;
  }
  #navi .menu .menu-parent:last-child {
    border-bottom: 1px solid #534741;
  }
  #navi .menu .menu-parent a {
    padding-left: 7%;
  }
  #navi .menu .menu-parent span.pd {
    padding-left: 7%;
  }
  #navi .menu .menu-parent i {
    padding: 0px 7%;
  }
  #navi .menu .menu-parent a {
    width: 100%;
  }
  #navi .menu .menu-parent label,
  #navi .menu .menu-parent a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  #navi ul li .pd {
    display: inline-block;
    padding-right: 7%;
    padding-left: 0;
  }
  /* メニューを移動させないため */
  #menu-navibtn:checked ~ #navi {
    position: fixed;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
    background: #E4E4E4;
  }
  #navi .menu-parent .menu-child {
    transition: all 0s;
  }
  .menu-parent .menu-child {
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
  }
  #menu-navibtn:checked ~ * .menu {
    display: block;
    opacity: 1;
    z-index: 100;
  }
  #menu-navibtn:checked ~ * .menu-parent {
    max-height: inherit;
    overflow-y: visible;
  }
  #menu-navibtn:checked ~ * .menu-child {
    max-height: 0;
    overflow-y: hidden;
    visibility: hidden;
  }
  /*#menu-navibtn:checked ~ * .menu-grandchild {
    max-height: 0;
    overflow-y: hidden;
    visibility: hidden;
  }*/

  #menu-navibtn:checked ~ * #top-tel,
  #menu-navibtn:checked ~ * .menu-left {
    display: none;
  }
  .menu ul {
    margin: 0;
    padding: 0;
    background : #f4f4f4;
    list-style: none;
  }
  .menu-parent .menu-child,
  .menu-parent .menu-child .menu-grandchild {
    position: relative;
    opacity: 1;
    padding: 0;
    visibility: visible;
    top: 0;
    margin-left: auto;
    left: auto;
    width: auto;
  }
  .menu-parent .menu-child .menu-grandchild {
    /*background: #f4f4f4;*/
    border: none;
  }
  .menu-child li,
  .menu-grandchild li {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
  }
  #navi .menu-child li {
    padding-left: 0;
  }
  .menu-grandchild li:first-child {
    border-top: 1px solid #C5B097;
  }
/* クリックされた時 */
  #navi input[type="checkbox"]:checked ~ .menu-child {
    max-height: inherit;
    overflow-y: visible;
    visibility: visible;
    opacity: 1;
  }
  #navi input[type="checkbox"]:checked ~ .menu-grandchild {
    max-height: inherit;
    overflow-y: visible;
    visibility: visible;
    opacity: 1;
  }
  .angletoggle:before {
    content: "\f107";
  }
  #navi input[type="checkbox"]:checked ~ * .angletoggle:before {
    content: "\f106";
  }
  #navi .menu-parent input[type="checkbox"]:checked ~ .menu-child .angletoggle:before {
    content: "\f107";
    font-size: 18px;
    line-height: 44px;
  }
  #navi .menu-parent input[type="checkbox"]:checked ~ label .pd .angletoggle:before {
    content: "\f106";
  }
  #navi .menu-child .menu-child-top::before,
  #navi .menu-child .menu-child-top::after {
    border: none;
  }
}

/* ハンバーガー */
#navi #navibtn {
  display: none;
  cursor: pointer;
  cursor: hand;
}
#menu-btn,
#top-tel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  z-index: 200;
}
#top-tel {
  right: 50px;
}

@media screen and (max-width: 979px) {
  .h-wrapper img {
    width: auto;
  }
  #navi #navibtn {
    display: block;
  }
}
