/**
 * 記事カードショートコード用スタイル
 * 記事中に挿入する個別記事カードのデザイン
 */

/* 単体記事カード */
.junchi8-article-card {
    margin: 2rem 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.junchi8-article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.junchi8-card__label {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    border-radius: 12px 12px 0 0;
}

.junchi8-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.junchi8-card__inner {
    display: flex;
    align-items: stretch;
}

.junchi8-card__thumbnail {
    flex-shrink: 0;
    width: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

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

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

.junchi8-card__content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.junchi8-card__category {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.junchi8-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    color: #111827;
    transition: color 0.2s ease;
}

.junchi8-article-card:hover .junchi8-card__title {
    color: #3b82f6;
}

.junchi8-card__excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.junchi8-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.junchi8-card__meta time {
    color: #9ca3af;
}

.junchi8-card__read-more {
    color: #3b82f6;
    font-weight: 500;
    transition: transform 0.2s ease;
    display: inline-block;
}

.junchi8-article-card:hover .junchi8-card__read-more {
    transform: translateX(4px);
}

/* コンパクトスタイル */
.junchi8-card--compact .junchi8-card__inner {
    align-items: center;
}

.junchi8-card--compact .junchi8-card__thumbnail {
    width: 120px;
    height: 120px;
}

.junchi8-card--compact .junchi8-card__content {
    padding: 1rem;
}

.junchi8-card--compact .junchi8-card__title {
    font-size: 1rem;
}

.junchi8-card--compact .junchi8-card__excerpt {
    display: none;
}

/* ハイライトスタイル */
.junchi8-card--highlight {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.junchi8-card--highlight .junchi8-card__label {
    background: #3b82f6;
}

/* 複数記事カード */
.junchi8-article-cards {
    margin: 2rem 0;
}

.junchi8-cards__label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
    border-left: 4px solid #3b82f6;
    padding-left: 0.75rem;
}

.junchi8-cards__container {
    display: grid;
    gap: 1rem;
}

/* グリッドスタイル */
.junchi8-cards--grid .junchi8-cards__container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* リストスタイル */
.junchi8-cards--list .junchi8-cards__container {
    grid-template-columns: 1fr;
}

.junchi8-cards__item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.junchi8-cards__item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.junchi8-cards__link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.junchi8-cards--grid .junchi8-cards__link {
    flex-direction: column;
}

.junchi8-cards--list .junchi8-cards__link {
    flex-direction: row;
}

.junchi8-cards__thumbnail {
    background: #f3f4f6;
    overflow: hidden;
}

.junchi8-cards--grid .junchi8-cards__thumbnail {
    width: 100%;
    height: 160px;
}

.junchi8-cards--list .junchi8-cards__thumbnail {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

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

.junchi8-cards__item:hover .junchi8-cards__thumbnail img {
    transform: scale(1.05);
}

.junchi8-cards__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.junchi8-cards__category {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.junchi8-cards__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: #111827;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.junchi8-cards__item:hover .junchi8-cards__title {
    color: #3b82f6;
}

.junchi8-cards__date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: auto;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .junchi8-card__inner {
        flex-direction: column;
    }
    
    .junchi8-card__thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .junchi8-card--compact .junchi8-card__inner {
        flex-direction: row;
    }
    
    .junchi8-card--compact .junchi8-card__thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .junchi8-cards--grid .junchi8-cards__container {
        grid-template-columns: 1fr;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .junchi8-article-card,
    .junchi8-cards__item {
        background: #1f2937;
        border-color: #374151;
    }
    
    .junchi8-card__title,
    .junchi8-cards__title,
    .junchi8-cards__label {
        color: #f3f4f6;
    }
    
    .junchi8-article-card:hover .junchi8-card__title,
    .junchi8-cards__item:hover .junchi8-cards__title {
        color: #60a5fa;
    }
    
    .junchi8-card__excerpt {
        color: #9ca3af;
    }
    
    .junchi8-card__category,
    .junchi8-cards__category {
        background: #374151;
        color: #d1d5db;
    }
    
    .junchi8-card__meta {
        border-color: #374151;
    }
    
    .junchi8-card--highlight {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: #60a5fa;
    }
}