/* 基本設定 */
#header_new_01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
	font-family: "Noto Sans JP", sans-serif;
	color: #333333;
	position: fixed;
	width: 100%;
	top: 0;
    left: 0;
}

/* ロゴ */


.n_logo {
	margin-top: 10px;
	margin-left: 20px;
	width: 250px;
}

.n_logo img {
    height: auto;
    width: 100%; /* デザインに合わせて調整 */
}



/* ナビゲーションコンテナ */
.nav_container {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* メインメニュー */
.gl_menu ul {
    display: flex;
    list-style: none;
    margin: 0;
	margin-top: 10px;
    padding: 0;
    gap: 20px;
}

.gl_menu > ul > li {
    position: relative;
    padding: 0px 0;
}

.gl_menu > ul > li > a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
	list-style: 16px;

}


/* --- 子メニュー（ドロップダウン本体） --- */
.gl_menu ul li ul {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    
    /* 1. 三角形の「横幅の半分」と同じ数値（-25px）だけ左にずらす */
    /* これで頂点が親メニューの真ん中に重なります */
    margin-left: -25px; 

    background: #fff;
    width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    flex-direction: column;
    padding: 12px 0;
    
    /* 2. 三角形の「高さ」に合わせて隙間を調整（20pxに設定） */
    margin-top: 18px; 
    z-index: 10;
    transform: none; 
}

/* --- 吹き出しの三角部分（中間サイズのバランス型） --- */
#header_new_01 .gl_menu ul li ul::before {
    content: '';
    position: absolute;
    /* 4. 高さを 18px に設定（上端に配置） */
    top: -18px; 
    
    /* 5. 本体の左端（0）に固定。これでmargin-leftと相殺されて中央に見えます */
    left: 0; 
    
    /* 6. 三角形のサイズ設定 */
    /* 左右を25pxずつにすることで、どっしりしたワイド感を維持 */
    border-left: 25px solid transparent; 
    border-right: 25px solid transparent;
    /* ここが「高さ」の 18px */
    border-bottom: 18px solid #fff;
    
    filter: drop-shadow(0 -4px 3px rgba(0,0,0,0.08));
    z-index: 11;
}

.gl_menu ul li:hover > ul {
    display: flex;
}


.gl_menu ul li ul li:first-child {
	padding-top: 5px;
	
}

.gl_menu ul li ul li {
	padding-bottom: 0px!important;
	padding-top: 0px!important;
	margin-top: 0px!important;
	margin-bottom: 0px!important;
}



.gl_menu ul li ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px!important;
	padding-right: 15px!important;
	padding-top: 0px!important;
	margin-top: -10px!important;
	margin-bottom: 0px!important;
	padding-bottom: 5px!important;
	border-bottom: 1px dotted #ccc;
    font-size: 13px;
	line-height: 20px;
    color: #666;
    text-decoration: none;
    transition: background 0.3s;
}

.gl_menu ul li ul li:first-child a {
    margin-top: 5px!important;
}

.gl_menu ul li ul li:last-child a {
    border-bottom: none;
	margin-bottom: -8px!important;
}

.gl_menu ul li ul li a:hover {
	text-decoration: underline;
	color: #66a793;
}

/* デザインにある「→」の再現 */
.gl_menu ul li ul li a::after {
    content: '→';
    font-size: 12px;
    color: #333;
}


/*調整start*/

/* --- 子メニュー（ドロップダウン本体） --- */
.gl_menu ul li ul {
    display: none;
    position: absolute;
    top: 100%; /* calcを使わずシンプルに100%から配置開始 */
    left: 50%;
    margin-left: -25px; 

    background: #fff;
    width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    flex-direction: column;
    padding: 12px 0;
    
    margin-top: 18px; /* この隙間を疑似要素で埋めます */
    z-index: 10;
    transform: none; 
}

/* ★ここがポイント：親メニューと子メニューの隙間を埋める「透明な橋」を追加 */
.gl_menu ul li ul::after {
    content: "";
    position: absolute;
    top: -18px; /* margin-topと同じ分だけ上に伸ばす */
    left: 0;
    width: 100%;
    height: 18px;
    background: transparent; /* 透明なので見えません */
    z-index: -1; /* 三角形より背面に配置 */
}

/*調整end*/





/* 右側コンタクトメニュー */


.hed_menu li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: bold;
    box-sizing: border-box;
	margin-top: 10px;
}

