/**
 * Home — Technology
 * 技術情報セクション（モバイルファースト／モック準拠）
 */

/* --------------------------------------------------------------------------
 * Gradient button（共通）
 * -------------------------------------------------------------------------- */
.c-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.75em 1.75em;
	border-radius: var(--radius-pill);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-position 0.4s ease;
}

.c-btn:hover,
.c-btn:focus-visible {
	text-decoration: none;
}

.c-btn--grad {
	color: var(--color-white);
	background-image: var(--grad-cta-slide);
	background-size: 200% 100%;
	background-position: 0% 0%;
}

.c-btn--grad:hover,
.c-btn--grad:focus-visible {
	background-position: 100% 0%;
}

.c-btn--arrow {
	position: relative;
	padding-right: 2em;
	padding-left: 4em;
}

.c-btn--arrow::after {
	content: "";
	position: absolute;
	top: calc(50% - 7px);
	right: 14px;
	width: 8px;
	height: 14px;
	background: url(../img/icon-arrow.svg) no-repeat center center / contain;
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7443%) hue-rotate(19deg) brightness(116%) contrast(109%);
}

/* --------------------------------------------------------------------------
 * Technology section
 * -------------------------------------------------------------------------- */
.p-home-tech {
	position: relative;
	overflow: hidden;
	padding-top: var(--section-pad-y);
	padding-bottom: var(--section-pad-y);
	background-color: transparent;
}

.p-home-tech__inner {
	position: relative;
	z-index: 1;
}

.p-home-tech__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.p-home-tech__title {
	margin: 0;
	width: 100%;
}

.p-home-tech__en {
	display: inline-block;
	opacity: 0.8;
	font-size: min(15.38461vw, 58px);
	font-weight: 700;
	font-family: var(--font-source-sans-3);
	line-height: 1.15;
	letter-spacing: 0.025em;
	background-image: linear-gradient(90deg,rgba(0, 131, 203, 1) 45%, rgba(9, 135, 194, 0.15) 50%, rgba(150, 196, 56, 1) 90%, rgba(181, 210, 25, 1) 100%);;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.p-home-tech__ja {
	display: block;
	font-size: clamp(1.625rem, 1.5rem + 0.625vw, 1.875rem);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--color-navy);
}

.p-home-tech__enDecor {
	display: none;
}

.p-home-tech__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.p-home-tech__more {
	width: 100%;
	max-width: 300px;
	min-height: 54px;
	font-size: 1rem;
}

.p-home-tech__lead {
	margin: 0;
	font-size: var(--fs-sm);
	font-weight: 400;
	line-height: 1.8;
	letter-spacing: 0.02em;
	color: var(--color-text-muted);
}

.p-home-tech__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: 500px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.p-home-tech__card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 0 0.5em;
	border: 2px solid var(--color-blue);
	border-radius: var(--radius-md);
	background-color: var(--color-bg);
	color: var(--color-navy);
	text-align: center;
	text-decoration: none;
	box-shadow: 4px 4px 0 rgb(0 0 0 / 8%);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.p-home-tech__card:hover,
.p-home-tech__card:focus-visible {
	opacity: 0.92;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgb(0 131 203 / 12%);
}

.p-home-tech__cardTitle {
	font-size: clamp(0.8125rem, 0.7273rem + 0.4545vw, 1.125rem);
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-navy);
	text-align: center;
	word-break: keep-all;
	overflow-wrap: normal;
}

.p-home-tech__empty {
	margin: 0;
	padding: var(--space-3);
	border: 1px dashed var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-text-muted);
	background-color: var(--color-bg-muted);
	text-align: center;
}

.p-home-tech__note {
	margin: var(--space-4) 0 0;
	font-size: clamp(0.875rem, 0.6932rem + 0.9091vw, 1.375rem);
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
	text-align: center;
}

/* PCでは1行表示（SPのみ改行） */
@media (min-width: 960px) {
	.p-home-tech__note br {
		display: none;
	}
}

@media (min-width: 768px) {
	.p-home-tech__grid {
		gap: var(--space-2);
	}

	.p-home-tech__card {
		min-height: 88px;
		padding: 1.25em 1em;
	}

	.p-home-tech__cardTitle {
		font-size: var(--fs-md);
	}

	.p-home-tech__note {
		font-size: var(--fs-lg);
	}
}

