/* バーガーメニュー */
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
    width: 44px;
    height: 44px;
    fill: #0181a7;
}

.wp-block-navigation__responsive-container-close {
	padding: 2em 1em 0 1em;
}

/* ナビリンク ホバー時 */
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--secondary-2);
}

.wp-block-navigation .wp-block-navigation-item__content {
    transition: all 0.5s;
}

/* sentinel は確実に 1px 占有 */
#header-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
}

/* 初期：通常スクロール */
#site-header {
    position: relative;
    z-index: 1000;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
    will-change: transform, background, box-shadow;
    padding: 2em 1em 0 1em;
}

/* 固定状態（JS が付与） */
#site-header.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(2, 127, 166, .08);
    padding-top: 0 !important;
}

#site-header.is-stuck .wp-block-site-logo img {
    max-height: 66px;
    width: auto;
    padding: 0.4em 0;
    box-sizing: border-box;
}

.has-modal-open .wp-block-buttons.is-layout-flex.wp-block-buttons-is-layout-flex {
    justify-content: center;
    width: 100%;
}

/* 固定直後の小さなスライド演出 */
#site-header.is-stuck.is-sliding {
    transform: translateY(-8px);
}

/* 本文が隠れないように固定中だけ上余白を足す */
html.has-sticky-header body {
    padding-top: var(--header-h, 64px);
}

/* 管理バー（ログイン時）対策：上に 32px/46px を避ける */
body.admin-bar #site-header.is-stuck {
    top: var(--admin-bar-h, 32px);
}

@media (max-width: 782px) {
    :root {
        --admin-bar-h: 46px;
    }
}

.wp-block-navigation__responsive-container.is-menu-open {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    box-sizing: border-box;
}


.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container.is-responsive.items-justified-right.wp-block-navigation {
	gap: 0;
}

.wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content {
    padding: 1rem 2rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu li a.wp-block-navigation-item__content {
    font-weight: normal;
    padding: 0 2rem 1rem 2rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    margin-bottom: 8rem;
}

.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation-submenu {
    width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open ul>li.wp-block-navigation-item.wp-block-navigation-link,
.wp-block-navigation__responsive-container.is-menu-open ul>li.wp-block-navigation-item.has-child.wp-block-navigation-submenu {
    width: 100%;
    display: block;
    border-bottom: 1px solid #d5d5d5
}

.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation-submenu>li {
    border-bottom: none !important;
    text-align: center;
}

.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    min-width: 300px;
    border: 0;
    box-shadow: 0 0 16.5px rgba(66, 156, 188, 0.46);
	border-radius: 10px;
    overflow: hidden;
	padding: 1rem;
}

@media (max-width: 1480px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: block;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    border: 0;
    box-shadow: none !important;
}