.page-template-page-activities {
	background: #f7f8f6;
}

.page-template-page-activities #contents {
	overflow: hidden;
	background: #f7f8f6;
}

.page-template-page-activities #sec_head.activities-hero {
	position: relative;
	display: block;
	min-height: clamp(680px, 86svh, 920px);
	padding: 0;
	overflow: hidden;
	background: #073f42;
}

.page-template-page-activities #sec_head.activities-hero::before,
.page-template-page-activities #sec_head.activities-hero::after {
	content: none;
}

.activities-hero__media {
	position: absolute;
	inset: 0 12% 0 23%;
	background: url('../img/img_activities_hero.jpg') 52% center / cover no-repeat;
	filter: saturate(.9) contrast(1.03);
	transform: scale(1.01);
}

.activities-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 29, 30, .02), rgba(5, 29, 30, .14));
}

.activities-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 48%;
	min-height: inherit;
	margin: 0;
	padding: clamp(92px, 10vw, 155px) 13% clamp(60px, 7vw, 105px) clamp(38px, 5.5vw, 105px);
	background: #f8f9f7;
	clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.activities-hero__copy {
	width: min(100%, 610px);
}

.activities-hero__title {
	margin: 0;
	color: #123438;
	font-family: 'Noto Serif JP', serif;
	font-size: clamp(29px, 2.55vw, 48px);
	font-weight: 500;
	line-height: 1.75;
	letter-spacing: .04em;
}

.activities-hero__title span,
.activities-hero__title strong {
	display: block;
	font-weight: inherit;
}

.activities-hero__description {
	max-width: 490px;
	margin: clamp(34px, 5vw, 65px) 0 0;
	color: rgba(18, 52, 56, .76);
	font-size: 13px;
	font-weight: 400;
	line-height: 2.2;
}

.activities-hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	margin-top: clamp(52px, 7vw, 95px);
	color: #123438;
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .16em;
}

.activities-hero__scroll i {
	position: relative;
	display: block;
	width: 42px;
	height: 1px;
	background: #0a7773;
}

.activities-hero__scroll i::after {
	content: '';
	position: absolute;
	right: 0;
	top: -2px;
	width: 5px;
	height: 5px;
	border-top: 1px solid #0a7773;
	border-right: 1px solid #0a7773;
	transform: rotate(45deg);
}

.activities-hero__toc {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: 18%;
	min-width: 230px;
	padding: clamp(118px, 14vh, 170px) clamp(28px, 3.3vw, 62px) 48px clamp(55px, 5.2vw, 100px);
	background: #006b69;
	clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
	color: #fff;
}

.activities-hero__toc-label {
	margin-bottom: clamp(65px, 10vh, 110px);
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .2em;
	writing-mode: vertical-rl;
	align-self: flex-end;
}

