@charset 'utf-8';

/*----------------------------------------
	このCSSファイルにはindex.html（machine）で使用されるCSSを記述する
----------------------------------------*/

.main {
	margin-bottom: 45px; /* 元の70pxに上書きで調整 */
}

/* ▼ スマホ（大） / 小型タブレット向け (540px以上） */
@media (min-width: 540px) {
	.main {
		margin-top: 135px;
	}
}

/* ▼ タブレット / 小型ノートPC向け （768px以上） */
@media (min-width: 768px) {
	.main {
		margin-top: 155px;
		margin-bottom: 55px;
	}
}

/* ▼ デスクトップPC向け (992px以上) */
@media (min-width: 992px) {
	.main {
		margin-top: 175px;
		margin-bottom: 90px;
	}
}

/* ▼ フルサイズ用（1140px以上） */
@media (min-width: 1140px) {
	.main {
		margin-top: 140px;
		margin-bottom: 70px;
	}
}

/*----------------------------------------
	h3 のデザイン
----------------------------------------*/

h3.section-title {
	display: flex;
	position: relative;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.4;
	color: #499db9;
	padding-left: 18px;
}

/* 長方形の飾り */
h3.section-title::before {
	content: "";
	position: absolute;
	display: inline-block;
	width: 7px;
	height: 100%;
	background-color: #5aa5bd;
	top: 50%;
	left: 3px;
	transform: translate(-50%, -50%);
}

h3.section-title::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 1px;
	background-color: #d6d6d6;
}

.pieces {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.7;
	flex: 1;
	text-align: end;
}


/* ▼ スマホ（大） / 小型タブレット向け (540px以上） */
@media (min-width: 540px) {
	h3.section-title {
		padding-bottom: 2px;
		padding-left: 20px;
	}

	h3.section-title::before {
		width: 8px;
	}
}

/* ▼ デスクトップPC向け (992px以上) */
@media (min-width: 992px) {
	h3.section-title {
		font-size: 2.2rem;
		padding-bottom: 4px;
	}

	.pieces {
		font-size: 1.8rem;
	}
}

/*----------------------------------------
	「機器のカテゴリで探す」ボタン
----------------------------------------*/

.category-filter-wrap {
	display: flex;
	justify-content: center; /* 中央揃え */
	flex-direction: column;
	align-items: center;
	padding-top: 15px;
	padding-bottom: 5px;
}

