/* 記事詳細ページ専用スタイル */

/* 記事コンテンツ */
.entry-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 記事タイトル */
.entry-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 記事メタ情報 */
.entry-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

.entry-meta i {
    margin-right: 5px;
    color: #0066cc;
}

.entry-date,
.entry-category {
    display: flex;
    align-items: center;
}

/* 記事本文 */
.entry-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.entry-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.entry-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
}

.entry-body p {
    margin-bottom: 20px;
}

.entry-body ul,
.entry-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-body li {
    margin-bottom: 10px;
}

.entry-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.entry-body blockquote {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-left: 4px solid #0066cc;
    font-style: italic;
}

.entry-body table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.entry-body th,
.entry-body td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.entry-body th {
    background: #f5f5f5;
    font-weight: 700;
}

/* PDFセクション */
.entry-pdf {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.entry-pdf h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.btn-pdf {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.btn-pdf:hover {
    background: #c82333;
}

.btn-pdf i {
    margin-right: 8px;
}

/* タグ */
.entry-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.entry-tags i {
    margin-right: 10px;
    color: #666;
}

.tag-link {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #0066cc;
    color: #fff;
}

/* ソーシャルシェア */
.entry-share {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.entry-share h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button.twitter {
    background: #000000;
}

.share-button.twitter:hover {
    background: #333333;
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.linkedin:hover {
    background: #006097;
    transform: translateY(-2px);
}

/* 記事ナビゲーション */
.entry-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-prev,
.nav-next {
    max-width: 45%;
}

.nav-next {
    text-align: right;
}

.entry-navigation a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.entry-navigation a:hover {
    color: #0066cc;
}

.entry-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.entry-navigation .nav-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

/* 一覧へ戻るボタン */
.back-to-list {
    text-align: center;
    margin: 40px 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px;
    border: 2px solid #0058A2;
    background: #fff;
    color: #0058A2;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-back:hover {
    background: #0058A2;
    color: #fff;
}

.btn-back i {
    font-size: 18px;
    font-weight: 300;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .entry-article {
        padding: 20px;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .entry-body {
        font-size: 15px;
    }
    
    .entry-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-prev,
    .nav-next {
        max-width: 100%;
        text-align: left;
    }
}