/* ツール専用スタイル */
:root {
    --primary-color: #6366f1;
    --accent-color: #8b5cf6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --hover-bg: #f8fafc;
    --primary-hover: #4f46e5;
    --surface-color: #f1f5f9;
    --transition: all 0.3s ease;
}

/* ナビゲーションバーのリセット */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    margin-top: 90px; /* ナビゲーションバーの高さ(70px) + 余白(20px) */
}

.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tools-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tool-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

.tool-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon::before {
    opacity: 0.2;
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-link:hover::before {
    left: 100%;
}

.tool-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* ナビゲーションロゴのリンクスタイル */
.nav-logo h2 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo h2 a:hover {
    color: var(--primary-hover);
}

/* アクティブナビゲーションリンク */
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--surface-color);
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tools-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .tools-header h1 {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tools-header h1 {
        font-size: 2rem;
    }
    
    .tools-header .subtitle {
        font-size: 1rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .tool-card h3 {
        font-size: 1.3rem;
    }
    
    .tool-link {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}