/**
========================
footer
========================
*/
.footer_nav {
    position: relative;
    width: 100%;
    background: var(--wp--custom--color--blue--500);
    overflow: hidden;
}

.footer_nav_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 20px 80px;
    gap: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.footer_nav::before {
    position: absolute;
    bottom: -12px;
    right: -12px;
    mix-blend-mode: overlay;
    color: var(--color-blue-blue-500, #3C8FDC);
    font-family: "Noto Sans JP";
    font-size: 64px;
    font-weight: 700;
    white-space: nowrap;
}

.footer_logo_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 12px;
    text-decoration: none;
    z-index: 2;
}

.footer_logo {
    width: auto;
    height: 40px;
    flex-shrink: 0;
}

.footer_logo_text {
    color: var(--wp--custom--color--gray--50);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 10px;
    font-weight: 700;
}

.footer_logo_title {
    color: var(--wp--custom--color--gray--50);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: var(--lg, 16px);
    font-weight: 700;
    line-height: var(--lg, 24px);
}


/*
========================
△
========================
*/
.footer_tri {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer_tri_item:nth-child(1) {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-right: 25dvw solid transparent;
    border-top: 20dvw solid var(--wp--custom--color--blue--400);
    opacity: 0.5;
    height: 0;
    width: 0;
}

.footer_tri_item:nth-child(2) {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-right: 15dvw solid transparent;
    border-top: 30dvw solid var(--wp--custom--color--blue--600);
    opacity: 0.3;
    height: 0;
    width: 0;
}

.footer_tri_item:nth-child(3) {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border-right: 25dvw solid transparent;
    border-bottom: 20dvw solid var(--wp--custom--color--blue--600);
    opacity: 0.35;
    height: 0;
    width: 0;
}

.menu-main_menu-container {
    z-index: 3;
}

.menu-main_menu-container > .footer_menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 2;
}

/* 大項目リスト */
.footer_menu {
    display: flex;
    flex-direction: column;
}

/* 大項目 */
.footer_menu > .menu-item {
    position: relative;
    width: 100%;
    padding: 16px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--wp--custom--color--neutral--50);
    transition: all 0.3s ease;
}

.footer_menu > .menu-item > a {
    color: var(--wp--custom--color--gray--50);
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.1s ease;
}

.footer_menu > .menu-item > a:hover {
    color: var(--wp--custom--color--blue--300);
}

.footer_menu > .menu-item-has-children {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

/* 中項目がある場合 */
.footer_menu > .menu-item-has-children::before {
    content: "";
    position: absolute;
    top: 25px;
    right: 14px;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: var(--wp--custom--color--gray--50);
    cursor: pointer;
    z-index: 10;
    border-radius: 9999px;
}

.footer_menu > .menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 25px;
    right: 21px;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background-color: var(--wp--custom--color--gray--50);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    transform-origin: center;
    border-radius: 9999px;
}

/* ? */
.footer_menu > .menu-item-has-children.expanded::after {
    transform: translateY(-50%) rotate(90deg);
}

.footer_menu > .menu-item-has-children > .sub-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    box-sizing: border-box;
}

.footer_menu > .menu-item-has-children > .sub-menu > .menu-item {
    width: 100%;
}

.footer_menu > .menu-item-has-children > .sub-menu >.menu-item > a {
    text-align: start;
    width: 100%;
    color: var(--wp--custom--color--gray--50);
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-weight: 700;
    line-height: var(--2xl, 16px);
    text-decoration: none;
    transition: all 0.1s ease;
}

.footer_menu > .menu-item-has-children > .sub-menu > .menu-item > a:hover {
    color: var(--wp--custom--color--blue--300);
}

/* リンクのクリックエリアを制限 */
.footer_menu > .menu-item-has-children > a {
    display: block;
    padding-right: 40px;
    box-sizing: border-box;
}

/* 中項目 */
.footer_menu > .menu-item-has-children > .sub-menu[aria-expanded="false"] {
    display: none;
    height: 0;
}

.footer_menu > .menu-item-has-children > .sub-menu[aria-expanded="ture"] {
    display: block;
    height: auto;
}

@media screen and (min-width: 1280px) {
    .footer_nav::before {
        top: auto;
        left: auto;
        bottom: -24px;
        right: -36px;
        font-size: 120px;
        width: fit-content;
        height: fit-content;
    }

    .footer_nav_wrapper {
        padding: 80px 120px 120px;
        gap: 40px;
        justify-content: center;
        align-items: center;
    }

    .footer_logo_box {
        justify-content: flex-start;
        flex-direction: row;
        gap: 16px;
        max-width: 1440px;
    }

    .footer_logo {
        height: 64px;
    }

    .footer_logo_text {
        text-align: start;
        font-size: 12px;
    }

    .footer_logo_title {
        font-size: var(--lg, 24px);
        line-height: var(--lg, 32px);
    }

    .menu-main_menu-container  {
        max-width: 1440px;
        width: 100%;
    }

    /* 大項目リスト */
    .menu-main_menu-container > .footer_menu {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    /* 大項目 */
    .footer_menu > .menu-item {
        padding: 0;
        border-bottom: none;
        width: auto;
    }
    
    .footer_menu > .menu-item > a {
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
    }
    
    .footer_menu > .menu-item-has-children {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 24px;
    }

    .footer_menu > .menu-item-has-children > a {
        padding-right: 0;
    }

    .footer_menu > .menu-item-has-children::before,
    .footer_menu > .menu-item-has-children::after {
        display: none;
    }

    /* 中項目 */
    .footer_menu > .menu-item-has-children > .sub-menu[aria-expanded="false"] {
        display: flex;
        height: auto;
    }

    .footer_menu > .menu-item-has-children > .sub-menu {
        gap: 12px;
        padding: 0;
    }

    .footer_menu > .menu-item-has-children > .sub-menu > .menu-item > a {
        font-size: 12px;
        line-height: 20px;
    }
}