/* Article Page Styles */

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 80px;
    line-height: 1.8;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.article-breadcrumb a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.article-breadcrumb a:hover {
    opacity: 0.7;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    position: static;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-meta .category {
    background: #000;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-meta .date {
    color: #666;
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    .article-header h1::after {
        content: "";
        display: block;
    }
    .article-header h1 {
        white-space: pre-line;
    }
    .article-description br {
        display: none;
    }
}

.article-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

.article-content {
    margin-bottom: 4rem;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 768px) {
    .article-content p {
        word-break: normal;
        line-break: strict;
    }
}

.article-content section {
    margin-bottom: 3rem;
}

.intro-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 3rem;
}

.intro-section h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* フランクな解説ボックス */
.frank-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f1c40f;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.frank-note::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #f39c12, #f1c40f, #f39c12);
    border-radius: 12px;
    z-index: -1;
}

.frank-note h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #8b4513;
    font-weight: 600;
}

.frank-note p {
    margin-bottom: 0;
    color: #8b4513;
    font-size: 0.95rem;
    line-height: 1.6;
}

.frank-note.final {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.frank-note.final::before {
    background: linear-gradient(135deg, #66bb6a, #4caf50, #66bb6a);
}

.frank-note.final h4,
.frank-note.final p {
    color: #1b5e20;
}

/* 結論セクション */
.conclusion {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #000;
}

.conclusion h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* 参考文献リスト */
.reference-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

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

.reference-list > li::before {
    content: none;
}

.reference-list ul {
    list-style: none;
    padding-left: 0;
}

.reference-list ul li {
    padding-left: 1rem;
    position: relative;
}

.reference-list ul li::before {
    content: "・";
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.reference-list a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reference-list a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* 記事フッター */
.article-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e9ecef;
    color: #333;
}

.article-navigation {
    text-align: center;
}

.nav-link {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #333;
    transform: translateY(-2px);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .article-container {
        padding: 125px 0.75rem 60px;
    }
    
    .article-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .reference-list li {
        padding-left: 1.5rem !important;
    }
    
    .reference-list li::before {
        left: 0.3rem !important;
        position: absolute !important;
    }
    
    .article-content .reference-list li {
        padding-left: 1.5rem !important;
    }
    
    .article-content .reference-list li::before {
        left: 0.3rem !important;
        position: absolute !important;
    }
    
    .article-content ul {
        padding-left: 1.2rem;
    }
    
    .article-content li {
        padding-left: 0.2rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-description {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem;
    }
    
    .intro-section,
    .conclusion {
        padding: 0;
    }
    
    .frank-note {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .article-container {
        padding: 125px 0.75rem 50px;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 関連記事セクション */
.related-articles {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.related-articles h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

.related-article-list {
    display: grid;
    gap: 1.5rem;
}

.related-article-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #000;
    text-decoration: none;
    color: inherit;
}

.related-article-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.related-article-category {
    background: #000;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.related-article-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.related-article-date {
    font-size: 0.75rem;
    color: #888;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .related-articles {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }
    
    .related-article-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .related-article-title {
        font-size: 0.9rem;
    }
    
    .related-article-description {
        font-size: 0.8rem;
    }
}