@charset "utf-8";

/* ------------------------------------------------------- */
/* page navigation --------------------------------------- */
/* ------------------------------------------------------- */

.page-navigation_header {
    text-align: center;
    padding: 0 20px;
    @media (width <= 999px) {
    }
}
.page-navigation {
    background: rgba(255,255,255,0.8);
    top: 0;
    margin-bottom: 125px;
    padding: 15px 0;
    position: sticky;
    z-index: 5;
    @media (width <= 999px) {
        position: relative;
    }
    .sectionInner {
        ul {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            @media (width <= 999px) {
                grid-template-columns: repeat(1, 1fr);
            }
            li {
                display: flex;
                align-items: stretch;
                > div {
                    width: 100%;
                    > a, > span {
                        border-radius: 10px;
                        color: #fff;
                        text-align: center;
                        &.page-link {
                            padding: 0 10px;
                            display: flex;
                            width: 100%;
                            height: 160px;
                            justify-content: center;
                            align-items: center;
                            @media (width <= 999px) {
                                height: unset;
                                padding: 15px;
                            }
                            span {
                                font-size: 1.4rem;
                            }
                        }
                        &.price-link {
                            margin-top: 10px;
                            padding: 10px 15px;
                            display: block;
                        }
                    }
                    > a {
                        background: var(--color-main);
                        text-decoration: none;
                        &:hover {
                            background: var(--color-main-light);
                        }
                    }
                    > span {
                        background: var(--color-main-light);
                    }
                }
            }
        }
    }
}

/* ------------------------------------------------------- */
/* footer menu ------------------------------------------- */
/* ------------------------------------------------------- */

.footerMenu {
}
.footerMenu ul {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    li {
    }
}
@media only screen and (max-width:999px) {
    .footerMenu {
        text-align: center;
        margin-bottom: 15px;
    }
}


/* ------------------------------------------------------- */
/* global menu ------------------------------------------- */
/* ------------------------------------------------------- */

#globalmenu {
    width: calc(100% - 201px - 110px);
}
#globalmenu ul {
	display: flex;
    gap: 15px;
	margin: 0 auto;
}
#globalmenu ul li {
	position: relative;
    flex-grow: 1;
}
#globalmenu ul li a {
	text-decoration: none;
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
}
#globalmenu ul li:hover {
}
#globalmenu ul ul {
	position: absolute;
	display: block;
	display: none;
	top: 50px;
	padding: 0;
	border-left: none;
	margin: 0 auto;
	float: none;
    width: 100%;
    min-width: 100px;
}
#globalmenu ul ul li {
	display: block;
	float: none;
	border-top: 1px solid #ccc;
	height: auto;
	border-right: none;
	width: 100%;
}
#globalmenu ul ul li.gmsub a {padding-right: 20px;}
#globalmenu ul ul li.gmsub li a {padding-right: 0;}
.gmsub a::after {
	font-family: var(--fa);
	font-weight: 900;
	content: "\f0da";
	position: absolute;
	right: 5px;
    top: 50%;
    margin-top: -12px;
}
.gmsubNone a::after {
	content: "";
	position: static;
	right: 0;
}
#globalmenu ul ul li a {
	height: auto;
	display: block;
	background: #333;
	padding: 12px 4px;
	text-align: center;
}
#globalmenu ul ul li a:hover {
	background-color: #666;
}
#globalmenu ul ul ul {
	top: -1px;
	left: 100%;
	position: absolute;
	display: none;
}
#globalmenu ul ul ul li {
	border-top: none;
	border-bottom: 1px solid #fff;
}
#globalmenu ul ul ul a {
	background-color: #999;
    padding: 15px 5px!important;
}
#globalmenu ul ul ul a:hover {
	background-color: #666;
}
#toggle-button, #toggle-menu {
	display: none;
}

/* SP Menu */
@media (width <= 999px) {
    #globalmenu{
        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);
            }
        }
    }
}