@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #000000;
    --background-color: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #8E8E93;
    --border-color: #E5E5EA;
    --accent-color: #007AFF;
    --surface-light: #F5F5F7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Left sidebar + main layout */
.page-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--surface-light);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
}

.sidebar .logo {
    margin-bottom: 24px;
    padding: 0 20px;
    font-size: 22px;
}

.policy-menu-wrap {
    padding: 0 12px;
}

.policy-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-menu-list li {
    margin: 0;
}

.policy-menu-list a {
    display: block;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.2s;
}

.policy-menu-list a:hover {
    background: var(--border-color);
    text-decoration: none;
}

.policy-menu-list a.active {
    font-weight: 700;
    background: var(--background-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.main-area {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.container {
    max-width: 720px;
    margin: 0;
    padding: 40px 32px 60px;
}

header {
    text-align: left;
    margin-bottom: 32px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.logo span {
    vertical-align: super;
    font-size: 0.6em;
    margin: 0 1px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
}


.content {
    background: var(--background-color);
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

ul,
ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 80px;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Table of Contents */
.toc {
    background-color: var(--surface-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.toc h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-primary);
    font-size: 15px;
}

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px 14px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sidebar .logo {
        margin-bottom: 0;
        padding: 0;
        font-size: 22px;
    }

    .policy-menu-wrap {
        padding: 0;
    }

    .policy-menu-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .policy-menu-list a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 24px 16px 40px;
    }

    h1 {
        font-size: 26px;
    }
}