.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: max(env(safe-area-inset-top), 0px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1f1f4;
    pointer-events: none;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
}

.lp-progressive-chrome:not(.is-lp-header-visible) .site-header {
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
}

.lp-progressive-chrome .site-header {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

:root {
    --lp-header-offset-desktop: 88px;
    --lp-header-offset-mobile: 78px;
}

.lp-page {
    padding-top: var(--lp-header-offset-desktop);
}

.lp-progressive-chrome .lp-page {
    padding-top: 0;
}

.site-header__inner {
    width: min(1120px, calc(100% - 8px));
    margin: 0 auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 500;
    color: var(--site-ink);
    text-decoration: none;
}

.brand__wordmark {
    font-family: 'Manrope', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 18px;
}

.brand__logo {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.lp-top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    flex-shrink: 0;
}

.lp-top-links__nav {
    display: none;
    align-items: center;
    gap: 20px;
    padding-right: 16px;
}

.lp-top-links__nav a {
    color: #6b6b75;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .lp-top-links__nav a:hover {
        color: #0e0e12;
    }
}

.lp-top-links__actions {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.consultation-link {
    align-self: center;
    min-height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--site-accent-deep);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.consultation-link--consult {
    background: #d2818a;
    color: #ffffff;
}

/* mobile-only download pill — revealed in the mobile media query */
.consultation-link--mobile-dl {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .consultation-link:hover {
        background: rgba(168, 54, 76, 0.08);
    }
}

@media (hover: hover) and (pointer: fine) {
    .consultation-link--consult:hover {
        background: #a52f4c;
    }
}

.consultation-link__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
}

.menu-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* 상시 노출: 데스크탑 nav에 없는 항목(サロンHP作成·LINE予約システム·複数店舗の管理)이
   메뉴 패널에만 있어, 폭과 무관하게 진입점이 필요하다 */
.site-header__menu {
    display: inline-flex;
}

.menu-button__bar {
    width: 20px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--site-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu-button[aria-expanded="true"] .menu-button__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__bar:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
    position: fixed;
    top: calc(max(env(safe-area-inset-top), 0px) + 66px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 66px - max(env(safe-area-inset-top), 0px));
    max-height: calc(100dvh - 66px - max(env(safe-area-inset-top), 0px));
    z-index: 46;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4px 24px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e7e7eb;
    overflow-y: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav[hidden] {
    display: none;
}

.site-nav.is-open {
    display: flex;
}

.site-nav > a {
    display: flex;
    align-items: center;
    min-height: 54px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid #f1f1f4;
    font-size: 15px;
    font-weight: 400;
    color: var(--site-ink);
    text-decoration: none;
    letter-spacing: 0.01em;
    line-height: 1.4;
    transition: color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .site-nav > a:hover {
        color: var(--site-accent-deep);
    }
}

.site-nav > a.site-nav__faq {
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    min-height: 0;
    border: 1px solid #ebe6e8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04);
    color: var(--site-ink);
    transition: border-color 0.15s ease;
}

.site-nav__faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fdf1f4;
    color: #b4546a;
}

.site-nav__faq-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav__faq-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.site-nav__faq-note {
    color: #8b8b94;
    font-size: 12px;
    line-height: 1.5;
}

.site-nav__faq-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f4f6;
    color: #55555e;
    transition: background 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .site-nav > a.site-nav__faq:hover {
        border-color: #efc9d2;
        color: var(--site-ink);
    }

    .site-nav > a.site-nav__faq:hover .site-nav__faq-arrow {
        background: #cf8794;
        color: #ffffff;
    }
}

.site-nav__install-lead {
    max-width: 1120px;
    width: 100%;
    margin: 24px auto 0;
    color: #8b8b94;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.site-nav__store {
    max-width: 1120px;
    width: 100%;
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav__store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex: 0 0 auto;
}

.site-nav__store-link img {
    display: block;
    width: auto;
    height: 100%;
}

@media (max-width: 759px) {
    .site-header {
        top: 0;
    }

    .lp-page {
        padding-top: var(--lp-header-offset-mobile);
    }

    .site-header__inner {
        width: min(100% - 18px, 1120px);
        min-height: 58px;
        padding: 0 0 0 20px;
    }

    .brand {
        gap: 12px;
    }

    .brand__wordmark {
        font-size: 18px;
    }

    .brand__logo {
        width: 30px;
        height: 30px;
        border-radius: 12px;
    }

    .menu-button {
        width: 44px;
        height: 44px;
    }

    .lp-top-links__actions {
        gap: 8px;
    }

    .consultation-link {
        display: none;
    }

    .consultation-link--mobile-dl {
        display: inline-flex;
        position: relative;
        min-height: 34px;
        padding: 0 14px;
    }

    /* Keep the 34px pill, but make the tap area 44px tall (good-css: hit area larger than the visual). */
    .consultation-link--mobile-dl::after {
        content: "";
        position: absolute;
        inset: -5px 0;
    }

    .consultation-link--mobile-dl .consultation-link__label {
        font-size: 13px;
        white-space: nowrap;
    }

    .site-header__menu {
        margin-right: 8px;
    }

    .site-nav {
        top: calc(max(env(safe-area-inset-top), 0px) + 58px);
        max-height: calc(100vh - 58px - max(env(safe-area-inset-top), 0px));
        max-height: calc(100dvh - 58px - max(env(safe-area-inset-top), 0px));
        padding: 4px 20px 24px;
        overscroll-behavior: contain;
    }

    .site-nav > a {
        min-height: 50px;
        -webkit-tap-highlight-color: transparent;
    }

    .site-nav__store-link {
        min-height: 0;
        padding: 0;
    }
}

@media (min-width: 880px) {
    .site-header {
        top: 0;
    }

    .site-header__inner {
        width: min(1220px, calc(100% - 24px));
        min-height: 66px;
        padding: 0 12px 0 24px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .brand {
        gap: 14px;
    }

    .brand__logo {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .brand__wordmark {
        font-size: 20px;
    }

    .lp-top-links {
        align-self: center;
        gap: 24px;
    }

    .lp-top-links__nav {
        display: flex;
        gap: 30px;
        padding-right: 0;
    }

    .lp-top-links__actions {
        align-self: center;
        gap: 12px;
    }

    .consultation-link {
        min-height: 38px;
        padding: 0 18px;
    }
}

@media (min-width: 880px) and (max-width: 1080px) {
    .site-header__inner {
        width: min(100% - 28px, 1040px);
        padding-left: 18px;
        padding-right: 8px;
    }

    .lp-top-links {
        gap: 12px;
    }

    .lp-top-links__nav {
        gap: 20px;
        padding-right: 0;
    }

    .consultation-link {
        padding: 0 14px;
    }
}

@media (max-width: 520px) {
    .site-header__inner {
        padding-left: 14px;
    }

    .brand {
        gap: 10px;
    }

    .brand__wordmark {
        font-size: 16px;
    }
}