@media (min-width: 960px) {
	.p-home-tech {
		padding-top: 120px;
	}
	
	.p-home-tech__head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
		grid-template-areas:
			"title action"
			"lead action";
		align-items: start;
		column-gap: var(--space-4);
		row-gap: var(--space-2);
		position: relative;
		margin-bottom: var(--space-5);
		text-align: left;
	}

	.p-home-tech__title {
		grid-area: title;
	}

	.p-home-tech__action {
		grid-area: action;
		align-items: flex-end;
		justify-self: end;
		margin-top: auto;
	}

	.p-home-tech__lead {
		grid-area: lead;
	}

	.p-home-tech__en {
		display: none;
	}

	.p-home-tech__ja {
		margin-top: 0;
		font-size: clamp(1.25rem, -0.75rem + 3.3333vw, 1.75rem);
	}

	.p-home-tech__lead {
		font-size: var(--fs-md);
		text-align: left;
	}

	.p-home-tech__enDecor {
		display: block;
		position: absolute;
		top: -0.65em;
		right: 0;
		font-size: clamp(4rem, -8rem + 20vw, 7rem);
		font-weight: 600;
		font-family: var(--font-source-sans-3);
		line-height: 1.1;
		letter-spacing: 0.02em;
		background: transparent linear-gradient(90deg, #0083CB 45%, #0987C226 50%, #96C438 82%, #B5D219 100%) 0% 0% no-repeat padding-box;
		opacity: 0.76;
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		text-align: right;
	}

	.p-home-tech__more {
		width: auto;
		min-width: 280px;
		max-width: none;
	}

	.p-home-tech__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
		max-width: 998px;
	}

	.p-home-tech__note {
		margin-top: var(--space-5);
		font-size: var(--fs-lg);
	}
}

/* --------------------------------------------------------------------------
 * 技術情報（一覧ページ）
 * ヒーロー（.p-page-hero）は assets/css/sections-page-hero.css で定義（共通化）.
 * -------------------------------------------------------------------------- */
.p-archive-tech__lead {
	margin-bottom: var(--space-4);
}

.p-archive-tech__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: 500px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.p-archive-tech__empty {
	margin: var(--section-pad-y) 0 0;
	color: var(--color-text-muted);
}

.p-archive-tech__card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 0 0.5em;
	border: 2px solid var(--color-blue);
	border-radius: var(--radius-md);
	background-color: var(--color-bg);
	color: var(--color-navy);
	text-align: center;
	text-decoration: none;
	box-shadow: 4px 4px 0 rgb(0 0 0 / 8%);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.p-archive-tech__card:hover,
.p-archive-tech__card:focus-visible {
	opacity: 0.92;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgb(0 131 203 / 12%);
}

.p-archive-tech__cardTitle {
	font-size: clamp(0.8125rem, 0.7273rem + 0.4545vw, 1.125rem);
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-navy);
	text-align: center;
	word-break: keep-all;
	overflow-wrap: normal;
}

@media (min-width: 768px) {
	.p-archive-tech__grid {
		gap: var(--space-2);
	}

	.p-archive-tech__card {
		min-height: 88px;
		padding: 1.25em 1em;
	}

	.p-archive-tech__cardTitle {
		font-size: var(--fs-md);
	}
}

@media (min-width: 960px) {
	.p-archive-tech__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
		max-width: 998px;
	}
}

/* --------------------------------------------------------------------------
 * お悩み
 * -------------------------------------------------------------------------- */
.p-tech-concerns {
	margin-top: var(--section-pad-y);
}

.p-tech-concerns__title {
	margin: 0 0 var(--space-3);
	font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
	font-weight: 700;
	text-align: center;
	color: var(--color-navy);
}

.p-tech-concerns__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.c-tech-concernCard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	border-radius: 20px;
	color: inherit;
	text-decoration: none;
	background-color: var(--color-bg);
	box-shadow: 4px 4px 0 rgb(0 0 0 / 8%);
}

a.c-tech-concernCard:hover,
a.c-tech-concernCard:focus-visible {
	opacity: 0.92;
	text-decoration: none;
}

.c-tech-concernCard__label {
	position: relative;
	display: block;
	padding: 0.9em 1em;
	border-radius: 20px 20px 0 0;
	font-size: var(--fs-md);
	font-weight: 700;
	text-align: center;
	color: var(--color-white);
	background-color: var(--color-blue-navy);
}

.p-tech-concerns__item:nth-child(2) .c-tech-concernCard__label,
.p-tech-concerns__item:nth-child(3) .c-tech-concernCard__label {
	background-color: var(--color-blue);
}

.c-tech-concernCard__label::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 8px;
	background-image: linear-gradient(to right, var(--color-blue) 0%, var(--color-blue) 50%, var(--color-green) 99%);
	opacity: 0.28;
}

.c-tech-concernCard__body {
	display: block;
	padding: 1em 1em 0.9em;
}

.c-tech-concernCard__line {
	display: block;
	font-size: var(--fs-xs);
	line-height: var(--lh-body);
	color: var(--color-navy);
}