/* お問い合わせボタン */
.hed_mail a {
    background: #87D0B9;
    color: #fff;
    padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 20px;
    font-size: 13px;
    width: 160px;
	line-height: 24px;
	letter-spacing: -0.1px;
	background-image: url(../images/ico_mail.svg);
    background-position: 10px 9px;
	background-repeat: no-repeat;
}



/* 電話番号 */
.hed_tel a {
    color: #87D0B9;
    border: 1px solid #87D0B9;
    padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 20px;
    font-size: 14px;
	line-height: 24px;
    width: 160px;
	background-image: url(../images/ico_phone.svg);
    background-position: 15px 9px;
	background-repeat: no-repeat;
	font-family: "Zen Kaku Gothic New", sans-serif!important;
}




/* --- スマホ用ハンバーガーボタン（デフォルト非表示） --- */
.menu_btn {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
}
.menu_btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    transition: .4s;
}
.menu_btn span:nth-child(1) { top: 0; }
.menu_btn span:nth-child(2) { top: 11px; }
.menu_btn span:nth-child(3) { bottom: 0; }

/* ボタンがアクティブな時のアニメーション（×印） */
.menu_btn.active span:nth-child(1) { transform: translateY(11px) rotate(-45deg); }
.menu_btn.active span:nth-child(2) { opacity: 0; }
.menu_btn.active span:nth-child(3) { transform: translateY(-11px) rotate(45deg); }







/* --- 1024px以下のレスポンシブ設定（ここから全て） --- */
@media screen and (max-width: 1024px) {

    /* 1. ヘッダー全体の調整 */
    #header_new_01 {
        padding: 10px 15px;
        height: 70px; /* スマホ時の高さを固定 */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* 2. ロゴのサイズ調整 */
    .n_logo {
        width: 160px; /* スマホで見やすいサイズに */
        margin: 0;
    }
    .n_logo img {
        width: 100%;
        height: auto;
    }

    /* 3. ハンバーガーボタン（タップ前） */
    .menu_btn {
        display: block; /* スマホで表示 */
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 10001; /* メニューより手前に */
        cursor: pointer;
    }
    .menu_btn span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background: #333;
        transition: all 0.4s;
    }
    .menu_btn span:nth-child(1) { top: 0; }
    .menu_btn span:nth-child(2) { top: 11px; }
    .menu_btn span:nth-child(3) { bottom: 0; }

    /* 4. ハンバーガーボタン（タップ後：×印） */
    .menu_btn.active span:nth-child(1) {
        transform: translateY(11px) rotate(-45deg);
    }
    .menu_btn.active span:nth-child(2) {
        opacity: 0;
    }
    .menu_btn.active span:nth-child(3) {
        transform: translateY(-11px) rotate(45deg);
    }

    /* 5. ナビゲーションメニュー本体（右からスライド） */
    .nav_container {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の外（右）に隠す */
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 40px; /* ボタンと被らないよう上をあける */
        box-sizing: border-box;
        transition: 0.5s;
        overflow-y: auto; /* メニューが長い場合にスクロール可能に */
        display: block !important;
        z-index: 10000;
        flex-direction: column;
    }
    .nav_container.active {
        right: 0; /* アクティブ時に画面内に表示 */
    }

    /* 6. 上部の電話・メールボタン（縦並び） */
    #header_new_01 .hed_menu {
        margin-bottom: 30px;
        width: 100%;
    }
    #header_new_01 .hed_menu ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }
    #header_new_01 .hed_menu li {
        width: 100%;
    }
    #header_new_01 .hed_menu li a {
        width: 100% !important;
        margin: 0;
        box-sizing: border-box;
        height: 50px;
        font-size: 15px;
    }

    /* 7. メインメニュー（縦並び） */
    #header_new_01 .gl_menu > ul {
        flex-direction: column;
        gap: 0;
    }
    #header_new_01 .gl_menu > ul > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    #header_new_01 .gl_menu > ul > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        font-size: 16px;
        font-weight: normal;
		color: #404041;
    }

    /* 親メニューに「＋」マークを付ける（任意） */
    #header_new_01 .gl_menu > ul > li > a::after {
        content: '+';
        font-size: 40px;
        color: #404041;
		font-weight: normal;
    }
    #header_new_01 .gl_menu > ul > li.open > a::after {
        content: '－';
		font-size: 30px;
        color: #404041;
		font-weight: normal;
    }

    /* 8. 子メニュー（アコーディオン） */
    #header_new_01 .gl_menu li ul {
        position: static; /* 浮かさずに下に広げる */
        width: 100%;
        display: none; /* JSで開閉するため初期は非表示 */
        background: none;
        padding: 0 15px;
        margin: 0;
        box-shadow: none;
    }
    #header_new_01 .gl_menu li.open > ul {
        display: block; /* openクラスがついたら表示 */
    }

	#header_new_01 .gl_menu li ul {
		padding-left: 20px;
		margin-top: -10px;
		margin-bottom: 30px;

	}
	
	
    #header_new_01 .gl_menu li ul li {
        border-bottom: 1px dashed #ddd;
    }
	
	#header_new_01 .gl_menu li ul li:last-child {
        border-bottom: none;
    }
	
	
    #header_new_01 .gl_menu li ul li a {
        padding: 12px 0;
        font-size: 14px;
        color: #555;
    }
    #header_new_01 .gl_menu li ul::before {
        display: none; /* PC版の吹き出しの角を消す */
    }

    /* その他スマホで不要な要素 */
    .pc_only {
        display: none !important;
    }
	
	
	/* PC用ロゴを隠す（メニューが開いている時） */
    .nav_container.active ~ .n_logo {
        opacity: 0;
    }

    /* メニュー内左上のロゴ */
    .sp_menu_logo {
        position: absolute;
        top: 15px;
        left: 20px;
        width: 150px;
    }

 /* --- 1024px以下のレスポンシブ設定内のアイコン部分を修正 --- */

