/* --- Base Settings --- */
:root {
	--primary-orange: rgb(237, 108, 0);   /* アクセントカラー */
	--secondary-orange: rgb(245, 162, 0); /* 明るめのオレンジ */
	--text-dark: #333333;
	--bg-light: #f9f9f9;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	color: var(--text-dark);
	padding-top: 0; /* padding-top: 76px; fixed-topを廃止するため削除 */
}

/* --- Utilities --- */
.text-orange { color: var(--primary-orange) !important; }
.bg-orange { background-color: var(--primary-orange) !important; }
.bg-orange-light { background-color: #fff8f0 !important; }

.section-title {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
	font-weight: 700;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background-color: var(--primary-orange);
	margin: 15px auto 0;
}

section {
	padding: 5rem 0;
}

/* --- Header / Navigation --- */
.navbar {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	/* height: 76px;  高さを固定するとメニュー展開時に崩れる可能性があるため削除、もしくはmin-heightにする */
	min-height: 76px; 
}

.navbar-brand img {
	height: 35px;
}

.nav-link {
	color: #333;
	font-weight: 500;
	position: relative;
	padding: 0.5rem 1.5rem; /* 文字の間隔を広げるために値を増やしました (1rem -> 1.5rem) */
	transition: color 0.3s;
}

.nav-link:hover {
	color: var(--primary-orange);
}

/* Nav Hover Underline Animation */
@media (min-width: 992px) {
	.nav-link::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 0;
		height: 2px;
		background-color: var(--primary-orange);
		transition: width 0.3s ease-out;
	}
	.nav-link:hover::after {
		width: 100%;
	}
}

/* --- Hero Section (Slideshow) --- */
#heroCarousel {
	margin-top: 0; /* margin-top: -76px; fixed-top廃止に伴い削除 */
}

.carousel-item {
	height: 80vh;
	min-height: 500px;
	background-color: #000;
	position: relative;
}

.carousel-item img {
	object-fit: cover;
	height: 100%;
	width: 100%;
	opacity: 1;
}
/* --- 追加箇所: スライドショーのフェード時間をゆっくりにする --- */
.carousel-fade .carousel-item {
	transition: opacity 1s ease-in-out;
}
/* 【追加箇所】スマホ表示時のスライド高さ調整 */
@media (max-width: 767px) {
	.carousel-item {
		height: 50vh;      /* 高さを画面の半分程度に */
		min-height: 300px; /* 最低高さを小さくして調整 */
	}
	/* 高さが減る分、文字サイズも少し小さくしてバランスを取る */
	.hero-text h2 {
		font-size: 1.2rem;
	}
	.hero-text .fs-4 {
		font-size: 1rem !important;
	}
	/* 【追加箇所】スマホ表示時のGoogle Map高さを調整 */
	/* Bootstrapのratioコンポーネントのアスペクト比変数を上書きします */
	/* PC(21:9 = 約43%) → スマホ(1:1 = 100%) にして高さを倍以上に確保 */
	#section6 .ratio {
		--bs-aspect-ratio: 100%; 
	}
}

/* Overlay & Caption Logic */
.hero-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	/* 明るいオレンジ (R245 G162 B0) の透明度70%に変更しました */
	background-color: rgba(245, 162, 0, 0.7); 
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0; /* Hidden initially */
}

.hero-text {
	color: #fff;
	opacity: 0; /* Hidden initially */
	transform: translateY(20px);
	max-width: 800px;
	padding: 20px;
}

.hero-text h2 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Animation Triggered when active */
.carousel-item.active .hero-overlay {
	animation: fadeInOverlay 2s ease-out forwards;
	animation-delay: 2s; /* Wait 1 second after slide change */
}

.carousel-item.active .hero-text {
	/* アニメーション時間を 1.5s -> 3.5s に変更 */
	animation: fadeInUpText 3.5s ease-out forwards;
	animation-delay: 2s; 
}

@keyframes fadeInOverlay {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeInUpText {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --- Section 2 (Business) Cards --- */
.business-card {
	border: none;
	margin-bottom: 20px;
}
.business-card img {
	border-radius: 8px;
	margin-bottom: 15px;
	width: 100%;
	height: 400px;
	object-fit: cover;
}
.business-card h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-orange);
	margin-bottom: 10px;
}
.business-card p {
	line-height: 1.8rem;
}

/* --- Section 3 (Safety) Distinct Style --- */
#section3 {
	background-color: #f4f4f4;
}
.safety-card {
	background: #fff;
	border-radius: 0;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	padding: 20px;
	/* border-top: 5px solid var(--primary-orange);  */
	/* Distinct styling */
	height: 100%;
}
.safety-card img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	margin-bottom: 15px;
}
.safety-card p {
	line-height: 1.8rem;
}

/* --- Section 4 (Recruit) --- */
.voice-box {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 8px;
	height: 100%;
	text-align: center;
}
.voice-icon {
	width: 110px;
	height: 110px;
	background-color: var(--secondary-orange);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
}
.voice-icon img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 50%;
}

.flow-step {
	display: flex;
	margin-bottom: 20px;
	align-items: flex-start;
}
.flow-time {
	background: var(--primary-orange);
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	font-weight: bold;
	min-width: 80px;
	text-align: center;
	margin-right: 15px;
}
.qa-icon {
	height: 30px;
	margin-right: 8px;
}

/* --- Section 7 (Contact) --- */
.contact-box {
	background-color: var(--bg-light);
	padding: 40px;
	border-radius: 10px;
	text-align: center;
	border: 2px solid var(--secondary-orange);
}
.btn-orange {
	background-color: var(--primary-orange);
	color: #fff;
	padding: 12px 40px;
	border-radius: 30px;
	font-weight: bold;
	transition: all 0.3s;
}
.btn-orange:hover {
	background-color: #c95b00;
	color: #fff;
	transform: translateY(-2px);
}

/* --- Scroll to Top Button --- */
#btn-back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: none; /* Hidden by default */
	background-color: var(--primary-orange);
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 20%;
	text-align: center;
	line-height: 25px;
	cursor: pointer;
	z-index: 1000;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: opacity 0.4s, transform 0.3s;
	opacity: 0;
}

#btn-back-to-top.show {
	display: block;
	opacity: 1;
}

#btn-back-to-top:hover {
	background-color: var(--secondary-orange);
	transform: translateY(-5px);
}

/* --- Footer --- */
footer {
	background-color: #333;
	color: #fff;
	padding: 20px 0;
	text-align: center;
}
footer a {
	color: #ccc;
	text-decoration: none;
}
footer a:hover {
	color: #fff;
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){
	.navbar-brand img {
		width: 280px;
	}
}