* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background: #fef9f3;
    color: #4a4a4a;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    opacity: 0.95;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.tool-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.tool-status {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.tool-status.new {
    background: #fff3e0;
    color: #e65100;
}

/* テンプレ用（ai-templates配下で使用） */
.template-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.template-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.template-text {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.template-text pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95rem;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ff9a56;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #ff6b6b;
}

.copy-btn.copied {
    background: #4caf50;
}

.tool-promo {
    background: #fff8e1;
    border-left: 4px solid #ff9a56;
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
}

.tool-promo a {
    color: #e65100;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.85rem;
}

footer a {
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}
