/*==================================================
/* 印象編 4 最低限おぼえておきたい動き*/
/*===================================*/

/* 4-1 ふわっ（上から） */

.fadeDown {
  animation-name: fadeDownAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

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

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

/* 4-7 にゅーん（滑らかに変形して出現） */
.smooth {
  animation-name: smoothAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  transform-origin: left;
  opacity: 0;
}

@keyframes smoothAnime {
  from {
    transform: translate3d(0, 100%, 0) skewY(12deg);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0) skewY(0);
    opacity: 1;
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeDownTrigger,
.smoothTrigger {
  opacity: 0;
}

/* ページ下の波 */
/*========= レイアウトのためのCSS ===============*/

/* 波 */
/*========= waveを描画するエリア設定 ===============*/

#waveCanvas {
  height: auto;
  width: 100%;
}

/*===========================================================*/
/* 印象編　5-3 流体シェイプ*/
/*=====================================

======================*/
/* 流体シェイプ（パターン1背景が写真のものなど）*/

.fluid_1 {
  width: 200px;
  height: 200px;
  background: #ffe1d5;
  opacity: 50%;
  top: 20px;
  left: 30%;
  overflow: hidden;
  z-index: -1;
  /* 以下アニメーション */
  animation: fluidrotate02 30s ease 0s infinite;
}

.Triggerfluid_1 {
  position: absolute;
  top: 20px;
  left: 30%;
  z-index: -1;
}

@media (max-width: 400px) {
  .fluid_2 {
    display: none;
  }
}

.fluid_3 {
  width: 400px;
  height: 360px;
  background: #e9e5ff;
  opacity: 60%;
  top: 380px;
  left: -10%;
  overflow: hidden;
  z-index: -1;
  /* 以下アニメーション */
  animation: fluidrotate 50s linear 0s infinite;
}

.Triggerfluid_3 {
  position: absolute;
  top: 380px;
  left: -10%;
  z-index: -1;
}

.fluid_4 {
  width: 150px;
  height: 150px;
  background: #d1f2ee;
  opacity: 80%;
  top: 300px;
  right: 10%;
  overflow: hidden;
  z-index: -1;
  /* 以下アニメーション */
  animation: fluidrotate02 33s linear 0s infinite;
}

.Triggerfluid_4 {
  position: absolute;
  top: 300px;
  right: 10%;
  z-index: -1;
}

.fluid_5 {
  width: 100px;
  height: 80px;
  background: #f6fab2;
  opacity: 80%;
  top: 600px;
  left: 10%;
  overflow: hidden;
  z-index: -1;
  /* 以下アニメーション */
  animation: fluidrotate02 43s linear 0s infinite reverse;
}

.Triggerfluid_5 {
  position: absolute;
  top: 600px;
  left: 10%;
  z-index: -1;
}

.fluid_6 {
  width: 200px;
  height: 200px;
  background: #e2f5d9;
  opacity: 86%;
  top: 330px;
  left: 20%;
  overflow: hidden;
  z-index: -1;
  /* 以下アニメーション */
  animation: fluidrotate02 25s linear 0s infinite;
}

.Triggerfluid_6 {
  position: absolute;
  top: 330px;
  left: 20%;
  z-index: -1;
}

.fluid_7 {
  width: 250px;
  height: 250px;
  background: #ffe1d5;
  opacity: 50%;
  top: 450px;
  right: -5%;
  overflow: hidden;
  z-index: -1;
  /* 以下アニメーション */
  animation: fluidrotate02 30s ease 0s infinite;
}

.Triggerfluid_7 {
  position: absolute;
  top: 450px;
  right: -5%;
  z-index: -1;
}

@media (max-width: 800px) {
  .fluid_2 {
    width: 140px;
    height: 130px;
    background: #e2f5d9;
    opacity: 86%;
    top: 400px;
    right: 4%;
    overflow: hidden;
    z-index: -1;
    /* 以下アニメーション */
    animation: fluidrotate02 25s linear 0s infinite reverse;
  }

  .Triggerfluid_2 {
    position: absolute;
    top: 400px;
    right: 4%;
    z-index: -1;
  }

  .fluid_4 {
    width: 400px;
    height: 400px;
  }

  .fluid_5 {
    top: 10px;
    width: 200px;
    height: 180px;
  }

  .Triggerfluid_5 {
    top: 10px;
  }

  .fluid_6 {
    top: -40px;
    left: 55%;
  }

  .Triggerfluid_6 {
    top: -40px;
    left: 55%;
  }

  .fluid_7 {
    left: 10%;
  }

  .Triggerfluid_7 {
    left: 10%;
  }
}

@keyframes fluidrotate {
  0%,
  100% {
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46%/49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62%/49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45%/61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33%/70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66%/56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50%/35% 61% 39% 65%;
  }
}

/* 流体シェイプパターン2*/

@keyframes fluidrotate02 {
  0%,
  100% {
    /* 0.100 */
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
  }

  14% {
    /* 70 */
    border-radius: 50% 50% 34% 66%/56% 68% 32% 44%;
  }

  28% {
    /* 84 */
    border-radius: 46% 54% 50% 50%/35% 61% 39% 65%;
  }

  42% {
    /* 42 */
    border-radius: 55% 55% 55% 45%/61% 48% 62% 39%;
  }

  56% {
    /* 28 */
    border-radius: 54% 46% 38% 62%/49% 70% 30% 51%;
  }

  70% {
    /* 14 */
    border-radius: 40% 60% 54% 46%/49% 60% 40% 51%;
  }

  84% {
    /* 56 */
    border-radius: 61% 39% 67% 33%/70% 50% 50% 30%;
  }
}

main {
  overflow: hidden;
}

/* Topスライド関連のCSS*/
/* https://vegas.jaysalvat.com/documentation/transitions/ */

.vegas-overlay,
.vegas-content-scrollable,
.vegas-timer,
.vegas-slide,
.vegas-slide-inner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
}

