
/* ********************************** ローディング画像の設定 ********************************** */
:root {
    --menu-height: 0px; /* デフォルトのメニューバー高さ */
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 10002;
}

#animation {
    margin: 0;
    position: absolute;
    top: calc(45% - var(--menu-height) / 2); /* 中央からメニューバー分を調整 */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#animation img {
    width: 100%;
    max-width: 120px;
    height: auto;
}









/* ********************************** ハンバーガーメニュー の設定 ********************************** */

.openbtn_wrapper{
    position: fixed;
    inset: 0 auto auto 0;
    width: 70px;
    height: 85px;
    background-color: white;
    z-index: 5;
}

.openbtn_wrapper:hover{
    cursor: pointer;
}




/* 3本線が×に */
/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください */
.openbtn{
	position: relative;/*ボタン内側の基点となるためrelativeを指定*/
	cursor: pointer;
    width: 50px;
    height:50px;
}

/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    height: 3px;
	background: #fff;
  	width: 45%;
  }

.openbtn span:nth-of-type(1) {
	top:15px;	
}

.openbtn span:nth-of-type(2) {
	top:23px;
}

.openbtn span:nth-of-type(3) {
	top:31px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;/*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
} */





/* ハンバーガーメニューボタンをクリックしたら円形背景を拡大表示 */
/*ナビゲーションメニュー画面*/
#g-nav.panelactive{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
	top: 0;
	width:100%;
    height: 100vh;
}

/*ハンバーガーメニューを開いている間は、本文のスクロールができないように制限*/
#g-nav.panelactive + .container{
    overflow: hidden;
}

/*円形の拡大アニメーション*/
.circle-bg{
    position: fixed;
	z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffec04;

    /*トレースのため一旦透過-最終1に戻す*/
    opacity: 1;

    /*丸のスタート位置と形状*/
	transform: scale(0);/*scaleをはじめは0に*/
	top:-50px;
    left:calc(50% - 50px);/*50%から円の半径を引いた値*/
    transition: all .6s;/*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive{
	transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}






/*ナビゲーションの縦スクロール*/
#g-nav-list{
    display: none;/*はじめは表示なし*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 4; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
    display: block; /*クラスが付与されたら出現*/
    background-color: var(--maincolor);
}






/*ナビゲーション*/
#g-nav ul {
	opacity: 0;/*はじめは透過0*/
}






/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
    opacity:1;
}






/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li{
animation-name:gnaviAnime;
animation-duration:1s;
animation-delay:.2s;/*0.2 秒遅らせてナブリストを出現*/
animation-fill-mode:forwards;
opacity:0;

}

#g-nav.panelactive ul li:last-of-type{
	border-bottom: none;
    margin-bottom: 0;
}


/* アニメーション設定 */
@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}







/* ハンバーガーメニューボタン 3本線がジャンプして×に */
/*ボタン外側のデザイン*/
.openbtn{
	position:fixed;
    inset: 15px auto auto 15px;
    z-index: 5;/*ボタンを最前面に*/
	cursor: pointer;
    width: 40px;
    height:40px;
	overflow: hidden;/*ジャンプしてはみ出た要素を消す*/
}
	
/*ボタン内側のデザイン*/
.openbtn .openbtn-area{
    transition: all .4s;/*アニメーションの設定*/
}

.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    height: 5px;
	background: var(--maincolor);
  	width: 100%;
}

.openbtn span:nth-of-type(1) {
	top:0;	
}

.openbtn span:nth-of-type(2) {
	top:17px;
}

.openbtn span:nth-of-type(3) {
	top:34px;
}





/*activeクラスが付与されると .openbtn-areaが360度回転し、その中の線のtopの位置や形状が変化して×に*/
.openbtn.active .openbtn-area{
	transform: rotateX(360deg);
}

.openbtn.active span:nth-of-type(1) {
    top: 12px;
    left: 0;
    transform: translateY(6px) rotate(-135deg);
    width: 100%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 24px;
    left: 0;
    transform: translateY(-6px) rotate(135deg);
    width: 100%;
}





/* テキストの追加 */
.menu-text {
    position: fixed;
    top: 64px; /* メニューテキストの表示位置調整 */
    left: 19px; /* メニューテキストの表示位置調整 */
    font-weight: bold;
    color: var(--maincolor);
    transition: opacity 0.4s; /* アニメーション設定 */
    font-size: 0.8em;
    z-index: 5;
}





