/* ブレイクポイント */
/* pc:930px～
sp:～930px */

/* main-page */

body {
  overflow-x: hidden;
  background: #333;
}

/* header */

#header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
  opacity: 0;
}

/* 消現の動き */

#header.UpMove {
  animation: UpAnime 0.5s ease-out forwards;
}

@keyframes UpAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

#header.DownMove {
  animation: DownAnime 0.9s ease-in forwards;
}

@keyframes DownAnime {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#header .header-inner {
  height: 80px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: transparent;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .header-inner #logo {
  width: 166px;
}

#header .header-inner #logo a {
  font-family: "Galada", cursive;
  font-size: 36px;
  color: #fff;
}

#header .header-inner #mainMenu nav ul.nav-list {
  display: flex;
  justify-content: space-between;
  position: relative;
}

#header .header-inner #mainMenu nav ul.nav-list li {
  padding: 0 20px;
}

#header .header-inner nav ul.nav-list li a {
  font-size: 18px;
  font-weight: 700;
  transition: 0.5s;
}

#header .header-inner nav ul.nav-list li.list-item:hover a {
  text-shadow: 3px 2px 1px #000, 5px 4px #65f77b;
}

#header .header-inner #mainMenu-trigger {
  display: none;
  width: 30px;
  height: 100%;
  position: relative;
}

#header .header-inner #mainMenu-trigger .lines {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  position: absolute;
  top: 14px;
  left: 0;
  transition: all 0.5s ease-in-out;
}

#header .header-inner #mainMenu-trigger .lines:first-child {
  position: absolute;
  top: 2px;
  left: 0;
}

#header .header-inner #mainMenu-trigger .lines:last-child {
  position: absolute;
  top: 26px;
  left: 0;
}

#mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #222;
  opacity: 0.9;
  z-index: 20;
  transition: all 0.5s linear;
}

/* active */

#header .header-inner.active #mainMenu-trigger .lines:nth-child(2) {
  opacity: 0;
}

#header .header-inner.active #mainMenu-trigger .lines:first-child {
  transform: rotate(315deg);
  top: 50%;
  z-index: 21;
}

#header .header-inner.active #mainMenu-trigger .lines:last-child {
  transform: rotate(-315deg);
  top: 50%;
  z-index: 21;
}

#header .header-inner.active #mask {
  display: block;
  transition: 0.5s linear;
}

/* main */

.sp {
  display: none;
}

#top-view .inspiro-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#top-view .bg-overlay {
  width: 100%;
  height: 100%;
  background-image: url(img/top-pic.jpg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: absolute;
  animation: zoom 16s forwards;
}

@keyframes zoom {
  from {
    scale: 1;
  }

  to {
    scale: 1.3;
  }
}

#top-view h1 {
  width: 100%;
  height: 100vh;
  position: relative;
}

#top-view h1 div {
  position: absolute;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

#top-view h1 div span {
  font-family: "Poppins", sans-serif;
  font-size: 72px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-align: center;
}

/* fade Animation */

/* fadeInDown - 上から - */

.fadeInDown {
  animation-name: fadeIn1Anime;
  animation-delay: 1s;
}

@keyframes fadeIn1Anime {
  from {
    opacity: 0;
    top: 0%;
    left: 18%;
  }

  to {
    opacity: 1;
    top: 25%;
    left: 18%;
  }
}

/* fadeInRight - 右から - */

.fadeInRight {
  animation-name: fadeIn2Anime;
  animation-delay: 1s;
}

@keyframes fadeIn2Anime {
  from {
    opacity: 0;
    top: 25%;
    left: 80%;
  }

  to {
    opacity: 1;
    top: 25%;
    left: 48%;
  }
}

/* fadeInLeft - 左から - */

.fadeInLeft {
  animation-name: fadeIn3Anime;
  animation-delay: 1s;
}

@keyframes fadeIn3Anime {
  from {
    opacity: 0;
    top: 45%;
    left: 0%;
  }

  to {
    opacity: 1;
    top: 45%;
    left: 22%;
  }
}

/* fadeInUp - 下から - */
.fadeInUp {
  animation-name: fadeIn4Anime;
  animation-delay: 1s;
}

@keyframes fadeIn4Anime {
  from {
    opacity: 0;
    top: 70%;
    left: 64%;
  }

  to {
    opacity: 1;
    top: 45%;
    left: 64%;
  }
}
/* contents-page */

.wrapper {
  padding: 60px 5%;
  margin: 0 auto;
}

.fadeIn,
.fadeIn2,
.fadeIn3,
.fadeIn4 {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.5s ease-in-out;
}

.fadeIn5 {
  opacity: 0;
  transition: 0.5s ease-in-out;
}

#contents-page .bg-ray {
  background: linear-gradient(120deg, #333 60%, #65f77b, #ccc 70%, #ddd 80%);
}

/* about */

#about .about-inner {
  display: flex;
  gap: 40px;
}

