:root {
    --ink: #10213d;
    --ink-soft: #31415c;
    --muted: #60708a;
    --line: #d9e0eb;
    --soft: #f4f7fb;
    --blue: #4a9cff;
    --blue-deep: #1669d8;
    --blue-pale: #eaf3ff;
    --white: #ffffff;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.8;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 48px, var(--max));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-inner {
    min-height: 76px;
}

.brand {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.brand span {
    color: var(--blue-deep);
}

.back-link {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--blue-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero {
    padding: 100px 0 76px;
    background: var(--soft);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

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

h1,
h2 {
    letter-spacing: 0;
}

h1 {
    max-width: 850px;
    margin-bottom: 22px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.18;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.28;
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.45;
}

.lead {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.page-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
    padding: 80px 0 104px;
}

.toc {
    position: sticky;
    top: 24px;
    align-self: start;
    border-top: 2px solid var(--ink);
    padding-top: 16px;
}

.toc-title {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.toc a {
    display: block;
    padding: 7px 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
    color: var(--blue-deep);
}

.legal-content {
    min-width: 0;
}

.legal-section {
    scroll-margin-top: 24px;
    border-top: 1px solid var(--line);
    padding: 44px 0;
}

.legal-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-section > p:last-child,
.legal-section > ul:last-child {
    margin-bottom: 0;
}

.notice {
    margin: 0;
    border-left: 4px solid var(--blue-deep);
    padding: 18px 20px;
    background: var(--blue-pale);
    color: var(--ink-soft);
}

.rule-list,
.details-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rule-list li,
.details-list div {
    border-top: 1px solid var(--line);
    padding: 19px 0;
}

.rule-list li:first-child,
.details-list div:first-child {
    border-top: 0;
}

.rule-list strong,
.details-list dt {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 800;
}

.details-list dt {
    font-size: 15px;
}

.details-list dd {
    margin: 0;
    color: var(--ink-soft);
}

.term-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.term {
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
}

.term h3 {
    margin-bottom: 9px;
}

.term p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.external-links a {
    color: var(--blue-deep);
    font-weight: 700;
}

.updated {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
}

.footer-brand {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
}

.footer-links a {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 36px, var(--max));
    }

    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 19px 0;
    }

    .header-inner {
        min-height: 0;
    }

    .hero {
        padding: 66px 0 52px;
    }

    .lead {
        font-size: 16px;
    }

    .page-layout {
        display: block;
        padding: 48px 0 72px;
    }

    .toc {
        position: static;
        margin-bottom: 44px;
    }

    .legal-section {
        padding: 36px 0;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
