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

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

html {
  font-size: 62.5%;
}

body {
  line-height: 1.6;
  font-size: 10px;
  font-size: 1.0rem;
  -webkit-text-size-adjust: 100%;
  color: #111;
  margin: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {
  display: block;
}

ul, li {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

input, select {
  vertical-align: middle;
}

.cf:after {
  content: " ";
  display: block;
  clear: both;
}

img {
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}

div#iine_wrap {
  position: relative;
  text-align: center;
}

/* お礼メッセージを上にポップアップする場合ここから */
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: 0;
    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: 0;
    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%;
}

div#iine_wrap.checked div#iine_thanks {
  display: block;
  opacity: 1;
  z-index: 100;
}

button#iine {
	height: 30px;
    border: none;
    background: transparent;
}

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

button#iine:focus {
  outline: none;
}

button#iine .iine_wrap .heart {
  font-size: 35px;
  transition: transform .3s;
}

@media screen and (min-width: 1025px) {
	button#iine:hover .iine_wrap .heart {
	  transform: scale(1.1);
	}
}

/*
button#iine .iine_wrap span {
    position: absolute;
    left: 44px;
    font-size: 14px;
    font-weight: bold;
    word-break: keep-all;
}
*/

div#iine_wrap.checked button#iine .iine_wrap .heart {
  animation-name: heart;
  animation-duration: .6s;
  animation-fill-mode: none;
}
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 .heart,
div#iine_wrap.alreadychecked .iine_wrap span {
  color: #fb0023 !important;
}
*/

div#iine_wrap .iine_wrap .heart {
  display: block;
  background: url(https://www.barclay-store.jp/new_theme/img/common/icon_favorite.svg) center center no-repeat;
  background-size: 100% auto;
  width: 24px;
  height: 20px;
}

div#iine_wrap.checked .iine_wrap .heart,
div#iine_wrap.alreadychecked .iine_wrap .heart {
  background: url(https://www.barclay-store.jp/new_theme/img/common/icon_favorite_on.svg) center center no-repeat;
  background-size: 100% auto;
}

button#iine .iine_wrap span#countnum {
  font-size: 18px;
  padding-left: 10px;
  color: #9A193B!important;
}

@media screen and (max-width: 1240px) {
	button#iine {
	  height: calc(30 / 1240 * 100vw);
	}
	
	div#iine_wrap .iine_wrap .heart {
	  width: calc(24 / 1240 * 100vw);
	  height: calc(20 / 1240 * 100vw);
	}
	
	button#iine .iine_wrap span#countnum {
	  font-size: calc(18 / 1240 * 100vw);
	  padding-left: calc(10 / 1240 * 100vw);
	}
}

@media screen and (max-width: 768px) {
	button#iine {
	  height: calc(60 / 768 * 100vw);
	}
	div#iine_wrap .iine_wrap .heart {
	  width: calc(48 / 768 * 100vw);
	  height: calc(40 / 768 * 100vw);
	}
	div#iine_wrap.checked button#iine .iine_wrap .heart {
	  animation-name: heart-sp;
	  animation-duration: .6s;
	  animation-fill-mode: forwards;
	}
	button#iine .iine_wrap span#countnum {
	  font-size: calc(28 / 768 * 100vw);
	  padding-left: calc(20 / 768 * 100vw);
	}
}

button#iine .iine_wrap .circle {
  width: 85px;
  height: 85px;
  border: 1px solid #fb0023;
  border-radius: 50%;
  transform: scale(0);
  position: absolute;
}

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

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

@keyframes heart {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes heart-sp {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes circle {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

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

@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;
  }
}
