@charset "utf-8";

/*最後にSP/PCどちらにも使うものは別のCSSにまとめておく*/
/*その時順番に注意すること（後のものが有効になる）*/

/*========SP共通レイアウト============*/

/*---ハンバーガーメニュ----*/
@media (max-width:680px){
  .nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(../images/bg.jpg);
    background-size: cover;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 初期：非表示 */
    visibility: hidden;
    opacity: 0;
    /* ふわっと表示 */
    transition: 0.5s ease-in-out;
  }
  .nav ul{
    list-style:none;
  }
  .nav li:not(:last-child){
    margin-bottom: 30px;
  }
  .nav a{
    color: #2D2933;
    font-size: 40px;
    display: block;
    background-color: rgba(212, 187, 60,0.8);
    border-radius: 50px;
    text-align: center;
    padding: 10px 40px;
    letter-spacing: -0.2em;
  }
}
/* ナビゲーションボタン（開く） */
#navbtn{
  position: fixed;
  top: 2%;
  right: 5%;
  padding: 0;
  outline: none;
  border: none;
  background: rgba(212, 187, 60,0.8);
  border-radius: 50%;
  padding: 10px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 1;
}

#navbtn::before,
#navbtn::after{
  content : '';
  display: block;
  height: 1px;
  background-color: #333333;
  transform: translateY(10px);
  transition: 0.3s ease-in-out;
}
#navbtn::before{
  transform: translateY(-10px);
  box-shadow: 0 10px #333333;
}

/* ナビゲーションボタン（閉じる） */
.open #navbtn{
  z-index: 100;
}
.open #navbtn::before{
  transform: rotate(-45deg);
  box-shadow: none;
}
.open #navbtn::after{
  transform: rotate(45deg);
  box-shadow: none;
}
/* ナビゲーションメニュー 開いた時*/
.open .nav{
  visibility: visible;
  opacity: 1;
}
.open{
  position: fixed;
  overflow: hidden;
}

/*====背景縦ループ設定=========*/
.open .scroll{
  display: none;
}
.open #roop {
    width: 100%;
    height: 100vh;
    background: url(../images/bg.jpg) repeat-Y;
    background-size: cover;
    background-position: 0 0;
    -webkit-animation: bgroop 150s linear infinite;
    animation: bgroop 150s linear infinite;
}
@-webkit-keyframes bgroop {
    from {
        background-position: 0  0;
    }
    to {
        background-position:  0 -1956px;
    }
}
@keyframes bgroop {
    from {
        background-position: 0 0;
    }
    to {
        background-position:  0 -1956px;
    }
}


@media(min-width: 681px){
  /* PCではボタン非表示 */
  #navbtn{
    display:none;
  }
  /* ヘッダーは横並び */
  header{
    display: flex;
    align-items: center;
  }
  /* メニューを右に寄せる */
  .nav{
    /* 右寄せ */
    margin-left: auto;
  }
  .nav ul{
    display: flex;
    list-style:none
  }
  .nav ul li:not(:first-child){
    margin-left:20px;
  }
  .nav ul li a { 
    color: #000000;
  }
}

/*=========SPヘッダー==========*/
header#top{
  padding: 20px 20px 40px;
  font-size: 20px;
  background-color: rgba(166, 154, 189, 0.9);
}

/*==========SPTOPtokyoutuここから===============*/
.first-veiw{
    font-size: 30px;
    width: 100%;
    height: 100vh;
    background: url(../images/bg.jpg) repeat-Y;
    background-size: cover;
    background-position: 0 0;
    -webkit-animation: bgroop 150s linear infinite;
    animation: bgroop 150s linear infinite;
}
@-webkit-keyframes bgroop {
    from {
        background-position: 0  0;
    }
    to {
        background-position:  0 -1956px;
    }
}
@keyframes bgroop {
    from {
        background-position: 0 0;
    }
    to {
        background-position:  0 -1956px;
    }
}


h2{
  text-align: center;
}  
span{
  display: inline-block;
  font-size: 1.1em;
  padding: 20px;
  background-color: rgba(241, 241, 241, 0.8);
  border-radius: 20px;
  margin-top: 150px;
  text-align: centerF;
}
.scroll{
  display: block;
  background-color: rgba(212, 187, 60,0.8);
  border-radius: 50%;
  padding: 15px 20px;
  width: 30px;
  margin: 100px auto;
  text-align: center;
  font-size: 25px;
/*アニメーション*/
  animation: move-y .8s infinite alternate ease-in-out;
}
@keyframes move-y {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(10px);
  }
}

h3{
  display: block;
  width: 65%;
  margin: 40px auto 20px;
  font-size: 1.8em; 
  border-bottom: solid 1px #2D2933;
  padding: 30px 0 30px;
  letter-spacing: 10px;
  text-align: center;
}
.work-list a{
  width: 300px;
}
.more{
  display: block;
  background-color: rgba(212, 187, 60,0.8);
  border-radius: 50%;
  padding: 15px 20px;
  width: 30px;
  margin: 50px auto 50px;
  text-align: center;
  font-size: 25px;
}


