@charset "utf-8";

/*
  CSS のみのドロップダウンメニュー
  Copyright Rectus Inc, 2019
  https://www.rectus.co.jp/
 */

#navi {
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
#navi input[type="checkbox"] {
  display: none;
}
#navi h1,
#navi div.menu-left {
  float: left;
  line-height: 100px;
  font-size: 18px;
  font-weight: bold;
}
#navi h1 img,
#navi div.menu-left img {
  vertical-align: middle;
  margin-top: -8px;
  width: 48px;
  height: auto;
  padding-right: 6px;
}
#navi .menu {
  float: right;
}
#navi a {
  text-decoration: none;
}
#navi .menu > li {
  float: left;
  padding: 0px 0px 0px 18px;
  line-height: 100px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}
#navi .menu li:last-child {
  margin-right: 0px;
}
#menu-navibtn {
  display: none;
  cursor: pointer;
  cursor: hand;
}
#openmenu {
  font-weight: bold;
}
@media screen and (max-width: 928px), screen and (max-height: 600px) {
  #menu-navibtn {
    display: inherit;
    opacity: 0;
  }
  #navi {
    width: 100%;
  }
  #navi h1,
  #navi div.menu-left {
    float: none;
    line-height: 60px;
    font-size: 16px;
  }
  #navi h1 img,
  #navi div.menu-left img {
    margin-top: -2px;
    width: 36px;
    height: auto;
  }
  #navi .menu {
    display: none;
  }
  #navi .menu li {
    width: 100%;
    line-height: 50px;
    background: white;
    padding: 0px 20px 0px 20px;
    border-bottom: 1px solid #999;
  }
  #navi .menu li i {
    padding: 0px 20px;
  }
  #navi ul {
    float: none;
  }
  #navi input[type="checkbox"] {
    display: inline-block;
    opacity: 0;
  }
  /* メニューを移動させないため */
  #menu-navibtn:checked ~ #navi {
    position: fixed;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
  }
}

/* 固定メニュー */
@media screen and (min-width: 928px) and (min-height: 600px) {
  #navi.fixed {
    height: 60px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  }
  #navi.fixed h1,
  #navi.fixed div {
    font-size: 18px;
    height: 60px;
    line-height: 60px;
  }
  #navi.fixed h1 img,
  #navi.fixed div img {
    margin-top: -7px;
    width: 34px;
    height: auto;
  }
  #navi.fixed .menu > li {
    height: 60px;
    line-height: 60px;
    font-size: 15px;
  }
  #navi.fixed li .menu-child,
  #navi.fixed li:hover .menu-child {
    top: 60px;
  }
}
/* ドロップダウンメニュー */
#navi li {
  position: relative;
}
#navi li .menu-child {
  visibility: hidden;
  opacity: 0;
  z-index: 1;
  position: absolute;
  top: 100px;
  left: 35%;
  margin-left: -80px;
  width: 200px;
  background: #fff;
  box-sizing: border-box;
  padding: 4px 20px;
  border: 1px solid #000;
}
@media screen and (min-width: 928px) and (min-height: 600px) {
  #navi li:nth-child(2) .menu-child {
    width: 305px;
    margin-left: -130px;
  }
  #navi li:first-child .menu-child,
  #navi li:nth-child(3) .menu-child {
    width: 275px;
    margin-left: -130px;
  }
  #navi li:focus-within .menu-child,
  #navi li:hover .menu-child {
    top: 95px;
    visibility: visible;
    transition: all .8s;
    opacity: 1;
  }
  #navi li span[tabindex="0"] {
    pointer-events: none;
  }
  #navi li:last-child .menu-child {
    margin-left: -110px;
  }
}
@media screen and (max-width: 928px), screen and (max-height: 600px) {
  #navi li .menu-child {
    transition: all 0s;
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
  }
}
@media screen and (max-width: 928px), screen and (max-height: 600px) {
  #menu-navibtn:checked ~ * .menu {
    display: block;
    opacity: 1;
  }
  #menu-navibtn:checked ~ * li {
    max-height: inherit;
    overflow-y: visible;
  }
  #menu-navibtn:checked ~ * .menu-child {
    max-height: 0;
    overflow-y: hidden;
    visibility: hidden;
  }
  .menu ul {
    margin: 0;
    padding: 0;
    background :#f4f4f4;
    list-style: none;
  }
  #navi li .menu-child {
    position: relative;
    opacity: 1;
    padding: 0 20px;
    visibility: visible;
    top: 0;
    margin-left: auto;
    left: auto;
    width: auto;
  }
  .menu-child 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 input[type="checkbox"]:checked ~ .menu-child {
    max-height: inherit;
    overflow-y: visible;
    visibility: visible;
    opacity: 1;
  }
  .angletoggle:before {
    content: "\f107";
  }
  #navi input[type="checkbox"]:checked ~ * .angletoggle:before {
    content: "\f106";
  }
  #navi .opensubmenu:focus-visible ~ label span span {
    border: blue 2px solid;
  }
}
#navi .menu-child li {
  line-height: 28px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
}
#navi .menu-child li:first-child {
  position: relative;
}
/* △部分 */
#navi .menu-child li:first-child::before,
#navi .menu-child li:first-child::after {
  border-left: solid 10px transparent;
  border-right: solid 10px transparent;
  border-bottom: solid 12px #fff;
  top: -15px;
  content: "";
  display: block;
  height: 0;
  left: 47%;
  position: absolute;
  width: 0;
}
@media screen and (max-width: 928px), screen and (max-height: 600px) {
  #navi .menu-child li:first-child::before,
  #navi .menu-child li:first-child::after {
    border: none;
  }
}
#navi .menu-child li:first-child::before {
  border-bottom: solid 12px #000;
  margin-top: -1px;
}
#navi .menu-child li:last-child {
  border: none;
}
#navi .menu-child li img {
  width: auto;
  height: 30px;
  float: left;
  margin-right: 10px;
  margin-top: 0;
}
#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:focus-visible,
#navi ul > li.parent > a:hover {
  color: #F63;
}
@media screen and (max-width: 928px), screen and (max-height: 600px) {
  #navi ul {
    float: none;
  }
  #navi ul > li .pd {
    display: inline-block;
    width: 100%;
  }
  #navi li.nochild a {
    width: 100%;
    display: inline-block;
  }
}

