/**
 * ニュース記事詳細ページ専用スタイル
 * news/article.php で使用
 */

/* CSS変数定義 */
:root {
    --primary-color: #36b278;
    --primary-dark: #2d9b63;
    --primary-light: #4ade80;
    --secondary-color: #10B981;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
}

/* 基本スタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    /* padding-top は head-common-public.php で設定済み */
}

/* 上部バナーのスタイルは head-common-public.php で定義済みのため削除 */

/* ヘッダー・ナビゲーションのスタイルは head-common-public.php で定義済みのため削除 */

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* 記事ヘッダー */
.article-header {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.article-meta {
    margin-bottom: 16px;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 12px;
}

.category-primary {
    background-color: #EEF2FF;
    color: var(--primary-color);
}

.category-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.category-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.category-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.article-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-summary {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 記事本文 */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 32px 0 16px;
    color: var(--text-color);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 24px 0 16px;
    color: var(--text-color);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

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

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

.article-content .btn {
    text-decoration: none;
}

/* タグ */
.article-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.tag {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
}

.tag:hover {
    background-color: var(--primary-light);
    color: white;
}

/* SNSシェアボタン */
.share-buttons {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.9rem;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.share-twitter {
    background-color: #1DA1F2;
    color: #fff !important;
}

.share-twitter:hover {
    background-color: #1A91DA;
    color: #fff !important;
}

.share-facebook {
    background-color: #1877F2;
    color: #fff !important;
}

.share-facebook:hover {
    background-color: #166FE5;
    color: #fff !important;
}

.share-line {
    background-color: #00B900;
    color: #fff !important;
}

.share-line:hover {
    background-color: #00A000;
    color: #fff !important;
}

/* SNSボタンのスタイルを確実に適用 */
.article-content .share-twitter,
.article-content .share-facebook,
.article-content .share-line {
    color: #fff !important;
    text-decoration: none !important;
}

.article-content .share-twitter:hover,
.article-content .share-facebook:hover,
.article-content .share-line:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* 関連記事 */
.related-articles {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.related-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--text-color);
}

.related-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.related-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
}

.related-item-title a {
    color: var(--text-color);
    text-decoration: none;
}

.related-item-title a:hover {
    color: var(--primary-color);
}

/* フッター */
.footer {
    background-color: #1F2937;
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer a {
    color: #9CA3AF;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .article-header {
        padding: 24px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-content {
        padding: 24px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}