/* 最後の行. 最後の子は対象・矢印（.c-tech-concernCard__foot）なので :last-child ではなく「直後が foot の行」で指定する */
.c-tech-concernCard__line:has(+ .c-tech-concernCard__foot) {
	margin-bottom: 0.75em;
}

/* 対象（例: 調達担当の方）と矢印. 右寄せで、色は見出しの帯に合わせる */
.c-tech-concernCard__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25em;
	margin-top: 0.75em;
	margin-right: -0.25em;
	color: var(--color-blue-navy);
}

.p-tech-concerns__item:nth-child(2) .c-tech-concernCard__foot,
.p-tech-concerns__item:nth-child(3) .c-tech-concernCard__foot {
	color: var(--color-blue);
}

.c-tech-concernCard__target {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.c-tech-concernCard__arrow {
	flex-shrink: 0;
	width: 20px;
	height: 8px;
	/* 矢印の形だけ使い、色は .c-tech-concernCard__foot の文字色に合わせる */
	background-color: currentColor;
	-webkit-mask: url(../img/icon-arrow-link.svg) no-repeat center center / contain;
	mask: url(../img/icon-arrow-link.svg) no-repeat center center / contain;
}

@media (max-width: 767px) {
	.p-tech-concerns__list {
		max-width: 480px;
		margin-inline: auto;
	}
}

@media (min-width: 768px) {
	.p-tech-concerns__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.p-tech-concerns__item--wide {
		grid-column: 1 / -1;
		max-width: 68%;
		margin-inline: auto;
	}
}

@media (min-width: 960px) {
	.c-tech-concernCard__body {
		display: flex;
		flex-direction: column;
		height: 100%;
		padding: 1.75em 2em 1.5em;
	}

	.c-tech-concernCard__label {
		font-size: 1.125rem;
	}

	.c-tech-concernCard__line {
		font-size: 1rem;
	}

	.c-tech-concernCard__foot {
		margin-top: auto;
		margin-right: -1rem;
		margin-left: -1rem;
	}

	.c-tech-concernCard__target {
		font-size: 0.9375rem;
	}
}

/* --------------------------------------------------------------------------
 * 製作事例導線
 * -------------------------------------------------------------------------- */
.p-tech-worksLink {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	width: 100vw;
	margin-top: var(--section-pad-y);
	margin-inline: calc(50% - 50vw);
	padding-block: var(--section-pad-y);
	background-color: var(--color-white);
	text-align: center;
}

.p-tech-worksLink__lead {
	margin: 0;
	font-size: clamp(1.125rem, 1rem + 0.625vw, 1.75rem);
	font-weight: 700;
	color: var(--color-navy);
}

.p-tech-worksLink__text {
	margin: 0;
	font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.25rem);
	line-height: var(--lh-body);
}

.c-btn-outlineGrad {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	min-width: 300px;
	min-height: 64px;
	padding: 0.75em 2.75em 0.75em 1.5em;
	border: 3px solid transparent;
	border-radius: var(--radius-pill);
	background-color: transparent;
	background-image:
		linear-gradient(var(--color-bg), var(--color-bg)),
		var(--grad-cta-slide);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	background-size: 100% 100%, 200% 100%;
	background-position: 0 0, 0% 0%;
	box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
	font-size: clamp(1.125rem, 0.5536rem + 2.8571vw, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	color: #4b4b4b;
	text-decoration: none;
	white-space: nowrap;
	transition: background-position 0.4s ease;
}

.c-btn-outlineGrad:hover,
.c-btn-outlineGrad:focus-visible {
	background-position: 0 0, 100% 0%;
	text-decoration: none;
}

.c-btn-outlineGrad__arrow {
	position: absolute;
	top: calc(50% - 7px);
	right: 18px;
	width: 8px;
	height: 14px;
	background: url(../img/icon-arrow.svg) no-repeat center center / contain;
	filter: brightness(0) saturate(100%) invert(31%) sepia(74%) saturate(794%) hue-rotate(187deg) brightness(89%) contrast(88%);
}

/* --------------------------------------------------------------------------
 * ご相談から納品までの流れ
 * -------------------------------------------------------------------------- */
.p-tech-flow {
	margin-top: var(--section-pad-y);
}

.p-tech-flow__title {
	display: table;
	margin: 0 auto var(--space-4);
	padding: 0.6em 1.75em;
	border-radius: var(--radius-pill);
	background-image: linear-gradient(to right, #f4f8db 0%, #d7ecf7 100%);
	font-size: var(--fs-lg);
	font-weight: 700;
	text-align: center;
	color: var(--color-navy);
}

.p-tech-flow__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	max-width: 780px;
	margin: 0 auto var(--section-pad-y);
	padding: 0;
	list-style: none;
}

.p-tech-flow__item {
	position: relative;
	padding: var(--space-3);
	border-top: 1px solid var(--color-blue);
	border-radius: 0 0 20px 20px;
	background-color: var(--color-bg);
	box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
}

.p-tech-flow__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(var(--space-4) / -2 - 9px);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: var(--color-blue);
	transform: translateX(-50%);
}