/* ハンバーガー */
#navi #navibtn {
  display: none;
  cursor: pointer;
  cursor: hand;
}
@media screen and (max-width: 928px), screen and (max-height: 600px) {
  #navi #navibtn {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  #menu-navibtn:focus-visible ~ div label#navibtn {
    border: blue 2px solid;
  }
  #navi #navibtn span:focus-visible,
  #navi #navibtn span {
    display: block;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #333;
  }
  #navibtn span span {
    display: block;
    overflow: hidden;
  }
  #navibtn span span::before,
  #navibtn span span::after,
  #navibtn span::after {
    position: absolute;
    left:10px;
    content:"";
    width: 20px;
    height: 3px;
    background-color: #FFF;
    transition: .2s;
  }
  /* 上の棒 */
  #navibtn span span::before {
    top:10px;
  }
  #menu-navibtn:checked ~ #navi label#navibtn span span::before {
    top:19px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
  }
  /* 下の棒 */
  #navibtn span::after {
    bottom:10px;
  }
  #menu-navibtn:checked ~ #navi label#navibtn > span::after {
    bottom:18px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
  }
  /* 中の棒 */
  #navibtn span span::after {
    top:18px;
  }
  #menu-navibtn:checked ~ #navi label#navibtn span span::after {
    display: none;
  }
}
@media print {
  #navi {
    position: absolute;
  }
  .menu {
    display: none;
  }
  #navi h1, #navi div.menu-left {
    line-height: 28px;
    font-size: 14px;
    margin: 1px 6px;
  }
  #navi h1 img, #navi div.menu-left img {
    vertical-align: middle;
    width: 22px;
    margin-top: -2px;
  }
  .title {
    margin-top: 0px;
  }
}

/* wordpressログイン時のメニューバーのズレ修正 */
@media screen and (max-width: 928px) {
  .customize-support .title {
    margin-top: 0;
  }
  .customize-support #navi {
    top: 46px;
  }
  .customize-support #main {
    margin-top: 60px;
  }
}
@media screen and (min-width: 928px) {
  .customize-support #navi {
    top: 32px;
  }
}
.searchbar {
  line-height: 26px;
  padding: 2px;
}
.searchbar span:last-child {
  float: right;
}
/* 固定メニュー */
@media screen and (min-width: 928px) and (min-height: 600px) {
  #navi.fixed .searchbar {
    display: none;
  }
}
@media screen and (max-height: 600px) {
  #navi .searchbar span:last-child {
    margin-right: 36px;
    line-height: 60px;
  }
}
@media screen and (max-width: 928px) {
  #navi .searchbar span:first-child {
    display: none;
  }
  #navi .searchbar span:last-child {
    margin-right: 36px;
    line-height: 60px;
  }
}
@media screen and (max-width: 466px) {
  #navi .searchbar input {
    width: 60px;
  }
}
