/* 旧フッター（レガシー対応） */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

/* 旧フッター用 */
.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

/* 2段構成フッター上段用 */
.footer-upper .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #3498db;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.footer-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-stat-item {
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-stat-icon {
    font-size: 18px;
}

.footer-stat-number {
    font-size: 14px;
    font-weight: bold;
    color: #3498db;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-update {
    margin-top: 15px;
    padding: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 5px;
    border-left: 3px solid #3498db;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    color: #95a5a6;
    font-size: 14px;
}

.footer-tech {
    font-size: 14px;
    color: #7f8c8d;
}

/* 2段構成フッター用スタイル - 最優先 */
.site-footer {
    margin-top: 60px;
    background: none !important;
    padding: 0 !important;
    color: inherit;
    width: 100%;
    clear: both;
}

/* 他のフッターとの区別 */
footer.site-footer {
    display: block;
    position: relative;
}

/* 上段フッター */
.footer-upper {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 40px 0 20px;
}

/* 下段ブログエリア */
.footer-lower {
    background: #1a252f;
    color: #ecf0f1;
    padding: 30px 0;
    border-top: 1px solid #34495e;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

/* 新着記事エリア */
.recent-posts h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.recent-posts-item {
    padding: 12px 0;
    border-bottom: 1px solid #34495e;
}

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

.post-title {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-title:hover {
    color: #5dade2;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9em;
}

.blog-more {
    margin-top: 15px;
    text-align: center;
}

.blog-more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-more-link:hover {
    background: #3498db;
    color: white;
}

/* カテゴリエリア */
.blog-categories h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.category-links {
    list-style: none;
    padding: 0;
}

.category-links li {
    margin-bottom: 10px;
}

.category-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: block;
}

.category-links a:hover {
    color: #3498db;
    padding-left: 10px;
}

/* 検索エリア */
.blog-search h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #34495e;
    border-radius: 4px 0 0 4px;
    background: #2c3e50;
    color: #ecf0f1;
    border-right: none;
}

.search-input::placeholder {
    color: #7f8c8d;
}

.search-button {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #2980b9;
}

.popular-tags {
    margin-top: 15px;
}

.tag-label {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-right: 10px;
}

.tag-item {
    display: inline-block;
    background: #34495e;
    color: #bdc3c7;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #3498db;
    color: white;
}

/* フッター最下段 */
.footer-bottom {
    background: #16202b;
    padding: 20px 0;
    border-top: 1px solid #34495e;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

.footer-tech {
    color: #5d6d7e;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .blog-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 4px;
        border-right: 1px solid #34495e;
        margin-bottom: 10px;
    }
    
    .search-button {
        border-radius: 4px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
