:root {
    color-scheme: light dark;
    --page: #f7f8f6;
    --surface: #ffffff;
    --surface-soft: #f0f3ef;
    --text: #242b28;
    --muted: #65716a;
    --accent: #3f6655;
    --accent-hover: #305241;
    --accent-soft: #edf3ee;
    --on-accent: #ffffff;
    --border: #dce3dc;
    --border-strong: #839188;
    --focus: #3f6655;
    --shadow-popover: 0 8px 28px rgb(27 43 34 / 10%);
    --radius: 8px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #171c19;
        --surface: #202723;
        --surface-soft: #28312b;
        --text: #e7ece8;
        --muted: #a5b1a8;
        --accent: #a6c7b2;
        --accent-hover: #c2dacb;
        --accent-soft: #293b30;
        --on-accent: #171c19;
        --border: #364239;
        --border-strong: #758c7b;
        --focus: #a6c7b2;
        --shadow-popover: 0 8px 28px rgb(0 0 0 / 24%);
    }
}

html {
    background: var(--page);
    color: var(--text);
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 24px;
}

body {
    box-sizing: border-box;
    width: 100%;
    max-width: 1008px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, p {
    margin-top: 0;
}

h1, h2, h3, h4, h5 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(26px, 4vw, 32px);
    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

h4, h5 {
    margin-bottom: 8px;
    font-size: 16px;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--accent-hover);
}

button, input, select, textarea {
    box-sizing: border-box;
    font: inherit;
}

button, input[type="button"], select {
    cursor: pointer;
}

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

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

img {
    max-width: 100%;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0 0 32px;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.breadcrumb a {
    display: inline-block;
    padding: 8px 0;
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 12px;
    color: var(--muted);
}

.breadcrumb li:last-child a {
    color: var(--text);
    font-weight: 500;
}

.page-header {
    margin-bottom: 24px;
}

.page-header > :last-child {
    margin-bottom: 0;
}

.page-description {
    max-width: 720px;
    color: var(--muted);
    font-size: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.site-divider {
    height: 1px;
    margin: 24px 0;
    border: 0;
    background: var(--border);
}

.site-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.site-contact > a,
.site-contact > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.site-contact > :hover {
    border-color: var(--border-strong);
    background: var(--accent-soft);
}

.site-contact img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 600px) {
    body {
        padding: 16px 16px 32px;
    }

    .breadcrumb {
        margin-bottom: 24px;
    }

    .breadcrumb li:not(:last-child)::after {
        margin-inline: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
