/* ==========================================================================
   8-5
   ========================================================================== */

/*========= レイアウトのためのCSS ===============*/

/* p{
	margin: 20px;
	font-size: 20px;
	overflow: hidden;/*左右アニメーションで画面からはみ出る際に出る横スクロールバーを隠す*/
/* } */

/*========= 流れるテキスト ===============*/

/*全共通*/

.slide-in {
  overflow: hidden;
  display: inline-block;
}

.slide-in_inner {
  display: inline-block;
}

/* 上下のアニメーション*/
.downAnime {
  opacity: 0; /* 事前に透過0 にして消しておく*/
}

.slideAnimeDownUp {
  animation-name: slideTextY100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes slideTextY100 {
  from {
    transform: translateY(100%); /* 要素を上の枠外に移動*/
    opacity: 0;
  }
  to {
    transform: translateY(0); /* 要素を元の位置に移動*/
    opacity: 1;
  }
}

.slideAnimeUpDown {
  animation-name: slideTextY-100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes slideTextY-100 {
  from {
    transform: translateY(-100%); /* 要素を下の枠外に移動*/
    opacity: 0;
  }
  to {
    transform: translateY(0); /* 要素を元の位置に移動*/
    opacity: 1;
  }
}

/* ==========================================================================
   TOP
   ========================================================================== */

/*========= 背景動画設定のCSS ===============*/

/*header設定*/
#videoWrap {
  /* background: url(../images/top/bg_dot.png);
  background-size: 9px auto; */
  position: relative; /*h1の中央寄せ配置の起点とするためのrelative*/
  height: 100vh; /*高さを全画面にあわせる*/
}
#video-area {
  position: fixed;
  z-index: -1; /*最背面に設定*/
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
}
#video {
  /*天地中央配置*/
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  /*縦横幅指定*/
  width: 177.77777778vh; /* 16:9 の幅→16 ÷ 9＝ 177.77% */
  height: 56.25vw; /* 16:9の幅 → 9 ÷ 16 = 56.25% */
  min-height: 100%;
  min-width: 100%;
}
/*見出し設定*/
.top-main-wrap {
  /*要素の配置*/
  position: absolute;
  /*要素を天地中央寄せ*/
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 100%;
}
.top-contents-wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 30px;
  position: relative;
}
.midashi {
  /*見た目の調整*/
  text-shadow: 0 0 15px #666;
  color: #fff;
  font-family: "Alata", sans-serif;
  font-size: 7rem;
  text-align: left;
  margin-bottom: 60px;
}

/*========= レイアウトのためのCSS ===============*/
.topContents {
  background: url("../images/common/bg_img.jpg");
  background-size: 600px auto;
  /* padding: 110px 0; */
  text-align: center;
}
.topContents .inner {
  width: 100%;
  margin: 0 auto;
}

/* bg */
.top-vision {
  padding: 160px 0;
}
.topSeikabutsu {
  padding: 160px 0 0;
}

/* 採用ボタン */
.top-recruit-btn {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  line-height: 1em;
  margin: 0 0 30px;
}
.top-recruit-btn a {
  background-color: #efbf31;
  color: #000;
  display: inline-block;
  padding: 15px;
}

@media screen and (max-width: 1024px) {
  /*見出し設定*/
  .midashi {
    font-size: 5.5rem;
    margin-bottom: 40px;
  }

  /* 採用ボタン */
  .top-recruit-btn {
    font-size: 1.2rem;
    margin: 0 0 20px;
  }

  /* bg */
  .top-vision {
    padding: 120px 0 50px;
  }
  .topSeikabutsu {
    padding: 120px 0 0;
  }
}
@media screen and (max-width: 768px) {
  .topContents {
    padding: 0;
  }
  /*見出し設定*/
  .midashi {
    font-size: 3.5rem;
  }
  /* bg */
  .top-vision {
    padding: 40px 0 60px;
  }
  .topSeikabutsu {
    padding: 60px 0 0;
  }
}

/* 流れる */
.scroll {
  background: url(../images/top/top_img1.jpg);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: auto;
  width: 100%;
  font-family: "Alata", sans-serif;
  font-size: 24rem;
  line-height: 1em;
  text-align: center;
  color: transparent;
  overflow: hidden;
  padding: 30px 0 50px;
}
.scroll span {
  display: inline-block;
  /* padding-left: 100%; */
  margin-left: 100%;
  white-space: nowrap;
  line-height: 1em;
  will-change: scroll-position;
  animation: scrollAnime 15s linear infinite;
}
/* @keyframes scrollAnime {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
} */
@keyframes scrollAnime {
  0% {
    margin-left: 100%;
  }
  100% {
    margin-left: -20em;
  }
}

