:root {
    --hm-shell-ink: #231f1b;
    --hm-shell-paper: #f3eee6;
    --hm-shell-white: #f8f4ed;
    --hm-shell-gold: #9f7844;
    --hm-shell-line: rgba(55, 43, 32, .16);
    --hm-shell-serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

body.home #header-container,
body.home #navi,
body.home .go-to-top-button {
    display: none !important;
}

.hm-site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    color: var(--hm-shell-ink);
    background: rgba(248, 244, 237, .96);
    border-bottom: 1px solid var(--hm-shell-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: var(--hm-shell-serif);
}

.admin-bar .hm-site-header { top: 32px; }

.hm-site-header__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: min(1440px, 100%);
    min-height: 88px;
    margin: 0 auto;
    padding-left: clamp(22px, 4vw, 64px);
}

.hm-site-header__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.hm-site-header__name {
    font-family: var(--hm-shell-serif);
    font-size: clamp(17px, 1.55vw, 24px);
    letter-spacing: .16em;
    line-height: 1.1;
}

.hm-site-header__role {
    margin-top: 7px;
    color: var(--hm-shell-gold);
    font-family: var(--hm-shell-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .32em;
}

.hm-site-header__nav { display: flex; }

.hm-site-header__nav a {
    display: flex;
    min-width: 136px;
    padding: 0 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    border-left: 1px solid var(--hm-shell-line);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--hm-shell-serif);
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.hm-site-header__nav a span {
    margin-bottom: 5px;
    color: var(--hm-shell-gold);
    font-family: var(--hm-shell-serif);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .22em;
}

.hm-site-header__nav a:hover { background: #efe7dc; }
.hm-site-header__nav .hm-site-header__first {
    min-width: 160px;
    color: var(--hm-shell-ink);
    background: rgba(255, 255, 255, .34);
    box-shadow: inset 0 0 0 1px rgba(159, 120, 68, .38);
}
.hm-site-header__nav .hm-site-header__first:hover { color: #fff; background: var(--hm-shell-ink); }
.hm-site-header__toggle { display: none; }

.hm-site-header__brand,
.hm-site-header__brand span,
.hm-site-header__nav,
.hm-site-header__nav a,
.hm-site-header__nav a span {
    font-family: var(--hm-shell-serif) !important;
}

@media (max-width: 1040px) {
    .hm-site-header__inner { min-height: 76px; padding-right: 18px; }
    .hm-site-header__toggle {
        display: flex;
        width: 48px;
        height: 48px;
        margin: auto 0;
        padding: 13px 11px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
    }
    .hm-site-header__toggle > span:not(.screen-reader-text) { display: block; width: 100%; height: 1px; background: currentColor; }
    .hm-site-header__nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 12px 22px 26px;
        background: var(--hm-shell-white);
        border-bottom: 1px solid var(--hm-shell-line);
        box-shadow: 0 18px 40px rgba(30, 24, 18, .1);
    }
    .hm-site-header.is-open .hm-site-header__nav { display: grid; }
    .hm-site-header__nav a { min-height: 66px; padding: 10px 8px; align-items: flex-start; border: 0; border-bottom: 1px solid var(--hm-shell-line); }
    .hm-site-header__nav a {
        font-size: 18px;
        font-weight: 600;
        letter-spacing: .02em;
    }
    .hm-site-header__nav a span {
        margin-bottom: 9px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .24em;
    }
    .hm-site-header__nav .hm-site-header__first { margin-top: 12px; padding-left: 20px; border: 0; }
}

@media (max-width: 782px) {
    .admin-bar .hm-site-header { top: 46px; }
}
