/**
 * フッター v9.0.0
 * デザインシステム統一版
 * 
 * コンセプト: FUTURE × LIFE × SCIENCE
 * カラー: Deep Teal (#0A3D3D), Sage Green (#4A6B5B), Gold (#C9A961), Cream (#F5F3EF)
 * タイポグラフィ: Noto Serif JP (display), Noto Sans JP (body), IBM Plex Mono (labels)
 */

/* ========================================
   フッターメイン
   ======================================== */
.footer-v9 {
    background: linear-gradient(135deg, #0A3D3D 0%, #163D3A 100%);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    overflow: hidden; /* 端をクリーンに */
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.footer-main {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
}

.footer-main .container {
    max-width: 1200px; /* 最大幅を制限 */
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ========================================
   フッターグリッド
   ======================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; /* より均等に調整 */
    gap: clamp(1.5rem, 3vw, 2.5rem); /* ギャップを狭く */
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 100%;
}

/* ========================================
   ブランド情報
   ======================================== */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 2px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.footer-logo-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    max-width: 400px; /* 説明文の幅を制限 */
}

.footer-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    color: #C9A961; /* Gold */
    text-transform: uppercase;
    font-weight: 600;
}

.footer-tagline-separator {
    color: rgba(201, 169, 97, 0.5);
}

/* ========================================
   フッターカラム
   ======================================== */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.3); /* Goldのアクセント */
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-list li {
    line-height: 1.5;
}

.footer-list a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.footer-list a:hover {
    color: #C9A961; /* Gold */
    transform: translateX(4px);
}

.footer-list a i {
    font-size: 0.625rem;
    opacity: 0.6;
}

/* ========================================
   フッター下部
   ======================================== */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    max-width: 1200px; /* 最大幅を制限 */
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap; /* 折り返しを許可 */
}

.footer-copyright p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.03em;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.footer-disclaimer {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-dates {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-dates-separator {
    margin: 0 8px;
    opacity: 0.5;
}

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

/* 大型デスクトップ */
@media (min-width: 1400px) {
    .footer-main .container,
    .footer-bottom .container {
        max-width: 1200px; /* 大画面でも1200pxに制限 */
    }
    
    .footer-grid {
        gap: clamp(2rem, 3vw, 3rem); /* 大画面でもギャップを適度に */
    }
}

/* タブレット */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2カラムに変更 */
        gap: 2rem 1.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1; /* 全幅 */
        margin-bottom: 1rem;
    }
}

/* モバイル */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: auto;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .footer-bottom {
        padding-top: clamp(1.5rem, 3vw, 2rem);
        padding-bottom: 130px !important; /* 固定CTAボタン分のスペース確保 */
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-meta {
        align-items: flex-start;
    }
}

/* 小型モバイル */
@media (max-width: 480px) {
    .footer-main {
        padding: 2.5rem 0 2rem;
    }
    
    .footer-logo img {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-title {
        font-size: 0.9375rem;
    }
    
    .footer-description {
        font-size: 0.8125rem;
    }
    
    .footer-tagline {
        font-size: 0.5625rem;
    }
    
    .footer-heading {
        font-size: 0.9rem !important;
    }
    
    .footer-list a {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding-top: clamp(1.5rem, 3vw, 2rem);
        padding-bottom: 130px !important; /* 固定CTAボタン分のスペース確保 */
    }
}

/* 極小デバイス */
@media (max-width: 360px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: clamp(1.5rem, 3vw, 2rem);
        padding-bottom: 140px !important; /* 固定CTAボタン + フッターテキスト余白 */
    }
}

/* ========================================
   アクセシビリティ
   ======================================== */
.footer-list a:focus {
    outline: 2px solid #C9A961;
    outline-offset: 4px;
    border-radius: 2px;
}

/* モーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    .footer-list a {
        transition: none;
    }
}
