/**
 * Global JPD footer.
 *
 * @package jpd-theme
 */

.jpd-footer {
    width: 100%;
    overflow: visible;
    background: #ffffff;
    color: #111111;
}

.jpd-footer a {
    color: inherit;
    text-decoration: none;
}

/* This section breaks out from any page/container wrapper. */
.jpd-footer-main {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    min-height: 272px;
    margin-left: -50vw;
    overflow: hidden;
    padding: 80px 0 0;
    background: #ffffff;
}

.jpd-footer-main__bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 100vw;
    max-width: none;
    height: 320px;
    object-fit: cover;
    object-position: top;
    pointer-events: none;
}

.jpd-footer-main__inner,
.jpd-footer-bottom__inner {
    position: relative;
    z-index: 1;
    width: min(1310px, calc(100vw - 130px));
    margin: 0 auto;
}

.jpd-footer-main__grid {
    display: grid;
    grid-template-columns: 180px 240px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 220px;
    column-gap: 65px;
    align-items: start;
}

.jpd-footer-main__grid > section {
    min-width: 0;
}

.jpd-footer-main__branding {
    grid-column: 1;
    justify-self: start;
    width: 180px;
    text-align: left;
}

.jpd-footer-main__hotlines {
    padding-top: 20px;
    grid-column: 2;
    justify-self: start;
    width: 240px;
    text-align: left;
}

.jpd-footer-main__connect {
    grid-column: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    justify-self: end;
    width: 220px;
    min-height: 180px;
    text-align: right;
}

.jpd-footer-main__mtic-logo {
    display: block;
    width: 178px;
    height: auto;
    margin: 0 0 20px;
}

.jpd-footer-main__address {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    color: #111111;
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.25;
}

.jpd-footer-main__department-name {
    font-weight: 400;
}

.jpd-footer-main__contact-list,
.jpd-footer-main__hotlines-list,
.jpd-footer-main__social-list,
.jpd-footer-bottom__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jpd-footer-main__contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    color: #111111;
    font-size: 0.72rem;
    line-height: 1.25;
}

.jpd-footer-main__contact-list a {
    color: #FDC112;
    font-weight: 500;
}

.jpd-footer-main__contact-list a:hover,
.jpd-footer-main__contact-list a:focus-visible {
    color: #032F3C;
    text-decoration: underline;
    outline: none;
}

.jpd-footer-main__heading {
    margin: 0;
    color: #111111;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.jpd-footer-main__heading-line {
    display: block;
    width: 36px;
    height: 3px;
    margin: 8px 0 14px;
    background: #FDC112;
}

.jpd-footer-main__hotlines-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: #111111;
    font-size: 0.72rem;
    line-height: 1.25;
}

.jpd-footer-main__hotlines-list a {
    color: inherit;
}

.jpd-footer-main__hotlines-list a:hover,
.jpd-footer-main__hotlines-list a:focus-visible {
    color: #FDC112;
    text-decoration: underline;
    outline: none;
}

.jpd-footer-main__govbn {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 60px 0 44px;
}


.jpd-footer-main__connect-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: 100%;
}

.jpd-footer-main__connect .jpd-footer-main__heading {
    white-space: nowrap;
}

.jpd-footer-main__social-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jpd-footer-main__social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.jpd-footer-main__social-list a:hover,
.jpd-footer-main__social-list a:focus-visible {
    opacity: 0.86;
    transform: translateY(-2px);
    outline: none;
}

.jpd-footer-main__social-list img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Bottom bar also breaks out so it does not create container-width grey/white edges. */
.jpd-footer-bottom {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: -18px 0 0 -50vw;
    overflow: hidden;
    padding: 0 0 16px;
    background: #ffffff;
    color: #111111;
}

.jpd-footer-bottom__inner {
    display: grid;
    grid-template-columns: 180px 240px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 220px;
    column-gap: 65px;
    align-items: end;
}

