@charset "utf-8";
#header {
  z-index: 10;
}

.pc_menu li{color:#ccc;}
.pc_menu li.cs{color: #555;font-size:0.8em;}
/* --- ナビの外枠（スライドのアニメーションだけを担当） --- */
#g-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  right: -120%; /* スタート位置（画面外） */
  width: 100%;
  height: 100dvh; /* スマホのバーを考慮した高さ */
  background: rgba(0, 73, 141, 0.9);
  transition: all 0.5s;
}

/* アクティブクラスがついたら画面内に表示 */
#g-nav.panelactive {
  right: 0;
}

/* --- ナビの中身（スクロールと上下中央配置を担当） --- */
#g-nav-list {
  width: 100%;
  height: 100%;
  overflow-y: auto; /* メニューが増えたらここをスクロールさせる */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* 背面スクロールの連鎖を防ぐ（対応ブラウザ用） */

  /* 中身を上下中央に寄せるためのFlexbox */
  display: flex;
  flex-direction: column;
}

/* --- ナビゲーションメニュー本体 --- */
#g-nav ul {
  width: calc(100% - 17%);
  margin: auto; /* これで確実に上下左右中央になります */
  padding: 40px 0; 
  box-sizing: border-box;
}

/* --- 【重要】メニューが開いているときに背景ページを完全固定する用 --- */
body.nav-open {
  overflow: hidden;
}
/*リストのレイアウト設定*/
#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;
}*/
.nav_hiduke {
  padding: 0 2rem;
  text-align: center;
  margin-top: -1rem;
}
.nav_hiduke img {
  width: 96%;
}
.pc_menu {
  width: 100%;
}
.pc_menu ul {
  width:100%;
  max-width: 200px;
  margin: 3rem auto;
  height: 100%;
}
.pc_menu li {
	padding: 5px;
	font-size: 1rem;
	font-weight: 500;
	position: relative;
	text-align: left;
}
.pc_menu a {
  text-decoration: none;
  position: relative;
  color: var(--primary) !important;
}
.pc_menu .btn a{
	color:#FFF!important;
}
.pc_menu.header_logo {
  width: 100%;
}
.sp_menu {
  display: none !important;
}
/*========= ボタンのためのCSS ===============*/
.openbtn1 {
  position: fixed;
  z-index: 9999;
  top: 0px;
  right: 0px;
  cursor: pointer;
  width: 55px;
  height: 55px;
  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;
}
#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 {
  content: "";
	background: url(./arrow-right.svg) no-repeat center center;
	background-size:100%;
  position: absolute;
  right: 0;
  top: 30%;
	width:10px;
	height:20px;
  transition: all .3s;
}
li.nav_main:hover::before {
  left: 10%;
}
li.nav_main:hover::after {
  right: -2%;
  color: var(--sub);
}	.nav_btn{
		font-size:0.8em!important;
		width:80%!important;
		padding:1px;
		margin: 0 auto!important;
		background: var(--red);
	}
/*小さいPC*/
@media screen and (max-width:1440px) {
.pc_menu.header_logo {
	width: 100%;
	margin: 0 auto !important;
}

}
@media screen and (max-width:960px) {
  #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 {
	background: rgba(255,255,255,0.8);
	height: 55px;
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
}
  .header_logo {
    width: 100%;
    height: 60px;
    text-align: left;
  }
  .header_logo img {
    width: 80px;
    margin-top: 4px;
    height: auto;
  }
.sp_menu.header_logo {
	display: block !important;
	position: fixed;
	z-index: 10;
	top: 0;
	left: -5px;
	cursor: pointer;
	width: 100px;
	height: 55px;
	text-align: center;
}
  .sp_menu.header_logo img {
    width: 100%;
    height: 100%;
    margin-top: 4px;
  }
  .sp {
    display: block !important;
  }
  .pc {
    display: none !important;
  }
}
@media screen and (max-width:500px) {

  #g-nav li a {
    padding: 3px 8px;
  }
  li.nav_sub {
    padding-left: 2rem;
  }
}
@media screen and (max-width:400px) {
  li.nav_main {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size:14px;
  }
  
}