/* recruit_free.css
   Standalone stylesheet for the "recruit_text_index" element.
   Shared by PC (pref.ctp) and SP (sp_pref.ctp) — responsive, no separate PC/SP files. */

.rf-list,
.rf-list *,
.rf-list *::before,
.rf-list *::after {
	box-sizing: border-box;
}

.rf-list {
	margin: 15px 0;
	font-family: inherit;
	color: #333;
}

.rf-list__ttl {
	display: none;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #660d0e;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
}

.rf-list__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-list__item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-bottom: 15px;
	overflow: hidden;
}

.rf-list__item:last-child {
	margin-bottom: 0;
}

.rf-list__head {
	background: #fff;
	padding: 12px 15px;
	border-bottom: 1px solid #ddd;
}

.rf-list__shopname {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.4;
	color: #7f7146;
}

.rf-list__tags {
	margin: 0;
	font-size: 12px;
	color: #888;
	line-height: 1.4;
}

.rf-list__headline {
	margin: 0;
	padding: 10px 15px;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
	font-weight: bold;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rf-list__table {
	width: 100%;
	margin-bottom: 10px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
	box-sizing: border-box;
}

.rf-list__table th,
.rf-list__table td {
	box-sizing: border-box;
	border: 1px solid #eee;
	padding: 8px 10px;
	text-align: left;
	line-height: 1.5;
	vertical-align: top;
	word-break: break-all;
	overflow-wrap: break-word;
}

.rf-list__table th {
	width: 25%;
	background: #ccc;
	color: #fff;
	font-weight: normal;
}

.rf-list__table td {
	color: #808080;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rf-list__desc {
	margin: 0;
	padding: 12px 15px;
	font-size: 12px;
	color: #888;
	line-height: 1.7;
}

/* .recruit-list-btn is reused verbatim from part_shop_list_recruit_sp.ctp;
   its margin:0 -5px assumes a 10px-padded parent (.recruit-list>li), so replicate that padding here */
.rf-list__item .recruit-list-btn {
	padding: 0 10px 10px;
}

/* PC layout: table columns get narrower fixed th width, button becomes inline */
@media (min-width: 768px) {
	.rf-list {
		border: 1px solid #ccc;
		border-radius: 4px;
		padding: 15px;
		padding-right: 0;
	}

	.rf-list__item {
		border-radius: 0;
		border-right: 0;
	}

	.rf-list__ttl {
		display: block;
		font-size: 15px;
	}

	.rf-list__head {
		background: #ccc;
	}

	.rf-list__shopname,
	.rf-list__tags {
		color: #fff;
	}

	.rf-list__table {
		display: grid;
		grid-template-columns: 110px 1fr 110px 1fr;
		font-size: 12px;
		width: auto;
		margin: 15px;
		margin-bottom: 0;
	}

	.rf-list__table tbody,
	.rf-list__table tr {
		display: contents;
	}

	.rf-list__table th,
	.rf-list__table td {
		width: auto;
	}

	/* row1: 勤務時間|資格, row2: 最寄り駅|給与 (matches reference layout, not DOM order) */
	.rf-list__table tr:nth-child(1) th { grid-column: 1; grid-row: 1; }
	.rf-list__table tr:nth-child(1) td { grid-column: 2; grid-row: 1; }
	.rf-list__table tr:nth-child(2) th { grid-column: 1; grid-row: 2; }
	.rf-list__table tr:nth-child(2) td { grid-column: 2; grid-row: 2; }
	.rf-list__table tr:nth-child(3) th { grid-column: 3; grid-row: 1; }
	.rf-list__table tr:nth-child(3) td { grid-column: 4; grid-row: 1; }
	.rf-list__table tr:nth-child(4) th { grid-column: 3; grid-row: 2; }
	.rf-list__table tr:nth-child(4) td { grid-column: 4; grid-row: 2; }

	.rf-list__table tr:nth-child(1) th,
	.rf-list__table tr:nth-child(1) td,
	.rf-list__table tr:nth-child(3) th,
	.rf-list__table tr:nth-child(3) td {
		border-bottom: 1px dashed #ccc;
	}

	.rf-list__footer {
		padding: 12px 15px 0;
	}

	.rf-list__desc {
		width: 73%;
		float: left;
		height: 63px;
		padding: 0;
		margin: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}
}
