@charset "UTF-8";
body.page-template-page-gray {
	background:linear-gradient(2deg, #E5EAF0 15.13%, #ECF0F3 54.34%, #F9F9F9 70.26%, #E5EAF0 88.37%);
}

/* =====================================================
□ 共通（PC・スマホ共通）
===================================================== */
/* 設備一覧 Hero */
.hero-section .wp-block-columns {
	gap: 5%;
}
.hero-section .wp-block-column:first-child {
	flex-basis: 55% !important;
	position: relative;
	isolation: isolate;
}
.hero-section .wp-block-column:last-child {
	flex-basis: 40% !important;
}
/* 設備一覧：画像 */
.hero-section .wp-block-image {
	position: relative;
	z-index: 1;
	margin: 0;
	background:
		url('../../../../uploads/equipment-01.png')
		center / contain no-repeat;
	-webkit-mask-image: none;
	mask-image: none;
}

.hero-section .wp-block-image img {
	opacity: 0;
}

/* 設備一覧：成形機背面の装飾 */
.hero-section .wp-block-column:first-child::before {
    content: "";
    position: absolute;
    top: 45px;
    left: 35px;
    width: 95%;
    height: 310px;
    background: var(--color-gray-100);
    border-radius: 120px 24px 100px 24px;
    z-index: 0;
    pointer-events: none;
}

.hero-section .wp-block-column h2 {
	white-space: nowrap;

}

/* 設備一覧　共通 */
body.page-equipment .equipment-molding,
body.page-equipment .equipment-mold,
body.page-equipment .equipment-measurement,
body.page-equipment .equipment-printing {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 72px;
	padding: 60px 80px;
	border: 0;
	border-radius: 24px;
	background-color: #fff;
	box-shadow: none;
}

/* Gutenbergグループの余白・幅 */
body.page-equipment .equipment-molding .wp-block-group__inner-container,
body.page-equipment .equipment-mold .wp-block-group__inner-container,
body.page-equipment .equipment-measurement .wp-block-group__inner-container,
body.page-equipment .equipment-printing .wp-block-group__inner-container,
body.page-equipment .equipment-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

/* =====================================================
□ 見出しデザイン
===================================================== */

/* 設備カテゴリー見出し */
body.page-equipment .equipment-molding h2,
body.page-equipment .equipment-mold h2,
body.page-equipment .equipment-measurement h2,
body.page-equipment .equipment-printing h2 {
	margin: 0 0 28px;
	padding: 8px 0;
	color: var(--color-gray-900);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;

}

/* 機器カテゴリー見出し */
body.page-equipment .equipment-inner h3 {
	margin: 0 0 22px;
	padding: 20px 0 10px;
	color: var(--color-gray-900);
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--color-blue);
	border-radius: 0;
	box-shadow: none;

}

/* 工場名・その他 */
body.page-equipment .equipment-inner h4 {
	margin: 30px 0 12px;
	padding: 0;
	color: var(--color-blue);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;

}

/* 成形機見出し直後の工場名 */
body.page-equipment .equipment-inner h3 + h4 {
	margin-top: 0;

}

/* 説明文 */
body.page-equipment .equipment-inner p {
	margin: 0 0 24px;
	padding: 0;
	color: var(--color-gray-800);

}

/* =====================================================
□ テーブルデザイン
===================================================== */

/* テーブル外枠 */
body.page-equipment .equipment-inner figure.wp-block-table {
	display: block;
	box-sizing: border-box;
	margin: 0 0 32px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-overflow-scrolling: touch;
	width: 100% !important;
	max-width: 100% !important;
	overflow-x: auto !important;
}

/* テーブル本体 */
body.page-equipment .equipment-inner .wp-block-table table,
body.page-equipment .equipment-inner .wp-block-table table.has-fixed-layout {
	width: 100%;
	max-width: none;
	margin: 0;
	table-layout: auto;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
	border: 0;
}

/* テーブル行 */
body.page-equipment .equipment-inner .wp-block-table tr {
	background: transparent;
}

/* テーブルセル */
body.page-equipment .equipment-inner .wp-block-table th,
body.page-equipment .equipment-inner .wp-block-table td {
	box-sizing: border-box;
	padding: 12px 10px;
	color: var(--color-gray-800);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--color-gray-200);
	border-radius: 0;
	font-size: var(--font-size-small);
	font-weight: var(--font-weight-body);
	line-height: 1.7;
	text-align: left !important;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

/* テーブル見出しセル */
body.page-equipment .equipment-inner .wp-block-table th {
	background: var(--color-gray-100);
	color: var(--color-gray-900);
	font-weight: var(--font-weight-semibold);
}

