/*
Theme Name: オリジナルテーマ
Theme URI: http://www.esmilesys.co.jp/
Description: Original theme
Version: 1.0
Author: e-smile systems
Tags: 
*/

/*----------------------------------------
ワードプレス内だけで使用するスタイルを記述
共通枠で使用しているIDやCLASS名は使用しないこと
----------------------------------------*/

/* 記事（トップページの .title_waku / .box_waku と同系のカード見出し） */
.post {
	clear: both;
	margin-bottom: 30px;
	background: transparent;
	border: none;
}
.post:after {
	clear: both;
	display: block;
	overflow: hidden;
	height: 0px;
	content: "";
}

.post .post-header {
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0378bf;
	border-radius: 5px 5px 0 0;
	background-color: #f4f6f8;
}

/* タイトル */
.post .post_title {
	margin: 0;
	padding: 0;
	border: none;
	color: #0f172a;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.02em;
}
#main .post h1.post_title {
	margin: 0;
}
.post .post_title a {
	color: #0f172a;
	text-decoration: none;
}
.post .post_title a:hover {
	color: #0378bf;
	text-decoration: underline;
}

/* 日付（グレー見出しの外／白い本文エリアの先頭行） */
.post .post_date {
	clear: both;
	margin: 0;
	padding: 10px 20px 5px;
	background: #fff;
	border-left: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	border-top: none;
	color: #888888;
	font-size: 80%;
	font-weight: normal;
	text-align: right;
}

/* カテゴリ */
.post .post_category {
	clear: both;
	padding: 10px;
	border-top: 1px solid #DDDDDD;
	font-size: 80%;
	color: #888888;
	text-align: right;
}
.post .post_category a {
	color: #888888;
	text-decoration: none;
}
.post .post_category a:hover {
	text-decoration: underline;
}

/* 本文 */
.post_content {
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 5px 5px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.post_content iframe {
	max-width: 100%;
}

/* ページナビ */
#wp_pagenavi {
	clear: both;
}
#wp_pagenavi:after {
	clear: both;
	display: block;
	overflow: hidden;
	height: 0px;
	content: "";
}
#wp_pagenavi .next {
	float: right;
}

.post ul {
	margin-left:1em;
}
.post ol {
	margin-left:1.5em;
}


#navi h3.title_waku {
	clear: both;
	color: #0f172a;
	font-size: 17px;
}
#navi h3.title_waku a {
	color: #0378bf;
	font-size: 17px;
	text-decoration: none;
}
#navi h3.title_waku a:hover {
	text-decoration: underline;
}

/* Article index, category, tag and search listing header. */
body.archive-listing-page #main.mt-course-layout-wrap {
	float: none;
	width: auto;
}

