/**
 * SNSリンク表示改善のためのスタイル
 */

/* SNSリンク全体のコンテナ */
.celebrity-sns-links {
  margin: 35px 0;
  padding: 25px;
  background-color: #fafafa;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* SNSセクションのタイトル */
.celebrity-sns-links .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.03em;
}

.celebrity-sns-links .section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #eaeaea;
}

/* SNSリンクのコンテナ */
.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* アイコン間の余白を均等に */
  padding: 10px 0;
}

/* 個別のSNSリンク */
.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  color: #555;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* SNSリンクのホバー効果 */
.sns-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* SNS種類別のスタイル */
.sns-link.youtube {
  color: #ffffff;
  border-color: rgba(255, 0, 0, 0.2);
}

.sns-link.youtube:hover {
  background-color: #FF0000;
  color: white;
  border-color: #FF0000;
}

.sns-link.twitter {
  color: #1DA1F2;
  border-color: rgba(29, 161, 242, 0.2);
}

.sns-link.twitter:hover {
  background-color: #1DA1F2;
  color: white;
  border-color: #1DA1F2;
}

.sns-link.instagram {
  color: #ffffff;
  border-color: rgba(228, 64, 95, 0.2);
}

.sns-link.instagram:hover {
  background-color: #E4405F;
  color: white;
  border-color: #E4405F;
}

/* SNSアイコン */
.sns-link svg {
  width: 26px;
  height: 26px;
  transition: all 0.3s ease;
}

/* アイコンの初期色 */
.sns-link.youtube svg {
  stroke: #ffffff;
}

.sns-link.twitter svg {
  stroke: #ffffff;
}

.sns-link.instagram svg {
  stroke: #ffffff;
}

/* アイコンのホバー効果 */
.sns-link:hover svg {
  stroke: white;
}

/* ツールチップのスタイル */
.sns-link::before {
  content: attr(title);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sns-link::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg) scale(0.9);
  width: 8px;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sns-link:hover::before,
.sns-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.sns-link:hover::after {
  transform: translateX(-50%) rotate(45deg) scale(1);
}

/* スクリーンリーダー用テキスト */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .celebrity-sns-links {
    padding: 20px;
    margin: 25px 0;
  }

  .sns-links {
    gap: 15px;
  }
  
  .sns-link {
    width: 50px;
    height: 50px;
  }
  
  .sns-link svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .celebrity-sns-links {
    padding: 15px;
    margin: 20px 0;
  }

  .sns-links {
    gap: 12px;
    justify-content: center;
  }
  
  .sns-link {
    width: 45px;
    height: 45px;
  }
  
  .sns-link svg {
    width: 20px;
    height: 20px;
  }

  .celebrity-sns-links .section-title {
    display: block;
    text-align: center;
    margin-bottom: 15px;
  }

  .celebrity-sns-links .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
}
