/* ================================
   カテゴリページ
================================ */

/* ページ全体のスタイル */
.category-archive {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

/* コンテンツラッパー */
.category-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* メインコンテンツ */
.category-main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ページヘッダー */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f3f4;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6c757d;
    margin-top: 15px;
}

/* 番号リストのスタイル */
.posts-numbered-list {
    margin-bottom: 50px;
}

.numbered-list {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 0;
}

.numbered-list .list-item {
    counter-increment: item;
    position: relative;
    padding: 25px 0 25px 70px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.numbered-list .list-item:last-child {
    border-bottom: none;
}

.numbered-list .list-item:hover {
    background-color: #f8f9fa;
    margin: 0 -40px;
    padding-left: 110px;
    padding-right: 40px;
    border-radius: 10px;
}

.numbered-list .list-item::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.list-item:hover .post-title {
    color: #667eea;
}

.post-meta {
    padding-left: 0;
    margin-top: 8px;
}

.post-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    font-size: 0.85rem;
    border-radius: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e3f2fd;
}

.category-tag:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
    text-decoration: none;
}

/* ページネーション */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-wrapper .page-numbers a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination-wrapper .page-numbers .current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 投稿がない場合 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.no-posts p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-posts .button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-posts .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* ================================
   サイドバー
================================ */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.category-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-info-card h3::before {
    content: '💼';
    font-size: 1.3rem;
}

/* サービスリスト */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    transform: translateX(5px);
}

.service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: -1;
}

.service-link:hover {
    color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.service-link:hover::before {
    left: 0;
}

.service-list li i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-link:hover i {
    transform: scale(1.1);
}

/* お問い合わせ方法 */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-method:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.contact-method i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-note {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* ================================
   既存サイドバーの非表示
================================ */
.category-archive .widget-area {
    display: none;
}

/* ================================
   レスポンシブ対応
================================ */
@media (max-width: 1024px) {
    .category-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .category-sidebar {
        order: 1;
    }
}

@media (max-width: 768px) {
    .category-archive {
        padding: 20px 0;
    }
    
    .category-main-content {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .numbered-list .list-item {
        padding: 20px 0 20px 60px;
    }
    
    .numbered-list .list-item:hover {
        margin: 0 -20px;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .numbered-list .list-item::before {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .category-info-card {
        padding: 25px 20px;
    }
    
    /* テーブル形式のレスポンシブ対応 */
    .service-link {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .service-link i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-main-content {
        padding: 25px 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .numbered-list .list-item::before {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .category-info-card {
        padding: 20px 15px;
    }
    
    .contact-method {
        padding: 12px;
        font-size: 0.9rem;
    }
}
