@charset "UTF-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  width: 2560px;
  max-width: 100%;
  margin: 0 auto;
  color: #333;
  font-family:'Georgia','Lato','Arial',YuGothic,'Yu Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3','メイリオ', Meiryo,'ＭＳ ゴシック',sans-serif;
}
a {
  color: inherit;
}
p {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
}
h2 {
  text-align: center;
  font-size: 3.5em;
  margin: 0;
  padding-top: 20px;
}
h3 {
  font-size: 1.5em;
  padding-bottom: 20px;
}
h4 {
  font-size: 1.5rem;
}
.sub-title  {
  text-align: center;
  font-size: 1em;
  margin: 0;
  margin-bottom: 70px;
  opacity: 0.7;
}

/* ふわっとフェードイン */

.fadeIn {
  opacity : 0;
  transform : translate(0, 50px);
  transition : all 800ms;
}
.fadeIn.scrollIn {
  opacity : 1;
  transform : translate(0, 0);
}

/* header */

#spNav {
  display: none;
}

#pcNav {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 50px;
  height: 80px;
  color: white;
  background: #333;
  opacity: 0.8;
  position: fixed;
  z-index: 100;
}
nav {
  margin-left: auto;
}
ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}
li {
  margin-left: 70px;
  list-style: none;
}

/* アンダーラインアニメーション */

.navMenu {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.navMenu::after {
  position: absolute;
  bottom: -10px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: white;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform .3s;
}
.navMenu:hover::after {
  transform: scale(1, 1);
}

/* グラデーション */

header {
  background-color: black;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* about */

#about > h2 {
  color: #333;
}
#about {
  width: 100%;
  color: rgba(46, 41, 41, 0.473);
  padding-top: 50px;
  padding-bottom: 40px;
}
.all {
  width: 80%;
  margin: 100px auto 0;
  color:#333;
  display: flex;
  justify-content: space-between;
}
.main, .sub {
  width: 50%;
  text-align: center;
}
#profileImg {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.25);
}
#profileName {
  font-weight: bold;
  font-size: 1.8em;
  margin-top: 30px;
  text-align: center;
}
#profileIcon {
  width: 50%;
  margin: 0 auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-around;
  color: #979797;
}
#twitter:hover, #instagram:hover, #blog:hover {
  opacity: 0.5;
}


/* table */
table {
  width: 100%;
  margin: 0 auto;
  line-height: 2.5em;
  border-collapse: collapse;
  white-space: nowrap;
}

/* Skills */
#Skills {
  margin-top: 70px;
  width: 100%;
  padding-bottom: 50px;
  color: #333;
  padding-top: 50px;
  background: linear-gradient(45deg, rgba(226, 173, 58, 0.8), rgba(133, 87, 240, 0.8),rgba(40, 161, 241, 0.8), rgba(226, 173, 58, 0.8));
}
.fa-html5 {
  color: #E46030;
  padding-right: 30px;
}
.fa-css3-alt {
  color: rgb(53,149,207);
  padding-right: 30px;
}
.fa-js {
  color: #F0DC4F;
}
.div {
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
}

/* HTML */
.HTML {
  border: solid 2px #333;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 50px;
  font-weight: bold;
}
.html-icon {
  float: left;
}

/* CSS */
.CSS {
  border: solid 2px #333;
  margin-bottom: 30px;
  padding: 50px;
  font-weight: bold;
}
.css-icon {
  float: left;
}

/* JS */
.JS {
  border: solid 2px #333;
  margin-bottom: 30px;
  padding: 50px;
  font-weight: bold;
}
.js-icon {
  float: left;
  padding-right: 20px;
}

/* Wrap */
#wrap {
  padding-top: 100px;
  width: 100%;
  background-color: white;
  color: #333;
  padding-top: 50px;
  height: 800px;
}
.portfolio {
  display: flex;
  justify-content: center;
}
.myPortfolio {
  padding-top: 100px;
  text-align: center;
  display: flex;
}
.port1 {
  margin-right: 100px;
}
.port1 img {
 height: 300px;
 width: 500px;
 border: 1px solid #ccc;
 transition: all 0.5s;
}
.port1 img:hover {
  cursor: pointer;
  opacity: 0.7;
  border-radius: 50px;
  box-shadow: 0 5px 10px black;
  transform: translate(0, -5px);
}
.port2 img:hover {
  cursor: pointer;
  opacity: 0.7;
  border-radius: 50px;
  box-shadow: 0 5px 10px black;
  transform: translate(0, -5px);
}
.port2 img {
  height: 300px;
  width: 500px;
  border: 1px solid #ccc;
  transition: all 0.5s;
}



/* contact */
#contact {
  width: 100%;
  background-color: #2E3235;
  color: rgba(255, 255, 255, 0.473);
}
.textContact {
  padding-top: 100px;
  text-align: center;
  font-size: 1.2em;
  font-family: Arial, Helvetica, sans-serif;
}
.contactFrom {
  color: #369DED;
  text-align: center;
}

.SNS {
  width: 100px;
  margin: 100px auto 0;
  color: rgba(255, 255, 255, 0.473);
  text-align: center;
  font-size: 1.5em;
  border-bottom: solid 1.5px rgba(255, 255, 255, 0.473);
}

.contact {
  background: #1b2229;
  color: white;
  padding-top: 50px;
}
.contact form input {
  display: block;
  width: 50%;
  height: 50px;
  margin: 30px auto;
  padding-left: 10px;
}
.contact form textarea {
  display: block;
  width: 50%;
  height: 150px;
  margin: 30px auto;
  padding: 10px;
}
.contact form p {
  text-align: center;
  padding-bottom: 30px;
}





/* footer */

