/* footer */
.clinic__footer {
    width: 100%;
    background-color: #323232;
}

.clinic__footer-inner {
    width: calc(100% - 8.333vw);
    max-width: 72.431vw;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "brand nav"
        "copy  copy";
    align-items: start;
    column-gap: 2.778vw;
    margin: 0 auto;
    padding: 2.222vw 0 4.722vw;
}

.clinic__footer-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.972vw;
}

.clinic__footer-logo {
    display: block;
    width: 8.681vw;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .clinic__footer-logo:hover,
    .clinic__footer-link:hover {
        opacity: 0.85;
    }
}

.clinic__footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.clinic__footer-text {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 0.903vw;
    line-height: calc(22 / 13);
    letter-spacing: 0;
    color: #FFFFFF;
}

.clinic__footer-nav {
    grid-area: nav;
    justify-self: end;
    padding: 0.833vw 0 0;
}

.clinic__footer-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.556vw 1.806vw;
    list-style: none;
    margin: 0;
    padding: 0;
}

.clinic__footer-link {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 0.903vw;
    line-height: 1;
    letter-spacing: 0;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.clinic__footer-link:focus-visible,
.clinic__footer-logo:focus-visible {
    outline: 0.139vw solid #FFFFFF;
    outline-offset: 0.208vw;
}

.clinic__footer-copy {
    grid-area: copy;
    margin: 2.639vw 0 0;
}

.clinic__footer-copy small {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 0.903vw;
    line-height: 1.6;
    letter-spacing: 0;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .clinic__footer-inner {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "copy";
        padding: 7.273vw 5.909vw 1.818vw;
    }

    .clinic__footer-brand {
        gap: 5.909vw;
    }

    .clinic__footer-logo {
        width: 30.325vw;
    }

    .clinic__footer-text {
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 500;
        font-size: 3.234vw;
        line-height: 5.473vw;
        letter-spacing: 0;
    }

    .clinic__footer-text br {
        display: none;
    }

    .clinic__footer-nav {
        justify-self: start;
        padding: 0;
        margin: 8.182vw 0 0;
    }

    .clinic__footer-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
    }

    .clinic__footer-link {
        display: block;
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 500;
        font-size: 3.234vw;
        line-height: 7.463vw;
        letter-spacing: 0;
        padding: 1vw 0;
    }

    .clinic__footer-copy {
        margin: 3.182vw 0 0;
    }

    .clinic__footer-copy small {
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 500;
        font-size: 3.234vw;
        line-height: 100%;
        letter-spacing: 0;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .clinic__footer-inner {
        width: calc(100% - 4.167vw);
    }
}