/* PCで行にマウスを重ねたとき */
@media (hover: hover) {
	body.page-equipment .equipment-inner
	.wp-block-table tbody tr:hover td {
		background: var(--color-gray-100);
	}
}

/* =====================================================
□ 成形設備：4列テーブル
===================================================== */

/* 方式 */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(4))
tr > :nth-child(1) {
	width: 18%;
}

/* メーカー */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(4))
tr > :nth-child(2) {
	width: 42%;
}

/* クラス */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(4))
tr > :nth-child(3) {
	width: 24%;
}

/* 台数 */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(4))
tr > :nth-child(4) {
	width: 16%;
	text-align: right !important;
	padding-right: 10px;
}

/* =====================================================
□ 成形設備：その他の3列テーブル
===================================================== */

/* 機種種別 */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(3):last-child)
tr > :nth-child(1) {
	width: 35%;
}

/* 特徴 */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(3):last-child)
tr > :nth-child(2) {
	width: 45%;
}

/* 台数 */
body.page-equipment .equipment-molding
.wp-block-table table:has(tr > :nth-child(3):last-child)
tr > :nth-child(3) {
	width: 20%;
	text-align: right !important;
	padding-right: 10px;
}

/* =====================================================
□ 金型・測定・プリンター設備
===================================================== */

/* 台数がある2列テーブルだけを対象にする */
body.page-equipment .equipment-mold
.wp-block-table table:has(tr > th + th)
tr > :last-child,
body.page-equipment .equipment-measurement
.wp-block-table table:has(tr > th + th)
tr > :last-child,
body.page-equipment .equipment-printing
.wp-block-table table:has(tr > th + th)
tr > :last-child {
	width: 18%;
	text-align: right !important;
	padding-right: 10px;
}

/* CAD/CAM情報は左寄せ */
body.page-equipment .equipment-mold
.wp-block-table tr > th + td {
	text-align: left !important;
	width: auto;
	padding-right: 10px;
}

/* =====================================================
□ Gutenbergレイアウト制限の解除
===================================================== */