.jpd-footer-bottom__copyright {
    grid-column: 3 / span 2;
    margin: 0;
    color: #111111;
    font-size: 0.56rem;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.jpd-footer-bottom__nav {
    grid-column: 6;
    justify-self: end;
}

.jpd-footer-bottom__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.jpd-footer-bottom__menu li {
    display: inline-flex;
    align-items: center;
}

.jpd-footer-bottom__menu li + li::before {
    content: "/";
    margin: 0 7px;
    color: rgba(17, 17, 17, 0.58);
}

.jpd-footer-bottom__menu a {
    color: #111111;
    font-size: 0.56rem;
    white-space: nowrap;
}

.jpd-footer-bottom__menu a:hover,
.jpd-footer-bottom__menu a:focus-visible {
    color: #FDC112;
    text-decoration: underline;
    outline: none;
}

@media (max-width: 1180px) {
    .jpd-footer-main__inner,
    .jpd-footer-bottom__inner {
        width: min(100vw - 56px, 1050px);
    }

    .jpd-footer-main__grid,
    .jpd-footer-bottom__inner {
        grid-template-columns: 180px 240px minmax(0, 1fr) 220px;
        column-gap: 44px;
    }

    .jpd-footer-main__connect {
        grid-column: 4;
    }

    .jpd-footer-bottom__copyright {
        grid-column: 2 / span 2;
    }

    .jpd-footer-bottom__nav {
        grid-column: 4;
    }

    .jpd-back-to-top {
		width: 44px;
		height: 44px;
	}

	.jpd-back-to-top.is-visible.is-idle {
		opacity: 0.35;
	}

	.jpd-back-to-top.is-visible.is-idle:hover,
	.jpd-back-to-top.is-visible.is-idle:focus-visible {
		opacity: 1;
	}
}

@media (max-width: 900px) {
    .jpd-footer-main {
        min-height: 0;
        padding: 74px 0 22px;
    }

    .jpd-footer-main__bg {
        height: 100%;
        min-height: 320px;
        object-fit: cover;
    }

    .jpd-footer-main__inner,
    .jpd-footer-bottom__inner {
        width: min(100vw - 48px, 900px);
    }

    .jpd-footer-main__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 42px;
        row-gap: 34px;
    }

    .jpd-footer-main__branding,
    .jpd-footer-main__hotlines,
    .jpd-footer-main__connect {
        grid-column: auto;
        width: 100%;
    }

    .jpd-footer-main__connect {
        grid-column: 1 / -1;
        align-items: flex-start;
        min-height: 0;
        text-align: left;
    }

    .jpd-footer-main__govbn {
        display: none;
    }

    .jpd-footer-main__connect-bottom {
        justify-content: flex-start;
    }

    .jpd-footer-bottom {
        margin-top: 0;
        padding-top: 4px;
    }

    .jpd-footer-bottom__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 8px;
        text-align: center;
    }

    .jpd-footer-bottom__copyright,
    .jpd-footer-bottom__nav {
        grid-column: auto;
        justify-self: center;
    }

    .jpd-footer-bottom__copyright {
        white-space: normal;
    }

    .jpd-footer-bottom__menu {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .jpd-footer-main__inner,
    .jpd-footer-bottom__inner {
        width: min(100vw - 30px, 620px);
    }

    .jpd-footer-main__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .jpd-footer-main__mtic-logo {
        width: 170px;
    }

    .jpd-footer-main__connect-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .jpd-back-to-top {
		width: 44px;
		height: 44px;
	}
}

/* Gov.bn middle-right placement fix
   Desktop: put gov.bn in the middle-right of the right column,
   while Connect With Us stays at the bottom of that same column. */
.jpd-footer-main__connect {
    position: relative;
    display: block;
    min-height: 180px;
    text-align: right;
}

.jpd-footer-main__govbn {
    position: absolute;
    top: 50%;
    right: 0;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
}

.jpd-footer-main__govbn img {
    display: block;
    width: 92px;
    max-width: 92px;
    height: auto;
    filter: drop-shadow(1px 1px 1.7px rgba(0, 0, 0, 0.63));
}

.jpd-footer-main__connect-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: auto;
    margin: 0;
}

