@charset "utf-8";

.first-view {
  height: calc(100vh - 110px);
  /* height: 595px; */
  /* background-image: url(../images/index/サンアイパッケージ文字無し.png); */
  /* background-repeat: no-repeat;
  background-position: center center; */
  /* background-size: cover; */
  display: flex;
  align-items: center;
}

.first-view::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url(../images/index/サンアイパッケージ文字無し.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.3; /* ここで透過度を調整 */
  z-index: -1;   /* 文字の背後に回す */
}

.first-view-text {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: blue;
  font-weight: bold;
  text-shadow: 1px 1px 10px rgb(2, 2, 63);
}

.first-view-text h1 {
  font-family: 'Noto Serif JP', serif;
  font-family: 'Noto Serif SC', serif;
  font-size: 56px;
  line-height: 72px;
  top: 50%;           /* 親の上の端から50%の位置に配置 */
  transform: translateY(-50%); /* 自身の高さの半分だけ上に戻す */
}

.first-view-text h2 {
  font-family: 'Noto Serif JP', serif;
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  line-height: 64px;
  margin-bottom: 36px;
}

.first-view-text p {
  font-family: 'Noto Serif JP', serif;
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  line-height: 100px;
  top: 0%;           /* 親の上の端から0%の位置に配置 */
  transform: translateY(-50%); /* 自身の高さの半分だけ上に戻す */
}

/* フェードインここから */

.fadeIn {
  animation-name: fadeInAnime;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* フェードインここまで */

/* 1文字ずつここから */

.eachTextAnime span {
  opacity: 0;
}

.eachTextAnime.appeartext span {
  animation: text_anime_on 2s ease-out forwards;
}

@keyframes text_anime_on {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* 1文字ずつここまで */

.feature {
  display: flex;
  justify-content: space-between;
  width: 930px;
  max-width: 90%;
  margin-top: 75px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
}

.feature img {
  width: 360px;
}

.feature-text {
  max-width: 500px;
  margin-right: 40px;
}

.reverse {
  flex-direction: row-reverse;
}

.reverse .feature-text {
  margin-left: 40px;
  margin-right: 0;
}

.feature-text h3 {
  font-size: 22px;
  font-weight: bold;
  line-height: 30px;
}

.feature-text h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background-color: #000000;
  margin-top: 20px;
}

.feature-text p {
  font-size: 15px;
  line-height: 28px;
  margin-top: 25px;
}

.link-button {
  text-decoration: underline;
}

.link-button:hover {
  color: #777;
}

.concept{
  color: rgb(234, 255, 234);
}

.about{
  color: rgb(124, 34, 34);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.access{
  color: rgb(0, 0, 97);
}

.content{
  color: rgb(4, 4, 15);
}

@media (max-width: 800px) {
  .first-view {
    height: calc(80vh - 50px);
    background-image: url(../images/gabriel-santos-59O9ora4_5c-unsplash_SP.jpg);
    background-color:rgba(255,255,255,0.5);
    background-blend-mode:lighten;
    align-items: flex-start;
  }

  .first-view::before {
    height: 80%;
  }
   
  .first-view-text {
    padding-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .first-view-text h1 {   
    font-size: 28px;
    width: 250px;
    line-height: 60px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 45%;           /* 親の上の端から50%の位置に配置 */
    transform: translateY(-50%); /* 自身の高さの半分だけ上に戻す */
  }

  .first-view-text h2 {
    margin-top: 10px;
    margin-bottom: 30px;
  }

  .first-view-text #small {
    font-size: 18px;
    line-height: 36px;
    margin-top: 10%;
  }

  .feature {
    display: block;
    width: 500px;
    margin-top: 45px;
  }

  .feature-text {
    margin-right: 0;
  }

  .reverse .feature-text {
    margin-left: 0;
  }

  .feature img {
    width: 100%;
    height: auto;
    margin-top: 25px;
  }

}