:root {
    --color-brand: #009882;
    --color-white: #ffffff;
    --layout-max: 1440px;
    --layout-gutter: clamp(0.9375rem, 0.71rem + 0.97vw, 1.875rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #222222;
    background: var(--color-white);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.l-inner {
    width: min(
        calc(100% - var(--layout-gutter) - var(--layout-gutter)),
        var(--layout-max)
    );
    margin-inline: auto;
}

.fair-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--section-gap);
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    color: var(--color-white);
    background: #222222;
    border-radius: 4px;
    transform: translateY(calc(-100% - 16px));
}

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

.site-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    height: 80px;
    align-items: center;
    padding: 0 30px;
    background: var(--color-white);
    overflow: hidden;
}

.site-header__logo-link {
    display: flex;
    width: 300px;
    height: 62px;
    align-items: center;
    justify-content: flex-start;
}

.site-header__logo-link:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 6px;
}

.site-header__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.site-main {
    flex: 1;
    padding-top: 80px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: var(--color-white);
    background: var(--color-brand);
    text-align: center;
}

.site-footer__copyright {
    font-size: 10px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
}

@media (max-width: 767px) {
    .site-header {
        height: 80px;
        padding: 0 30px;
    }

    .site-header__logo-link {
        width: min(300px, calc(100vw - 60px));
        height: auto;
        aspect-ratio: 800 / 165;
    }

    .site-footer {
        padding: 10px 16px;
    }
}
