@charset "UTF-8";
/*
Theme Name: yu2020
Theme URI: http://you--create.com/
Description: デザイナー融のサイトテーマ
Version: 1.0
Author: Iguchi Noriko
Author URI: http://yu-creates.com/
*/

/* ハンバーガーメニュー */
#hbm {
  width: 70px;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

li.parts {
  display: block;
  height: 2px;
  background: #000;
  position: absolute;
  top: 50%;
  left: 25px;
  transition: 1s;
  transform: rotate(-195deg);
}

li.parts {
  width: 70px;
  margin-top: 5px;
}

li.parts:nth-child(2) {
  width: 55px;
  margin-top: 20px;
}

li.parts:nth-child(3) {
  width: 35px;
  margin-top: 35px;
}

/* 閉じる */

#hbm.active li.parts {
  display: block;
  height: 3px;
  background: #000;
  position: absolute;
  top: 30px;
  left: 25px;
  transition: 1s;
  -webkit-transition: 1s;
}

#hbm.active li.parts {
  width: 50px;
  margin-top: 5px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transition: 1s;
  -webkit-transition: 1s;
}

#hbm.active li.parts:nth-child(2) {
  opacity: 0;
  -webkit-animation: active-menu-bar02 0.8s forwards;
  animation: active-menu-bar02 0.8s forwards;
}

#hbm.active li.parts:nth-child(3) {
  width: 50px;
  margin-top: 5px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transition: 1s;
  -webkit-transition: 1s;
}

/* PCメニュー */
.pc_n {
  display: none;
}

/*========= ナビゲーションCSS ===============*/

/*アクティブになったエリア*/
#g-nav.panelactive {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100vh;
}

/*丸の拡大*/
.circle-bg {
  position: fixed;
  z-index: 3;
  /*丸の形*/
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e5d658;
  /*丸のスタート位置と形状*/
  transform: scale(0); /*scaleをはじめは0に*/
  left: -50px;
  top: -50px;
  transition: all 0.7s; /*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive {
  transform: scale(50); /*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#g-nav-list {
  display: none; /*はじめは表示なし*/
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-family: "Philosopher", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  line-height: 2em;
}

#g-nav.panelactive #g-nav-list {
  display: block; /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
  opacity: 0; /*はじめは透過0*/
  /*ナビゲーション天地中央揃え※*/
  position: absolute;
  z-index: 999;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
  opacity: 1;
}

/* 背景が出現後にナビゲーション*/
#g-nav.panelactive ul li {
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: 0.5s; /*0.2 秒遅らせて出現*/
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes gnaviAnime {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*リストのレイアウト設定*/
#g-nav li {
  text-align: left;
  list-style: none;
}

#g-nav li a {
  color: #000;
  text-decoration: none;
  padding: 0 0 10px 0;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
}
#g-nav li a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #000;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}

#g-nav li a:hover::after {
  transform: scale(1, 1);
}
/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999; /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
}

/*×に変化*/
.openbtn ul {
  display: inline-block;
  transition: all 0.6s;
  position: absolute;
  left: 50px;
  height: 3px;
  border-radius: 2px;
  width: 45%;
}
.openbtn.active li:nth-of-type(1) {
  top: 35px;
  left: 35px;
  transform: translateY(6px) rotate(-45deg);
  width: 45%;
}

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

.openbtn.active li:nth-of-type(3) {
  top: 17px;
  left: 35px;
  transform: translateY(-6px) rotate(45deg);
  width: 45%;
}
@media screen and (min-width: 751px) {
  /* PC用メニュー設定 */
  .wrapper {
    margin: 0 7.906% 0 15.373%;
  }

  #hbm,
  #menutoggle {
    display: none;
  }

  .pc_n {
    display: flex;
    position: absolute;
    top: 220px;
    left: 25px;
    font-family: "Philosopher", sans-serif;
    font-size: 2.5rem;
    text-align: center;
    line-height: 4em;
    z-index: 10;
  }

  .pc_n ul > li {
    transform: rotate(90deg);
    margin-bottom: 50px;
  }

  .pc_n ul > li a {
    text-decoration: none;
    position: relative;
    display: inline-block;
    color: #000;
  }

  .pc_n ul > li a::after {
    position: absolute;
    bottom: -4px;
    left: 0;
    content: "";
    width: 100%;
    height: 2px;
    background: #000;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 0.3s;
  }

  .pc_n ul > li a:hover::after {
    transform: scale(1, 1);
  }
}
