﻿@charset "UTF-8";

/* ==========================================================================
   トップページ専用スタイル (index.css)
   ========================================================================== */

/* Heroセクション */
section#hero {
	position:relative;
	height:60vh;
	overflow:hidden;
	color:white;
	display:flex;
	align-items:center;
	justify-content:center;
	text-align:center;
	background-color:#333;
}

div#hero-slideshow {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:1;
	background-color:#fff;
}

#hero-slideshow .slide {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-size:cover;
	background-position:center;
	opacity:0;
	transition:opacity 1s ease;
}


#hero-slideshow .slide.active {
	opacity: 1;
}


#hero-text {
	position: relative;
	z-index: 2;
	max-width: 800px;
	padding: 20px;
	opacity: 0;
	transform: translateY(40px);
	transition: all 1s ease;
}

#hero-text h2 {
	font-size:2.5rem;
	text-shadow: 
		0 0 10px rgba(30, 40, 50, 0.8),
		0 0 30px rgba(80, 100, 120, 0.7),
		0 0 60px rgba(80, 100, 120, 0.5),
		0 0 100px rgba(80, 100, 120, 0.4);
}

#hero-text p {
	font-size: 1.2rem;
	font-weight: 500;
	text-shadow: 
		0 0 4px rgba(30, 40, 50, 0.9),
		0 0 15px rgba(30, 40, 50, 0.7),
		0 0 40px rgba(80, 100, 120, 0.6),
		0 0 70px rgba(80, 100, 120, 0.5);
}

#hero-text.active {
	opacity: 1;
	transform: translateY(0);
}





/* 事業内容 (Services) */
.grid-3 {
	display:grid;
	grid-template-columns:repeat(3, 1fr);
	gap:20px;
}

.service {
	display: flex;
	flex-direction: column;
	padding: 22px;
	border-radius: 12px;
	background: linear-gradient(180deg, #fff, #fbfbff);
	border: 1px solid rgba(11, 92, 255, 0.06);
}

.service h4 {
	margin: 0 0 8px;
}

.service a.btn {
	margin-top: auto;
	align-self: flex-start;
}


/* パララックス内にある h3 の共通デザインを打ち消す */
.parallax .overlay h2 {
	border-left:none;    /* 青い縦線を消す[cite: 3] */
	padding-left:0;      /* 左側の余白をリセットする[cite: 3] */
	margin-top:0;        /* 上側の大きな余白をリセットする[cite: 3] */
	margin-bottom:0;     /* 下側の余白をリセットする[cite: 3] */
	color:#fff;          /* 文字色を白にする[cite: 4] */
	font-size:1.5rem;    /* サイズを調整する[cite: 4] */
}






/* 会社情報 (About) */

section#aboutus {
	background-color: #efefff;
}
#aboutus .about {
	display:flex;
	align-items:stretch;
	gap:28px;
	margin-top:18px;
	padding:1.0rem;
}

/*DXロゴ*/
img#lg-dxcert {
	width:500px;
	border:solid 1px #aaa;
	margin-bottom:1.0em
}

img#lg-dxstrtgy {
	width:500px;
	margin:1.0em 0
}


#aboutus .copy {
	flex:1;
	padding:1rem 3rem;
	border-radius:12px;
	overflow:hidden;
	box-shadow:0 8px 24px rgba(0, 0, 0, 0.08);
}

#aboutus .copy:first-child {
	background-color:#fff;
}
#aboutus .copy:last-child {
	background-color:#fcfaf5;
}

#aboutus .copy p {
	margin: 0;
}

#aboutus iframe {
	width:100%;
	height:200px;
	border:solid 1px #aaa !important;
	margin-top:15px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



/* セクションリンク */
.section-row {
	display: flex;
	gap: 20px;
}

.section-row .section {
	flex: 1;
	min-height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	border-radius: 12px;
	color: white;
}

.section-maintenance,
.section-support {
	background-image: url('../img/continerback02.webp');
}

.section-content {
	background: rgba(255, 255, 255, 0.9);
	padding: 30px;
	border-radius: 12px;
	width: 60%;
	max-width: 400px;
	min-width: 250px;
	text-align: center;
	color: #111;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease, transform 0.3s ease;
	display: block; /* リンクの当たり判定を箱全体に広げる */
	font-size: 1.2rem;
	font-weight: bold;
	text-decoration: none;
}

