.favnode-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 64px 20px 26px;
    margin-top: auto;
    border-top: 1px solid #2d3748;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(130px, 1fr));
    gap: 44px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 48px;
}

/* =========================
   Brand
   ========================= */

.footer-brand {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 190px;
    object-fit: contain;
}

.footer-desc {
    max-width: 360px;
    margin: 0 0 22px;
    color: #a0aec0;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 500;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;

    border: 1px solid #4a5568;
    border-radius: 9px;

    color: #a0aec0;
    text-decoration: none;
    font-size: 15px;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.footer-socials a:hover {
    color: #ffffff;
    background: #2d3748;
    border-color: #718096;
    transform: translateY(-1px);
}

.footer-socials img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    color: currentColor;
}

/* =========================
   Navigation
   ========================= */

.footer-title {
    margin: 2px 0 18px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    color: #a0aec0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.footer-links a:hover {
    color: #00c9a7;
    transform: translateX(2px);
}

/* =========================
   Language
   ========================= */

.footer-language {
    margin-top: 22px;
}

.footer-language-label {
    display: block;
    margin-bottom: 7px;

    color: #718096;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* 言語セレクター */
.lang-select {
    width: 100%;
    max-width: 165px;

    appearance: none;
    -webkit-appearance: none;

    /* 以前のFavNodeカラーに戻す */
    background-color: #2d3748;
    color: #e2e8f0;

    border: 1px solid #4a5568;
    border-radius: 10px;

    padding: 10px 38px 10px 13px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;

    outline: none;
    cursor: pointer;

    /* カスタム矢印 */
    background-image:
        linear-gradient(45deg, transparent 50%, #a0aec0 50%),
        linear-gradient(135deg, #a0aec0 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* マウスを乗せたとき */
.lang-select:hover {
    background-color: #374151;
    color: #ffffff;
    border-color: #718096;

    transform: translateY(-1px);

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* キーボード操作・クリック時 */
.lang-select:focus {
    background-color: #2d3748;
    color: #ffffff;

    border-color: #00c9a7;

    box-shadow:
        0 0 0 3px rgba(0, 201, 167, 0.14),
        0 3px 8px rgba(0, 0, 0, 0.15);
}

/* 選択肢 */
.lang-select option {
    background: #2d3748;
    color: #e2e8f0;
    font-weight: 600;
}

/* =========================
   Bottom
   ========================= */

.footer-bottom {
    max-width: 1100px;
    margin: 22px auto 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    margin: 0;

    color: #718096;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-bottom-links a {
    color: #718096;
    font-size: 11px;
    text-decoration: none;

    transition: color 0.18s ease;
}

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

.footer-separator {
    color: #4a5568;
    font-size: 10px;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {

    .favnode-footer {
        padding: 48px 20px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 28px;
        padding-bottom: 38px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        margin-bottom: 15px;
    }

    .footer-logo img {
        height: 42px;
        max-width: 175px;
    }

    .footer-desc {
        max-width: 480px;
        margin-bottom: 18px;
        font-size: 12px;
    }

    .footer-title {
        margin-bottom: 14px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-language {
        margin-top: 18px;
    }

    .lang-select {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-bottom-links {
        gap: 7px 14px;
    }
}

@media (max-width: 420px) {

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

    .footer-desc {
        line-height: 1.8;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}
