@charset 'utf-8';

/*----------------------------------------
	このCSSファイルにはindex.html（machineの個別ページ）で使用されるCSSを記述する
----------------------------------------*/

/* ▼ スマホ（大） / 小型タブレット向け (540px以上） */
@media (min-width: 540px) {
	.main {
		margin-top: 135px;
	}
}

/* ▼ タブレット / 小型ノートPC向け （768px以上） */
@media (min-width: 768px) {
	.main {
		margin-top: 155px;
	}
}

/* ▼ デスクトップPC向け (992px以上) */
@media (min-width: 992px) {
	.main {
		margin-top: 175px;
		margin-bottom: 120px;
	}
}

/* ▼ フルサイズ用（1140px以上） */
@media (min-width: 1140px) {
	.main {
		margin-top: 140px;
		margin-bottom: 125px;
	}
}

/*----------------------------------------
	section
----------------------------------------*/

.section-inner {
	font-size: 1.5rem;
	line-height: 1.7;
	padding-left: 10px;
	padding-right: 10px;
	margin-top: 20px;
}

.img-area img {
	display: block;
	aspect-ratio: 3 / 2; /* 横3:縦2 の比率 */
	width: 90%;
	object-fit: cover;
	border-radius: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
}

/* upperクラス以外の.detail-list divに対して */
.detail-list div:not(.upper) {
	display: flex;
	align-items: stretch; /* 親要素の高さに合わせて引き伸ばす */
	gap: 3px;
	min-height: 50px;
}

/* 「設備名」などの項目部分 */
.detail-list dt {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0; /* dtの領域が縮まないように */
	width: 30%;
	max-width: 130px;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: center;
	color: #fefdfc;
	background-color: #5aa5bd;
	border-top: 1.5px solid #fefdfc; /* 疑似的な隙間を作るため（背景色と同じにすること） */
	padding-left: 5px;
	padding-right: 5px;
}

/* 項目に対しての内容部分 */
.detail-list dd {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 7px;
	padding-right: 5px;
	border-top: 1.5px solid #d6d6d6;
	border-right: 1.5px solid #d6d6d6;
}

/* detail-list内の最後のddにborder-bottomもつける（「規格」と「予約」の下に下線を引くため） */
.detail-list div:last-child dd {
	border-bottom: 1.5px solid #d6d6d6;
}

/* 「備考」の上にある線だけ非表示にする（二重になってしまうため） */
.detail-list .lower dd {
	border-top: none;
}

.machine-name {
	font-weight: 600;
	background-color: rgba(90, 164, 189, 0.2);
}

.detail-list .contact {
	background-color: #868686;
}

.detail-list .reservation {
	background-color: #da839c;
}

/* 予約ボタン */
.detail-list div .reservation-button-wrap {
	display: flex;
	align-items: center;
}

.detail-list .reservation-button-wrap a {
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.06em;
	color: #fefdfc;
	background-color: #da839c;
	border: 3px solid #da839c;
	border-radius: 8px;
	padding-top: 7px;
	padding-bottom: 10px;
	padding-left: 20px;
	padding-right: 20px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 学外予約のボタン微調整（画面幅が狭い時のために） */
.detail-list .outside a {
	padding-left: 8px;
	padding-right: 8px;
}

.detail-list div .reservation-button-wrap a:hover {
	color: #da839c;
	background-color: #fefdfc;
}

/* 戻るボタン */
.back-button-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.back-button-wrap a {
	width: 250px;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.06em;
	color: #fefdfc;
	background-color: #e9a540;
	border: 3px solid #e9a540;
	border-radius: 50px;
	padding-top: 7px;
	padding-bottom: 10px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-button-wrap a:hover {
	color: #e9a540;
	background-color: #fefdfc;
}


/*========= リンク用下線（「備考」などで使いたいとき用） =========*/

.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;
}


/* ▼ スマホ（大） / 小型タブレット向け (540px以上） */
@media (min-width: 540px) {
	.section-inner {
		margin-top: 30px;
	}

	.detail-list div:not(.upper) {
		gap: 4px;
		min-height: 60px;
	}

	.detail-list dt {
		font-size: 1.5rem;
	}

	.detail-list dd {
		padding-top: 12px;
		padding-bottom: 12px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.detail-list div .reservation-button-wrap a {
		padding-left: 30px;
		padding-right: 30px;
	}
}

/* ▼ タブレット / 小型ノートPC向け （768px以上） */
@media (min-width: 768px) {
	.section-inner {
		font-size: 1.6rem;
		margin-top: 45px;
	}

	.img-area img {
		float: left;
		width: 300px;
		margin-bottom: 0px;
		margin-right: 10px;
	}

	.detail-list div:not(.upper) {
		min-height: 70px;
	}

	.detail-list dt {
		font-size: 1.6rem;
	}

	.detail-list dd {
		padding-left: 12px;
		padding-right: 12px;
	}

	/* ※「設備名」と「規格」の文字数が長すぎる場合、構造を変える必要がある */
	.upper {
		display: flex;
		flex-direction: column;
		height: 200px; /* imgと同じ高さにすること */
	}

	/* ※「設備名」と「規格」の文字数が長すぎる場合、構造を変える必要がある */
	.upper div {
		flex-grow: 1;
	}

	/* ※「設備名」と「規格」の文字数が長すぎる場合、構造を変える必要がある */
	.detail-list .lower {
		margin-top: 10px;
	}
}

/* ▼ デスクトップPC向け (992px以上) */
@media (min-width: 992px) {
	.section-inner {
		line-height: 1.8;
		padding-left: 20px;
		padding-right: 20px;
	}

	.img-area img {
		width: 350px;
		margin-right: 15px;
	}

	.upper {
		height: 233px; /* imgと同じ高さにすること */
	}

	.detail-list .lower {
		margin-top: 12px;
	}
}


/* 確認OK（2025.8.9_11:43） */
