@charset "utf-8";

#main_header {
	max-width: 1080px;
	margin: 40px auto;
}
#main_header h1 {
	padding: 0;
	background: none;
}
#main_body {
	width: 100%;
}

#main_body h3 {
	font-size: 2.2rem;
}

#main_body div[class*="detail"] {
	max-width: 1080px;
	margin: 0 auto;
}

/* -------------------- メインイメージ -------------------- */

#main_body div.detail_free.mainVisual {
	background: none;
	position: relative;
	width: 100%;
	max-width: none;
	padding: 0;
	left: 50%;
	transform: translateX(-50%);
}
#main_body div.detail_free.mainVisual h2 {
	width: max-content;
	min-width: 500px;
	max-width: 1080px;
	font-size: 3.6rem;
	position: absolute;
	text-align: center;
	top: 0;
	left: 50%;
	transform: translate(-50%);
	z-index: 10;
	background: url(/img/site/workation/top_line.png) no-repeat center bottom / contain;
}
#main_body div.detail_free.mainVisual h2:has(strong) {
	color: #fff;
	background-image: url(/img/site/workation/top_line_w.png);
}
#main_body div.detail_free.mainVisual .imgOnly {
	margin: 0;
	filter: none;
}
#main_body div.detail_free.mainVisual .imgOnly img {
	width: 100vw !important;
	height: auto !important;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
/* メインイメージ後の文章 */
#main_body div.detail_free.mainVisual + .detail_free {
	margin: 80px 0;
	text-align: center;
}

/* -------------------- 各項目 -------------------- */

#main_body div[class*="detail"] p.imgOnly {
	margin: 0;
	filter: drop-shadow(20px 20px 0 #00b3e0);
}
#main_body div[class*="detail"].haveTxtOnly p:not(.imgOnly) {
	width: calc(100% - 320px);
}
#main_body div[class*="detail"].haveTxtOnly p:not(.imgOnly):first-of-type {
	margin-top: 0;
}
#main_body div[class*="detail"].haveTxtOnly p.imgOnly {
	width: 300px;
	float: right;
	margin-bottom: 30px;
}
#main_body div[class*="detail"].haveTxtOnly p.imgOnly img {
	width: 100% !important;
	height: auto !important;
}

/* PDFダウンロード・・・見出し・画像 */
#main_body div[class^="detail_"] h2:has(a[href$=".pdf"]),
#main_body div[class^="detail_"] h2:has(a[href$=".PDF"]),
#main_body div[class^="detail_"].haveMap h2 {
	margin: 0;
	padding-bottom: 5px;
}
div[class^="detail_"] h2 a[href$=".pdf"],
div[class^="detail_"] h2 a[href$=".PDF"] {
	color: currentColor;
	text-decoration: none;
}
div[class^="detail_"] a[href$=".pdf"]:has(img) img,
div[class^="detail_"] a[href$=".PDF"]:has(img) img {
	filter: drop-shadow(20px 20px 0 #00b3e0);
	margin-bottom: 30px;
}
/* pdfアイコン */
div[class^="detail_"] a[href$=".pdf"]:has(img)::before,
div[class^="detail_"] a[href$=".PDF"]:has(img)::before,
div[class^="file_"] a[href$=".pdf"]:has(img)::before,
div[class^="file_"] a[href$=".PDF"]:has(img)::before,
div[class^="detail_"] h2 a[href$=".pdf"]::before,
div[class^="detail_"] h2 a[href$=".PDF"]::before {
	content: none;
}
div[class^="detail_"] h2:has(a[href$=".pdf"])::before,
div[class^="detail_"] h2:has(a[href$=".PDF"])::before,
div[class^="detail_"].haveMap h2::before {
	content: '';
	background-color: currentColor;
	display: inline-block;
	flex-shrink: 0;
	width: 0.5em;
	height: 0.8em;
	clip-path: polygon(0 0, 0% 100%, 100% 50%);
	margin: 0 0.5em 0 0;
}

@media screen and (max-width: 670px) {

	#main_body div.detail_free.mainVisual h2 {
		font-size: 4vw;
		margin: 0;
		min-width: fit-content;
		max-width: 100%;
	}

	#main_body div.detail_free.mainVisual + .detail_free {
		margin: 40px 0;
	}

	#main_body div[class*="detail"].haveTxtOnly p:not(.imgOnly) {
		width: 100%;
	}
	#main_body div[class*="detail"].haveTxtOnly p.imgOnly {
		float: none;
		margin: 0 auto 30px;
	}
	
	#main_body h3 {
		font-size: 2rem;
	}

}