/*
 * 親テーマ FAKE v2.13 への更新で変わった見た目を、v1.9 のときと同じに戻すための CSS。
 *
 * 読み込み位置：親テーマの design-plus.css の直後、子テーマの style.css より前
 * （functions.php の qol_filter_head_html() で並べ替えている）。
 * v2.13 では本文用のスタイル（.post_content ...）が style.css から design-plus.css に移ったため、
 * そのままだと子テーマのスタイルより後に読み込まれて子テーマの指定を打ち消してしまう。
 *
 * テーマオプション（管理画面）の値を変えたときは、ここの指定が優先される点に注意。
 */


/* ---------------------------------------------------------
   1. 本文（.post_content）の見出しの余白
   v2.13 で 40px/30px/20px → 3em/2.5em/2em、下の余白 10px → 1em に変わった
--------------------------------------------------------- */
.post_content h1, .post_content h2, .post_content h3, .post_content h4, .post_content h5, .post_content h6 {
	margin-bottom: 10px;
}

@media screen and (min-width: 769px) {
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h2,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h3,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h4,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h5,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h6 {
		margin-top: 40px !important;
	}
}

@media screen and (max-width: 768px) {
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h2,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h3,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h4,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h5,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h6 {
		margin-top: 30px !important;
	}
}

@media screen and (max-width: 600px) {
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h2,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h3,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h4,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h5,
	.post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h6 {
		margin-top: 20px !important;
	}
}


/* ---------------------------------------------------------
   2. テーマオプションから出力される値（v2.13 で設定項目が廃止・統合されたもの）
   親テーマが <head> 内に直接出力するスタイルより後に効かせるため、html body を付けて優先度を上げている
--------------------------------------------------------- */

/* 実績一覧の写真に重ねるカテゴリー帯のグラデーション（v1.9 の設定値 0.7。v2.13 は 0.9 固定） */
html body .work_list .category {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

/* 記事一覧の写真に重ねるグラデーション（v1.9 の設定値 0.5。v2.13 は 0.8 固定） */
html body #blog_list .overlay {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

/* エリア・種別ページの見出し（v2.13 は flex になり行の高さが 1.5 に変わった） */
html body #archive_catch {
	display: block;
	line-height: inherit;
}

@media screen and (max-width: 650px) {
	/* v2.13 は廃止された設定項目を参照していて、スマホの文字サイズ（v1.9 は 20px）が出力されない */
	html body #archive_catch h1 {
		font-size: 20px;
	}

	/* ページ上部の見出し・説明文（v1.9 の設定値：見出し 30px、説明文 13px） */
	html body #page_header .catch {
		font-size: 30px;
	}

	html body #page_header .desc,
	html body #archive_desc p,
	html body .work_area_top .desc,
	html body #blog_list .excerpt {
		font-size: 13px;
	}
}

/* フォームの入力欄のフォント（v2.13 は Arial から始まる指定に変わった） */
html body input,
html body textarea {
	font-family: "Hiragino Sans", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
}


/* ---------------------------------------------------------
   3. スマホのヘッダー・メニュー
   responsive.css（この CSS より後に読み込まれる）に勝つよう、html body を付けている
--------------------------------------------------------- */

/* メニューボタン：v2.13 は三本線が黒（#000）固定で、黒いヘッダーの上で見えない。v1.9 と同じ白にする */
html body #menu_button span {
	background: #fff;
}

/* メニュー（ドロワー）内の SNS アイコン：v2.13 で追加された機能。v1.9 と同じく表示しない */
html body #drawer_menu #footer_social_link {
	display: none;
}


/* ---------------------------------------------------------
   4. お問い合わせフォーム（Contact Form 7）
   design-plus.css を子テーマより前に移したため、プラグインの CSS より前に読み込まれるようになった。
   v1.9 と同じく design-plus.css の指定がプラグインに勝つよう、design-plus.css（v2.13）の
   .wpcf7 のルールを、html body を付けて優先度を上げたうえでそのまま再掲している。
--------------------------------------------------------- */
html body .wpcf7 {
	width:100%;
	margin:0 0 2.5em !important;
	padding:0;
	border:1px solid #ddd;
	background:#fafafa;
	font-size:14px;
}

html body .wpcf7 form {
	margin:1.5em 1.5em 0;
}

html body .wpcf7 p {
	margin-bottom:1em;
	font-size:16px;
}

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

html body .wpcf7 select, html body .wpcf7 input[type=checkbox], html body .wpcf7 input[type=radio] {
	width:auto;
	max-width:97%;
	padding:8px;
	border:1px solid #ccc;
}

html body .wpcf7 select, html body .wpcf7 .wpcf7-list-item-label {
	font-size:14px;
	line-height:1.2;
}

html body .wpcf7 .wpcf7-list-item {
	display:block;
}

html body .wpcf7 textarea {
	height:300px;
}

html body .wpcf7 input:focus, html body .wpcf7 textarea:focus {
	border:1px solid #bbb;
	outline:none;
}

html body .wpcf7 .wpcf7-submit, html body .wpcf7 .wpcf7-previous {
	-webkit-transition:all .3s;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
	display:block;
	position:relative;
	width:225px;
	height:48px;
	margin:30px auto 0;
	border:none !important;
	outline:none;
	background-color:#333333;
	color:#fff;
	font-size:14px;
	line-height:1.5;
	text-align:center;
	text-decoration:none;
	cursor:pointer;
	transition:all .3s;
}

html body .wpcf7 .wpcf7-submit:before, html body .wpcf7 .wpcf7-submit:after {
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
}

html body .wpcf7 .wpcf7-submit:hover, html body .wpcf7 .wpcf7-previous:hover {
	background-color:#666666;
}

html body .wpcf7 .wpcf7-submit .wpcf7-not-valid {
	background:pink;
}

html body .wpcf7 .wpcf7-submit .wpcf7-response-output {
	-webkit-border-radius:4px;
	-moz-border-radius:4px;
	margin:10px 0 0;
	padding:8px 35px 8px 14px;
	border-radius:4px;
}

html body .wpcf7 .wpcf7-submit .wpcf7-validation-errors {
	border:1px solid #EED3D7;
	background-color:#F2DEDE;
	color:#B94A48;
}

html body .wpcf7 .wpcf7-submit .wpcf7-mail-sent-ok {
	border:1px solid #BCE8F1;
	background-color:#D9EDF7;
	color:#3A87AD;
}

html body .wpcf7 .wpcf7-previous + br {
	display: none;
}

html body .wpcf7 form .wpcf7-response-output {
	margin: 2em 0.5em 2em;
	padding:0;
	border: none;
	text-align:center;
}

html body .wpcf7 form.invalid .wpcf7-response-output, html body .wpcf7 form.unaccepted .wpcf7-response-output {
	color:#dc3232;
	font-size: 1em;
}

html body .wpcf7 {
	color:#000;
}
