@charset "UTF-8";

/*=====================================
    高輪精機株式会社 2025.
	top用CSS
=====================================*/
.wrapper {}

#h_con {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	z-index: 20;
	/* background-color: rgba(255, 255, 255, 0.5); */

	/* background-color: rgba(0, 0, 0, 0.3) !important; */
	color: #ffffff;

	background-color: rgba(0, 0, 0, 0.3);
	border-bottom: solid 1px !important;
	color: white;
}

#h_con nav ul li a {
	color: #ffffff;
}

@media only screen and (max-width: 1259px) {
	#h_con {
		border-bottom: none !important;
		background-color: initial;
	}
}

/*-------------------------------------
	contents 01　ファーストビュー  
-------------------------------------*/
.visually-hidden {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* スライダー */
/* メインボックス共通 */
.mainvisual_box {
	position: relative;
	width: 100%;
	/* height: calc(100vh - 120px); */
	height: 100dvh;
	overflow: hidden;
}

/* スライダーテキスト */
.slide-text {
	position: absolute;
	top: calc((100dvh - 80px) / 2 + 80px);
	left: 50%;
	z-index: 10;
	transform: translate(-50%, -50%);
	text-align: center;
}

/* スライダーテキストの画像 */
.slide-text img {
	opacity: 1;
	transition: opacity 2s ease-in-out;
	max-height: 40vh;
}

.mv-sp {
	display: none;
}

.mv-pc {
	display: block;
}

@media (max-width: 768px) {

	.mv-pc {
		display: none;
	}

	.mv-sp {
		display: block;
		width: 100%;
		height: 100vh;
		object-fit: cover;
		object-position: center;
		/* background: #000; */
	}
}

/**スマホ用*/
@media screen and (max-width: 429px),
only screen and (-webkit-min-device-pixel-ratio: 3) {
	.slide-text img {
		width: 80vw;
	}

	.mv-pc {
		display: none;
	}

	.mv-sp {
		display: block;
		width: 100%;
		height: 100vh;
		object-fit: cover;
		object-position: center;
	}
}

.slide-text img.visible {
	opacity: 1;
}

.container_03 {
	position: absolute;
	bottom: 5vh;
	left: 50%;
	z-index: 10;
	transform: translate(-50%, -50%);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}




.mouse_03 {
	width: 20px;
	height: 30px;
	border: 1px solid #fff;
	border-radius: 10px;
	/* transform: translate(-50%, -50%); */
}

.mouse_03::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 50%;
	width: 1px;
	height: 6px;
	background-color: #fff;
	transform: translateX(-50%);
	animation: scroll_03 2s infinite;
}

@keyframes scroll_03 {
	0% {
		top: 5px;
		opacity: 0;
	}

	30% {
		opacity: 1;
	}

	100% {
		top: 15px;
		opacity: 0;
	}
}

/* メッセージエリア */
#about_company {
	padding-top: 150px;
	padding-bottom: 150px;
	margin: auto;
	text-align: center;
	font-family: var(--font-main);
}

#about_company .greeting {
	margin: 0 auto 20px;
	font-size: 20px;
	line-height: 2;
}

/* コンテンツエリア */
#link_box_section {
	/* margin-bottom: 100px; */
	padding-top: 50px;
	padding-bottom: 150px;
	background-color: #dedede;
}

.container_box {
	max-width: 1400px;
	display: flex;
	justify-content: space-between;
	padding: 20px;
	margin: 100px auto 0;
}

.link-box {
	text-align: center;
	text-decoration: none;
	color: black;
	width: 18%;
	max-width: 316px;
	position: relative;
	/* display: inline-block; */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* height: 100%; */
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
}

.link-box-title {
	margin: 10px;
	font-size: 1.1rem;
	font-weight: bold;
	text-align: left;
}



.link-box-title img {
	/* max-width: 100%; */
	height: 100px;
	/* width: 108px; */
	width: auto;
	margin-bottom: 10px;
}

.link-box-title p {
	line-height: 1.2;
	font-size: 12px;
	height: 48px;
}

