@charset "utf-8";

.sns-share {
  text-align: center; /* テキストを中央揃え */
  color: gray; /* テキストの色を白に */
  font-size: 18px; /* フォントサイズを大きく */
  padding: 0; /* 内側の余白を追加 */
  margin: 0; /* 上下にマージンを追加 */
}

.sns-share p {
  margin: 0; /* パラグラフのデフォルトのマージンを削除 */
}

/*SNSシェア*/
.sns-button {
  display: flex;
  justify-content: center; /* ボタンを中央寄せに */
  align-items: center; /* ボタンの垂直方向の中央揃え */
  margin: 0; /* 不要なマージンを削除 */
  padding: 0; /* 不要なパディングを削除 */
}

.sns-button button {
  border: none; /* 不要な枠線を削除 */
  cursor: pointer; /* ポインタが変わるように */
  transition: transform 0.2s, box-shadow 0.2s; /* ホバー時のアニメーション */
  background-color: transparent; /* ボタンの背景を透明に */
  position: relative; /* ボタン内での相対位置指定 ツールチップのスタイル */
}

#downloadBtn img {
  width: 100px; /* 長方形の幅 */
  height: 30px; /* 長方形の高さ */
  display: block; /* インライン要素の隙間を排除 */
}

#shareTwitter img,
#shareWhatsApp img,
#shareFacebook img,
#shareLinkedIn img {
  width: 20px; /* 正方形の幅 */
  height: 20px; /* 正方形の高さ */
  object-fit: contain; /* 画像の比率を維持しながらサイズを調整 */
  display: block; /* インライン要素の隙間を排除 */
}

.sns-button button:hover {
  transform: scale(1.09); /* ホバー時に少し拡大 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ホバー時に影を追加 */
}

/* ツールチップのスタイル */
.sns-button button::after {
  content: attr(title); /* title属性の内容をツールチップとして表示 */
  position: absolute;
  bottom: 100%; /* ボタンの上に表示 */
  left: 50%; /* ボタンの中央に配置 */
  transform: translateX(-50%); /* 中央揃え */
  background-color: rgba(0, 0, 0, 0.7); /* 背景色 */
  color: #fff; /* 文字色 */
  padding: 5px 10px; /* 内側の余白 */
  border-radius: 5px; /* 角を丸く */
  white-space: nowrap; /* テキストが改行されないように */
  opacity: 0; /* 初期状態は透明 */
  transition: opacity 0.3s; /* フェードインのアニメーション */
  pointer-events: none; /* ツールチップがクリックを受け取らないように */
}

/* ホバー時にツールチップを表示 */
.sns-button button:hover::after {
  opacity: 1; /* ホバー時に表示 */
}


/* レスポンシブスタイル */
@media (max-width: 768px) {
  #downloadBtn img {
      width: 60px; /* スマホ用の幅 */
      height: auto; /* 高さは自動 */
  }

  #shareTwitter img,
  #shareWhatsApp img,
  #shareFacebook img,
  #shareLinkedIn img {
      width: 20px; /* スマホ用の幅 */
      height: 30px; /* スマホ用の高さ */
  }
}
