/* コラムページ共通スタイル */

/* コラム一覧ページ */
.column-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    justify-content: center;
}

.category-tag {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #f8f9fa;
    border-color: #000;
}

.category-tag.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.column-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.column-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.column-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.column-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.column-thumbnail img,
.column-thumbnail svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.column-thumbnail > div {
    width: 100%;
    height: 100%;
    display: block;
}

.column-card:hover .column-thumbnail img,
.column-card:hover .column-thumbnail svg {
    transform: scale(1.05);
}

.column-thumbnail .column-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.column-content {
    padding: 24px;
}

.column-date {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.column-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #222;
}

.column-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    color: #999;
    font-size: 12px;
}

.column-pagination {
    text-align: center;
    margin: 48px 0;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.column-cta {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    margin-top: 64px;
}

.column-cta h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #222;
}

.column-cta p {
    color: #666;
    margin-bottom: 32px;
}

/* コラム詳細ページ */
.column-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}

.column-header {
    margin-bottom: 48px;
}

.column-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.column-meta-top .column-category {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.column-detail .column-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #222;
}

.column-lead {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 目次 */
.column-toc {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 48px;
}

.column-toc h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #222;
}

.column-toc ol {
    padding-left: 24px;
}

.column-toc li {
    margin-bottom: 8px;
}

.column-toc a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.column-toc a:hover {
    color: #000;
    text-decoration: underline;
}

/* 本文 */
.column-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.column-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #222;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}

.column-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #333;
}

.column-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #444;
}

.column-body p {
    margin-bottom: 20px;
}

.column-body ul,
.column-body ol {
    margin: 20px 0;
    padding-left: 32px;
}

.column-body li {
    margin-bottom: 8px;
}

/* ハイライトボックス */
.column-highlight {
    background: #fffbf0;
    border-left: 4px solid #ffa500;
    padding: 24px;
    margin: 32px 0;
    border-radius: 4px;
}

/* 警告ボックス */
.column-warning {
    background: #fff5f5;
    border-left: 4px solid #ff4444;
    padding: 24px;
    margin: 32px 0;
    border-radius: 4px;
}

/* 事例ボックス */
.column-case {
    background: #f0f8ff;
    border-left: 4px solid #0066cc;
    padding: 24px;
    margin: 32px 0;
    border-radius: 4px;
}

/* チェックリスト */
.column-checklist {
    background: #f0fff0;
    border-left: 4px solid #00cc00;
    padding: 24px;
    margin: 32px 0;
    border-radius: 4px;
}

/* まとめボックス */
.column-summary {
    background: #f8f9fa;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 32px;
    margin: 48px 0;
}

/* CTAボックス */
.column-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 48px;
    border-radius: 12px;
    text-align: center;
    margin: 64px 0;
}

.column-cta-box h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}

.column-cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.column-cta-box .btn {
    background: #fff;
    color: #667eea;
    padding: 16px 48px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.column-cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* 関連記事 */
.related-columns {
    margin: 64px 0;
}

.related-columns h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #222;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-item {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.related-category {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
}

.related-item h4 {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

/* フッター */
.column-footer {
    text-align: center;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .column-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .column-thumbnail {
        height: 180px;
    }
    
    .column-thumbnail svg {
        width: 100%;
        height: 100%;
        min-height: 180px;
        object-fit: cover;
    }
    
    .column-thumbnail > div {
        width: 100%;
        height: 100%;
        min-height: 180px;
    }
    
    .column-thumbnail .column-category {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .column-detail {
        padding: 32px 16px;
    }

    .column-detail .column-title {
        font-size: 24px;
    }

    .column-lead {
        font-size: 16px;
        padding: 16px;
    }

    .column-body h2 {
        font-size: 22px;
        margin: 32px 0 16px;
    }

    .column-body h3 {
        font-size: 18px;
    }

    .column-cta-box {
        padding: 32px 20px;
    }

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