/*
Theme Name: ふくまち
Description: 福井の地域情報メディア「ふくまち」用テーマ。写真に頼らず、一覧の時点で答え（料金・時間・場所）が見える実用データベース型。
Author: U-Mebius Inc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fukumachi
*/

:root {
	--bg: #faf8f3;      /* 生成り */
	--surface: #ffffff;
	--text: #2b2b2b;
	--muted: #6b6b6b;
	--head: #1b3a5c;    /* 藍 */
	--link: #1b5c8f;
	--rule: #e2ddd2;
	--accent: #c05621;  /* 朱（CTA・注意のみ） */
	--maxw: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	font-feature-settings: "palt";
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.15rem; }

/* ---------- ヘッダー ---------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.1rem;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.site-title a { color: var(--head); text-decoration: none; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.site-nav a {
	font-size: 0.83rem;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}
.site-nav a:hover { color: var(--link); }

/* ---------- 共通 ---------- */

.site-main { padding: 1.6rem 0 3rem; }

.lead {
	margin: 0 0 1.8rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.section { margin-bottom: 2.6rem; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.2rem;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid var(--head);
}

.section__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--head);
	letter-spacing: 0.02em;
}

.section__more { font-size: 0.8rem; text-decoration: none; white-space: nowrap; }

/* ---------- 一覧の行 ---------- */

.entry-list { list-style: none; margin: 0; padding: 0; }

.entry-row { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }

.entry-row__title {
	display: block;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--link);
	text-decoration: none;
}
.entry-row__title:hover { text-decoration: underline; }

.entry-row__meta {
	margin: 0.28rem 0 0;
	font-size: 0.83rem;
	line-height: 1.7;
	color: var(--muted);
}

/* ---------- 記事 ---------- */

.breadcrumb {
	margin: 0 0 0.9rem;
	font-size: 0.78rem;
	color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }

.entry-header { margin-bottom: 1.3rem; }

.entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.55rem;
	line-height: 1.5;
	font-weight: 700;
	color: var(--head);
	letter-spacing: 0.01em;
}

.entry-date { font-size: 0.78rem; color: var(--muted); }

/* 基本情報ボックス（事実だけを載せる） */
.facts-box {
	margin: 0 0 1.8rem;
	padding: 0.9rem 1.1rem 0.7rem;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-left: 4px solid var(--head);
	border-radius: 3px;
}

.facts-box__label {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--head);
}

.facts-box dl { margin: 0; }

.facts-box__row {
	display: grid;
	grid-template-columns: 6.2rem 1fr;
	gap: 0.2rem 0.6rem;
	padding: 0.3rem 0;
	border-top: 1px dotted var(--rule);
	font-size: 0.88rem;
	line-height: 1.7;
}
.facts-box__row:first-child { border-top: 0; }

.facts-box dt { margin: 0; color: var(--muted); }
.facts-box dd { margin: 0; }

.facts-box__note {
	margin: 0.6rem 0 0;
	font-size: 0.72rem;
	color: var(--muted);
}

.entry-content { font-size: 1rem; }

.entry-content h2 {
	margin: 2.4rem 0 0.9rem;
	padding-left: 0.65rem;
	font-size: 1.18rem;
	line-height: 1.6;
	font-weight: 700;
	color: var(--head);
	border-left: 4px solid var(--head);
}

.entry-content h3 {
	margin: 1.9rem 0 0.7rem;
	font-size: 1.03rem;
	font-weight: 700;
	color: var(--text);
	border-bottom: 1px solid var(--rule);
	padding-bottom: 0.3rem;
}

.entry-content p { margin: 0 0 1.25rem; }

.entry-content ul, .entry-content ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.4rem;
	font-size: 0.9rem;
}
.entry-content th, .entry-content td {
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--rule);
	text-align: left;
}
.entry-content th { background: #f2eee5; }

.entry-content code {
	padding: 0.1em 0.35em;
	background: #f2eee5;
	border-radius: 3px;
	font-size: 0.92em;
}

.aibg-source {
	margin: 2rem 0 0;
	padding-top: 0.8rem;
	border-top: 1px solid var(--rule);
	font-size: 0.78rem;
	color: var(--muted);
}
.aibg-source a { color: var(--muted); word-break: break-all; }

/* 関連記事 */
.related { margin-top: 2.8rem; }

/* ---------- ページャ ---------- */

.pager {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-top: 1.8rem;
	font-size: 0.9rem;
}
.pager .page-numbers {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 3px;
	text-decoration: none;
}
.pager .page-numbers.current { background: var(--head); border-color: var(--head); color: #fff; }

/* ---------- フッター ---------- */

.site-footer {
	margin-top: 2rem;
	padding: 1.8rem 0 2.4rem;
	background: var(--surface);
	border-top: 1px solid var(--rule);
	font-size: 0.78rem;
	color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 0.5rem; }

/* ---------- 検索・404 ---------- */

.search-form { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.search-form input[type="search"] {
	flex: 1;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--rule);
	border-radius: 3px;
	font-size: 0.95rem;
	background: var(--surface);
	color: var(--text);
}
.search-form button {
	padding: 0.5rem 1rem;
	background: var(--head);
	color: #fff;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.9rem;
}

/* ---------- 画面が広いとき ---------- */

@media (min-width: 768px) {
	body { font-size: 17px; }
	.site-title { font-size: 1.4rem; }
	.entry-title { font-size: 1.9rem; }
	.section__title { font-size: 1.12rem; }
	.site-main { padding-top: 2.2rem; }
}