/*============SPTOPここまで==================*/

/*=============footer========================*/
footer{
  background-color: #2D2933;
  margin-top: 50px;
  padding: 20px 0 0 ;

}
small{
  display: block;
  text-align: center;
  color: #f1f1f1;
  font-size: 12px;
}


/*=====================================*/

/*=====SPTOP.skill=======================*/
div.skill{
  background-color: #f1f1f1;
  border-radius: 20px;
  text-align: center;
  width: 80%;
  margin: 30px auto;
}
div.skill-item{
  padding: 10px 20px 10px;
}
div.skill-item p{
  margin-bottom: 10px;
}
div.skill-item p.skill-name{
  font-size: 1.3em;
}
p.caption{
  text-align: left;
}
p.tool{
  font-size: 0.8em;
}
p.tool:last-child{
  margin-bottom: 40px;
}
/*==========================================*/

/*==========SPTOP.works================*/
div.work-list{
  width: 80%;
  margin: 0 auto;
}
div.work-list .work-item a{
  display: block;
  font-size: 0.6em;
  color: #grays;
  float: left;
  width: 60%;margin-left: 10px;
}
div.category{
  text-align: right;
}
div.work-item p{
  font-size: 0.6em;
  background-color: #f1f1f1;
  display: inline-block;
  overflow: hidden;
  width: 20%;
  text-align: center;
  margin-right: 6%;
}

/*=====================================*/

/*=====================================*/
section.profile{
  text-align: center;
}

section.profile img{
  width: 75%;
  border-radius: 10%;
  margin-bottom: 20px;
}

.name{
  font-weight: bold;
  border-bottom: solid 1px #2D2933;
  width: 80%;
  overflow: hidden;
  text-align: left;
  margin: 0 auto;
}
.from p{
  text-align: right;
  font-size: 0.8em;
  padding: 10px 0; 
  font-weight: normal;
}

div.comment{
  width: 80%;
  display: block;
  margin: 0 auto;
  padding-top: 30px;
  font-size: 0.8em;
}
div.comment p{
  text-align: left;
}
/*=====================================*/

/*===============SPWORK================*/
div.work-list div.syousai p{
  background-color: transparent;
  width: auto;
  text-align: left;
}

/*==================680~900================*/
@media(min-width: 681px) and (max-width:979px){
  span{
    margin-top: 10vh;
    font-size: 5vw;
  }
  div.work-list .work-item a {
    font-size: 1.2em;
}
section.profile img{
    margin: 30px 0 30px 0;
    object-fit: cover;
  }
}
/*=====================================*/

/*===================900================*/
@media(min-width:980px){
  /*各ページタイトル*/
  span{
    margin-top: 10vh;
    font-size: 5vw;
  }
  /*横幅制限*/
  .wrap{
    width: 980px;
    margin: 0 auto;
  }
  /*トップ・各種ページ*/
   div.work-list .work-item a {
    font-size: 0.5em;
}
  div.skill-list{
    display: flex;
    justify-content: space-between;
  }
  div.skill-item{
    width: 40%;
    margin: 20px;
  }
  div.skill-item.sikaku{
    margin: 0 auto;
    padding-bottom: 30px;
  }
  p.tool:last-child{
    margin: 0;
  }
  h3{
    padding-top: 20px;
    margin-top: 10px;
  }
  div.work-list{
    padding-top: 100px;
    margin: 0 auto;
    display: flex;
    width: auto;
    justify-content: space-between;
  }
  div.work-item{
    width: 30%;
  }
  section.profile{
    background-color: rgba(241, 241, 241, 0.7);
    border-radius: 20px;
    border:1px solid rgba(212, 187, 60,0.8);
  }
  div.flex{
    display: flex;
    margin: 0 10%;
    justify-content: space-between;
  }
  div.flex img{
    width: 30%;
  }
  .scroll{
    margin: 30px auto;
  }
  section.profile img{
    margin: 30px 0 0 0;
    object-fit: cover;
  }
  div.skill{
    width: 100%;
  }
  .profilepage div.name{
    margin-top: 30px;
  }
  .profilepage div.comment p{
    margin-bottom: 50px;
  }
  .profilepage div.flex img{
    margin-bottom: 40px;
  }

  /*wokpage*/
div.work-item.workpage{
  background-color: rgba(241, 241, 241, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(212, 187, 60, 0.8);
  padding: 0 10px 20px;
}
div.work-item.workpage img{
  width: 100%;
}
div.work-item h3{
  font-size: 1em;
}
div.work-list div.flex{
  margin: 0 0 30px 0;
} 

}
/*=====================================*/