/*
Theme Name: SANGO Child (Fudosan Media)
Template: sango-theme
Description: 不動産売却メディア用のSANGO子テーマ。自治体ページ(area)のテンプレートとスタイルを追加。
Version: 0.3.0
*/

/* ページ背景は生成り(SANGO既定のグレー #eaedf2 を上書き) */
body {
	background: #f7f6f1 !important;
}

/* ============================================
   サイト全体の配色(SANGO上書き・子テーマで管理)
   墨 #22312D / 松葉 #2F6B4F / 生成り #F7F6F1 / 柿(CTA) #D96C2C
   ============================================ */

/* ヘッダー: 墨色ベース */
.header {
	background: #22312d !important;
	box-shadow: none;
}
.header-logo__link,
.header-logo a {
	color: #f7f6f1 !important;
	letter-spacing: .06em;
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.header-search label,
.header .fa,
.header .fas,
.header [class*="drawer"],
.header [class*="search"] {
	color: #f7f6f1;
}

/* グローバルナビ(ヘッダー下) */
.dropmenu,
.header-menu {
	background: #1a2624 !important;
}
.dropmenu a,
.header-menu a {
	color: #e8e9e4 !important;
	letter-spacing: .08em;
}
.dropmenu a:hover,
.header-menu a:hover {
	background: #2f6b4f !important;
	color: #fff !important;
}

/* フッター: 墨色ベース */
.footer {
	background: #22312d !important;
	color: #b9c2bc;
}
.footer a { color: #e8e9e4; }
#footer-menu,
.footer-menu,
.footer-menu__wrap {
	background: #1a2624 !important;
}
#footer-menu a,
.footer-menu__btn {
	color: #f7f6f1 !important;
}
.footer .copyright,
.copyright {
	color: #8b958f;
	background: #1a2624;
}

/* ============================================
   レイアウト補正(SANGOレイアウト未設定環境)
   ヘッダー/フッター内側と本文の最大幅を揃える
   ============================================ */
.wrap {
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* サイドバー非使用の全ページ: SANGOの2カラム前提(#main固定幅・左寄せ)を
   1カラム中央寄せに補正する */
#main,
main#main {
	float: none;
	margin-left: auto;
	margin-right: auto;
}

/* 固定ページ・投稿は読みやすい1カラム中央寄せ */
body.page article#entry,
body.single-post article#entry {
	max-width: 800px;
	margin: 0 auto;
	padding: 2.5em 16px 4em;
	box-sizing: border-box;
}

/* 本文中のテキストリンクをサイトトーン(松葉緑)に統一 */
.entry-content a:not([class]),
.page-content a:not([class]) {
	color: #2f6b4f;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.entry-content a:not([class]):hover,
.page-content a:not([class]):hover {
	color: #1d4a36;
}

/* 固定ページ共通タイトル(SANGOは h1/h2.page-title を使う) */
.page-title {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-size: 1.6em;
	line-height: 1.5;
	letter-spacing: .03em;
	color: #22312d;
}

/* SANGO標準パンくず(固定ページ)の配色をサイトトーンへ */
#breadcrumb,
#breadcrumb a,
#breadcrumb span,
#breadcrumb .fa,
#breadcrumb [class*="fa-"] {
	color: #7c8380 !important;
	font-size: .95em;
}
#breadcrumb a:hover { color: #2f6b4f !important; }

body.home .page-title,
.home .entry-title,
.home h1.entry-title {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-size: 1.9em;
	line-height: 1.5;
	letter-spacing: .03em;
	color: #22312d;
	text-align: center;
	margin-top: .8em;
}
.home-hero-lead {
	font-size: 1em;
	line-height: 2;
	color: #3d4744;
	margin: 0 auto 2em;
	max-width: 640px;
	text-align: center;
}
.home-area-links {
	justify-content: center;
}

/* チップ・ディレクトリ内リンクは下線なし(本文リンクの下線ルールより優先) */
.entry-content ul.area-links li a,
.page-content ul.area-links li a,
.entry-content .area-dir-title a,
.page-content .area-dir-title a {
	text-decoration: none;
}

/* エリアディレクトリ(トップページ・都道府県ごとの自動一覧) */
.area-dir {
	max-width: 720px;
	margin: 0 auto 1.6em;
}
.area-dir-title {
	font-weight: 700;
	font-size: 1.05em;
	margin: 0 0 .6em;
	display: flex;
	align-items: baseline;
	gap: .6em;
}
.area-dir-title a {
	color: #22312d;
	text-decoration: none;
}
.area-dir-title a:hover { color: #2f6b4f; }
.area-dir-count {
	font-size: .72em;
	font-weight: 400;
	color: #7c8380;
	letter-spacing: .08em;
}
.area-links-more {
	color: #2f6b4f !important;
	border-style: dashed !important;
}
.home .entry-content > h2 {
	margin-top: 2.6em;
}
.home-note {
	font-size: .78em;
	color: #7c8380;
}
.home-area-links li a {
	border-color: #cfd4cd;
}

/* トップページ: SNSシェア欄は不要なので非表示 */
.home .sns-btn,
.home [class*="share"],
.home ul:has(> li.sns-btn__item) {
	display: none !important;
}

/* エリアチップ(全ページ共通・SANGOのリスト装飾を打ち消す) */
ul.area-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}
ul.area-links li {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.area-links li::before,
ul.area-links li::marker {
	content: none;
}
ul.area-links li a {
	display: inline-block;
	border: 1px solid #dcdad2;
	border-radius: 999px;
	padding: .35em 1em;
	font-size: .82em;
	color: #22312d;
	text-decoration: none;
	transition: border-color .12s ease, color .12s ease, background .12s ease;
}
ul.area-links li a:hover {
	border-color: #2f6b4f;
	color: #2f6b4f;
	background: #eef4ef;
}

/* ============================================
   自治体ページ デザイントークン
   見出し・数字: Shippori Mincho / 本文: SANGO標準
   ============================================ */
.area-single {
	--ink: #22312d;
	--pine: #2f6b4f;
	--pine-pale: #eef4ef;
	--paper: #f7f6f1;
	--kaki: #d96c2c;
	--kaki-deep: #b85419;
	--hairline: #dcdad2;
	--muted: #7c8380;
	color: var(--ink);
	line-height: 1.9;
}
.area-single .amincho,
.area-single h1,
.area-single h2,
.area-single .area-stat-value,
.area-single .area-faq summary::before {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ---- レイアウト(自治体ページは1カラム・読みやすい行長) ---- */
.area-main-single {
	display: block;
}
.area-content-single {
	float: none;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 1.5em 16px 4em;
}

/* ---- ヒーロー(タイトル部) ---- */
.area-eyebrow {
	font-size: .78em;
	letter-spacing: .25em;
	color: var(--pine);
	margin: 0 0 .4em;
	font-weight: 600;
}
.area-single h1,
.area-single h1.entry-title {
	font-size: 1.7em;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
	color: var(--ink);
	margin: 0 0 .4em;
}
.area-updated {
	font-size: .78em;
	color: var(--muted);
	margin: 0 0 2em;
}

/* 結論ファースト: FV用相場サマリー */
.area-quick {
	background: var(--paper);
	border-left: 4px solid var(--pine);
	border-radius: 0;
	padding: .7em 1em;
	font-size: .92em;
	margin: 0 0 1.2em;
	line-height: 1.7;
}
.area-quick-label {
	display: inline-block;
	font-weight: 700;
	margin-right: .8em;
	color: var(--pine);
}
.area-quick strong {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-size: 1.15em;
}
.area-quick-src {
	margin-left: .6em;
	font-size: .8em;
	color: var(--muted);
}

/* モバイル追従CTAバー(自治体ページのみ) */
.area-sticky-cta { display: none; }
@media (max-width: 680px) {
	.area-sticky-cta {
		display: flex;
		align-items: center;
		gap: .8em;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		background: rgba(34, 49, 45, .97);
		padding: .6em .9em;
		padding-bottom: calc(.6em + env(safe-area-inset-bottom));
	}
	.area-sticky-cta-text {
		flex: 1;
		color: #e8e9e4;
		font-size: .72em;
		line-height: 1.4;
	}
	.area-sticky-cta-pr {
		color: #8b958f;
		margin-left: .3em;
	}
	.area-sticky-cta a {
		flex: none;
		background: #d96c2c;
		color: #fff;
		font-weight: 700;
		font-size: .85em;
		padding: .7em 1.2em;
		border-radius: 8px;
		text-decoration: none;
	}
	.single-area .footer,
	body.single-area { padding-bottom: 60px; }
}

/* ---- パンくず ---- */
.area-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: .3em;
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
	font-size: .75em;
	letter-spacing: .05em;
	color: var(--muted);
}
.area-breadcrumb li + li::before {
	content: "›";
	margin-right: .3em;
	color: var(--hairline);
}
.area-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.area-breadcrumb a:hover {
	color: var(--pine);
	text-decoration: underline;
}

/* ---- 見出し(帳票の罫をモチーフ) ---- */
.area-single .entry-content h2,
.area-single h2 {
	font-size: 1.25em;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--ink);
	background: none;
	border: none;
	border-bottom: 1px solid var(--hairline);
	padding: 0 0 .5em;
	margin: 2.4em 0 1em;
	position: relative;
}
.area-single .entry-content h2::after,
.area-single h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 3.2em;
	height: 3px;
	background: var(--pine);
}

/* ---- スタットカード(署名要素: 公示帳票風) ---- */
.area-stats {
	margin: 2em 0;
	border-top: 3px solid var(--ink);
	background: var(--paper);
	padding: 1.2em 1.4em 1em;
}
.area-stats-title {
	font-size: .82em;
	font-weight: 700;
	letter-spacing: .18em;
	color: var(--ink);
	margin: 0 0 1em;
}
.area-stats-year {
	margin-left: .8em;
	color: var(--muted);
	letter-spacing: .1em;
	font-weight: 400;
}
.area-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--hairline);
	border: 1px solid var(--hairline);
}
@media (max-width: 680px) {
	.area-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.area-stat {
	background: #fff;
	padding: 1em .9em 1.05em;
	display: flex;
	flex-direction: column;
	gap: .35em;
	min-width: 0;
}
.area-stat-label {
	font-size: .7em;
	letter-spacing: .1em;
	color: var(--muted);
	white-space: nowrap;
}
.area-stat-value {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	font-feature-settings: "tnum";
	white-space: nowrap;
}
.area-stat-unit {
	font-size: .55em;
	font-weight: 600;
	margin-left: .2em;
	color: var(--pine);
	letter-spacing: .04em;
	white-space: nowrap;
}
.area-stats-source {
	font-size: .7em;
	color: var(--muted);
	letter-spacing: .06em;
	margin: .9em 0 0;
	text-align: right;
}

/* ---- 追加データ表(種別・推移・地区別) ---- */
.area-table {
	margin: 0 0 1.5em;
}
.area-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92em;
}
.area-table th,
.area-table td {
	border: 1px solid var(--hairline);
	padding: .55em .9em;
	text-align: left;
}
.area-table thead th {
	background: var(--paper);
	font-size: .85em;
	letter-spacing: .08em;
	font-weight: 600;
	color: #55605c;
}
.area-table td:nth-child(2),
.area-table td:nth-child(3) {
	font-feature-settings: "tnum";
}
.area-table-note {
	font-size: .75em;
	color: var(--muted);
	margin: -.8em 0 1.5em;
}