.jpd-footer-main__connect .jpd-footer-main__heading {
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.jpd-footer-main__social-list {
    margin: 0;
}

@media (max-width: 1180px) {
    .jpd-footer-main__govbn img {
        width: 86px;
        max-width: 86px;
    }
}

@media (max-width: 900px) {
    .jpd-footer-main__connect {
        position: static;
        display: flex;
        min-height: 0;
        text-align: left;
    }

    .jpd-footer-main__govbn {
        position: static;
        width: 100%;
        margin: 0;
        transform: none;
    }

    .jpd-footer-main__connect-bottom {
        position: static;
        justify-content: flex-start;
        width: 100%;
    }
}

/* Footer final bottom + overflow fix
   Keep footer full-width without horizontal scroll, and keep bottom copyright/legal links aligned. */
.jpd-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.jpd-back-to-top {
	position: fixed;
	bottom: max(42px, env(safe-area-inset-bottom, 0px) + 20px);
    right: max(42px, env(safe-area-inset-right, 0px) + 20px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: #FDC112;
	color: #1a1a1a;
	font-size: 1.25rem;
	line-height: 1;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease,
		visibility 0.25s ease;
	z-index: 9999;
}

.jpd-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jpd-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.jpd-back-to-top:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    outline: 3px solid #0b3a74;
    outline-offset: 3px;
}

.jpd-footer-main {
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: 0;
    overflow-x: clip;
}

.jpd-footer-bottom {
    left: auto;
    width: 100%;
    max-width: 100%;
    margin: 13px 0 0;
    padding: 0 0 18px;
    overflow-x: clip;
    background: #ffffff;
}

.jpd-footer-main__bg {
    width: 100%;
    max-width: 100%;
}

/* Bottom row: copyright centered across footer, legal links right, same vertical line. */
.jpd-footer-bottom__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(1310px, calc(100% - 130px));
    max-width: 100%;
    min-height: 24px;
    margin: 0 auto;
}