.vegas-content-scrollable {
  position: relative;
  height: 100%;
  overflow: auto;
}

.vegas-overlay {
  opacity: 0.5;
  background: transparent url("./overlays/02.png") center center repeat;
}

.vegas-timer {
  top: auto;
  bottom: 0;
  height: 2px;
}

.vegas-timer-progress {
  width: 0%;
  height: 100%;
  background: white;
  transition: width ease-out;
}

.vegas-timer-running .vegas-timer-progress {
  width: 100%;
}

.vegas-slide,
.vegas-slide-inner {
  margin: 0;
  padding: 0;
  background: transparent center center no-repeat;
  transform: translateZ(0);
  will-change: transform, opacity;
}

body .vegas-container {
  overflow: hidden !important;
  position: relative;
}

.vegas-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
}

body.vegas-container {
  overflow: auto;
  position: static;
  z-index: -2;
}

body.vegas-container > .vegas-timer,
body.vegas-container > .vegas-overlay,
body.vegas-container > .vegas-slide {
  position: fixed;
  z-index: -1;
}

/* Target Safari IOS7+ in order to add 76px */
/*******************************************/
/* blur transition */
/*******************************************/
.vegas-transition-blur {
  opacity: 0;
  filter: blur(32px) brightness(1.01);
}

.vegas-transition-blur-in,
.vegas-transition-blur2-in {
  opacity: 1;
  filter: blur(0px) brightness(1.01);
}

.vegas-transition-blur2-out {
  opacity: 0;
}

/*******************************************/
/* kenburns animation
/*******************************************/
.vegas-animation-kenburns {
  -webkit-animation: kenburns ease-out;
  animation: kenburns ease-out;
}

@-webkit-keyframes kenburns {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes kenburns {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ローディング時画面 */
#splash {
  /*fixedで全面に固定*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    32deg,
    rgb(230, 230, 146) 0%,
    rgb(249, 185, 156) 100%
  );
  text-align: center;
  color: #fff;
}

/* ふわっと下から出てくるようにする記述 */

.fadeInUpTrigger {
  opacity: 0;
}

.fadeUp {
  /* background-color: blue; */
  animation-name: fadeUpAnime;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

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

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

.fadeUpTriggerFluid {
  position: absolute;
}
