/*------------------------------------------------------------
	ヘッダー
------------------------------------------------------------*/

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto .3% auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 他の要素よりも前面に表示させる */
}
.header-container {
  width: 1920px;
  margin:auto;
}
.logo{
  margin-left: 20px;
}

.logo-nav1-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #016DFF;
  background-image: url('../../../img/common/head_bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center left;
  padding: 0.8% 0;
  width: 100%;
  height: auto; /* 高さを自動に設定 */
}

.logo-nav1-container .logo img {
  width: 10vw; /* アイコンの幅をビューポートの幅に応じて調整 */
  min-width: 20px; /* アイコンの最小幅を設定 */
  max-width: 121px; /* アイコンの最大幅を設定 */
}
.logo-nav1-container ul img {
  width: 2vw; /* アイコンの幅をビューポートの幅に応じて調整 */
  min-width: 10px; /* アイコンの最小幅を設定 */
  max-width: 21px; /* アイコンの最大幅を設定 */
}

.logo-nav1-container ul li:nth-child(1) img {
  width: 3vw; /* アイコンの幅をビューポートの幅に応じて調整 */
  min-width: 15px; /* アイコンの最小幅を設定 */
  max-width: 31px; /* アイコンの最大幅を設定 */
}
.logo-nav1-container ul li span {
  font-size: clamp(0.8rem, 1.5vw, 1.2rem); /* 最小サイズ、ビューポートに基づく動的サイズ、最大サイズ */
}

.logo-nav1-container ul li {
  display: flex;
  align-items: center; /* アイコンとテキストを中央揃え */
  margin-right: 1rem; /* 適宜調整 */
}

nav#nav1 ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;

}

nav#nav1 ul li {
  display: flex;
  align-items: center;
  margin-right: 1rem; /* あるいは適切な値に */
}


nav#nav1 ul li span, nav#nav1 ul li a {
  white-space: nowrap; /* テキストの折り返しを防ぐ */
  margin-left: .5rem; /* テキストとの間隔 */
  color: #fff;
}
.logo-nav1-container ul li a {
  display: flex;
  align-items: center; 
}

@media (max-width: 640px) {


  nav#nav1 ul li span, nav#nav1 ul li a {
    font-size: 0.8rem; /* テキストのフォントサイズを小さくする */
    margin-left: 0.3rem; /* テキストとアイコンの間隔を調整 */
  }

  /* 必要に応じて他のスタイル調整 */
}
@media (max-width: 750px) {
  .logo{
    margin-left: 2vw;
  }
  .logo-nav1-container .logo img {
    width: 20vw; /* アイコンの幅をビューポートの幅に応じて調整 */
    min-width: 20px; /* アイコンの最小幅を設定 */
    max-width: 211px; /* アイコンの最大幅を設定 */
  }
  .logo-nav1-container {
    background-image: url('../../../img/common/head_bgsp.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    padding: 2vw 0 ;
    width: 100%;
    height: auto; /* 高さを自動に設定 */
  }
}




/* ----------------------- */
/* base_sp
/* ----------------------- */
/* デフォルトのbuttonスタイルをリセット */
.header-container button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: 0;
  outline: none;
  padding: 0;
  vertical-align: middle;
}

/* 以下、ハンバーガーボタン */
.burger-btn{
  display: block;      
  width: 10vw;      
  height: 10vw;      
  position: relative;
  right: 3vw;   
  z-index: 3;
  border:none;    
}    
.bar{      
  width: 6vw;      
  height: 1vw;        
  display: block;      
  position: absolute;      
  left: 50%;      
  background-color: #fff;
  transition: transform .3s, opacity .3s;   
}    
.bar_top, .bar_mid, .bar_bottom {
  transform: translateX(-50%);
}

.bar_top {
  top: 2vw;
}

.bar_mid {
  top: 50%;
  /* 水平方向と垂直方向の中心へ移動するように変更 */
  transform: translateX(-50%) translateY(-50%);
}

.bar_bottom {
  bottom: 2vw;
}




  /* 以下、ハンバーガーメニュー */
  /* 以下、ハンバーガーメニュー */
  .nav-wrapper { 
    height: auto;

    width: 100%; /* 画面全体の幅 */
    position: fixed;
    top: 0; /* 上から開始 */
    right: 0; /* 右側の位置指定はそのままでも良い */
    transform: translateY(-100%); /* 初期状態は隠れるように */
    transition: transform .3s, width .3s ease; /* トランスフォームのみアニメーション適用 */
    z-index: 2;
    overflow: hidden; /* 子要素がはみ出さないように */
    z-index:1;
}

.nav-wrapper.slide-in { 
    transform: translateY(0); /* メニュー表示時 */
}

  .header-nav{      
    padding: 0; /* パディングを0に設定 */  
    width: 100%;        
    height: 100%;        
    background-color:#005CE3;        
    z-index: 2;  
  }    

  .nav-list{        

    display: block;        
    position: absolute;        
    top: 0px; /* ヘッダーからの距離を3pxに設定 */     
    left: 50%;  
    width: 100%;
    transform: translateX(-50%); /* 左右中央に配置 */
    text-align: center;      
  }      
  .nav-list li a{        
    display: block;
    width: 100%;
    background-color:#005CE3;  
  }   
  .nav-item{        
    border-top: #fff 1px solid;
    margin-right: 0;        
    margin-bottom: 0px;      
  }
    /* メニューオープン時 */
    .nav-wrapper.slide-in {
      transform: translateX(0);
    }


  .noscroll{
    overflow: hidden;
  }



