:root {
    --ink: #15392d;
    --green: #103a2d;
    --paper: #f6f6ef;
    --line: #dce4d8;
    --muted: #4d6559;
    --header-height: 74px;
    font-family: "Instrument Sans", Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
a:focus-visible, button:focus-visible {
    outline: 3px solid #568a5b;
    outline-offset: 4px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1480px;
    min-height: calc(var(--header-height) - 1px);
    padding: 0 clamp(20px, 5vw, 72px);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    white-space: nowrap;
}
.wordmark small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .63rem;
    letter-spacing: .14em;
}
.brand-logo {
    display: block;
    width: clamp(152px, 18vw, 198px);
    height: auto;
}
.area-nav { display: flex; align-items: center; gap: 8px; }
.area-nav a {
    padding: 10px 15px;
    border-radius: 7px;
    font-weight: 650;
    white-space: nowrap;
}
.area-nav a:hover, .area-nav a[aria-current] { background: #e8efe3; }
.landing {
    width: min(1200px, 100% - 2 * clamp(20px, 5vw, 72px));
    margin: 0 auto;
    padding: clamp(26px, 5vw, 64px) 0 90px;
}
.landing-crumb { color: var(--muted); margin-bottom: 19px; }
.landing-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.landing-crumb span { margin: 0 7px; }
.landing-hero {
    display: grid;
    align-items: center;
    background: #e9efe2;
    border-radius: 10px;
    overflow: hidden;
}
.landing-hero-home {
    grid-template-columns: 1.22fr 1fr;
    background: var(--green);
    color: #fff;
}
.hero-copy {
    padding: clamp(26px, 5vw, 62px);
}
.landing-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.05em;
    color: inherit;
}
.landing-hero p {
    max-width: 42ch;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.55;
}
.landing-hero-home p { color: #e1eadc; }
.hero-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1.52;
    height: 100%;
    object-fit: cover;
    object-position: center 53%;
}
.landing-section { margin-top: clamp(34px, 6vw, 62px); }
.landing-section h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.area-grid, .landing .topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area-card, .landing .topic-card, .empty {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.area-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 34px); }
.area-card:hover, .landing .topic-card:hover { border-color: #739681; background: #fbfcf8; }
.area-icon { display: inline-grid; place-items: center; width: 51px; height: 51px; border-radius: 12px; background: #e3eddd; color: #1c523b; }
.area-icon svg { width: 26px; height: 26px; }
.system .area-icon { background: #f2ead6; color: #654e23; }
.ki .area-icon { background: #ece8f3; color: #554673; }
.area-card h3 { margin: 22px 0 4px; font-size: 1.4rem; }
.area-card p, .empty p { color: var(--muted); line-height: 1.55; margin: 0 0 24px; }
.area-action { margin-top: auto; font-weight: 750; }
.area-action span { margin-left: 7px; }
.landing .topic-card { padding: 23px; }
.landing .topic-card span { color: var(--muted); }
.empty { padding: clamp(24px, 4vw, 46px); }
.empty h2 { margin-top: 18px; margin-bottom: 9px; }
.empty p { margin-bottom: 0; }
.article-page .sidebar, .article-page .toc { top: var(--header-height); }
.article-page .sidebar { height: calc(100vh - var(--header-height)); background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.article-page .brand small, .article-page .side-label { color: var(--muted); }
.article-page .side-link { color: var(--ink); }
.article-page .side-link:hover { background: #eef1e9; }
.article-page .main { margin: 0 auto; }
.article-page .hero { padding: 28px; border-radius: 18px; background: #e9efe2; }
.article-page [id] { scroll-margin-top: calc(var(--header-height) + 16px); }
@media (max-width: 850px) {
    .area-grid, .landing .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-page .mobile-head { top: var(--header-height); }
    .article-page .sidebar.show { top: var(--header-height); }
}
@media (max-width: 570px) {
    :root { --header-height: 100px; }
    .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
    .area-nav { margin-left: -10px; gap: 2px; }
    .area-nav a { padding: 7px 10px; font-size: .91rem; }
    .area-grid, .landing .topic-grid, .landing-hero-home { grid-template-columns: 1fr; }
    .hero-photo { height: auto; aspect-ratio: 1.65; }
    .article-page .hero { padding: 21px; }
}
.article-page .toc {
    height: calc(100vh - var(--header-height));
    overflow: auto;
}
@media (max-width: 700px) {
    .article-page .sidebar,
    .article-page .sidebar.show {
        top: auto;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

.system-map > p {
    max-width: 65ch;
    color: var(--muted);
    line-height: 1.55;
}
.system-map-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.system-map-flow li {
    position: relative;
    min-width: 0;
}
.system-map-flow li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -14px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #61816b;
    border-right: 2px solid #61816b;
    transform: translateY(-50%) rotate(45deg);
}
.system-map-flow a {
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 100%;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.system-map-flow a:hover {
    border-color: #739681;
    background: #fbfcf8;
}
.system-map-flow strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.system-map-flow span {
    color: var(--muted);
    line-height: 1.45;
}
@media (max-width: 900px) {
    .system-map-flow {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .system-map-flow li + li::before {
        top: -12px;
        left: 24px;
        transform: rotate(135deg);
    }
}
