@charset "UTF-8";
@font-face {
  font-family: "gensenmaru";
  src: url("../font/gensenmaru.woff2") format("woff2"), url("../font/gensenmaru.woff") format("woff");
}

html {
  font-size: 16px;
  font-family: "gensenmaru";
}

@media screen and (max-width: 600px) {
  html {
    font-size: 13px;
  }
}

.flex {
  display: flex;
}

.flex-between {
  justify-content: space-between;
}

.center {
  text-align: center;
}

img {
  max-width: 100%;
}

@media screen and (max-width: 960px) {
  .pc_only {
    display: none;
  }
}

.sp_only {
  display: none;
}

@media screen and (max-width: 600px) {
  .sp_only {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .sp_none {
    display: none;
  }
}

.pc_none {
  display: none;
}

@media screen and (max-width: 960px) {
  .pc_none {
    display: block;
  }
}

#header {
  position: absolute;
  top: 0;
  left: 0;
  padding: .75em 5% 0 4%;
  width: 100%;
  /*ボタン内spanの形状*/
  /*== 背景が流れる（斜め） */
  /*hoverした時のアニメーション*/
}

@media screen and (max-width: 600px) {
  #header {
    justify-content: center;
  }
}

@media screen and (max-width: 600px) {
  #header .logo {
    width: 21.3%;
  }
}

#header .btn {
  padding: 1em 1.25em;
  border: 2px solid #fff;
  border-radius: 35px;
}

#header .btn {
  /*アニメーションの起点とするためrelativeを指定*/
  position: relative;
  overflow: hidden;
  /*ボタンの形状*/
  text-decoration: none;
  display: inline-block;
  text-align: center;
  outline: none;
  /*アニメーションの指定*/
  transition: linear .5s;
}

#header .btn span {
  position: relative;
  z-index: 3;
  /*z-indexの数値をあげて文字を背景よりも手前に表示*/
  color: #333;
}

#header .btn:hover span {
  color: #fff;
}

#header .btn::before {
  content: '';
  /*絶対配置で位置を指定*/
  position: absolute;
  top: 0;
  left: -130%;
  /*色や形状*/
  background: rgba(255, 255, 255, 0.7);
  width: 120%;
  height: 100%;
  transform: skewX(-25deg);
}

#header .btn:hover::before {
  animation: skewanime .5s forwards;
  /*アニメーションの名前と速度を定義*/
}

@keyframes skewanime {
  100% {
    left: -10%;
    /*画面の見えていない左から右へ移動する終了地点*/
  }
}

@media screen and (max-width: 600px) {
  #header .btn {
    display: none;
  }
}
