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

.takapi-site-header{
    --takapi-header-blue:#0057bd;
    background:#fff;
    border-bottom:1px solid #edf1f6;
    position:relative;
    z-index:100;
}

.takapi-header-inner{
    background:#fff;
    margin:0 auto;
    max-width:1080px;
    padding:10px 16px 0;
    position:relative;
}

.takapi-header-top{
    align-items:center;
    display:flex;
    gap:12px;
    justify-content:space-between;
    min-height:44px;
}

.takapi-header-logo{
    display:block;
    flex:0 1 auto;
    line-height:0;
    max-width:min(260px, calc(100% - 84px));
    text-decoration:none;
}

.takapi-header-logo img{
    display:block;
    height:auto;
    max-height:44px;
    max-width:260px;
    width:100%;
}

.takapi-header-actions{
    align-items:center;
    display:flex;
    flex:0 0 auto;
    gap:12px;
}

.takapi-header-search-toggle,
.takapi-header-menu-toggle{
    appearance:none;
    background:#fff;
    border:0;
    border-radius:0;
    box-shadow:none;
    color:#050505;
    cursor:pointer;
    display:block;
    height:32px;
    margin:0;
    padding:0;
    position:relative;
    width:32px;
}

.takapi-header-search-toggle span,
.takapi-header-search-toggle::after{
    display:block;
    position:absolute;
}

.takapi-header-search-toggle span{
    border:4px solid currentColor;
    border-radius:50%;
    height:18px;
    left:4px;
    top:3px;
    width:18px;
}

.takapi-header-search-toggle::after{
    background:currentColor;
    border-radius:999px;
    content:"";
    height:4px;
    left:20px;
    top:22px;
    transform:rotate(45deg);
    transform-origin:left center;
    width:11px;
}

.takapi-site-header.is-search-open .takapi-header-search-toggle span{
    border:0;
    border-radius:0;
    height:24px;
    left:4px;
    top:4px;
    transform:rotate(45deg);
    width:24px;
}

.takapi-site-header.is-search-open .takapi-header-search-toggle span::before,
.takapi-site-header.is-search-open .takapi-header-search-toggle span::after{
    background:currentColor;
    border-radius:999px;
    content:"";
    display:block;
    left:0;
    position:absolute;
    top:10px;
}

.takapi-site-header.is-search-open .takapi-header-search-toggle span::before{
    height:4px;
    width:24px;
}

.takapi-site-header.is-search-open .takapi-header-search-toggle span::after{
    height:24px;
    left:10px;
    top:0;
    width:4px;
}

.takapi-site-header.is-search-open .takapi-header-search-toggle::after{
    display:none;
}

.takapi-header-menu-toggle span,
.takapi-header-menu-toggle span::before,
.takapi-header-menu-toggle span::after{
    background:currentColor;
    border-radius:999px;
    content:"";
    display:block;
    height:4px;
    left:3px;
    position:absolute;
    width:26px;
}

.takapi-header-menu-toggle span{
    top:14px;
}

.takapi-header-menu-toggle span::before{
    left:0;
    top:-9px;
}

.takapi-header-menu-toggle span::after{
    left:0;
    top:9px;
}

