/* ヘッダー関連のスタイル調整 */
.custom-navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    border: none;
    padding: 0;
}

.custom-navbar .navbar-brand,
.custom-navbar .navbar-nav li a {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.custom-navbar .navbar-nav li a:hover {
    color: #f39c12 !important;
}

/* パンくずリスト用のスタイル */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
    margin-top: 100px; /* ヘッダーナビの高さ分を調整（さらに増加） */
}

.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb > li + li:before {
    content: ">";
    color: #999;
    padding: 0 8px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

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

/* 記事本文のスタイル */
.article-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.article-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-meta .date {
    color: #666;
    font-size: 14px;
}

.article-meta .category {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

.article-title {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.article-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.article-content h2 {
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

.article-content h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

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

/* 関連記事セクション */
.related-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.related-article {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-article h4 {
    margin-bottom: 10px;
    color: #333;
}

.related-article h4 a {
    color: #333;
    text-decoration: none;
}

.related-article h4 a:hover {
    color: #007bff;
}

.related-article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.related-article p {
    color: #666;
    margin-bottom: 0;
}

/* CTAセクション */
.cta-section {
    background: url('../images/column-contact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* フッターのスタイル修正 */
footer {
    background-color: #ffffff;
    color: #333333 !important;
    padding: 40px 0;
    border-top: 1px solid #dee2e6;
}

footer p {
    margin: 0;
    color: #333333 !important;
}

footer a {
    color: #007bff !important;
    text-decoration: none;
}

footer a:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

/* Back to top ボタン */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    text-decoration: none;
    display: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.go-top:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .breadcrumb-container {
        margin-top: 80px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .cta-section {
        background-attachment: scroll; /* モバイルでは固定背景を無効化 */
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .go-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }
}