@charset "UTF-8";

/*すべての要素にスタイルを適用する*/
* {
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: auto;
  font-family: 'Cormorant Garamond', serif;
}

img {
  width: 100%;
  height: auto;
}

p {
  text-align: center;
}

header {
  width: 100%;
  height: 100vh;
  position: relative;
}

header:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
}

main {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  text-align: center;
  background-color: #ffffff;
}

section {
  margin: 0 0 50px;
}

main::before {
  content: "";
  width: 100%;
  height: auto;
  background-color: red
}

footer {
  text-align: center;
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
  color: #333333;
}

footer a:hover {
  color: #eb593c;
}

h1 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  color: #000000;
  text-align: center;
  font-size: 5rem;
}

h2 {
  margin: 20px 0;
  font-size: 35px;
}

.navi {
  display: flex;
  flex-wrap: wrap;
  /*スマホ表示折り返し用なのでPCのみなら不要*/
  margin: 0 0 50px 10px;
  list-style: none;
}

.navi li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #000000;
  font-size: 20px;
  font-family: 'Roboto Condensed', sans-serif;
}

.navi li {
  margin-bottom: 20px;
}

.navi li a {
  /*円の基点とするためrelativeを指定*/
  position: relative;
}

.navi li.current a,
.navi li a:hover {
  color: #000000;
  font-family: 'Roboto Condensed', sans-serif;
}

.navi li a::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 0;
  left: 0;
  /*線になる丸の形状*/
  width: 100%;
  height: 1px;
  border-radius: 50%;
  background: #000000;
  /*アニメーションの指定*/
  transition: all .3s;
  transform: scale(0.04, 1);
  /*X方向0.04、Y方向1*/
  transform-origin: center bottom;
  /*中央下部基点*/
}

/*現在地とhoverの設定*/
.navi li.current a::after,
.navi li a:hover::after {
  height: 1px;
  /*縦幅を変化*/
  border-radius: 0;
  /*丸みをなくす*/
  transform: scale(0.8, 1);
  /*X方向0.8、Y方向1にスケール拡大*/
}

/*スクロールダウン全体の場所*/
.scrolldown {
  position: absolute;
  bottom: 50px;
  left: 50%;
}

/*Scrollテキストの描写*/
.scrolldown span {
  position: absolute;
  left: 10px;
  bottom: 25px;
  color: #333333;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  font-family: 'Roboto Condensed', sans-serif;
}

/* 丸の描写 */
.scrolldown:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  /*丸の形状*/
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333333;
  /*丸の動き1.6秒かけて透過し、永遠にループ*/
  animation:
    circlemove 1.6s ease-in-out infinite,
    cirlemovehide 1.6s ease-out infinite;
}

/*下からの距離が変化して丸の全体が上から下に動く*/
@keyframes circlemove {
  0% {
    bottom: 75px;
  }

  100% {
    bottom: -5px;
  }
}

/*上から下にかけて丸が透過→不透明→透過する*/
@keyframes cirlemovehide {
  0% {
    opacity: 0
  }

  50% {
    opacity: 1;
  }

  80% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
  }
}

/* 線の描写 */
.scrolldown:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 80px;
  background: #333333;
}

@-webkit-keyframes sk-bouncedelay {

  0%,
  80%,
  100% {
    -webkit-transform: scale(0)
  }

  40% {
    -webkit-transform: scale(1.0)
  }
}

@keyframes sk-bouncedelay {

  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

@-webkit-keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4)
  }

  20% {
    -webkit-transform: scaleY(1.0)
  }
}

@keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }

  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

/*スマホサイズ*/
@media screen and (max-width: 425px) {
  .navi li a {
    padding: 15px 10px;
    font-size: 12px;
  }

  .scrolldown {
    bottom: -10px;
  }

  .scrolldown:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 55px;
    background: #333333;
  }

  .scrolldown span {
    bottom: 15px;
  }
}

/*ヘッダー部分の背景ギャラリー---------------------------------------*/
.slider {
  width: 100vw;
  height: 70vh;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.slider div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
  opacity: 0;
  animation-name: slide-fade;
  animation-duration: 15s;
  animation-iteration-count: infinite;
}

@keyframes slide-fade {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 2;
  }

  75% {
    opacity: 3;
  }

  100% {
    opacity: 4;
    z-index: 0;
  }
}

.slider div:first-of-type {
  background-image: url(img/src1.jpg);
}

.slider div:nth-of-type(2) {
  background-image: url(img/src2.jpg);
  animation-delay: 5s;
}

.slider div:nth-of-type(3) {
  background-image: url(img/src3.jpg);
  animation-delay: 10s;
}

.slider div:nth-of-type(4) {
  background-image: url(img/src4.jpg);
  animation-delay: 15s;
}

.slider div:last-of-type {
  background-image: url(img/src5.jpg);
  animation-delay: 20s;
}

/*ギャラリー--------------------------------------------------*/
#gallery {
  display: grid;
  max-width: 1000px;
  margin: auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.img-item {
  opacity: 0;
  filter: blur(10px);
  width: 100%;
}

.img-item img {
  width: 100%;
  height: auto;
}

.img-item p {
  text-align: center;
}

/*works-------------------------------------------------------*/
.works {
  width: 50%;
  text-align: center;
  margin: auto;
}