/*ベース*/
body {
  background-color: #fff;
  text-align: center;
  font-family: sans-serif;
}

/*画像*/
img {
  width: 750px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/*メイン*/
.img-with-button {
  position: relative;
  display: inline-block;
  width: 100%;
}

.img-with-button img {
  display: block;
  width: 750px;
  height: auto;
  object-fit: cover;
}

.img-with-button .button-link {
  position: absolute;
  max-width: 750px;
  width: 100%;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.button-link img {
  margin-bottom: 5px;
  
}
.button-link img {
  display: block;
  margin-bottom: 0;
  width: 100%;
  height: auto;
}




.button img {
  background-color: #ECECEC;
  padding: 10px 0 30px 0; /* 任意 */
  border-radius: 4px; /* 任意 */
}
/*フッター*/
footer {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  background-color: #384656;
  padding: 17px 0;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.5;
  font-size: 15px;
  color: #fff;
}

.footer-links li {
  margin: 4px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*スマホ(iPhone SE)用のボタン位置調整*/
@media screen and (max-width: 450px) {
  .img-with-button .button-link {
    bottom: 5px;
    /* スマホではボタンの位置を少し上にずらす調整 */
  }
}





/* ボタンぴこぴこ点滅アニメーション */
/* @keyframes pika-pika {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.button-link img,
.button img {
  animation: pika-pika 1.2s infinite;
} */
/* 
.button-link img {
  animation: pika-pika 1.2s infinite;
} */

@keyframes scale-bounce-loop {
  0%     { transform: scale(1); }
  12.5%  { transform: scale(0.9); }
  25%    { transform: scale(1); }
  37.5%  { transform: scale(0.9); }
  50%    { transform: scale(1); }
  62.5%  { transform: scale(0.9); }
  75%    { transform: scale(1); }
  87.5%  { transform: scale(0.9); }
  100%   { transform: scale(1); }
}

.button-link img {
  animation: scale-bounce-loop 4s ease-in-out infinite;
}



.img-with-button {
  position: relative;
  display: block;
  font-size: 0;
  line-height: 0;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.img-with-button img,
.button-link img {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}
