/*                shiny
======================================================= */

._shiny_main {
  display: block;
  position: relative;
  overflow: hidden;
  transition: 300ms;
}

._shiny_main::before {
  position: absolute;
  content: '';
  display: inline-block;
  top: -180px;
  left: -150px;
  width: 30px;
  height: 100%;
  background-color: #ff8c8c;
  transition: 300ms;
  animation: shinymain 3s linear infinite; /* 3秒間隔で繰り返し */
}

._shiny_main.light:hover::before,
._shiny_main.light:hover:after {
  content: none;
}

@media screen and (max-width: 900px) {
  .contact_btn a._shiny_main::before {
    top: -200px;
    left: -320px;
  }
}

@-webkit-keyframes shinymain {
  /* 0秒から3秒間はopacity: 0 */
  0% {
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  82.67% { /* 2秒 (66.67% = 2/3秒) */
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  
  /* 2秒から3秒間はアニメーション */
  82.68% { /* アニメーション開始 */
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  88.33% { /* アニメーションの中間 */
    -webkit-transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% { /* 最終位置 */
    -webkit-transform: scale(65) rotate(45deg);
    opacity: 0;
  }
}


._shiny {
  display: block;
  position: relative;
  overflow: hidden;
  transition: 300ms;
}

._shiny::before {
  position: absolute;
  content: '';
  display: inline-block;
  top: -180px;
  left: -150px;
  width: 30px;
  height: 100%;
  background-color: #ff8c8c;
  transition: 300ms;
  animation: shinyshiny 3s linear infinite; /* 3秒間隔で繰り返し */
}

._shiny.light:hover::before,
._shiny.light:hover:after {
  content: none;
}

@media screen and (max-width: 900px) {
  .floating-link a::before {
    border: none;
  }
  .floating-link ._shiny::before {
    position: absolute;
    content: '';
    display: inline-block;
    top: 50;
    left: -250px;
    width: 30px;
    height: 100%;
    background-color: #ff8c8c;
    transition: 300ms;
    animation: shinyshiny 3s linear infinite; /* モバイル向けも同じ間隔 */
    margin: 0;
    border: none;
    right: inherit;
    transform: initial;
  }
}

@-webkit-keyframes shinyshiny {
  /* 0秒から3秒間はopacity: 0 */
  0% {
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  66.67% { /* 2秒 (66.67% = 2/3秒) */
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  
  /* 2秒から3秒間はアニメーション */
  66.68% { /* アニメーション開始 */
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  83.33% { /* アニメーションの中間 */
    -webkit-transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% { /* 最終位置 */
    -webkit-transform: scale(65) rotate(45deg);
    opacity: 0;
  }
}