.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #a5a4a1;
    background-color: #c9d3c2;
    box-shadow: 0 2px 8px rgba(79, 94, 78, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    width: 48px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.brand .brand-name {
    font-size: 1.2rem;
    white-space: nowrap;
}

.menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #5f705e;
    border-radius: 50%;
    color: #4f5e4e;
    background-color: #f7f4ee;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-open .menu-button {
    color: #ffffff;
    background-color: #5f705e;
}

.menu-button:active {
    transform: scale(0.92);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.main-nav {
    display: none;
    flex-basis: 100%;
}

.menu-open .main-nav {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0 8px;
}

.nav-link {
    display: block;
    padding: 6px 14px;
    border: 2px solid transparent;
    border-radius: 24px;
    font-size: 1.05rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #4f5e4e;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.nav-link.active {
    border-color: #5f705e;
    background-color: #f7f4ee;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #ffffff;
    border-color: #5f705e;
    background-color: #5f705e;
}

.nav-link:active {
    transform: scale(0.96);
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    background-color: #5f705e;
}

.feature-box-icon {
    width: 72px;
    flex-shrink: 0;
}

.feature-box-text {
    flex: 1;
}

.feature-box-text h1,
.feature-box-text h2 {
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-box-text h2 {
    font-size: 1.25rem;
}

.feature-box-text h1 {
    font-size: 2rem;
    line-height: 1.2;
}

.feature-box .button {
    flex-shrink: 0;
}

.page-intro {
    display: grid;
    gap: 24px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 24px;
}

.page-intro h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-intro h1::after {
    content: "";
    display: block;
    width: 96px;
    height: 3px;
    margin-top: 12px;
    background-color: #5f705e;
}

.page-intro-text p {
    margin-top: 16px;
    font-size: 1.1rem;
}

.page-intro-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 1px solid #a5a4a1;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 32px 16px 40px;
    border-top: 1px solid #a5a4a1;
}

.site-footer {
    border-top: 2px solid #a5a4a1;
    background-color: #c9d3c2;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-brand img {
    width: 60px;
}

.footer-slogan {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    font-weight: bold;
}

.footer-slogan li::before {
    content: "\2022\00a0";
}

.social {
    display: flex;
    gap: 16px;
}

.social a {
    display: block;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.social a:hover,
.social a:focus-visible {
    transform: translateY(-3px) scale(1.05);
}

.social a:active {
    transform: scale(0.95);
}

.social img {
    width: 44px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 24px;
}

.footer-link {
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #3f4c3e;
    border-bottom-color: #5f705e;
}

.footer-link.active {
    font-weight: bold;
    border-bottom-color: #5f705e;
}

.footer-bottom {
    padding: 10px 16px;
    border-top: 1px solid #a5a4a1;
    font-size: 0.9rem;
    text-align: center;
}

@media (min-width: 480px) {
    .brand .brand-name {
        font-size: 1.4rem;
    }
}

@media (min-width: 700px) {
    .site-header {
        padding: 8px 24px;
    }

    .brand img {
        width: 56px;
    }

    .brand .brand-name {
        font-size: 1.6rem;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .feature-box {
        flex-direction: row;
        text-align: left;
    }

    .page-intro {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 40px;
    }

    .page-intro h1 {
        font-size: 2.6rem;
    }

    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 16px 24px;
    }

    .footer-brand {
        flex-direction: row;
        gap: 16px;
        text-align: left;
    }

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

    .footer-navigation {
        flex-basis: 100%;
    }
}

@media (min-width: 1028px) {
    .site-header {
        flex-wrap: nowrap;
        gap: 16px;
        padding: 8px 32px;
    }

    .brand {
        gap: 12px;
    }

    .brand img {
        width: 64px;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .brand .brand-name {
        font-size: 1.7rem;
    }

    .menu-button {
        display: none;
    }

    .main-nav {
        display: block;
        flex-basis: auto;
    }

    .nav-list {
        gap: 8px;
        padding: 0;
    }

    .page-intro {
        padding: 40px 48px 32px;
    }

    .page-intro h1 {
        font-size: 2.9rem;
    }

    .footer-main {
        flex-wrap: nowrap;
        padding: 8px 48px;
    }

    .footer-brand img {
        width: 72px;
    }

    .footer-navigation {
        flex-basis: 380px;
        padding-left: 24px;
        border-left: 4px solid #7a7a78;
    }
}
