/*
Theme Name: sophia Child
Description: sophia テーマの子テーマ。カスタマイズはこのテーマで行います。
Template: sophia
Version: 1.0.0
Author: モッドワークス
Author URI: http://www.modworks.co.jp
*/

/* 
 * 親テーマのスタイルは functions.php で自動的に読み込まれます。
 * このファイルには、カスタマイズ用のスタイルを記述してください。
 */

/* CSS変数の定義（親テーマで定義されていない場合のフォールバック） */
:root {
	--navy: #1b3c59;
	--green: #63c1b3;
	--blue: #00adcd;
	--bg: #edf2f6;
	--black: #11181e;
	--bg_grad: rgb(0,173,205);
	--bg_grad2: linear-gradient(90deg, rgba(0,173,205,1) 0%, rgba(99,193,179,1) 100%);
}

/* パンくずリストの文字色を白に設定 */
#breadcrumb li span {
	color: #fff;
	display: inline-block;
}

/* 固定ページの見出しスタイル（PC版） */
#page-content .entry-content h2 {
	background: var(--bg_grad);
	background: var(--bg_grad2);
	color: #fff;
	padding: 7px 15px;
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 20px;
	margin-top: 50px;
	line-height: 1.4;
}

#page-content .entry-content h3 {
	font-size: 20px;
	font-weight: bold;
	color: var(--navy);
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	margin-top: 25px;
	margin-bottom: 7px;
	line-height: 1.4;
}

#page-content .entry-content h3::before {
	content: "";
	width: 5px;
	height: 1.2em;
	background: var(--blue);
	display: block;
	margin-right: 5px;
	margin-bottom: 5px;
}

#page-content .entry-content h4 {
	font-size: 18px;
	font-weight: bold;
	color: var(--navy);
	margin-top: 25px;
	margin-bottom: 10px;
	line-height: 1.4;
}

#page-content .entry-content h5 {
	font-size: 16px;
	font-weight: bold;
	color: var(--navy);
	margin-top: 20px;
	margin-bottom: 10px;
	line-height: 1.4;
}

/* 固定ページのコンテンツ基本スタイル（PC版） */
#page-content .entry-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--black);
}

/* 段落 */
#page-content .entry-content p {
	font-size: 16px;
	margin-bottom: 1em;
	letter-spacing: .06em;
	line-height: 1.8;
	text-align: justify;
}

/* リンク */
#page-content .entry-content a {
	color: var(--navy);
	text-decoration: underline;
	transition: all .3s ease 0s;
	font-weight: bold;
	word-break: break-all;
}

#page-content .entry-content a:hover {
	color: var(--blue);
	opacity: 0.8;
}

/* リスト */
#page-content .entry-content ul,
#page-content .entry-content ol {
	margin-bottom: 20px;
	margin-left: 20px;
}

#page-content .entry-content ul {
	list-style-type: disc;
}

#page-content .entry-content ol {
	list-style-type: decimal;
}

#page-content .entry-content li {
	font-size: 16px;
	margin-bottom: 10px;
	letter-spacing: .06em;
	line-height: 1.7;
	text-align: justify;
}

#page-content .entry-content ul li {
	list-style-type: disc;
}

#page-content .entry-content ol li {
	list-style-type: decimal;
}

/* 画像 */
#page-content .entry-content img {
	margin-bottom: 20px;
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

#page-content .entry-content .alignleft {
	float: left;
	margin-right: 20px;
	margin-bottom: 20px;
}

#page-content .entry-content .alignright {
	float: right;
	margin-left: 20px;
	margin-bottom: 20px;
}

#page-content .entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
}

/* テーブル */
#page-content .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	border: 1px solid #d1d1d1;
}

#page-content .entry-content table th,
#page-content .entry-content table td {
	padding: 10px 15px;
	border: 1px solid #d1d1d1;
	text-align: left;
	font-size: 16px;
}

#page-content .entry-content table th {
	background-color: #f5f5f5;
	font-weight: bold;
	color: var(--navy);
}

#page-content .entry-content table tr:nth-child(even) {
	background-color: #fafafa;
}

/* 引用 */
#page-content .entry-content blockquote {
	margin: 20px 0;
	padding: 15px 20px;
	border-left: 4px solid var(--blue);
	background-color: #f5f5f5;
	font-style: italic;
}

#page-content .entry-content blockquote p {
	margin-bottom: 0;
}

/* 水平線 */
#page-content .entry-content hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #d1d1d1;
	margin: 30px 0;
	padding: 0;
}