/* ハンバーガーメニューの展開時のデザイン */

#g-nav{
    font-weight: bold;
    position: absolute;
    top: 0;
}

#g-nav .logo_header{
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    background-color: white;
    width: 100%;
    height: 90px;
    text-align: center;
}

#g-nav .logo_header img{
    width: auto;
    height: 45px;
}

#g-nav .hamburger_contents_box{
    max-width: 1400px;
    border: 12px solid #FFED00;
    margin: 80px auto 100px auto;
    height: fit-content;
    padding: 80px 60px 60px 60px;
    background-color: white; /* 背景色を白に設定 */
    background-image: url(../images/systems/other/hamburger_menu_bg.svg);
    background-position: top 40px right 40px;
    background-repeat: no-repeat;
    background-size: 640px;
}

#g-nav .hamburger_list_btn{
    display: flex;
    padding-bottom: 0.6em;
}

#g-nav .orange_border{
    margin: 5em 0 3em 0;   
}

#g-nav .category_list_wrapper .orange_border{
    margin-top: 2em;
}


/* 通常時のsvgの色設定 */
#g-nav .hamburger_list_btn li img,
#g-nav .simple_arrow_icon::before{
filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%);
width: 1em;
height: 1em;
}

#g-nav .hamburger_list_btn li img{
margin-right: 0.3em;
}

/* ホバー時にsvgをホワイトに色変更 */
#g-nav .hamburger_list_btn li a:hover img{
filter: invert(100%) sepia(100%) saturate(11%) hue-rotate(209deg) brightness(104%) contrast(101%);
}

#g-nav .hamburger_list_btn li:nth-child(1) img{
    width: 30px;
}

#g-nav .hamburger_list_btn li:nth-child(2) img{
    width: 35px;
}

#g-nav .hamburger_list_btn li a{
    padding: 0.3em 1em;
    border: 2px solid var(--maincolor);
    border-radius: 10px;
    background-color: white;
}

#g-nav .hamburger_list_btn li a:hover{
    background-color: var(--maincolor);
    color: white;
}

#g-nav .hamburger_list_btn li:nth-child(1){
    margin-right: 1em;
}

#g-nav .category_list_wrapper{
    padding-top: 1.5em;
}


#g-nav .hamburger_list_name{
    margin-bottom: 1.2em;
}

#g-nav .category_list{
    padding-left: 3em;
    display: flex;
}

#g-nav .dot_arrow_icon::before{
    content: "";
    display: inline-block;
    width: 1em; /* 必要な幅に調整 */
    height: 1em; /* 必要な高さに調整 */
    background-image: url(../images/systems/icon/dot_arrow_icon.png);
    background-size: contain; /* 画像を要素内に収める */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    margin-right: 0.5em;
    vertical-align: bottom;
}






/* 初期状態ではアイコンを-90度に回転 */
#g-nav .simple_arrow_icon::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url(../images/systems/icon/simple_arrow_icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.2em;
    vertical-align: middle;
    transform: rotate(-90deg); /* 初期の回転角度 */
}

/* カテゴリーリストのタイトル名 */
#g-nav .category_list li .list_item_cat_ttl{
    padding-bottom: 1em;
}

/* クリックされてactiveクラスが付与された時 */
#g-nav .category_list .list_item_cat_ttl_active {
    border-bottom: 3px solid #E2E2E2;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

/* クリックされてactiveクラスが付与された時_画像を回転 */
#g-nav .category_list .list_item_cat_ttl_active::before{
    transform: rotate(0deg);
}








/* レスポンシブ用の用途別リスト（一旦非表示に） */
#g-nav .seen_category_contents_wrapper{
    display: none;
}








































#g-nav .category_list{
    display: flex;
    flex-wrap: wrap; /* 要素を折り返す */
    width: 100%;
}

#g-nav .category_list > li {
    flex: 1 0 calc(100%/3 - 4em); /* 1行に4つ並ぶように設定、右マージンを考慮した幅 */
    margin-right: 4em; /* 右マージンを追加 */
    box-sizing: border-box; /* パディングとボーダーを含めたボックスサイズ */
}

/* 3の倍数行の要素には右マージンを適用しない */
#g-nav .category_list > li:nth-child(3n) {
    margin-right: 0; 
}

/* 4の倍数行の隠し要素には右マージンを適用しない */
#g-nav .category_list::after:nth-child(3n) {
    margin-right: 0; 
}



















