@charset "utf-8";

/*+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
AI Tools アーカイブページ
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+*/

/* AI Tools Hero Section - 共通スタイルを継承 */
/* paddingは共通クラスで管理 */


/* ベーススタイル */
.ai-tools-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* アーカイブヘッダー */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading-english {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-heading-japanese {
    display: block;
    font-size: 1.2rem;
    color: #666;
}

.archive-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #555;
}

/* カテゴリー見出し */
.category-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 3rem 0 2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2563eb;
    display: inline-block;
}

/* もっと見るボタン */
.category-more {
    text-align: center;
    margin: 2rem 0;
}

.more-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.more-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

/* カードグリッドのレスポンシブ設定 */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    /* スマートフォン用デフォルト: 1列 */
    grid-template-columns: 1fr;
}

/* タブレット用: 2列 */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC用: 3列 */
@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* カードスタイル */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    animation: fadeIn 0.5s ease-out forwards;
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card:hover .card-inner {
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 アスペクト比 */
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #888;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.meta-separator {
    color: #ccc;
}

.meta-author,
.meta-date {
    color: #666;
}

/* タグスタイル */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0;
    justify-content: center;
}

.tag-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn.active {
    background: #2563eb;
    color: white;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 1rem;
    font-size: 1rem;
    color: #4b5563;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .current {
    background: #2563eb;
    color: white;
}

.pagination a:hover {
    background: #f3f4f6;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-heading-english {
        font-size: 2rem;
    }
    
    .section-heading-japanese {
        font-size: 1rem;
    }
    
    .category-heading {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }
    
    .archive-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .more-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .ai-tools-archive {
        padding: 1rem 0.5rem;
    }
    
    .section-heading-english {
        font-size: 1.75rem;
    }
    
    .category-heading {
        font-size: 1.25rem;
    }
    
    .more-link {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
}