.p-tech-flow__step {
	color: var(--color-blue);
}

.p-tech-flow__itemTitle {
	margin: 0 0 0.75em;
	font-size: var(--fs-md);
	font-weight: 700;
	color: var(--color-navy);
}

.p-tech-flow__itemText {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: var(--lh-body);
	color: var(--color-text-muted);
}

@media (min-width: 768px) {
	.p-tech-flow__item {
		padding: var(--space-4);
	}
}

/* --------------------------------------------------------------------------
 * 技術情報（詳細ページ）
 * -------------------------------------------------------------------------- */
.p-tech-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 120px;
	background-color: var(--color-bg);
}

.p-tech-hero__bg {
	position: absolute;
	inset: 0;
	background: url(../img/img-hero-technology.jpg) no-repeat center right 25% / cover;
}

.p-tech-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.p-tech-hero__title {
	margin: 0;
	font-size: clamp(1.625rem, 1.1875rem + 2.1875vw, 2.5rem);
	font-weight: 700;
	color: var(--color-white);
	line-height: var(--lh-tight);
}

@media (min-width: 768px) {
	.p-tech-hero {
		min-height: 160px;
	}
}

@media (min-width: 1024px) {
	.p-tech-hero {
		min-height: 200px;
	}
}

@media (min-width: 1200px) {
	.p-tech-hero {
		min-height: 240px;
	}

	.p-tech-hero__bg {
		background-position: center center;
	}
}

/* --------------------------------------------------------------------------
 * .p-techDetail__title: 画像下のページタイトル（h1）.
 * キャッチコピーは同じ h1 内の <span class="p-techDetail__catch"> で
 * 文字サイズを落として表示する.
 * -------------------------------------------------------------------------- */
.p-techDetail__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--color-navy);
}

.p-techDetail__catch {
	display: block;
	margin-top: 0.5em;
	font-size: clamp(1.0625rem, 0.975rem + 0.4375vw, 1.5rem);
	font-weight: 700;
	color: var(--color-navy);
}

.p-techDetail-hero {
	overflow: hidden;
}

.p-techDetail-hero__img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

/*
 * 本文ラッパー（.p-pageDetail）と #content 背景の白化ルールは
 * assets/css/sections-page-hero.css で定義（技術情報・設備情報・会社情報で共通化）.
 */

.p-techDetail-related {
	margin: var(--section-pad-y) calc(50% - 50vw) 0;
	padding: var(--section-pad-y) var(--section-pad-x);
	background-color: #f5f6f7;
	background-image:
		linear-gradient(to right, #fff 1px, transparent 1px),
		linear-gradient(to bottom, #fff 1px, transparent 1px);
	background-size: 72px 72px;
	background-position: center center;
}

.p-techDetail-related__title {
	margin: 0 0 var(--space-3);
	font-size: var(--fs-lg);
	font-weight: 700;
	text-align: center;
	color: var(--color-navy);
}

@media (min-width: 768px) {
	.p-techDetail-hero__img {
		height: 220px;
	}
}

@media (min-width: 1200px) {
	.p-techDetail-hero__img {
		height: 320px;
	}
}

.wp-block-cover.summary-badge {
	padding: 2em 3em;
	font-size: 1.0625rem;
}

.wp-block-cover.summary-badge .is-style-float>.swell-block-dl__dd {
	font-weight: 500;
}

@media (max-width: 767px) {
	.wp-block-cover.summary-badge {
		padding: 2em 1.5em;
		font-size: 1rem;
	}

	.wp-block-cover.summary-badge .swell-block-dl {
		display: flex;
		flex-direction: column;
	}

	.wp-block-cover.summary-badge .is-style-float>.swell-block-dl__dt,
	.wp-block-cover.summary-badge .is-style-float>.swell-block-dl__dd {
		width: 100%;
	}

	.wp-block-cover.summary-badge .is-style-float>.swell-block-dl__dd {
		position: relative;
		padding-left: 1em;
		padding-bottom: 1em;
	}

	.wp-block-cover.summary-badge .is-style-float>.swell-block-dl__dt:after {
		display: none;
	}

	.wp-block-cover.summary-badge .is-style-float>.swell-block-dl__dd::before {
		background: var(--color_border);
    bottom: auto;
    content: "";
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    right: auto;
    top: calc(1em - 1px);
    width: .5em;
	}
}

@media (min-width: 768px) {
	.wp-block-cover.summary-badge .swell-block-dl {
		margin-bottom: 3em !important;
	}
}