.jpd-footer-bottom__copyright {
    grid-column: 2;
    justify-self: center;
    width: max-content;
    max-width: calc(100vw - 520px);
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.jpd-footer-bottom__nav {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    margin: 0;
}

.jpd-footer-bottom__menu {
    align-items: center;
    justify-content: flex-end;
}

.jpd-footer-bottom__menu li,
.jpd-footer-bottom__menu a {
    line-height: 1.3;
}

@supports not (overflow-x: clip) {
    .jpd-footer,
    .jpd-footer-main,
    .jpd-footer-bottom {
        overflow-x: hidden;
    }
}

@media (max-width: 1180px) {
    .jpd-footer-bottom__inner {
        width: min(100% - 56px, 1050px);
    }

    .jpd-footer-bottom__copyright {
        max-width: calc(100vw - 430px);
    }
}

@media (max-width: 900px) {
    .jpd-footer-main {
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .jpd-footer-bottom {
        margin-top: 11px;
    }

    .jpd-footer-bottom__inner {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 8px;
        width: min(100% - 48px, 900px);
        min-height: 0;
        justify-items: center;
        text-align: center;
    }

    .jpd-footer-bottom__copyright,
    .jpd-footer-bottom__nav {
        grid-column: auto;
        justify-self: center;
    }

    .jpd-footer-bottom__copyright {
        width: 100%;
        max-width: none;
        white-space: normal;
    }

    .jpd-footer-bottom__menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .jpd-back-to-top {
		width: 44px;
		height: 44px;
	}

	.jpd-back-to-top.is-visible.is-idle {
		opacity: 0.35;
	}

	.jpd-back-to-top.is-visible.is-idle:hover,
	.jpd-back-to-top.is-visible.is-idle:focus-visible {
		opacity: 1;
	}

}

@media (max-width: 620px) {
    .jpd-footer-bottom__inner {
        width: min(100% - 30px, 620px);
    }

    .jpd-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Inner page simple footer
   Used only when footer.php loads template-parts/footer/footer-simple.php. */
.jpd-footer--simple {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: #111111;
}

.jpd-footer--simple .jpd-footer-main,
.jpd-footer--simple .jpd-footer-bottom {
    display: none;
}

.jpd-footer-simple {
    width: 100%;
    padding: 18px 16px 20px;
    border-top: 3px solid #FDC112;
    background: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.jpd-footer-simple__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.jpd-footer-simple__nav {
    margin: 0 0 8px;
}

.jpd-footer-simple__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jpd-footer-simple__menu li {
    display: inline-flex;
    align-items: center;
}

.jpd-footer-simple__menu li + li::before {
    content: "|";
    margin: 0 4px;
    color: #111111;
}

.jpd-footer-simple__menu a {
    color: #111111;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: underline;
    white-space: nowrap;
}

.jpd-footer-simple__menu a:hover,
.jpd-footer-simple__menu a:focus-visible {
    color: #882461;
    outline: none;
}

.jpd-footer-simple__copyright {
    margin: 0;
    color: #111111;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

/* Mobile only: match the simple mobile screenshot.
   Desktop keeps the legal links on top because footer-simple.php outputs nav first. */
@media (max-width: 700px) {
    .jpd-footer-simple {
        padding: 24px 14px 18px;
        border-top: 0;
        background: #ffffff;
        box-shadow: inset 0 8px 12px -12px rgba(0, 0, 0, 0.45);
    }

    .jpd-footer-simple__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: min(100%, 420px);
    }

    .jpd-footer-simple__copyright {
        order: 1;
        margin: 0 0 10px;
        color: #707070;
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .jpd-footer-simple__nav {
        order: 2;
        margin: 0;
    }

    .jpd-footer-simple__menu li + li::before {
        content: "/";
        margin: 0 6px;
        color: #8a8a8a;
    }

    .jpd-footer-simple__menu a {
        color: #707070;
        font-size: 0.72rem;
        line-height: 1.25;
        text-decoration: none;
    }

    .jpd-footer-simple__menu a:hover,
    .jpd-footer-simple__menu a:focus-visible {
        color: #882461;
        text-decoration: underline;
        outline: none;
    }
}


/* =========================================================
   Homepage mobile footer only
   Target mockup: centered simple mobile footer with #fafafa background.
   This is scoped to the homepage/front page so inner-page simple footer is not affected.
   ========================================================= */
@media (max-width: 700px) {
    body.home .jpd-footer,
    body.front-page .jpd-footer {
        overflow: hidden;
        background: #ffffff;
        color: #333333;
    }

    body.home .jpd-footer-main,
    body.front-page .jpd-footer-main {
        left: auto;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 0;
        padding: 90px 18px 10px;
        overflow: hidden;
        background-color: #ffffff;
        background-image: url("../../images/footer/mobile-footer-bg.svg");
        background-repeat: no-repeat;
        background-position: center 16px;
        background-size: 100% auto;
        box-sizing: border-box;
    }

    body.home .jpd-footer-main__bg,
    body.front-page .jpd-footer-main__bg {
        display: none;
    }

    body.home .jpd-footer-main__inner,
    body.home .jpd-footer-bottom__inner,
    body.front-page .jpd-footer-main__inner,
    body.front-page .jpd-footer-bottom__inner {
        width: min(100%, 390px);
        max-width: 390px;
        margin: 0 auto;
    }

    body.home .jpd-footer-main__grid,
    body.front-page .jpd-footer-main__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
        text-align: center;
    }

    body.home .jpd-footer-main__branding,
    body.home .jpd-footer-main__hotlines,
    body.home .jpd-footer-main__connect,
    body.front-page .jpd-footer-main__branding,
    body.front-page .jpd-footer-main__hotlines,
    body.front-page .jpd-footer-main__connect {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        justify-self: center;
        grid-column: auto;
        width: 100%;
        min-height: 0;
        padding: 0;
        text-align: center;
    }

    body.home .jpd-footer-main__branding,
    body.front-page .jpd-footer-main__branding {
        order: 1;
    }

    body.home .jpd-footer-main__hotlines,
    body.front-page .jpd-footer-main__hotlines {
        order: 2;
    }

    body.home .jpd-footer-main__connect,
    body.front-page .jpd-footer-main__connect {
        order: 3;
    }

    body.home .jpd-footer-main__mtic-logo,
    body.front-page .jpd-footer-main__mtic-logo {
        width: min(205px, 72vw);
        height: auto;
        margin: 0 auto 16px;
    }

    body.home .jpd-footer-main__address,
    body.front-page .jpd-footer-main__address {
        align-items: center;
        gap: 10px;
        color: #333333;
        font-size: 0.82rem;
        line-height: 1.4;
        text-align: center;
    }

    body.home .jpd-footer-main__department-name,
    body.front-page .jpd-footer-main__department-name {
        font-weight: 500;
    }

    body.home .jpd-footer-main__contact-list,
    body.front-page .jpd-footer-main__contact-list {
        align-items: center;
        gap: 6px;
        margin-top: 18px;
        color: #333333;
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: center;
    }

    body.home .jpd-footer-main__contact-list li,
    body.front-page .jpd-footer-main__contact-list li {
        text-align: center;
    }

    body.home .jpd-footer-main__contact-list a,
    body.front-page .jpd-footer-main__contact-list a {
        color: #f5b400;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    body.home .jpd-footer-main__heading,
    body.front-page .jpd-footer-main__heading {
        margin: 0;
        color: #333333;
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    body.home .jpd-footer-main__heading-line,
    body.front-page .jpd-footer-main__heading-line {
        width: 44px;
        height: 3px;
        margin: 10px auto 18px;
        background: #fdc112;
    }

    body.home .jpd-footer-main__connect .jpd-footer-main__heading::after,
    body.front-page .jpd-footer-main__connect .jpd-footer-main__heading::after {
        content: "";
        display: block;
        width: 44px;
        height: 3px;
        margin: 10px auto 18px;
        background: #fdc112;
    }

    body.home .jpd-footer-main__hotlines-list,
    body.front-page .jpd-footer-main__hotlines-list {
        align-items: center;
        gap: 12px;
        color: #555555;
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: center;
    }

    body.home .jpd-footer-main__hotlines-list li,
    body.home .jpd-footer-main__hotlines-list a,
    body.front-page .jpd-footer-main__hotlines-list li,
    body.front-page .jpd-footer-main__hotlines-list a {
        color: #555555;
        text-align: center;
    }

    body.home .jpd-footer-main__connect-bottom,
    body.front-page .jpd-footer-main__connect-bottom {
        position: static;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    body.home .jpd-footer-main__social-list,
    body.front-page .jpd-footer-main__social-list {
        justify-content: center;
        gap: 16px;
        width: 100%;
        margin: 0;
    }

    body.home .jpd-footer-main__social-list a,
    body.front-page .jpd-footer-main__social-list a {
        width: 40px;
        height: 40px;
    }

    body.home .jpd-footer-main__social-list img,
    body.front-page .jpd-footer-main__social-list img {
        width: 40px;
        height: 40px;
    }

    body.home .jpd-footer-main__govbn,
    body.front-page .jpd-footer-main__govbn {
        position: static;
        order: 2;
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 22px 0 0;
        transform: none;
    }

    body.home .jpd-footer-main__govbn img,
    body.front-page .jpd-footer-main__govbn img {
        width: 92px;
        max-width: 92px;
        height: auto;
    }

    body.home .jpd-footer-bottom,
    body.front-page .jpd-footer-bottom {
        left: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 18px 14px;
        overflow: hidden;
        background: #ffffff;
        color: #555555;
        box-sizing: border-box;
    }

    body.home .jpd-footer-bottom__inner,
    body.front-page .jpd-footer-bottom__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 0;
        text-align: center;
    }

    body.home .jpd-footer-bottom__nav,
    body.front-page .jpd-footer-bottom__nav {
        order: 1;
        margin: 0;
    }

    body.home .jpd-footer-bottom__copyright,
    body.front-page .jpd-footer-bottom__copyright {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        color: #555555;
        font-size: 0.58rem;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
    }

    body.home .jpd-footer-bottom__menu,
    body.front-page .jpd-footer-bottom__menu {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 4px;
    }

    body.home .jpd-footer-bottom__menu a,
    body.front-page .jpd-footer-bottom__menu a {
        color: #555555;
        font-size: 0.66rem;
        line-height: 1.35;
    }

    body.home .jpd-footer-bottom__menu li + li::before,
    body.front-page .jpd-footer-bottom__menu li + li::before {
        margin: 0 6px;
        color: #999999;
    }

    body.home .jpd-back-to-top,
    body.front-page .jpd-back-to-top {
        display: none;
    }
}
