@charset "utf-8";
/*==================================================
	【サブ】ページ固有のスタイル
==================================================*/
#activity {
	z-index: 10;
}
#activity::before {
	background: url("../img/activity/bg01.png") no-repeat left top,
		url("../img/activity/bg02.png") no-repeat right 30%;
}
#activity h4 {
	margin-bottom: 20px;
	color: var(--color-primary);
	font-size: 28px;
	line-height: 1.4;
}
#activity h4 b {
	position: absolute;
	top: 0;
	left: 0;
	color: #ccc;
	font-size: 60px;
	line-height: 1;
	transform: translateY(-50%);
}
#activity .txt {
	position: relative;
	background: #f4f4f4;
	border-radius: 5px;
}
#activity .txt:not(:last-child) {
	margin-bottom: 70px;
}
#activity .txt p {
	margin: 0;
	padding: 15px;
	background: #fff;
	border-radius: 5px;
}
#activity .photo img {
	object-fit: cover;
	object-position: top;
	width: 100%;
	height: 100%;
	max-width: none;
}
@media print, screen and (min-width: 769px){ /* PCのみ */
	#activity .txt {
		padding: 30px;
		padding-top: 40px;
	}
}
@media print, screen and (min-width: 641px){ /* PC・タブレット */
	#activity::before {
		top: -50px;
	}
	#activity h3.sub {
		margin-bottom: 60px;
	}
	#activity .box {
		width: 55%;
	}
	#activity .box.full {
		width: 100%;
	}
	#activity .photo {
		overflow: hidden;
		position: relative;
		width: 40%;
	}
	#activity .photo .in {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
	#activity .photo .in2 {
		display: grid;
		grid-template-rows: 36% 1fr;
		gap: 30px;
	}
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	#activity::before {
		background-size: 30% auto;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	#activity h3.sub {
		margin-bottom: 40px;
	}
	#activity h4 {
		margin-bottom: 15px;
		font-size: 22px;
	}
	#activity h4 b {
		font-size: 40px;
	}
	#activity .txt:not(:last-child) {
		margin-bottom: 40px;
	}
	#activity .photo {
		width: calc(100% + 40px);
		margin: 20px 0 0 -20px;
	}
	#activity .photo .in {
		height: 220px;
	}
	#activity .photo .in2 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}
/**/
#ability::before {
	top: -100px;
	background: url("../img/activity/bg03.png") no-repeat right top;
}
#ability .box {
	padding: 30px;
	padding-top: 0 !important;
	background: #f4f4f4;
}
#ability .box h4 {
	margin-bottom: 20px;
	color: var(--color-primary);
	font-size: 35px;
	text-align: center;
	line-height: 1.4;
}
#ability .box h4 img {
	position: relative;
	display: block;
	margin: 0 auto -40px;
	transform: translateY(-50%);
}
#ability .box p:last-child {
	margin-bottom: 0;
}
#ability .box .photo {
	margin-bottom: 20px;
}
@media print, screen and (min-width: 641px){ /* PC・タブレット */
	#ability .box_flex {
		padding-top: 50px;
	}
	#ability .box {
		width: 48.5%;
	}
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	#ability::before {
		top: 0;
		background-size: 30% auto;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	#ability .box {
		margin-top: 40px;
		padding: 20px;
	}
	#ability .box h4 {
		margin-bottom: 15px;
		font-size: 25px;
	}
	#ability .box h4 img {
		width: 60px;
		margin-bottom: -25px;
	}
}