@charset "utf-8";
/* ================================================================
   facilities-scale.css
   SCII サイト 追加セクション「広大な敷地と建物」
   ----------------------------------------------------------------
   ● parts.css の後に読み込む（既存の minify 済み CSS は触らない）
   ● 既存デザイントークン踏襲
       ブランドグリーン : #368b39 → #2e5530
       セクション背景   : #f6f6f6 / #fff
       本文色           : #3f403f
       欧文             : 'poppins'（300/400 のみ読込済）
       和文             : 'Noto Sans JP'
       ルート           : html font-size 62.5%（1rem = 10px）
       SP 境界          : max-width 768px
   ================================================================ */

.p-scale {
	z-index: 1;
	position: relative;
	padding: 150px 0 160px;
	background: #f6f6f6;
	overflow: hidden;
}

/* 背景の空気感：ブランドグリーンのごく淡い光と細い斜線 */
.p-scale::before {
	content: "";
	z-index: -1;
	position: absolute;
	top: -180px;
	right: -160px;
	width: 720px;
	height: 720px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(54, 139, 57, .10) 0%, rgba(54, 139, 57, 0) 68%);
	pointer-events: none;
}

.p-scale::after {
	content: "";
	z-index: -1;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 320px;
	background-image: repeating-linear-gradient(-45deg, rgba(54, 139, 57, .05) 0 1px, rgba(54, 139, 57, 0) 1px 9px);
	pointer-events: none;
}

/* ---------------- 見出し・リード ---------------- */

.p-scale__about {
	text-align: center;
}

.p-scale__about .c-title--l {
	background: transparent;
}

.p-scale__lead {
	margin: 0 auto;
	max-width: 800px;
	font-size: 1.6rem;
	line-height: 2.125;
}

/* ---------------- 写真グリッド ---------------- */

.p-scale__gallery {
	margin-top: 72px;
}

.p-scale__gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 200px 200px 280px;
	gap: 16px;
	padding: 0;
	list-style: none;
}

.p-scale__photo {
	position: relative;
	overflow: hidden;
	background: #e3e6e3;
}

.p-scale__photo.-hero    { grid-column: 1 / 3; grid-row: 1 / 3; }
.p-scale__photo.-a       { grid-column: 3 / 4; grid-row: 1 / 2; }
.p-scale__photo.-b       { grid-column: 4 / 5; grid-row: 1 / 2; }
.p-scale__photo.-c       { grid-column: 3 / 4; grid-row: 2 / 3; }
.p-scale__photo.-d       { grid-column: 4 / 5; grid-row: 2 / 3; }
.p-scale__photo.-wide    { grid-column: 1 / 5; grid-row: 3 / 4; }

.p-scale__photo figure {
	margin: 0;
	width: 100%;
	height: 100%;
}

.p-scale__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 1.2s cubic-bezier(.21, .11, .22, .96);
}

.p-scale__photo:hover img {
	transform: scale(1.045);
}

/* キャプション（常時表示・下部スクリム） */
.p-scale__photo figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 18px 14px;
	background: linear-gradient(180deg, rgba(20, 32, 21, 0) 0%, rgba(20, 32, 21, .72) 100%);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.5385;
	text-align: left;
}

.p-scale__photo.-hero figcaption,
.p-scale__photo.-wide figcaption {
	padding: 44px 24px 20px;
	font-size: 1.5rem;
}

/* 小タイルはキャプションが画像を覆いすぎないよう余白を詰める */
.p-scale__photo.-a figcaption,
.p-scale__photo.-b figcaption,
.p-scale__photo.-c figcaption,
.p-scale__photo.-d figcaption {
	padding: 26px 16px 12px;
}

/* ヒーロー写真に添える小見出し */
.p-scale__photo__tag {
	display: inline-block;
	margin-bottom: 6px;
	color: #9fd6a1;
	font-family: 'poppins', sans-serif;
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: .18em;
	line-height: 1;
}

/* 表示アニメーションのずらし（既存 js-animation と併用） */
.p-scale__gallery__grid .js-animation { transition-delay: 0s; }
.p-scale__gallery__grid .js-animation:nth-child(2) { transition-delay: .12s; }
.p-scale__gallery__grid .js-animation:nth-child(3) { transition-delay: .18s; }
.p-scale__gallery__grid .js-animation:nth-child(4) { transition-delay: .24s; }
.p-scale__gallery__grid .js-animation:nth-child(5) { transition-delay: .30s; }
.p-scale__gallery__grid .js-animation:nth-child(6) { transition-delay: .36s; }

/* ================================================================
   SP
   ================================================================ */

@media only screen and (max-width: 768px) {

	.p-scale {
		padding: 80px 0 90px;
	}

	.p-scale::before {
		top: -120px;
		right: -180px;
		width: 420px;
		height: 420px;
	}

	.p-scale__lead {
		font-size: 1.4rem;
		line-height: 2;
		text-align: left;
	}

	.p-scale__gallery {
		margin-top: 44px;
	}

	.p-scale__gallery__grid {
		display: block;
		grid-template-columns: none;
		grid-template-rows: none;
	}

	.p-scale__photo {
		margin-bottom: 12px;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.p-scale__photo:last-child {
		margin-bottom: 0;
	}

	.p-scale__photo.-hero figcaption,
	.p-scale__photo.-wide figcaption {
		padding: 34px 16px 14px;
		font-size: 1.3rem;
	}
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
	.p-scale__photo img {
		transition: none;
	}
	.p-scale__photo:hover img {
		transform: none;
	}
}
