@charset "utf-8";

/* =================================================
   ベーススタイル (モバイルファースト)
   ================================================= */
.busi_body {
	font-family: 'Oswald', sans-serif;
	margin-top: 100px;
	margin-bottom: 50px;
	width: 90%;
	margin: 0 auto;
}

.busi_header {
	padding: 0;
	text-align: center;
}

.busi_header h1 {
	font-size: 1.8em;
	line-height: 2.2rem;
	margin: 5rem;
}

.busi_header h2 {
	font-size: 1.3em;
	margin: 3rem;
}

/* =================================================
   産業領域カードリスト (Mobile Base)
   ================================================= */
.industry-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	width: 100%;
	margin: 0 auto;
}

.industry-card {
	background: white;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s;
}

.industry-card a,
.industry-card a:visited {
	text-decoration: none;
	color: #000;
	display: block;
	height: 100%;
}

.industry-card:hover {
	transform: translateY(-5px);
}

.industry-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	margin: 0 auto;
}

.industry-card .content {
	padding: 20px;
}

.industry-card h3 {
	margin: 20px 0;
	font-size: 1.3em;
	padding-left: 0;
}

.industry-card h4 {
	font-size: 0.8em;
	background-color: #014495;
	color: white;
	padding: 0.1em 0.5em;
	display: inline-block;
	margin: 10px 0;
}

.industry-card p {
	font-size: 0.95em;
	margin-bottom: 1em;
}

.button-container {
	display: flex;
	justify-content: flex-end;
}

.btn {
	background: #c00;
	color: white;
	padding: 3px 7px;
	text-decoration: none;
	border-radius: 5px;
	font-size: 0.7em;
}

/* =================================================
   事業技術リスト (Mobile Base)
   ================================================= */
.busi_tech_list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.busi_tech-card {
	background: white;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.busi_tech-card .content {
	padding: 20px;
}

.busi_tech-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	margin: 0 auto;
}

.busi_tech-card h3 {
	margin: 20px 0;
	font-size: 1.3em;
	padding-left: 0;
}

/* アンカーリンクのスクロール位置調整 */
.busi_tech_list .busi_tech-card {
	scroll-margin-top: 30vh;
}

/* =================================================
   インデックス用 事業技術カスタムグリッド (Mobile Base)
   ================================================= */
.index-tech-grid {
	display: grid !important;
	width: 100% !important;
	margin: 0 auto;
	grid-template-columns: repeat(3, 1fr) !important;
	grid-template-rows: repeat(3, auto);
	grid-column-gap: 10px;
	grid-row-gap: 15px;
}

.index-tech-grid .busi_tech-card {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	margin-bottom: 0 !important;
	width: 100% !important;
}

.index-tech-grid .busi_tech-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4/3;
}

.index-tech-grid .busi_tech-card .content {
	padding: 10px 5px !important;
	text-align: center;
	flex-grow: 1;
}

/* SP用に初期値を11pxに設定 */
.index-tech-grid .busi_tech-card h3 {
	font-size: 11px !important;
	margin: 0;
	line-height: 1.3;
}

.busi_tech-card-link {
	transition: transform 0.2s ease;
	display: block;
	height: 100%;
}

.busi_tech-card-link:hover .busi_tech-card {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* =================================================
   テーブル (Mobile Base)
   ================================================= */
.skills-table {
	width: 100%;
	margin: 0 auto;
	border-collapse: collapse;
	border: 1px solid #ccc;
	font-size: 0.8rem;
}

.skills-table th,
.skills-table td {
	border: 1px solid #ccc;
	padding: 12px;
	text-align: left;
}

.skills-table th {
	background-color: #f2f2f2;
	font-weight: bold;
}

.skills-table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.skills-table td.year {
	font-weight: bold;
	vertical-align: top;
}

/* =================================================
   タブレット・PC向けスタイル (601px以上)
   ================================================= */
@media screen and (min-width: 601px) {
	.busi_body {
		max-width: 80%;
	}

	.industry-list {
		width: 80%;
	}

	.busi_tech_list {
		grid-template-columns: repeat(auto-fit, minmax(333px, 1fr));
	}

	.skills-table {
		font-size: 1.0rem;
		line-height: 1.2rem;
		width: 80%;
	}

	/* PC用に文字サイズを拡大 */
	.index-tech-grid .busi_tech-card h3 {
		font-size: 14px !important;
	}
}

/* =================================================
   大型PC向けスタイル (1000px以上)
   ================================================= */
@media screen and (min-width: 1000px) {
	.index-tech-grid {
		width: 80% !important;
		grid-template-columns: repeat(6, 1fr) !important;
		grid-column-gap: 20px;
		grid-row-gap: 30px;
		grid-template-rows: repeat(2, auto);
	}
}