@charset "UTF-8";

/* ==========================================================================
   技術紹介ページ共通スタイル
   （技術紹介親ページ + 各技術子ページで共用）
   ========================================================================== */


/* ---------- リード文 ---------- */

.tech-lead__content {
	text-align: center;
}

.tech-lead__text {
	font-size: 1rem;
	line-height: 2;
	color: var(--color-text);
	max-width: 800px;
	margin: 0 auto 16px;
}

.tech-lead__text:last-child {
	margin-bottom: 0;
}


/* ---------- 技術カード一覧（技術紹介親ページ） ---------- */

.tech-cards__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.tech-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background-color: var(--color-bg);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--color-border);
	transition: transform var(--transition), box-shadow var(--transition);
}

.tech-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	color: inherit;
}

/* フォトエッチング（大きいカード） */
.tech-card--featured {
	grid-column: 1 / -1;
	grid-template-columns: 1fr 1fr;
}

.tech-card__image {
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.tech-card--featured .tech-card__image {
	aspect-ratio: auto;
	min-height: 320px;
}

.tech-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.tech-card:hover .tech-card__image img {
	transform: scale(1.05);
}

.tech-card__body {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tech-card__number {
	display: block;
	font-family: var(--font-english);
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 12px;
}

.tech-card__en {
	display: block;
	font-family: var(--font-english);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-steel);
	margin-bottom: 8px;
}

.tech-card__title {
	font-family: var(--font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 16px;
	color: var(--color-text);
}

.tech-card__desc {
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--color-text-light);
	margin-bottom: 24px;
}

.tech-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-top: auto;
	transition: gap var(--transition);
}

.tech-card:hover .tech-card__link {
	gap: 12px;
}

.tech-card__arrow {
	display: inline-block;
	width: 20px;
	height: 1px;
	background-color: var(--color-primary);
	position: relative;
}

.tech-card__arrow::after {
	content: '';
	position: absolute;
	right: 0;
	top: -3px;
	width: 8px;
	height: 8px;
	border-right: 1px solid var(--color-primary);
	border-top: 1px solid var(--color-primary);
	transform: rotate(45deg);
}


/* ---------- 概要セクション（各技術ページ） ---------- */

.tech-overview__content {
	text-align: center;
}

.tech-overview__text {
	font-size: 1rem;
	line-height: 2;
	color: var(--color-text);
	margin-bottom: 16px;
}

.tech-overview__text:last-child {
	margin-bottom: 0;
}


/* ---------- 特長カード ---------- */

.tech-features__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.tech-features__grid--3col {
	grid-template-columns: repeat(3, 1fr);
}

.tech-feature {
	background-color: var(--color-bg);
	padding: 40px 32px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	transition: border-color var(--transition);
}

.tech-feature:hover {
	border-color: var(--color-primary);
}

.tech-feature__number {
	display: block;
	font-family: var(--font-english);
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 20px;
}

.tech-feature__title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 16px;
}

.tech-feature__text {
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--color-text-light);
}


/* ---------- 用途タグ ---------- */

.tech-usage__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tech-usage__tag {
	display: inline-block;
	padding: 10px 20px;
	background-color: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text);
	transition: border-color var(--transition), background-color var(--transition);
}

.tech-usage__tag:hover {
	border-color: var(--color-primary);
	background-color: var(--color-primary-light);
}


/* ---------- 加工フロー（ステッパー） ---------- */

.tech-process__stepper {
	position: relative;
	max-width: var(--content-narrow);
	margin: 0 auto;
}

.tech-process__step {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	position: relative;
	padding-bottom: 48px;
}

.tech-process__step:last-child {
	padding-bottom: 0;
}

/* ステッパーの縦線 */
.tech-process__step::after {
	content: '';
	position: absolute;
	left: 27px;
	top: 56px;
	bottom: 0;
	width: 2px;
	background-color: var(--color-border);
}

.tech-process__step:last-child::after {
	display: none;
}

.tech-process__step-number {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background-color: var(--color-primary);
	color: var(--color-text-on-dark);
	font-family: var(--font-english);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	border-radius: var(--radius-lg);
	position: relative;
	z-index: 1;
}

.tech-process__step-content {
	padding-top: 8px;
	flex: 1;
}

.tech-process__step-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 8px;
	line-height: 1.5;
}

.tech-process__step-text {
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--color-text-light);
}


/* ---------- 対応スペック ---------- */

.tech-spec__table-wrap {
	margin-bottom: 32px;
}

/* スペックテーブル（spec-table の th/td をここで微調整） */
.tech-spec .spec-table th {
	width: 200px;
	white-space: nowrap;
}

.tech-spec__note {
	background-color: var(--color-bg-alt);
	padding: 24px 32px;
	border-radius: var(--radius-lg);
	border-left: 4px solid var(--color-primary);
}

.tech-spec__note p {
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--color-text-light);
	margin-bottom: 16px;
}

.tech-spec__note .more-link {
	font-size: 0.875rem;
}


/* ---------- 対応設備（精密切削加工ページ） ---------- */

.tech-equipment__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.tech-equipment__item {
	padding: 32px;
	background-color: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	transition: border-color var(--transition);
}

.tech-equipment__item:hover {
	border-color: var(--color-primary);
}

.tech-equipment__name {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
	padding-left: 12px;
	border-left: 3px solid var(--color-accent);
}

.tech-equipment__desc {
	font-size: 0.875rem;
	color: var(--color-text-light);
	line-height: 1.7;
}

.tech-equipment__link {
	text-align: center;
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media screen and (max-width: 768px) {

	/* リード文 */
	.tech-lead__text {
		font-size: 0.9375rem;
		text-align: left;
	}

	/* 技術カード一覧 */
	.tech-cards__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.tech-card {
		grid-template-columns: 1fr;
	}

	.tech-card--featured {
		grid-column: 1;
		grid-template-columns: 1fr;
	}

	.tech-card--featured .tech-card__image {
		min-height: 200px;
		aspect-ratio: 16 / 9;
	}

	.tech-card__image {
		aspect-ratio: 16 / 9;
	}

	.tech-card__body {
		padding: 24px;
	}

	.tech-card__number {
		font-size: 2rem;
	}

	.tech-card__title {
		font-size: 1.125rem;
	}

	/* 概要 */
	.tech-overview__text {
		font-size: 0.9375rem;
		text-align: left;
	}

	/* 特長カード */
	.tech-features__grid,
	.tech-features__grid--3col {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tech-feature {
		padding: 28px 24px;
	}

	.tech-feature__number {
		font-size: 2rem;
		margin-bottom: 12px;
	}

	/* 用途タグ */
	.tech-usage__tags {
		gap: 8px;
	}

	.tech-usage__tag {
		padding: 8px 16px;
		font-size: 0.8125rem;
	}

	/* 加工フロー */
	.tech-process__step {
		gap: 20px;
		padding-bottom: 32px;
	}

	.tech-process__step-number {
		width: 44px;
		height: 44px;
		font-size: 0.9375rem;
	}

	.tech-process__step::after {
		left: 21px;
		top: 44px;
	}

	.tech-process__step-content {
		padding-top: 4px;
	}

	.tech-process__step-title {
		font-size: 1rem;
	}

	/* スペック */
	.tech-spec .spec-table th {
		width: auto;
		display: block;
	}

	.tech-spec .spec-table td {
		display: block;
	}

	.tech-spec__note {
		padding: 20px 24px;
	}

	/* 対応設備 */
	.tech-equipment__list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tech-equipment__item {
		padding: 24px;
	}
}
