@charset "utf-8";

/* top-main */
/* fv */

.fv {
  text-shadow: 4px 5px 10px #bbb;
  background: url(../img/deep_sea.jpg) no-repeat center / cover;
  width: 100%;
  height: 100vh;
  position: relative;
}

.fv-title {
  position: absolute;
  top: 25%;
  left: 10.5%;
  line-height: 1.75;
}
.fv-text {
  position: absolute;
  bottom: 50px;
  left: 10.5%;
}
.fv-last-child {
  margin-top: 15px;
}

/* about */
#about {
  margin-bottom: 160px;
}
.about-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 80px;
  padding-top: 50px;
}
.about-item {
  width: 45%;
}
.about-text {
  margin-bottom: 55px;
}
.about-img {
  width: 39%;
  position: relative;
}
.about-img1 {
  width: 76%;
  max-width: 270px;
  position: absolute;
  top: -60px;
  left: -100px;
  z-index: 1;
}

.about-img2 {
  width: 100%;
  position: relative;
  bottom: -30px;
  left: 0;
}

.about-img img {
  width: 100%;
  display: block;
}

.title {
  margin-bottom: 40px;
}

/* works */
#works {
  margin-bottom: 160px;
}
#works .section-title {
  margin-bottom: 50px;
}
/* スライダー全体 */
.slider-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 100px;
}

/* スライド列 */
.slider {
  display: flex;
  width: max-content;
  animation: scroll-left 120s linear infinite;
}

/* スライド */
.slide {
  width: calc(100vw / 3);
  flex-shrink: 0;
}

/* 画像 */
.slide img {
  width: 100%;
  display: block;
}

/* 無限スクロール */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* アニメーション */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* CSSアニメーション */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
/* hover(マウスオーバー)で一時停止 */
.slider-wrapper:hover .slider {
  animation-play-state: paused;
}
/* hover(マウスオーバー)で拡大 */
.slide {
  width: fit-content;
  height: 300px;
  cursor: pointer;
  overflow: hidden;
}
.slide img {
  width: fit-content;
  height: 300px;
  display: block;
  transition: transform 0.4s;
}

.slide:hover img {
  transform: scale(1.1);
}

/* skills */
#skills {
  margin-bottom: 320px;
}
#skills .section-title {
  margin-bottom: 50px;
}

.skills-container {
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 80px 100px;
  justify-content: center;
}
.skills-item {
  width: calc((100% - 200px) / 3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.skills-item p {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
}
/* Loading背景画面設定　*/
#splash {
  /*fixedで全面に固定*/
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: #333;
  text-align: center;
  color: #fff;
}

/* Loading画像中央配置　*/
#splash_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Loading アイコンの大きさ設定　*/
#splash_logo img {
  width: 260px;
}

/* fadeUpをするアイコンの動き */
.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*スクロールダウン全体の場所*/
.scrolldown1 {
  /*描画位置※位置は適宜調整してください*/
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);

  /*全体の高さ*/
  height: 50px;
}

/*Scrollテキストの描写*/
.scrolldown1 span {
  /*描画位置*/
  position: absolute;
  left: -20px;
  top: -15px;
  /*テキストの形状*/
  color: #eee;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* 線の描写 */
.scrolldown1::after {
  content: "";
  /*描画位置*/
  position: absolute;
  top: 0;
  /*線の形状*/
  width: 1px;
  height: 30px;
  background: #eee;
  /*線の動き1.4秒かけて動く。永遠にループ*/
  animation: pathmove 1.4s ease-in-out infinite;
  opacity: 0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove {
  0% {
    height: 0;
    top: 0;
    opacity: 0;
  }
  30% {
    height: 30px;
    opacity: 1;
  }
  100% {
    height: 0;
    top: 50px;
    opacity: 0;
  }
}
/* レスポンシブ */
@media (width < 767px) {
  .fv {
  }
}

@media screen and (max-width: 1080px) {
  /* skills */
  .skills-item {
    width: calc((100% - 100px) / 2);
    max-width: 288px;
  }
}

@media screen and (max-width: 1024px) {
  /* fv */
  .fv-title,
  .fv-text {
    left: 40px;
  }
}

@media screen and (max-width: 768px) {
  #splash_logo img {
    width: 180px;
  }

  /*スクロールダウン全体の場所*/
  .scrolldown1 {
    display: none;
  }

  /* fv */
  .fv {
    height: 100svh;
    margin-bottom: 150px;
  }

  /* about */
  .about-container {
    flex-direction: column;
  }
  .about-item {
    width: 100%;
    max-width: 470px;
    margin: 0 auto 30px;
  }
  .about-img {
    width: 70%;
    max-width: 450px;
    margin: 70px auto 0 auto;
  }
  .about-img1 {
    width: 54%;
    max-width: 240px;
    top: -20%;
    left: 0;
  }
  .about-img2 {
    width: 90%;
    margin: 0 0 0 auto;
  }

  /* skills */
  #skills {
    margin-bottom: 150px;
  }
  .skills-container {
    gap: 80px 50px;
  }
  .skills-item {
    width: calc((100% - 50px) / 2);
    gap: 20px;
  }
  .skills-item p {
    font-size: 20px;
  }
}

@media screen and (max-width: 500px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
    gap: 50px 50px;
  }
  .skills-item {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  /* fv */
  .fv-title,
  .fv-text {
    left: 20px;
  }
}
