/*タブ全体のスタイル*/
.tabs {
	position: relative;
	padding-bottom: 0;
	background-color: #fff;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

/*タブのスタイル*/
.tab_item {
	width: calc(100%/5);
	height: 100px;
	/*border: 2px solid #ababab;*/
	/*border-bottom: 3px solid #ababab;*/
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	background-color: #d9d9d9;
	line-height: 50px;
	font-size: clamp(12px,1.5vw,16px);
	text-align: center;
	color: #565656;
	display: block;
	float: left;
	font-weight: bold;
	transition: all 0.2s ease;
	cursor: pointer;
	margin: 0;
}

.tab_item:hover {
	opacity: 0.75;
}
.tab_item[for=tab1]:hover {
	background-color: #ffa3a3;
}
.tab_item[for=tab2]:hover {
	background-color: #a3d1ff;
}
.tab_item[for=tab3]:hover {
	background-color: #ffd1a3;
}
.tab_item[for=tab4]:hover {
	background-color: #a3a3ff;
}
.tab_item[for=tab5]:hover {
	background-color: #a2fcd5;
}


/*ラジオボタンを消す*/
input[name="tab_item"] {
	display: none;
}

/*タブの中身*/
.tab_content {
	display: none;
	padding: 40px 40px 0;
	clear :both;
	overflow: hidden;
}
.tab_content p{
	margin-top: 5px;
	margin-bottom: 10px;
}
#tab1_content{
	border: 3px solid #ff7f7f;
}
#tab2_content{
	border: 3px solid #7fbfff;
}
#tab3_content{
	border: 3px solid #ffbf7f;
}
#tab4_content{
	border: 3px solid #7f7fff;
}
#tab5_content{
	border: 3px solid #68fcbc;
}


#tab1:checked ~ #tab1_content,
#tab2:checked ~ #tab2_content,
#tab3:checked ~ #tab3_content,
#tab4:checked ~ #tab4_content,
#tab5:checked ~ #tab5_content {
	display: block;
	padding: 10px;
}

.tabs input:checked + .tab_item[for=tab1] {
	background-color: #ff7f7f;
	color: #fff;
	text-shadow: 1px 1px 1px #333, -1px 1px 1px #333, 1px -1px 1px #333, -1px -1px 1px #333, 1px 0px 1px #333, 0px 1px 1px #333, -1px 0px 1px #333, 0px -1px 1px #333;
}

.tabs input:checked + .tab_item[for=tab2] {
	background-color: #7fbfff;
	color: #fff;
	text-shadow: 1px 1px 1px #333, -1px 1px 1px #333, 1px -1px 1px #333, -1px -1px 1px #333, 1px 0px 1px #333, 0px 1px 1px #333, -1px 0px 1px #333, 0px -1px 1px #333;
}

.tabs input:checked + .tab_item[for=tab3] {
	background-color: #ffbf7f;
	color: #fff;
	text-shadow: 1px 1px 1px #333, -1px 1px 1px #333, 1px -1px 1px #333, -1px -1px 1px #333, 1px 0px 1px #333, 0px 1px 1px #333, -1px 0px 1px #333, 0px -1px 1px #333;
}

.tabs input:checked + .tab_item[for=tab4] {
	background-color: #7f7fff;
	color: #fff;
	text-shadow: 1px 1px 1px #333, -1px 1px 1px #333, 1px -1px 1px #333, -1px -1px 1px #333, 1px 0px 1px #333, 0px 1px 1px #333, -1px 0px 1px #333, 0px -1px 1px #333;
}

.tabs input:checked + .tab_item[for=tab5] {
	background-color: #68fcbc;
	color: #fff;
	text-shadow: 1px 1px 1px #333, -1px 1px 1px #333, 1px -1px 1px #333, -1px -1px 1px #333, 1px 0px 1px #333, 0px 1px 1px #333, -1px 0px 1px #333, 0px -1px 1px #333;
}

/*説明文*/
.tab_text {
	position: relative;
	width: 100%;
	height: auto;
	font-size: clamp(12px,1.5vw,16px);
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
	font-weight: 400;
	display: flex;
	flex-wrap: wrap;
}

/*各コンテンツのアイコン*/
.tenki,.coment,.kishou,.bousai,.amagumo,.taihu,.amedas,.kikikuru1,.kikikuru2,.kikikuru3,.yuki,
.souki,.kongo,.kasen,.ryuikiuryo,.jishin,.jishin_kaisetsu,.nankai,.funka,.kazan {
	position: relative;
}
.tenki::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/tenki.PNG);
}
.coment::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/coment.PNG);
}
.kishou::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kishou.PNG);
}
.bousai::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/bousai.PNG);
}
.amagumo::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/amagumo.PNG);
}
.taihu::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/taihu.PNG);
}
.amedas::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/amedas.PNG);
}
.kikikuru1::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kikikuru1.PNG);
}
.kikikuru2::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kikikuru2.PNG);
}
.kikikuru3::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kikikuru3.PNG);
}
.yuki::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/yuki.PNG);
}