/* 太字・斜体 */
#page-content .entry-content strong,
#page-content .entry-content b {
	font-weight: bold;
	color: var(--navy);
}

#page-content .entry-content em,
#page-content .entry-content i {
	font-style: italic;
}

/* コード */
#page-content .entry-content code {
	background-color: #f5f5f5;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	color: #d63384;
}

#page-content .entry-content pre {
	background-color: #f5f5f5;
	padding: 15px;
	border-radius: 5px;
	overflow-x: auto;
	margin-bottom: 20px;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
}

#page-content .entry-content pre code {
	background-color: transparent;
	padding: 0;
}

/* WordPressブロック要素 */
#page-content .entry-content .wp-block-button a {
	background: var(--navy);
	color: #fff;
	display: -webkit-inline-flex;
	display: inline-flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	position: relative;
	transition: all .3s ease 0s;
	padding: 10px 25px;
	border-radius: 5px;
	font-size: 16px;
	min-width: 260px;
	text-decoration: none;
	font-weight: normal;
}

#page-content .entry-content .wp-block-button a:hover {
	opacity: 0.9;
	background: var(--blue);
}

/* 固定ページの見出しスタイル（スマートフォン版） */
@media screen and (max-width: 768px) {
	#page-content .entry-content {
		font-size: 4vw;
		line-height: 1.7;
	}

	#page-content .entry-content h2 {
		padding: 2vw 3vw;
		font-size: 4.8vw;
		margin-bottom: 4vw;
		margin-top: 8vw;
	}

	#page-content .entry-content h3 {
		font-size: 4.53vw;
		margin-top: 6vw;
		margin-bottom: 1vw;
		color: var(--blue);
	}

	#page-content .entry-content h4 {
		font-size: 4.27vw;
		margin-top: 5vw;
		margin-bottom: 2vw;
	}

	#page-content .entry-content h5 {
		font-size: 4vw;
		margin-top: 4vw;
		margin-bottom: 2vw;
	}

	/* 段落（スマートフォン版） */
	#page-content .entry-content p {
		font-size: 4vw;
		margin-bottom: 3vw;
		letter-spacing: .06em;
		line-height: 1.7;
		word-break: break-all;
	}

	/* リンク（スマートフォン版） */
	#page-content .entry-content a {
		font-size: 4vw;
		word-break: break-all;
	}

	/* リスト（スマートフォン版） */
	#page-content .entry-content ul,
	#page-content .entry-content ol {
		margin-bottom: 5vw;
		margin-left: 5vw;
	}

	#page-content .entry-content li {
		font-size: 4vw;
		margin-bottom: 1vw;
	}

	/* 画像（スマートフォン版） */
	#page-content .entry-content img {
		margin-bottom: 3vw;
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	#page-content .entry-content .alignleft,
	#page-content .entry-content .alignright {
		float: none;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}

	/* テーブル（スマートフォン版） */
	#page-content .entry-content table {
		font-size: 3.5vw;
		margin-bottom: 5vw;
	}

	#page-content .entry-content table th,
	#page-content .entry-content table td {
		padding: 2vw;
		font-size: 3.5vw;
	}

	/* 引用（スマートフォン版） */
	#page-content .entry-content blockquote {
		margin: 5vw 0;
		padding: 3vw 4vw;
		font-size: 3.8vw;
	}

	/* 水平線（スマートフォン版） */
	#page-content .entry-content hr {
		margin: 6vw 0;
	}

	/* コード（スマートフォン版） */
	#page-content .entry-content code {
		font-size: 3.5vw;
	}

	#page-content .entry-content pre {
		padding: 3vw;
		font-size: 3.5vw;
		margin-bottom: 5vw;
	}

	/* WordPressブロック要素（スマートフォン版） */
	#page-content .entry-content .wp-block-button a {
		padding: 2vw 5vw;
		font-size: 4.2vw;
		min-width: auto;
		width: 100%;
	}
}

/* センタリング版テンプレート用のスタイル */
.page-centered .entry-content h2 {
	text-align: center;
}

.page-centered .entry-content h3 {
	text-align: center;
}

.page-centered .entry-content h4 {
	text-align: center;
}

.page-centered .entry-content h5 {
	text-align: center;
}

/* センタリング版テンプレート用のスタイル（スマートフォン版） */
@media screen and (max-width: 768px) {
	.page-centered .entry-content h2,
	.page-centered .entry-content h3,
	.page-centered .entry-content h4,
	.page-centered .entry-content h5 {
		text-align: center;
	}
}

