﻿@charset "utf-8";
.logo_off{
  display: none;
}
/*========= ナビゲーションのためのCSS ===============*/
@media screen and (min-width: 751px) {
  body header{
    position: fixed;
    width: 100%;
    z-index: 1;
    padding: 0px 20px;
  }
  body header .header_in {
    display: flex;
    z-index: 1;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0px;
    max-width: 1700px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  header .header_in a {
    color: #fff;
    font-size: clamp(0.75rem, 0.721rem + 0.14vw, 0.875rem);
    font-weight: bold;
    letter-spacing: 0.5;
    letter-spacing: 5px;
  }

  header .header_in #g-nav {
    max-width: 780px;
    width: 100%;
  }

  header .header_in #g-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;

  }

  header .header_in #g-nav ul li:last-child {
    max-width: 130px;
    width: 100%;
    text-align: center;
    margin-left: 38px;

  }

  header .header_in #g-nav ul li a {
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    box-sizing: border-box;
    letter-spacing: 0.1em;
    position: relative;
    transition: .3s;
    text-decoration: none;
    padding-bottom: 3px; 
  }

  header .header_in #g-nav ul li a:after {
    content: '';
    width: 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid #fff;
    display: block;
  }

  header .header_in #g-nav ul li a:hover::after{
  width: 100%;
  border-bottom: 2px solid #fff;
  }
  header .header_in #g-nav ul li:last-child a {
    display: block;
    border-radius: 30px;
    padding: 7px 6px;
    border: 1px solid #fff;
    width: 100%;
    font-size: 14px;

  }

  /*スクロールしたら*/


  #header.HeightMin .header_in #g-nav ul li a:after {
    border-bottom: 2px solid #9ac7d1;
   }

   #header.HeightMin .header_in #g-nav ul li a:hover::after{
    width: 100%;
    border-bottom: 2px solid #9ac7d1;
    }
  #header.HeightMin{
    position: fixed;
      z-index: 999;/*最前面へ*/
    height:70px;
    animation: DownAnime 0.5s forwards;
    background-color: #fff;
    top: -12%;
  }
  #header.HeightMin a{
    color: #9ac7d1;
  }
  body  #header.HeightMin  .header_in{
    padding: 20px 0px;
  }
  #header.HeightMin .header_in #g-nav ul li:last-child a{
    border: 1px solid #9ac7d1;
}
  @keyframes DownAnime{
    from {
      opacity: 0;
    transform: translateY(-170px);
    }
    to {
      opacity: 1;
    transform: translateY(0);
    }
  }

  #header.HeightMin .logo_off{
    display: block;
  }
  #header.HeightMin .logo_on{
    display: none;
  }
}




@media screen and (max-width: 750px) {

  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 1;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: #7fbfc9;
    /*動き*/
    transition: all 0.6s;
  }

  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    right: 0;
  }

  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /*ナビゲーション*/
  #g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54%;;
  }

  /*リストのレイアウト設定*/

  #g-nav li {
    list-style: none;
    text-align: center;
    padding: 10px 0px;
  }

  #g-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
  #g-nav li:last-child a{
    border: 1px solid;
    border-radius: 50px;
    margin-top: 40px;
  }
  /*========= ボタンのためのCSS ===============*/
  .openbtn1 {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 4px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }

  /*×に変化*/
  .openbtn1 span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 1px;
    border-radius: 2px;
    background-color: #fff;
    width: 45%;
  }

  .openbtn1 span:nth-of-type(1) {
    top: 15px;
  }

  .openbtn1 span:nth-of-type(2) {
    top: 23px;
  }

  .openbtn1 span:nth-of-type(3) {
    top: 31px;
  }

  .openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }

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

  .openbtn1.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
  .header_in #logo{
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
 }
 .header_in #logo img{
  width: 78%;
}
}