@charset "utf-8";

/* =================================== */
/*	技術情報ページ用CSS（style.css の後ろに読み込みます）
/* =================================== */

/* ---------- パンくず（下層ページ共通の見た目に合わせる） ---------- */
#topic_path {
	max-width: 1170px;
	margin: 0 auto;
	padding: 12px 15px;
	font-size: 13px;
	line-height: 1.6;
}
#topic_path ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#topic_path li {
	display: inline;
}
#topic_path li + li:before {
	content: "›";
	margin: 0 0.6em;
	color: #888;
}
#topic_path a {
	color: #317ab6;
}

/* ---------- 記事ページ ---------- */
.tech-page .c-main-visual h1 {
	width: 90%;
	line-height: 1.4;
}
.tech-article.content1,
.tech-index.content1 {
	padding-top: 2em;
}
.tech-article .tech-meta {
	text-align: right;
	font-size: 0.9em;
	color: #555;
	margin-bottom: 1em;
}
.tech-article .content3 {
	padding-bottom: 2em;
}
.tech-article .content3 p {
	margin-bottom: 1.4em;
	line-height: 1.9;
}
.tech-article .content3 .inner img,
.tech-article .tech-img-row img {
	max-width: 100%;
	height: auto;
}
.tech-article .tech-img-row {
	margin-bottom: 2em;
}
.tech-article .tech-img-row .ct-image {
	margin-bottom: 16px;
}
.tech-article .tech-img-row .ct-image img {
	width: 100%;
}
.tech-article h2.tech-h2 {
	font-size: 1.5em;
	margin: 0 auto 1.4em;
	padding-top: 0.6em;
}
.tech-back {
	text-align: center;
	margin: 1em 0 1em;
}
.tech-back a {
	display: inline-block;
	padding: 0.7em 2em;
	border: 2px solid #317ab6;
	color: #317ab6;
	font-weight: 600;
	background: #fff;
}
.tech-back a:hover {
	background: #317ab6;
	color: #fff;
	opacity: 1;
}
.tech-preview-bar {
	background: #d9232d;
	color: #fff;
	text-align: center;
	font-size: 14px;
	padding: 6px 10px;
	position: relative;
	z-index: 2000;
}

/* ---------- カード（一覧・トップ共通） ---------- */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.tech-card {
	display: block;
	background: #fff;
	border: 1px solid #d5d5d5;
	color: #000;
	overflow: hidden;
	transition: box-shadow 0.2s;
}
.tech-card:hover,
.tech-card:focus {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
	color: #000;
	opacity: 1;
}
.tech-card-img {
	background: #eee;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.tech-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tech-card-body {
	padding: 12px 14px 14px;
}
.tech-card-date {
	display: block;
	font-size: 0.85em;
	color: #317ab6;
	font-weight: 600;
	margin-bottom: 4px;
}
.tech-card-title {
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tech-card-text {
	font-size: 0.85em;
	line-height: 1.6;
	color: #555;
	margin-top: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 一覧ページ ---------- */
.tech-index .tech-lead {
	text-align: center;
	margin-bottom: 1.5em;
}
.tech-index .tech-empty {
	text-align: center;
	padding: 3em 0;
}
.tech-index h2.tech-year {
	text-align: left;
	font-size: 1.4em;
	margin: 1.6em 0 0.8em;
	padding: 0 0 0 0.6em;
	border-left: 6px solid #317ab6;
	line-height: 1.3;
}
.tech-index h2.tech-year:before,
.tech-index h2.tech-year:after {
	display: none;
}
.tech-index h2.tech-year:first-of-type {
	margin-top: 0.4em;
}
.tech-index .tech-grid {
	margin-bottom: 1em;
}

/* ---------- トップページの枠（会社概要・TOPICSの下） ---------- */
.content-tech {
	background-color: #fff;
	padding: 0 0 3em;
}
.tech-top {
	padding: 1em 3em;
}
.tech-top-inner {
	border: 4px solid #317ab6;
	padding: 1.6em 2em 2em;
	min-height: 390px;
}
.tech-top-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 1em;
}
.tech-top-head h4 {
	font-size: 2em;
	font-weight: 600;
	color: #317ab6;
}
.tech-top-more {
	color: #317ab6;
	font-weight: 600;
}
.tech-top-more:after {
	content: " ›";
}

/* ---------- タブレット・スマホ ---------- */
@media screen and (max-width: 991px) {
	.tech-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
	.tech-top-inner .tech-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
}
@media screen and (max-width: 767px) {
	.tech-top {
		padding: 1em;
	}
	.tech-top-inner {
		padding: 1.2em 1em 1.4em;
		min-height: 0;
	}
	.tech-top-head h4 {
		font-size: 1.6em;
	}
	/* スマホは「小さな写真＋文字」の横並び（一覧が見やすい） */
	.tech-grid,
	.tech-top-inner .tech-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.tech-card {
		display: flex;
	}
	.tech-card-img {
		flex: 0 0 38%;
		aspect-ratio: auto;
		min-height: 96px;
	}
	.tech-card-body {
		flex: 1;
		min-width: 0;
		padding: 10px 12px;
	}
	.tech-card-text {
		display: none;
	}
	.tech-article .tech-meta {
		text-align: left;
	}
	.tech-article .content3 .inner {
		padding: 0 4px;
	}
	.tech-article .col-sm-12 + .col-sm-12 {
		margin-top: 8px;
	}
}
