/* =====================================================
   記事ページ専用スタイルシート
   ===================================================== */

/* ===================
   パンくずリスト
   =================== */
.breadcrumb {
    background: var(--color-bg-secondary);
    padding: var(--spacing-sm) 0;
    margin-top: 70px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--color-text-muted);
}

.breadcrumb-list a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--color-primary);
}

.breadcrumb-list li:last-child {
    color: var(--color-text);
    font-size: 0.9rem;
}

/* ===================
   記事レイアウト
   =================== */
.article-main {
    padding: var(--spacing-2xl) 0;
}

.article-layout {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.article {
    background: var(--color-bg);
    width: 100%;
    max-width: 100%;
}

/* ===================
   記事ヘッダー
   =================== */
.article-header {
    margin-bottom: var(--spacing-xl);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    font-weight: 500;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.article-date svg,
.article-read-time svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.article-divider {
    color: var(--color-border);
    margin: 0 0.5rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    word-wrap: break-word;
}

.article-description {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.8;
    letter-spacing: 0.01em;
    margin-bottom: var(--spacing-md);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.article-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.article-tag:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    cursor: pointer;
}

.article-thumbnail {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.article-thumbnail video {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

/* ===================
   目次
   =================== */
.article-toc {
    background: var(--color-bg-secondary);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title::before {
    content: '📑';
    font-size: 1.2rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.toc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toc-list li:hover::before {
    background: var(--color-accent);
    transform: scale(1.3);
}

.toc-list a {
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: var(--font-primary);
    font-weight: 400;
    display: inline-block;
    padding: 0.15rem 0;
}

.toc-list a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

/* ===================
   記事本文
   =================== */
.article-body {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 2;
    color: #333333;
    letter-spacing: 0.02em;
    max-width: 100%;
    overflow-x: hidden;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
    padding: 1rem 0 0.75rem 1rem;
    border-left: 5px solid var(--color-primary);
    background: linear-gradient(to right, rgba(52, 152, 219, 0.05), transparent);
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: #34495e;
    margin: 2rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--color-primary-light);
    letter-spacing: -0.01em;
}

.article-body h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin: var(--spacing-md) 0 var(--spacing-sm);
    letter-spacing: -0.01em;
}

.article-body p {
    margin-bottom: 1.75rem;
    line-height: 2;
    color: #333333;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.article-body a:hover {
    color: var(--color-primary-dark);
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    color: #333333;
}

.article-body ul li::marker {
    color: var(--color-primary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-lg) 0;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-style: normal;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* インラインコード */
.article-body code {
    background: #f5f5f5;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-code);
    font-size: 0.85em;
    color: #c7254e;
    font-weight: 500;
}

.article-body strong {
    font-weight: 700;
    color: #2c3e50;
}

/* コードブロックラッパー */
.article-body .code-block-wrapper {
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #1e1e1e;
    width: 100%;
    max-width: 100%;
}

/* コードブロックヘッダー */
.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-language {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    color: #61afef;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.code-lines {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    color: #858585;
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.code-copy-btn:active {
    transform: translateY(0);
}

.code-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* コードブロック本体 */
.article-body pre {
    background: #1e1e1e !important;
    padding: 0;
    margin: 0;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: none;
    white-space: pre !important;
    word-wrap: normal;
    word-break: normal;
}

.article-body .code-block-wrapper pre {
    padding: 0.75rem 1rem;
    margin: 0;
    max-width: 100%;
    white-space: pre !important;
}

.article-body pre code {
    background: none !important;
    padding: 0;
    color: #d4d4d4;
    font-size: 0.75rem;
    line-height: 1.4;
    font-family: var(--font-code) !important;
    font-weight: 400;
    tab-size: 4;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: normal !important;
    display: block;
    letter-spacing: 0;
}

/* Prism.jsのスタイル調整（VS Code風カラー） */
.article-body pre[class*="language-"] {
    background: #1e1e1e !important;
    white-space: pre !important;
    word-wrap: normal !important;
}

.article-body code[class*="language-"] {
    color: #d4d4d4;
    font-family: var(--font-code) !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    text-shadow: none;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: normal !important;
    letter-spacing: 0 !important;
}

/* VS Code風のシンタックスカラー */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a9955; /* 緑 - コメント */
}

.token.punctuation {
    color: #d4d4d4; /* 白 - 記号 */
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #b5cea8; /* 薄緑 - 数値・定数 */
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #ce9178; /* オレンジ - 文字列 */
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #d4d4d4; /* 白 - 演算子 */
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #569cd6; /* 青 - キーワード */
}

.token.function,
.token.class-name {
    color: #dcdcaa; /* 黄色 - 関数・クラス */
}

.token.regex,
.token.important,
.token.variable {
    color: #9cdcfe; /* 水色 - 変数 */
}

/* コードブロックのスクロールバー（より目立つ） */
.article-body pre::-webkit-scrollbar {
    height: 12px;
}

.article-body pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 6px;
}

.article-body pre::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 6px;
    border: 2px solid #2d2d2d;
}

.article-body pre::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

.article-body pre::-webkit-scrollbar-corner {
    background: #2d2d2d;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    box-shadow: var(--shadow-sm);
}

.article-body th,
.article-body td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-body th {
    background: var(--color-bg-secondary);
    font-weight: 600;
}

/* ===================
   デモセクション
   =================== */
.demo-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

.demo-section h2 {
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.demo-embed {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-embed iframe {
    width: 100%;
    border: none;
    display: block;
}

.demo-note {
    margin-top: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: center;
}

.demo-actions {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.demo-preview {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.demo-preview img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.video-container {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container video {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

/* ===================
   旧サイトリンク
   =================== */
.old-site-link {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: white;
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-lg);
}

.old-site-link h3 {
    margin: 0 0 var(--spacing-md) 0 !important;
    padding: 0 !important;
    border: none !important;
    color: white;
}

.old-site-link p {
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.btn-old-site {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-old-site:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===================
   シェアボタン
   =================== */
.article-share {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-share h3 {
    margin: 0 0 var(--spacing-sm) 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1rem;
    color: var(--color-text);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: #ffffff !important;
    text-decoration: none;
}

.share-btn svg {
    fill: currentColor;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.share-btn--twitter {
    background: #1da1f2 !important;
}

.share-btn--twitter:hover {
    background: #0d8bd9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.3);
}

.share-btn--facebook {
    background: #1877f2 !important;
}

.share-btn--facebook:hover {
    background: #0d64d9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.share-btn--hatena {
    background: #00a4de !important;
}

.share-btn--hatena:hover {
    background: #0088bf !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 164, 222, 0.3);
}

.share-btn--copy {
    background: #6c757d !important;
}

.share-btn--copy:hover {
    background: #5a6268 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.share-btn--embed {
    background: #28a745 !important;
}

.share-btn--embed:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* ===================
   埋め込みコードモーダル
   =================== */
.embed-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.embed-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.embed-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.embed-modal-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.25rem;
    color: var(--color-text);
}

.embed-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.embed-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.embed-modal-body {
    padding: var(--spacing-lg);
}

.embed-description {
    margin: 0 0 var(--spacing-md) 0;
    color: #666;
    font-size: 0.9rem;
}

.embed-code {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    background: #f8f9fa;
    color: var(--color-text);
}

.embed-code:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.embed-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: var(--spacing-md);
    background: #3498db;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.embed-copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.embed-copy-btn svg {
    flex-shrink: 0;
}

/* ===================
   関連記事
   =================== */
.related-articles {
    margin: var(--spacing-xl) 0;
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--color-border);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 100%;
}

/* サイドバーは削除されました（1カラムレイアウト） */

/* ===================
   トップへ戻るボタン
   =================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
}


/* ===================
   レスポンシブ
   =================== */
@media (max-width: 1024px) {
    .article-layout {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 70px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .demo-actions .btn {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
        width: 100%;
    }
    
    .article-thumbnail video {
        max-height: 350px;
    }
    
    .video-container video {
        max-height: 350px;
    }
    
    .code-block-header {
        padding: 0.5rem 0.75rem;
    }
    
    .code-language {
        font-size: 0.7rem;
    }
    
    .code-copy-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .code-copy-btn svg {
        width: 13px;
        height: 13px;
    }
    
    .article-body .code-block-wrapper pre {
        padding: 0.6rem 0.75rem;
    }
    
    .article-body pre code {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .embed-modal-content {
        max-width: 95%;
    }
    
    .embed-modal-header {
        padding: var(--spacing-md);
    }
    
    .embed-modal-body {
        padding: var(--spacing-md);
    }
    
    .embed-code {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .article-main {
        padding: var(--spacing-md) 0;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .demo-section,
    .old-site-link,
    .article-share {
        padding: var(--spacing-md);
    }
    
    .embed-modal-header,
    .embed-modal-body {
        padding: var(--spacing-sm);
    }
    
    .embed-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .embed-code {
        font-size: 0.7rem;
        min-height: 80px;
    }
    
    .embed-copy-btn {
        font-size: 0.85rem;
        padding: 0.65rem;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===================
   拡張Markdown記法用スタイル
   =================== */

/* アラートボックス */
.article-alert {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    background: var(--color-bg-secondary);
}

.article-alert.alert-info {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.article-alert.alert-warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.article-alert.alert-error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.article-alert.alert-success {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.article-alert.alert-note {
    border-left-color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

/* カード */
.article-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
}

/* 引用ボックス */
.article-quote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-secondary);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--color-text);
}

.article-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    text-align: right;
    color: var(--color-text-muted);
}

/* タブ */
.article-tabs {
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.tab-button:hover {
    color: var(--color-primary);
    background: rgba(52, 152, 219, 0.05);
}

.tab-button.active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg);
}

.tabs-content {
    padding: 1.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 動画・デモラッパー */
.article-video-wrapper,
.article-demo-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.article-video-wrapper video,
.article-demo-wrapper iframe {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* 画像のキャプション */
figure {
    margin: 1.5rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

figcaption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* 比較表（@compare記法） */
.article-compare {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-compare > div {
    padding: 1.5rem;
}

.article-compare > div:first-child {
    background: var(--color-bg);
}

.article-compare > div:last-child {
    background: var(--color-bg-secondary);
}

.article-compare h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 0;
    border: none;
}

/* スマホ表示：1カラムに変更 */
@media (max-width: 768px) {
    .article-compare {
        grid-template-columns: 1fr !important;
    }
    
    .article-compare > div {
        padding: 1.25rem;
    }
}

