@charset "utf-8";

:root{
	--spheaderHeight: 8rem;
}

/* スマートフォンメニュー（本庁・特殊サブサイト共通） */
#spm_wrap {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: stretch;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 8rem;
}

#spm_wrap :is(button,a){
	display: grid;
	place-content: flex-end center;
	flex: 1;
	/* height: var(--headerHeight); */
	background: #005f3e;
	border: 1px solid #cfde8e;
	border-left: none;
	box-sizing: border-box;
	font-size: 1.2rem;
	color: #fff;
	margin: 0;
	padding: 0;
	text-decoration: none;
}
#spm_wrap :is(button,a)::before{
	content: '';
	display: block;
	width: calc(96vw / 4);
	height: 50px;
	margin: 0 auto;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: transparent;
	background-size: contain;
}
#spm_wrap #btn_spm_support::before{
	background-image: url(/img/sp/menu/icon-support.png);
	background-size: auto 30px;
}
#spm_wrap #btn_spm_search::before{
	background-image: url(/img/sp/menu/icon-search.png);
	background-size: auto 30px;
}
#spm_wrap #btn_spm_menu::before{
	background-image: url(/img/sp/menu/icon-menu.png);
	background-size: auto 22px;
}
#spm_wrap #btn_spm_pagetop::before{
	background-image: url(/img/sp/menu/icon-pagetop.png);
	background-size: auto 20px;
}


#spm_wrap :is(button,a):last-child{
	border-right: none;
}
#spm_wrap :is(button,a) span{
	display: block;
	text-align: center;
	margin-bottom: 10px;
}
#spm_wrap button:not(open) span.btn_spm_close{
	display: none;
}

/* 展開時 */
#spm_wrap :is(button).open{
	background: #f4fed1;
	color: #005f3e;
}
#header #spm_wrap :is(button).open::before{
	background-image: url(/img/sp/menu/icon-close.png);:
}
#spm_wrap :is(button,a).open span.btn_spm_text{
	display: none;
}
#spm_wrap :is(button,a).open span.btn_spm_close{
	display: block;
}

#spm_wrap a span.hide{
}

.open_support #he_right{
	bottom: 8rem;
}



/***** メニュー展開 *****/

/* 翻訳・背景色展開 */
.open_support #he_right {
    position: fixed;
    width: 100%;
    min-width: 320px;
    height: auto;
    background: #f4fed1;
    padding: 10px 20px 15px;
	box-sizing: border-box;
    overflow-y: auto;
    display: block;
    z-index: 9;
    top: auto;
    margin: 0px;
    bottom: var(--spheaderHeight);
    max-height: calc(100vh - var(--spheaderHeight));
    -ms-scroll-chaining: none;
    overscroll-behavior: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.open_support #he_right > #he_right_div{
	display: block;
	width: auto;
}

/* 検索展開 */
.open_search #he_right{
	display: block;
}
.open_search #he_right #he_right_div{
	display: none;
	width: auto;
}
.open_search .content3_ttl{
	display: none;
}
.open_search #open_search_box {
	display: block;
	place-items: center center;
	height: auto;
	background: #f4fed1;
	position: fixed;
	left: 0;
	bottom: var(--spheaderHeight);
	top: auto;
	padding: 20px;
	box-sizing: border-box;
}
.open_search #open_search_box :where(.life_wrap,.top_search_menu_list){
	display: none;
}
#close_btn_div {
	display: none;
}

/* メニュー展開 */
.open_menu #top_search{
	display: block;
	position: fixed;
	top: auto;
	bottom: var(--spheaderHeight);
	left: 0;
	height: calc(100dvh - var(--spheaderHeight));
	z-index: 9999;
	overflow: auto;
	width: 100%;
}
#container.open_menu #header #top_search_box{
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: none;
	flex-direction: column;
}
#container.open_menu #header #top_search_box ul#gnav{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 40px 20px 20px;
	background: #f4fed1;
	gap: 10px;
}

/* AIチャットボット20240227 */
iframe[class*="ul-widget-hide"] {
	z-index: 5 !important;
}
/* AIチャットボット20240227 ここまで */