.category-filter {
	display: flex;
	justify-content: center;
	width: 95%; /* .category-filter-areaと同じ幅にする */
	font-size: 1.5rem;
	font-weight: 600;
	border: 2px solid #707070;
	margin-bottom: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.category-filter-area {
	width: 95%; /* .category-filterと同じ幅にする */
	background-color: #fefdfc;
	border-top: 2px dotted #707070;
	border-bottom: 2px solid #707070;
	border-left: 2px solid #707070;
	border-right: 2px solid #707070;
	margin-bottom: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
}

.category-list {
	display: grid;
	grid-template-columns: repeat(2, calc((100% - 4%) / 2)); /* 「repeat(2,」で2列作る。4%はcolumn-gapの分。calc計算で各列の幅。 */
	column-gap: 4%;
}

.category-list li {
	display: inline-flex;
	margin-top: 10px;
	margin-bottom: 10px;
}

.category-list li a {
	width: 100%;
	font-size: 1.35rem;
	font-weight: 500;
	text-align: center;
	color: #fefdfc;
	background-color: #499db9;
	border: 3px solid #499db9;
	border-radius: 50px;
	padding-top: 5px;
	padding-bottom: 7px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-list li a:hover {
	color: #499db9;
	background-color: #fefdfc;
}


/*========= 「機器のカテゴリで探す」ボタンが固定されたとき =========*/

/* .category-filter-wrap に追加するクラス */
.fixed-category-button {
	width: 100%;
	position: fixed;
	top: 90px; /* headerの下に来る高さに調整 */
	left: 0;
	background-color: #fefdfc;
	box-shadow: 0 4px 0px rgba(0, 0, 0, 0.1); /* ぼかし無し */
	z-index: 1;
}

/* .small-section-inner に追加するクラス */
.with-fixed-category {
	padding-top: 90px;
}

/* .category-filter と .category-filter-area に追加するクラス */
.fixed-on {
	width: 83%; /* fixedで固定される前の.category-filterと同じ大きさになるように微調整 */
}


/* ▼ スマホ（大） / 小型タブレット向け (540px以上） */
@media (min-width: 540px) {
	.category-filter-wrap {
		padding-top: 25px;
		padding-bottom: 15px;
	}

	.category-filter {
		width: 97%;
	}

	.category-filter-area {
		width: 97%;
		padding-top: 15px;
		padding-bottom: 15px;
		padding-left: 25px;
		padding-right: 25px;
	}

	.category-list li a {
		font-size: 1.5rem;
	}

	/* .category-filter-wrap に追加するクラス */
	.fixed-category-button {
		top: 100px; /* headerの下に来る高さに調整 */
	}

	/* .small-section-inner に追加するクラス */
	.with-fixed-category {
		padding-top: 110px;
	}

	/* .category-filter と .category-filter-area に追加するクラス */
	.fixed-on {
		width: 85.5%; /* fixedで固定される前の.category-filterと同じ大きさになるように微調整 */
	}
}

/* ▼ タブレット / 小型ノートPC向け （768px以上） */
@media (min-width: 768px) {
	.category-filter {
		width: 98%;
		font-size: 1.6rem;
	}

	.category-filter-area {
		width: 98%;
	}

	.category-list {
		grid-template-columns: repeat(3, calc((100% - 8%) / 3)); /* 横一列内にgapが2つになるので、4% × 2 の8%を100%から引く */
	}

	.category-list li a {
		font-size: 1.6rem;
	}

	/* .category-filter-wrap に追加するクラス */
	.fixed-category-button {
		top: 110px; /* headerの下に来る高さに調整 */
	}

	/* .small-section-inner に追加するクラス */
	.with-fixed-category {
		padding-top: 140px;
	}

	/* .category-filter と .category-filter-area に追加するクラス */
	.fixed-on {
		width: 87%; /* fixedで固定される前の.category-filterと同じ大きさになるように微調整 */
	}
}

/* ▼ デスクトップPC向け (992px以上) */
@media (min-width: 992px) {
	.category-filter {
		width: 97%;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.category-filter-area {
		width: 97%;
		padding-top: 20px;
		padding-bottom: 20px;
		padding-left: 30px;
		padding-right: 30px;
	}

	.category-list li a {
		padding-top: 7px;
		padding-bottom: 9px;
	}

	/* .category-filter-wrap に追加するクラス */
	.fixed-category-button {
		top: 150px; /* headerの下に来る高さに調整 */
	}

	/* .small-section-inner に追加するクラス */
	.with-fixed-category {
		padding-top: 160px;
	}

	/* .category-filter と .category-filter-area に追加するクラス */
	.fixed-on {
		width: 86%; /* fixedで固定される前の.category-filterと同じ大きさになるように微調整 */
	}
}

/* ▼ フルサイズ用（1140px以上） */
@media (min-width: 1140px) {
	.category-filter-area {
		padding-left: 35px;
		padding-right: 35px;
	}

	.category-list {
		grid-template-columns: repeat(4, calc((100% - 12%) / 4)); /* 横一列内にgapが3つになるので、4% × 3 の12%を100%から引く */
	}

	/* .category-filter-wrap に追加するクラス */
	.fixed-category-button {
		top: 110px; /* headerの下に来る高さに調整 */
	}

	/* .category-filter と .category-filter-area に追加するクラス */
	.fixed-on {
		max-width: 1094px; /* fixedで固定される前の.category-filterと同じ大きさになるように微調整 */
	}
}


/*========= アコーディオンメニュー用（+/-） ※設定内容はcommonで使ったものと同じ =========*/

.category-filter >.arrow-icon {
	display: block;
	background: #707070;
}

.category-filter > .arrow-icon::before,
.category-filter > .arrow-icon::after {
	content: "";
	position: absolute;
	background-color: #fefdfc;
	border-radius: 1px;
}

/* 横棒（+の横線） */
.category-filter > .arrow-icon::before {
	width: 10px;
	height: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* 縦棒（+の縦線） */
.category-filter > .arrow-icon::after {
	width: 2px;
	height: 10px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* アコーディオンが開いたとき（-） */
.category-filter > .arrow-icon.is-minus::after {
	display: none;
}

/* アコーディオンアイコン（+ / -）のアニメーション */
.category-filter > .arrow-icon {
	transition: transform 0.5s ease;
}

/* 開いたときに回転（+ → −） */
.category-filter > .arrow-icon.is-minus {
	transform: rotate(360deg);
}

/*----------------------------------------
	section （.small-sectionの親）
----------------------------------------*/

.small-section-inner {
	font-size: 1.5rem;
	line-height: 1.7;
	padding-left: 10px;
	padding-right: 10px;
	margin-top: 20px;
}

.machine-list {
	margin-top: 30px;
	margin-bottom: 70px;
}

/* 背景に交互に色を付ける */
.container:nth-child(odd) {
	background-color: rgba(90, 164, 189, 0.2);
}

.container:nth-child(even) {
	background-color: rgba(224, 224, 224, 0.2);
}

/* すべての .container に border をつけておく */
.container {
	border-bottom: 2px solid #d6d6d6;
}

/* 最後の .container は border を外す */
.container:last-of-type {
	border-bottom: none;
}

.container-inner {
	padding-top: 15px;
	padding-bottom: 15px;
	padding-left: 15px;
	padding-right: 15px;
}

.upper {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.img-area {
	width: 50%;
}

.img-area img {
	width: 100%;
	aspect-ratio: 3 / 2; /* 横3:縦2 の比率 */
	object-fit: cover;
	border-radius: 5px;
}

.detail-list {
	display: flex;
	width: 50%;
}

.detail-list div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
}

/* 「設備名」などの項目部分 */
.detail-list dt {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.5em;
	color: #fefdfc;
	background-color: #499db9;
	border-radius: 5px;
	padding-top: 3px;
	padding-bottom: 3px;
	padding-left: 0.5em; /* letter-spacingでズレるため */
}

/* 項目に対しての内容部分 */
.detail-list dd {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1;
	line-height: 1.4;
	padding-left: 8px;
	padding-right: 8px;
}

/* 項目に対しての内容部分（※設備名だけ太字に） */
.detail-list > div:first-of-type dd {
	font-weight: 600;
}

/* 内容部分が長い場合は「...」表示にする */
.clamp-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
	max-height: calc(1.4em * 2); /* 行数分の高さ */
	word-break: break-word; /* 単語途中でも折り返し可能 */
}

.detail-list .pc1-on,
.detail-list .pc2-on {
	display: none;
}

.button-area {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-top: 15px;
}

.machine-detail-button-wrap,
.contact-button-wrap {
	display: flex;
	align-items: center;
	width: 50%;
}

.machine-detail-button-wrap a,
.contact-button-wrap a {
	width: 100%;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.06em;
	color: #fefdfc;
	background-color: #499db9;
	border: 3px solid #499db9;
	border-radius: 8px;
	padding-top: 5px;
	padding-bottom: 5px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-button-wrap a {
	background-color: #da839c;
	border: 3px solid #da839c;

}

.machine-detail-button-wrap a:hover {
	color: #499db9;
	background-color: #fefdfc;
}

.contact-button-wrap a:hover {
	color: #da839c;
	background-color: #fefdfc;
}


/* ▼ スマホ（大） / 小型タブレット向け (540px以上） */
@media (min-width: 540px) {
	.machine-list {
		margin-bottom: 80px;
	}

	.container-inner {
		padding-top: 20px;
		padding-bottom: 20px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.detail-list {
		flex-direction: column;
		gap: 8px;
	}

	.detail-list div:first-of-type {
		flex-direction: row; /* 横並びに戻す */
		border-bottom: 2px dotted #499db9;
		padding-bottom: 8px; /* gapの幅と同じにする */
	}

	/* 「設備名」などの項目部分 */
	.detail-list dt {
		font-size: 1.5rem;
		letter-spacing: 0.2em;
		padding-top: 0px;
		padding-bottom: 2px;
		padding-left: 0.2em;
		width: 35%;
		max-width: 90px;
	}

	/* 項目に対しての内容部分 */
	.detail-list dd {
		align-items: flex-start; /* 左寄せに戻す */
	}

	.detail-list .pc1-on dt {
		color: #499db9;
		background-color: #fefdfc;
		border: 2px solid #499db9;
	}

	.detail-list .pc1-on {
		display: flex; /* 表示させる */
		flex-direction: row; /* 横並びにする */
	}
}

/* ▼ タブレット / 小型ノートPC向け （768px以上） */
@media (min-width: 768px) {
	.small-section-inner {
		font-size: 1.6rem;
	}

	.machine-list {
		margin-bottom: 90px;
	}

	.container-inner {
		display: flex;
		gap: 17px;
	}

	.upper {
		justify-content: flex-start;
		gap: 12px;
		width: 80%;
	}

	.img-area {
		max-width: 220px;
	}

	.detail-list {
		width: 53%;
		flex-grow: 1;
	}

	/* 「設備名」などの項目部分 */
	.detail-list dt {
		letter-spacing: 0.06em;
	}

	/* 1行を超えたら「...」表示にする */
	.spec .clamp-text,
	.location .clamp-text {
		-webkit-line-clamp: 1;
		max-height: calc(1.4em * 1); /* 行数分の高さ */
	}

	.button-area {
		flex-direction: column;
		gap: 0px;
		margin-top: 0px;
		width: 20%;
	}

	.machine-detail-button-wrap,
	.contact-button-wrap {
		width: 100%;
	}

	.machine-detail-button-wrap a,
	.contact-button-wrap a {
		padding-top: 17px;
		padding-bottom: 17px;
	}

	.detail-list .pc2-on dt {
		color: #499db9;
		background-color: #fefdfc;
		border: 2px solid #499db9;
	}

	.detail-list .pc2-on {
		display: flex; /* 表示させる */
		flex-direction: row; /* 横並びにする */
	}
}

/* ▼ デスクトップPC向け (992px以上) */
@media (min-width: 992px) {
	.small-section-inner {
		padding-left: 20px;
		padding-right: 20px;
		margin-top: 40px;
	}

	.upper {
		gap: 15px;
	}

	/* 「設備名」などの項目部分 */
	.detail-list dt {
		font-size: 1.6rem;
		max-width: 100px;
	}

	/* 項目に対しての内容部分 */
	.detail-list dd {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* ▼ フルサイズ用（1140px以上） */
@media (min-width: 1140px) {
	.small-section-inner {
		margin-top: 50px;
	}

	.machine-list {
		margin-bottom: 120px;
	}

	.upper {
		width: 85%;
	}

	.button-area {
		width: 15%;
	}

	/* 項目に対しての内容部分 */
	.detail-list dd {
		padding-left: 15px;
		padding-right: 15px;
	}
}


/*========= リンク用下線（「備考」などで使いたいとき用） =========*/

.decoration-link {
	font-weight: 700;
	color: #499db9;
	border-bottom: 2px dotted #499db9;
	padding-bottom: 1.5px;
	transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.decoration-link:hover {
	color: #669e31;
	border-bottom: 2px dotted #669e31;
}


/*========= 強調させたい文字の装飾（「備考」などで使いたいとき用）=========*/

.red {
	color: #e22f4d;
}


/* 確認OK（2025.8.9_11:53） */
