/**
 * Footer Modern Styles
 *
 * モダンでスタイリッシュなフッターデザイン
 */

/* ==========================================================================
   Footer Main - Modern Design
   ========================================================================== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
    overflow: hidden;
}

/* Footer Main Container */
.footer-main {
    position: relative;
    padding: 100px 0 60px;
    z-index: 2;
}

/* Advanced Background Layers */
.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 134, 123, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 134, 123, 0.5) 20%,
        rgba(16, 185, 129, 0.5) 80%,
        transparent
    );
}

/* Decorative Circles */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.4;
    animation: float-decoration 20s ease-in-out infinite;
}

.decoration-circle-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 134, 123, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    animation-delay: 0s;
}

.decoration-circle-2 {
    bottom: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    animation-delay: 5s;
}

@keyframes float-decoration {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.1); }
    50% { transform: translate(-15px, 15px) scale(0.95); }
    75% { transform: translate(30px, -10px) scale(1.05); }
}

/* ==========================================================================
   Footer Grid
   ========================================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Footer Location Styles */
.footer-location {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-address i {
    color: var(--primary-color, #00867b);
    font-size: 16px;
    min-width: 20px;
}

.footer-full-address {
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Footer Widgets
   ========================================================================== */
.footer-widget {
    animation: fadeInUp 0.8s ease-out backwards;
}

.footer-widget:nth-child(1) { animation-delay: 0.1s; }
.footer-widget:nth-child(2) { animation-delay: 0.2s; }
.footer-widget:nth-child(3) { animation-delay: 0.3s; }
.footer-widget:nth-child(4) { animation-delay: 0.4s; }

/* Footer Title */
.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 16px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00867b, #10b981);
    border-radius: 2px;
    animation: shimmer-footer 3s ease-in-out infinite;
}

@keyframes shimmer-footer {
    0%, 100% { opacity: 0.7; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

/* Footer Info Widget */
.footer-info .footer-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* Footer Social Links */
.footer-social {
    margin-top: 32px;
}

.social-links {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00867b, #10b981);
    border-radius: 50%;
    transition: transform 0.4s ease;
    z-index: -1;
}

.social-links a:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.social-links a:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 134, 123, 0.4);
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00867b;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(8px);
}

.footer-menu a:hover::before {
    background: #10b981;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* ==========================================================================
   Footer Contact Widget
   ========================================================================== */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-phone,
.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-phone i,
.footer-email i {
    width: 20px;
    text-align: center;
    color: #00867b;
    font-size: 1rem;
}

.footer-phone:hover,
.footer-email:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 134, 123, 0.3);
    color: white;
    transform: translateX(4px);
}

/* Footer CTA Button */
.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #00867b, #10b981);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.footer-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.footer-cta-button:hover::before {
    left: 100%;
}

.footer-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 134, 123, 0.5);
}

.footer-cta-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-cta-button:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Footer Bottom
   ========================================================================== */
.footer-bottom {
    position: relative;
    padding: 32px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

/* Copyright */
.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Footer Bottom Links */
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00867b;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* ==========================================================================
   Scroll to Top Button - Modern
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00867b, #10b981);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 134, 123, 0.4);
}

.scroll-to-top.visible,
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.scroll-to-top:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

.scroll-to-top:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 134, 123, 0.6);
}

.scroll-to-top i {
    position: relative;
    z-index: 1;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .footer-main {
        padding: 80px 0 50px;
    }

    .decoration-circle-1 {
        width: 250px;
        height: 250px;
    }

    .decoration-circle-2 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-info .footer-title {
        font-size: 1.5rem;
    }

    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .footer-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-contact {
        gap: 12px;
    }

    .footer-cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .footer-bottom {
        padding: 24px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom-links .separator {
        display: none;
    }

    .scroll-to-top {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        bottom: 24px;
        right: 24px;
    }

    /* Decoration circles - smaller on mobile */
    .decoration-circle-1 {
        width: 200px;
        height: 200px;
    }

    .decoration-circle-2 {
        width: 250px;
        height: 250px;
    }

    /* Simplify animations on mobile */
    .decoration-circle {
        animation: none;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-info .footer-title {
        font-size: 1.3rem;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .footer-menu {
        grid-template-columns: 1fr;
    }

    .copyright {
        font-size: 0.85rem;
    }

    .footer-bottom-links a {
        font-size: 0.85rem;
    }
}