/**
========================
page-header
========================
*/
.page_header {
    position: sticky;
    top: 52px;
    left: 0;
    z-index: 100;
    width: 100%;
    height: fit-content;
}

.page_header_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.page_header_title_box {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 10px;
    box-sizing: border-box;
    background: var(--wp--custom--color--blue--400);
    z-index: 10;
}

.page_header_accent_text_box {
    display: none;
}

.page_header_title {
    color: var(--color-font-white, #F9FAFB);
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 700;
    line-height: var(--md, 20px);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page_header_title:hover {
    color: var(--wp--custom--color--blue--300);
}

.page_header_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.page_header_icon svg {
    transition: transform 0.3s ease;
    fill: var(--wp--custom--color--gray--50);
}

.page_header_icon[aria-pressed="true"] svg {
    transform: rotate(90deg);
}

.page_header_nav_list[aria-expanded="false"] {
    max-height: 0;
    padding: 0;
}

.page_header_nav_list {
    position: absolute;
    top: 100%;
    background: var(--wp--custom--color--gray--50);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    box-sizing: border-box;
    width: 100%;
    border-radius: 0 0 12px 12px;
    background: var(--color-blue-blue-100, #F0F4FE);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media screen and (min-width: 1280px) {
    .page_header_nav_list {
        position: static;
    }
}

.page_header_nav_list[aria-expanded="true"] {
    max-height: 500px;
    padding: 10px 0;
    transform: translateY(0);
}

.page_header_nav_item {
    position: relative;
    width: 100%;
    padding: 14px 0;
    box-sizing: border-box;
    transition: all 0.1s ease;
    cursor: pointer;
}

.page_header_nav_item:hover,
.page_header_nav_item_checked {
    background: var(--wp--custom--color--blue--200);
}

.page_header_nav_item:not(:last-child):after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    width: calc(100% - 20px * 2);
    height: 2px;
    border-radius: 9999px;
    background: var(--wp--custom--color--blue--200);
}

.page_header_nav_link {
    color: var(--wp--custom--color--gray--700);
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-weight: 700;
    line-height: var(--2xl, 16px);
    text-decoration: none;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

@media screen and (min-width: 1280px) {
    .page_header {
        position: relative;
    }

    .page_header_wrapper {
        padding: 16px 44px;
        box-sizing: border-box;
        background: var(--wp--custom--color--blue--400);
        gap: 8px;
    }

    .page_header_title_box {
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: 12px;
    }

    .page_header_accent_text_box {
        display: block;
        position: relative;
        top: 0;
        left: -34px;
        transform: rotate(-10deg);
        width: fit-content;
    }

    .page_header_accent_text {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--color-font-white, #F9FAFB);
        font-family: "Noto Sans JP";
        font-size: var(--base, 10px);
        font-weight: 700;
        line-height: var(--md, 16px);
    }

    .page_header_accent_text::before,
    .page_header_accent_text::after {
        content: "";
        top: 0;
        left: 0;
        width: 2px;
        height: 18px;
        border-radius: 9999px;
        background-color: var(--wp--custom--color--blue--50);
    }

    .page_header_accent_text::before {
        transform: rotate(-30deg);
    }

    .page_header_accent_text::after {
        transform: rotate(30deg);
    }

    .page_header_title {
        font-size: 20px;
        line-height: 26px;
    }

    .page_header_icon svg {
        display: none;
    }

    .page_header_nav_list[aria-expanded="false"] {
        display: flex;
        max-height: none;
    }

    .page_header_nav_list {
        background: transparent;
        flex-direction: row;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
        overflow: hidden;
    }

    .page_header_nav_item {
        display: flex;
        padding: 0;
        justify-content: center;
        align-items: center;
        gap: var(--xs, 8px);
        width: fit-content;
        border-radius: 9999px;
    }

    .page_header_nav_item:not(:last-child):after {
        display: none;
    }

    .page_header_nav_item:hover > .page_header_nav_link,
    .page_header_nav_item_checked > .page_header_nav_link {
        color: var(--wp--custom--color--blue--400);
    }

    .page_header_nav_link {
        padding: var(--sm, 8px) var(--md, 20px);
        width: fit-content;
        color: var(--wp--custom--color--gray--50);
        white-space: nowrap;
    }
}
