/*
Theme Name: AF theme
Author: Koki Fukuda
Description: アドバンスファシリティズ様用のカスタムテーマです。
Version: 1.0
*/

/*--------------------------------------------------------------
/** 1. VARIABLES
--------------------------------------------------------------*/
:root {
	--primary-color: #f39800;
	--black-color: #0591fc;
	--light-black-color: #4e4c49;
	--dark-color: #424040;
	--primary-color-200: #e8f0f1;
	--primary-color-400: #c4e9ed;
	--gray-color: #777f81;
	/* --bs-body-bg: #f9f4ec; */
	--bs-body-bg: #fafafa;
	--bs-dark-rgb: 80, 80, 80;
	--bs-gray-100: #eae5dd;
	--bs-gray-300: #dcdcdc;
	--bs-primary-text-emphasis: var(--primary-color);
	--bs-light-rgb: rgba(255, 255, 255, 1);
	--bs-primary-rgb: 253, 140, 78;
	--light-color: #fdfdfd;
	--swiper-theme-color: #111 !important;
	--cadet-blue-color: #9ab4b7;
}

/* Fonts */
:root {
	--heading-font:
		"Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo,
		"ＭＳ Ｐゴシック", sans-serif;
	--body-font:
		"Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo,
		sans-serif;
}

/*----------------------------------------------*/
/* 2 GENERAL TYPOGRAPHY
/*----------------------------------------------*/

/* 2.1 General Styles
/*----------------------------------------------*/
*,
*::before,
*::after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html {
	box-sizing: border-box;
}

input,
select,
textarea {
	border-color: var(--dark-color);
	outline: 0;
	box-shadow: none;
}

select:focus {
	box-shadow: none;
}

/* hero catchphrase */
#hero-catchphrase {
	transition:
		opacity 0.5s ease-in-out,
		visibility 0.5s ease-in-out;
}

/* 4.4 Services Section
/*----------------------------------------------*/
.service-post img.service-img {
	transition: all 0.5s ease-in-out;
}

.service-post:hover img.service-img {
	opacity: 0.2;
}

/* ボタンバナー */
small {
	background-color: gray;
	color: white;
	font-weight: 500;
	line-height: 150%;
}

/* ハンバーガーアイコン */
.hamburger_fade_custom_2 {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 9999;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

.hamburger_fade_custom_2__wrapper {
	position: relative;
	width: 30px;
	height: 20px;
	margin: 20px auto;
}

.hamburger_fade_custom_2__line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #333;
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger_fade_custom_2__line:nth-child(1) {
	top: 0;
}

.hamburger_fade_custom_2__line:nth-child(2) {
	top: 9px;
}

.hamburger_fade_custom_2__line:nth-child(3) {
	top: 18px;
}

.hamburger_fade_custom_2.active .hamburger_fade_custom_2__line {
	background-color: #000;
}

.hamburger_fade_custom_2.active .hamburger_fade_custom_2__line:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.hamburger_fade_custom_2.active .hamburger_fade_custom_2__line:nth-child(2) {
	opacity: 0;
	transform: translateX(20px);
}

.hamburger_fade_custom_2.active .hamburger_fade_custom_2__line:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* モバイルメニュー */
.nav_fade_custom_2 {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	visibility: hidden;
	z-index: 900;
}

.nav_fade_custom_2__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	transition: opacity 0.4s;
	opacity: 0;
}

.nav_fade_custom_2.active {
	visibility: visible;
}

.nav_fade_custom_2.active .nav_fade_custom_2__bg {
	opacity: 1;
}

.nav_fade_custom_2__wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 5vh 10vw;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch; /* iOS用のスムーズスクロール */
	max-height: 100vh;
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.nav_fade_custom_2__wrapper::-webkit-scrollbar {
	width: 8px;
}

.nav_fade_custom_2__wrapper::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 10px;
}

.nav_fade_custom_2__wrapper::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 10px;
}

.nav_fade_custom_2__wrapper::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

.nav_fade_custom_2__list {
	margin: 0;
	padding: 0;
	list-style: none;
	flex-shrink: 0; /* リストがスクロールエリア内で縮小しないように */
}

.nav_fade_custom_2__item {
	position: relative;
	margin-bottom: 2vh;
	padding-left: 60px;
	opacity: 0;
	transform: translateY(20px);
}

/* GSAPでアニメーションするため、CSSのtransitionは削除 */
.mobile-menu-with-submenu {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mobile-submenu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: #666;
	transition: transform 0.3s ease, color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-submenu-toggle:hover {
	color: #4a90e2;
}

.mobile-submenu-toggle.active {
	transform: rotate(180deg);
}

.mobile-submenu {
	display: none;
	list-style: none;
	padding: 0;
	margin: 1rem 0 0 0;
	padding-left: 2rem;
	border-left: 2px solid #e5e5e5;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
}

.mobile-submenu.active {
	display: block;
}

.mobile-submenu-item {
	margin-bottom: 0.75rem;
	opacity: 0;
	transform: translateX(-10px);
}

.mobile-submenu-link {
	display: block;
	color: #666;
	font-size: 1.25rem;
	text-decoration: none;
	transition: color 0.3s ease, transform 0.3s ease;
	padding: 0.5rem 0;
}

.mobile-submenu-link:hover {
	color: #4a90e2;
	transform: translateX(5px);
}

.nav_fade_custom_2__number {
	position: absolute;
	left: 0;
	color: #666;
	font-size: 14px;
	font-family: "Roboto", sans-serif;
}

.nav_fade_custom_2__link {
	display: inline-block;
	color: #000;
	font-size: 32px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.nav_fade_custom_2__link:hover {
	color: #4a90e2;
}

.nav_fade_custom_2__info {
	margin-top: auto;
	padding-left: 60px;
	color: #666;
	font-size: 14px;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.6s;
}

.nav_fade_custom_2.active .nav_fade_custom_2__info {
	opacity: 1;
	transform: translateY(0);
}

.nav_fade_custom_2__address,
.nav_fade_custom_2__tel {
	margin: 5px 0;
}

@media (max-width: 768px) {
	.nav_fade_custom_2__link {
		font-size: 24px;
	}

	.nav_fade_custom_2__item {
		padding-left: 40px;
		margin-bottom: 1.5vh;
	}

	.nav_fade_custom_2__info {
		padding-left: 40px;
	}

	.mobile-submenu-toggle {
		padding: 0.25rem;
	}

	.mobile-submenu-toggle svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	.mobile-submenu-link {
		font-size: 1rem;
	}

	.mobile-menu-with-submenu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		width: 100%;
	}

	.nav_fade_custom_2__wrapper {
		padding: 8vh 8vw 10vh; /* 上下のパディングを増やして余裕を持たせる */
		justify-content: flex-start; /* 中央揃えから上揃えに変更 */
	}
}
