:root {
    --header-height: 84px;
    --header-bg: #fff;
    --text-color: #222;
    --tel-color: #536251;
    --contact-color: #b96c46;
    --border-color: #e5e5e5;
}

body.menu-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    width: 100%;
    max-width: 1440px;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 clamp(12px, 1.4vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    box-sizing: border-box;
}

.site-header__brand {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #111;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.site-header__brand-main {
    font-size: clamp(22px, 1.9vw, 28px);
    font-weight: 700;
    letter-spacing: .16em;
    white-space: nowrap;
}

.site-header__brand-sub {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .04em;
    color: #555;
    white-space: nowrap;
}

.site-header__nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
}

.site-header__nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 1.5vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__nav li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.site-header__nav a {
    display: block;
    color: var(--text-color);
    font-size: clamp(12px, 1.05vw, 14px);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .25s ease;
}

.site-header__nav a:hover {
    opacity: .6;
}

.site-header__nav a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.site-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(6px, .7vw, 10px);
    margin-left: clamp(6px, .8vw, 12px);
}

.header-tel,
.header-contact {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.header-tel {
    min-width: clamp(145px, 13.5vw, 195px);
    height: clamp(48px, 4vw, 58px);
    padding: 0 clamp(10px, 1.2vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, .6vw, 9px);
    border-radius: 999px;
    background: var(--tel-color);
    color: #fff;
}

.header-tel__icon {
    flex: 0 0 auto;
    width: clamp(18px, 1.6vw, 23px);
    height: clamp(18px, 1.6vw, 23px);
    object-fit: contain;
}

.header-tel__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.header-tel__number {
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.header-tel__time {
    margin-top: 4px;
    font-size: clamp(7px, .62vw, 9px);
    line-height: 1;
    white-space: nowrap;
}

.header-contact {
    height: clamp(48px, 4vw, 58px);
    padding: 0 clamp(12px, 1.4vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, .6vw, 8px);
    border-radius: 999px;
    background: var(--contact-color);
    color: #fff;
    font-size: clamp(11px, .95vw, 14px);
    font-weight: 700;
    transition: opacity .25s ease;
}

.header-contact:hover {
    opacity: .8;
}

.header-contact__icon {
    flex: 0 0 auto;
    width: clamp(18px, 1.5vw, 22px);
    height: clamp(18px, 1.5vw, 22px);
    object-fit: contain;
}

.header-contact__arrow {
    flex: 0 0 auto;
    font-size: clamp(11px, 1vw, 14px);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 8px;
    width: 28px;
    height: 2px;
    background: #222;
    transition: .3s ease;
}

.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 30px;
}

.hamburger.is-open span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.mobile-menu,
.sp-bottom-cta {
    display: none;
}

@media(max-width:1280px) {
    .site-header__inner {
        padding: 0 12px;
        gap: 8px;
    }

    .site-header__brand-main {
        font-size: 21px;
    }

    .site-header__brand-sub {
        font-size: 9px;
    }

    .site-header__nav ul {
        gap: 18px;
    }

    .site-header__nav a {
        font-size: 12px;
    }

    .site-header__actions {
        margin-left: 6px;
        gap: 6px;
    }

    .header-tel {
        min-width: 145px;
        height: 50px;
        padding: 0 9px;
    }

    .header-tel__number {
        font-size: 12px;
    }

    .header-contact {
        height: 50px;
        padding: 0 10px;
        font-size: 10.5px;
    }
}

@media(max-width:1180px) {
    .site-header__inner {
        padding: 0 10px;
        gap: 6px;
    }

    .site-header__brand-main {
        font-size: 20px;
    }

    .site-header__brand-sub {
        font-size: 9px;
    }

    .site-header__nav ul {
        gap: 15px;
    }

    .site-header__nav a {
        font-size: 11.8px;
    }

    .header-tel {
        min-width: 138px;
        height: 48px;
        padding: 0 8px;
    }

    .header-contact {
        height: 48px;
        padding: 0 9px;
        font-size: 10px;
    }
}

@media(max-width:1080px) {
    .site-header__inner {
        padding: 0 8px;
        gap: 5px;
    }

    .site-header__brand-main {
        font-size: 19px;
    }

    .site-header__brand-sub {
        font-size: 8.5px;
    }

    .site-header__nav ul {
        gap: 12px;
    }

    .site-header__nav a {
        font-size: 11.5px;
    }

    .header-tel {
        min-width: 130px;
        height: 46px;
        padding: 0 7px;
        gap: 5px;
    }

    .header-tel__number {
        font-size: 11px;
    }

    .header-tel__time {
        font-size: 7px;
    }

    .header-contact {
        height: 46px;
        padding: 0 8px;
        gap: 5px;
        font-size: 9.5px;
    }

    .header-tel__icon,
    .header-contact__icon {
        width: 16px;
        height: 16px;
    }
}

@media(max-width:980px) {
    .site-header__brand-main {
        font-size: 18px;
    }

    .site-header__brand-sub {
        font-size: 8px;
    }

    .site-header__nav ul {
        gap: 10px;
    }

    .site-header__nav a {
        font-size: 11px;
    }

    .header-tel {
        min-width: 124px;
    }

    .header-contact {
        padding: 0 7px;
    }
}

@media(max-width:900px) {
    :root {
        --header-height: 64px;
    }

    .admin-bar .site-header {
        top: 46px;
    }

    .site-header__inner {
        height: 64px;
        padding: 0 15px;
        justify-content: center;
        position: relative;
    }

    .site-header__nav,
    .site-header__actions {
        display: none;
    }

    .site-header__brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        max-width: calc(100% - 120px);
    }

    .site-header__brand-main {
        font-size: 20px;
        letter-spacing: .16em;
    }

    .site-header__brand-sub {
        max-width: 100%;
        margin-top: 5px;
        font-size: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 64px);
        padding: 30px 22px 120px;
        background: #fff;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
        overflow-y: auto;
        box-sizing: border-box;
        z-index: 1001;
    }

    .mobile-menu.is-open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .admin-bar .mobile-menu {
        top: 110px;
        height: calc(100dvh - 110px);
    }

    .mobile-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu li a {
        display: block;
        padding: 18px 5px;
        color: var(--text-color);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.5;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-menu__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 28px;
    }

    .mobile-menu__tel,
    .mobile-menu__contact {
        min-width: 0;
        min-height: 56px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 6px;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .mobile-menu__tel {
        background: var(--tel-color);
    }

    .mobile-menu__contact {
        background: var(--contact-color);
    }

    .mobile-menu__actions img {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .sp-bottom-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 1000;
    }

    .sp-bottom-cta a {
        min-width: 0;
        min-height: 62px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .sp-bottom-cta img {
        flex: 0 0 auto;
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .sp-bottom-cta__tel {
        background: var(--tel-color);
    }

    .sp-bottom-cta__contact {
        background: var(--contact-color);
    }
}

@media(max-width:480px) {
    .site-header__inner {
        padding: 0 10px;
    }

    .site-header__brand-main {
        font-size: 18px;
    }

    .site-header__brand-sub {
        font-size: 8px;
    }

    .hamburger {
        right: 6px;
        transform: translateY(-50%) scale(.9);
    }

    .mobile-menu {
        padding: 24px 16px 110px;
    }

    .mobile-menu li a {
        padding: 16px 4px;
        font-size: 14px;
    }

    .mobile-menu__actions {
        gap: 6px;
    }

    .mobile-menu__tel,
    .mobile-menu__contact {
        min-height: 52px;
        padding: 0 6px;
        gap: 5px;
        font-size: 11px;
    }

    .mobile-menu__actions img {
        width: 18px;
        height: 18px;
    }

    .sp-bottom-cta a {
        min-height: 58px;
        padding: 0 6px;
        gap: 5px;
        font-size: 12px;
    }

    .sp-bottom-cta img {
        width: 20px;
        height: 20px;
    }
}