@charset "UTF-8";
/*-----------------------------------
	mainvisual
-----------------------------------*/
#mainvisual {
	background-image: url(../img/sustainability/mainvisual.jpg);
}
/*-----------------------------------
	health_block
-----------------------------------*/
/*--1040px以下768pxまでvw--*/
#health_block {
	color: var(--mClr3);
}
#health_block h2::before {
	content: "Sustainability";
}
#health_block .health_inner:not(:last-child) {
	margin-bottom: min(90px,8.65vw);
}
#health_block h3 {
	font: 500 min(2.3rem,2.21vw)/1 var(--fJA);
	padding-left: min(10px,0.96vw);
	border-left: 5px solid var(--mClr3);
	margin-bottom: min(20px,1.92vw);
}
#health_block .read {
	line-height: 2;
	margin-bottom: min(30px,2.88vw);
}
#health_block .box {
	background: #E6F5F3;
	padding: min(35px,3.37vw) min(40px,3.85vw);
	margin-bottom: min(30px,2.88vw);
}
#health_block .box h4 {
	font: 700 min(2.3rem,2.21vw)/1 var(--fJA);
	text-align: center;
	margin-bottom: min(20px,1.92vw);
}
#health_block .box p {
	font: 400 min(1.5rem,1.44vw)/1.73 var(--fJA);
	white-space: pre-line;
}
#health_block .box .details {
	width: max-content;
	margin: min(20px,1.92vw) 0 0 auto;
	line-height: 1.6;
}
#health_block .box .details .c_name {
	display: block;
}
#health_block .box .details .post {
	display: inline-block;
	font-size: min(1.4rem,1.34vw);
}
#health_block .box .details .name {
	display: inline-block;
	font-size: min(2.5rem,2.38vw);
	margin-left: 1em;
}
@media screen and (max-width: 767px) {
	#health_block h3 {
		font-size: max(3.91vw,1.6rem);
		border-left: 0.65vw solid var(--mClr3);
		padding-left: 1.3vw;
		margin-bottom: 3.91vw;
	}
	#health_block .read {
		line-height: 1.77;
		margin-bottom: 5.21vw;
	}
	#health_block .box {
		padding: 5.21vw 3.91vw;
	}
	#health_block .box h4 {
		font-size: max(3.91vw,1.6rem);
		margin-bottom: 2.6vw;
	}
	#health_block .box p {
		font-size: inherit;
	}
	#health_block .box .details {
		margin: 2.6vw 0 0 auto;
	}
	#health_block .box .details .c_name {
		font-size: max(2.6vw,1.2rem);
	}
	#health_block .box .details .post {
		font-size: max(2.6vw,1.2rem);
	}
	#health_block .box .details .name {
		font-size: max(3.91vw,1.6rem);
	}
}
/*-----------------------------------
	Image Modal
-----------------------------------*/
/* Image container styling */
.image-container {
	display: block;
	position: relative;
	width: 100%;
}
.image-container.modal-trigger::before {
	content:'';
	width: 34px;
	height: 34px;
	display: block;
	background: #FFFFFFCC url(../img/sustainability/icon_expansion.svg) no-repeat center center/20px;
	border-radius: 50%;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
}
.image-container img {
	width: 100%;
	height: auto;
	display: block;
}
/* Desktop: Cursor pointer for clickable images (768px and above) */
@media screen and (min-width: 768px) {
	.image-container {
		display: block;
	}
	.swipe-indicator {
		display: none !important;
	}
	.modal-trigger {
		cursor: pointer;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
	.modal-trigger:hover {
		transform: scale(1.02);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	}
}
/* Mobile: Horizontal scrollable image (767px and below) */
@media screen and (max-width: 767px) {
	.image-container {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		position: relative;
		display: flex;
		align-items: center;
		scroll-behavior: smooth;
	}
	.image-container.scrolling {
		scroll-behavior: smooth;
	}
	.image-container.modal-trigger::before {
		content:none;
		display: none;
	}
	.image-container img {
		min-width: 160%;
		width: auto;
		height: auto;
		display: block;
	}
	.swipe-indicator {
		position: sticky;
		top: 50%;
		transform: translateY(-50%);
		pointer-events: auto;
		z-index: 10;
		width: 6.26vw;
		height: 6.26vw;
		flex-shrink: 0;
		cursor: pointer;
		/* タップ領域を拡大 */
		padding: 0.5vw;
		margin: -0.5vw;
		-webkit-user-select: none;
		user-select: none;
		-webkit-tap-highlight-color: transparent;
	}
	.swipe-indicator::before, .swipe-indicator::after {
		content: "";
		position: absolute;
	}
	.swipe-indicator::before {
		width: 100%;
		height: 100%;
		border-radius: 50%;
		background: rgba(0, 0, 0, 0.2);
		mix-blend-mode: multiply;
		top: 0;
		left: 0;
	}
	.swipe-indicator::after {
		width: 2.08vw;
		height: 3.9vw;
		background: var(--sClr2);
		clip-path: polygon(0.26vw 0, 100% 50%, 0.26vw 100%, 0% 100%, calc(100% - 0.26vw) 50%, 0% 0%);
		top: calc(50% - 1.95vw);
		left: calc(50% - 1.04vw);
	}
	.swipe-indicator.left {
		left: 1.3vw;
	}
	.swipe-indicator.right {
		right: 1.3vw;
	}
	.swipe-indicator.left::before, .swipe-indicator.left::after {
		animation: swipe-bounce1 1.5s ease-in-out infinite;
	}
	.swipe-indicator.right::before, .swipe-indicator.right::after {
		animation: swipe-bounce2 1.5s ease-in-out infinite;
	}
}
@keyframes swipe-bounce1 {
	0%, 100% {
		opacity: 0.4;
		transform: translateX(0) rotate(180deg);
	}
	50% {
		opacity: 1;
		transform: translateX(0.78vw) rotate(180deg);
	}
}
@keyframes swipe-bounce2 {
	0%, 100% {
		opacity: 0.4;
		transform: translateX(0);
	}
	50% {
		opacity: 1;
		transform: translateX(0.78vw);
	}
}
@media screen and (min-width: 768px) {
	.swipe-indicator {
		display: none !important;
	}
}
/* Modal styles */
.image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.image-modal.active {
	display: flex;
	opacity: 1;
}
.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	cursor: pointer;
}
.modal-content {
	position: relative;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.modal-image-wrapper {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.modal-image-wrapper img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
}
.modal-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	color: white;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10001;
	transition: transform 0.2s ease;
}
.modal-close:hover {
	transform: scale(1.2);
}
/* Mobile: No modal, swipe to scroll (767px and below) */
@media screen and (max-width: 767px) {
	.image-container {
        cursor: grab;
    }
    .image-container:active,
	.image-container.active {
        cursor: grabbing;
		scroll-behavior: auto !important;
    }
    .image-modal {
        display: none !important;
    }
}