@charset "EUC-JP";

/*【ヘダーのメニュー】*/
/*========= ナビゲーションドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
#head-menu{
  /*background-color: #1d4bad;*/ 
  background-color: var(--hf_bg); 
  /*border-top: solid 8px #ffff00;*/
  border-top: solid 8px var(--border);
}

nav{
  width: 100%;
  height: auto;   /*メニュータブの高さ*/
/*  background:#333; */
  color:#fff;
  text-align: center;
  margin: auto;
}
/*ナビゲーションを横並びに*/
nav ul{
  list-style: none;
  display: flex;
  padding-left: 0;   /*黒点をとるため*/
  margin: auto;
  height: 60px;
  justify-content: center;
}
/*2階層目以降は横並びにしない*/
nav ul ul{
  display: block;
  padding-left: 0;　　/*黒点をとるため*/
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li{
  position: relative;
  padding-top: 0px;
  padding-bottom: 0px;
}

nav ul li a:hover{
  opacity: 0.5;
}

/*ナビゲーションのリンク設定*/
nav ul li a, nav li.has-child p{
  display: block;
  text-decoration: none;
  /*color: #000000;*/
  color: var(--hf_moji);
  padding:18px 30px;
  transition:all .3s;
  white-space: nowrap;
  text-align: left;
}

nav ul li li a{
  padding:15px 20px;  /*メニューダウンリストの縦横調整*/
}

nav ul li p:hover{
  background: #3f69b5;
  text-decoration: none;
}
/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before{
  content:'';
  position: absolute;
  left:14px;
  top:24px;
  width:6px;
  height:6px;
  border-top: 2px solid var(--hf_moji);
  border-right:2px solid var(--hf_moji);
  transform: rotate(135deg);
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before{
  content:'';
  position: absolute;
  left:6px;
  top:17px;
  width:6px;
  height:6px;
    border-top: 2px solid #fff;
    border-right:2px solid #fff;
    transform: rotate(45deg);
}

/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul{
    /*絶対配置で位置を指定*/
  position: absolute;
  left:0;
  z-index: 20;
    /*形状を指定*/
  /*background:#ffffff;*/
  background: color-mix(in srgb, var(--hf_bg), white 40%);
  width:180px;
  height: auto;
    /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
    /*アニメーション設定*/
  transition: all .3s;
}

/*hoverしたら表示*/
nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul{
  visibility: visible;
  opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a{
  /*color: #000000;*/
  color: var(--hf_moji);
  border-bottom: solid 1px #999999;
  text-decoration: none;
}

nav li.has-child ul li:last-child a{
  border-bottom:none;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active{
  /*background:#3577CA;*/
  opacity: 0.5;
  text-decoration: none;
}


/*==3階層目*/

/*3階層目の位置*/
nav li.has-child ul ul{
  top:0;
  left:182px;
  background:#66ADF5;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
  background:#448ED3;
  text-decoration: none;
}

#kanri-tab{
  display: none;
}

/*23.4.24*/
@media screen and (max-width:768px){
/*@media screen and (max-width:480px){*/
#kanri-tab{
  display: block;
}
}