#about .about-inner .prof-pic {
  width: 20%;
  margin-top: 10px;
}

#about .about-inner .prof-dsc {
  width: 55%;
}

#about .about-inner .prof-dsc .name {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
}

#about .about-inner .prof-dsc p {
  font-size: 16px;
  margin-bottom: 20px;
  padding-left: 20px;
}

/* skill */

h2 {
  font-size: 42px;
  text-align: center;
  font-family: "Galada", cursive;
  margin-bottom: 60px;
}

#skill .skill-inner .icon-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3%;
}

#skill .skill-inner .icon-list .img-box {
  width: 100%;
  text-align: center;
  padding: 50px 0;
  transition: 0.5s ease-in-out;
}
#skill .skill-inner .icon-list .img-box:hover {
  background: #fff;
}

#skill .skill-inner .icon-list img {
  width: 40%;
  margin-bottom: 20px;
}

#skill .skill-inner .icon-list p {
  width: 100%;
  font-size: 18px;
  padding: 10px 0;
  position: relative;
}

#skill .skill-inner .icon-list .img-box:hover p {
  color: #333;
}

#skill .skill-inner .icon-list p::before {
  display: inline-block;
  content: "";
  width: 0%;
  height: 0%;
  border-top: 2px solid #d41111;
  border-left: 2px solid #d41111;
  position: absolute;
  top: 0px;
  left: 9%;
  transition: 0.5s ease-in-out;
  opacity: 0;
}

#skill .skill-inner .icon-list p::after {
  display: inline-block;
  content: "";
  width: 0%;
  height: 0%;
  border-bottom: 2px solid #f12b2b;
  border-right: 2px solid #f12b2b;
  position: absolute;
  bottom: 0px;
  right: 9%;
  transition: 0.5s ease-in-out;
  opacity: 0;
}

#skill .skill-inner .icon-list .img-box:hover p::before {
  width: 81%;
  height: 95%;
  opacity: 1;
}

#skill .skill-inner .icon-list .img-box:hover p::after {
  width: 81%;
  height: 95%;
  opacity: 1;
}

#skill .skill-inner .icon-list .img-box:nth-child(3) p::before {
  left: 6%;
}

#skill .skill-inner .icon-list .img-box:nth-child(3) p::after {
  right: 6%;
}

#skill .skill-inner .icon-list .img-box:nth-child(3):hover p::before {
  width: 87%;
}

#skill .skill-inner .icon-list .img-box:nth-child(3):hover p::after {
  width: 87%;
}

/* works */

#works {
  padding-bottom: 60px;
}

#works .works-inner .works-list {
  display: flex;
  width: 100%;
  margin: 0 auto;
}

/* #works .works-inner .works-list li.slick-slide {
  width: 100%;
  margin: 0 0.3%;
  text-align: center;
} */

/* .slick-prev,
.slick-next {
  color: transparent;
  width:24px;
  height:24px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  margin-top: 90px;
  cursor: pointer;
}

.slick-next{
  background: #333;
}

.slick-prev::before,
.slick-next::before{
    position:absolute;
    content: "";
    width:10px;
    height:10px;
    border-right: 4px solid #333;
    border-top: 4px solid #333;
    top:0;
    bottom:0;
    left:3px;
    right:0;
    margin:auto;
    transform:rotate(225deg);
}

.slick-next::before{
  border-right: 4px solid #FFF;
  border-top: 4px solid #FFF;
  left:0;
  right:3px;
  transform:rotate(45deg);
} */

#works .works-inner .works-list a {
  width: 90%;
  height: auto;
}

#works .works-inner .works-list a .img-box {
  position: relative;
}

#works .works-inner .works-list a .img-box .hover-mask {
  width: 100%;
  height: 100%;
  background: #eeeeee99;
  border: 2px solid #fff;
  position: absolute;
  top: 0;
  opacity: 0;
  transition: 0.3s ease-out;
}

#works .works-inner .works-list a .hover-mask p {
  color: #444;
  font-size: 24px;
  padding-top: calc(25% - 9px);
  text-align: center;
}

#works .works-inner .works-list p.site-title {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
  transition: 0.3s ease-in-out;
}

#works .works-inner .works-list a:hover p.site-title {
  color: #f12b2b;
}

#works .works-inner .works-list a:hover .hover-mask {
  opacity: 1;
}

/* contact */

#contact {
  position: relative;
}

#contact::before {
  display: block;
  content: "";
  width: 0px;
  height: 0px;
  border-top: 0px solid #fff;
  border-left: 400px solid #fff;
  border-bottom: 50px solid transparent;
  border-right: 0px solid transparent;
  position: absolute;
  top: 0;
  left: 0;
}

#contact::after {
  display: block;
  content: "";
  width: 0px;
  height: 0px;
  border-top: 50px solid transparent;
  border-left: 0px solid #fff;
  border-bottom: 0px solid transparent;
  border-right: 400px solid #fff;
  position: absolute;
  bottom: 0;
  right: 0;
}

