body {
  font-family: "Montserrat","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.sub-title{
  font-size: 0.6em;
}


/* ローディング画面背景 */
.loader-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: linear-gradient(-225deg, #2CD8D5 0%, #C5C1FF 56%, #FFBAC3 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ローディングアニメーション */
.sk-cube-grid {
  width: 100px;
  height: 100px;
  margin: 100px auto;
}

.sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: #333;
  float: left;
  -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
          animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; 
}
.sk-cube-grid .sk-cube1 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s; }
.sk-cube-grid .sk-cube8 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1); 
  }
}

@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1);
  } 
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section:not(:nth-of-type(1)) {
  padding: 90px 0;
  background: linear-gradient(225deg, rgba(44,216,213,0.3) 0%, rgba(255,186,195,0.3) 100%);
}

.section:nth-of-type(odd) {
  background: linear-gradient(-225deg,rgba(255,186,195,0.3) 0%, rgba(44,216,213,0.3) 100%);
} 

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

#back-btn {
  display: none;
  padding: 3% 1.5%;
  text-align: center;
  background-color: #797979;
  border-radius: 50%;

  position: fixed;
  bottom: 3%;
  right: 3%;
}

#back-btn > a{
  font-weight: bold;
  font-size: 0.8rem;
  color: #000;
  text-decoration: none;
}

.element {
  /* 最初は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 1s, visibility 1s, transform 1s;
}
/* フェードイン時に入るクラス */
.is-fadein {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}


/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
  border-bottom: 3px solid rgba(44,216,213,1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #333;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #333;
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
#mv{
  background: linear-gradient(-225deg, rgba(44,216,213,0.5) 0%, rgba(197,193,255,0.5) 100%);
}

#mv .container{
  display: flex;
  padding: 0; 
  width: 100%;
}

.mv-content1{
  position: relative;
  width: 65%;
}

#mv-1{
  position: absolute;
  display: none;
  font-weight: bold;
  font-size: 50px;
  top: 20%;
  left: 15%;
}
#mv-2{
  position: absolute;
  display: none;
  font-weight: 1000;
  font-size: 30px;
  font-family: "selif",'Special Elite';
  top: 50%;
  left: 18%;
}

.mv-content2{
  width: 35%;
}

#mv-myself{
  width: 80%;
  height: auto;
  padding: 10% 5%;
  transform: translateX(-500%);
  animation:myself 2.5s ease-out forwards 2s ;
}

@keyframes myself{
  0%{
    transform: translateX(-500%) rotateZ(0deg);
  }
  100%{
    transform: translateX(0) rotateZ(360deg);
  }
}

/*--------------------------------
 Works
---------------------------------*/

.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  display: block;
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-btn{
  margin-right: 35%;
  margin-left: 35%;
  background-color: #000000;
  text-align: center;
}
.works-btn > a{
  font-size: 10px;
  color: #fff;
  text-decoration: none;
}

.works-btn:hover{
  animation:detail-btn 0.3s linear forwards  ;
}

@keyframes detail-btn{
  0%{
    transform: translateX(0);
  }
  100%{
    opacity: 0.5;
    transform: translateX(10px);
  }
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
  margin-bottom: 10px;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 20%;
  margin-right: 30px;
  border-radius: 50%;
}
.profile-img img {
  border-radius: 50%;
}
.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}
/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body img {
  width: 100%;
  height: auto;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
} 

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.article-body-a{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  height: 45vw;
}

.article-body-a > img{
  max-width: 30%;
}

.home-link {
  text-align: center;
}

#formid {
  margin:50px auto;
  width:800px;
  padding:20px;
  background-image:repeating-linear-gradient(-45deg, #cc0000, #cc0000 30px,
  transparent 30px, transparent 50px,#0000cc 50px, #0000cc 80px,transparent 80px, transparent 100px),url(../img/bg.png.png);
  border-radius: 8px;
  box-shadow: 0 1px 6px #333;
  }



form > p:nth-child(n + 1){
  margin-top: 10px;
}

#formid > form > p > label {
  font-size: 18px;
  color: #600;
  display: inline-block;
  min-width: 150px;
  padding: 0 10px;
  text-align: left;
  vertical-align: top;
}

#formid > form > p{
  text-align: left;
  padding-left: 20%;
}

textarea{
  min-height: 100px;
}

.text{
  min-width: 42%;
}

#submit > input {
  font-family: 'Shadows Into Light', cursive;
  width: 180px;
  padding: 6px 10px;
  border: 0;
  position: absolute; /* 絶対配置 */
  top: -40px;
  right: -80px;
  background: #efef93;
  box-shadow: 0 2px 6px #666;
  transform: rotate(3deg); /* 回転 */
  font-size: 24px;
  color: #600;
}

p > input:not([type="submit"]),textarea{
  background-color: rgba(255,255,204,0.8);
  border-bottom: 1px dashed #999999;
}

#submit {
  position: relative; /* 基準位置を指定 */
}

form {
  background:url(../img/bg.png.png);
  padding: 30px;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  #back-btn{
    padding: 5% 2%;
  }
  #back-btn > a{
    font-size: 8px;
  }
  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .element:nth-of-type(1){
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section:not(:nth-of-type(1)) {
    padding: 60px 0;
  }
  .section:nth-of-type(1){
    padding: 40px 0 30px 0;
  }
  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv {
    height: 40vh;
  }

  #mv-1{
    left: 8%;
    font-size: 20px;
  }
  #mv-2{
    font-size: 12px;
    left: 10%;
  }
  #mv-myself{
    padding: 5% 3%;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-btn{
    padding-bottom: 2px;
  }

  .works-btn > a{
    font-size: 8px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  #formid {
    margin:30px auto;
    max-width: 80%;
    padding:10px;
    background-image:repeating-linear-gradient(-45deg, #cc0000, #cc0000 10px,
    transparent 10px, transparent 15px,#0000cc 15px, #0000cc 30px,transparent 30px, transparent 30px),url(../img/bg.png.png);
    border-radius: 8px;
    box-shadow: 0 1px 6px #333;
    }
  
  #formid > form > h1, #formid > form > p > label {
    font-family: 'Special Elite', cursive;
  }
  
  #formid > form > p > label {
    font-size: 18px;
    color: #600;
    display: inline-block;
    min-width: 50px;
    padding: 0 10px;
    text-align: right;
    vertical-align: top;
  }
  
  #submit > input {
    font-family: 'Shadows Into Light', cursive;
    width: 100px;
    padding: 6px 10px;
    border: 0;
    position: absolute; /* 絶対配置 */
    top: -5px;
    right: -70px;
    background: #efef93;
    box-shadow: 0 2px 6px #666;
    transform: rotate(3deg); /* 回転 */
    font-size: 15px;
    color: #600;
  }
  
  p > input:not([type="submit"]),textarea{
    background-color: rgba(255,255,204,0.8);
    border-bottom: 1px dashed #999999;
  }
  
  #formid > form > p{
    text-align: left;
    padding-left: 10%;
  }

  #submit {
    position: relative; /* 基準位置を指定 */
  }
}
