@charset "utf-8";
/* CSS Document */

/*------------------------------------------------------
	活用例
------------------------------------------------------*/

/*----タブ切り替え----*/
/*フェードイン*/
@keyframes fade-in {
    0% { }
    100% { opacity: 1; }
}

/**/
.use-box .tab-box {
    display: flex;
	justify-content: center;
    flex-wrap: wrap;
    gap: 0;
	margin: 30px auto;
}
.use-box .tab-box input {
    display: none;
}

/*ボタン*/
.use-box .tab-box > label {
	display: flex;
	flex-wrap: wrap;
    flex: 1 1 1;
    order: -1;
	justify-content: center;
	align-items: center;
    width: calc(100% / 3);
	background-color: #f1f5f9;
    color: #fff;
    font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.3em;
    text-align: center;
	transition: all .3s ease;
    cursor: pointer;
	position: relative;
}
.use-box .tab-box > label:first-of-type {
	border-radius: 30px 0 0 30px;
}
.use-box .tab-box > label:last-of-type {
	border-radius: 0 30px 30px 0;
}

/**/
.use-box .tab-box > label > span{
	display: block;
	width: 100%;
	color: #95abc0;
    padding: 15px 10px;
	line-height: 1.3em;
	border-radius: 30px;
	transition: all .3s ease;
	overflow: hidden;
	position: relative;
	z-index: 2;
}
.use-box .tab-box > label > span:before{
	content: "";
	display: block;
	width: 0;
	height: 100%;
	background-color: var(--main-color);
	transition: all .3s ease;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	margin: auto;
	z-index: -1;
}
.use-box .tab-box > label:hover span {
	color: var(--main-color);
}

.use-box .tab-box > label > span br{
	display: none;
}

.use-box .tab-box > section {
    display: none;
    width: 100%;
	margin: 0;
    padding: 50px 0;
    background-color: #fff;
}


.use-box .tab-box label:has(:checked) span{
	color: #fff;
}
.use-box .tab-box label:has(:checked) span:before{
    width: 100%;
	background-color: var(--main-color);
}

/**/
.use-box .tab-box > section > *{
	opacity: 0;
}
.use-box .tab-box label:has(:checked) + section {
    display: block;
}
.use-box .tab-box label:has(:checked) + section > * {
	animation: fade-in .5s ease forwards;
	animation-delay: .2s;
}


/*----コンテンツ----*/
.use-box ul.item-list{
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin: 30px auto;
}
.use-box ul.item-list > li{
	text-align: center;
}
.use-box ul.item-list > li p{
	color: #4b8ed1;
	font-size: 16px;
	font-weight: 700;
}
.use-box ul.item-list > li a{
	display: block;
	background-color: #ebeff3;
	border-radius: 15px;
	overflow: hidden;
	position: relative;
}
.use-box ul.item-list > li a:before{
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	mix-blend-mode: multiply;
	opacity: 0;
	transition: all .2s ease;
	position: absolute;
	left: 0;
	top: 0;
}
.use-box ul.item-list > li a:after{
	content: "";
	display: block;
	width: 70px;
	height: 70px;
	background-image: url(../../../_images/common/icon-arrow.svg);
	filter: brightness(0) saturate(100%) invert(99%) sepia(100%) saturate(3%) hue-rotate(345deg) brightness(107%) contrast(100%);
	transform: translate(-50%, -20%);
	transition: all .2s ease;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
}

.use-box ul.item-list > li a *{
	transition: all .2s ease;
}
/*hover*/
.use-box ul.item-list > li a:hover{
	opacity: 1;
}
.use-box ul.item-list > li a:hover:before{
	opacity: 1;
}
.use-box ul.item-list > li a:hover:after{
	opacity: 1;
	transform: translate(-50%, -50%);
}


@media screen and (max-width: 786px) {
	/**/
	.use-box .tab-box {
		margin: 30px 3%;
	}
	.use-box .tab-box input {
		display: none;
	}

	/*ボタン*/
	.use-box .tab-box > label {
		font-size: 1.9rem;
	}

	/**/
	.use-box .tab-box > label > span{
		padding: 8% 2%;
	}

	/*----コンテンツ----*/
	.use-box ul.item-list{
		gap: 20px 20px;
	}
	.use-box ul.item-list > li{
		width: calc((100% - 40px) / 3);
	}
	.use-box ul.item-list > li p{
		font-size: 1.6rem;
	}
}

@media screen and (max-width: 480px) {
	/*ボタン*/
	.use-box .tab-box > label {
		font-size: 1.8rem;
	}
	/**/
	.use-box .tab-box > label > span{
		padding: 5px 5px;
		font-size: 1.7rem;
	}
	.use-box .tab-box > label:nth-of-type(3){
		font-size: 1.8rem;
	}
	.use-box .tab-box > label:nth-of-type(3) span{
		padding: 13px 5px
	}
	.use-box .tab-box > label > span br{
		display: inline-block;
	}

	/*----コンテンツ----*/
	.use-box ul.item-list{
		gap: 20px 20px;
	}
	.use-box ul.item-list > li{
		width: calc((100% - 20px) / 2);
	}
	.use-box ul.item-list > li p{
		font-size: 1.6rem;
	}
}





