/**
 * 記事コンテンツ用スタイル
 * ヘッダーなしでも記事が適切に表示されるためのスタイル
 */

body {
    /* 動的なニューラルネットワーク背景はJSで描画 (neural-background.js) */
    background-color: transparent;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* パンくずリスト */
.breadcrumbs {
    background-color: #fff;
    padding: 10px 20px;
    margin: 20px 20px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #4285f4;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 記事コンテナ */
.article-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: #333;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background-color: #e8f0fe;
    color: #4285f4;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 5px;
}

/* 記事コンテンツ */
.article-content {
    line-height: 1.7;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #e8f0fe;
    padding-bottom: 8px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #444;
}

.article-content p {
    margin-bottom: 20px;
}

/* UML図 */
.uml-container {
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.uml-title {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.uml-diagram {
    padding: 15px;
    text-align: center;
    background-color: #fff;
    min-height: 150px;
}

.uml-caption {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #666;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

/* SNS共有セクション */
.social-share-container {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.social-share-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

.social-share-buttons {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.twitter-share-button, .x-share-button, .facebook-share-button, .line-share-button {
    display: inline-block;
    background-color: #000000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.twitter-share-button:hover, .x-share-button:hover {
    background-color: #222222;
    text-decoration: none;
    color: #fff;
}

.facebook-share-button:hover {
    background-color: #2d4373 !important;
    text-decoration: none;
    color: #fff;
}

.line-share-button:hover {
    background-color: #05a748 !important;
    text-decoration: none;
    color: #fff;
}

.twitter-share-button i, .x-share-button i, .facebook-share-button i, .line-share-button i {
    margin-right: 8px;
}

.recommended-hashtags {
    font-size: 0.9rem;
    color: #666;
}

.hashtag {
    background-color: #f0f0f0;
    color: #000000;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.85rem;
}

/* 参考文献 */
.references-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.references-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 8px;
}

.references-list {
    margin: 0;
    padding-left: 25px;
    line-height: 1.6;
}

.references-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #444;
}

.references-list em {
    font-style: italic;
    color: #666;
}

/* 用語集 */
.glossary-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.glossary-list {
    margin: 0;
    padding-left: 20px;
}

.glossary-list li {
    margin-bottom: 10px;
}

/* 出典情報 */
.article-source {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 記事タグ */
.article-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
}

/* 広告 */
.ad-container {
    margin: 40px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.ad-label {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 5px;
}