@charset "UTF-8";

/************** base ****************/
* {/*メインビジュアルのサイズ*/
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
  }

/************** layout ****************/

main{
  padding: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

img{
  width: 28%;
}

header {/*ハンバーガーメニューのフォント*/
  font-size: 17px;
  font-weight: 400;
  font-family: "Tiny5", sans-serif;
  font-style: normal;
  background: white;
}

header h1 {/*上の文字の位置・幅*/
  text-align: center;
  padding: 1rem;
}


/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position:fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top:0;
  right: -120%;
  width:100%;
  height: 100vh;/*ナビの高さ*/
  background:#9fa0a0;
  /*動き*/
  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%);
  display: flex;
  flex-direction: column;
}

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

#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;
}

/*========= ボタンのためのCSS ===============*/

.openbtn{
  position:fixed;
  z-index: 9999;/*ボタンを最前面に*/
  top:10px;
  right: 10px;
  cursor: pointer;
  width: 50px;
  height:50px;
}

/*×に変化*/	
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 15px;
  height: 2.5px;
  border-radius: 1px;
  background-color: black;
  width: 50%;
}

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

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

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

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

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

.openbtn.active span:nth-of-type(3){
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
.text1{
  padding-top: 3rem;
  text-align: center;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.photo{
  text-align: center;
  padding-top: 0.5rem;
}

.text{
  padding-top: 2rem;
  padding-bottom: 4rem;
  text-align: center;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  font-style: normal;
}

nav ul {/*メインと文字の幅*/
  padding-bottom: 2rem;
  margin: 0;
  text-align: center;
}
  
  nav ul li {/*４つの文字の幅*/
  display: inline-block;
  margin: 0 13px;
}
  
  nav ul li a {/*４つの文字の色*/
  font-weight: bold;
  color: #3f312b;
} 

footer{
  padding: 2rem;
  text-align: center;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  font-style: normal;
}



