/* ===== カスタムアニメーション ===== */

/* スクロールフェードイン */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up:nth-child(2) { transition-delay: 0.15s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.45s; }

/* ヘッダー スクロール追従 */
.l-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.l-header.is-scrolled {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(253, 253, 253, 0.95) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ヘッダー出現アニメーション */
@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.l-header.is-scrolled {
  animation: headerSlideDown 0.3s ease forwards;
}

/* ボタン ホバーエフェクト */
.wp-block-buttons .wp-block-button__link,
.is-style-btn_normal a,
.is-style-btn_solid a,
.is-style-btn_shiny a,
a.wp-block-button__link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}
.wp-block-buttons .wp-block-button__link:hover,
.is-style-btn_normal a:hover,
.is-style-btn_solid a:hover,
a.wp-block-button__link:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 195, 255, 0.35) !important;
  opacity: 0.92 !important;
}

/* テキストリンク ホバー */
.post_content a:not(.wp-block-button__link) {
  transition: color 0.2s ease;
}

/* 吹き出し・ボックス ホバー */
.c-balloon {
  transition: transform 0.25s ease;
}
.c-balloon:hover {
  transform: translateY(-2px);
}

/* プロフィール画像 ふわり登場 */
.p-profileBox__icon img,
.c-balloon__icon img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.p-profileBox__icon img:hover,
.c-balloon__icon img:hover {
  transform: scale(1.05);
}

/* セクション区切り線アニメーション */
.swell-block-fullWide {
  overflow: hidden;
}

/* フッター SNSアイコン */
.c-iconList__link {
  transition: transform 0.2s ease, color 0.2s ease !important;
}
.c-iconList__link:hover {
  transform: scale(1.2) !important;
}

/* ナビゲーション ホバー下線アニメーション */
.c-gnav > li > a {
  position: relative;
}
.c-gnav > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color_main);
  transition: width 0.25s ease;
}
.c-gnav > li > a:hover::after {
  width: 100%;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}
