/* 全体のレイアウト */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-600);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

footer {
    background-color: var(--neutral-800);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer .footer-link {
    color: var(--primary-200);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

footer .footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* セクションスタイル */
section {
    margin-bottom: 3rem;
}

section h2 {
    color: var(--primary-700);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
}

.intro {
    background-color: var(--neutral-100);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intro p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--neutral-700);
}

/* カテゴリーフィルター */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-filter {
    background-color: var(--neutral-200);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter:hover:not([disabled]) {
    background-color: var(--primary-100);
}

.category-filter.active {
    background-color: var(--primary-500);
    color: white;
}

.category-filter[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ツールカード */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tool-thumbnail {
    height: 200px;
    overflow: hidden;
}

.tool-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-thumbnail img {
    transform: scale(1.05);
}

.tool-info {
    padding: 1.5rem;
}

.tool-category {
    display: inline-block;
    background-color: var(--primary-100);
    color: var(--primary-700);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.tool-info h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--primary-700);
    font-size: 1.5rem;
    font-weight: bold;
}

.tool-info p {
    margin-bottom: 1rem;
    color: var(--neutral-600);
}

.tool-features {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.tool-features li {
    margin-bottom: 0.5rem;
    color: var(--neutral-700);
}

.tool-link {
    display: inline-block;
    background-color: var(--primary-500);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.tool-link:hover {
    background-color: var(--primary-600);
    text-decoration: none;
    color: #ffffff;
}

/* 近日公開セクション */
.coming-soon {
    background-color: var(--neutral-100);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed var(--primary-300);
}

.coming-soon h2 {
    border-bottom: none;
    margin-bottom: 0.8rem;
}

.coming-soon p {
    color: var(--neutral-600);
    margin: 0;
}

/* 注意書き */
.disclaimer {
    background-color: var(--neutral-100);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.disclaimer h3 {
    margin-top: 0;
    color: var(--warning-dark);
    font-size: 1.2rem;
}

.disclaimer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tools-container {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .category-filters {
        justify-content: center;
    }
}


/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.tool-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.3s;
}