/* ---- FAQ ---- */
.area-faq {
	border-top: 1px solid var(--hairline);
}
.area-faq details {
	border-bottom: 1px solid var(--hairline);
	background: none;
	padding: 0;
	margin: 0;
}
.area-faq summary {
	cursor: pointer;
	font-weight: 600;
	padding: 1em .2em;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: .7em;
	color: var(--ink);
}
.area-faq summary::-webkit-details-marker { display: none; }
.area-faq summary::before {
	content: "問";
	flex: none;
	font-size: .85em;
	color: var(--pine);
	font-weight: 700;
}
.area-faq summary::after {
	content: "+";
	margin-left: auto;
	color: var(--muted);
	font-weight: 400;
}
.area-faq details[open] summary::after { content: "−"; }
.area-faq details p {
	margin: 0 .2em 1.2em 2em;
	font-size: .92em;
	color: #3d4744;
}

/* ---- CTA ---- */
.area-cta {
	background: var(--pine-pale);
	border: 1px solid #d9e5dc;
	border-radius: 10px;
	padding: 1.8em 1.5em;
	margin: 2.4em 0;
	text-align: center;
}
.area-cta-heading {
	font-size: 1.1em;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 .3em;
}
.area-cta-body {
	font-size: .84em;
	color: #55605c;
	margin: 0 0 1.2em;
}
.area-cta-pr {
	margin-left: .5em;
	font-size: .85em;
	color: var(--muted);
}
.area-single a.area-cta-button,
.area-cta-button {
	display: inline-block;
	text-decoration: none;
	border-bottom: none;
	background: var(--kaki);
	color: #fff;
	border-radius: 8px;
	padding: .95em 2.6em;
	font-weight: 700;
	font-size: 1.02em;
	letter-spacing: .06em;
	text-decoration: none;
	box-shadow: 0 3px 0 var(--kaki-deep);
	transition: transform .12s ease, box-shadow .12s ease;
}
.area-cta-button:hover {
	color: #fff;
	transform: translateY(1px);
	box-shadow: 0 2px 0 var(--kaki-deep);
}
.area-cta-service {
	font-size: .72em;
	color: var(--muted);
	margin: 1em 0 0;
}

