@charset "utf-8";
/*========= ナビゲーションのためのCSS ===============*/
#header a:link, #header a:visited {
  color: var(--primary);
}
#header a:hover {
  color: var(--primary-light);
}
#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: 0;
  right: -120%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #FFF;
  transition: all 0.5s;
}
/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  right: 0;
}
/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh; /*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/*ナビゲーション*/
#g-nav ul {
  position: absolute;
  z-index: 999;
  top: 0%;
  width: calc(100% - 10%);
  max-width: 350px;
  transform: translate(10%, 10%);
  height: 100%;
}
/*リストのレイアウト設定*/
#g-nav li {
  width: 100%;
  list-style: none;
  text-align: left;
  border-bottom: 1px solid var(--lightgray);
  position: relative;
}
#g-nav li:last-child {}
#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 7px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
/*ロゴ*/
.header_logo {
  position: fixed;
  z-index: 10;
  top: 5px;
  left: 0;
  cursor: pointer;
  width: 100px;
  height: 60px;
}
.header_logo img {
  width: 100%;
  height: 100%;
}
/*========= ボタンのためのCSS ===============*/
.openbtn1 {
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 10px;
  cursor: pointer;
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 100%;
}
/*×に変化*/
.openbtn1 span {
  display: inline-block;
  transition: all .5s;
  position: absolute;
  left: 19px;
  height: 3px;
  border-radius: 2px;
  background-color: #FFF;
  width: 45%;
}
.openbtn1 span:nth-of-type(1) {
  top: 24px;
}
.openbtn1 span:nth-of-type(2) {
  top: 34px;
}
.openbtn1 span:nth-of-type(3) {
  top: 44px;
}
.openbtn1.active span:nth-of-type(1) {
  top: 28px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 50%;
}
.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn1.active span:nth-of-type(3) {
  top: 40px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 50%;
}
#header {
  width: 100%;
  padding: 0;
}
/*フッター*/
#footer {
  background: var(--gray);
  padding: 20px 20px 60px;
  color: var(--mdgray);
  font-size: 0.8rem;
  line-height: 150%;
  text-align: left;
}
#footer p small {
  font-size: 12px;
  display: block;
}
#footer figure img {
  max-width: 122px;
}
#footer .contact {
	padding-left:1rem;
  border-left: 1px solid var(--mdgray);
}
#footer .contact {
  width: 40%;
}
#footer figure {
  text-align: center;
  width: 180px;
}
#footer p {
  display: block;
  text-align: right;
  width: 100%;
}
#footer b {
  display: inline-block;
  margin-bottom: 5px;
}
.copy{
	height: 100%;
}
/*細かい部分*/
li.nav_main {
  padding-top: 5px;
  padding-bottom: 5px;
	padding-left:60px;
}
#header li:nth-child(3) {
  border-bottom: 0px;
}
li.nav_sub {
  border-bottom: 0 !important;
  padding-left: 1.5rem;
}
li.nav_sub a {
  font-weight: 400 !important;
}
li.nav_sub::after {
  content: "";
  width: 12px;
  position: absolute;
  border-top: 2px solid var(--primary);
  top: 52%;
  left: 15px;
}
li.nav_main {
  font-size: 1.2rem;
}
li.nav_main:after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054";
  position: absolute;
  right: 0;
  top: 30%;
  transition: all .3s;
	color:var(--primary)
}
li.nav_main:hover::before {
  left: 10%;
}
li.nav_main:hover::after {
  right: -2%;
  color: var(--primary-light);
}
#g-nav li a img {
	width: 50px;
	display: inline-block;
	padding-top: 12px;
	position: absolute;
	top: -3px;
	left:0;
}
@media screen and (max-width:600px) {
  #footer .contact {
    width: 100%;
    margin-bottom: 20px;
  }
  #footer figure {
    text-align: center;
    width: 100%;
    margin: 20px auto 10px;
  }
  #footer p {
    width: 100%;
    text-align: center;
  }
  #footer .contact {
    padding-bottom: 2rem;
  }
}
@media screen and (max-width:500px) {
  #g-nav ul {
    width: calc(100% - 10%);
    max-width: 350px;
    transform: translate(5%, 20%);
  }
#g-nav li a {
	padding: 20px 15px;
}
  li.nav_sub {
    padding-left: 2rem;
  }
}
@media screen and (max-width:400px) {
  li.nav_main {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  li.nav_main::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    color: var(--lightgray);
    position: absolute;
    right: 0;
    top: 24%;
    transition: all .3s;
  }
}