.site-footer {
    --footer-bg: #132c25;
    --footer-text: #f9fbf7;
    --footer-muted: rgba(249, 251, 247, 0.82);
    --footer-accent: #f1a07d;
    --footer-accent-soft: rgba(241, 160, 125, 0.18);
    --footer-border: rgba(255, 255, 255, 0.2);
    position: relative;
    margin-top: 0;
    border-top: 1px solid var(--footer-border);
    background:
        linear-gradient(90deg, rgba(8, 27, 21, 0.48) 0%, rgba(12, 35, 27, 0.34) 48%, rgba(7, 24, 19, 0.5) 100%),
        linear-gradient(180deg, rgba(8, 22, 18, 0.02), rgba(4, 16, 12, 0.28)),
        url('../images/footer-japan-fuji-v1.webp') center 46% / cover no-repeat,
        var(--footer-bg);
    color: var(--footer-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.58);
}

.pre-footer-why ~ .site-footer,
.pre-footer-cta ~ .site-footer {
    margin-top: 0;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1rem 2.5rem;
}

@media (min-width: 1024px) {
    .site-footer__inner {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem 2rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
        gap: 2rem 1.75rem;
    }
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

.site-footer__logo-wrap {
    display: flex;
    align-items: center;
}

.site-footer__logo {
    width: 18.75rem;
    max-width: min(300px, 72vw);
    height: 6.25rem;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.site-footer__description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--footer-muted);
    max-width: 22rem;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    overflow: hidden;
    border-radius: 9999px;
    border: 1px solid rgba(96, 125, 59, 0.28);
    background: var(--brand-surface, #fffefa);
    color: var(--footer-accent);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-shadow: none;
}

.site-footer__social-link:hover {
    background: var(--footer-accent-soft);
    border-color: var(--brand-primary, #607d3b);
    transform: translateY(-1px);
}

.site-footer__social-icon,
.site-footer__social-link svg {
    display: block;
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem;
    max-height: 1rem;
    flex-shrink: 0;
    fill: currentColor;
}

.site-footer__social-text {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.site-footer__social-text--line {
    font-size: 0.58rem;
    letter-spacing: 0;
}

.site-footer__social-material {
    font-size: 1rem !important;
    line-height: 1;
}

.site-footer__legal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--footer-border);
}

.site-footer__legal-left {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.site-footer__legal-name,
.site-footer__legal-tax,
.site-footer__copyright {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(249, 251, 247, 0.68);
}

.site-footer__legal-name {
    font-weight: 700;
    color: rgba(249, 251, 247, 0.86);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.site-footer__legal-tax span {
    font-weight: 700;
    color: rgba(249, 251, 247, 0.92);
    letter-spacing: 0.03em;
}

.site-footer__copyright {
    text-align: right;
    white-space: nowrap;
}

.site-footer__heading {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--footer-text);
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.site-footer__links a {
    color: var(--footer-muted);
    font-size: 0.875rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--footer-muted);
}

.site-footer__contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact-item a:hover {
    color: #fff;
}

.site-footer__contact-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    color: var(--footer-accent);
    font-size: 1.15rem;
    line-height: 1;
}

.site-footer__newsletter-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--footer-muted);
}

.site-footer__newsletter-message {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
}

.site-footer__newsletter-message.is-success {
    color: #86efac;
}

.site-footer__newsletter-message.is-error {
    color: #fca5a5;
}

.site-footer__newsletter-form {
    display: grid;
    gap: 0.65rem;
}

.site-footer__hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-footer__newsletter-input {
    width: 100%;
    border: 1px solid var(--brand-border, #ded8ca);
    border-radius: 0.55rem;
    background: var(--brand-surface, #fffefa);
    color: var(--brand-text, #26352b);
    padding: 0.72rem 0.85rem;
    font-size: 0.875rem;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-shadow: none;
}

.site-footer__newsletter-input:focus {
    border-color: var(--brand-primary, #607d3b);
    box-shadow: 0 0 0 3px rgba(96, 125, 59, 0.16);
}

.site-footer__newsletter-submit {
    width: 100%;
    border: 0;
    border-radius: 0.55rem;
    background: var(--brand-primary, #607d3b);
    color: #fff;
    padding: 0.78rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
    text-shadow: none;
}

.site-footer__newsletter-submit:hover:not(:disabled) {
    filter: brightness(1.05);
}

.site-footer__newsletter-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .site-footer {
        margin-top: 0;
    }

    .pre-footer-why ~ .site-footer,
    .pre-footer-cta ~ .site-footer {
        margin-top: 0;
    }

    .site-footer__inner {
        padding: 2.25rem 1rem 1.25rem;
    }

    .site-footer__grid {
        gap: 0;
    }

    /* Flatten brand so copyright can sit after newsletter */
    .site-footer__brand {
        display: contents;
    }

    .site-footer__logo-wrap {
        order: 1;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__description {
        order: 2;
        padding: 1.1rem 0;
        max-width: none;
        font-size: 0.84rem;
    }

    .site-footer__social {
        order: 3;
        padding-bottom: 1.25rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__legal {
        margin-top: 1.25rem;
        padding-top: 1.1rem;
        gap: 0.35rem 1rem;
        align-items: start;
    }

    .site-footer__legal-name,
    .site-footer__legal-tax,
    .site-footer__copyright {
        font-size: 0.7rem;
    }

    .site-footer__copyright {
        text-align: right;
    }

    @media (max-width: 640px) {
        .site-footer__legal {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .site-footer__copyright {
            text-align: center;
            white-space: normal;
        }
    }

    .site-footer__col {
        order: 10;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__col--services {
        order: 11;
    }

    .site-footer__col--useful {
        order: 12;
    }

    .site-footer__col--contact {
        order: 13;
    }

    .site-footer__newsletter {
        order: 20;
        border-bottom: 0;
        padding-top: 0.35rem;
    }

    .site-footer__accordion {
        display: block;
    }

    .site-footer__accordion-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin: 0;
        padding: 1rem 0;
        list-style: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .site-footer__accordion-summary::-webkit-details-marker {
        display: none;
    }

    .site-footer__accordion-summary .site-footer__heading {
        margin: 0;
    }

    .site-footer__accordion-chevron {
        flex-shrink: 0;
        font-size: 1.35rem;
        line-height: 1;
        color: var(--footer-accent);
        transition: transform 0.2s ease;
    }

    .site-footer__accordion[open] .site-footer__accordion-chevron {
        transform: rotate(180deg);
    }

    .site-footer__accordion-body {
        padding-bottom: 1rem;
    }

    .site-footer__links {
        gap: 0;
    }

    .site-footer__links a {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }

    .site-footer__contact-list {
        gap: 0.15rem;
        padding-bottom: 0.25rem;
    }

    .site-footer__contact-item {
        min-height: 2.75rem;
        align-items: center;
        font-size: 0.9rem;
    }

    .site-footer__newsletter-text {
        margin-bottom: 0.85rem;
        font-size: 0.84rem;
    }

    .site-footer__newsletter-form {
        gap: 0.75rem;
    }

    .site-footer__newsletter-input {
        min-height: 2.85rem;
        font-size: 16px; /* prevent iOS zoom */
    }

    .site-footer__newsletter-submit {
        min-height: 2.85rem;
        padding: 0.85rem 1rem;
    }
}

@media (min-width: 1024px) {
    .site-footer__accordion > summary {
        list-style: none;
        pointer-events: none;
        cursor: default;
    }

    .site-footer__accordion > summary::-webkit-details-marker {
        display: none;
    }

    .site-footer__accordion-chevron {
        display: none;
    }
}