.takapi-global-nav{
    background:#fff;
    display:block;
    margin:8px 0 0;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0;
    position:relative;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.takapi-global-nav::-webkit-scrollbar{
    display:none;
}

.takapi-nav-list{
    align-items:center;
    display:flex;
    flex-wrap:nowrap;
    gap:26px;
    list-style:none;
    margin:0;
    min-width:max-content;
    padding:0 10px 10px 0;
}

.takapi-nav-list li{
    flex:0 0 auto;
    list-style:none;
    margin:0;
    padding:0;
}

.takapi-nav-list a{
    align-items:center;
    border-radius:999px;
    color:#050505;
    display:inline-flex;
    font-size:14px;
    font-weight:900;
    justify-content:center;
    line-height:1;
    min-height:30px;
    padding:0 10px;
    text-decoration:none;
    white-space:nowrap;
}

.takapi-nav-list a:hover,
.takapi-nav-list a:focus{
    background:var(--takapi-header-blue);
    color:#fff;
}

.takapi-header-search-panel,
.takapi-mobile-menu-panel{
    display:none;
}

.takapi-site-header.is-search-open .takapi-header-search-panel,
.takapi-site-header.is-menu-open .takapi-mobile-menu-panel{
    display:block;
}

.takapi-header-search-panel{
    background:#fff;
    padding:8px 0 12px;
}

.takapi-header-search-panel form{
    align-items:center;
    background:#f2f2f2;
    border-radius:8px;
    display:grid;
    grid-template-columns:1fr 40px;
    min-height:44px;
    padding:0 6px 0 14px;
}

.takapi-header-search-panel input{
    appearance:none;
    background:transparent;
    border:0;
    color:#111;
    font-size:16px;
    font-weight:800;
    min-width:0;
    outline:0;
    width:100%;
}

.takapi-header-search-panel input::placeholder{
    color:#777;
}

.takapi-header-search-panel button{
    appearance:none;
    background:transparent;
    border:0;
    color:#050505;
    cursor:pointer;
    height:36px;
    margin:0;
    padding:0;
    position:relative;
    width:36px;
}

.takapi-header-search-panel button::before{
    border:3px solid currentColor;
    border-radius:50%;
    content:"";
    height:17px;
    left:5px;
    position:absolute;
    top:4px;
    width:17px;
}

.takapi-header-search-panel button::after{
    background:currentColor;
    border-radius:999px;
    content:"";
    height:4px;
    left:21px;
    position:absolute;
    top:23px;
    transform:rotate(45deg);
    transform-origin:left center;
    width:10px;
}

.takapi-mobile-menu-panel{
    background:#fff;
    border-top:1px solid #e6edf6;
    box-shadow:0 12px 20px rgba(0,0,0,.08);
    left:0;
    padding:4px 16px 12px;
    position:absolute;
    right:0;
    top:100%;
    z-index:50;
}

.takapi-mobile-menu-panel ul{
    list-style:none;
    margin:0 auto;
    max-width:1080px;
    padding:0;
}

.takapi-mobile-menu-panel li{
    border-bottom:1px solid #edf1f6;
    margin:0;
    padding:0;
}

.takapi-mobile-menu-panel a{
    color:#111;
    display:block;
    font-size:15px;
    font-weight:900;
    padding:12px 4px;
    text-decoration:none;
}

.takapi-site-header + .takapi-main,
.takapi-main{
    margin-top:0 !important;
    padding-top:0 !important;
}

@media(max-width:860px){
    .takapi-header-inner{
        max-width:none;
        padding:8px 12px 0;
        width:100%;
    }

    .takapi-header-top{
        min-height:38px;
    }

    .takapi-header-logo{
        max-width:calc(100% - 76px);
    }

    .takapi-header-logo img{
        max-height:36px;
        max-width:190px;
    }

    .takapi-header-actions{
        gap:10px;
    }

    .takapi-header-search-toggle,
    .takapi-header-menu-toggle{
        height:30px;
        width:30px;
    }

    .takapi-global-nav{
        border-top:1px solid #f0f2f5;
        margin:7px -12px 0;
        padding:0 0 0 12px;
    }

    .takapi-nav-list{
        gap:20px;
        padding:7px 12px 8px 0;
    }

    .takapi-nav-list a{
        font-size:13px;
        min-height:26px;
        padding:0 8px;
    }

    .takapi-header-search-panel{
        padding:8px 0 10px;
    }
}

@media(max-width:560px){
    .takapi-header-inner{
        padding-top:7px;
    }

    .takapi-header-logo img{
        max-height:32px;
        max-width:170px;
    }

    .takapi-header-actions{
        gap:8px;
    }

    .takapi-header-search-toggle,
    .takapi-header-menu-toggle{
        height:28px;
        width:28px;
    }

    .takapi-header-search-toggle span{
        border-width:3px;
        height:17px;
        left:3px;
        top:3px;
        width:17px;
    }

    .takapi-header-search-toggle::after{
        height:3px;
        left:18px;
        top:20px;
        width:10px;
    }

    .takapi-header-menu-toggle span,
    .takapi-header-menu-toggle span::before,
    .takapi-header-menu-toggle span::after{
        height:3px;
        left:3px;
        width:23px;
    }

    .takapi-header-menu-toggle span{
        top:13px;
    }

    .takapi-header-menu-toggle span::before{
        left:0;
        top:-8px;
    }

    .takapi-header-menu-toggle span::after{
        left:0;
        top:8px;
    }

    .takapi-nav-list{
        gap:16px;
    }

    .takapi-nav-list a{
        font-size:12px;
        min-height:24px;
        padding:0 7px;
    }

    .takapi-header-search-panel form{
        grid-template-columns:1fr 38px;
        min-height:42px;
    }

    .takapi-header-search-panel input{
        font-size:15px;
    }
}
