:root {
    color-scheme: light;
    --canvas: #f4f7f6;
    --surface: #ffffff;
    --ink: #172027;
    --muted: #65727c;
    --line: #dbe3e2;
    --primary: #0f718e;
    --primary-dark: #0a5a72;
    --primary-soft: #dff2f6;
    --max-width: 920px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--canvas);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
    line-height: 1.75;
}

a {
    color: var(--primary-dark);
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(15, 113, 142, 0.28);
    outline-offset: 3px;
}

.site-header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: var(--primary);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 18px;
}

.page-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav a {
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.hero {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.hero-inner {
    display: flex;
    min-height: 360px;
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

h1,
h2 {
    line-height: 1.35;
}

h1 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 60px);
}

h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

p,
li {
    overflow-wrap: anywhere;
}

.lead {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.link-band,
.notice-band,
.content-page {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
}

.link-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-block: 48px;
}

.page-link {
    display: flex;
    min-height: 190px;
    padding: 26px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.page-link:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.link-label {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 750;
}

.link-action {
    margin-top: auto;
    padding-top: 20px;
    color: var(--primary-dark);
    font-weight: 700;
}

.notice-band {
    padding: 40px 0 72px;
    border-top: 1px solid var(--line);
}

.notice-band p {
    max-width: 760px;
    color: var(--muted);
}

.content-page {
    padding: 64px 0 88px;
}

.content-page > section {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.content-page > section:first-of-type {
    margin-top: 48px;
}

.updated {
    color: var(--muted);
    font-size: 14px;
}

.legal-copy p,
.legal-copy li {
    color: #35434b;
}

details {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

details:last-child {
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    font-weight: 700;
}

.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 10px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    background: var(--primary-dark);
}

footer {
    min-height: 96px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .page-link {
        transition: none;
    }
}

@media (max-width: 640px) {
    .site-header,
    footer {
        width: min(100% - 28px, var(--max-width));
    }

    .site-header {
        align-items: flex-start;
        padding-block: 16px;
        flex-direction: column;
    }

    .page-nav {
        justify-content: flex-start;
    }

    .hero-inner {
        min-height: 320px;
        width: min(100% - 28px, var(--max-width));
    }

    h1 {
        font-size: 40px;
    }

    .link-band {
        grid-template-columns: 1fr;
        width: min(100% - 28px, var(--max-width));
    }

    .content-page,
    .notice-band {
        width: min(100% - 28px, var(--max-width));
    }

    .content-page {
        padding-top: 48px;
    }

    footer {
        align-items: flex-start;
        padding-block: 24px;
        flex-direction: column;
    }
}