/* カテゴリーリストのul・li */
#g-nav .category_list .hamburger_list_contents{
    padding-left: 1.5em;
}

#g-nav .category_list .hamburger_list_contents li,
#g-nav .hamburger_footer_list nav li{
    list-style: disc;
    margin-bottom: 0.75em;
}

#g-nav .category_list .hamburger_list_contents li a,
#g-nav .hamburger_footer_list nav li a {
    display: block;
    border-bottom: 4px solid transparent;
    padding-bottom: 0.5em;
}

#g-nav .category_list .hamburger_list_contents li:last-child a{
    padding-bottom: 2em;
}















.sub_title_box{
    width: 100%;
    text-align: center;
}



#g-nav .search_icon::before{
    content: "";
    display: inline-block;
    width: 1em; /* 必要な幅に調整 */
    height: 1em; /* 必要な高さに調整 */
    background-image: url(../images/systems/icon/search_icon.svg);
    background-size: contain; /* 画像を要素内に収める */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    margin-right: 0.2em;
    vertical-align: middle;
}



#g-nav .hamburger_footer_list_wrapper{
    margin-top: 5em;
}

#g-nav .hamburger_footer_list_wrapper nav li{
    margin-left: 1.2em;
}

#g-nav .hamburger_footer_list,
#g-nav .hamburger_sns_list{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

#g-nav .hamburger_footer_list > li {
    flex: 1 0 calc(100%/3 - 4em);
    box-sizing: border-box;
    padding: 3em;
    border-top: 6px solid var(--maincolor);
}

#g-nav .hamburger_footer_list > li:last-of-type{
    padding-bottom: 0;
}

/* 1番目と4番目以降の要素を横幅100%に設定 */
#g-nav .hamburger_footer_list > li:nth-child(1),
#g-nav .hamburger_footer_list > li:nth-child(n+4){
    padding-left: 0;
}

#g-nav .hamburger_footer_list > li:nth-child(2),
#g-nav .hamburger_footer_list > li:nth-child(3){
    border-left: 6px solid var(--maincolor);
}

/* 4番目以降の要素を横幅100%に設定 */
#g-nav .hamburger_footer_list > li:nth-child(n+4) {
    flex: 1 0 100%; 
}


#g-nav .hamburger_contact_list{
    display: flex;
    flex-wrap: wrap;
}

#g-nav .hamburger_contact_list .contact_sub_ttl{
    background-color: var(--notecolor);
    padding: 0.5em 2em;
    color: black;
    border-radius: 1em;
    margin: 0 1.5em 1.5em 0;
}

#g-nav .hamburger_contact_list .contact_sub_ttl::before{
    content: "〈";
}

#g-nav .hamburger_contact_list .contact_sub_ttl::after{
    content: "〉";
}

#g-nav .hamburger_sns_list{
    align-items: baseline;
}

/* 2番目以降の要素を指定 */
#g-nav .hamburger_sns_list li:nth-child(n+2){
    width: 3em;
    margin-left: 2em;
}

#g-nav .hamburger_sns_list li:nth-child(3){
    margin-left: 1.3em;
}

#g-nav .hamburger_sns_list li:last-of-type{
    width: 4em;
}

#g-nav .hamburger_sns_list .twitter_icon{
    width: 2.7em;
}

/* SNSのアイコン_通常時のsvgの色設定 */
#g-nav .hamburger_sns_list .twitter_icon,
#g-nav .hamburger_sns_list .instagram_icon,
#g-nav .hamburger_sns_list .tiktok_icon,
#g-nav .hamburger_sns_list .facebook_icon,
#g-nav .hamburger_sns_list .youTube_icon{
    filter: invert(61%) sepia(82%) saturate(4203%) hue-rotate(12deg) brightness(100%) contrast(101%)
}
  
/* SNSのアイコン_ホバー時にsvgを色変更 */
    #g-nav .hamburger_sns_list .twitter_icon:hover,
    #g-nav .hamburger_sns_list .instagram_icon:hover,
    #g-nav .hamburger_sns_list .tiktok_icon:hover,
    #g-nav .hamburger_sns_list .facebook_icon:hover,
    #g-nav .hamburger_sns_list .youTube_icon:hover{
    filter: invert(0%) sepia(98%) saturate(7492%) hue-rotate(138deg) brightness(102%) contrast(98%);
}












































