/* ============================================================
   ANIMATIONS CSS
   ============================================================ */

/* ---- ヘッダー（フロートイン） ---- */
@keyframes headerIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.site-header {
    animation: headerIn 0.5s ease both;
}

/* ---- パルス（スクロールインジケーター用） ---- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ---- フェードイン ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- スライドアップ ---- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- スライドダウン ---- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- スケールイン ---- */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---- ローティング（ローダー用） ---- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- 浮遊（ヒーロー背景サークル） ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

.hero-bg__circle--1 {
    animation: float 8s ease-in-out infinite;
}

.hero-bg__circle--2 {
    animation: float 11s ease-in-out infinite reverse;
}

/* ---- グリッドドット グロー（Hero）---- */
.hero-bg__dot-grid {
    animation: fadeIn 1s 0.8s ease both;
}

/* ---- サービスカード ホバー シャイン ---- */
.service-card {
    isolation: isolate;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255,255,255,0.04) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.service-card:hover::before {
    transform: translateX(100%);
}

/* ---- Strength Card 左ボーダー グロー ---- */
.strength-card {
    position: relative;
}

.strength-card::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-orange);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-base);
    border-radius: 0 0 0 var(--radius-sm);
}

.strength-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

/* ---- Voice Card Quote マーク ---- */
.voice-card::before {
    content: '\201C';
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--color-orange);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
}

.voice-card { position: relative; }

/* ---- ボタン リップルエフェクト ---- */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ---- ページ読み込みアニメーション（初回） ---- */
.kv-catchcopy__en  { animation: slideUp 0.7s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.kv-catchcopy__main { animation: slideUp 0.8s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.kv-catchcopy__sub  { animation: slideUp 0.7s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.kv-catchcopy__actions { animation: fadeIn 0.7s 0.9s ease both; }

/* ---- フッターCTA グロー ---- */
.footer-cta .btn--primary {
    position: relative;
}

.footer-cta .btn--primary::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    filter: blur(8px);
}

.footer-cta .btn--primary:hover::before {
    opacity: 0.6;
}

/* ---- スクロールインジケーター ライン アニメーション ---- */
.kv-scroll-indicator__line {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.7) 50%,
        transparent
    );
    background-size: 100% 200%;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0 200%; }
}
