@charset "utf-8";

.noto-serif-jp- {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  color: rgb(17, 17, 17);
}

.first-view {
  height: calc(100vh - 110px);
  position: relative;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: auto;
}

.slide-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: slider-1 40s linear infinite;
}

.slide-image:nth-child(1) {
  background-image: url(../img/index/003.jpg);
  animation-delay: -2s;
}

.slide-image:nth-child(2) {
  background-image: url(../img/index/background.jpg);
  animation-delay: 8s;
}

.slide-image:nth-child(3) {
  background-image: url(../img/index/004.jpg);
  animation-delay: 18s;
}

.slide-image:nth-child(4) {
  background-image: url(../img/index/005.jpg);
  animation-delay: 28s;
}

@keyframes slider-1 {

  /* 非表示状態からフェードインを開始する */
  0% {
    opacity: 0;
  }

  /* フェードインを完了し完全表示する */
  2.5% {
    opacity: 1;
  }

  /* ここまで完全表示を維持したらフェードアウトを開始する */
  25% {
    opacity: 1;
  }

  /* フェードアウトを完了し非表示にする */
  30% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.first-view-img {
  display: flex;
  margin: auto auto auto auto;
  height: 50%;
  animation: fadeOut 40s linear infinite;
  /*keyframesで命名したものを使う。2秒間で消える*/
  animation-fill-mode: both;
  /*0%の時と100%の時の状態を保つ*/
  animation-timing-function: ease;
}

@keyframes fadeOut {
  0% {
    opacity: 0;
  }

  16.66% {
    opacity: 1;
  }

  33.33% {
    opacity: 1;
  }

  45% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.lead {
  height: 670px;
  margin: 60px auto;
  background-image: url(../img/hasu-kuro.png);
  background-size: cover;
  background-position: top;
  border-bottom: 2px solid #CCC;
}

.lead p {
  font-family: "Noto Serif JP", serif;
  font-weight: normal;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  margin: auto;
  color: rgb(17, 17, 17);
  padding: 30px;
  border-width: 3px;
  border-style: outset;
  border-color: #e6b422;
  border-radius: 15px;
  background-color: rgb(255, 255, 255, 0.6);
  /* アニメ */
  animation-name: fadeInAnime;
  animation-fill-mode: both;
  animation-duration: 7s;
  animation-timing-function: ease;
  animation-delay: 2s;
  animation-direction: normal;
}

@keyframes fadeInAnime {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.link-button-area {
  text-align: center;
  margin-top: 40px;
}

.link-button {
  background-color: #e6b422;
  display: inline-block;
  min-width: 180px;
  line-height: 50px;
  border-radius: 15px;
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
  font-size: 18px;
}

.link-button:hover {
  background-color: #d9a62e;
}

/* リンク・動画ここから */
.link-ga {
  width: 800px;
  max-width: 90%;
  margin-top: 100px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(2, 400px);
  column-gap: 50px;
  row-gap: 50px;
  justify-content: center;
}

.link-ga dl {
  text-align: center;
}

.link-ga dt {
  font-weight: bold;
  margin-top: 20px;
}

.link-ga .link-ga-botton {
  background-color: #e6b422;
  display: inline-block;
  min-width: 150px;
  line-height: 40px;
  border-radius: 15px;
  font-size: 18px;
  color: rgb(17, 17, 17);
  background-position: center;
  text-align: center;
}

.link-ga-botton:hover {
  background-color: #d9a62e;
}

.link-ga li {
  position: relative;
}

.link-ga .link-tate {
  position: absolute;
  top: 0;
  left: calc(100% + 18px);
  font-size: 18px;
  color: rgb(17, 17, 17);
  font-weight: normal;
  margin-left: 5px;
  white-space: nowrap;
  transform-origin: top left;
  transform: rotate(90deg);
}

.movie {
  width: 930px;
  max-width: 90%;
  background-color: #f8f8f8;
  padding: 50px 60px;
  margin-top: 55px;
  margin-left: auto;
  margin-right: auto;
}

.movie h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.movie h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background-color: rgb(17, 17, 17);
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.movie iframe {
  display: block;
  width: 100%;
  height: 456px;
  margin-top: 30px;
}

.movie p {
  font-size: 16px;
  line-height: 28px;
  margin-top: 20px;
  margin-bottom: 100pt;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* リンク・動画ここまで */


@media (max-width: 1080px) {
  .first-view {
    height: calc(100vh - 200px);
  }

  .first-view-img {
    display: flex;
    margin: auto auto auto auto;
    height: 40%;
  }

  .lead {
    padding-left: 20px;
    padding-right: 20px;
    height: 600px;
    width: 100%;
    margin: 60px auto;
    background-image: url(../img/hasu-kuro.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
  }

  .lead p {
    font-size: 16px;
    padding: 15px;
  }

  .link-ga {
    width: 750px;
    max-width: 90%;
    margin-top: 50px;
grid-template-columns: repeat(auto-fit, 250px);
    column-gap: 50px;
    row-gap: 50px;
  }

  .link-button-area {
    margin-top: 20px;
  }

  .movie {
    width: 500px;
    padding: 30px 25px;
  }

  .movie iframe {
    height: 240px;
  }

  .movie p {
    margin-bottom: 30px;
  }

}