:root {
    --navy: #061a3d;
    --blue: #003366;
    --blue-bright: #064b8f;
    --ink: #1f2933;
    --muted: #526477;
    --line: #dfe7ef;
    --pale: #f5f8fc;
    --white: #fff;
    --container: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.tracking-pixel {
    display: none;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

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

.brand-link {
    display: inline-flex;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: auto;
    height: 52px;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.apply-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-link.active {
    background: #edf3f9;
}

.apply-link {
    border: 2px solid var(--navy);
}

.nav-link:hover,
.nav-link:focus-visible,
.apply-link:hover,
.apply-link:focus-visible {
    background: var(--navy);
    color: var(--white);
}

:focus-visible {
    outline: 3px solid #1b6eb8;
    outline-offset: 3px;
}

.program-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 253, 0.97) 57%, rgba(232, 242, 255, 0.88) 100%),
        url('/static/brand/hero-background-clean.jpg') center / cover no-repeat;
}

.hero-layout {
    min-height: 490px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
    align-items: center;
    gap: 48px;
    padding-block: 72px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.list-name,
.index-title,
.proposal-label {
    color: var(--blue-bright);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.program-hero h1 {
    max-width: 760px;
    margin-top: 18px;
    color: var(--navy);
    font-size: clamp(2.55rem, 5vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-subtitle {
    max-width: 720px;
    margin-top: 26px;
    color: #34495e;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.55;
}

.submitter {
    margin-top: 28px;
    color: var(--navy);
    font-weight: 700;
}

.submitter span {
    color: var(--muted);
    font-weight: 400;
}

.hero-symbol {
    width: min(100%, 390px);
    height: auto;
    justify-self: end;
    opacity: 0.88;
}

.program-index {
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding-block: 30px 34px;
}

.index-title {
    margin-bottom: 16px;
}

.index-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    list-style: none;
}

.index-list a {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.index-list a:hover,
.index-list a:focus-visible {
    border-color: #9bb9d7;
    background: #f1f6fb;
}

.index-list span {
    color: var(--blue-bright);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.program-area {
    scroll-margin-top: 86px;
    border-bottom: 1px solid var(--line);
    padding-block: clamp(64px, 8vw, 110px);
}

.program-area:nth-child(even) {
    background: var(--pale);
}

.area-layout {
    display: grid;
    grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 86px);
}

.area-number {
    color: #d8e5f1;
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.area-content {
    max-width: 820px;
}

.area-content h2 {
    max-width: 790px;
    color: var(--navy);
    font-size: clamp(2rem, 3.8vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.area-content h3 {
    color: var(--blue);
    font-size: 0.78rem;
    letter-spacing: 0.13em;
}

.goal-block {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--blue-bright);
}

.goal-block p {
    margin-top: 8px;
    color: var(--navy);
    font-size: clamp(1.13rem, 2vw, 1.42rem);
    font-weight: 700;
    line-height: 1.45;
}

.measures-block {
    margin-top: 36px;
}

.measure-list {
    margin-top: 16px;
    list-style: none;
}

.measure-list li {
    position: relative;
    padding: 15px 0 15px 34px;
    border-top: 1px solid var(--line);
    font-size: 1.06rem;
}

.measure-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.measure-list li::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5px;
    width: 10px;
    height: 3px;
    background: var(--blue-bright);
}

.proposal-label {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 7px 11px;
    border: 1px solid #9bb9d7;
    border-radius: 999px;
    background: #edf4fb;
}

.proposal-notice {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid #ccddec;
    border-radius: 8px;
    background: #f4f8fc;
    color: var(--navy);
    font-weight: 700;
}

.pension-grid,
.funding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.detail-block,
.funding-grid article {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.detail-block > p,
.funding-grid article > p {
    margin-top: 13px;
}

.compact li {
    padding-block: 11px;
    padding-left: 26px;
    font-size: 0.98rem;
}

.compact li::before {
    top: 22px;
    left: 2px;
}

.principle-block,
.deferral-block,
.funding-block {
    margin-top: 42px;
}

.principle-block {
    padding: 26px 28px;
    border-left: 4px solid var(--navy);
    background: var(--navy);
    color: var(--white);
}

.principle-block h3 {
    color: #bcd8f0;
}

.principle-block p {
    margin-top: 12px;
}

.deferral-block > p {
    margin-top: 13px;
}

.bonus-timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.bonus-step {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.bonus-step:last-child {
    border-right: 0;
    background: #e9f3fc;
}

.bonus-step span {
    color: var(--muted);
    font-size: 0.84rem;
}

.bonus-step strong {
    color: var(--blue);
    font-size: 1.18rem;
}

.maximum-bonus {
    text-align: right;
}

.maximum-bonus span {
    color: var(--muted);
}

.funding-grid article {
    border-top: 5px solid var(--blue);
}

.funding-grid h4 {
    color: var(--navy);
    font-size: 1.2rem;
}

.funding-summary {
    min-height: 52px;
    color: var(--blue-bright);
    font-weight: 700;
}

.program-note {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #b8c9da;
    color: var(--muted);
}

.program-note p {
    margin-top: 7px;
    font-size: 0.93rem;
}

.site-footer {
    padding-block: 34px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

.site-footer p:first-child {
    font-weight: 800;
}

.site-footer p + p {
    margin-top: 4px;
    color: #c9d8e7;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .hero-layout {
        min-height: 430px;
        grid-template-columns: minmax(0, 1fr) 190px;
        padding-block: 56px;
    }

    .area-layout {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 34px;
    }

    .bonus-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bonus-step:nth-child(3) {
        border-right: 0;
    }

    .bonus-step:nth-child(-n+3) {
        border-bottom: 1px solid var(--line);
    }
}

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

    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .brand-logo {
        height: 40px;
    }

    .site-actions {
        gap: 4px;
    }

    .nav-link,
    .apply-link {
        padding-inline: 10px;
        font-size: 0.86rem;
    }

    .hero-layout {
        min-height: 0;
        display: block;
        padding-block: 48px 42px;
    }

    .program-hero h1 {
        max-width: 520px;
        font-size: clamp(2.35rem, 12vw, 3.8rem);
        line-height: 1.02;
    }

    .hero-subtitle {
        margin-top: 21px;
    }

    .hero-symbol {
        position: absolute;
        right: -65px;
        bottom: -58px;
        width: 235px;
        opacity: 0.12;
    }

    .program-index {
        padding-block: 24px 28px;
    }

    .index-list {
        display: flex;
        gap: 9px;
        width: calc(100% + 16px);
        padding: 2px 34px 12px 2px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: #91abc5 #edf3f9;
    }

    .index-list li {
        flex: 0 0 min(76vw, 270px);
        scroll-snap-align: start;
    }

    .index-list a {
        min-height: 58px;
    }

    .program-area {
        scroll-margin-top: 72px;
        padding-block: 58px;
    }

    .area-layout {
        display: block;
    }

    .area-number {
        margin-bottom: 22px;
        font-size: 4.7rem;
    }

    .area-content h2 {
        overflow-wrap: anywhere;
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .goal-block {
        margin-top: 24px;
        padding-left: 15px;
    }

    .measures-block {
        margin-top: 30px;
    }

    .pension-grid,
    .funding-grid {
        grid-template-columns: 1fr;
    }

    .funding-summary {
        min-height: 0;
    }

    .bonus-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bonus-step,
    .bonus-step:nth-child(3) {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .bonus-step:nth-child(even) {
        border-right: 0;
    }

    .bonus-step:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .maximum-bonus {
        text-align: left;
    }
}

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

    .index-list {
        width: calc(100% + 12px);
    }

    .brand-logo {
        height: 36px;
    }

    .nav-link,
    .apply-link {
        padding-inline: 8px;
        font-size: 0.8rem;
    }

    .program-hero h1 {
        font-size: 2.2rem;
    }

    .detail-block,
    .funding-grid article,
    .principle-block {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