footer {
  height: 80px;
  background: rgb(31, 30, 30);
  position: relative;
}
small {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%,-50%);
  -webkit-transform : translate(-50%,-50%);
  transform : translate(-50%,-50%);
}

#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
}


.sub {
  background: #1c3874;
  color: white;
  font-size: 1.1rem;
  padding: 100px 50px 50px 50px;
  border-radius: 5px;
  box-shadow: 20px 20px 0px 0 #071a2c;
}
.sub table {
  width: 100%;
  font-family: "小塚ゴシック Pr6N";
  margin-top: 30px;
}
table {
  border-collapse: collapse;
}
.sub table tr {
  border-bottom: 1px solid white;
}


/* ここからがレスポンシブ！ */
/* max-width: 960px */

@media screen and (max-width: 960px) {
  h2 {
    font-size: 3rem;
  }
  #profileName {
    font-size: 1.5rem;
  }

  /* header */
  #pcNav {
    display: none;
  }
  #spNav {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    height: 80px;
    color: white;
    background: #333;
    opacity: 0.8;
    position: fixed;
    z-index: 100;
  }
  .all {
    display: block;
    margin: 0 auto 100px;
  }
  .main {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }
  .sub  {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
  #Skills {
    display: block;
    margin-top: 10px;
  }
  
  /* ハンバーガーメニュー */
  /*menu*/

  .menu {
      width: 30px;
      height: 20px;
      position: absolute;
      z-index: 99;
      right: 10px;
      line-height: 80px;
  }
  .menu__line {
      background: #fff;
      display: block;
      height: 2px;
      position: absolute;
      -webkit-transition:-webkit-transform .3s;
      transition:-webkit-transform .3s;
      -o-transition:transform .3s;
      transition:transform .3s;
      transition:transform .3s, -webkit-transform .3s;
      width: 100%;
  }
  .menu__line--center {
      top: 9px;
  }
  .menu__line--bottom {
      bottom: 0;
  }
  .menu__line--top.active {
      top: 8px;
      -webkit-transform: rotate(45deg);
          -ms-transform: rotate(45deg);
              transform: rotate(45deg);
  }
  .menu__line--center.active {
      -webkit-transform:scaleX(0);
          -ms-transform:scaleX(0);
              transform:scaleX(0);
  }
  .menu__line--bottom.active {
      bottom: 10px;
      -webkit-transform: rotate(135deg);
          -ms-transform: rotate(135deg);
              transform: rotate(135deg);
  }

  /*gnav*/

  .gnav {
      background: rgba(0,0,0,0.8);
      display: none;
      height: 145%;
      position: fixed;
      width: 100%;
      z-index: 98;
  }
  .gnav__wrap {
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      height: 145%;
      position: absolute;
      width: 100%;
  }
  .gnav__menu {
      position: absolute;
      left: 50%;
      -webkit-transform: translateX(-50%);
          -ms-transform: translateX(-50%);
              transform: translateX(-50%);
      width: 170px;
      margin: 0;
  }
  .gnav__menu__item {
      margin: 20px 0;
      opacity: 0;
  }
  .gnav__menu__item a {
      color: #fff;
      font-size: 2em;
      font-weight: bold;
      text-decoration: none;
      -webkit-transition: .5s;
      -o-transition: .5s;
      transition: .5s;
  }
  .gnav__menu__item a:hover {
      color: #666;
  }

  #profileName {
    margin: 30px 0;
  }
  #profileIcon {
    width: 80%;
    margin: 0 auto 50px;
  }

  .sp-br {
    display: block;
  }

  /* contact */

  #contact, input, textarea {
    width: 100%;
  }

  .myPortfolio {
    display: block!important;
    padding-top: 0;
  }
  .port1 {
    margin-right: 0;
  }
  #wrap {
    height: auto;
    padding-bottom: 120px;
  }
  .port2 img {
    margin-top: 50px;
  }

}

/* max-width: 600px */

@media screen and (max-width: 600px) {
  h2 {
    font-size: 2.5rem;
  }
  /* header */

  .all {
    display: flex;
    flex-direction: column;
    margin: 0 auto 100px;
  }
  .logo {
  width: 183px;
  height: 22px;
  }
  header {
    height: 600px;
  }
    /* contact */

  #contact, input, textarea {
    width: 100%;
  }
  input {
    height: 30px;
  }
  textarea {
    height: 300px;
  }
  .contact form input {
    width: 80%;
  }
  .contact form textarea {
    width: 80%;
  }

}

/* max-width: 480px */

@media screen and (max-width: 480px) {
  h2 {
    font-size: 2rem;
  }
  /* about */

  #profileIcon {
    justify-content: space-between;
  }
  #profileImg {
    width: 200px;
    height: 200px;
}
  .sub {
    padding: 10px 5px;
    font-size: 0.8rem;
  }
  .HTML {
    border: solid 1px #333;
    margin: 30px 20px;
    padding: 30px;
    font-weight: bold;
  }
  .CSS {
    border: solid 1px #333;
    margin: 30px 20px;
    padding: 30px;
    font-weight: bold;
  }
  .JS {
    border: solid 1px #333;
    margin: 30px 20px;
    padding: 30px;
    font-weight: bold;
  }
  p {
    font-size: 0.7rem;
  }
  .br-min480-block {
    display: block;
  }
  .br-min480-none {
    display: none;
  }
  .port1 img {
    height: 200px;
    width: 300px;
  }
  .port2 img {
    height: 200px;
    width: 300px;
  }

}

/* max-width: 320px */

@media screen and (max-width: 320px) {
  
  header {
    width: 100%;
  }
  small {
    font-size: 0.5rem;
  }
  #br-min320-block {
    display: block;
  }
  .port1 img {
    height: 150px;
    width: 250px;
  }
  .port2 img {
    height: 150px;
    width: 250px;
  }
}