/* 中程の動画エリア */
.midArea {
  /* background: url(../images/top/bg_dot.png);
  background-size: 9px auto; */
  background: rgba(0, 0, 0, 0.3);
}
.midArea .inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 160px 20px;
}
.midArea .inner p {
  color: #fff;
  font-family: "Alata", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .midArea .inner {
    padding: 120px 20px;
  }
  .midArea .inner p {
    font-size: 2rem;
  }
}

/* ==========================================================================
   TOP
   ========================================================================== */
#video-area::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-transition: all 2500ms linear 500ms;
  transition: all 2500ms linear 500ms;
}
.topContents {
  background-color: #f3f5f5;
}
.topContents h2 {
  color: #efbf31;
  font-size: 13rem;
  margin: 0;
  line-height: 1em;
}
.topContents h3 {
  color: #f13318;
  font-size: 6rem;
  margin: 0;
}

/* VISION */
.topImgWrap {
  position: relative;
  display: flex;
  height: 750px;
}
.topImgWrap.layout-left {
  justify-content: flex-start;
}
.topImgWrap.layout-right {
  justify-content: flex-end;
}
.layout-left .topImg {
  background: url(../images/top/top_img_vision_n.webp) no-repeat right center;
  background-size: cover;
  height: 750px;
  width: 80%;
}
.layout-right .topImg {
  background: url(../images/top/top_img_communication.webp) no-repeat left center;
  background-size: cover;
  height: 750px;
  width: 80%;
}
.layout-left .top-contents {
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  height: 750px;
  width: 100%;
}
.layout-right .top-contents {
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  height: 750px;
  width: 100%;
}
.top-contents-midashi {
  color: #efbf31;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.6em;
  width: 100%;
}
.layout-left .top-contents-midashi {
  padding: 140px 20px 140px 0;
  text-align: right;
}
.layout-right .top-contents-midashi {
  padding: 140px 0 140px 20px;
  text-align: left;
}
.topContentsInner {
  background: url("../images/common/bg_img.jpg");
  background-size: 600px auto;
  padding: 70px 20px 70px 50px;
  text-align: left;
  width: 50%;
}
.top-contents-container {
  margin: 0 auto;
  position: relative;
  height: 750px;
  width: 100%;
}
.top-contents-container-inner {
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  height: 750px;
}
.layout-left .topContentsInner {
  position: absolute;
  bottom: 0;
  right: 0;
}
.layout-right .topContentsInner {
  position: absolute;
  bottom: 0;
  left: 0;
}
.topContentsMidashi {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  margin: 0 0 30px;
}
.topContentsEn {
  font-family: "Alata", sans-serif;
  font-size: 1.6rem;
  margin: 0 0 30px;
}
.topContentsTxt {
  font-size: 1.5rem;
  line-height: 1.8em;
}

/* 成果物イメージ */
.seikabutsu-img {
  background: url(../images/top/top_seikabutsu.webp) no-repeat center center #333;
  background-size: cover;
  height: 540px;
}

/* WORKS */
.top-works {
  margin: 160px 0;
}
.works-layout {
  display: flex;
  justify-content: space-between;
  margin: 0 10px;
}
.top-works-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 70px 10px;
}
.top-works-inner {
  margin: 0 0 30px;
  text-align: left;
  width: 23%;
}
.top-works-inner p {
  color: #555;
  font-size: 1.4rem;
  margin: 5px 0 0;
}
.category-tag {
  background-color: #efbf31;
  color: #fff;
  display: inline-block;
  font-family: "Alata", sans-serif;
  font-size: 1.2rem;
  line-height: 1em;
  padding: 2px 5px;
}

a.topViewAll {
  align-self: center;
  background-color: #efbf31;
  color: #fff;
  display: block;
  font-family: "Alata", sans-serif;
  font-size: 1.5rem;
  padding: 10px 16px;
  width: 240px;
  position: relative;
  transition: all 0.4s;
  text-align: left;
}
a.topViewAll:hover {
  opacity: 1;
}
.topViewLine {
  background-color: #fff;
  height: 1px;
  position: absolute;
  width: 50px;
  top: 22px;
  right: 20px;
}
a.topViewAll:hover .topViewLine {
  right: 10px;
  transition: all 0.4s;
}

.topViewLineBlack {
  background-color: #111;
  height: 1px;
  position: absolute;
  width: 50px;
  top: 22px;
  right: 20px;
}
a.topViewAll:hover .topViewLineBlack {
  right: 10px;
  transition: all 0.4s;
}

