@charset "UTF-8";
/* =========================================================
   投稿本文内のファイルリンクの後ろにファイル種別アイコンを自動表示
   対象: 投稿本文（.con）内のリンク
   画像を含むリンク（PDFサムネイル等）には付けない
   アイコン画像: ../img/icon/*.png（49×55px）
   ========================================================= */

.con a[href$=".pdf" i]:not(:has(img))::after,
.con a[href*=".pdf?" i]:not(:has(img))::after,
.con a[href$=".xlsx" i]:not(:has(img))::after,
.con a[href$=".xls" i]:not(:has(img))::after,
.con a[href$=".xlsm" i]:not(:has(img))::after,
.con a[href$=".csv" i]:not(:has(img))::after,
.con a[href$=".docx" i]:not(:has(img))::after,
.con a[href$=".doc" i]:not(:has(img))::after,
.con a[href$=".zip" i]:not(:has(img))::after {
	content: "";
	display: inline-block;
	width: 32px;
	height: 36px;
	margin-left: 0.3em;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	vertical-align: middle;
}

/* PDF */
.con a[href$=".pdf" i]:not(:has(img))::after,
.con a[href*=".pdf?" i]:not(:has(img))::after {
	background-image: url("../img/icon/pdf.png");
}

/* Excel / CSV */
.con a[href$=".xlsx" i]:not(:has(img))::after,
.con a[href$=".xls" i]:not(:has(img))::after,
.con a[href$=".xlsm" i]:not(:has(img))::after,
.con a[href$=".csv" i]:not(:has(img))::after {
	background-image: url("../img/icon/xls.png");
}

/* Word */
.con a[href$=".docx" i]:not(:has(img))::after,
.con a[href$=".doc" i]:not(:has(img))::after {
	background-image: url("../img/icon/doc.png");
}

/* ZIP */
.con a[href$=".zip" i]:not(:has(img))::after {
	background-image: url("../img/icon/zip.png");
}