#contact div {
  text-align: center;
}

#contact div a span {
  display: block;
  font-size: 42px;
  transition: 0.5s ease-in-out;
}

#contact div a span.mail {
  font-size: 32px;
}

#contact div a:hover span {
  text-shadow: 5px 2px 1px #000, 7px 4px #65f77b;
}

/* footer */

footer {
  background: #000;
}

footer #gotop {
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 25px;
  right: 0;
  opacity: 0;
  transition: 0.5s;
  margin-right: 10px;
  pointer-events: visible;
}

footer #gotop.active {
  opacity: 1;
}

footer #gotop a {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #65f77b;
  border-radius: 50%;
  background: #fff;
  position: relative;
  transition: all 0.3s;
}

footer #gotop a::before {
  display: block;
  content: "";
  border-bottom: 8px solid #333;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  position: absolute;
  top: 14px;
  left: 10px;
}

footer #gotop a:hover {
  transform: rotateX(360deg);
}

footer .copy {
  display: block;
  text-align: center;
  color: #fff;
  padding: 20px 0;
}

/* レスポンシブ */

@media screen and (max-width: 930px) {
  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  .wrapper {
    padding: 60px 8% 10px;
  }

  h2 {
    font-size: 36px;
  }

  /* sp navigation */

  nav.sp {
    opacity: 0;
    position: fixed;
    top: 0;
    left: -300px;
    z-index: 21;
    transition: all 0.5s linear;
  }

  #header .header-inner.active nav.sp {
    opacity: 1;
    left: 0;
    transition: 0.5s linear;
  }

  nav.sp ul.nav-list {
    padding: 30px;
  }

  #header .header-inner nav.sp ul.nav-list li:hover a {
    text-decoration: underline;
    text-shadow: none;
  }

  #header .header-inner #mainMenu {
    display: none;
  }

  #header .header-inner #mainMenu-trigger {
    display: block;
  }

  #top-view h1 div span {
    font-size: 46px;
  }

  /* fade Animation */

  /* fadeInDown - 上から - */

  .fadeInDown {
    animation-name: fadeIn1Anime;
  }

  @keyframes fadeIn1Anime {
    from {
      opacity: 0;
      top: 25%;
      left: 20%;
    }

    to {
      opacity: 1;
      top: 25%;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  /* fadeInRight - 右から - */

  .fadeInRight {
    animation-name: fadeIn2Anime;
    animation-delay: 1.5s;
  }

  @keyframes fadeIn2Anime {
    from {
      opacity: 0;
      top: 35%;
      left: 20%;
    }

    to {
      opacity: 1;
      top: 35%;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  /* fadeInLeft - 左から - */

  .fadeInLeft {
    animation-name: fadeIn3Anime;
    animation-delay: 2s;
  }

  @keyframes fadeIn3Anime {
    from {
      opacity: 0;
      top: 45%;
      left: 20%;
    }

    to {
      opacity: 1;
      top: 45%;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  /* fadeInUp - 下から - */
  .fadeInUp {
    animation-name: fadeIn4Anime;
    animation-delay: 2.5s;
  }

  @keyframes fadeIn4Anime {
    from {
      opacity: 0;
      top: 55%;
      left: 20%;
    }

    to {
      opacity: 1;
      top: 55%;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  /* about */

  #about .about-inner .prof-pic {
    display: none;
  }

  #about .about-inner .prof-dsc {
    width: 80%;
    margin: 0 auto;
  }

  #about .about-inner .prof-dsc p {
    padding: 0;
    word-break: break-all;
  }

  #about .about-inner .prof-dsc .name {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
  }

  /* skill */

  #skill .skill-inner .icon-list {
    width: 85%;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0 auto;
  }

  #skill .skill-inner .icon-list .img-box {
    padding: 20px 0;
  }

  #skill .skill-inner .icon-list .img-box p {
    font-size: 16px;
  }

  /* works */

  #works .works-inner .works-list {
    display: block;
  }

  #works .works-inner .works-list li{
    text-align: center;
    margin-bottom: 30px;
  }

  #works .works-inner .works-list .img-box {
    width: 80%;
    margin: 0 auto;
  }

  #works .works-inner .works-list p.site-title {
    color: #333;
  }

  #works .works-inner .works-list li:first-child p.site-title {
    color: #eee;
  }

  #works .works-inner .works-list li:first-child a:hover p.site-title {
    color: #f12b2b;
  }


  /* contact */

  #contact .wrapper {
    padding: 40px 0;
  }

  #contact::before {
    border-bottom: 36px solid transparent;
    border-left: 300px solid #fff;
  }

  #contact::after {
    border-top: 36px solid transparent;
    border-right: 300px solid #fff;
  }

  #contact div a span.message,
  #contact div a span.mail {
    font-size: 20px;
  }

  /* footer */

  footer .copy {
    font-size: 10px;
  }
}
