/**
 * 固定ページ（お問い合わせ等）向けレイアウト補完
 *
 * 本体は legacy-genesis/style.css + design-plus.css + responsive.css。
 * 子テーマ環境で効きにくいセレクタの補完と、inview 未発火時の表示フォールバック。
 */

/* --------------------------------------------------------------------------
   ページヘッダー（#page_header）
   style.css は .design_header 起点。 .title_area 配下も同義で明示。
-------------------------------------------------------------------------- */
#page_header .design_header {
	display: flex;
	flex-wrap: wrap;
	max-width: 1700px;
	margin: -10px auto 140px;
	padding: 0 100px;
}

body.hide_sidebar #page_header .design_header {
	margin-top: 120px;
}

#page_header .design_header .title_area,
#page_header .design_header .title_area.no_desc {
	width: auto;
	padding-right: 0;
}

#page_header .title_area .large_headline,
#page_header .design_header .large_headline {
	font-size: 70px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	text-align: left;
}

#page_header .title_area .large_headline span,
#page_header .design_header .large_headline span,
#page_header .title_area .sub_title span,
#page_header .design_header .sub_title span {
	display: inline-block;
	transition: transform 0.7s ease, opacity 0.9s ease;
}

/* 固定ページ見出し（旧サイト同等・span に明示） */
#page_header .title_area .large_headline span {
	font-size: 35px !important;
}

#page_header .design_header.animate .large_headline span,
#page_header .design_header.animate .sub_title span,
#page_header .design_header.inview .large_headline span,
#page_header .design_header.inview .sub_title span {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

#page_header .sub_title.colored {
	font-size: 18px;
	margin-top: 10px;
	margin-bottom: -5px;
}

#page_header .desc_area {
	display: flex;
	flex-wrap: wrap;
	max-width: 1700px;
	margin: -90px auto 140px;
	padding: 0 100px;
}

#page_header .catch {
	width: 50%;
	padding-right: 50px;
	font-size: 32px;
	line-height: 1.6;
	margin: 0;
}

#page_header .desc {
	width: 50%;
	padding-left: 50px;
	line-height: 2.6;
}

#page_header .desc.mobile {
	display: none;
}

#page_header .desc_area.inview.slide_up_animation,
#page_header .desc_area.inview.slide_up_animation.animate {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

/* --------------------------------------------------------------------------
   パンくず
-------------------------------------------------------------------------- */
#bread_crumb {
	max-width: 1700px;
	height: 60px;
	margin: 38px auto 130px;
	padding: 0 100px;
}

#bread_crumb.inview,
#bread_crumb.inview.animate {
	opacity: 1;
	transition: opacity 1s ease 0.3s;
}

#bread_crumb ul {
	width: 100%;
	height: 60px;
	line-height: 60px;
	padding: 0;
	margin: 0;
	list-style: none;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#bread_crumb li {
	display: inline;
	font-size: 14px;
	margin: 0 8px 0 0;
	padding: 0 24px 0 0;
	position: relative;
}

/* --------------------------------------------------------------------------
   本文（#page_contents / .post_content）
-------------------------------------------------------------------------- */
#page_contents {
	padding-bottom: 150px;
}

#page_contents .post_content {
	max-width: 1700px;
	margin: 0 auto;
	padding: 0 100px;
	overflow: hidden;
	line-height: 2.6;
}

#page_contents .post_content p {
	margin: 0 0 2em 0;
	line-height: 2.6;
}

#page_contents .post_content .wpcf7 {
	width: 100%;
	margin: 0 0 2.5em !important;
	padding: 0;
	border: 1px solid #ddd;
	background: #fafafa;
	font-size: 14px;
}

#page_contents .post_content .wpcf7 p {
	margin-bottom: 1em;
	font-size: 16px;
}

#page_contents .post_content .wpcf7 input,
#page_contents .post_content .wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	line-height: 1.2;
}

#page_contents .post_content .wpcf7 textarea {
	height: 300px;
}

#page_contents .post_content .wpcf7 .wpcf7-submit {
	display: block;
	width: 225px;
	height: 48px;
	margin: 30px auto 0;
	border: none !important;
	background-color: #333;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   レスポンシブ（responsive.css 抜粋）
-------------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
	#page_header .design_header,
	#page_header .desc_area,
	#bread_crumb {
		max-width: inherit;
		padding-left: 60px;
		padding-right: 60px;
	}

	#page_header .design_header {
		display: block;
		padding-left: 40px;
		padding-right: 40px;
	}

	#page_header .desc_area {
		display: block;
		padding-left: 40px;
		padding-right: 40px;
	}

	#page_header .catch {
		width: auto;
		padding-right: 0;
	}

	#page_header .desc {
		width: auto;
		padding-left: 0;
	}

	#page_contents .post_content {
		max-width: inherit;
		padding-left: 60px;
		padding-right: 60px;
	}
}

@media screen and (max-width: 800px) {
	body:not(.show_sidebar) #page_header.large_height {
		height: 240px;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	#page_header .design_header {
		padding-left: 20px;
		padding-right: 20px;
		margin: 20px 0 0;
	}

	#page_header .desc_area {
		padding-left: 20px;
		padding-right: 20px;
		margin: 35px 0 0;
	}

	#page_header .desc.mobile {
		display: block;
	}

	#page_header .desc.pc {
		display: none;
	}

	#page_header .title_area .large_headline,
	#page_header .design_header .large_headline {
		font-size: 35px;
	}

	#page_header .title_area .large_headline span {
		font-size: 35px !important;
	}

	#page_header .sub_title.colored {
		font-size: 16px;
		margin-top: 7px;
		margin-bottom: 0;
	}

	#bread_crumb {
		padding-left: 20px;
		padding-right: 20px;
	}

	#page_contents {
		padding-bottom: 40px;
	}

	#page_contents .post_content {
		padding-left: 20px;
		padding-right: 20px;
	}
}
