/* =========================
   Container
========================= */
.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    min-height: 0;
}


/* =========================
   Header
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: center;

    backdrop-filter: blur(8px);
    background: var(--header-bg-color);

    border-bottom: 1px solid var(--color-divider);
}

.header-inner {
    display: flex;
    justify-content: space-between;

    height: 64px;
    width: 1200px;
    max-width: 1200px;
}

/* --- 左 --- */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
}

.header-logo {
    height: 68px;
}

.header-title {
    font-size: 2rem;
    color: var(--color-text-primary);
}

/* --- 右 --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav {
    display: flex;
    gap: 16px;
}

.header-nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.header-nav-link:hover {
    color: var(--color-accent);
}

/* 言語 */
.header-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-lang-select {
    background: var(--header-bg-color);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 4px 8px;
    border-radius: 6px;
}

.header-hr {
    border-left: 1px var(--color-text-muted) solid;
    height: 10px;
}

/* SNS */
.header-sns {
    width: 16px;
    height: 16px;
    background-color: var(--color-text-primary);
    padding: 3px;
    border-radius: 5px;
}

.header-sns:hover {
    color: var(--color-accent);
}

/* sp対応 */
.header-menu-button-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.header-menu-button {
    display: none;

    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-primary);

    width: 36px;
    height: 36px;

    font-size: 1.2rem;
    cursor: pointer;
}

.header-sp-menu {
    display: none;
}

@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .header-logo {
        height: 48px;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .header-right {
        display: none;
    }

    .header-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-sp-menu-button-container {
        display: flex;
        justify-content: right;
    }

    .header-sp-menu-button {
        background: transparent;
        color: var(--color-text-primary);

        width: 24px;
        height: 24px;

        border: 0;
        margin-right: -13px;

        display: flex;
        justify-content: center;
        align-items: center;

        font-size: 1.5rem;
        cursor: pointer;
    }

    .header-sp-menu {
        display: none;

        border-top: 1px solid var(--color-divider);
        background: var(--header-bg-color);
        backdrop-filter: blur(8px);

        padding: 16px;
        padding-top: 5px;
    }

    .header-sp-menu.is-open {
        position: absolute;
        display: flex;
        flex-direction: column;

        height: 100vh;

        right: 0;
    }

    .header-sp-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;

        margin-bottom: 16px;
    }

    .header-sp-link {
        color: var(--color-text-secondary);
        text-decoration: none;
        font-size: 0.95rem;
    }

    .header-sp-link:hover {
        color: var(--color-accent);
    }

    .header-sp-lang {
        width: 100%;
        margin-bottom: 16px;

        background: transparent;
        border: 1px solid var(--color-border);
        color: var(--color-text-primary);
        padding: 8px 10px;
        border-radius: 8px;
    }

    .header-sp-sns {
        color: var(--color-text-secondary);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .header-sp-sns:hover {
        color: var(--color-accent);
    }

    .header-sp-hr {
        border-left: 1px var(--color-text-muted) solid;
        width: 100%;
    }
}

/*--------------------------------------------------------------------------------------------------
 プライバシーポリシー
--------------------------------------------------------------------------------------------------*/
.privacy-page {
    max-width: 860px;
}

.privacy-title {
    margin-bottom: 24px;
}

.privacy-lead {
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.privacy-section {
    margin-block: 40px;
}

.privacy-heading {
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.privacy-list {
    margin: 0 0 16px;
    padding-left: 1.5em;
}

.privacy-note {
    color: var(--color-text-secondary);
}

/*--------------------------------------------------------------------------------------------------
 プロフィール
--------------------------------------------------------------------------------------------------*/
.profile-bg {
    padding: 20px;
    padding-left: 40px;
    padding-right: 40px;
    background: var(--color-bg-secondary);

    border-radius: 15px;
}

.profile-name {
    font-size: 32px;
}

.profile-sns-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    opacity: 0.8;
}

.profile-sns-link:hover .profile-sns-icon {
    opacity: 1;
}