.souki::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/souki.PNG);
}
.kongo::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kongo.PNG);
}
.kasen::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kasen.PNG);
}
.ryuikiuryo::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/ryuikiuryo.PNG);
}
.jishin::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/jishin.PNG);
}
.jishin_kaisetsu::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/jishin_kaisetsu.PNG);
}
.nankai::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/nankai.PNG);
}
.funka::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/funka.PNG);
}
.kazan::before {
	content:'';
	position: absolute;
	top: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/*アイコンとテキストの間隔*/
	left: 0;
	/*アイコンの上下位置*/
	transform: translateY(-50%);
	/*アイコンのサイズ*/
	width: 1.7em;
	height: 1.7em;
	/*表示させるアイコンのパス*/
	background-image: url(./image/kazan.PNG);
}
.title, .toggle {
	display: none;
}

	
/*スマートフォン向けCSS*/
@media only screen and (max-width:1116px) {
	.tab_item>p {
		/*font-size: clamp(12px,1.5vw,20px);*/
		line-height: 1.8;
		position: relative;
		top: 20%;
		text-align: center;
	}
}
@media only screen and (max-width:698px) {
	.tab_item>p {
		font-size: clamp(12px,1.5vw,20px);
		line-height: 1.8;
		position: relative;
		top: 20%;
		text-align: center;
	}
}
@media only screen and (max-width:496px) {
	.tab_item>p {
		font-size: clamp(12px,1.5vw,20px);
		line-height: 1.5;
		position: relative;
		top: 15%;
		text-align: center;
	}
}
@media only screen and (max-width:410px) {
	.tab_item>p {
		font-size: clamp(11px,1.5vw,20px);
		line-height: 1.2;
		position: relative;
		top: 20%;
	}
}

/*タブを横1列から2×2列へ*/
@media only screen and (max-width:428px) {
	.tab_content {
		display: none;
		position: relative;
		top: 15px;
	}
	/*
	#tab1:checked ~ #tab1_content,
	#tab2:checked ~ #tab2_content,
	#tab3:checked ~ #tab3_content,
	#tab4:checked ~ #tab4_content,
	#tab5:checked ~ #tab5_content {
		display: none;
	}
	*/
	.tab_item {
		position: relative;
		width: calc(100%/2);
		padding: 1em;
		/*display: flex;*/
		flex-wrap: wrap;
		border-bottom-left-radius: 12px;
		border-bottom-right-radius: 12px;
		/*float: inline-start;*/
		z-index: auto;
	}
	.tab_item>p {
		font-size: clamp(14px,1.5vw,20px);
		line-height: 1.2;
		position: relative;
		text-align: center;
		top: 10%;
	}
	.tab_text {
		font-size: clamp(12px,1.5vw,20px);
	}
	.tab_content>p {
		font-size: clamp(13px,1.5vw,20px);
	}
	
	.tab_item::before{
		content: "";
		width: 8px;
		height: 8px;
		border-top: 2px solid #fff;
		border-right: 2px solid #fff;
		-webkit-transform: rotate(45deg);
		position: absolute;
		top: 80%;
		left: 47%;
		transform: rotate(135deg);
	}
	
	.tab_item[for=tab1]::after {
		content: "";
		position: absolute;
		width: 0;
		height: 0;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 16px solid #ff7f7f;
		display: none;
		bottom: -14px;
		left: 50%;
		transform: translateX(-50%);
	}
	.tab_item[for=tab2]::after {
		content: "";
		position: absolute;
		width: 0;
		height: 0;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 16px solid #7fbfff;
		display: none;
		bottom: -14px;
		left: 50%;
		transform: translateX(-50%);
	}
	.tab_item[for=tab3]::after {
		content: "";
		position: absolute;
		width: 0;
		height: 0;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 16px solid #ffbf7f;
		display: none;
		bottom: -14px;
		left: 50%;
		transform: translateX(-50%);
	}
	.tab_item[for=tab4]::after {
		content: "";
		position: absolute;
		width: 0;
		height: 0;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 16px solid #7f7fff;
		display: none;
		bottom: -14px;
		left: 50%;
		transform: translateX(-50%);
	}
	.tab_item[for=tab5]::after {
		content: "";
		position: absolute;
		width: 0;
		height: 0;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top: 16px solid  #68fcbc;
		display: none;
		bottom: -14px;
		left: 50%;
		transform: translateX(-50%);
	}
	.tabs input:checked + .tab_item::after {
		display: block;
		z-index: 100;
	}
	.tab_item:hover ::after {
		display: block;
	}
	
	.tab_content {
		display: none;
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		transform: translateZ(0);
		transition: all 0.3s;
	}
	/*
	.tab_content {
		height: 0;
		margin-bottom: 0px;
		padding: 0 20px;
		overflow: hidden;
	}
	.tabs input:checked + .tab_item[for=tab1] + #tab1_content {
		display: block;
		height: auto;
		padding: 20px;
		transition: all .3s;
	}
	*/
	.tabs input:checked + .tab_item::before {
		/*transform: rotate(-45deg);*/
		display: none;
	}
	
	.accordion {
		margin-left: 0;
		max-width: 100%;
	}
	.toggle {
		display: none;
	}
	.title, 
	.tab_text {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		transform: translateZ(0);
		transition: all 0.3s;
	}
	.title {
		font-size: clamp(13px,1.5vw,20px);
		border: solid 1px #ccc;
		padding: 0.5em;
		display: block;
		color: #333;
		font-weight: bold;
	}
	.title::after,
	.title::before {
		content: "";
		position: absolute;
		right: 1.25em;
		top: 1.0em;
		width: 2px;
		height: 0.75em;
		background-color: #999;
		transition: all 0.3s;
	}
	.title::after {
		transform: rotate(90deg);
	}
	.tab_text {
		padding: 0 4px;
		max-height: 0;
		overflow: hidden;
	}
	.tab_textt p {
		margin: 0;
		padding: 0.5em 1em 1em;
		font-size: 0.9em;
		line-height: 1.5;
	}
	.toggle:checked + .title + .tab_text {
		max-height: 500px;
		transition: all 1.5s;
	}
	.toggle:checked + .title::before {
		transform: rotate(90deg) !important;
	}
	.tab_content>p {
		display: none;
	}
}
}