* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    color: #35505a;
    font-family: "Zen Maru Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.invite-state-page,
body.invite-page {
    min-height: 100dvh;
    overflow-x: hidden;
    background: linear-gradient(#fff5e5, #d9f4f0);
}

.invite-state-page .content-header,
.invite-page .content-header,
.features-title,
.features p,
.notme,
.line {
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.invite-state-page main,
.invite-page main {
    min-height: calc(100dvh - 45px);
    margin-top: 45px;
    padding: clamp(50px, 10dvh, 96px) 20px clamp(18px, 3dvh, 28px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.state,
.invite {
    width: min(560px, 100%);
    text-align: center;
}

.state {
    padding-top: 8px;
}

.invite {
    padding-top: 0;
}

.state h1 {
    margin: 0;
    color: #174f58;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: clamp(1.45rem, 5.8vw, 2rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-shadow:
        1px 0 0 rgba(255, 255, 255, 0.95),
        -1px 0 0 rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 -1px 0 rgba(255, 255, 255, 0.95),
        0 0 10px rgba(255, 255, 255, 0.58),
        0 3px 10px rgba(20, 79, 88, 0.12);
}

.login-title {
    margin: 0;
    color: #174f58;
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    line-height: 1.4;
}

.login-error-message {
    width: min(100%, 520px);
    margin: 24px auto 0;
    padding: 12px 16px;
    border: 1px solid #d98a7c;
    border-radius: 8px;
    color: #7a3027;
    background: #fff4f1;
    font-weight: 600;
    line-height: 1.7;
}

.login-error-message + .line {
    margin-top: 24px;
}

.invite-title {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 22px 48px 24px;
    border: 2px solid rgba(31, 111, 122, 0.28);
    border-radius: 18px;
    color: #174f58;
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 10px 22px rgba(31, 95, 107, 0.14),
        0 2px 0 rgba(255, 255, 255, 0.78) inset;
    font-family: "Zen Maru Gothic", sans-serif;
    line-height: 1.15;
    letter-spacing: 0.045em;
    text-shadow:
        1px 0 0 rgba(255, 255, 255, 0.95),
        -1px 0 0 rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 -1px 0 rgba(255, 255, 255, 0.95),
        0 0 10px rgba(255, 255, 255, 0.58),
        0 3px 10px rgba(20, 79, 88, 0.12);
}

.invite-title::before,
.invite-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(31, 111, 122, 0.5);
    transform: translateY(-50%);
}

.invite-title::before {
    left: 18px;
}

.invite-title::after {
    right: 18px;
}

.invite-title-name {
    display: block;
    font-size: clamp(1.5rem, 5.8vw, 2.15rem);
    font-weight: 800;
    white-space: nowrap;
}

.invite-title-suffix {
    display: block;
    font-size: clamp(0.92rem, 3.2vw, 1.15rem);
    font-weight: 700;
    white-space: nowrap;
}

.state p {
    margin: 14px 0 0;
    line-height: 1.8;
}

.state .contact {
    margin-top: 24px;
    font-weight: bold;
}

.invite form {
    margin-top: 2px;
}

.notme {
    border: 0;
    background: none;
    color: #657b82;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: rgba(101, 123, 130, 0.55);
    cursor: pointer;
}

.notme:hover,
.notme:focus-visible {
    color: #6f604b !important;
    text-decoration-color: rgba(111, 96, 75, 0.72) !important;
}

.invite-page a:hover,
.invite-page a:focus-visible,
.invite-state-page a:hover,
.invite-state-page a:focus-visible {
    color: #6f604b;
    text-decoration-color: rgba(111, 96, 75, 0.72);
}

.features.site-catch-band {
    width: min(100%, 520px);
    margin: clamp(36px, 6dvh, 52px) auto 0;
    padding: 16px 12px;
    display: block;
    text-align: center;
}

.features-title {
    margin: 0 0 12px;
    color: #123f47;
    font-size: clamp(1.08rem, 3.8vw, 1.32rem);
    font-weight: 700;
    line-height: 1.5;
}

.features p {
    display: inline-block;
    margin: 0;
    color: #35505a;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.85;
    text-align: left;
}

.line {
    display: block;
    width: min(100%, 520px);
    margin: clamp(30px, 6dvh, 52px) auto 0;
    padding: 16px;
    border-radius: 8px;
    background: #06c755;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.invite-page .line,
.invite-page .line:visited,
.invite-page .line:hover,
.invite-page .line:focus-visible {
    color: white !important;
    text-decoration: none !important;
}

.invite-page .line:hover,
.invite-page .line:focus-visible {
    background: #05b94f;
}

.line-note {
    margin: clamp(24px, 4dvh, 34px) 0 0;
    color: #35505a;
    font-weight: 600;
    line-height: 1.8;
}

@media (max-width: 380px) {
    .invite-title {
        width: 100%;
        padding-right: 34px;
        padding-left: 34px;
    }

    .invite-title-name {
        font-size: 1.42rem;
    }

    .invite-title-suffix {
        font-size: 0.9rem;
    }
}

@media (max-height: 700px) {
    .invite-state-page main,
    .invite-page main {
        padding-top: 42px;
        padding-bottom: 14px;
    }

    .features.site-catch-band {
        margin-top: 30px;
    }

    .line {
        margin-top: 27px;
    }

    .line-note {
        margin-top: 20px;
    }
}
