﻿/* アニメーション定義 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ユーティリティクラス（アニメーション） */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 背景装飾 */
.accent-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}
.accent-circle-1 { width: 400px; height: 400px; top: 10%; left: -200px; }
.accent-circle-2 { width: 300px; height: 300px; top: 50%; right: -150px; animation-delay: 7s; }
.accent-circle-3 { width: 250px; height: 250px; bottom: 10%; left: 30%; animation-delay: 14s; }

/* コンポーネント: ヘッダー装飾 */
.header-accent-line {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #374151, transparent);
    opacity: 0.5;
}
.header-accent-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shimmer 3s infinite;
}

.subtitle-accent {
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.3) 20%, rgba(55,65,81,0.5) 50%, rgba(59,130,246,0.3) 80%, transparent 100%);
}

.section-accent {
    position: absolute;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(55,65,81,0.3), transparent);
    border-radius: 2px;
}

/* コンポーネント: ツールカード */
.tool-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.015);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    background: #fff;
}

/* カードの角（装飾） */
.card-corner-accent {
    position: absolute;
    width: 20px; height: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.tool-card:hover .card-corner-accent { opacity: 1; }

.card-corner-accent::before, .card-corner-accent::after {
    content: ''; position: absolute; background: rgba(59, 130, 246, 0.2);
}
.card-corner-accent.top-left { top: -1px; left: -1px; }
.card-corner-accent.top-left::before { top: 0; left: 0; width: 100%; height: 1px; }
.card-corner-accent.top-left::after { top: 0; left: 0; width: 1px; height: 100%; }
.card-corner-accent.top-right { top: -1px; right: -1px; }
.card-corner-accent.top-right::before { top: 0; right: 0; width: 100%; height: 1px; }
.card-corner-accent.top-right::after { top: 0; right: 0; width: 1px; height: 100%; }

/* コンポーネント: アクションボタン */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: #374151;
    color: white;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.action-button:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.2);
}
/* クリック時の波紋エフェクト */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* コンポーネント: ナビゲーション */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.nav-link { position: relative; }
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: #374151; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* その他装飾要素 */
.vertical-accent-line {
    width: 3px; height: 18px;
    background: linear-gradient(to bottom, rgba(156,163,175,0.8), rgba(75,85,99,0.9) 50%, rgba(156,163,175,0.8));
    border-radius: 2px;
    flex-shrink: 0;
}
.feature-item {
    background: rgba(249, 250, 251, 0.6);
    border-radius: 8px;
    padding: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.tool-card:hover .feature-item {
    background: rgba(249, 250, 251, 0.8);
    transform: translateX(3px);
}

.announcement-banner {
    background: linear-gradient(135deg, rgba(219,234,254,0.5), rgba(224,231,255,0.5) 50%, rgba(219,234,254,0.5));
    border-bottom: 1px solid rgba(147,197,253,0.3);
}

.feature-icon-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.group:hover .feature-icon-glow { opacity: 1; }

.footer-accent-pattern {
    position: absolute; top: 0; left: 0; right: 0; height: 100px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(59,130,246,0.01) 10px, rgba(59,130,246,0.01) 20px);
    opacity: 0.5;
}

.social-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: #f3f4f6; color: #374151; font-size: 0.875rem; font-weight: 500;
    transition: all 0.2s ease;
}
.social-btn:hover { background: #e5e7eb; transform: scale(1.05); }

.mobile-link {
    display: block; padding: 0.75rem 0.5rem;
    color: #4b5563; font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}
.mobile-link:hover { background: #f3f4f6; padding-left: 0.75rem; color: #111827; }

@media (max-width: 640px) {
    .card-corner-accent { display: none; }
}