﻿/* ツール置き場ページ */
.tools-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, rgba(101,67,33,0.15) 0%, rgba(139,69,19,0.1) 25%, rgba(160,82,45,0.12) 50%, rgba(210,180,140,0.08) 75%, rgba(222,184,135,0.05) 100%);
    position: relative;
    overflow: hidden;
}

    .tools-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 25% 25%, rgba(139,69,19,0.03) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(160,82,45,0.04) 0%, transparent 50%), linear-gradient(45deg, rgba(101,67,33,0.02) 25%, transparent 25%), linear-gradient(-45deg, rgba(139,69,19,0.02) 25%, transparent 25%);
        background-size: 200px 200px, 150px 150px, 50px 50px, 50px 50px;
        z-index: 0;
        pointer-events: none;
    }

.page-header, .tools-grid {
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .page-header h1 {
        font-size: 1.5rem;
        color: rgba(255,248,220,0.9);
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(101,67,33,0.15);
    }

        .page-header h1 i {
            margin-right: 1rem;
            color: #A0522D;
            animation: toolIconFloat 3s ease-in-out infinite;
        }

    .page-header p {
        font-size: 1.2rem;
        color: #8B4513;
        margin-bottom: 2rem;
    }

/* グリッド/カード */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: linear-gradient(135deg, rgba(245,222,179,0.95), rgba(255,248,220,0.9), rgba(238,203,173,0.92));
    border: 2px solid rgba(139,69,19,0.25);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(101,67,33,0.2), inset 0 1px 2px rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

    .tool-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #8B4513, #A0522D, #CD853F);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .tool-card:hover::before {
        transform: scaleX(1);
    }

    .tool-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(101,67,33,0.3), inset 0 1px 2px rgba(255,255,255,0.4);
        border-color: rgba(139,69,19,0.4);
        background: linear-gradient(135deg, rgba(245,222,179,0.98), rgba(255,248,220,0.95), rgba(238,203,173,0.97));
    }

    /* バリエーション */
    .tool-card.featured {
        background: linear-gradient(135deg, rgba(218,165,32,0.15), rgba(245,222,179,0.95), rgba(255,248,220,0.9));
        border-color: rgba(184,134,11,0.35);
    }

        .tool-card.featured::before {
            background: linear-gradient(90deg, #B8860B, #DAA520, #F4A460);
        }

    .tool-card.experimental {
        background: linear-gradient(135deg, rgba(128,70,27,0.12), rgba(245,222,179,0.95), rgba(255,248,220,0.9));
        border-color: rgba(101,67,33,0.35);
    }

        .tool-card.experimental::before {
            background: linear-gradient(90deg, #65431B, #8B4513, #A0522D);
        }

    .tool-card.coming-soon {
        background: linear-gradient(135deg, rgba(160,82,45,0.08), rgba(245,222,179,0.9), rgba(255,248,220,0.85));
        border-color: rgba(139,69,19,0.25);
        opacity: 0.85;
    }

        .tool-card.coming-soon::before {
            background: linear-gradient(90deg, #8B4513, #A0522D, #BC8F8F);
        }

/* ヘッダー/本文 */
.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

    .tool-header i {
        font-size: 1.8rem;
        margin-right: 1rem;
        color: #8B4513;
        transition: all 0.3s ease;
    }

.tool-card:hover .tool-header i {
    transform: scale(1.1) rotate(5deg);
}

.tool-header h3 {
    color: #5C4033;
    font-size: 1.4rem;
    margin: 0;
    flex-grow: 1;
}

.tool-description {
    color: #654321;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* タグ */
.feature {
    background: rgba(255,255,255,0.9);
    color: #8B4513;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(139,69,19,0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

    .feature:hover {
        background: #fff;
        transform: scale(1.05);
    }

.tool-tag {
    background: #8B4513;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .tool-tag.new {
        background: linear-gradient(45deg, #CD853F, #DAA520);
        animation: tagPulse 2s ease-in-out infinite;
    }

    .tool-tag.experimental {
        background: linear-gradient(45deg, #654321, #8B4513);
    }

    .tool-tag.coming-soon {
        background: #A0522D;
    }

/* アニメーション */
@keyframes toolIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(255,107,107,0.5);
    }
}
