* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #000000;
    color: #F5F5F5;
    font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
    line-height: 1.6;
}

.home-page {
    background: #F7F7F9 url("./images/bg2.webp") repeat center top;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #FF6488;
    outline-offset: 4px;
}

.site-header {
    padding: 16px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #E6E6E6;
    color: #030303;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.site-brand {
    margin: 0 0 24px;
    font-size: 1rem;
}

.site-logo {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

/* Let wrapped text determine the content height on every screen. */
.intro {
    padding: 40px 20px;
    background: #000000;
    text-align: center;
}

.intro-inner {
    max-width: 640px;
    margin: 0 auto;
}

.intro-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.action-button {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 18px 12px;
    border-radius: 6px;
    background: #ffd400;
    color: #030303;
    font-size: clamp(18px, 5.2vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.action-button:hover {
    background: #BB2D3B;
}

.address-notice {
    max-width: 520px;
    margin: 20px auto 0;
    color: #FF6488;
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.address-notice strong {
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .site-logo {
        width: 140px;
    }

    .intro {
        padding: 28px 20px 32px;
    }

    .intro-title {
        font-size: 16px;
    }

    .action-button {
        padding: 16px 12px;
    }
}

/* Error pages reuse the home page layout and navigation styles. */
.error-code {
    margin: 0 0 16px;
    color: #FF6488;
    font-size: clamp(64px, 18vw, 96px);
    font-weight: 800;
    line-height: 1;
}

.error-description {
    margin: 12px 0 0;
    color: #CCCCCC;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.home-button {
    max-width: 320px;
    font-size: 18px;
}
