@charset "utf-8";

.sp_view_sw,.sp_dialog_close{
	display: none;
}

.online_shinsei {
	background: #dfedf6;
	--baseCol: #005bac
}
.online_shinsei h2{
	margin: 0px;
	background: url(/img/online-shinsei/shinsei-h2bg.png) no-repeat right 10px center var(--baseCol);
	font-size: 1.8rem;
	color: #fff;
	padding: 17px 15px;
	padding-right: 100px;
	line-height: 1.725;
}
.online_shinsei h2 span{
	display: inline-block;
}
.online_shinsei h2 strong{
	color: #f9ee63;
	font-size: 2.2rem;
	line-height: 1;
	text-decoration: underline;
}
.online_shinsei_detail{
	padding: 25px 20px;
}
.shinsei-annai p:first-child{
	margin-top: 0;
}
.shinsei-annai {
	height: 4.3em;
	overflow: hidden;
	position: relative;
}
.shinsei-annai *:first-child{
	margin-top: 0;
}

.shinsei-annai::after{
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(to bottom,  #dfedf600 0%,#dfedf6ff 100%);
	height: 30px;
}

.shinsei_annai_wrap {
	position: relative;
}
.annai_expand:not(:is(.is-open,.hide))::before{
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
}


/* 案内文が少ない時 */
.shinsei-annai.is-short{
	height: auto;
}
.shinsei-annai.is-short::after{
	display: none;
}

/* 案内文の展開時 */
.shinsei-annai.is-open{
	height: auto;
	overflow: auto;
}
.shinsei-annai.is-open::after{
	display: none;
}

.annai_expand{
	display: grid;
	place-content: center center;
	width: 100%;
	border: none;
	background: none transparent;
}
.annai_expand span{
	display: grid;
	grid-template-columns: auto 10px;
	align-items: center;
	gap: 5px;
}
.annai_expand span::after{
	content: '';
	display: block;
	width: 10px;
	height: 6px;
	background: #000;
	clip-path: polygon(0% 0%, 0% 25%, 50% 100%, 100% 25%, 100% 0%, 50% 75%);
}
.annai_expand.is-open span::after{
	transform: rotate(180deg);
}
.annai_expand .is-opening{
	display: none;
}

.annai_expand.is-open span.is-closing{
	display: none;
}
.annai_expand.is-open .is-opening{
	display: grid;
}


/* リンクボタン */
.shinsei_link_wrap{
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 30px;
}
.shinsei_annai_wrap:has(.annai_expand.hide) ~ .shinsei_link_wrap{
	margin-top: 0;
}
.shisei_link a:any-link{
	display: flex;
	flex-direction: column;
	align-content: center;
	align-items: center;
	justify-content: center;
	justify-items: center;
	gap: 5px;
	background: #ffffff;
	color: var(--baseCol);
	font-weight: bold;
	text-decoration: none;
	border: 1px solid var(--baseCol);
	border-radius: 15px;
	min-height: 7rem;
	margin: 0px 0px;
}
.shisei_link a:hover{
	text-decoration: underline;
}
.shisei_link a span{
	line-height: 1em;
}
.shisei_link a span:empty{
	display: none;
}

.shinsei-button-annot{
	margin: 10px 0px 0px 5px;
	font-size: 1.4rem;
	font-weight: bold;
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 5px
}
.shinsei-button-annot::before{
	content: '';
	display: block;
	width: 40px;
	height: 20px;
	background: url(/img/online-shinsei/icon-annot.png) no-repeat center center transparent;
	background-size: contain;
}

.shisei_link:has(a[href=""]){
	display: none;
}

/* サイドバー申請関係エリアの見出しと見出し内リンクをブラウザ初期値に */
:is(.shinsei-annai,.shinsei-hosoku) h2 {
	all: revert;
}
:is(.shinsei-annai,.shinsei-hosoku) h2 a:any-link{
	color: currentColor;
}
a.shinsei_toiawase {
	display: block;
	padding: 20px 10px;
	color: currentColor;
	text-decoration: none;
	border: 1px solid var(--baseCol);
	background: #fff;
	line-height: 1;
	margin: 20px 0px 0px;
	text-align: center;
}
a.shinsei_toiawase:hover{
	text-decoration: underline;
}

.font_size_changed{
	& .online_shinsei h2 span{
		display: inline;
	}
}



@media screen and (max-width: 900px) {
	.sp_view_sw{
		display: block;
	}
	
	.shinsei-naiyo1{
		width: 100%;
		overflow: auto;
	}
	
	.is-open .sp_dialog_close{
		display: block;
		position: fixed;
		top: 100px;
		right: 10px;
		display: block;
		width: 30px;
		height: 30px;
		background: #f00;
	}

	.online_shinsei_detail {
		display: none;
	}
	.is-open .online_shinsei_detail{
		display: block;
		overflow: auto;
		position: relative;
		z-index: 100;
		background: #dfedf6;
		overscroll-behavior: none;
	}
	.is-open .sp_dialog_close{
		display: block;
		position: fixed;
		right: 20px;
		top: 90px;
		width: 30px;
		height: 30px;
		background: url(/img/online-shinsei/icon-close.png) no-repeat center center #fff;
		z-index: 1000;
		margin: 0px;
		padding: 0px;
		border: none;
		border-radius: 3px;
	}

	#footer_link_pagetop.fixed{
		bottom: 150px;
	}
	#sidebar2 .online_shinsei{
		display: grid;
		grid-template-rows: auto 1fr;
		overflow: visible;
		position: fixed;
		top: auto;
		bottom: 0;
		z-index: 100;
		left: 0;
		width: 100vw;
		margin: 0;
		/* overflow: auto; */
		box-sizing: border-box;
	}
	.online_shinsei.is-open{
		height: calc(100vh - 160px);
		height: calc(100dvh - 160px);
	}
	.online_shinsei.is-open::after{
		content: '';
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: #000a;
		z-index: 10;
		color: #fff;
	}
	@media (orientation:landscape){
		.online_shinsei.is-open{
			height: calc(100vh - 130px);
			height: calc(100dvh - 130px);
		}
		.is-open .sp_dialog_close{
			top: 70px;
		}
	}
	
	.online_shinsei h2{
		display: none;
	}
	.online_shinsei .sp_view_sw {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
		padding: 15px 10px;
		padding-right: 90px;
		border: 3px solid #005bac;
		background: #fff;
		font-size: min(3.5vw,1.2rem);
		line-height: 1;
		text-align: left;
		font-weight: bold;
		z-index: 100;
		position: relative;
	}
	.online_shinsei .sp_view_sw::after{
		content: '';
		display: block;
		width: 80px;
		aspect-ratio: 94 / 90;
		background: url(/img/online-shinsei/shinsei-h2bg.png);
		background-size: contain;
		position: absolute;
		right: 5px;
		bottom: 10px;
	}
	.online_shinsei .sp_view_sw strong{
		font-size: min(4.5vw,1.8rem);
		display: block;
		border-bottom: 3px solid #e9546a;
	}	

	@media (orientation: landscape){
		.online_shinsei .sp_view_sw{
			padding: 5px 80px 5px 10px;
		}
		.online_shinsei .sp_view_sw::after{
			width: 70px;
		}
		.online_shinsei.is-open .sp_view_sw::after{
			width: 55px;
		}
	}

	#footer{
		padding-bottom: 100px;
	}
}