@charset "utf-8";

/* ------------------------------------------------------- */
/* header menu ------------------------------------------- */
/* ------------------------------------------------------- */

.headerMenu {
    top: 0;
    right: 0;
    position: absolute;
    @media (width <= 999px) {
        display: none;
    }
    ul {
        display: flex;
        li {
            a {
                background: #ddd;
                width: 150px;
                padding: 11px 10px 14px 10px;
                text-decoration: none;
                font-size: 1.5rem;
                color: #000;
                display: flex;
                justify-content: center;
                align-items: center;
                line-height: 1;
                &:hover {
                    background: #666;
                    color: #fff;
                }
            }
            &.headermenu-english {
                a {
                    background: var(--color-main);
                    color: #fff;
                    &:hover {
                        background: var(--color-main-deep);
                    }
                }
            }
        }
    }
}

/* ------------------------------------------------------- */
/* footer menu ------------------------------------------- */
/* ------------------------------------------------------- */

.footerMenu {
    order: 2;
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    @media (width <= 999px) {
        text-align: center;
        margin-bottom: 15px;
        display: block;
    }
    ul {
        margin-bottom: 15px;
        li {
            display: inline-block;
            margin-left: 15px;
            &::before {
                font-family: var(--fa);
                font-weight: 900;
                content: "\f0da";
                margin-right: 5px;
            }
            &:first-child {
                @media (width <= 999px) {
                    margin-left: 0;
                }
            }
            a {
                color: #000;
                text-decoration: none;
                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
    .ihss {
        background-color: #eee;
        width: 300px;
        @media (width <= 999px) {
            width: 250px;
            margin: 0 auto;
        }
        .ihss-logo {
            img {
                mix-blend-mode: multiply;
                width: 100%;
                height: auto;
            }
        }
        .ihss-text {
            margin-bottom: 15px;
            font-size: 1.4rem;
            text-align: left;
            @media (width <= 999px) {
                font-size: 1.3rem;
            }
        }
    }
}

/* ------------------------------------------------------- */
/* global menu ------------------------------------------- */
/* ------------------------------------------------------- */

/* PC Menu */
#globalmenu {
    nav {
        @media (width <= 999px) {
            display: none;
        }
        ul {
            max-width: var(--size-content-max-width);
            margin: 0 auto;
            overflow: visible;
        }
        > ul {
            border-left: 1px solid #ccc;
            display: flex;
            > li {
                border-right: 1px solid #ccc;
                width: calc(100% / var(--global-menu-count));
                position: relative;
                &:hover {
                    background: var(--color-main-light);
                }
                a {
                    width: 100%;
                    height: 50px;
                    text-decoration: none;
                    color: #000;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
                ul {
                    min-width: 100px;
                    width: 100%;
                    margin: -1px auto 0 auto;
                    padding: 0;
                    position: absolute;
                    visibility: hidden;
                    font-size: 1.45rem;
                    transition: 0.01s;
                    > li {
                        border-top: 1px solid #fff;
                        width: 170px;
                        height: auto;
                        > a {
                            background: var(--color-main);
                            height: auto;
                            padding: 12px 4px;
                            text-align: center;
                            display: block;
                            &:hover {
                                background: var(--color-main-light);
                            }
                        }
                    }
                }
            }
        }
    }
}
/* focus, hover 時の動作 */
#globalmenu nav {
    > ul li {
        ul.focused {
            /*display: block;*/
            visibility: visible;
        }
        &:hover {
            > ul {
                /*display: block;*/
                visibility: visible;
            }
        }
    }
}

#toggle-button, #toggle-menu {
	display: none;
}

/* SP Menu */
@media (width <= 999px) {
    #gglobalmenu{
        display: none;
    }
    #toggle-button, #toggle-menu {
        display: block;
    }
    #overlay, #toggle-menu {
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
    }
    #overlay {
        background: #000;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        position: fixed;
        z-index: -1;
    }
    
    /* Menu Button 1 */
    .toggle-button1 {
        background: var(--color-main);
        border: 0;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        margin: 0;
        padding: 0;
        font-size: 1.2rem;
        text-align: center;
        color: #fff;
        position: fixed;
        z-index: 997;
        cursor: pointer;
        display: block;
    }
    
    /* Menu Button 2 */
    .toggle-button2 {
        --button-label-height: 15px;
        --line-position: calc((var(--size-header-height) - 2px + var(--button-label-height)) / 2);
        
        background: var(--color-main);
        border: 0;
        top: 0;
        right: 0;
        width: var(--size-header-height);
        height: var(--size-header-height);
        padding: 10px;
        display: block;
        position: fixed;
        z-index: 997;
        cursor: pointer;
        span.toggle-label {
            width: 100%;
            height: var(--button-label-height);
            top: 6px;
            left: 0;
            font-size: 1.2rem;
            color: #fff;
            position: absolute;
            z-index: 998;
        }
        span.toggle-bar, span.toggle-bar::before, span.toggle-bar::after {
            background-color: #fff;
            width: calc(var(--size-header-height) - 20px);
            height: 2px;
            position: absolute;
            display: block;
        }
        span.toggle-bar::before, span.toggle-bar::after {
            left: 0;
            content: "";
            transition: all 0.1s;
        }
        span.toggle-bar {
            top: var(--line-position);
        }
        span.toggle-bar::before {
            top: calc((var(--line-position) - var(--button-label-height)) / 2 * -1);
        }
        span.toggle-bar::after {
            top: calc((var(--line-position) - var(--button-label-height)) / 2);
        }
    }
    
    /* Menu */
    #toggle-menu {
        background: #fff;
        top: 0;
        right: calc(var(--side-toggle-width) * -1);
        width: var(--side-toggle-width);
        height: 100%;
        padding-top: 45px;
        color: #fff;
        position: fixed;
        z-index: 995;
        overflow-y: scroll;
        h4 {
            padding: 0 15px;
        }
        ul {
            padding: 0;
            > li {
                border-bottom: 1px solid #ccc;
                a {
                    padding: 10px;
                    text-decoration: none;
                    color: #000;
                    display: block;
                    &::before {
                        padding: 0 5px 0 0;
                        font-family: var(--fa);
                        content: "\f105";
                        font-weight: 900;
                    }
                }
            }
            > li:has(> ul) {
                li {
                    border-bottom: 0;
                }
                > a {
                    padding-right: 30px;
                    position: relative;
                    &::after {
                        top: 7px;
                        right: 0;
                        padding: 0 5px 0 0;
                        font-family: var(--fa);
                        content: "\f0fe";
                        font-size: 2.0rem;
                        font-weight: 400;
                        position: absolute;
                    }
                    &.active::after {
                        content: "\f146";
                    }
                }
            }
            li ul {
                margin: 0 0 0 20px;
                display: none;
            }
        }
    }
    .toggle-button2 + #toggle-menu {
        margin-top: var(--size-header-height);
        padding-top: 0;
    }
    button#toggle-close {
        margin: 0 auto;
        display: block;
    }
    
    /* メニュー展開時のスタイル */
    body.toggle-opened {
        overflow-y: hidden;
        
        #overlay {
            left: calc(var(--side-toggle-width) * -1);
            z-index: 997;
            opacity: 0.3;
        }
        
        #toggle-menu {
            right: 0;
        }
        
        .toggle-button1 {
            span.toggle-bar {
                display: none;
            }
        }
        
        .toggle-button2 {
            background: #999;
            span.toggle-bar {
                height: 0;
            }
            span.toggle-bar::before, span::after {
                top: 0;
            }
            span.toggle-bar::before {
                transform:rotate(45deg);
            }
            span.toggle-bar::after {
                transform:rotate(-45deg);
            }
        }
    }
}