/**
 * Footer Stylesheet
 * フッター専用スタイル
 * 
 * @package DRONE-DX
 */

/* ========================================
   フッター基本
======================================== */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 30px 30px;
}

/* ========================================
   フッターコンテンツ
======================================== */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* ========================================
   フッターセクション
======================================== */
.footer-section {
    color: #ffffff;
}

.footer-section h4,
.footer-section .widget-title {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section p {
    color: #cccccc;
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ========================================
   フッターリスト
======================================== */
.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

/* ========================================
   フッターウィジェット
======================================== */
.footer-widget {
    margin-bottom: 30px;
}

.footer-widget:last-child {
    margin-bottom: 0;
}

/* テキストウィジェット */
.footer-widget .textwidget {
    color: #cccccc;
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* メニューウィジェット */
.footer-widget .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-widget .menu a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget .menu a:hover {
    color: var(--color-primary);
}

/* 検索ウィジェット */
.footer-widget .search-form {
    display: flex;
    gap: 10px;
}

.footer-widget .search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #333333;
    background: #2a2a2a;
    color: white;
    border-radius: 5px;
    font-size: 0.9375rem;
}

.footer-widget .search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer-widget .search-form button,
.footer-widget .search-form input[type="submit"] {
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.footer-widget .search-form button:hover,
.footer-widget .search-form input[type="submit"]:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   フッターボトム
======================================== */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #333333;
}

.footer-bottom-container {
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* ========================================
   フッターナビゲーション（オプション）
======================================== */
.footer-navigation {
    margin-top: 20px;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: #999999;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--color-primary);
}

/* ========================================
   ソーシャルアイコン（オプション）
======================================== */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   連絡先情報（オプション）
======================================== */
.footer-contact-info {
    margin-top: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 0.9375rem;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.footer-contact-item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--color-primary);
}

/* ========================================
   レスポンシブ（タブレット）
======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ========================================
   レスポンシブ（モバイル）
======================================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4,
    .footer-section .widget-title {
        margin-bottom: 15px;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 15px 15px;
    }
    
    .footer-section h4,
    .footer-section .widget-title {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.875rem;
    }
}

/* ========================================
   ページトップボタン（オプション）
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    border: none;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.125rem;
    }
}

/* ========================================
   WordPress標準クラス対応
======================================== */
.footer-widget .wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

.footer-widget .wp-block-latest-posts li {
    margin-bottom: 10px;
}

.footer-widget .wp-block-latest-posts a {
    color: #cccccc;
    text-decoration: none;
}

.footer-widget .wp-block-latest-posts a:hover {
    color: var(--color-primary);
}

.footer-widget .wp-block-tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px;
    background: #2a2a2a;
    color: #cccccc;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-widget .wp-block-tag-cloud a:hover {
    background: var(--color-primary);
    color: white;
}