/*
 * WORKSフロントページ専用スタイル
 *
 * static-site/index.html の header / hero / works-grid /
 * .view-all-wrap / footer をHTML構造・デザインを維持したまま移植しています。
 * 他ページに影響しないよう、必ず body.works-front 配下にスコープしています。
 * header-works.php / footer-works.php / front-page.php でのみ読み込まれます。
 */

html.works-front-html {
	scroll-behavior: smooth;
}

body.works-front,
body.works-front *,
body.works-front *::before,
body.works-front *::after {
	box-sizing: border-box;
}

body.works-front {
	--bg: #222222;
	--white: #f0ede8;
	--gray: #999;
	--gap: 3px;

	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--white);
	font-family: 'Montserrat', sans-serif;
	font-weight: 200;
	letter-spacing: 0.12em;
	min-height: 100vh;
}

body.works-front h1,
body.works-front p {
	margin: 0;
	padding: 0;
}

/* ── HEADER ── */
body.works-front .works-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 40px;
	transition: background 0.4s ease;
}
body.works-front .works-header.is-scrolled {
	background: rgba(34, 34, 34, 0.93);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* ログイン中の管理バー表示時、固定ヘッダーが隠れないよう位置を調整 */
body.works-front.admin-bar .works-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.works-front.admin-bar .works-header {
		top: 46px;
	}
}

body.works-front .works-logo {
	display: block;
	text-decoration: none;
}
body.works-front .works-logo img {
	height: 18px;
	width: auto;
	display: block;
	opacity: 0.92;
}

body.works-front .works-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
body.works-front .works-nav a {
	color: var(--white);
	text-decoration: none;
	font-size: 9px;
	font-weight: 300;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	opacity: 0.75;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
}
body.works-front .works-nav a:hover {
	opacity: 1;
}

body.works-front .works-nav-divider {
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, 0.2);
}

body.works-front .works-ig-icon {
	width: 18px;
	height: 18px;
	display: block;
	opacity: 0.75;
	transition: opacity 0.3s ease;
}
body.works-front .works-ig-icon:hover {
	opacity: 1;
}

/* ── HERO ── */
body.works-front .works-hero {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
body.works-front .works-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, #2a2a2a 0%, #1c1c1c 100%);
}

body.works-front .works-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
}
body.works-front .works-hero-logo {
	display: block;
	width: clamp(240px, 42vw, 520px);
	margin: 0 auto;
	opacity: 0.95;
	filter: drop-shadow(0 2px 28px rgba(0, 0, 0, 0.45));
}

body.works-front .works-hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	opacity: 0.4;
	animation: solsoWorksFloatDown 2.5s ease-in-out infinite;
}
body.works-front .works-hero-scroll span {
	font-size: 7px;
	letter-spacing: 0.5em;
}
body.works-front .works-hero-scroll-line {
	width: 1px;
	height: 36px;
	background: var(--white);
}

@keyframes solsoWorksFloatDown {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(6px);
	}
}

/* ── WORKS GRID ── */
body.works-front .works-section {
	padding-top: 80px;
}

body.works-front .works-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
	padding: 0 var(--gap);
	margin: 0;
	list-style: none;
}

body.works-front .work-item {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	cursor: default;
	margin: 0;
}

body.works-front .work-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition:
		transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease;
	filter: brightness(0.93);
}

body.works-front .work-item:hover .work-item__img {
	transform: scale(1.05);
	filter: brightness(0.72);
}

body.works-front .work-item--hidden {
	display: none;
}

/* ── VIEW ALL ── */
body.works-front .works-view-all-wrap {
	display: flex;
	justify-content: center;
	padding: 64px 0 80px;
}

body.works-front .works-view-all-btn {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--white);
	font-family: 'Montserrat', sans-serif;
	font-weight: 200;
	font-size: 9px;
	letter-spacing: 0.5em;
	text-transform: uppercase;
	padding: 16px 48px;
	cursor: pointer;
	transition: border-color 0.3s ease, opacity 0.3s ease;
	opacity: 0.7;
}

body.works-front .works-view-all-btn:hover {
	border-color: rgba(255, 255, 255, 0.6);
	opacity: 1;
}

body.works-front .works-view-all-btn--hidden {
	display: none;
}

/* ── FOOTER ── */
body.works-front .works-footer {
	padding: 56px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.works-front .works-footer-logo img {
	height: 15px;
	width: auto;
	opacity: 0.6;
}
body.works-front .works-footer-links {
	display: flex;
	align-items: center;
	gap: 24px;
}
body.works-front .works-footer-links a {
	font-size: 8.5px;
	letter-spacing: 0.4em;
	color: var(--gray);
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s ease;
}
body.works-front .works-footer-links a:hover {
	color: var(--white);
}
body.works-front .works-footer-sep {
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, 0.15);
}
body.works-front .works-footer-copy {
	font-size: 7.5px;
	letter-spacing: 0.35em;
	color: rgba(255, 255, 255, 0.2);
	text-transform: uppercase;
}

/* ── FADE IN ── */
body.works-front .works-fade-in {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
body.works-front .works-fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
	body.works-front .work-item__img,
	body.works-front .works-fade-in {
		transition: none !important;
	}

	body.works-front .works-fade-in {
		opacity: 1;
		transform: none;
	}

	body.works-front .works-hero-scroll {
		animation: none;
	}
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
	body.works-front .works-header {
		padding: 22px 24px;
	}
	body.works-front .works-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	body.works-front .works-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	body.works-front .works-nav {
		gap: 18px;
	}
	body.works-front .works-footer {
		padding: 48px 24px;
	}
	body.works-front .works-footer-links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
	}
	body.works-front .works-footer-sep {
		display: none;
	}
}
