:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 52px;
    background: #51b948;
    box-shadow: 0 1px 17px rgb(0 0 0 / 10%);
}

.site-header-inner {
    min-height: 52px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: block;
    width: auto;
    max-width: min(240px, 70vw);
    max-height: 36px;
    object-fit: contain;
}

.notice-main {
    width: 100%;
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.notice-card {
    width: min(100%, 720px);
    padding: clamp(28px, 6vw, 56px);
    text-align: center;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgb(0 0 0 / 10%);
}

.notice-card h1 {
    margin: 0 0 18px;
    color: #3d79af;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
}

.notice-card p {
    margin: 0 0 14px;
    font-size: 1.125rem;
    line-height: 1.6;
}

.notice-card .destination-label {
    margin: 26px 0 4px;
    font-size: 1rem;
    font-weight: 700;
}

.destination-link {
    display: inline-block;
    overflow-wrap: anywhere;
    color: #17699b;
    font-weight: 700;
    text-underline-offset: 3px;
}

.destination-link:focus-visible {
    outline: 3px solid #17699b;
    outline-offset: 4px;
}

.notice-footer {
    min-height: 100px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #f5f5f5;
    background: #666;
    text-align: center;
}

.notice-footer small {
    color: #ddd;
    line-height: 1.5;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: min(250px, 45vw);
    max-height: 70px;
    object-fit: contain;
}

.parent-portal {
    background-color: #fff;
    background-image: url("/assets/parent-portal/Clouds.png");
    background-repeat: no-repeat;
    background-size: 100% 600px;
}

.parent-portal .notice-card {
    border-color: #dce8ef;
}

.parent-footer {
    position: relative;
    min-height: 176px;
    padding: 0 24px 14px;
    flex-direction: column;
    gap: 0;
    justify-content: flex-end;
    overflow: hidden;
    background: #3d79af;
    border-top: 1px solid #fff;
}

.parent-footer .footer-art {
    position: absolute;
    inset: 0 0 auto;
    height: 140px;
    background-image: url("/assets/parent-portal/bottom-nature.png");
    background-repeat: repeat-x;
    background-position: center bottom;
    border-bottom: 5px solid #3b6b1b;
}

.parent-footer small {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .notice-main {
        padding: 28px 16px;
    }

    .notice-footer:not(.parent-footer) {
        flex-direction: column;
        gap: 8px;
    }

    .parent-footer {
        min-height: 176px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
