@charset "UTF-8";

/* =======================================
　ナビゲーションレイアウト共通
======================================= */

/* GoogleMaterialSymbols_Rounded */
.material-symbols-rounded {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
  }

#header-nav ul.cc-nav-level-0 {
    display: flex;
    justify-content: right;
}

#header-nav ul, #header-nav li {
    list-style: none !important;
    padding: 0;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.05em;
}

#header-nav ul.cc-nav-level-0>li:nth-child(2)::after,
#header-nav ul.cc-nav-level-0>li:nth-child(3)::after {
    position: absolute;
    content:"";
    top:28%;
    background:#6E6450;
    width:1px;
    height:44%;
    right: 0;
}

#global-header-nav {
    width: 100%;
    margin-left: 24px;
}



/* 親メニューイラストアイコン */

#header-nav ul.cc-nav-level-0>li:nth-child(2),
#header-nav ul.cc-nav-level-0>li:nth-child(3),
#header-nav ul.cc-nav-level-0>li:nth-child(4) {
    position: relative;
}

#header-nav ul.cc-nav-level-0>li:nth-child(2)::before,
#header-nav ul.cc-nav-level-0>li:nth-child(3)::before,
#header-nav ul.cc-nav-level-0>li:nth-child(4)::before {
    content: '';
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 50%;
    top: 26px;
}

#header-nav ul.cc-nav-level-0>li:nth-child(2)::before {
    background-image: url(https://u.jimcdn.com/cms/o/s5efc079c0d478e43/userlayout/font/nav-atelier.svg?t=1663166426);
    width: 30px;
    height: 32px;
    margin-left: -15px;
}

#header-nav ul.cc-nav-level-0>li:nth-child(3)::before {
    background-image: url(https://u.jimcdn.com/cms/o/s5efc079c0d478e43/userlayout/font/nav-shop.svg?t=1663166444);
    width: 33px;
    height: 32px;
    margin-left: -16px;
}

#header-nav ul.cc-nav-level-0>li:nth-child(4)::before {
    background-image: url(https://u.jimcdn.com/cms/o/s5efc079c0d478e43/userlayout/font/nav-school.svg?t=1663166437);
    width: 41px;
    height: 30px;
    margin-left: -20px;
}

/* 親メニュー下矢印アイコン */

#header-nav li.jmd-nav__list-item-0.j-nav-has-children>a:after {
    font-family: "Material Symbols Rounded";
    content: '\e5cf';
    position: absolute;
    bottom: 7px;
    font-size: 24px;
    color: #6E6450;
    left: 50%;
    margin-left: -12px;
}

/* 親メニューデザイン */

#header-nav ul.cc-nav-level-0>li {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(33.33%, 200px);
}

#header-nav ul.cc-nav-level-0>li>a {
    font-size: 13px;
    font-weight: 700;
    color: #6E6450 !important;
    text-decoration: none;
    position: relative;
    text-align: center;
    display: block;
    box-sizing: border-box;
    padding: 72px 8px 0;
    height: 160px;
    line-height: 1.5;
    cursor: default;
    pointer-events: none; /* 親メニューのリンクを無効化 */
}

/* 子メニューデザイン */

#header-nav ul.cc-nav-level-0>li>ul {
    position: absolute;
    top: 100%;
    z-index: 100;
}

#header-nav ul.cc-nav-level-0>li>ul>li>a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #6E6450;
    text-decoration: none;
    display: block;
    width: 220px;
    padding: 16px 0;
    text-align: center;
    background-color: #E3DFDA;
    border-top: 1px solid #F7F3EE;
    transition: .1s;
}

#header-nav ul.cc-nav-level-0>li>ul>li:first-child>a {
    border-top: none;
}

#header-nav ul.cc-nav-level-0>li>ul>li a:hover {
    color: #FFF;
    background-color: #968C78;
}

#header-nav ul.cc-nav-level-0>li>ul>li {
    overflow: hidden;
    height: 0;
    transition: .4s;
}

#header-nav ul.cc-nav-level-0>li:hover>ul>li {
    overflow: visible;
    height: 44px;
}

/* TOPとその他のメニュー非表示 */

#header-nav ul.cc-nav-level-0>li:first-child,
#header-nav ul.cc-nav-level-0>li:last-child {
    display: none;
}

/* オーバーレイ非表示 */
.overlay {
	visibility: hidden;
}


/* =======================================
タブレット用
======================================= */

