/**
 * Footer Component Styles
 * フッター関連のスタイル
 * 
 * @package YoungBush
 */

/* CSS変数の定義 */
:root {
    --primary-color: #275d46;
    --secondary-color: #022b22;
    --accent-color: #569578;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

/* ========================================
   Footer Base
======================================== */
footer {
    background: #022b22;
    color: #ffffff;
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(86, 149, 120, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   Footer Content Grid
======================================== */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ========================================
   Footer Sections
======================================== */
.footer-section h4 {
    margin-bottom: 20px;
    color: #569578;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   Footer Links
======================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #569578;
    opacity: 0.5;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: #569578;
    transform: translateX(5px);
}

/* ========================================
   Footer Bottom
======================================== */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #569578;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.footer-bottom a:hover {
    text-decoration: underline !important;
    color: #ffffff;
}

/* ========================================
   Back to Top Button (Optional)
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #275d46;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(39, 93, 70, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    background: #022b22;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 93, 70, 0.4);
    color: #ffffff;
}

.back-to-top::after {
    content: '↑';
    font-size: 20px;
    font-weight: bold;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links li {
        padding-left: 0;
        text-align: center;
    }

    .footer-links li::before {
        display: none;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .footer-bottom a {
        margin: 0 5px;
        display: inline-block;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 15px 15px;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-bottom {
        padding-top: 20px;
        line-height: 1.8;
    }

    .footer-bottom p {
        line-height: 1.8;
    }

    .footer-bottom a {
        display: block;
        margin: 5px 0;
    }
}