/* 基本フォント設定 */
html {
	scroll-behavior: smooth;
}

body {
	font-family: "Noto Serif JP", serif;
	font-weight: 600;
	font-feature-settings: "halt";
}

/* レスポンシブフォントサイズの設定 */
:root {
	font-size: calc(100vw / 24);
}

@media screen and (min-width: 768px) {
	/* PCは1440px基準 */
	:root {
		font-size: clamp(14px, calc(1000vw / 1024), 22px);
	}
}

/* アコーディオンコンテンツのアニメーション */
.accordion-content {
	transition: all 0.3s ease;
}

@media (min-width: 1023px) {
	/* 背景画像を拡大する */
	.bg-image-zoom {
		overflow: hidden;
		background-size: 100%;
		background-position: center;
		transition: background-size 0.3s ease;
	}
}

.bg-image-zoom-hover {
	background-size: 105%;
}

/* 矢印をスライドさせる */
.arrow-slide {
	transition: transform 0.3s ease;
}

a:hover .arrow-slide {
	transform: translateX(8px);
}

/* スクロールインジケーター */
.scroll-indicator-box {
	height: 300px;
	background-color: #dad5a4;
}

.scroll-indicator-text {
	display: inline-block;
	position: absolute;
	bottom: 0;
	padding: 10px 10px 110px;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	writing-mode: vertical-lr;
	transform: translateX(-50%);
}

.scroll-indicator-bar {
	position: absolute;
	transform: translateX(-50%);
	bottom: 1px;
}

.scroll-indicator-bar::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 1px;
	height: 100px;
	background: #fff;
	animation: liner 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes liner {
	0% {
		transform: scale(1, 0);
		transform-origin: 0 0;
	}

	30% {
		transform: scale(1, 1);
		transform-origin: 0 0;
	}

	70% {
		transform: scale(1, 1);
		transform-origin: 0 100%;
	}

	100% {
		transform: scale(1, 0);
		transform-origin: 0 100%;
	}
}

/* スマートフォン用の改行 */
.sp-br {
	display: none;
}

@media (max-width: 500px) {
	.sp-br {
		display: inline;
	}
}

@media (max-width: 375px) {
	.catch__desc {
		font-size: 0.85rem !important;
	}
}

#mv_yoshisada_toha,
#mv_yoshisada_toha a {
	pointer-events: auto;
}

/* レスポンシブレイアウト */
@media (max-width: 1024px) {
	.scroll-space {
		width: 100%;
		height: 200vh;
	}

	.feature-section {
		flex-direction: column;
		gap: 24px;
	}

	.feature-block {
		min-height: 180px;
	}
}

/* ヒーローセクション */
.hero__kv {
	height: 100vh;
	position: relative;
	overflow: hidden;
	z-index: 0;
}

.hero__kv .main-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background: rgba(0, 64, 32, 0);
	transition: background 0.2s;
}

.overlay_kon {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background: rgba(22, 21, 50, 0);
	transition: background 0.2s;
}

.hero__catch {
	position: absolute;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease-out;
	pointer-events: none;
	z-index: 10;
	gap: 3vw;
	top: 0;
}

.hero__catch.show {
	opacity: 1;
	transform: translateY(0);
}

.main-video {
	transition: filter 0.2s;
}

.catch__headline,
.catch__lead,
.catch__desc {
	opacity: 0;
	transform: translateY(20px);
	transition: none;
}

/* CSS */
.js-split-text .s_t {
	display: inline-block;
	opacity: 0;
	transform: translateX(3px) scale(1.1);
	transition:
		opacity 0.4s ease-out,
		transform 0.1s ease-out;
}

.js-split-text.is-active .s_t {
	opacity: 1;
	transform: translateX(0) scale(1);
}

.parallax-bg_kankyo,
.parallax-bg_recruit {
	background-position: center 50%;
	background-size: inherit;
}

#splash {
	position: fixed;
	z-index: 9999;
	background: #fff;
	width: 100vw;
	height: 100svh;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.6s;
}

#splash.hide {
	opacity: 0;
	pointer-events: none;
}

#splash-logo {
	width: 200px;
	/* ロゴの大きさはお好みで調整 */
}

/* カスタムスタイル */

/* メニューオーバーレイのフェード効果を追加 */
/* メニューオーバーレイのフェード効果を追加 */
.menu-overlay {
	opacity: 1;
	/* 初期状態は透明 */
	transition: opacity 0.3s ease;
	/* フェード用のトランジションを追加 */
}

.menu-overlay.show {
	opacity: 1;
	/* 表示時は不透明 */
}

/* メニュースライド本体のスライドイン効果 */
.menu-slide {
	/* transform: translateX(100%); */
	transition:
		transform 0.2s ease-in-out,
		opacity 0.2s ease-in-out;
	opacity: 0;
	/* 初期状態は透明 */
}

.menu-slide.open {
	/* transform: translateX(0); */
	opacity: 1;
	/* 表示時は不透明 */
}

/* アコーディオンの開閉アニメーション */
.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.accordion-content.open {
	max-height: 500px;
}

/* メニュー項目のホバー効果 */
.menu-item {
	transition: background-color 0.2s ease;
}

.menu-item:hover {
	background-color: #f1f5f9;
}

/* メニュー内スクロールの改善 */
.menu-slide {
	-webkit-overflow-scrolling: touch;
}

/* スクロールバーのカスタマイズ */
.menu-slide .overflow-y-auto::-webkit-scrollbar {
}

.menu-slide .overflow-y-auto::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.menu-slide .overflow-y-auto::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 2px;
}

.menu-slide .overflow-y-auto::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* ハンバーガーメニューアニメーション */
.hamburger__line {
	transition: all 0.4s ease;
}

/* メニューオープン時のアニメーション */
.hamburger.active .hamburger__line:nth-of-type(1) {
	transform: translateY(0.6rem) rotate(-45deg);
}

.hamburger.active .hamburger__line:nth-of-type(2) {
	opacity: 0;
}

.hamburger.active .hamburger__line:nth-of-type(3) {
	transform: translateY(-0.6rem) rotate(45deg);
}

/*アニメーション用 マスク用コンテナ */
.reveal-mask-box {
	position: relative;
	overflow: hidden;
	/* マスク外を隠す */
	--clip-top: 0%;
	--clip-left: 0%;
	clip-path: polygon(
		var(--clip-left) var(--clip-top),
		var(--clip-top) var(--clip-top),
		var(--clip-top) 100%,
		var(--clip-left) 100%
	);
	will-change: clip-path;
	/* パフォーマンス向上 */
}

/* 対象画像 */
.reveal-mask-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}