body.archive-listing-page .archive-listing-hero {
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 38px 20px 24px;
	border: 0;
	background: transparent;
	color: var(--mt-ink, #172033);
	font-family: var(--mt-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
}

body.archive-listing-page #main .archive-listing-hero__title {
	margin: 10px 0 6px;
	padding: 0;
	background: none;
	color: var(--mt-navy-950, #031B68);
	font-size: 44px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0;
}

body.archive-listing-page .archive-listing-hero__lead {
	margin: 0;
	color: var(--mt-muted, #657084);
	font-size: 16px;
	line-height: 1.8;
}

/* Compact text-only cards used on article indexes and archive views. */
body.archive-listing-page .archive-article-list {
	display: grid;
	gap: 18px;
	margin: 0 0 30px;
}

body.archive-listing-page #main .archive-article-card {
	box-sizing: border-box;
	padding: 22px 24px 20px;
	font-family: var(--mt-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
}

body.archive-listing-page .archive-article-card__date {
	display: block;
	margin: 0 0 7px;
	color: var(--mt-muted, #657084);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}

body.archive-listing-page #main .archive-article-card__title {
	margin: 0;
	padding: 0;
	background: none;
	color: var(--mt-navy-950, #031B68);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

body.archive-listing-page .archive-article-card__title a {
	color: inherit;
	text-decoration: none;
}

body.archive-listing-page .archive-article-card__title a:hover {
	color: var(--mt-navy-800, #1E2D6E);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.archive-listing-page #main .archive-article-card__excerpt {
	margin: 12px 0 0;
	padding: 0;
	color: var(--mt-muted, #657084);
	font-size: 16px;
	line-height: 1.8;
}

body.archive-listing-page .archive-article-card__link {
	display: block;
	width: fit-content;
	margin: 13px 0 0 auto;
	color: var(--mt-muted, #657084);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

body.archive-listing-page .archive-article-card__link::after {
	content: " →";
}

body.archive-listing-page .archive-article-card__link:hover {
	color: var(--mt-navy-800, #1E2D6E);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.archive-listing-page #wp_pagenavi {
	display: flex;
	clear: both;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 30px;
	font-family: var(--mt-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
}

body.archive-listing-page #wp_pagenavi .page-numbers {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 6px 10px;
	border: 1px solid var(--mt-line, #DFE5EE);
	border-radius: var(--mt-radius-sm, 6px);
	background: var(--mt-paper, #FFFFFF);
	color: var(--mt-navy-800, #1E2D6E);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

body.archive-listing-page #wp_pagenavi a.page-numbers:hover {
	border-color: rgba(3, 27, 104, 0.22);
	background: var(--mt-purple-100, #F1EDFB);
	color: var(--mt-navy-950, #031B68);
	text-decoration: none;
}

body.archive-listing-page #wp_pagenavi .page-numbers.current {
	border-color: var(--mt-navy-800, #1E2D6E);
	background: var(--mt-navy-800, #1E2D6E);
	color: #FFFFFF;
}

body.archive-listing-page #wp_pagenavi .page-numbers.dots {
	min-width: auto;
	padding-right: 2px;
	padding-left: 2px;
	border-color: transparent;
	background: transparent;
	color: var(--mt-muted, #657084);
}

body.archive-listing-page #wp_pagenavi .prev,
body.archive-listing-page #wp_pagenavi .next {
	float: none;
	padding-right: 13px;
	padding-left: 13px;
}

/* =Images
-------------------------------------------------------------- */

.post img {
	margin: 0;
	height: auto;
	max-width: 640px;
}
.post .attachment img {
	max-width: 900px;
}
.post .alignleft,
.post img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.post .alignright,
.post img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 4px;
}
.post .aligncenter,
.post img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.post img.alignleft,
.post img.alignright,
.post img.aligncenter {
	margin-bottom: 12px;
}
.post .wp-caption {
	background: #f1f1f1;
	line-height: 18px;
	margin-bottom: 20px;
	padding: 4px;
	text-align: center;
}
.post .wp-caption img {
	margin: 5px 5px 0;
}
.post .wp-caption p.wp-caption-text {
	color: #888;
	font-size: 12px;
	margin: 5px;
}
.post .wp-smiley {
	margin: 0;
}
.post .gallery {
	margin: 0 auto 18px;
}
.post .gallery .gallery-item {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 33%;
}
.post .gallery img {
	border: 2px solid #cfcfcf;
}
.post .gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
.post .gallery dl {
	margin: 0;
}
.post .gallery img {
	border: 10px solid #f1f1f1;
}
.post .gallery br+br {
	display: none;
}
.post .attachment img { /* single attachment images should be centered */
	display: block;
	margin: 0 auto;
}

#main .post .post_content h1 {
	font-size: 130%;
}
#main .post .post_content h2 {
	font-size: 120%;
}
#main .post .post_content h3 {
	font-size: 110%;
}


/*--------------------------------------------------
	スマートフォン
--------------------------------------------------*/
@media only screen and (max-width: 640px){
body.archive-listing-page .archive-listing-hero {
	margin-bottom: 10px;
	padding: 30px 10px 22px;
}
body.archive-listing-page #main .archive-listing-hero__title {
	font-size: 30px;
}
body.archive-listing-page .archive-listing-hero__lead {
	font-size: 15px;
}
body.archive-listing-page .archive-article-list {
	gap: 14px;
	margin-bottom: 24px;
}
body.archive-listing-page #main .archive-article-card {
	padding: 18px 16px 16px;
}
body.archive-listing-page #main .archive-article-card__title {
	font-size: 18px;
	line-height: 1.45;
}
body.archive-listing-page #main .archive-article-card__excerpt {
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.8;
}
body.archive-listing-page #wp_pagenavi {
	gap: 6px;
	margin-bottom: 24px;
}
body.archive-listing-page #wp_pagenavi .page-numbers {
	min-width: 36px;
	min-height: 36px;
	padding: 5px 8px;
	font-size: 13px;
}
body.archive-listing-page #wp_pagenavi .prev,
body.archive-listing-page #wp_pagenavi .next {
	padding-right: 10px;
	padding-left: 10px;
}
.post img {
	height: auto;
	max-width: 100%;
}
.post .post_title {
	font-size: 17px;
	line-height: 1.3;
}
.post .post-header {
	padding: 12px 14px;
}
.post .post_date {
	padding: 10px 14px 5px;
}
.post_content {
	padding: 16px 14px;
}
}