.section-content:hover {
	background: rgba(11, 92, 255, 0.8);
	transform: scale(1.05);
}

.section-content:hover a {
	color: #fff !important;
	transition: color 0.3s ease;
}



/* ニュース (News) */
section#news h4{
	margin-top:0;
	font-size:1.1rem;
}


.news-list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding-bottom: 8px;
}

.news-item {
	flex: 0 0 30%;
	min-width: 250px;
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.news-item time {
	color: var(--muted);
	font-size: 13px;
	min-width: 100px;
}

.news-item.active {
	opacity: 1;
	transform: translateY(0);
}

.news-item:hover {
	transform: translateY(-5px);
}

/* ニュースの本文 */
.news-item .small {
	color: #444;
}


/* ニュースの本文制限と「詳細」ボタンの設定 */
.news-content {
	display: -webkit-box;
	-webkit-line-clamp: 5; /* 表示する行数 */
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 「詳細」ボタンを押して展開された状態 */
.news-content.expanded {
	-webkit-line-clamp: unset; /* 行数制限を解除する */
}

/* JSで自動追加されるボタンのデザイン */
.read-more-btn {
	background: none;
	border: none;
	color: var(--brand-color);
	cursor: pointer;
	padding: 10px 0 0 0;
	font-size: 0.9rem;
	display: block;
	width: 100%;
	text-align: right; /* 右下に配置すると読みやすいです */
	transition: opacity 0.3s;
}

.read-more-btn:hover {	
opacity: 0.7;
}





/* パララックス (Parallax) */
.parallax-row {
	display: flex;
	gap: 10px;
	margin: 64px 0;
	flex-wrap: nowrap;
	justify-content: center;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 0 10px;
}

.parallax {
	position: relative;
	flex: 1 1 300px;
	height: 400px;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.parallax-news1,
.parallax-news2 {
	background-image: url('../img/continerback01.webp');
}

.parallax .overlay {
	background: rgba(0, 0, 0, 0.4);
	padding: 40px 60px;
	border-radius: 12px;
	transition: background 0.3s ease, transform 0.3s ease;
}

.parallax .overlay a {
	color: #fff;
	font-size: 1.5rem;
	text-decoration: none;
	transition: color 0.3s ease;
}

.parallax:hover .overlay {
	background: rgba(11, 92, 255, 0.8);
	transform: scale(1.05);
}

.parallax:hover .overlay a {
	color: #fff;
}

/* その他固有設定 (Others) */
.brand .logo {
	width: 46px;
	height: 46px;
	background: linear-gradient(135deg, var(--accent), #06b6d4);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
	margin-top: 40px;
	padding-top: 15px;
	font-size: 12px;
	color: #aaa;
}

.policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.policy-links a {
	color: #222;
	text-decoration: none;
}

.policy-links a:hover {
	color: #ccc;
}

form .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

input,
textarea,
select {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid #e6e6ef;
}

textarea {
	min-height: 120px;
}

/* ページ内リンクのズレ防止（特定ID用） */
#services,
section#about,
#news {
	scroll-margin-top: 90px;
}




/* メディアクエリ (Media Queries) */
@media (max-width: 900px) {
	.section-row {
		flex-direction: column;
		gap: 24px;
	}

	.section-row .section {
		min-height: 300px;
		padding: 20px;
	}

	.section-content {
		max-width: 100%;
	}

	.parallax-row {
		flex-wrap: wrap;
		overflow-x: hidden;
	}

	.parallax {
		flex: 1 1 100%;
		height: 250px;
		background-attachment: scroll;
	}

	.parallax .overlay {
		padding: 24px;
	}

	.parallax .overlay a {
		font-size: 1.2rem;
	}
	
	img#lg-dxcert,img# lg-dxstrtgy {
		width: 400px !important; /* PC版の500pxを確実に上書き */
		max-width: 100%;          /* 画面幅が300px以下の端末でもはみ出さないように */
		height: auto;
	}
	
	#aboutus .about {
		flex-direction: column; /* 縦に並べる[cite: 2] */
		padding: 0;
	}
	
	

	
}

@media (min-width: 901px) and (max-width: 1200px) {
	.parallax {
		height: 300px;
	}

	.parallax .overlay {
		padding: 32px 40px;
	}

	.parallax .overlay a {
		font-size: 1.3rem;
	}
}

@media (max-width: 768px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.news-item {
		flex: 0 0 95%;
		min-width: auto;
	}
}