:root {
    --color-primary: #59aa1e;
    --color-primaryDark: #316b00;
    --color-textMain: #2d2d2d;
    --color-textMuted: #5e655c;
    --color-surfaceLow: #f6f3f2;
    --color-surfaceGreen: #f9fbf6;
    --color-borderSoft: #e6e6e6;
    --color-chipBg: #eff8e6;
    --font-headline: "Roboto", sans-serif;
    --font-body: "Roboto", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
    --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.05);
    --maxw: 900px;
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    background: var(--color-surfaceLow);
    color: var(--color-textMain);
    font-family: var(--font-body);
    line-height: 1.78;
    -webkit-text-size-adjust: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

a {
    color: var(--color-primaryDark);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

.appbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 76px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-borderSoft);
    backdrop-filter: blur(14px);
}

.appbar-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.brand-logo-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.brand-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-logo {
    margin: 0;
    font-family: var(--font-headline);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-logo-q {
    color: var(--color-primary);
}

.brand-logo-rest {
    color: var(--color-textMain);
}

.brand-subtitle {
    margin: 5px 0 0;
    color: var(--color-textMuted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.page-label {
    flex-shrink: 0;
    color: var(--color-primaryDark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.wrap {
    max-width: var(--maxw);
    margin: 28px auto 48px;
    padding: 0 16px;
}

.card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid rgba(230, 230, 230, 0.82);
    box-shadow: var(--shadow-card);
    padding: 30px;
}

.meta {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--color-chipBg);
    color: var(--color-primaryDark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
}

.heading {
    margin: 0 0 8px;
    font-family: var(--font-headline);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.04em;
    color: var(--color-textMain);
}

.article {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(192, 202, 179, 0.35);
}

.article h3 {
    margin: 0 0 10px;
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.42;
    color: var(--color-primaryDark);
    letter-spacing: -0.01em;
}

.article p {
    margin: 9px 0;
    color: var(--color-textMain);
    font-size: 14px;
    font-weight: 500;
}

ol {
    margin: 10px 0 0;
    padding-left: 1.6em;
}

ol li {
    margin: 6px 0;
    padding-left: 0.35em;
    color: var(--color-textMain);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.article > ol {
    margin-top: 12px;
    padding-left: 1.8em;
}

.article > ol > li {
    margin: 7px 0;
    font-weight: 600;
}

.article > ol > li::marker {
    color: var(--color-primaryDark);
    font-weight: 900;
}

.article ol ol {
    margin-top: 6px;
    padding-left: 1.4em;
}

.article ol ol > li {
    margin: 4px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-textMuted);
}

.article ol ol > li::marker {
    color: var(--color-textMuted);
}

ul {
    list-style: none;
    margin: 12px 0 0;
    padding-left: 0;
}

ul li {
    position: relative;
    margin: 8px 0;
    padding-left: 18px;
    color: var(--color-textMain);
    font-size: 14px;
    font-weight: 500;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--color-primary);
}

.effective-date {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--color-chipBg);
    color: var(--color-primaryDark);
    font-size: 13px;
    font-weight: 900;
}

footer {
    margin: 0;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--color-borderSoft);
    background: #ffffff;
    color: rgba(45, 45, 45, 0.45);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.return-home-wrap {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.return-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.return-home-button:hover {
    text-decoration: none;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.return-home-button:active {
    transform: translateY(0);
}

dl {
    margin: 0;
}

dt {
    margin-top: 16px;
    color: var(--color-primaryDark);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

dd {
    margin: 5px 0 0;
    color: var(--color-textMain);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.note {
    color: var(--color-textMuted);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .appbar-inner {
        padding: 12px 14px;
        align-items: flex-start;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 16px;
    }

    .brand-logo {
        font-size: 24px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .page-label {
        display: none;
    }

    .wrap {
        margin: 20px auto 36px;
        padding: 0 12px;
    }

    .card {
        border-radius: 24px;
        padding: 22px 18px;
    }

    .article {
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media print {
    html,
    body {
        background: #ffffff;
        color: #000000;
    }

    .appbar {
        position: static;
        border-bottom: 1px solid #dddddd;
        backdrop-filter: none;
    }

    .wrap {
        margin: 0 auto;
        padding: 0;
    }

    .card {
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 20px 0;
    }

    .effective-date {
        border: 1px solid #dddddd;
        background: #ffffff;
        color: #000000;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    footer {
        border-top: 1px solid #dddddd;
        background: #ffffff;
    }
}
