@charset "UTF-8";

/* ---- particles.js container ---- */
#particle-wrapper {
	position: relative;
	width: 100%;
	height: 400px;
	/* 必要に応じて任意の高さに */
	overflow: hidden;
	background-image: url(../tmc2025/img/top/TOP_first_image.jpg);
	background-size: 150%;
	background-position: 40% 40%;
	background-repeat: no-repeat;
}

/* パーティクルのcanvasを背景レイヤーとして固定配置 */
#particle-wrapper #particles-js {
	position: absolute;
	top: 0;
	left: 500px;
	/* ← これは JSで上書きされる */
	width: calc(100% - 500px);
	/* ← これも JSで上書きされる */
	height: 100%;
	z-index: 0;
}

/* テキストを上に重ねる */
#particle-wrapper .slide-text-box {
	position: relative;
	z-index: 10;
	color: #fff;
	padding: clamp(5px, 5vw, 60px) 0px 0px clamp(5px, 5vw, 90px);
	max-width: 470px;
}

/* 全体のセンタリングと余白 */
.about-area,
.service-area,
.ict-area,
.news-area {
	text-align: center;
	padding: 30px 20px;
}


.slide-text-box {
	padding: 60px 0px 0px 90px;
}

.slide-text-box h1 {
	margin: 0px 0px 10px;
	color: #ffffff;
	line-height: 1.4;
	letter-spacing: 0.05em;
	font-family: 'Jost';
	font-size: 58px;
	text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
}

.slide-text-box p {
	color: #ffffff;
	line-height: 1.8;
	letter-spacing: 0.1em;
	text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
}

/* タイトル部分 */
#front-page-main h2.top-page-title {
	font-family: 'Jost';
	font-size: 30px;
	letter-spacing: 3px;
	margin-bottom: 10px;
	color: #3f3f3f;
	border-bottom: none;
	font-weight: 400;
}

#front-page-main p.top-page-subtitle {
	color: #3f3f3f;
	font-size: 14px;
	letter-spacing: 0.1em;
	margin-bottom: 40px;
}

/* カード全体を横並び＋レスポンシブ対応 */
.about-flex-area,
.service-flex-area,
.ict-flex-area {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}

/* 各カードのスタイル */
.contents-menu-box {
	width: 280px;
	border-radius: 15px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
	text-align: left;
}

/* 各カードのスタイル */
.contents-menu-box:hover {
	text-decoration: none;
}

/* ホバー時の動き */
.contents-menu-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 画像部分 */
.contents-menu-box .img-div {
	width: 100%;
	height: 180px;
	display: block;
	padding: 0;
}

/* 画像部分 */
.contents-menu-box img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

