/* PecoChat® shared header
   One navigation pattern is used by the LPs, article index and article pages.
   Page-specific styles are intentionally kept out of this file; only the
   current-page marker changes between destinations. */
:root {
    --pch-ink: #1d1d1f;
    --pch-body: #5f6675;
    --pch-teal: #2a9d8f;
    --pch-teal-dark: #1f7a6f;
    --pch-border: #eef0f2;
    --pch-border-weak: #e8ebed;
    --pch-overlay: rgba(16, 24, 40, 0.4);
    --pch-motion: cubic-bezier(0.32, 0.72, 0, 1);
    --pch-white: #ffffff;
    --pch-header-height: 60px;
    --pch-shell-width: 1280px;
    --pch-logo-width: 120px;
    --pch-nav-size: 14px;
}

.pch-header,
.pch-header * {
    box-sizing: border-box;
}

.pch-header {
    position: sticky !important;
    inset: 0 0 auto;
    z-index: 1100 !important;
    width: 100%;
    height: var(--pch-header-height) !important;
    min-height: var(--pch-header-height) !important;
    background: var(--pch-white) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    font-family:
        "SF Pro JP", "SF Pro Text", "SF Pro Display",
        "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
    letter-spacing: normal;
}

.pch-header__inner {
    width: min(100%, var(--pch-shell-width));
    height: var(--pch-header-height);
    min-height: var(--pch-header-height);
    margin: 0 auto;
    padding: 0 48px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.pch-header__brand {
    display: inline-flex !important;
    align-items: center;
    width: max-content;
    color: var(--pch-ink) !important;
    text-decoration: none !important;
    line-height: 0;
}

.pch-header__brand-wrap {
    flex: 0 0 var(--pch-logo-width);
    line-height: 0;
}

.pch-header__brand img {
    display: block !important;
    width: var(--pch-logo-width) !important;
    max-width: 42vw;
    height: 24px !important;
    object-fit: contain;
}

.pch-header__nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 36px;
    min-width: 0;
}

.pch-header__nav a,
.pch-header__login,
.pch-header__cta,
.pch-header__drawer a {
    font-family: inherit;
    text-decoration: none !important;
}

.pch-header__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--pch-ink) !important;
    font-size: var(--pch-nav-size) !important;
    font-weight: 700 !important;
    letter-spacing: normal;
    white-space: nowrap;
    transition: color 160ms ease;
}

.pch-header__nav a:hover,
.pch-header__nav a:focus-visible {
    color: var(--pch-teal-dark) !important;
}

.pch-header__nav a[aria-current="page"] {
    color: var(--pch-ink) !important;
}

.pch-header__actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 24px !important;
    min-width: max-content;
}

.pch-header__login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px !important;
    color: var(--pch-ink) !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: color 160ms ease;
}

.pch-header__login:hover,
.pch-header__login:focus-visible {
    color: var(--pch-teal-dark) !important;
}

.pch-header__cta,
.pch-header__mobile-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 20px !important;
    color: var(--pch-white) !important;
    background: var(--pch-teal) !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: background 160ms ease;
}

.pch-header__cta:hover,
.pch-header__cta:focus-visible,
.pch-header__mobile-cta:hover,
.pch-header__mobile-cta:focus-visible {
    color: var(--pch-white) !important;
    background: var(--pch-teal-dark) !important;
}

.pch-header__toggle {
    display: none !important;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

.pch-header__toggle::after,
.pch-header__drawer-close::after {
    position: absolute;
    inset: -4px;
    content: "";
}

.pch-header__toggle-icon,
.pch-header__toggle-icon::before,
.pch-header__toggle-icon::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--pch-ink);
    content: "";
    transition:
        transform 160ms ease,
        opacity 160ms ease;
}

.pch-header__toggle-icon {
    position: relative;
    margin: 0 auto;
}

.pch-header__toggle-icon::before,
.pch-header__toggle-icon::after {
    position: absolute;
    left: 0;
}

.pch-header__toggle-icon::before {
    transform: translateY(-6.5px);
}
.pch-header__toggle-icon::after {
    transform: translateY(6.5px);
}

.pch-header__toggle.is-open .pch-header__toggle-icon,
.pch-header__toggle.active .pch-header__toggle-icon {
    background: transparent;
}
.pch-header__toggle.is-open .pch-header__toggle-icon::before,
.pch-header__toggle.active .pch-header__toggle-icon::before {
    transform: rotate(45deg);
}
.pch-header__toggle.is-open .pch-header__toggle-icon::after,
.pch-header__toggle.active .pch-header__toggle-icon::after {
    transform: rotate(-45deg);
}

.pch-header__overlay {
    position: fixed !important;
    inset: 0;
    z-index: 1190 !important;
    background: var(--pch-overlay) !important;
    backdrop-filter: none !important;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 240ms var(--pch-motion),
        visibility 0s linear 240ms;
}

.pch-header__overlay.is-open,
.pch-header__overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s, 0s;
}

