/*
 * 投稿ページ・カテゴリー一覧（notes / news）
 * single.php / category.php と組み合わせて使う。
 *
 * メイン色 #455765 / サブ色 #6b7b6e / キーカラー #6c848d
 */

/* サイドバーを出さず1カラムに（2カラムにするときは inc/slowfield-page.php の slowfield_post_use_sidebar を true に） */
.sf-post:not(.sf-post--sidebar) #main.two-column #content {
	width: 100%;
	float: none;
}

/* =記事ページ 共通
-------------------------------------------------------------- */

.sf-article {
	max-width: 46em;
	margin: 0 auto;
}

.sf-article-header {
	padding: 2em 0 1.5em;
	text-align: center;
}

.sf-article-meta {
	margin-bottom: .8em;
	color: #888;
	font-size: .8em;
	letter-spacing: .1em;
}

.sf-article-cat {
	display: inline-block;
	margin-left: 1em;
	padding: 0 .8em;
	border: 1px solid #c5ced3;
	border-radius: 2em;
	color: #6c848d;
	font-size: .9em;
	line-height: 1.8;
	text-decoration: none;
}

.sf-article-cat:hover {
	background-color: #6c848d;
	color: #fff;
	text-decoration: none;
}

.sf-article-title {
	margin: 0;
	color: #455765;
	font-size: 1.6em;
	font-weight: normal;
	line-height: 1.6;
	letter-spacing: .06em;
}

.sf-article-body {
	color: #444;
	line-height: 2.1;
	letter-spacing: .03em;
}

.sf-article-body p {
	margin-bottom: 1.8em;
}

.sf-article-body img {
	height: auto;
}

/* 本文中の見出しを落ち着いた線だけのデザインに */
.sf-article-body h2 {
	margin: 2.5em 0 1em;
	padding: 0 0 .5em;
	border: none;
	border-bottom: 1px solid #c5ced3;
	background: none;
	color: #455765;
	font-size: 1.3em;
}

.sf-article-body h3 {
	margin: 2em 0 .8em;
	padding: 0 0 0 .8em;
	border: none;
	border-left: 3px solid #6c848d;
	background: none;
	color: #455765;
	font-size: 1.1em;
}

.sf-article-edit {
	font-size: .8em;
	text-align: right;
}

/* 前後の記事 */
.sf-article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	max-width: 54.1em; /* 文字サイズ .85em のぶん広げて本文幅（46em）とそろえる */
	margin: 3em auto 0;
	padding: 1.5em 0;
	border-top: 1px solid #e0e4e7;
	border-bottom: 1px solid #e0e4e7;
	font-size: .85em;
	line-height: 1.6;
}

.sf-article-nav a {
	color: #455765;
	text-decoration: none;
}

.sf-article-nav a:hover {
	color: #6c848d;
}

.sf-article-nav span {
	display: block;
	margin-bottom: .3em;
	color: #9aa7b0;
	font-family: 'Rozha One', serif;
	letter-spacing: .08em;
}

.sf-article-next {
	text-align: right;
}

.sf-article-back {
	margin: 2.5em 0 3em;
	text-align: center;
}

.sf-article-back a {
	display: inline-block;
	padding: .7em 2.4em;
	border: 1px solid #6c848d;
	border-radius: 6px;
	color: #6c848d;
	font-size: .85em;
	letter-spacing: .08em;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.sf-article-back a:hover {
	background-color: #6c848d;
	color: #fff;
	text-decoration: none;
}

/* =記事ページ notes（読み物風）
-------------------------------------------------------------- */

.sf-post--notes .sf-article-header {
	padding-top: 3em;
}

.sf-article-hero {
	overflow: hidden;
	margin: 0 0 2.5em;
	aspect-ratio: 16 / 9;
}

.sf-article-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =記事ページ news（お知らせ風）
-------------------------------------------------------------- */

.sf-post--news .sf-article-header {
	margin-bottom: 2em;
	padding-bottom: 1.2em;
	border-bottom: 1px solid #c5ced3;
	text-align: left;
}

.sf-post--news .sf-article-title {
	font-size: 1.35em;
}

/* =カテゴリー一覧 共通
-------------------------------------------------------------- */

.sf-archive-header {
	padding: 2.5em 0 2em;
	text-align: center;
}

.sf-archive-title {
	margin: 0;
	color: #455765;
	font-family: 'Rozha One', serif;
	font-size: 2em;
	font-weight: normal;
	letter-spacing: .04em;
}

.sf-archive-title span {
	display: block;
	margin-top: .2em;
	color: #888;
	font-family: sans-serif;
	font-size: .38em;
	letter-spacing: .1em;
}

.sf-archive-desc {
	max-width: 40em;
	margin: 1em auto 0;
	color: #666;
	font-size: .9em;
	line-height: 2;
}

.sf-archive-empty {
	padding: 3em 0;
	color: #888;
	text-align: center;
}

/* =カテゴリー一覧 notes（カード）
-------------------------------------------------------------- */

.sf-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5em;
	margin-bottom: 3em;
}

