/*
Theme Name:hello-child
Template:hello-elementor
Version:1.0
*/
/* 無効化用のスタイル */
html.no-animation *,
html.no-animation *::before,
html.no-animation *::after {
  /* アニメーションを完全にオフ */
  animation: none !important;
  /* トランジションもオフ */
  transition: none !important;
}

:root {
  --normal-c: 0,0,0;
  --accent-1-c: 2, 56, 156;
  --accent-2-c: 25, 108, 233;
  --accent-3-c: 239, 246, 255;
  --animation-time-infinate: infinite;
}

html{
  overflow-x: hidden;
  scroll-padding-top: 150px;
  body{overflow-x: hidden;}
}

/*animation 無限ループ*/
.infinate{animation-iteration-count:var(--animation-time-infinate) !important;}

/*グラデテキスト*/
.gradient_text_pink h2{
background: linear-gradient(90deg, rgba(149,0,255,1) 0%, rgba(255,23,90,1) 48%, rgba(255,121,162,1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color:inherit !important;
}

.gradient_text_yellow h2{
background: linear-gradient(144deg, rgba(255,123,28,1) 4%, rgba(255,236,0,1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color:inherit !important;
}

.gradient_text_blue h5{
background: linear-gradient(144deg, rgba(var(--accent-1-c), 1) 4%, rgba(var(--accent-2-c), 1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color:inherit !important;
}
/*スクロール矢印*/
.scroll_down{
display: inline-block;
  position: absolute;
  right: 40px;
  bottom: 0;
  z-index: 2;
  padding: 10px 10px 110px;
  overflow: hidden;
  color: #000000;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
}

.scroll_down:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 100px;
  background: #000000;
  animation: sdl 2s cubic-bezier(1, 0, 0, 1) var(--animation-time-infinate);
}
@keyframes sdl {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  35% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  35.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  70%, 100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}
/*++++++++++++++++++
アニメーションボーダー
++++++++++++++++++*/

/*ボーダーを付ける要素の定義*/
.border-ani h2{
  position: relative;
  display: inline-block;
}

/*ボーダーデザイン*/
.border-ani:before {
  width: 100%;
  content: "";
  display: block;
  bottom: 0;left: 0;position: absolute;
  background: #E4E4E4;
  height: 1px;
  z-index: 1;
  transform: scaleX(0);
  transform-origin: right top;
  transition: -webkit-transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
  transition: transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
  transition: transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1),-webkit-transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
}

.border-ani:after {
    width: 100%;
    content: "";
    display: block;
    bottom: 0;
    left: 0;
    position: absolute;
    background: #000000;
    height: 1px;
    z-index: 1;
    transform: scaleX(0);
    transform-origin: right top;
    transition: -webkit-transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
    transition: transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
    transition: transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1),-webkit-transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
}

/*ボーダーデザインホバー時*/

.border-ani:hover:before{
transform:scaleX(1);
transform-origin:left top;
transition:transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
transition:transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1),-webkit-transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
}
.border-ani:hover:after{
transform:scaleX(1);
transform-origin:left top;
transition:transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
transition:transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1),-webkit-transform 0.3s cubic-bezier(0.37, 0.16, 0.12, 1);
transition-delay:0.35s
}

/************
矢印リンク
**************/
/*※アイコンに設置*/
.arrow-link .elementor-icon:hover {
    animation: arrow-right 0.5s ease-in-out;
}

/*記事LOOPに設置*/
.arrow-before{
  position: relative;
}
.arrow-before:after{
  content: "\f061";
  font-family: "Font Awesome 5 Free";
  color:#000000;
  z-index:2;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  font-weight:bold;
}

.arrow-before:hover:after{
animation: arrow-right 0.5s ease-in-out;
}


@keyframes arrow-right {
0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
50% {
    opacity: 0;
    transform: translate3d(10px, 0, 0);
}
50.1% {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
}
100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

}

/***********
スライドボタン
***********/
/* ボタン */
.slide-btn{
  a{
    position: relative;
    overflow: hidden;
    transition: ease 0.2s;
    z-index: 1;
    &:before{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
      transform: scale(0, 1) ;
      transform-origin: right top;
      background-color: rgba(var(--accent-1-c), 0.99);
    }
    &:hover::before {
      transform-origin: left top;
      transform: scale(1, 1);
    }
    .elementor-button-text{
      z-index: 99;
    }
    .elementor-button-icon{
      z-index: 99;
    }
  }
  &.two-row-txt-button{
    .elementor-button-icon{
      font-size: 20px;
    }
  }
  &.secound-color{
    a:before{
      background-color: rgba(255, 255, 255, 1);
    }
  }
}


/* アニメーションの定義 */
@keyframes floatFade {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    transform: translateY(-10px);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px);
    opacity: 1;
  }
  75% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}


/**********************
フロートボックス
**********************/


/* .floating_box に適用するスタイル */
.floating_box {
  /* アニメーションを付与*/
  animation: floatFade 10s ease-in-out var(--animation-time-infinate);
  opacity: 0;
}

