:root {
    --primary-color: #7C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #A78BFA;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --text-dark: #1F1F2E;
    --text-gray: #6B7280;
    --bg-light: #F5F3FF;
    --bg-dark: #1F1F2E;
    --white: #FFFFFF;
    --border-color: #DDD6FE;
    --shadow: 0 2px 8px rgba(124, 58, 123, 0.10);
    --shadow-hover: 0 12px 32px rgba(124, 58, 237, 0.22);
    --gradient: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --gradient-hero: linear-gradient(135deg, #2D1B69 0%, #1F1F2E 55%, #0C4A6E 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

/* ヘッダー */
header {
    background: var(--bg-dark);
    box-shadow: 0 2px 16px rgba(124, 58, 237, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: #C4B5FD;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--white);
}

/* ヒーロー */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
    padding: 5rem 1.5rem 4rem;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #A78BFA 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    color: #E9D5FF;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
}

.section-lead {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* ツールカード一覧 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.tool-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tool-card.featured {
    border: 2px solid var(--primary-light);
    background: linear-gradient(180deg, #FBFAFF 0%, #FFFFFF 100%);
}

.tool-card .tool-icon {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
}

.tool-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.tool-card .tool-desc {
    color: var(--text-gray);
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.tool-tags span {
    background: var(--bg-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.tool-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.1s;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: var(--white);
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--bg-light);
}

/* 準備中カード */
.tool-card.coming-soon {
    border-style: dashed;
    border-color: var(--border-color);
    background: #FAFAFB;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-gray);
    min-height: 220px;
}

.tool-card.coming-soon .tool-icon {
    opacity: 0.5;
}

/* フッター */
footer {
    background: var(--bg-dark);
    color: #C4B5FD;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
}

/* レスポンシブ */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .container {
        padding: 2.5rem 1.2rem;
    }
}
