@charset "UTF-8";

/* -----------------------------------------------------------
個人サイト向けいいねボタンプログラム Ver1.1.1
製作者    ：ガタガタ
サイト    ：https://do.gt-gt.org/
ライセンス：MITライセンス
全文      ：https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_license
公開日    ：2020.08.21
最終更新日：2020.09.15

このプログラムはどなたでも無償で利用・複製・変更・
再配布および複製物を販売することができます。
ただし、上記著作権表示ならびに同意意志を、
このファイルから削除しないでください。
 ----------------------------------------------------------- */

div#iine_wrap {
  position: relative;
}

/* お礼メッセージを上にポップアップする場合ここから */
/* 
div#iine_wrap div#iine_thanks {
    width: 300px;
    max-width: 100%;
    background: white;
    border: 1px solid #efefef;
    border-radius: 10px;
    padding: 10px;
    filter: drop-shadow(0 2px 8px #cccccc7d);
    position: absolute;
    bottom: 140%;
    opacity: 1;
    animation-name: thanks-up;
    animation-duration: .5s;
    animation-fill-mode: both;
}

div#iine_wrap div#iine_thanks:after {
    content: '';
    width: 0px;
    height: 0px;
    border-bottom: 20px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid white;
    position: absolute;
    left: 20px;
}
*/
/* お礼メッセージを上にポップアップする場合ここまで */

/* お礼メッセージを下にポップアップする場合ここから */

div#iine_wrap div#iine_thanks {
    width: 300px;
    max-width: 100%;
    background: white;
    border: 1px solid #efefef;
    border-radius: 10px;
    padding: 10px;
    filter: drop-shadow(0 2px 8px #cccccc7d);
    position: absolute;
    top: 140%;
    opacity: 1;
    animation-name: thanks-down;
    animation-duration: .5s;
    animation-fill-mode: both;
}

div#iine_wrap div#iine_thanks:after {
    content: '';
    width: 0px;
    height: 0px;
    border-top: 20px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid white;
    position: absolute;
    bottom: calc(100% - 1px);
    left: 20px;
}

/* お礼メッセージを下にポップアップする場合ここまで */

div#iine_wrap div#iine_thanks p {
    font-size: 14px;
    margin-bottom: 0;
}

div#iine_wrap div#iine_thanks img {
  max-width: 100%;
}

button#iine {
    border: none;
    background: transparent;
}

button#iine .iine_wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: #949494;
}

button#iine:focus {
  outline: none;
}

button#iine .iine_wrap .star-icon {
  font-size: 50px;
  transition: .3s;
}
button#iine:hover .iine_wrap .star-icon {
  transform: scale(1.2);
}
button#iine .iine_wrap span {
    position: absolute;
    left: 70px;
    font-size: 18px;
    font-weight: bold;
}

div#iine_wrap.checked button#iine .iine_wrap .star-icon {
  animation-name: star;
  animation-duration: 6s;
  animation-fill-mode: forwards;
}
div#iine_wrap.checked button#iine .iine_wrap span {
  animation-name: counter;
  animation-duration: .6s;
  animation-fill-mode: forwards;
}

div#iine_wrap.alreadychecked .iine_wrap .star-icon,
div#iine_wrap.alreadychecked .iine_wrap span {
  color: #ff9c00 !important;
}

.fadeout {
  animation : fadeOut 1s !important;
  animation-fill-mode: both;
}

@keyframes star {
  20% {
    transform: rotate(-15deg) scale(0.8);
    color: inherit;
  }
  74% {
    transform: rotate(400deg) scale(1.2);
  }
  77% {
    transform: rotate(403deg) scale(1.2);
  }
  80% {
    transform: rotate(400deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
    color: #ff9c00;
  }
}

@keyframes counter {
  100% {
    color: #ff9c00;
  }
}

@keyframes thanks-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes thanks-down {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}