@charset "utf-8";
/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: 0;
  right: -120%;
  width: 100%;
  height: 100vh;
  background: rgba(0,73,141,0.9);
  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%);
  transform: translate(10%, 50%);
}
/*リストのレイアウト設定*/
#g-nav li {
  width: 100%;
  list-style: none;
  text-align: left;
  border-bottom: 1px solid var(--primary);
  position: relative;
	font-weight: 600;
}

#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 7px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}
/*ロゴ*/
header {
  background: var(--primary);
  text-align: center;
  position: fixed;
	z-index: 999;
}
.pc_menu {
  height: 60px;
}
.pc_menu ul {
  display: flex;
  margin-top: 10px;
}
.pc_menu li {
	padding: 5px;
	font-size:100%;
	font-weight: 600;
	position: relative;
	text-align: left;
	padding-right: 2rem;
	background: #FFF;
	margin-right:2px;
	padding-left:15px;
}

#header .pc_menu li a{
	color:var(--primary);
	text-decoration:none!important;
}
#header .pc_menu li a::after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f054";
	color: var(--primary);
	position: absolute;
	right: 5px;
	top: 30%;
	transition: all .3s;
	font-size: 9px;
}

.header_logo {
  position: fixed;
  z-index: 10;
  top: 0;
  left: -5px;
  cursor: pointer;
  width: 96px;
  height: 60px;
  background: #FFF;
  text-align: center;
}
.header_logo img {
	width: 100%;
	height: 100%;
	margin-top: 4px;
}
/*========= ボタンのためのCSS ===============*/
.openbtn1 {
	position: fixed;
	z-index: 9999;
	top: 0px;
	right: 0px;
	cursor: pointer;
	width: 60px;
	height: 60px;
	background: var(--primary);
}
/*×に変化*/
.openbtn1 span {
  display: inline-block;
  transition: all .5s;
  position: absolute;
  left: 17px;
  height: 3px;
  border-radius: 2px;
  background-color: #FFF;
  width: 45%;
}
.openbtn1 span:nth-of-type(1) {
  top: 16px;
}
.openbtn1 span:nth-of-type(2) {
  top: 27px;
}
.openbtn1 span:nth-of-type(3) {
  top: 37px;
}

.openbtn1 span:nth-of-type(2)::after{
	content: "menu";
	font-size:0.5rem;
	padding-top:3px;
	display: block;
	color: #FFF;
	position: absolute;
	top:10px;
}
.openbtn1.active span:nth-of-type(1) {
  top: 20px;
  left: 17px;
  transform: translateY(6px) rotate(-45deg);
  width: 50%;
}
.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn1.active span:nth-of-type(3) {
  top: 32px;
  left: 17px;
  transform: translateY(-6px) rotate(45deg);
  width: 50%;
}
.openbtn1.active span:nth-of-type(2)::after{
	opacity: 0;
}

#header {
  width: 100%;
  padding: 0;
}
#footer {
  background: var(--mdgray);
  padding: 20px 20px 60px;
  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 {
  width: 100%;
	padding:0 1rem;
}
#footer figure {
  text-align: center;
  width: 180px;
}
#footer p {
  width: calc(100% - 130px);
}
#footer b {
  display: inline-block;
  margin-bottom: 5px;
}
/*細かい部分*/
li.nav_main {
	padding-top: 15px;
	padding-bottom: 15px;
}

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";
  color: var(--lightgray);
  position: absolute;
  right: 0;
  top: 30%;
  transition: all .3s;
}
li.nav_main:hover::before {
  left: 10%;
}
li.nav_main:hover::after {
  right: -2%;
  color: var(--sub);
}
@media screen and (max-width:620px) {
  #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;
  }
	.header_logo {
	width: 100%;
	height: 60px;
		text-align:left;
}
.header_logo img {
	width: 75px;
	margin-top: 4px;
	height: auto;
}
}
@media screen and (max-width:500px) {
#g-nav ul {
	width: calc(100% - 10%);
	transform: translate(5%, 50%);
}
  #g-nav li a {
    padding: 3px 8px;
  }
  li.nav_sub {
    padding-left: 2rem;
  }
}
@media screen and (max-width:400px) {
  li.nav_main {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  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;
  }
}