/* 記事表示用スタイル */

.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5em;
    padding: 0.5em 1em;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.back-link i {
    margin-right: 0.5em;
}

.article-content {
    background: white;
    padding: 3em;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

.article-date {
    font-size: 0.95em;
    color: #555;
    margin-top: 0.5em;
    opacity: 0.85;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content h2 {
    font-size: 1.8em;
    color: #667eea;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #667eea;
    transition: color 0.3s ease;
}

.article-content h2:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.article-content h3 {
    font-size: 1.4em;
    color: #764ba2;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    padding-left: 1em;
    border-left: 4px solid #764ba2;
    transition: transform 0.3s ease;
}

.article-content h3:hover {
    transform: translateX(10px);
}

.article-paragraph {
    margin-bottom: 1.2em;
    font-size: 1em;
    text-align: justify;
    word-break: break-word;
}

.custom-list {
    list-style: none;
    margin: 1.5em 0;
    padding-left: 0;
}

.custom-list li {
    margin-bottom: 0.8em;
    padding-left: 2em;
    position: relative;
    transition: transform 0.3s ease;
}

.custom-list li:hover {
    transform: translateX(10px);
}

.custom-list i {
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.1em;
}

.article-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.article-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.article-link i {
    font-size: 0.9em;
}

.error {
    color: #d32f2f;
    font-weight: bold;
    padding: 1em;
    background: #ffebee;
    border-radius: 6px;
    border-left: 4px solid #d32f2f;
}

.error i {
    margin-right: 0.5em;
}

/* コードブロック（もし使用される場合） */
.article-content code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #d63384;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1em 0;
}

.article-content pre code {
    color: #f8f8f2;
    background: none;
    padding: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .article-content {
        padding: 1.5em;
        margin: 1em;
    }

    .article-content h2 {
        font-size: 1.4em;
    }

    .article-content h3 {
        font-size: 1.1em;
    }

    .custom-list li {
        padding-left: 1.5em;
    }
}