@media screen and (max-width:1024px) {
    #global-header-navbox {
        position:fixed;
		left: 100%; /* 通常時はビュー外 */
		top: 0;
		max-height: 100%;
		transition:.3s ease-in-out;
		text-align:left;
		overflow-y:scroll;
		overflow-x:hidden;
		z-index:110;
		background-color: #F7F3EE;
		margin: 0 auto;
        max-width: 420px;
        height: 100vh;
    }

    #global-header-nav {
        margin-left: 0;
    }

    #header-nav ul.cc-nav-level-0 {
        display: block;
    }

    #header-nav ul.cc-nav-level-0>li {
        width: 100%;
    }

    #header-nav>ul.cc-nav-level-0>li br {
        display: none; /* モバイル時に親メニュー内brを非表示 */
    }
    
    #header-nav ul.cc-nav-level-0>li:nth-child(2)::after,
    #header-nav ul.cc-nav-level-0>li:nth-child(3)::after {
        background:none;
    }

    /* 親メニューに+マーク */
    #header-nav li.jmd-nav__list-item-0.j-nav-has-children>a:after {
        content: '\e145';
        font-size: 20px;
        left: auto;
        right: 20px;
        bottom: auto;
        margin-left: 0;
        transition: .4s;
    }

    #header-nav ul.cc-nav-level-0>li.open>a:after {
        transform: rotate(225deg);
    }
    
    /* 親メニューデザイン */
    #header-nav ul.cc-nav-level-0>li:nth-child(2)::before,
    #header-nav ul.cc-nav-level-0>li:nth-child(3)::before,
    #header-nav ul.cc-nav-level-0>li:nth-child(4)::before {
        display: none;
    }

    #header-nav ul.cc-nav-level-0>li {
        justify-content: left;
    }
    
    #header-nav ul.cc-nav-level-0>li>a {
        position: relative;
        text-align: left;
        width: 100%;
        padding: 0 30px;
        height: 48px;
        line-height: 48px;
        background: #e3dfda;
    }

    /* 子メニューデザイン */
    #header-nav ul.cc-nav-level-0>li>ul {
        position: relative;
        border-bottom: 1px solid #F7F3EE;
    }

    #header-nav ul.cc-nav-level-0>li>ul>li>a {
        font-size: 14px;
        width: 100vw;
        padding: 0 30px 0 60px;
        text-align: left;
        border-bottom: 1px solid #F7F3EE;
    }

    #header-nav ul.cc-nav-level-0>li>ul>li:first-child>a {
        border-top: 1px solid #F7F3EE;
    }

    #header-nav ul.cc-nav-level-0>li>ul>li {
        line-height: 48px;
        position: relative;
    }

    #header-nav ul.cc-nav-level-0>li:hover>ul>li {
        overflow: hidden;
        height: 0;
    }

    #header-nav ul.cc-nav-level-0>li>a~ul>li {
        overflow: hidden;
        height: 0;
    }

    #header-nav ul.cc-nav-level-0>li.open>a~ul>li {
        overflow: visible;
        height: 48px;
    }

    /* 子メニューに-マーク */
    #header-nav ul.cc-nav-level-0>li>ul>li::before {
        font-family: "Material Symbols Rounded";
        content: '\f88a';
        position: absolute;
        bottom: auto;
        font-size: 20px;
        color: #6E6450;
        left: 30px;
        padding-top: 2px;
    }

    /* その他のメニュー表示 */
    #header-nav ul.cc-nav-level-0>li:last-child {
        display: block;
    }

    /* トグルボタン */
    #toggle {
        position: fixed;
		right:15px;
		top:25px;
        z-index: 200;
        width: 50px;
        height: 50px;
        cursor: pointer;
        background-color: #F7F3EE;
        border-radius: 50%;
    }

    #toggle:after {
        content: "MENU";
        font-weight: 500;
        font-size: 10px;
        color: #6E6450;
        position: absolute;
        top: 23px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #toggle span {
        position: absolute;
        display: block;
        width: 100%;
        border-bottom: solid 2px #6E6450;
        transition: .4s ease-in-out;
    }
    
    #toggle span:nth-child(1) {
        top: 12px;
        left: 14px;
        width: 22px;
    }
    
    #toggle span:nth-child(2) {
        top: 20px;
        left: 14px;
        width: 22px;
    }

    /* トグルボタン_オープン */
	.openNav #toggle span:nth-child(1) {
		transform:rotate(210deg);
        top: 16px;
	}

	.openNav #toggle span:nth-child(2) {
		transform:rotate(-210deg);
        top: 16px;
	}

    .openNav #toggle:after {
        content: "CLOSE";
    }

    .openNav #global-header-navbox {
		transform: translateX(-100%)
	}

    /* メニュー表示時にコンテンツのスクロールをストップ */
	html.is-fixed, html.is-fixed body {
		overflow: hidden;
	}

    /* メニュー表示時にオーバーレイを表示 */
	.overlay {
		background-color: #6e6450;
		position: fixed;
		width: 100vw;
		height: 100vh;
		top: 0;
		left: 0;
		opacity: 0;
		visibility: hidden;
		z-index: 100;
		transition: all 0.6s;
	}
	
	.open_overlay .overlay {
		opacity: 0.8;
		visibility: visible;
	}
}

/* =======================================
スマートフォン用
======================================= */

@media screen and (max-width:599px) {
    #global-header-navbox {
        max-width: none;
        width: 100%;
    }
}
