@charset "utf-8";

@media screen and (min-width:768px){
    /*　画面サイズが768pxからはここを読み込む　*/
.openbtn1{
    display: none;
}

#g-nav{
    display: none;
}


    nav{
        margin: 0px 0 0px 4%;
    }
    

}


/*大タブレットレイアウト*/

@media screen and (max-width: 1025px) {
/* 1025pxまでの幅の場合に適応される */



.blog-content{
    width: 80%;
}

.blog{
    width: 100%;
    height: auto;
    padding: 85px 80px;
}
#footer{
    margin-top: 135px;
}

.main{
    height: auto;
}




/*消さない*/
}














/*タブレットレイアウト*/

@media screen and (max-width: 850px) {
/* 850pxまでの幅の場合に適応される */
.blog{
    width: 100%;
    height: auto;
    padding: 85px 50px;
}

.main{
    height: auto;
}


}














@media screen and (max-width: 768px) {
/* 768pxまでの幅の場合に適応される */
    
    html{
width: 100%;
margin: 0 0;
padding: 0 0;   
    }
    
    .main{
        height: auto;
    }
    
    
body{
  width: 100%;
margin: 0 0;
padding: 0 0;
}
    
    
    
#header nav{
display: none;
}
    
.nav-pc{
    display: none;
}
    
    

.openbtn1{
    display: inherit;
  position:fixed;
     top:20px;
  right: 20px;
    z-index: 9999;/*ボタンを最前面に*/
	background-color: #ffffff;
	cursor: pointer;
    width: 50px;
    height:50px;
    border: solid 2px #222222;
}

/*ボタン内側*/
.openbtn1 span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 2px;
	background: #222222;
  	width: 45%;
  }

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

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

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

/*activeクラスが付与されると線が回転して×に*/

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

.openbtn1.active span:nth-of-type(2) {
	opacity: 0;/*真ん中の線は透過*/
}

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

/* .openbtn1.active{

} */

/*ハンバーガーメニューが開いたら表示*/
.open .black-bg {
  opacity: 0.3;
  visibility: visible;
}










#g-nav{
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position:fixed;
  z-index: -1;
  opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
  top:0;
  width:100%;
    height: 100vh;/*ナビの高さ*/
  background:#ffffff;
    /*動き*/
  transition: all 0.3s;
}

/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav.panelactive{
  opacity: 1;
  z-index:999;
}

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

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

#g-nav.panelactive ul {
    display: block;
}

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

#g-nav li{
  list-style: none;
    text-align: center; 
}

#g-nav li a{
  color: #333;
  text-decoration: none;
  padding:10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
    
  font-family: 'Noto Sans JP', sans-serif;
}
    
    
/*消さない */
}





/*スマホレイアウト*/

@media screen and (max-width: 470px) {
/* 470pxまでの幅の場合に適応される */

.main{
    height: auto;
}
    
.blog{
    width: 100%;
    height: auto;
    padding: 20px 20px;
}

.blog-content{
    margin: 30px auto 50px auto;
    width: 85%;
}
#footer{
    margin-top: 130px;
}

    
    
    
    
/*消さない*/
}

















