@charset "UTF-8";
/*
Theme Name: un chemin
Description: un chemin Corporate Theme LP
Version: 1.0.0
*/

/* ==========================================================================
	1. Variables & Base Setup
========================================================================== */
:root {
	--color-primary: #009688;
	--color-secondary: #023a8e;
	--color-text: #333333;
	--color-bg: #FFFFFF;
	--color-gray: #F5F5F5;
	--color-dark: #242424;
	--font-en: "Barlow Condensed", sans-serif;
	--font-jp: "Helvetica Neue", "Helvetica", "Arial", "Noto Sans JP", sans-serif;
	--transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-family: var(--font-jp);
	font-size: clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);
	font-weight: 400;
	line-height: 1.8;
	color: var(--color-text);
	background-color: var(--color-bg);
}

/* ==========================================================================
	2. Typography
========================================================================== */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	margin-block-end: 1rem !important;
	font-weight: 700;
	line-height: 1.3;
}
h1 {
	font-size: clamp(1.75rem, 1.42rem + 1.39vw, 2.5rem);
}
h2 {
	margin: 0;
	margin-block-end: 1.5rem !important;
	font-weight: 700 !important;
	font-family: var(--font-en);
	font-size: clamp(1.5rem, 1.14rem + 1.53vw, 2.5rem);
	letter-spacing: 0.5px;
}
h3 {
	font-size: clamp(1.25rem, 1.14rem + 0.46vw, 1.5rem);
}
h4 {
	font-size: clamp(1.1rem, 1.05rem + 0.18vw, 1.2rem);
}
h5 {
	font-size: clamp(1rem, 0.96rem + 0.22vw, 1.15rem);
}
a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition);
}
a:hover {
	opacity: 0.7;
}
img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}
.text-en {
	font-family: var(--font-en);
	font-weight: 400;
}
.is-style-unchemin-wipe-bg {
	position: relative;
	padding: 3rem 2rem;
	z-index: 1;
}
.is-style-unchemin-wipe-bg::before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	content: '';
	width: 100%;
	height: 100%;
	background-color: var(--color-gray);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.is-style-unchemin-wipe-bg.is-animated::before,
.editor-styles-wrapper .is-style-unchemin-wipe-bg::before {
	transform: scaleY(1);
}

/* ==========================================================================
	3. Utilities
========================================================================== */
.container {
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
	max-width: 1240px;
}

/* ==========================================================================
	4. Header & Navigation
========================================================================== */
.site-header {
	padding: 0 20px;
	width: 100%;
	height: 80px;
	display: flex;
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
	align-items: center;
	justify-content: space-between;
}
.site-branding .logo {
	width: max-content;
	display: block;
	font-size: clamp(1.8rem, 1.54rem + 1.11vw, 2.4rem);;
	font-family: var(--font-en);
	font-weight: 700;
}
.global-nav ul {
	display: flex;
	list-style: none;
	align-items: center;
}
.global-nav li {
	margin: 0 0 0 2rem;
	font-family: var(--font-en);
}
.global-nav a {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0;
}
.global-nav a:hover {
	color: var(--color-primary);
}

/* ==========================================================================
	5. Hamburger Menu (SP)
========================================================================== */
.hamburger-btn {
	width: 40px;
	height: 40px;
	display: none;
	position: relative;
	z-index: 200;
	cursor: pointer;
	border: none;
	background: transparent;
}
.hamburger-btn span {
	width: 24px;
	height: 2px;
	display: block;
	position: absolute;
	left: 8px;
	background-color: var(--color-text);
	transition: var(--transition);
}
.hamburger-btn span:nth-child(1) {
	top: 10px;
}
.hamburger-btn span:nth-child(2) {
	top: 19px;
}
.hamburger-btn span:nth-child(3) {
	top: 28px;
}
.hamburger-btn.is-active span:nth-child(1) {
	top: 19px;
	transform: rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
	opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
	top: 19px;
	transform: rotate(-45deg);
}
.sp-nav {
	width: 300px;
	height: 100vh;
	display: none;
	position: fixed;
	z-index: 150;
	top: 0;
	right: -300px;
	background-color: var(--color-bg);
	box-shadow: -2px 0 5px rgba(0,0,0,0.1);
	transition: var(--transition);
}
.sp-nav.is-active {
	right: 0;
}
.sp-nav ul {
	padding: 100px 20px 20px;
	list-style: none;
}
.sp-nav li {
	margin: 0 0 1.5rem;
	font-family: var(--font-en);
}
.sp-nav a {
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--color-text);
}
.overlay {
	width: 100%;
	height: 100vh;
	display: none;
	position: fixed;
	z-index: 140;
	top: 0;
	left: 0;
	pointer-events: none;
	background-color: rgba(0,0,0,0.5);
	opacity: 0;
	transition: var(--transition);
}
.overlay.is-active {
	pointer-events: auto;
	opacity: 1;
}
.sp-nav-close {
	width: 40px;
	height: 40px;
	display: flex;
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
	font-size: 1.5rem;
	color: var(--color-text);
	border: none;
	background: transparent;
	transition: var(--transition);
	align-items: center;
	justify-content: center;
}
.sp-nav-close:hover {
	opacity: 0.7;
}
@media screen and (max-width: 767px) {
	.global-nav {
		display: none;
	}
	.hamburger-btn {
		display: block;
	}
	.sp-nav, .overlay {
		display: block;
	}
}

