:root {
    color-scheme: light;
    --page-background: #eeeeee;
    --document-background: rgba(255, 255, 255, 0.92);
    --text-color: #303030;
    --muted-color: #6f6f6f;
    --line-color: #dddddd;
    --link-color: #3f3f3f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(145deg, #f7f7f7 0%, var(--page-background) 100%);
    color: var(--text-color);
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.9;
}

a {
    color: var(--link-color);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #000000;
}

.site-header {
    width: min(960px, calc(100% - 2rem));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    display: block;
}

.home-link {
    color: var(--muted-color);
    font-size: 0.9rem;
    text-decoration: none;
}

main {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
}

.terms-document {
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: var(--document-background);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.terms-heading {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-color);
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.mobile-break {
    display: none;
}

.revision-dates {
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.revision-dates div {
    display: flex;
    gap: 0.75rem;
}

.revision-dates dt {
    font-weight: 700;
}

.revision-dates dd {
    margin: 0;
}

.terms-document > p {
    margin: 0;
}

section {
    margin-top: 3.5rem;
}

h2 {
    margin: 0 0 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid #666666;
    font-size: 1.45rem;
    line-height: 1.5;
}

p {
    margin: 1rem 0 0;
}

ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
}

li + li {
    margin-top: 0.65rem;
}

footer {
    padding: 2.5rem 1rem 3rem;
    color: var(--muted-color);
    font-size: 0.8rem;
    text-align: center;
}

footer p {
    margin: 0;
}

@media (max-width: 600px) {
    .site-header,
    main {
        width: min(100% - 1.25rem, 960px);
    }

    .site-header {
        min-height: 64px;
    }

    .terms-document {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .terms-heading {
        margin-bottom: 2.5rem;
    }

    .mobile-break {
        display: initial;
    }

    .revision-dates {
        display: grid;
    }

    section {
        margin-top: 2.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

@media print {
    body {
        background: #ffffff;
        font-size: 10.5pt;
    }

    .site-header,
    footer {
        display: none;
    }

    main {
        width: 100%;
    }

    .terms-document {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    section {
        break-inside: avoid;
    }
}
