@charset "utf-8";

#contact .repair th,
#contact .repair td {
	letter-spacing: 0.05em;
	padding-top: 0;
	padding-bottom: 22px;
}

#contact .repair th {
	padding-top: 15px;
}

#contact .repair tr:last-child th,
#contact .repair tr:last-child td {
	padding-bottom: 0;
}

#contact .repair td.repair_head {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 2.6667;
	letter-spacing: 0.1em;
	color: #a3231a;
	padding-top: 46px;
	padding-bottom: 23px;
}

#contact .repair_head_text {
	display: block;
}

#contact .repair th label,
#contact .repair th .label_head {
	display: block;
	max-width: 220px;
}

#contact .label_sub {
	display: block;
	max-width: 220px;
	margin-top: 5px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4286;
	letter-spacing: 0.05em;
}

#contact .label_files .label_sub {
	margin-top: 8px;
}

#contact .file_list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 0;
	padding: 0;
	padding-left: 24px;
}

#contact .file_row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#contact .file_num {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3333;
	letter-spacing: 0.05em;
	white-space: nowrap;
	cursor: pointer;
}

#contact .file_btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 246px;
	max-width: 100%;
	min-height: 50px;
	border: solid 1px #333;
	border-radius: 5px;
	background: #fff;
	color: #5f5e63;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3333;
	letter-spacing: 0.05em;
	cursor: pointer;
	@media (any-hover: hover) {
		&:hover {
			background: #f5f5f5;
		}
	}
}

#contact .file_input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	white-space: nowrap;
	clip-path: inset(50%);
}

#contact .file_row:has(.file_input:focus-visible) .file_btn {
	outline: 2px solid #333;
	outline-offset: 2px;
}

#contact .file_btn[hidden],
#contact .file_preview[hidden] {
	display: none;
}

#contact .file_preview {
	display: block;
	width: 166px;
	max-width: 100%;
	background: #d9d9d9;
	overflow: hidden;
}

#contact .file_preview img {
	display: block;
	width: 100%;
	height: auto;
}


#contact .file_remove {
	padding: 2px 10px;
	border: solid 1px #333;
	border-radius: 5px;
	background: #fff;
	color: #000;
	font-family: inherit;
	font-size: 12px;
	line-height: 1.6;
	cursor: pointer;
	@media (any-hover: hover) {
		&:hover {
			background: #f5f5f5;
			color: #000;
		}
	}
}

#contact .repair textarea {
	height: 140px;
}

#contact .thumb_list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 0;
	padding: 0;
	padding-left: 24px;
}

#contact .thumb {
	width: 166px;
	max-width: 100%;
	background: #d9d9d9;
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
}

#contact .thumb img {
	display: block;
	width: 100%;
	height: auto;
}

#contact .thumb_name {
	display: none;
	padding: 8px;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-all;
}

#contact .thumb.is-error {
	min-height: 40px;
}

#contact .thumb.is-error img {
	display: none;
}

#contact .thumb.is-error .thumb_name {
	display: block;
}

@media (max-width: 770px) {
	#contact .repair th {
		padding-top: 0;
		padding-bottom: 10px;
	}

	#contact .repair td {
		padding-top: 0;
		padding-bottom: 21px;
	}

	#contact .repair tr:last-child th {
		padding-bottom: 10px;
	}

	#contact .repair tr:last-child td {
		padding-bottom: 0;
	}

	#contact .repair .label_wide label,
	#contact .repair .label_wide .label_head {
		line-height: 1.8667;
	}

	#contact .repair td.repair_head {
		text-align: left;
		padding-top: 35px;
		padding-bottom: 25px;
	}

	#contact .repair_head_text {
		margin-inline: -10px;
		/* 幅の狭い端末（iPhone SE 等）で末尾の▼が折り返すため、画面幅に応じて縮める。
		   letter-spacing も再指定しないと、親 td の 15px 基準で計算された値を継承して字間が詰まらない */
		font-size: clamp(12px, 3.85vw, 15px);
		letter-spacing: 0.1em;
	}

	#contact .pc_only {
		display: none;
	}

	#contact .repair th label,
	#contact .repair th .label_head {
		max-width: none;
	}

	#contact .label_files .label_sub {
		max-width: 330px;
	}

	#contact .file_list {
		padding-left: 11px;
	}

	#contact .repair textarea {
		height: 257px;
	}

	#contact .thumb_list {
		gap: 21.78px;
		padding-left: 0;
	}

	#contact .thumb {
		width: 241px;
		margin-inline: auto;
	}
}

@media (max-width: 389px) {
	#contact .repair_head_text {
		letter-spacing: 0.06em;
	}
}
