/* =========================================
   Figmaデザイン - ヘッダー & フッター専用CSS
   ========================================= */

/* 固定ナビゲーション */
.fixed-nav {
	position: fixed;
	top: 0;
	right: 0;
	width: calc(323px * var(--scale-factor));
	height: 100vh;
	z-index: 1000;
	pointer-events: none;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 折りたたみ状態 */
.fixed-nav.is-collapsed {
	width: calc(100px * var(--scale-factor));
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.fixed-nav-bg {
	position: absolute;
	top: 0;
	right: 0;
	width: calc(380px*var(--scale-factor));
	height: calc(660px * var(--scale-factor));
	pointer-events: none;
	overflow: hidden;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-nav.is-collapsed .fixed-nav-bg {
	width: calc(150px * var(--scale-factor));
	height: calc(260px * var(--scale-factor));
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-nav-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fixed-nav-content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: calc(16px * var(--scale-factor));
	align-items: flex-end;
	padding: calc(48px * var(--scale-factor)) calc(24px * var(--scale-factor)) 0 0;
	pointer-events: auto;
	z-index: 1;
}

.fixed-nav.is-collapsed .fixed-nav-content {
	padding: calc(24px * var(--scale-factor)) calc(24px * var(--scale-factor)) 0 0;
}

/* メニュートグルボタン（デスクトップ） */
.nav-toggle-btn {
	display: none;
	width: calc(70px * var(--scale-factor));
	height: calc(60px * var(--scale-factor));
	background: transparent;
	border: none;
	cursor: pointer;
	padding: calc(8px * var(--scale-factor));
	position: relative;
	z-index: 2;
	opacity: 0;
	pointer-events: none;
}

.fixed-nav.is-collapsed .nav-toggle-btn {
	display: flex;
	flex-direction: column;
	gap: calc(8px * var(--scale-factor));
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.4s ease 0.3s;
	pointer-events: auto;
}

.nav-toggle-btn:hover {
	opacity: 0.8;
}

.nav-toggle-line {
	width: 100%;
	height: calc(6px * var(--scale-factor));
	background: var(--color-white);
}

.fixed-nav-logo {
	width: calc(250px * var(--scale-factor));
	height: calc(42px * var(--scale-factor));
	opacity: 1;
	pointer-events: auto;
}

.fixed-nav.is-collapsed .fixed-nav-logo {
	opacity: 0;
	pointer-events: none;
}

.fixed-nav-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fixed-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: calc(4px * var(--scale-factor));
	align-items: flex-end;
	opacity: 1;
	pointer-events: auto;
}

.fixed-nav.is-collapsed .fixed-nav-menu {
	opacity: 0;
	pointer-events: none;
}

.fixed-nav-menu li {
	margin: 0;
}

.nav-link {
	font-size: var(--font-size-sm);
	line-height: 1.5;
	color: var(--color-white);
	text-decoration: none;
	padding: calc(4px * var(--scale-factor)) 0;
	transition: opacity 0.3s ease;
	font-family: var(--font-family-bold);
	font-weight: var(--font-weight-bold);
}

.nav-link:hover {
	opacity: 0.8;
}

/* 左側の装飾ライン（固定） */
.fixed-nav-line-left {
	position: fixed;
	top: 0;
	left: 0;
	width: calc(96px * var(--scale-factor));
	height: 100vh;
	background: var(--color-white);
	opacity: 0.6;
	z-index: 999;
}

.fixed-nav-line-vertical {
	position: fixed;
	top: 0;
	left: calc(97px * var(--scale-factor));
	width: calc(2px * var(--scale-factor));
	height: 100vh;
	background: var(--color-black);
	z-index: 999;
}


/* モバイルメニュートグル */
.mobile-menu-toggle {
	display: none;
	position: fixed;
	top: calc(20px * var(--scale-factor));
	right: calc(20px * var(--scale-factor));
	z-index: 1001;
	flex-direction: column;
	gap: calc(6px * var(--scale-factor));
	background: var(--color-primary);
	border: none;
	padding: calc(12px * var(--scale-factor));
	border-radius: calc(8px * var(--scale-factor));
	cursor: pointer;
}

.menu-icon {
	width: calc(28px * var(--scale-factor));
	height: calc(3px * var(--scale-factor));
	background-color: var(--color-white);
	transition: all 0.3s ease;
}

.mobile-menu-toggle.is-active .menu-icon:nth-child(1) {
	transform: rotate(45deg) translateY(calc(9px * var(--scale-factor)));
}

.mobile-menu-toggle.is-active .menu-icon:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.is-active .menu-icon:nth-child(3) {
	transform: rotate(-45deg) translateY(calc(-9px * var(--scale-factor)));
}

.safearea-top {
	display: none;
}

.site-main {
	position: relative;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
	position: relative;
	background: var(--color-thirdary);
	color: var(--color-white);
	padding: calc(80px * var(--scale-factor)) 0;
	width: 100%;
	max-width: 100vw;
	z-index: 900;
}

.footer-container {
	margin: 0 auto;
	padding: 0 calc(150px * var(--scale-factor));
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: calc(50px * var(--scale-factor));
	padding-bottom: calc(40px * var(--scale-factor));
}

.footer-main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer-logo {
	width: calc(700px * var(--scale-factor));
	margin-bottom: calc(40px * var(--scale-factor));
}

.footer-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.footer-contact-btn {
	width: calc(350px * var(--scale-factor));
	color: var(--color-primary);
	background: var(--color-white);
}

.footer-contact-btn:hover {
	color: var(--color-primary);
	box-shadow: 0 0 calc(24px * var(--scale-factor)) var(--color-secondary);
}


.footer-links {
	display: flex;
	gap: var(--spacing-xxl);
}

.footer-menu-column:first-child {
	margin-top: calc(80px * var(--scale-factor));
}

.footer-menu-title {
	font-size: var(--font-size-sm);
	color: var(--color-primary);
	margin-bottom: calc(16px * var(--scale-factor));
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: calc(8px * var(--scale-factor));
}

.footer-menu li {
	margin: 0;
}

.footer-menu a {
	font-size: var(--font-size-sm);
	line-height: 1.5;
	color: var(--color-white);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-menu a:hover {
	color: var(--color-white);
	opacity: 1;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: calc(32px * var(--scale-factor)) 0;
	border-top: 1px solid var(--color-white);
}

.footer-privacy {
	font-size: var(--font-size-xs);
	color: var(--color-white);
	text-decoration: none;
}

.footer-privacy:hover {
	color: var(--color-white);
	opacity: 1;
}

.footer-copyright {
	font-size: var(--font-size-xs);
	color: var(--color-white);
	margin: 0;
	font-family: var(--font-family-light);
	font-weight: var(--font-weight-light);
}

.safearea-bottom {
	display: none;
}