nav#nav2 ul {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* コンテンツを中央寄せ */
  align-items: center; /* アイテムを縦方向の中央に揃える */
  padding: 0;
  margin: 0 auto; /* 中央寄せ */
  max-width: 1925px; /* 5つの画像の合計幅 + 余白など */
  list-style: none;
  z-index: 100;
}

nav#nav2 ul li {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* コンテンツを中央寄せ */
  align-items: center; /* アイテムを縦方向の中央に揃える */
  flex: 1; /* 各アイテムが利用可能なスペースを均等に使用 */
  position: relative; /* ドロップダウンメニューの基準点 */
}

nav#nav2 ul li a {
  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: center; /* 縦方向も中央揃え */
  width: 100%; /* リンクがli要素の全幅を占めるように */
  height: auto;
}

nav#nav2 ul li a img {
  width: 100%; /* 画像がリンクの幅に合わせて調整される */
  height: auto; /* 画像の高さが自動調整され、アスペクト比が維持される */
}


@media (max-width: 600px) {
  nav#nav2 ul li {
    flex-basis: 50%; /* 画面が狭い場合は2列にする */
    min-width: 60px; /* 画面が狭い場合の最小幅をさらに小さく */
  }
  nav#nav2 ul li a {
    padding: 3% 0; /* 画面が狭い場合のパディングを調整 */
    font-size: 0.8rem; /* テキストサイズを小さくする（テキストを使用する場合） */
  }
  nav#nav2 ul li a img {
    /* 画像サイズを調整するCSS、必要に応じて */
    max-width: 100%;
    height: auto;
  }
}
nav#nav2 ul li:last-child {
  margin-right: 0;
}

nav#nav2 ul li a {
  nav#nav2 ul li a {
    display: block;
    width: 100%; /* リンクが親要素の幅に合わせて拡大/縮小 */
    padding-top: 14.545%; /* 56px / 385px = 0.14545 = 14.545% */

    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; /* 画像がコンテナに収まるようにサイズ調整 */
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
  }
  
}

.dropdown-menu {
display:none;
  position: absolute;
  left: 0;
  top: 100%; /* 親要素の高さ分下に配置する */
  width: 100%; /* 親要素に基づいて幅を設定 */
  z-index: 1;
}
/* サブメニュー内のリストアイテム */
.dropdown-menu li {
  display: block; /* 縦並びにするためにブロック表示 */
}
/* ホバー時のドロップダウンメニュー表示 */
nav#nav2 ul li:hover .dropdown-menu {
  display: block;
}



nav#nav2 ul li a {
  background-color: #005ce3;
}
nav#nav2 ul li .dropdown-menu a {
  background-color: #fff;
  color:#005ce3 ;
  font-weight: bold;
  padding:3%;
  font-size: 120%;
}
nav#nav2 ul li .dropdown-menu a:hover {
  background-color: #182987;
  color: #fff;
}

nav#nav2 ul li a:hover {
  background-color: #182987;
}
nav#nav2 ul li.current-page a,nav#nav3 ul li.current-page a {
  background-color: #fff; /* 現在いるページの背景色を変更 */
}
/* ホバー時の背景色を保持するクラス */
nav#nav2 ul li.hover-active > a, 
nav#nav2 ul li.hover-active > a:hover {
    background-color: #182987; /* ホバー時と同じ背景色 */
}

@media (max-width: 1400px) {
nav#nav2 ul li .dropdown-menu a {

  font-size: 100%;
}
}
@media (max-width: 1200px) {
  nav#nav2 ul li .dropdown-menu a {
      font-size: 80%;
  }
  .header-container {
    width: 1180px;
  }
  }
  @media (max-width: 800px) {
    nav#nav2 ul li .dropdown-menu a {
    
      font-size: 60%;
    }
    }
    @media (max-width: 400px) {
      .dropdown-menu {
        font-size: 70%;
      }
    }
    
/*------------------------------------------------------------
	フッター
------------------------------------------------------------*/




footer {
  width: 100%;
  margin: 0 auto; /* 中央揃え */
  padding: 5% 0; /* 上下左右に余白を設定 */
  background-color: #EEEEEE;
}

footer ul {
  list-style: none; /* デフォルトのリストスタイルを解除 */
  display: flex; /* フレックスボックスモデルを使用 */
  flex-wrap: wrap; /* アイテムがコンテナを超えると折り返す */
  justify-content: center; /* 中央揃え */
  padding: 0; /* デフォルトのパディングを解除 */
  margin: 0; /* デフォルトのマージンを解除 */
  max-width: 80%; /* 画面幅の80%に設定 */
  margin-left: auto; /* 左マージンを自動で調整 */
  margin-right: auto; /* 右マージンを自動で調整 */
}

footer ul li {
  margin: 0 2%; /* 左右のマージンを設定 */
}

footer ul li a {
  text-decoration: none; /* リンクの下線を解除 */
  color: #0368D9; /* リンクの色を設定 */
  font-size: 130%;
  font-weight: bold;
  white-space: nowrap; /* テキストが折り返されないように設定 */
}

footer ul li a:hover{
  color: hsl(212, 54%, 49%); /* リンクの色を設定 */
}

@media (max-width: 1200px) {
  footer ul li a {
    font-size: 100%;
  }
}
@media (max-width: 750px) {
  footer {
    padding: 5% 0 5% 0;
width: 100%;
  }
  footer ul {
    max-width: 90vw;
  }
  footer ul li {
letter-spacing: 3px;

    margin-left: 3.5vw; /* 左のマージンを設定 */
    margin-right: 3.5vw; /* 右のマージンを設定 */
  }
  footer ul li a {
    font-size: 3vw;
  }
}