/**
 * FCプランニングオフィス - フッター専用CSS
 * 
 * @package FCプランニングオフィス
 * @author 株式会社Hackusha - 大硲 神
 * @version 1.0.0
 */

/* ==========================================================================
   フッター基本設定
   ========================================================================== */

.fcpo-footer {
    background-color: #333;
    padding: min(10vh, 50px) 0 5vh;
}

/* フッター内のすべての要素を白色に統一 */
.fcpo-footer * {
    color: var(--color-white);
}

/* ==========================================================================
   フッターコンテナ
   ========================================================================== */

.fcpo-footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--padding-container);
}

/* デスクトップ版コンテナ幅 */
@media (min-width: 769px) {
    .fcpo-footer-container {
        width: 40vw;
    }
}

/* ==========================================================================
   フッターナビゲーション
   ========================================================================== */

.fcpo-footer-navigation {
    font-family: var(--font-navigation);
    font-weight: 900;
}

.fcpo-footer-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.fcpo-footer-menu-item {
    margin: 0;
}

.fcpo-footer-nav-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.fcpo-footer-nav-link:hover {
    opacity: 0.7;
}

/* モバイル版ナビゲーション（2列2行） */
@media (max-width: 768px) {
    .fcpo-footer-nav-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem 2rem;
    }
    
    .fcpo-footer-menu-item {
        text-align: left;
    }
}

/* デスクトップ版ナビゲーション（4列1行） */
@media (min-width: 769px) {
    .fcpo-footer-nav-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
}

/* ==========================================================================
   フッターロゴ
   ========================================================================== */

.fcpo-footer-logo {
    width: 200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.fcpo-footer-logo-link {
    text-decoration: none;
}

.fcpo-footer-logo-svg {
    width: 100%;
    height: auto;
    max-width: 200px;
}

/* ==========================================================================
   フッター住所
   ========================================================================== */

.fcpo-footer-address {
    font-style: normal;
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================================================
   フッターコピーライト
   ========================================================================== */

.fcpo-copyright-text {
    font-family: var(--font-heading);
    font-size: var(--font-size-xs);
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    .fcpo-footer {
        padding: 8vh 0 4vh;
    }
    
    .fcpo-footer-container {
        padding: 0 15px;
    }
        
    .fcpo-footer-address {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   アクセシビリティ対応
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .fcpo-footer-nav-link {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .fcpo-footer-nav-link:hover {
        opacity: 1;
        text-decoration: underline;
    }
    
    .fcpo-copyright-text {
        opacity: 1;
    }
}

/* ==========================================================================
   フォーカス対応
   ========================================================================== */

.fcpo-footer-nav-link:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
    border-radius: 2px;
}

.fcpo-footer-logo-link:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
    border-radius: 2px;
} 