/*
Theme Name: 塗装のおっさんのひとり言
Description: 昔の個人サイト風の、装飾ほぼなしの1カラムテーマ。
Version: 1.0.1
Requires at least: 6.9
Requires PHP: 7.4
Author: 塗装のおっさん
License: GPL-2.0-or-later
Text Domain: ossan-hitorigoto
*/

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #ffffff;
	color: #222222;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.9;
}
a { color: #1a4fb0; text-decoration: underline; }
a:hover { color: #c03020; }
img { max-width: 100%; height: auto; }

.wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 16px 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ヘッダー */
.site-header { display: flex; flex-direction: column; gap: 6px; }
.ad-notice { margin: 0; font-size: 12px; color: #555555; }
.banner {
	display: block;
	width: 100%;
	height: auto;
	shape-rendering: crispEdges;
	background: #b8e0f8;
	border: 1px solid #cccccc;
}
.site-title { margin: 6px 0 0; font-size: 28px; line-height: 1.4; font-weight: 700; }
.site-title a { color: #222222; text-decoration: none; }
.site-catch { margin: 0; color: #444444; }
.site-menu { margin: 0; font-size: 15px; }

hr, .rule { border: 0; border-top: 1px solid #bbbbbb; margin: 0; }

/* パンくず・投稿情報 */
.breadcrumb, .post-meta { margin: 0; font-size: 14px; color: #555555; }

/* 本文 */
.entry-title { margin: 0; font-size: 22px; line-height: 1.5; }
.entry-content > * { margin-top: 0; margin-bottom: 1em; }
.entry-content h2 { font-size: 19px; line-height: 1.5; margin: 1.6em 0 0.6em; }
.entry-content h3 { font-size: 17px; line-height: 1.5; margin: 1.4em 0 0.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid #999999; padding: 4px 8px; text-align: left; vertical-align: top; }
.entry-content th { background: #f2f2f2; }
.entry-content figure { margin: 0 0 1em; }
.entry-content figcaption { font-size: 13px; color: #555555; }

/* トップページの枠 */
.box-yellow { padding: 16px; background: #fff8dc; border: 1px solid #e0c870; }
.box-pr { padding: 14px 16px; border: 1px dashed #999999; }
.box-yellow > *:last-child, .box-pr > *:last-child { margin-bottom: 0; }

/* 記事一覧 */
.post-list { margin: 0; padding-left: 1.4em; }
.post-list li { margin-bottom: 4px; }
.post-list .date { font-size: 13px; color: #555555; margin-left: 6px; }
.post-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px 16px;
	margin-bottom: 1em;
}
.post-card { display: flex; flex-direction: column; gap: 4px; }
.post-card .thumb { display: block; border: 1px solid #cccccc; }
.post-card .thumb img, .post-card .no-image {
	display: block;
	width: 100%;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
}
.post-card .no-image { background: #f2f2f2; }
.post-card p { margin: 0; }
.post-card .card-title { font-weight: 700; line-height: 1.5; }
.post-card .card-date { font-size: 13px; color: #555555; }
.post-card .card-text { font-size: 14px; line-height: 1.7; color: #444444; }
.pager { display: flex; justify-content: space-between; font-size: 15px; }

/* フォーム（Contact Form 7） */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%;
	box-sizing: border-box;
	font-size: 16px;
	padding: 6px;
	border: 1px solid #999999;
}
.wpcf7 input[type="submit"] { font-size: 16px; padding: 6px 20px; }

/* フッター */
.site-footer {
	border-top: 1px solid #bbbbbb;
	padding-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 13px;
	color: #555555;
}
.site-footer .copy { flex: 1 1 100%; }

.screen-reader-text { position: absolute; left: -9999px; }