/* 1番目 */
.floating_box:nth-of-type(1) {
  animation-delay: 0s;
}
/* 2番目 */
.floating_box:nth-of-type(2) {
  animation-delay: 1s;
}
/* 3番目 */
.floating_box:nth-of-type(3) {
  animation-delay: 2s;
}
/* 4番目 */
.floating_box:nth-of-type(4) {
  animation-delay: 3s;
}



/**********************
円形ボックス
**********************/


.circle_box {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 100px;   /* 小さな円のサイズ */
  height: 100px;
  border-radius: 100% !important;
  transform-origin: center;
  text-align: center;
  font-weight: bold;
  opacity: 1;
/* フェードインのアニメーション
  animation: fadeIn 5s 2 ease forwards;*/
}

/* フェードイン用のキーフレーム */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/*
  周囲の円を回転 + 平行移動して配置
  rotate(角度) translate(半径) rotate(-角度) で
  円周上に整列させる
*/

.ring-circle-1 {
  transform: translate(-50%, -50%) rotate(0deg) translate(200px) rotate(0deg);
  /*animation-delay: 0s;*/
}

.ring-circle-2 {
  transform: translate(-50%, -50%) rotate(46deg) translate(200px) rotate(-46deg);
  /*animation-delay: 0.2s;*/
}

.ring-circle-3 {
  transform: translate(-50%, -50%) rotate(90deg) translate(200px) rotate(-90deg);
  /*animation-delay: 0.4s;*/
}

.ring-circle-4 {
  transform: translate(-50%, -50%) rotate(136deg) translate(200px) rotate(-136deg);
  /*animation-delay: 0.6s;*/
}

.ring-circle-5 {
  transform: translate(-50%, -50%) rotate(180deg) translate(200px) rotate(-180deg);
  /*animation-delay: 0.8s;*/
}

.ring-circle-6 {
  transform: translate(-50%, -50%) rotate(226deg) translate(200px) rotate(-226deg);
  /*animation-delay: 1.0s;*/
}

.ring-circle-7 {
  transform: translate(-50%, -50%) rotate(270deg) translate(200px) rotate(-270deg);
  /*animation-delay: 1.2s;*/
}

.ring-circle-8 {
  transform: translate(-50%, -50%) rotate(316deg) translate(200px) rotate(-316deg);
  /*animation-delay: 1.4s;*/
}





/**********************
円形グラデーション
**********************/

.circle-gradient {
  position: relative;
  height: 600px;
  overflow: hidden;
}

/* 放射状グラデーションを背景に持つ擬似要素 */
.circle-gradient:before {
  content:""!important;
  position: absolute;
  border-radius: 100%;
  background: radial-gradient(
    circle,
    /* 中心に近い色   */ #7EC3D4 0%, #7EC3D4 10%,
    /* 中間の色       */ #D6EBF1 10%, #D6EBF1 30%,
    /* 外側に近い色   */ #EFF7F9 30% ,#EFF7F9 60%,
    /* 外側          */ #ffffff 60%

  );
  /* 初期状態は少し縮小＆半透明 */
  /*transform: scale(0.7);
  transform-origin: center;
  opacity: 0.7;*/
  /* アニメーション設定
  animation: radialExpand 3s ease-in-out var(--animation-time-infinate) alternate;*/
}

/* スケールアップしながら不透明度も変化させる
@keyframes radialExpand {
  0% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
*/

/**********************
マーカーを引く
**********************/
.marker {
  /* マーカーを引く
  rgba(255, 153, 0,0.5) の部分はマーカーの色を指定しています。
　実装される際は、お好きな色、透明度をお入れ下さい。 */
  background:linear-gradient(transparent 50%, rgba(var(--accent-2-c), 1) 50%); /* マーカーを引く */
  /* インライン属性を指定する */
  display: inline;
  /* 背景の繰り返しを停止 */
  background-repeat: no-repeat;
  /* マーカーの横方向を0にして縮める */
  background-size: 0% 100%;
  /* マーカーが引かれる速度を指定 */
  transition:background-size 1.5s;
}
/* マーカーが引かれる際に付与するクラス */
.marker.anime_on {
  /* 横方向を100%にして、マーカーを引く */
  background-size: 100% 100%;
}

.mask-bg{
  h2{
    color: transparent !important;
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    overflow: hidden;
    position: relative;
    transition: color 0ms 450ms;
    &:after{
      background: rgba(255,255,255,1);
      bottom: 0;
      content: '';
      display: block;
      left: 0;
      position: absolute;
      right: 0;
      top: 0;
      transform: translate(0, 100%);
      border-radius:10px;
    }
  }
  span{
    color: rgba(var(--accent-1-c), 0) !important;
    transition: color 0ms 450ms;
  }
  &.anime_on{
    h2 {
      color: initial !important;
      &:after{
        animation: mask-bg 1.2s cubic-bezier(0.8, 0, 0.170, 1);  border-radius:10px;
      }
    }
    span{color: rgba(var(--accent-1-c), 1) !important;}
  }
}

@keyframes mask-bg {
  0% {
    transform: translate(-99%,0);
    background: rgba(245,245,245,1);
  }
  40%, 60% {
    transform: translate(0, 0%);
    background: rgba(251,251,251,0.99);
  }
  100% {
    transform: translate(100%,0);
  }
}
