/*========= ドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
#cateNav{
  text-align: center;
}

/*ナビゲーションを横並びに*/
#cateNav ul{
    /*2階層目の基点にするためrelativeを指定*/
  position: relative;
  list-style: none;
  display: flex;
  /*justify-content: center;*/
}

/*2階層目以降は横並びにしない*/
#cateNav ul ul{
  display: block;
}

/*ナビゲーションのリンク設定*/
#cateNav ul li a{
    /*矢印の基点にするためrelativeを指定*/
  position: relative;
  display: block;
  text-decoration: none;
  color: #666;
  padding:12px 24px;
  transition:all .3s;
}

#cateNav ul li li a{
  padding:20px;
}

#cateNav ul li a:hover{
  color:#222; 
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/

#cateNav ul li.has-child > a::before{
  content:'';
  position: absolute;
  left:15px;
  top:25px;
  width:6px;
  height:6px;
  border-top: 2px solid #999;
    border-right:2px solid #999;
    transform: rotate(135deg);
}

/*==2階層目以降の画像設定*/

#cateNav ul li.has-child img{
  max-width: 100%;
  height: auto;
  transition: all .5s;
  vertical-align: bottom;
}

/*hoverしたら画像拡大*/
#cateNav ul li.has-child img:hover{
  transform: scale(1.2);
}

#cateNav ul li.has-child dt{
  overflow: hidden;
  height: 20vh;
  margin:0 0 20px 0;
}

@media screen and (max-width:1200px){
#cateNav ul li.has-child dt{
  height: 12vh;
}
  
}

/*== 2層目の設定 */

#cateNav li.has-child ul{
  /*絶対配置で位置を指定*/
    position: absolute;
  left:0%;
  top:46px;
  z-index: 4;
  /*子要素を横並びに*/    
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
    /*形状を指定*/
  background:#888;
  /*width:90%;*/
    /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
     /*アニメーション設定*/
  transition: all .3s;
}

/*hoverしたら表示*/
#cateNav li.has-child:hover > ul{
  visibility: visible;
  opacity: 1;
}

/*各ナビゲーション横幅*/
#cateNav li.has-child ul li{
  width:20%;
}

/*ナビゲーションaタグの形状*/
#cateNav li.has-child ul li a{
  color: #fff;
}

#cateNav li.has-child ul li a:hover,
#cateNav li.has-child ul li a:active{
  background:#3577CA;
}

/*== 2層目の設定 Div */

#cateNav li.has-child div{
  /*絶対配置で位置を指定*/
    position: absolute;
  left:5%;
  top:48px;
  z-index: 4;
  /*子要素を横並びに*/    
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
    /*形状を指定*/
  background:#888;
  width:90%;
    /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
     /*アニメーション設定*/
  transition: all .3s;
}

/*hoverしたら表示*/
#cateNav li.has-child:hover > div{
  visibility: visible;
  opacity: 1;
}



/*==768px以下の形状*/
@media screen and (max-width:768px){
  
  #cateNav ul{
    display: block;
  }

  #cateNav li.has-child ul{
    position: relative;
  left:0;
  top:0;
  width:100%;
  visibility:visible;/*JSで制御するため一旦表示*/
  opacity:1;/*JSで制御するため一旦表示*/
  display: none;/*JSのslidetoggleで表示させるため非表示に*/
  transition:none;/*JSで制御するためCSSのアニメーションを切る*/
}
    
  #cateNav li.has-child ul li{
    width:100%;
    text-align: left;
  }
  
  #cateNav li.has-child ul li dl{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #cateNav li.has-child ul li dt{
    width:30%;
    height: auto;
    margin: 0;
  }

  #cateNav li.has-child ul li dd{
    width:64%;      
  }

    
    #cateNav ul li a{
      padding: 10px 20px;
      border-bottom:1px solid #ccc;
}
    
    #cateNav ul li li a{
    padding: 0;
}
  
/*矢印の位置と向き*/
  
#cateNav ul li.has-child > a::before{
  top:17px;
  left:20px;
    transform: rotate(135deg);
}
    
#cateNav ul li.has-child.active > a::before{
    transform: rotate(-45deg);
}
}


        /*------------- Tab content - closed -------------------------*/
        .tab-content {
          max-height: 0;
          transition: max-height 0.5s;
        }

        /* :checked - resize to full height */
        .tab input:checked~.tab-content {
          max-height: 100vh;
        }

        /* Label formatting when open */
        .tab input:checked+label {
          /*@apply border-l-2 border-indigo-500 bg-gray-100 text-indigo*/
          border-left-width: 4px;
          border-color: #78716C;
          background-color: #f8fafc;
          color: #78716C;
          /*.text-indigo*/
        }

        /* Icon */
        .tab label::after {
          float: right;
          right: 0;
          top: 0;
          display: block;
          width: 1.5em;
          height: 1.5em;
          line-height: 1.5;
          font-size: 1.25rem;
          text-align: center;
          transition: all 0.75s;
        }

        /* Open Multiple Icon Formatting - Closed */
        .tab input[type="checkbox"]+label::after {
          content: ">";
          font-weight: bold;
          /*.font-bold*/
          border-width: 1px;
          /*.border*/
          border-radius: 9999px;
          /*.rounded-full */
          border-color: #b8c2cc;
          /*.border-grey*/
          display: flex;
          justify-content: center;
          align-items: center;
        }

        /* Open Multiple Icon Formatting - Open */
        .tab input[type="checkbox"]:checked+label::after {
          transform: rotate(90deg);
          background-color: #A8A29E;
          /*.bg-indigo*/
          color: #f8fafc;
          /*.text-grey-lightest*/
        }

        /* Open One Icon Formatting - Closed */
        .tab input[type="radio"]+label::after {
          content: "\25BE";
          font-weight: bold;
          /*.font-bold*/
          border-width: 1px;
          /*.border*/
          border-radius: 9999px;
          /*.rounded-full */
          border-color: #b8c2cc;
          /*.border-grey*/
        }

        /* Open One Icon Formatting - Open */
        .tab input[type="radio"]:checked+label::after {
          transform: rotateX(180deg);
          background-color: #A8A29E;
          /*.bg-indigo*/
          color: #f8fafc;
          /*.text-grey-lightest*/
        }