/* Noto Sans JP ローカルフォント */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/advertiser/assets/fonts/NotoSansJP-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/advertiser/assets/fonts/NotoSansJP-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/advertiser/assets/fonts/NotoSansJP-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/advertiser/assets/fonts/NotoSansJP-Black.ttf') format('truetype');
}

/* シャインアニメーション（ボタン上を光が走る） */
@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

/* アニメーション定義 */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* 浮遊アニメーション（小） */
.animate-float-small {
  animation: float 4s ease-in-out infinite;
}

/* スクロールアニメーション用 */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スケールアニメーション用 */
.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* 横スライドアニメーション用（右から左） */
.scroll-animate-slide-left {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 横スライドアニメーション用（左から右） */
.scroll-animate-slide-right {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ページロード時のアニメーション */
.fade-in-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpLoad 0.6s ease-out forwards;
}

@keyframes fadeInUpLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダースライドイン */
.header-slide-in {
  animation: slideInFromTop 0.5s ease-out forwards;
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}

/* グラデーション下線アニメーション */
.animated-gradient-underline {
  background: linear-gradient(to right, #8b5cf6, #6366f1, #8b5cf6);
  background-size: 200% auto;
  animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 脈打つ境界線 */
.pulse-border {
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* 左からスライドイン（ページロード時） */
.slide-in-left {
  animation: slideInLeft 2s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Noto Sans JP フォント */
.font-noto-sans {
  font-family: "Noto Sans JP", "游ゴシック体", "Yu Gothic", sans-serif;
}

/* 流体フォントサイズ（画面幅に応じて滑らかに変化） */
.text-fluid-sm { font-size: clamp(0.75rem, 0.4rem + 1vw, 1.25rem); }
.text-fluid-lg { font-size: clamp(1rem, 0.5rem + 1.8vw, 2.25rem); }


/* 月桂樹バッジ（テキストの背景に重ねる） */
.badge-laurel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
}
.badge-laurel-left,
.badge-laurel-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 130%;
  width: auto;
  opacity: 0.8;
  pointer-events: none;
}
.badge-laurel-left { left: -10%; }
.badge-laurel-right { right: -10%; }
.badge-laurel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}
