@import url('https://fonts.googleapis.com/css?family=Saira+Condensed:wght@100|Noto+Sans+JP&display=swap');

/*ヘッダー*/
header {
  width: 100%;
  padding: 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; 
}

h1 {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Saira Condensed', 'Noto Sans JP', sans-serif;
}

nav ul {
  list-style: none;
  font-size: 1.5em;
}

nav ul li a {
  font-family: 'Saira Condensed', 'Noto Sans JP', sans-serif;
  color: #943c46;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
  cursor:pointer;
}



/* スマホ端末（0px以上） */
@media screen and (min-width : 0px){

  .gnavi__pc-style {
    display: none;
  }
  .gnavi__sp-style {
    display: block;
  }

  /*ここから下がハンバーガーメニュー*/
  /*メニューボタン　展開前*/
  .menu-btn {
    display : block;
    position: fixed;
    z-index : 3;
    right : 10px;
    top   : 20px;
    width : 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor:pointer;
  }
  .menu-btn span {
    display : block;
    position: absolute;
    width   : 30px;
    height  : 2px ;
    left    : 6px;
    background : #943c46;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition   : 0.3s ease-in-out;
    transition        : 0.3s ease-in-out;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor:pointer;
  }
  .menu-btn span:nth-of-type(1) {
    top: 10px;
  }
  .menu-btn span:nth-of-type(2) {
    top: 20px;
  }
  .menu-btn span:nth-of-type(3) {
    top: 30px;
  }

  /*メニューボタン　展開後*/
  .menu-btn.active span:nth-child(1) {
    top : 16px;
    left: 6px;
    background :#fff;
    -webkit-transform: rotate(-45deg);
    -moz-transform   : rotate(-45deg);
    transform        : rotate(-45deg);
  }
  .menu-btn.active span:nth-child(2),
  .menu-btn.active span:nth-child(3) {
    top: 16px;
    background :#fff;
    -webkit-transform: rotate(45deg);
    -moz-transform   : rotate(45deg);
    transform        : rotate(45deg);
  }

  /*スマホ用のメニュー*/
  .gnavi__sp-style {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    color: #fff;
    background-color: rgba(0,0,0,0.7);
    text-align: center;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity .6s ease, visibility .6s ease;
      display: flex;
      align-items: center;
    visibility: hidden;
  }
  .gnavi__sp-style ul {
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }
  .gnavi__sp-style ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    transition: .4s all;
  }
  .gnavi__sp-style ul li:last-of-type {
    padding-bottom: 0;
  }
  .gnavi__sp-style ul li a {
    display: block;
    color: #fff;
    padding: 1em 0;
    text-decoration :none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    cursor:pointer;
  }
  .gnavi__sp-style.active {
    opacity: 1;
    visibility: visible;
  }
}

/* スマホ端末（414px以上） */
@media screen and (min-width : 414px){
  .menu-btn {
    display : block;
    position: fixed;
    z-index : 3;
    right : 20px;
    top   : 20px;
    width : 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor:pointer;
  }
}

/* タブレット端末（701px以上） */
@media screen and (min-width : 701px){
  .gnavi__pc-style {
    display: block;
  }
  .gnavi__sp-style {
    display: none;
  }
  .menu-btn {
    display: none;
  }

  .gnavi__pc-style {
    margin: 0 0 0 auto;
  }
  .gnavi__pc-style ul {
    display: flex;
    justify-content: space-between;
  }
  .gnavi__pc-style ul li:not(:last-of-type) {
    margin-right: 10px;
  }


  header a {
    transition: .8s color;
    text-decoration: none;
    color: #943c46;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor:pointer;
    position: relative;
    display: inline-block;
  }

  header a::after {
    position: absolute;
    bottom: -3px;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background: #943C46;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform .3s;
  }

  header a:hover::after {
    transform: scale(1, 1);
  }
}