.pch-header__drawer {
    position: fixed !important;
    top: 0;
    right: 0;
    z-index: 1200 !important;
    display: flex !important;
    flex-direction: column;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 0 20px calc(20px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    background: var(--pch-white) !important;
    backdrop-filter: none !important;
    border-left: 1px solid var(--pch-border) !important;
    border-top: 0 !important;
    box-shadow: none !important;
    transform: translateX(100%);
    opacity: 0 !important;
    visibility: hidden;
    transition:
        transform 240ms var(--pch-motion),
        visibility 0s linear 240ms;
}

.pch-header__drawer.is-open,
.pch-header__drawer.active {
    transform: translateX(0);
    opacity: 1 !important;
    visibility: visible;
    transition-delay: 0s, 0s;
}

.pch-header__drawer-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 56px;
    min-height: 56px;
    margin: 0 -20px;
    padding: 0 20px;
    border-bottom: 1px solid var(--pch-border);
}

.pch-header__drawer-logo img {
    display: block;
    width: 120px;
    height: auto;
}

.pch-header__drawer-close {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--pch-teal);
    cursor: pointer;
}

.pch-header__drawer-close-icon,
.pch-header__drawer-close-icon::before,
.pch-header__drawer-close-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    content: "";
}

.pch-header__drawer-close-icon {
    position: relative;
    background: transparent;
}
.pch-header__drawer-close-icon::before,
.pch-header__drawer-close-icon::after {
    position: absolute;
    left: 0;
}
.pch-header__drawer-close-icon::before {
    transform: rotate(45deg);
}
.pch-header__drawer-close-icon::after {
    transform: rotate(-45deg);
}

.pch-header__drawer-login {
    display: none;
}

.pch-header__drawer nav {
    display: block;
    margin: 0;
}

.pch-header__drawer nav a {
    display: inline-block;
    min-height: 24px;
    padding: 0 !important;
    border-bottom: 0;
    color: var(--pch-ink) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.pch-header__drawer nav a:last-child {
    border-bottom: 0;
}
.pch-header__drawer nav a[aria-current="page"] {
    color: var(--pch-ink) !important;
}

.pch-header__drawer-cta {
    margin-top: 0;
    padding: 30px 40px 40px;
}

.pch-header__drawer-cta .pch-header__mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: min(220px, 100%);
    min-height: 48px;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

body.pch-header-host {
    padding-top: 0 !important;
}
body.pch-header-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.pch-header a:focus-visible,
.pch-header button:focus-visible,
.pch-header__drawer a:focus-visible,
.pch-header__drawer button:focus-visible {
    outline: 2px solid var(--pch-teal);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .pch-header,
    .pch-header__inner {
        height: 60px !important;
        min-height: 60px !important;
    }

    .pch-header__inner {
        width: 100%;
        height: 60px;
        min-height: 60px;
        padding: 0 20px !important;
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        justify-content: initial;
    }

    .pch-header__brand-wrap {
        grid-column: 2;
        grid-row: 1;
        width: var(--pch-logo-width);
        min-width: 0;
        justify-self: center;
    }
    .pch-header__brand img {
        width: 120px !important;
        height: 22px !important;
    }
    .pch-header__nav {
        display: none !important;
    }
    .pch-header__actions {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        min-width: 0;
        justify-self: start;
        gap: 0 !important;
    }
    .pch-header__actions .pch-header__cta {
        display: none !important;
    }
    .pch-header__actions .pch-header__login {
        display: inline-flex !important;
        min-height: 22px;
        padding: 0 !important;
        color: var(--pch-teal) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.6;
    }
    .pch-header__toggle {
        grid-column: 3;
        grid-row: 1;
        display: grid !important;
        place-items: center;
        width: 40px;
        height: 40px;
        justify-self: end;
        margin: 0;
        border-radius: 50%;
    }

    .pch-header__overlay {
        background: transparent !important;
    }
    .pch-header__drawer {
        width: 100%;
        max-width: none;
        padding: 0 0 env(safe-area-inset-bottom) !important;
        border-left: 0 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1) !important;
    }
    .pch-header__drawer-head {
        height: 60px;
        min-height: 60px;
        margin: 0;
        padding: 0 20px;
        border-bottom: 1px solid #f1f3f4;
    }
    .pch-header__drawer-logo {
        grid-column: 2;
        justify-self: center;
    }
    .pch-header__drawer-login {
        display: block;
        grid-column: 1;
        grid-row: 1;
        color: var(--pch-teal) !important;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.6;
    }
    .pch-header__drawer-close {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: 40px;
        height: 40px;
        border-radius: 0;
        background: transparent;
        color: var(--pch-teal);
    }
    .pch-header__drawer nav {
        position: relative;
        margin: 0;
        padding: 40px;
        border-bottom: 0;
    }
    .pch-header__drawer nav::after {
        position: absolute;
        right: 40px;
        bottom: 0;
        left: 40px;
        border-bottom: 1px solid var(--pch-border-weak);
        content: "";
    }
    .pch-header__drawer nav a {
        display: block;
        min-height: 24px;
        margin: 0 0 20px;
        border: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.6;
    }
    .pch-header__drawer-cta {
        margin: 0;
        padding: 30px 40px 40px;
    }
}

@media (max-width: 389px) {
    .pch-header__inner {
        padding-inline: 16px !important;
    }
    .pch-header__drawer nav {
        padding: 32px 24px;
    }
    .pch-header__drawer nav::after {
        right: 24px;
        left: 24px;
    }
    .pch-header__drawer-cta {
        padding-inline: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pch-header *,
    .pch-header__overlay,
    .pch-header__drawer {
        transition-duration: 0.01ms !important;
    }
}
