/**
 * Premium Footer Design - Takamatsu Mekki Kogyo 2024
 * 高級感とインパクトのあるフッターデザイン
 */

@supports (at-rule(@layer)) {
    @layer components {
        /* Footer styles defined in layer */
    }
}

/* ========================================
   Premium Footer - 魅力的で包括的なデザイン
======================================== */

/* フッター専用全幅コンテナ */
.c-footer .l-section__container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 var(--space-lg) !important;
}
.c-footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f1419 100%);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.c-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.c-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* フッターメインコンテンツ - 高度なレイアウト */
.c-footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

/* ブランドセクション */
.c-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.c-footer__logo {
    margin-bottom: var(--space-lg);
}

.c-footer__company-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.c-footer__tagline {
    font-size: var(--font-size-base);
    color: var(--accent-color);
    font-weight: 500;
    margin: 0;
}

.c-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.c-footer__contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.c-footer__icon {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    min-width: 2.4rem;
}

.c-footer__contact-item p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.c-footer__contact-item a {
    color: white;
    transition: var(--btn-transition);
    text-decoration: none;
    font-weight: 500;
}

.c-footer__contact-item a:hover {
    color: var(--accent-color);
}

.c-footer__hours {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: var(--font-size-xs) !important;
}

/* ナビゲーションセクション */
.c-footer__nav-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.c-footer__nav-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.c-footer__nav-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
    position: relative;
}

.c-footer__nav-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
}

.c-footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.c-footer__nav li {
    margin: 0;
}

.c-footer__nav a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--btn-transition);
    display: inline-block;
    position: relative;
    padding: var(--space-xs) 0;
}

.c-footer__nav a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-1rem);
    transition: all 0.3s ease;
    margin-right: var(--space-xs);
}

.c-footer__nav a:hover {
    color: white;
    padding-left: var(--space-md);
}

.c-footer__nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}


/* フッター下部 */
.c-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-xs);
}

.c-footer__copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.c-footer__bottom-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.c-footer__bottom-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--btn-transition);
}

.c-footer__bottom-nav a:hover {
    color: white;
}

.c-footer__separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-size-xs);
}

/* トップへ戻るボタン */
.c-back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 5.6rem;
    height: 5.6rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s ease;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
}

.c-back-to-top::before {
    content: '↑';
    font-weight: bold;
}

.c-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.c-back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .c-footer__main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .c-footer__nav-section {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .c-footer__cta-section {
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .c-footer {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    .c-footer__main {
        gap: var(--space-xl);
    }
    
    .c-footer__nav-section {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .c-footer__nav-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .c-footer__brand {
        text-align: center;
        gap: var(--space-lg);
    }
    
    .c-footer__contact-item {
        justify-content: center;
        text-align: left;
    }
    
    .c-footer__cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .c-footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .c-back-to-top {
        width: 5rem;
        height: 5rem;
        bottom: var(--space-lg);
        right: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .c-footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    
    .c-footer__main {
        gap: var(--space-lg);
    }
    
    .c-footer__company-name {
        font-size: var(--font-size-xl);
    }
    
    .c-footer__cta-section {
        padding: var(--space-md);
    }
    
    .c-footer__cta-title {
        font-size: var(--font-size-lg);
    }
    
    .c-footer__cta-actions {
        gap: var(--space-md);
    }
    
    .c-footer__cta-primary,
    .c-footer__cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .c-back-to-top {
        width: 4.5rem;
        height: 4.5rem;
        bottom: var(--space-md);
        right: var(--space-md);
    }
}