.sf-card time {
	display: block;
	margin: 1em 0 .3em;
	color: #888;
	font-size: .78em;
	letter-spacing: .1em;
}

.sf-card-img {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.sf-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.sf-card-img:hover img {
	transform: scale(1.03);
}

.sf-card-title {
	margin: 0 0 .5em;
	padding: 0;
	border: none;
	background: none;
	font-size: 1.1em;
	font-weight: normal;
	line-height: 1.6;
}

.sf-card-title a {
	color: #455765;
	text-decoration: none;
}

.sf-card-title a:hover {
	color: #6c848d;
}

.sf-card-excerpt {
	margin: 0;
	color: #666;
	font-size: .85em;
	line-height: 1.9;
}

/* =カテゴリー一覧 news（リスト）
-------------------------------------------------------------- */

.sf-newslist {
	max-width: 46em;
	margin: 0 auto 3em;
	padding: 0;
	border-top: 1px solid #e0e4e7;
	list-style: none;
}

.sf-newslist li {
	margin: 0;
	border-bottom: 1px solid #e0e4e7;
}

.sf-newslist a {
	display: block;
	padding: 1.1em .5em;
	color: #444;
	text-decoration: none;
	transition: background-color .2s;
}

.sf-newslist a:hover {
	background-color: #f2f4f3;
	text-decoration: none;
}

.sf-newslist time {
	display: block;
	margin-bottom: .2em;
	color: #6c848d;
	font-size: .8em;
	letter-spacing: .1em;
}

/* =タブレット以上
-------------------------------------------------------------- */

@media screen and (min-width: 46.25em) {

	.sf-article-title {
		font-size: 1.9em;
	}

	.sf-post--news .sf-article-title {
		font-size: 1.5em;
	}

	.sf-cards {
		grid-template-columns: 1fr 1fr;
		gap: 3em 2.5em;
	}

	.sf-newslist a {
		display: flex;
		gap: 2em;
		align-items: baseline;
	}

	.sf-newslist time {
		flex: 0 0 6.5em;
		margin-bottom: 0;
	}
}

.sf-card-img .sf-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: #e3e7ea;
	color: #9aa7b0;
	font-size: .75em;
}

/* =幅広・全幅ブロック（カバー・画像など）
-------------------------------------------------------------- */

body.page-template-page-wide,
body.page-template-page-templates-page-wide-php,
body.sf-post:not(.sf-post--sidebar) {
	overflow-x: clip;
}

/* 全幅：画面の端から端まで */
.sf-wide-content .alignfull,
.sf-post:not(.sf-post--sidebar) .sf-article-body .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* 幅広：本文より少し広く（最大 1200px） */
.sf-wide-content .alignwide,
.sf-post:not(.sf-post--sidebar) .sf-article-body .alignwide {
	width: min(1200px, 100vw);
	max-width: min(1200px, 100vw);
	margin-left: calc(50% - min(600px, 50vw));
	margin-right: calc(50% - min(600px, 50vw));
}

/* =カバーブロック内の見出し
   サイト共通の見出し（帯の背景＋左線）を外して、写真の上に白文字で載せる
-------------------------------------------------------------- */

.entry-content .wp-block-cover h2,
.entry-content .wp-block-cover h3 {
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	color: #fff;
	font-weight: bold;
	letter-spacing: .08em;
	text-shadow: 0 1px 12px rgba(31, 49, 52, .45);
}
