:root {
    color-scheme: light;
    --canvas: #f5f7fa;
    --surface: #ffffff;
    --ink: #161b26;
    --muted: #5f6878;
    --line: #d9dee7;
    --primary: #275dab;
    --primary-soft: #e8effb;
    --accent: #187758;
    --max-width: 920px;
}

* {
    box-sizing: border-box;
}

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;
    letter-spacing: 0;
}

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

.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: 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

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

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

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

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

.hero-inner {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    width: min(100% - 40px, var(--max-width));
    min-height: 430px;
    margin: 0 auto;
}

.hero-icon {
    width: 144px;
    height: 144px;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(32, 51, 82, 0.16);
}

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

h1,
h2 {
    line-height: 1.35;
}

h1 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 58px);
}

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

.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;
    flex-direction: column;
    min-height: 150px;
    padding: 24px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--primary);
}

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

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

.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;
}

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: 46px;
    margin-top: 10px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.language-switch a,
.language-switch span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.language-switch span {
    color: var(--surface);
    background: var(--primary);
    border-color: var(--primary);
}

.legal-copy p,
.legal-copy li {
    color: #353d4b;
}

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

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

    .brand span {
        font-size: 13px;
    }

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: 510px;
        padding-block: 48px;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    h1 {
        font-size: 38px;
    }

    .link-band {
        grid-template-columns: 1fr;
    }

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