.activities-hero__toc a {
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 1px 10px;
	margin-left: auto;
	color: #fff;
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.activities-hero__toc a span {
	grid-row: 1 / span 2;
	font-size: 11px;
	font-weight: 400;
}

.activities-hero__toc a strong {
	color: #dbe66d;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}

.activities-hero__toc a small {
	font-size: 11px;
	line-height: 1.8;
}

.activities-hero__toc > i {
	position: relative;
	display: block;
	width: 1px;
	height: 72px;
	margin: auto 15px 0 auto;
	background: rgba(255, 255, 255, .48);
}

.activities-hero__toc > i::after {
	content: '';
	position: absolute;
	left: -2px;
	bottom: 0;
	width: 5px;
	height: 5px;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	transform: rotate(45deg);
}

.activities-content {
	position: relative;
	background: #f7f8f6;
}

.activities-gallery-section {
	position: relative;
	width: min(100% - 64px, 1540px);
	margin: 0 auto;
	padding: clamp(110px, 11vw, 175px) 0 clamp(125px, 12vw, 200px);
}

.activities-gallery-section--goods {
	scroll-margin-top: 90px;
}

.activities-gallery-section__heading {
	display: grid;
	grid-template-columns: minmax(360px, .85fr) minmax(420px, 1fr);
	gap: clamp(60px, 10vw, 180px);
	align-items: end;
	margin-bottom: clamp(58px, 7vw, 100px);
}

.activities-gallery-section__number {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 16px;
	color: #00736f;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
}

.activities-gallery-section__number span {
	font-family: 'Noto Serif JP', serif;
	font-size: 35px;
	font-weight: 400;
	letter-spacing: 0;
}

.activities-gallery-section__heading h2 {
	margin: 0;
	color: #123438;
	font-family: 'Noto Serif JP', serif;
	font-size: clamp(38px, 4vw, 62px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: .04em;
}

.activities-gallery-section__heading > p {
	max-width: 690px;
	margin: 0;
	padding: 21px 0 0 22px;
	border-top: 1px solid rgba(8, 91, 88, .25);
	border-left: 1px solid rgba(8, 91, 88, .48);
	color: rgba(18, 52, 56, .68);
	font-size: 14px;
	font-weight: 400;
	line-height: 2.1;
}

.activities-gallery-empty {
	padding: 64px 20px;
	border-top: 1px solid rgba(8, 91, 88, .22);
	border-bottom: 1px solid rgba(8, 91, 88, .22);
	color: rgba(18, 52, 56, .55);
	text-align: center;
}

.activities-gallery-pager__footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(48px, 6vw, 82px);
}

.activities-gallery-pager__more {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-width: 250px;
	min-height: 54px;
	padding: 0 22px 0 28px;
	border: 1px solid rgba(0, 115, 111, .58);
	background: transparent;
	color: #006f6b;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	cursor: pointer;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.activities-gallery-pager__more small {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .08em;
}

.activities-gallery-pager__more:hover,
.activities-gallery-pager__more:focus-visible {
	border-color: #00736f;
	background: #00736f;
	color: #fff;
}

.activities-gallery-pager__more:focus-visible {
	outline: 1px solid #00736f;
	outline-offset: 4px;
}

.activities-gallery-pager__more[hidden] {
	display: none;
}

.activities-legacy-gallery .wp-block-gallery,
.activities-legacy-gallery .blocks-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.activities-legacy-gallery figure,
.activities-legacy-gallery img {
	width: 100%;
}

.activities-legacy-gallery img {
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

@media (max-width: 1100px) {
	.activities-hero__inner {
		width: 56%;
		padding-right: 15%;
	}

	.activities-hero__toc {
		width: 21%;
	}

	.activities-gallery-section__heading {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 768px) {
	.page-template-page-activities #sec_head.activities-hero {
		display: flex;
		flex-direction: column;
		min-height: auto;
		padding-top: 88px;
		background: #f8f9f7;
	}

	.activities-hero__media {
		position: relative;
		inset: auto;
		order: 1;
		width: 100%;
		height: min(58svh, 560px);
		min-height: 390px;
		background-position: 58% center;
		transform: none;
		clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
	}

	.activities-hero__inner {
		order: 2;
		width: 100%;
		min-height: auto;
		margin-top: -45px;
		padding: 82px 24px 55px;
		clip-path: none;
	}

	.activities-hero__title {
		font-size: clamp(25px, 7.5vw, 38px);
		line-height: 1.7;
	}

	.activities-hero__description {
		margin-top: 30px;
	}

	.activities-hero__scroll {
		margin-top: 42px;
	}

	.activities-hero__toc {
		position: relative;
		order: 3;
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		width: 100%;
		min-width: 0;
		padding: 22px 24px;
		clip-path: none;
	}

	.activities-hero__toc-label,
	.activities-hero__toc > i {
		display: none;
	}

	.activities-hero__toc a {
		margin-left: 0;
	}

	.activities-gallery-section {
		width: min(100% - 36px, 1540px);
		padding: 86px 0 110px;
	}

	.activities-gallery-section__heading {
		margin-bottom: 46px;
	}

	.activities-gallery-section__heading h2 {
		font-size: clamp(35px, 10vw, 50px);
	}

	.activities-gallery-section__heading > p {
		padding: 17px 0 0 15px;
		font-size: 13px;
	}

	.activities-legacy-gallery .wp-block-gallery,
	.activities-legacy-gallery .blocks-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (max-width: 520px) {
	.activities-hero__media {
		height: 48svh;
		min-height: 330px;
	}

	.activities-hero__inner {
		padding-top: 68px;
	}

	.activities-hero__title {
		font-size: 25px;
	}

	.activities-legacy-gallery .wp-block-gallery,
	.activities-legacy-gallery .blocks-gallery-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.activities-hero__media {
		transform: none;
	}
}