/* ---- 内部リンク(近隣エリア・市区町村一覧) ---- */
.area-links-title {
	font-weight: 700;
	letter-spacing: .1em;
	font-size: .9em;
	color: var(--ink);
	margin: 2.4em 0 .7em;
}
.area-single ul.area-links,
.area-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}
.area-single .area-links li {
	list-style: none;
	margin: 0;
	padding: 0;
}
.area-single .area-links li::before,
.area-single .area-links li::marker {
	content: none;
}
.area-links li a {
	display: inline-block;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	padding: .35em 1em;
	font-size: .82em;
	color: var(--ink);
	text-decoration: none;
	transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.area-links li a:hover {
	border-color: var(--pine);
	color: var(--pine);
	background: var(--pine-pale);
}

/* ---- モバイル ---- */
@media (max-width: 560px) {
	.area-single h1,
	.area-single h1.entry-title { font-size: 1.4em; }
	.area-stats { padding: 1em 1em .9em; }
	.area-stats-grid { grid-template-columns: 1fr 1fr; }
	.area-stat-value { font-size: 1.5em; }
	.area-cta-button { display: block; }
	/* パンくずは1行に(FVの縦圧縮)。現在ページは省略して見切れを防ぐ */
	.area-breadcrumb ol {
		flex-wrap: nowrap;
		white-space: nowrap;
		overflow: hidden;
	}
	.area-breadcrumb li[aria-current="page"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.area-cta-button { transition: none; }
}

/* 準備中エリア(未公開自治体)のチップと注記 */
.area-links-note {
	font-size: .8em;
	color: #7c8380;
	margin: 1.2em 0 .6em;
}
ul.area-links--planned li span {
	display: inline-block;
	border: 1px dashed #cfd4cd;
	border-radius: 999px;
	padding: .35em 1em;
	font-size: .82em;
	color: #9aa09c;
	background: transparent;
}

/* ページ上部へ戻るボタン(SANGO既定の青→松葉) */
.totop {
	background: #2f6b4f !important;
}

/* トップページ: 売却の進め方3ステップ */
.home-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1em;
	margin: 1.2em 0 1.4em;
}
.home-step {
	border: 1px solid #dcdad2;
	background: #fbfaf7;
	padding: 1.1em 1.2em;
	line-height: 1.7;
}
.home-step-num {
	display: block;
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-size: 1.5em;
	color: #2f6b4f;
	margin-bottom: .2em;
}
.home-step strong { display: block; margin-bottom: .3em; }
.home-step p { font-size: .85em; color: #3d4744; margin: 0; }
@media (max-width: 680px) {
	.home-steps { grid-template-columns: 1fr; }
}

/* 新着コラム一覧 */
ul.column-list {
	list-style: none;
	margin: 0 0 .6em;
	padding: 0;
	border-top: 1px solid #dcdad2;
}
ul.column-list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #dcdad2;
}
ul.column-list li::before,
ul.column-list li::marker { content: none; }
ul.column-list li a {
	display: flex;
	align-items: baseline;
	gap: 1.2em;
	padding: .9em .2em;
	text-decoration: none;
	color: #22312d;
}
ul.column-list li a:hover .column-list-title { color: #2f6b4f; text-decoration: underline; }
.column-list-date {
	font-size: .78em;
	color: #7c8380;
	white-space: nowrap;
	font-family: "Shippori Mincho", serif;
}
.column-list-title { font-size: .95em; line-height: 1.6; }
.column-list-more { text-align: right; font-size: .85em; }
@media (max-width: 680px) {
	ul.column-list li a { flex-direction: column; gap: .2em; }
}

/* パンくず: SANGOのol装飾(枠・背景・番号)を打ち消してプレーンな行に */
.area-breadcrumb,
.area-breadcrumb ol {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.area-breadcrumb ol li {
	background: transparent !important;
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.area-breadcrumb ol li::before,
.area-breadcrumb ol li::marker {
	counter-increment: none;
	background: none !important;
}
.area-breadcrumb li + li::before {
	content: "›" !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	color: #b9beba !important;
	font-size: 1em !important;
	line-height: inherit !important;
}

/* 公開準備中エリアの折りたたみ */
details.area-planned {
	margin: .4em 0 1.6em;
}
details.area-planned summary {
	cursor: pointer;
	font-size: .85em;
	color: #2f6b4f;
	padding: .5em 0;
	list-style: none;
}
details.area-planned summary::-webkit-details-marker { display: none; }
details.area-planned summary::before {
	content: "▸ ";
	color: #9aa09c;
}
details.area-planned[open] summary::before {
	content: "▾ ";
}
details.area-planned summary:hover { text-decoration: underline; }

/* フッター: SANGOの大きなHOMEボタンを非表示にして簡素化 */
#footer-menu .footer-menu__btn { display: none !important; }
#footer-menu > div > div:first-child { display: none; }
#footer-menu nav { padding-top: 1.4em; }

/* 比較表: サービス名・ラベル列は折り返さない(表自体は横スクロール可) */
.area-table td:first-child,
.area-table th:first-child {
	white-space: nowrap;
}
figure.area-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ヒーローのCTAボタン行 */
.home-hero-cta {
	display: flex;
	gap: .8em;
	justify-content: center;
	flex-wrap: wrap;
	margin: 1.6em 0 .4em;
}
.home-hero-cta a {
	display: inline-block;
	padding: .8em 1.6em;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	font-size: .95em;
	line-height: 1.4;
}
a.home-cta-primary {
	background: #d96c2c;
	color: #fff !important;
	box-shadow: 0 2px 0 #b85419;
}
a.home-cta-primary:hover { background: #c25e22; }
a.home-cta-secondary {
	border: 1px solid #2f6b4f;
	color: #2f6b4f !important;
	background: #fff;
}
a.home-cta-secondary:hover { background: #eef4ef; }