/* 1. 【共通設定】土台のサイズと配置を決める */
#header_new_01 .gl_menu > ul > li > a {
    position: relative;
    padding-right: 40px;
}

#header_new_01 .gl_menu > ul > li > a::after {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    
    /* ★画像・テキストどちらが来てもいいようにサイズを確保 */
    width: 24px;   
    height: 24px;  
    line-height: 24px; /* テキストの上下中央崩れ防止 */
    text-align: center;
    
    color: #333;
    transition: 0.3s;
}

/* 2. 【子メニューがない場合】画像を表示 */
#header_new_01 .gl_menu > ul > li > a::after {
    content: ''; /* テキストは空にする */
    background-image: url(../images/right_ico_y.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; /* 枠内に画像を収める */
}

/* 3. 【子メニューがある場合】閉じてる時は「+」 */
#header_new_01 .gl_menu > ul > li:has(ul) > a::after {
    content: '+';
    font-size: 30px!important;
    background-image: none; /* ★設定した背景画像を消す */
}

/* 4. 【子メニューが開いている時】「-」 */
#header_new_01 .gl_menu > ul > li.open > a::after {
    content: '\2212'; 
    background-image: none; /* ★設定した背景画像を消す */
}
	
	
	
/* 2. 子メニュー（展開された階層）の矢印設定 */
/* ここで、PC版の矢印設定をスマホ版にも適用（または上書き）します */

    /* お問い合わせ・電話ボタンを横並びにする */
    #header_new_01 .hed_menu {
        margin-top: 10px;
        padding: 0;
		margin-bottom: 20px;
    }

    #header_new_01 .hed_menu ul {
        display: flex !important;
        flex-direction: row !important; /* 横並び */
        justify-content: space-between;
        gap: 10px;
    }

    #header_new_01 .hed_menu li {
        width: 48% !important; /* 2つ並ぶように調整 */
    }

    #header_new_01 .hed_tel a {
        background: #fff; /* 背景白 */
        color: #87D0B9;
		font-family: "Zen Kaku Gothic New", sans-serif!important;
    }

    /* PC版のみ表示のクラス用 */
    .pc_only_hide {
        display: block;
    }
	
	
	
	/* 2カラムメニュー（ボタンの上） */
.sp_extra_nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.extra_col {
    width: 48%;
}
.extra_col a {
    display: block;
    font-size: 11px;
    color: #333;
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
    padding-left: 12px;
}
.extra_col a::before {
    content: '〉';
    position: absolute;
    left: 0;
    font-size: 10px;
    color: #87D0B9; /* 矢印の色をサイトカラーに */
}





.sp_info_text p {
    color: #fff;
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: bold;
}

.sp_sns_icons {
    display: flex;
    justify-content: center;
    gap: 25px;
	padding-bottom: 30px;
}
.sp_sns_icons a {
    color: #fff;
    font-size: 30px;
    text-decoration: none;
}
	
	.hm_ft_bg {

	}
	
	
	.gl_menu ul li ul li:first-child {
	padding-top: 5px;
	
}

.gl_menu ul li ul li {
	padding-bottom: 0px!important;
	padding-top: 0px!important;
	margin-top: 0px!important;
	margin-bottom: 0px!important;
}