.split-line {
	width: 100%;
	height: 1px;
	margin: 32px auto;
	background: linear-gradient(to right,
			#5b5b5b 0%,
			#5b5b5b 20%,
			#e8e8e8 20%,
			#e8e8e8 100%);
}


.link-box_img {
	overflow: hidden;
	position: relative;
}

.link-box_img img {
	display: block;
	transition: .3s;
	object-fit: cover;
	width: 100%;
	height: auto;
	/* border-radius: 10px; */
}

.link-box:hover .link-box_img img {
	transform: scale(1.05);
}

.link-box p {
	font-weight: bold;
}



.l-box-title {
	position: absolute;
	/* top: 50%; */
	right: 5%;
	bottom: 5%;
	/* transform: translate(-50%, -50%); */
	text-align: center;
	color: #fff;
	/* padding-right: 10%; */
	z-index: 2;
}

.l-box-title img {
	display: block;
	height: auto;
	max-width: 67px;
	max-height: 41px;
	box-shadow: 4px 4px 0px 0px #012a5a;
	transition: all 0.15s ease-out;
}

.link-box:hover .l-box-title img {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0px 0px #012a5a;
}


.carousel-controls {
	display: none;
}

/**スマホ用*/
@media only screen and (max-width: 429px),
only screen and (-webkit-min-device-pixel-ratio: 3) {
	#about_company {
		padding-top: 100px;
		padding-bottom: 100px;
	}

	#about_company .greeting {
		font-size: 20px;
		width: 90%;
		margin-left: auto;
		margin-right: auto;
		text-align: left;
	}

	.con_text2 {
		width: 100vw;
	}

	#link_box_section {
		position: relative;
		padding-bottom: 150px;
	}

	.container_box {
		flex-wrap: nowrap;
		overflow-x: scroll;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		/* Firefox */
		scrollbar-color: #c8c8c8 transparent;
		/* Firefox用 */

		padding-bottom: 20px;
		scrollbar-width: none;
		gap: 0 20px;
		/* margin-bottom: ; */
	}

	.container_box::-webkit-scrollbar {
		display: none;
	}


	/* --- 矢印 ＋ インジケータ全体 --- */
	.carousel-controls {
		width: 100%;
		position: absolute;
		bottom: 100px;
		left: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 12px;
	}

	/* --- 矢印ボタン --- */
	.carousel-arrow {
		background: #fff;
		border: 1px solid #ccc;
		border-radius: 50%;
		width: 36px;
		height: 36px;
		padding: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 18px;
		color: #1960B1;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
		box-sizing: border-box;
		/* 枠込みで44x44に */
		line-height: 1;
		/* 文字で高さがズレないように */
	}

	.carousel-arrow .icon {
		vertical-align: middle;
		display: inline-block;
		position: relative;
		z-index: 1;
		min-width: 1em;
	}

	/* --- インジケータライン --- */
	.carousel-indicator {
		/* width: 120px; */
		width: calc(100vw - 200px);
		height: 3px;
		background: #cfd5df;
		border-radius: 3px;
		overflow: hidden;
		position: relative;
	}

	/* --- 青い動くバー --- */
	.carousel-bar {
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: 20%;
		background: #1960B1;
		transition: transform .3s ease-out;
	}

	.link-box {
		flex: 0 0 80%;
		max-width: none;
	}

	.link-box-title p {
		font-size: 16px;
	}

	.l-box-title img {
		max-width: 80px;
		/* max-height: 30px; */
	}
}

/* hero card */
.hero-container {
	display: flex;
	min-height: 70vh;
	background: url('../images/top/middle_image_01.png') center/cover no-repeat;
	justify-content: center;
	align-items: center;
	padding: 80px 20px;
}

.hero-card {

	width: calc(100% - 48px);
	max-width: 700px;
	background: #fff;
	padding: 50px 36px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	text-align: center;
	z-index: 3;
}

.hero-card__title {
	font-size: 28px;
	font-weight: bold;
	line-height: 1.3;
	margin: 0 0 12px;
	color: #1960B1;
}

.hero-card__title img {
	width: 100%;
	max-width: 500px;
	height: auto;
	/* max-height: 40px; */
}

.hero-card__text {
	font-size: 16px;
	color: #333;
	margin: 0;
	line-height: 1.8;
}

/* 小さい画面では幅を調整して上下余白を確保 */
@media (max-width: 768px) {
	.hero-container {
		min-height: 50vh;
		/* padding: 60px 20px; */
	}

	.hero-card {
		padding: 24px;
		width: 80vw;
	}

	.hero-card__title {
		font-size: 20px;
	}

	.hero-card__text {
		font-size: 14px;
		text-align: left;
	}
}