@charset "utf-8";

/*----------------------------------------
Global NAVI 基本
-----------------------------------------*/
.site_header{
  background-color: #001e48;
  width: 100%;
  position: relative;
  z-index: 20;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.site-header_ctr{
  padding: 0.5em 1rem 0.7em;
}

h1.site-header_logo{
  margin:0;
  display: inline-block;
}

h1.site-header_logo a {
  text-decoration: none;
  color: #FFF;
}

h1.site-header_logo a span{
  font-size: 1rem;
  font-weight: 500;
  display: block;
}

/*子メニュー
----------------*/
nav ul ul{
  display: block;
}

nav ul li.has-child{
  position: relative;
}

li.menu_item.has-child {
  display: block;
  padding: 14px 1rem;
  text-align: center;
  color: #fff;
}

li.menu_item.has-child:hover {
  cursor: pointer;
}

nav li.menu_item.has-child strong::after{
  content: "\f150";
  font-family: "Font Awesome 7 Free";
  font-weight: 600;
  margin-left: 4px;
}

nav li.has-child ul{
  position: absolute;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  list-style: none;
  padding-left: 0;
  font-weight: 500;
}

nav li.has-child:hover > ul{
  visibility: visible;
  opacity: 1;
  transition: all .5s ease-out;
}

nav li.has-child:hover > ul > li{
  padding-left: 0;
}

nav li.has-child ul>li>a{
  color: #333;
  text-decoration: none;
  padding: 14px 1.2em;
  display: inline-block;
  width: 200px;
  background-color:#ebd272;
  text-align: center;
  border-bottom: 1px solid #b78b30;
}
  
nav li.has-child ul>li>a::before{
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ebd272;
  width: 20px;
  height: 10px;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

nav li.has-child ul>li>a:hover{
  background-color:#B19C4F;
  opacity: 1;
}

/*PC表示用のナビ*/
nav.device-pc{
  display: none;
}

@media(min-width:1200px){
  .site-header_ctr{
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
  }
  
  h1.site-header_logo a span{
    font-size: 1.5rem;
  }
}

@media(min-width:992px){
  #site_header{
    height: auto;
  }
  
  .site-header_ctr{
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-header_logo{
    text-align: left;
    padding: 5px 0;
    margin-left: 0;
  }
  
  ul.global-nav_list{
    list-style: none;
    margin: 0;
    padding-left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  ul.global-nav_list>li{
    display: flex;
    justify-content: flex-end;
  }

  ul.global-nav_list>li>a{
    color: #FFF;
    text-decoration: none;
    padding: 14px 1em;
    text-align: center;
  }

  ul.global-nav_list li a:hover,
  nav li.has-child ul>li>a:hover{
    opacity: 1;
    transition: all 0.5s;
  }

  li.menu_item strong{
    font-size: 14px;
    display: block;
    line-height: 1;
  }
  
  li.menu_item span{
    font-size: 10px;
    opacity: 0.8;
    display: block;
  }
  
  nav.device-pc{
    display: block;
  }
  
  li.menu_item.menu_contact a{
    background-color: #ebd272;
    color: #333;
  }
  
  li.menu_item.menu_contact a:hover{
    transition: 0.3s;
    opacity: 0.8;
  }
}

/*----------------------------------------
Global NAVI PC表示スクロール時
ヘッダーの高さを最小限にする
----------------------------------------*/
#site_header.heightMin{
  animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime{
from {
  opacity: 0;
  transform: translateY(-170px);
}
  
to {
  opacity: 1;
  transform: translateY(0);
}
}

#site_header.heightMin .site-header_ctr{
  justify-content: center;
}

#site_header.heightMin ul.global-nav_list>li>a{
  padding: 10px 1.5em;
}

#site_header.heightMin nav ul li.has-child::after{
  height: 20px;
}

@media (min-width:992px){
  #site_header.heightMin{
    position: fixed;
    z-index: 999;
  }

  #site_header.heightMin .site-header_ctr{
    padding: 0;
  }

  #site_header.heightMin h1.site-header_logo{
    display: none;
  }
}

/*----------------------------------------
Mobile NAVI
----------------------------------------*/
#mobile-nav_site-logo a{
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.3;
}

#mobile-nav_site-logo a span{
  font-size: 14px;
  font-weight: 400;
}

/*メニューを開いた状態（ボタンを押す前）*/
.mobile-nav_ctr{
  position: fixed;
  z-index: 999;
  top: 0;
  right: -120%;
  width: 100%;
  height: 100vh;
  background-color: rgba(2,31,71,1);
  transition: all 0.6s;
}

/*メニューボタンを押した後の位置*/
.mobile-nav_ctr.panelactive{
  top: 0;
  right: 0;
}

.mobaile-nav_inner{
  padding: 2rem 1.5rem;
}

/*ハンバーガーメニュー（横線3本）
----------------------------------------*/
.mobile-nav-menu_btn{
  position: fixed;
  z-index: 9999;
  top: 6px;
  right: 6px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  background-color: #fff;
}

.mobile-nav-menu_btn span{
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 7px;
  height: 2px;
  background-color: #333;
  width: 60%;
}

.mobile-nav-menu_btn span:nth-of-type(1){
  top: 8px;
}

.mobile-nav-menu_btn span:nth-of-type(2){
  top: 15px;
}

.mobile-nav-menu_btn span:nth-of-type(3){
  top: 22px;
}

/*ハンバーガーメニュー（×印に変化）
----------------------------------------*/
.mobile-nav-menu_btn.active span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #666;
  width: 70%;
}

.mobile-nav-menu_btn.active span:nth-of-type(1){
  top:10px;
  left: 6px;
  transform: translateY(6px) rotate(-45deg);
}

.mobile-nav-menu_btn.active span:nth-of-type(2){
  opacity: 0;
}

.mobile-nav-menu_btn.active span:nth-of-type(3){
  top:22px;
  left: 6px;
  transform: translateY(-6px) rotate(45deg);
}

/*モバイルメニューの中身
-----------------------------*/
nav#mobile_nav{
  padding: 0;
}

nav#mobile_nav ul{
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}

nav#mobile_nav ul li{
  padding: 0.75em 2em 0.75rem 1em;
  display: block;
  border-bottom: 1px dotted #fff;
  color: #fff;
}

nav#mobile_nav ul a{
  text-decoration: none;
}

nav#mobile_nav div.parent-menu_btn{
  position: relative;
}

nav#mobile_nav div.parent-menu_btn ul.child_menu{
  position: absolute;
  width: 53px;
  height: 53px;
  right: 0;
  top: 0px;
  z-index: 9999;
  content: "";
  background-color: #fff;
}

nav#mobile_nav div.parent-menu_btn span{
  width: 20px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  content: "";
}

nav#mobile_nav div.parent-menu_btn span:nth-of-type(1){
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
}
nav#mobile_nav div.parent-menu_btn span:nth-of-type(2){
  transform:rotate(90deg);
  top: 45%;
  right: 0px;
  transition: all 0.4s;
}

nav#mobile_nav div.parent-menu_btn.active span:nth-of-type(2){
  transition: all 0.3s;
  transform:rotate(0) translateY(-50%);
  top: 50%;
}

.child_menu{
  display: none;
}

.child_menu.panelactive{
  display: block;
  transition: all 0.4s ease-in;
}

nav#mobile_nav ul.child_menu.panelactive li{
  border-bottom: none;
}


@media(min-width:992px){
  /*ハンバーガーボタンとモバイルメニューを非表示*/
  .mobile-nav-menu_btn,
  nav.device-mobile{
    display: none;
  }
}
