html,
body {
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none;
}

a {
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 200ms ease-in-out;
}

a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms ease-in-out;
    pointer-events: none;
}

a:hover::after,
a:focus-visible::after {
    transform: scaleX(1);
    background-size: 100% 1px;
}

:root {
    --header-width: 270px;
    --footer-height: 250px;
}

:root {
    --container-width: 1100px;
    --container-width-wide: 1200px;
    --gutter-width: 1rem;
    --space-small: 2rem;
    --space-middle: 4rem;
    --space-large: 7rem;
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-family-serif: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho Light", "YuMincho", serif;
    --color-main: #041224;
    --color-text: #333333;
}

.background {
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header-main {
    display: block;
    flex-grow: 1;
    min-height: 100vh;
}

.header {
    width: var(--header-width);
    background-color: #24907e;
    text-align: left;
    font-size: 20px;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 5;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
}

.header-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 20px 80px 20px;
    will-change: transform;
}

.header-content h1 .site-title {
    color: inherit;
    text-decoration: none;
    cursor: default;
    display: inline-block;
}

.header-content h1 .site-title:hover,
.header-content h1 .site-title:focus {
    color: inherit;
    text-decoration: none;
}

.header-content h1 .site-title::after {
    display: none !important;
}

.header-content nav {
    position: absolute;
    bottom: 0;
    padding: 10px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
    transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
    transform-origin: center;
}

.header.open .menu-toggle .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header.open .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}

.header.open .menu-toggle .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-content a {
    display: block;
    width: calc(var(--header-width)*0.8);
}

.header-content a::after {
    left: 0;
    right: 0;
}

.header-content li {
    list-style: none;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 200;
}

.header-content li a {
    color: #fff;
}

.main {
    position: relative;
    width: calc(100% - var(--header-width));
    left: var(--header-width);
    padding-bottom: 100px;
}

.title {
    text-align: center;
    font-size: 56px;
    margin-top: 56px;
    margin-bottom: 64px;
    letter-spacing: 0.02em;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
}

.title p {
    font-family: 'Inter Tight';
    font-size: 0.52em;
    letter-spacing: 0.12em;
    color: #4b5563;
}

.content {
    margin: 0 auto;
    max-width: 1040px;
    padding: 0 24px;
}

.footer {
    width: 100vw;
    height: var(--footer-height);
    background-color: black;
    color: white;
    padding: 20px;
    position: relative;
    z-index: 20;
}

.footer-inner {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.footer-inner h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-sitemap {
    display: grid;
    width: 50%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    align-items: start;
    gap: 8px 10px;
}

.footer-sitemap ul {
    display: contents;
    list-style: none;
}

.footer-sitemap li {
    margin-bottom: 0;
    padding: 2px 0;
}

.footer-sitemap li a {
    display: block;
    color: #e5e7eb;
    width: 80%;
    white-space: nowrap;
}

.footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    font-size: 13px;
    margin-top: 15px;
}

@media screen and (max-width: 1310px) {
    .header {
        position: relative;
        width: 100%;
        height: auto;
    }

    .header-main {
        display: block;
    }

    .main {
        width: 100%;
        left: 0;
        padding: 20px 0 100px 0;
    }

    .header-content {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding: 6px 16px;
        min-height: 48px;
    }

    .menu-toggle {
        display: inline-flex;
        position: static;
        z-index: 30;
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: center;
        padding: 6px;
        margin-left: auto;
    }

    .menu-toggle {
        align-self: flex-start;
        margin-top: 16px;
    }

    .menu-toggle .bar {
        margin: 0;
    }

    .header-content {
        height: auto;
        overflow: visible;
        padding: 6px 16px;
    }

    .header-content nav {
        position: static;
        padding: 0;
        width: 100%;
        order: 3;
    }

    #site-navigation {
        position: static;
        top: auto;
        right: auto;
        background: #24907e;
        color: #fff;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
        max-height: 0;
        transition: max-height 260ms ease;
        z-index: 25;
    }

    #site-navigation li {
        margin-bottom: 8px;
    }

    .header.open #site-navigation {
        max-height: 400px;
    }

    .header-content a {
        display: block;
        width: 40%;
        padding: 8px 4px;
    }

    .header-content h1 .site-title {
        font-size: 35px;
        line-height: 1.5;
    }

    .header-content h1 {
        margin: 0;
        display: block;
    }

    .header-content li {
        font-size: 20px;
    }

    .title {
        font-size: 40px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .footer {
        padding: 12px 16px;
        height: auto;
    }

    .footer-inner {
        padding: 8px 0;
    }

    .footer-inner h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer-sitemap {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
        grid-auto-flow: column;
        align-items: start;
        gap: 8px 10px;
        font-size: 15px;
    }

    .dammy {
        display: none;
    }

    .sitemap-col a {
        font-size: 14px;
    }

    .footer-meta {
        text-align: center;
        font-size: 12px;
        margin-top: 20px;
        border-top: none;
        color: rgba(255, 255, 255, 0.8);
    }
}