/* ==========================================================================
	6. Hero Section
========================================================================== */
.hero-section {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 50vh;
	display: flex;
	position: relative;
	text-align: center;
	background: url('./assets/images/default-header.jpg') no-repeat center center / cover;
	align-items: center;
	justify-content: center;
}
.hero-content {
	padding: 0 20px;
	z-index: 10;
}
.hero-catch {
	margin: 0;
	padding-top: calc(var(--leadgrid-header-height, 68px) + 2rem);
	padding-bottom: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--color-bg);
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
	7. Content Sections (2 Column Layout)
========================================================================== */
.content-section {
	padding: 6rem 0;
}
.content-section:nth-child(even) {
	background-color: var(--color-gray);
}
.section-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
@media screen and (min-width: 768px) {
	.section-inner {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
	.content-section:nth-child(even) .section-inner .col-image {
		order: 2;
	}
	.content-section:nth-child(even) .section-inner .col-text {
		order: 1;
	}
}
.col-image img {
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.section-title {
	margin: 0 0 1.5rem;
	font-family: var(--font-en);
	color: var(--color-secondary);
}
.section-desc {
	margin: 0 0 2rem;
}

/* ==========================================================================
	8. Services List
========================================================================== */
.service-list {
	margin: 2rem 0 0;
	list-style: none;
}
.service-list p {
	margin: 0 0 1.5rem;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid #ddd;
}
.service-list h4 {
	margin: 0 0 0.5rem;
}

/* ==========================================================================
	9. Footer
========================================================================== */
.site-footer {
	padding: 4rem 20px 2rem;
	text-align: center;
	background-color: var(--color-dark);
}
.site-footer .copyright {
	font-size: 0.8rem;
	color: var(--color-bg);
}

/* ==========================================================================
	10. Animations
========================================================================== */
.js-fade-up,
.is-style-unchemin-fade-in {
	opacity: 0;
	transform: translateY(40px);
	will-change: opacity, transform;
}
.is-style-unchemin-dynamic-scale {
	opacity: 0;
	filter: blur(5px);
	transform: translateY(60px) scale(0.95);
	will-change: opacity, transform, filter;
}
.is-style-unchemin-diagonal-bg {
	position: relative;
	overflow: hidden;
	z-index: 1;
}
/* 共通のベーススタイル */
.diagonal-bg-element {
	position: absolute;
	top: -50%;
	width: 300px;
	height: 200%;
	z-index: -1;
	clip-path: inset(100% 0 0 0);
	will-change: clip-path;
}
/* 奇数セクション（背景: 白 / 画像: 左・テキスト: 右） */
.content-section:nth-child(odd) .diagonal-bg-element {
	right: 15%; /* テキストのある右側に配置 */
	left: auto;
	background-color: #D6F6FA; /* そのままの色 */
	transform: rotate(-15deg); /* 角度を逆向きにする */
}
/* 偶数セクション（背景: グレー / テキスト: 左・画像: 右） */
.content-section:nth-child(even) .diagonal-bg-element {
	left: 15%; /* テキストのある左側に配置 */
	right: auto;
	background-color: #D6F6FA; /* ご指定の色に変更 */
	transform: rotate(15deg); /* 元の角度 */
}

/* ==========================================================================
	11. Header Controls & Language Switcher
========================================================================== */
.header-controls {
	display: flex;
	align-items: center;
}
.lang-switcher {
	margin: 2px 0 0 0;
	display: flex;
	align-items: center;
}
.lang-switcher a {
	display: flex;
	align-items: center;
	margin: 0 0.5rem;
	font-size: clamp(0.6rem, 0.48rem + 0.53vw, 1rem);
	font-weight: 700;
	line-height: 1;
	font-family: var(--font-en);
	color: var(--color-text);
	transition: var(--transition);
}
.lang-switcher a:hover {
	color: var(--color-primary);
}
.lang-switcher svg {
	display: block;
	width: 18px;
	height: auto;
	margin: 0 0.35rem 0 0;
	border: 1px solid #E5E5E5;
}
.lang-switcher span {
	display: block;
	padding: 2px 0 0 0;
}
@media screen and (max-width: 767px) {
	.lang-switcher {
		margin: 2px 0.5rem 0 0;
	}
	.lang-switcher a {
		margin: 0 0.25rem;
	}
}

/* ==========================================================================
	12.Snow Monkey Form (Contact)
========================================================================== */
.container.form {
	margin-top: 4rem; /* 上の2カラムコンテンツとの余白 */
	margin-bottom: 4rem; /* 下のセクションとの余白 */
	width: 100%;
}
.container.form .wp-block-snow-monkey-forms-form {
	max-width: 800px; /* 適切な最大幅を設定 */
	margin: 0 auto; /* 中央寄せ */
}

/* ==========================================================================
	13. Split Screen Background Layout (画像側のコンテナ制限無効化)
========================================================================== */
@media screen and (min-width: 768px) {
	/* 1. コンテンツセクションの上下余白を消し、コンテナを全幅（100%）に広げる */
	.content-section {
		padding: 0; /* 画像がセクションの上下ピッタリにくっつくようにする */
	}
	.content-section .container:not(.form) {
		max-width: 100%;
		padding: 0; /* 左右の基本余白(20px)を解除 */
	}
	.content-section .container.form {
		max-width: 1240px;
		padding: 0 20px;
		margin: 4rem auto 2.5rem;
	}
	/* 2. グリッドの隙間をなくし、画面を完全に50:50で分割 */
	.content-section .section-inner {
		gap: 0; /* 元の gap: 5rem を無効化 */
	}

	/* 3. 画像を枠（50%）いっぱいに広げ、断ち切りにする */
	.content-section .col-image {
		width: 100%;
		height: 100%;
	}
	.content-section .col-image img {
		width: 100%;
		height: 100%;
		max-height: calc(100vh - 80px); /* ★ここが重要：画面の高さ以上には膨張しないように制限 */
		position: sticky;
		top: 80px; /* ヘッダーの高さ分下げる */
		object-fit: cover;
		border-radius: 0;
	}

	/* 4. テキストが画面端にくっつかないよう、内側に余白（padding）を設ける */
	.content-section .col-text {
		padding: 6rem 8%; /* 上下に6rem、左右に8%の余白 */
		display: flex;
		flex-direction: column;
		justify-content: center; /* テキストを上下中央に配置 */
	}
}

/* ==========================================================================
	14. responsive
========================================================================== */
.u-pc-only {
	display: inline !important;
}
@media screen and (max-width: 767px) {
	.hero-section {
		margin: 0;
		padding: 0;
		width: 100%;
		height: 50vh;
		display: flex;
		position: relative;
		text-align: center;
		background: url('./assets/images/default-header_sp.jpg') no-repeat center center / cover;
		align-items: center;
		justify-content: center;
	}
	.u-pc-only { display: none !important; }
	.u-hide-sp {
		display: none !important;
	}
}
@media screen and (min-width: 768px) {
	.u-sp-br { display: none !important; }
	.u-hide-pc {
		display: none !important;
	}
}

/* ==========================================================================
	15. Gutenberg Color Utilities (末尾に追記)
========================================================================== */
.has-primary-color {
	color: var(--color-primary) !important;
}
.has-primary-background-color {
	background-color: var(--color-primary) !important;
}
.has-secondary-color {
	color: var(--color-secondary) !important;
}
.has-secondary-background-color {
	background-color: var(--color-secondary) !important;
}
.has-gray-color {
	color: var(--color-gray) !important;
}
.has-gray-background-color {
	background-color: var(--color-gray) !important;
}
.has-white-color {
	color: var(--color-bg) !important;
}
.has-white-background-color {
	background-color: var(--color-bg) !important;
}