* {
    box-sizing: border-box;
}

:root {
    --header-height: 72px;
    --page-bg: #fff7f9;
    --panel-bg: #ffffff;
    --border: #f0d7df;
    --text: #2f1720;
    --muted: #7c5b66;
    --primary: #9F1239;
    --primary-hover: #881337;
    --danger: #be123c;
}

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--text);
    background: var(--page-bg);
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.global-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.global-header__inner {
    width: min(1500px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #3b1020;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}


.global-nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 4px;
    overflow-x: auto;
}

.global-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: #5a2334;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.global-nav__item:hover {
    color: var(--primary);
}

.global-nav__item--disabled {
    gap: 6px;
    color: #a58b94;
    cursor: default;
    user-select: none;
}

.global-nav__item--disabled:hover {
    color: #a58b94;
}

.global-nav__status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 6px;
    border: 1px solid #efc9d3;
    border-radius: 999px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.global-nav__item.is-active {
    color: var(--primary);
}

.global-nav__item.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
}

.global-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    color: var(--muted);
    font-size: 12px;
}

.global-footer__inner {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 18px 24px;
}

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.15s ease;
}

.primary-button {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(159, 18, 57, 0.18);
}

.primary-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.primary-button--large {
    min-width: 290px;
    padding: 19px 36px;
    font-size: 18px;
}

.secondary-button {
    padding: 10px 16px;
    background: #fff7f9;
    color: var(--primary);
    border: 1px solid #f2b5c5;
}

.secondary-button:hover:not(:disabled) {
    background: #ffe4ea;
}

.secondary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.is-hidden {
    display: none !important;
}

.simple-message-page {
    min-height: calc(100vh - var(--header-height) - 54px);
    padding: 80px 24px;
    display: grid;
    place-items: start center;
}

.simple-message-card {
    width: min(620px, 100%);
    padding: 48px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(159, 18, 57, 0.08);
}

.simple-message-card h1 {
    margin: 0 0 16px;
}

.simple-message-card p {
    color: var(--muted);
    line-height: 1.8;
}

.simple-message-card a {
    color: var(--primary);
}

@media (max-width: 820px) {
    :root {
        --header-height: 116px;
    }

    .global-header__inner {
        padding: 10px 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .brand {
        height: 42px;
        font-size: 21px;
    }

    .global-nav {
        width: 100%;
        height: 54px;
    }

    .global-nav__item {
        padding: 0 13px;
        font-size: 13px;
    }
}