/* 設備セクション全体 */
body.page-equipment .entry-content > .wp-block-group {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Gutenbergの内側コンテナ */
body.page-equipment .equipment-molding .wp-block-group__inner-container,
body.page-equipment .equipment-mold .wp-block-group__inner-container,
body.page-equipment .equipment-measurement .wp-block-group__inner-container,
body.page-equipment .equipment-printing .wp-block-group__inner-container {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Gutenbergの子要素の幅制限を解除 */
body.page-equipment .equipment-molding
.wp-block-group__inner-container > *,
body.page-equipment .equipment-mold
.wp-block-group__inner-container > *,
body.page-equipment .equipment-measurement
.wp-block-group__inner-container > *,
body.page-equipment .equipment-printing
.wp-block-group__inner-container > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* テーブル外枠 */

/* テーブル本体 */
body.page-equipment .equipment-inner table {
	width: 100% !important;
	max-width: none !important;
	table-layout: auto !important;
}

/* 見出し幅 */
body.page-equipment .equipment-inner h3,
body.page-equipment .equipment-inner h4 {
	width: 100% !important;
	max-width: none !important;

}

/* =====================================================
□ PC（641px以上）
===================================================== */

@media screen and (min-width: 641px) {

	/* セクション間の余白 */
	body.page-equipment .equipment-molding,
	body.page-equipment .equipment-mold,
	body.page-equipment .equipment-measurement,
	body.page-equipment .equipment-printing {
		margin-bottom: 80px;
	}

}

/* =====================================================
□ タブレット（641px～1024px）
===================================================== */

@media screen and (min-width: 641px)
and (max-width: 1024px) {

	body.page-equipment .equipment-molding,
	body.page-equipment .equipment-mold,
	body.page-equipment .equipment-measurement,
	body.page-equipment .equipment-printing {
		padding: 40px;
		border-radius: 20px;
	}

}

/* =====================================================
□ スマホ（640px以下）
===================================================== */

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


	.hero-section.wp-block-columns,
	.hero-section .wp-block-columns {
		flex-direction: column;
		gap: 28px;
		row-gap: 28px !important;
		margin-bottom: 48px;
	}

	.hero-section > .wp-block-column,
	.hero-section .wp-block-columns > .wp-block-column {
		flex: 1 1 auto !important;
		width: 100%;
	}

	.hero-section .hero-copy h2,
	.hero-section .wp-block-column h2 {
		white-space: normal;
		word-break: normal;
	}


	/* キャプションは画像の下に置き、長い機器名も全文表示 */
	body.page-equipment .entry-content figure.wp-block-image {
		flex-direction: column;
		align-self: flex-start;
		overflow: visible;
	}

	body.page-equipment .entry-content figure.wp-block-image figcaption,
	body.page-equipment .wp-block-gallery .blocks-gallery-item figcaption {
		position: static !important;
		box-sizing: border-box;
		width: 100%;
		height: auto;
		max-height: none;
		margin: 8px 0 0;
		padding: 0;
		overflow: visible;
		background: none;
		color: var(--color-gray-900);
		font-size: var(--font-size-caption);
		font-weight: var(--font-weight-body);
		line-height: 1.6;
		text-shadow: none;
		overflow-wrap: anywhere;
	}

	/* 画像ギャラリー：単独行になる3枚目を非表示 */
	body.page-equipment .wp-block-gallery > .wp-block-image:nth-child(3):last-of-type,
	body.page-equipment .wp-block-gallery .blocks-gallery-grid > .blocks-gallery-item:nth-child(3):last-child {
		display: none !important;
	}

	/* 4枚のギャラリーは2列×2行 */
	body.page-equipment .wp-block-gallery.has-nested-images.columns-4 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	body.page-equipment .wp-block-gallery.has-nested-images.columns-4 > figure.wp-block-image {
		width: 100% !important;
		min-width: 0;
		margin: 0 !important;
	}

	/* Hero：装飾を画像エリア内に収め、本文との重なりを防ぐ */
	body.page-equipment .hero-section.wp-block-columns {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	body.page-equipment .hero-section > .wp-block-column {
		flex: 1 1 auto !important;
		width: 100%;
		min-width: 0;
	}

	body.page-equipment .hero-section > .wp-block-column:first-child::before {
		top: 12%;
		left: 5%;
		width: 95%;
		height: 80%;
		border-radius: 48px 16px 48px 16px;
	}

	body.page-equipment .hero-section .wp-block-image {
		width: 100%;
		margin: 0;
	}

	body.page-equipment .hero-section .hero-copy h2 {
		white-space: normal;
		word-break: normal;
	
}
	body.page-equipment .equipment-inner figure.wp-block-table {
		max-width: 100%;
		overflow-x: auto;
		margin-bottom: 26px;
	}

	/* 設備カード */
	body.page-equipment .equipment-molding,
	body.page-equipment .equipment-mold,
	body.page-equipment .equipment-measurement,
	body.page-equipment .equipment-printing {
		margin-bottom: 56px;
		padding: 28px var(--content-gutter);
		border-radius: 16px;
	}

	/* 設備カテゴリー見出し */
	body.page-equipment .equipment-molding h2,
	body.page-equipment .equipment-mold h2,
	body.page-equipment .equipment-measurement h2,
	body.page-equipment .equipment-printing h2 {
		margin-bottom: 18px;
		padding: 6px 0;
	
}

	/* 機器カテゴリー見出し */
	body.page-equipment .equipment-inner h3 {
		margin-bottom: 18px;
		padding-bottom: 8px;
	
}

	/* 工場名・その他 */
	body.page-equipment .equipment-inner h4 {
		margin: 24px 0 10px;
	
}

	/* 最初の工場名 */
	body.page-equipment .equipment-inner h3 + h4 {
		margin-top: 0;
	
}

	/* 説明文 */
	body.page-equipment .equipment-inner p {
		margin-bottom: 20px;
	
}

	/* テーブル余白 */

	/* テーブルセル */
	body.page-equipment .equipment-inner .wp-block-table th,
	body.page-equipment .equipment-inner .wp-block-table td {
		padding: 10px 7px;
		font-size: var(--font-size-caption);
		line-height: 1.6;
	}

	/* 台数列の右余白を統一 */
	body.page-equipment .equipment-molding
	.wp-block-table tr > :last-child,
	body.page-equipment .equipment-mold
	.wp-block-table table:has(tr > th + th)
	tr > :last-child,
	body.page-equipment .equipment-measurement
	.wp-block-table tr > :last-child,
	body.page-equipment .equipment-printing
	.wp-block-table tr > :last-child {
		padding-right: 7px;
	}

	/* 成形設備の表は横スクロール */
	body.page-equipment .equipment-molding
	.wp-block-table table {
		min-width: 480px;
	}

	/* プリンター設備の長い機種名 */
	body.page-equipment .equipment-printing
	.wp-block-table table {
		min-width: 400px;
	}

}