.gl_menu ul li ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px!important;
	padding-right: 15px!important;
	padding-top: 15px!important;
	margin-top: 0px!important;
	margin-bottom: 0px!important;
	padding-bottom: 15px!important;
    font-size: 13px;
	line-height: 20px;
    color: #666;
    text-decoration: none;
    transition: background 0.3s;
	border-bottom: none;
}

.gl_menu ul li ul li:first-child a {
    margin-top: 5px!important;
}

.gl_menu ul li ul li:last-child a {
    border-bottom: none;
	margin-bottom: 10px!important;
}

.gl_menu ul li ul li a:hover {
	text-decoration: underline;
	color: #66a793;
}



	


/* お問い合わせボタン */
.hed_mail a {
    background: #87D0B9;
    color: #fff;
    padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 20px;
    font-size: 13px;
	line-height: 24px;
	letter-spacing: -0.1px;
	background-image: url(../images/ico_mail.svg);
    background-position: 20px 18px;
	background-repeat: no-repeat;
}



/* 電話番号 */
.hed_tel a {
    color: #87D0B9;
    border: 1px solid #87D0B9;
    padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 20px;
    font-size: 14px;
	line-height: 24px;
	letter-spacing: 0px;
	background-image: url(../images/ico_phone.svg)!important;
     background-position: 20px 15px!important;
	background-repeat: no-repeat!important;
	font-family: "Zen Kaku Gothic New", sans-serif!important;

}	
	
/* 下部の緑色エリア */
.sp_menu_footer_green {
    text-align: center;
	background-color: #65a891;
	width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
	margin-bottom: 0px!important;
	position: relative;
	margin-bottom: 0px;
}
	
/* 親要素（aタグ）の配置を調整 */
    .gl_menu ul li ul li a {
        position: relative;
        padding-right: 30px; /* 矢印画像が文字と被らないための余白 */
    }

    /* 矢印を画像に切り替える */
    .gl_menu ul li ul li a::after {
        content: ''; /* テキストの「→」を消す */
        
        /* 画像の呼び出しと調整 */
        background-image: url(../images/right_ico_y.png);
        background-position: center right;
        background-repeat: no-repeat;
        background-size: contain; /* 枠内に画像を綺麗に収める */
        
        /* 画像を表示するためのサイズ指定 */
        display: inline-block;
        width: 18px;  /* 画像の横幅（微調整してください） */
        height: 18px; /* 画像の高さ（微調整してください） */
        
        /* 位置を右端の上下中央に固定 */
        position: absolute;
        top: 50%;
        right: 10px;  /* 右端からの距離 */
        transform: translateY(-50%);
    }	
	.hm_ft_contents {
		background-color: #65A891;
		padding-top: 5px;
		width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
	}
	
	.hm_ft_contents .hed_menu ul li.hed_mail {
		margin-left: 20px;
	}
	
	.hm_ft_contents .hed_menu ul li.hed_tel {
		margin-right: 20px;
		font-family: "Zen Kaku Gothic New", sans-serif!important;
	}
	.hed_men {
		margin-bottom: 0px!important;
		padding-bottom: 0px!important;
	

	}
	
	.hm_ft_bg_top {
		min-height: 50px;
		height: auto;
		background-color: #f8f7f7;
		background-image: url(../images/26_0408_footer_bg.png)!important;
     background-position: top;
	background-repeat: no-repeat;
		background-size:cover;
				width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
	
	
}
	
	.hm_ft_bg_top.bgc_fix {
		background-color: #fafafa;
		
		
	}
	
	.sora_bg {
						width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
		height: auto;
				background-image: url(../images/sora_bg.png)!important;
     background-position: bottom;
	background-repeat: repeat-x;
		background-size:cover;
		padding-left: 20px;
		padding-right: 20px;
	}
	
	
	
	.gl_menu {
		padding-bottom: 100px;
	}


	
	
}
/* --- 1024px以下のレスポンシブ設定（ここまで） --- */


/* PC表示の時はメニュー内ロゴを隠す */
@media screen and (min-width: 1025px) {
    .pc_only_hide {
        display: none;
    }
	.sp_extra_nav {
		display: none;
	}
	.sp_menu_footer_green {
		display: none;
	}
/* メインメニュー */
.gl_menu > ul { /* ★「ul」の前に「>」を付けました */
    display: flex;
    list-style: none;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    gap: 45px; /* ★これで親メニューの左右の間隔だけが 30px になります */
}

}