@media screen and (max-width: 1024px) {
  .top-works {
    margin: 120px 0;
  }
  .topContents h2 {
    font-size: 10rem;
  }
  .topContents h3 {
    font-size: 4rem;
  }

  .topContentsInner {
    width: 100%;
  }
  .top-works-inner:nth-child(4) {
    display: none;
  }
  .layout-left .topImg {
    background: url(../images/top/top_img_vision_n.webp) no-repeat left -100px top -50px;
    background-size: cover;
    height: 750px;
    width: 80%;
  }

  /* 成果物イメージ */
  .seikabutsu-img {
    height: 400px;
  }

  /* 流れる */
  .scroll {
    font-size: 8rem;
    padding: 10px 0 20px;
  }

  /* WORKS */
  .top-work-txt {
    margin: 0 0 0 100px;
  }
  .top-work-txt p {
    margin: 0;
  }
  .top-works-inner {
    margin: 0 0 30px;
    text-align: left;
    width: 32%;
  }
}

@media screen and (max-width: 768px) {
  .topContents h2 {
    font-size: 5rem;
  }

  /* VISION */
  .topImgWrap {
    position: static;
    flex-wrap: wrap;
    height: auto;
  }
  .layout-left .topImg {
    background: url(../images/top/top_img_vision_n.webp) no-repeat center top -50px;
    background-size: cover;
    height: 250px;
    width: 100%;
    order: 2;
  }
  .layout-right .topImg {
    height: 250px;
    width: 100%;
    margin: 0 0 50px;
    order: 1;
  }

  .layout-left .top-contents {
    margin: 0 auto;
    position: static;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: auto;
    padding: 0 20px;
    width: 100%;
    order: 1;
  }
  .layout-right .top-contents {
    margin: 0 auto;
    position: static;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: auto;
    padding: 0 20px;
    width: 100%;
    order: 2;
  }
  .top-contents-midashi {
    font-size: 2.2rem;
  }
  .layout-left .top-contents-midashi {
    padding: 0 0 30px;
    text-align: left;
  }
  .layout-right .top-contents-midashi {
    padding: 0 0 50px;
    text-align: left;
  }
  .topContentsInner {
    padding: 0 0 50px;
  }

  .top-contents-container {
    height: auto;
  }
  .top-contents-container-inner {
    height: auto;
  }
  .layout-left .topContentsInner {
    position: static;
    bottom: auto;
    right: auto;
  }
  .layout-right .topContentsInner {
    position: static;
    bottom: auto;
    left: auto;
  }
  .topContentsMidashi {
    font-size: 1.8rem;
    margin: 0;
  }
  .topContentsEn {
    font-size: 1.4rem;
    margin: 0 0 20px;
  }
  .topContentsTxt {
    font-size: 1.4rem;
    line-height: 1.8em;
  }

  /* 成果物イメージ */
  .seikabutsu-img {
    height: 250px;
  }

  /* WORKS */
  .top-works {
    margin: 60px 0 0 0;
  }

  .top-works-list {
    margin: 40px 0 30px;
  }
  .top-works-inner:nth-child(4) {
    display: inline-block;
  }
  .top-works-inner {
    margin: 0 0 30px;
    text-align: left;
    width: 47%;
  }
  .top-works-inner p {
    font-size: 1.2rem;
    margin: 5px 0 0;
  }
  .category-tag {
    font-size: 1.2rem;
  }
  a.topViewAll {
    font-size: 1.2rem;
    margin: 0;
    padding: 6px 10px;
    width: 30%;
  }

  .topViewLine {
    width: 20px;
    top: 15px;
    right: 10px;
  }
  a.topViewAll:hover .topViewLine {
    right: 5px;
  }
}
@media screen and (max-width: 480px) {
  .layout-left .topImg {
    background: url(../images/top/top_img_vision_n.webp) no-repeat center top 0;
    background-size: cover;
  }
}

/* Creator's File ボタン */
a.creator-file-btn {
  font-family: "Fugaz One", cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6px;
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background-color: rgba(24, 30, 66, 0.8);
  color: #fff;
  border: 1px solid #2e3664;
  font-size: 2.6rem;
  line-height: 1.3;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
}
a.creator-file-btn:hover {
  opacity: 0.8;
}
@media screen and (max-width: 768px) {
  a.creator-file-btn {
    width: 120px;
    height: 120px;
    font-size: 1.8rem;
    bottom: 20px;
    right: 20px;
  }
}