/* テキスト＋アイコン部分 */
.contents-menu-box .contents-menu-text-box {
	background-color: #0088a9;
	color: #fff;
	padding: 5px 10px;
	position: relative;
	height: 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* 英語タイトル */
.contents-menu-box div p.en-title {
	margin: 0px;
	font-family: "Jost";
	font-weight: normal;
	font-size: 16px;
	letter-spacing: 1px;
	text-align: center;
}

/* 日本語サブタイトル */
.contents-menu-box div p.jp-title {
	margin: 0px;
	text-align: center;
	letter-spacing: 0.15em;
	font-size: 10px;
}

/* アイコンの配置 */
.contents-menu-box i {
	position: absolute;
	bottom: 8px;
	right: 8px;
	font-size: 14px;
	background: #fff;
	color: #0088a9;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* TOP MESSAGE 画像位置調整 */
.contents-menu-box.top-message-box img {
	width: 100%;
	height: 200px;
	object-position: 100% 50%;
}

/* PSI 画像位置調整 */
.contents-menu-box.psi-box img {
	object-position: 90% 100%;
}

/* RFID 画像位置調整 */
.contents-menu-box.rfid-box img {
	object-position: 30% 100%;
}

/* WEB PEYMENT 画像位置調整 */
.contents-menu-box.payment-box img {
	object-position: 50% 10%;
}


/* ニュースエリア */
.news-area {
	text-align: center;
	padding: 60px 20px;
}

.news-list {
	list-style: none;
	max-width: 600px;
	margin: 0 auto 40px auto;
	padding: 0;
}

.news-list li {
	border-bottom: 1px solid #ccc;
	text-align: left;
	padding: 10px 0;
}

.news-list li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	color: #333;
	transition: color 0.3s;
}

.news-list li a:hover {
	color: #0088a9;
}

.news-date {
	width: 100px;
	font-size: 12px;
}

.news-title-text {
	flex: 1;
	padding-left: 10px;
	font-size: 14px;
}

.news-arrow {
	font-size: 14px;
}

/* ボタン部分 */
.news-button-area {
	margin-top: 20px;
}

.news-more-btn {
	display: inline-block;
	padding: 10px 40px;
	border: 1px solid #0088a9;
	border-radius: 30px;
	color: #0088a9;
	text-decoration: none;
	transition: background 0.3s, color 0.3s;
	font-size: 14px;
}

.news-more-btn:hover {
	text-decoration: none;
	background: #0088a9;
	color: #fff;
}

.btn-arrow {
	margin-left: 10px;
}

/* タブレットレイアウト */
@media screen and (min-width:768px) and (max-width:1049.99px) {
	/* トップページ　画像エリア テキストボックス */
	.slide-text-box {
		padding: 30px 0px 0px 45px;
	}

	/* トップページ　画像エリア ICT Re-Inventor */
	.slide-text-box h1 {
		font-size: 48px;
	}

	/* トップページ　画像エリア 文章 */
	.slide-text-box p {
		color: #ffffff;
		line-height: 1.8;
		letter-spacing: 0.1em;
		text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
	}

	#particle-wrapper .slide-text-box {
		max-width: 420px;
	}
}

/* スマートフォンレイアウト */
@media screen and (max-width: 767px) {

	#particle-wrapper {
		background-size: 150%;
		background-position: 40% 0%;
		background-repeat: no-repeat;
	}

	/* パーティクルのcanvasを背景レイヤーとして固定配置 */
	#particle-wrapper #particles-js {
		position: absolute;
		top: 280px;
		left: 0px;
		/* ← これは JSで上書きされる */
		width: 100%;
		/* ← これも JSで上書きされる */
		height: 200px;
		z-index: 0;
	}

	/* 全体のセンタリングと余白 */
	.about-area,
	.service-area,
	.ict-area,
	.news-area {
		text-align: center;
		padding: 30px 10px;
	}

	/* トップページ　画像エリア テキストボックス */
	.slide-text-box {
		padding: 20px 0px 0px 20px;
	}

	/* トップページ　画像エリア ICT Re-Inventor */
	.slide-text-box h1 {
		font-size: 48px;
	}

	/* トップページ　画像エリア 文章 */
	.slide-text-box p {
		color: #ffffff;
		line-height: 1.8;
		letter-spacing: 0.1em;
		text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
	}

	/* ヘッダー画像のテキスト部分 */
	.top-page-slide-area .slide-text-box {
		padding: 20px 0px 0px 20px;
	}

	/* トップページ　画像エリア ICT Re-Inventor */
	.top-page-slide-area .slide-text-box h1 {
		margin: 0px 0px 10px;
		color: #ffffff;
		line-height: 1.4;
		letter-spacing: 0.05em;
		font-family: 'Jost';
		font-size: 58px;
		text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
	}

	#front-page-main h2.top-page-title {  
		font-size: 30px;
		letter-spacing: 3px;
		margin-bottom: 10px;
		color: #3f3f3f;
		border-bottom: none;
	}

	/* 英語タイトル */
	.contents-menu-box div p.en-title {
		margin: 0px;
		font-family: "Jost";
		font-weight: 400;
		font-size: 16px;
		letter-spacing: 1px;
		text-align: center;
	}

	/* 各コンテンツの幅調整 */
	.contents-menu-box {
		width: 100%;
		max-width: 450px;
	}

	.contents-menu-box .img-div {
		height: 240px;
	}

	/* 各コンテンツイメージ画像の高さ調整 */
	.contents-menu-box img {
		height: 240px;
	}

	.contents-menu-box.top-message-box img {
		height: 255px;
		object-position: 100% 0%;
	}
}