/*
Theme Name: 不動産の歩き方
Theme URI: https://fudosan-arukikata.com/
Description: 不動産の歩き方の専用テーマ。デザインはリデザインのキャンバスから、記事・URL・タグは今のまま使います。
Version: 0.1.23
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: arukikata
*/

/* ------------------------------------------------------------ base
   Each page type also loads its own sheet from assets/css (lifted from the canvas boards). */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	margin: 0;
	background: #E9EEF2;
}
button {
	font-family: inherit;
}
.fa-sr,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.fa-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: #0E141B;
	color: #FFFFFF;
	font-size: 14px;
	text-decoration: none;
}
.fa-skip:focus {
	top: 12px;
}

/* ------------------------------------------------------------ type
   Japanese text is set in the reader's own system font (Hiragino on Apple, BIZ UDPGothic / Yu Gothic on Windows,
   Noto Sans CJK on Android): no download. Only the large headings use the web font Zen Kaku Gothic New (700, 900),
   which keeps the look of the design for a fraction of the size. Article body headings stay in the system font. */
.fa-root :is(h1, h2, h3, blockquote):not(.fa-wp *) {
	font-family: 'Geist', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic Medium', 'Yu Gothic', Meiryo, sans-serif;
}

/* ------------------------------------------------------------ menu (phones) */
.fa-drawer {
	box-sizing: border-box;
	position: fixed;
	top: 57px;
	left: 0;
	right: 0;
	z-index: 49;
	max-height: calc(100vh - 57px);
	max-height: calc(100dvh - 57px);
	overflow-y: auto;
	padding: 8px clamp(16px, 4vw, 32px) 24px;
	background: rgba(244, 246, 248, 0.98);
	border-bottom: 1px solid rgba(14, 22, 32, 0.08);
	box-shadow: 0 24px 48px -24px rgba(10, 26, 47, 0.35);
	font-family: 'Geist', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic Medium', 'Yu Gothic', Meiryo, sans-serif;
	color: #0E141B;
}
.fa-drawer[hidden] {
	display: none;
}
.fa-drawer nav {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}
.fa-drawer a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 4px;
	border-bottom: 1px solid rgba(14, 22, 32, 0.08);
	color: #0E141B;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.fa-drawer-h {
	margin: 18px 4px 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #5C6672;
}
.fa-drawer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
.fa-drawer-grid a {
	font-weight: 500;
	font-size: 15px;
}
.fa-drawer .fa-drawer-ai {
	margin-top: 18px;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	background: #0A1A2F;
	color: #FFFFFF;
}
@media (min-width: 901px) {
	.fa-drawer {
		display: none !important;
	}
}

/* ------------------------------------------------------------ article body: what WordPress and Cocoon put in posts */
.fa-wp img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}
.fa-wp figure {
	margin: 28px 0 0;
}
.fa-wp figure.wp-block-table,
.fa-wp .fa-tbl {
	margin: 24px 0 0;
	overflow-x: auto;
	border-radius: 14px;
	border: 1px solid rgba(14, 22, 32, 0.12);
	background: #FFFFFF;
}
.fa-wp figure.wp-block-table table,
.fa-wp .fa-tbl table {
	margin: 0;
	border: 0;
}
.fa-wp figure.wp-block-table table.has-fixed-layout {
	table-layout: auto;
}
.fa-wp p.note {
	margin: 26px 0 0;
	padding: 18px 22px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid rgba(14, 22, 32, 0.10);
	font-size: 15.5px;
	line-height: 1.85;
	color: #47515C;
}
.fa-wp .wp-block-separator {
	opacity: 1;
}
.fa-wp code {
	padding: 0.1em 0.4em;
	border-radius: 6px;
	background: rgba(14, 22, 32, 0.06);
	font-size: 0.9em;
}
.fa-wp pre {
	margin: 22px 0 0;
	padding: 16px 18px;
	overflow-x: auto;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid rgba(14, 22, 32, 0.10);
	font-size: 15px;
	line-height: 1.8;
}
.fa-wp pre code {
	padding: 0;
	background: none;
}
.fa-wp h1 {
	margin: 72px 0 0;
	font-size: clamp(23px, 2.5vw, 28px);
	line-height: 1.5;
	color: #0E141B;
}
.fa-wp .rk-fig {
	padding: 20px 16px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid rgba(14, 22, 32, 0.10);
}
.fa-wp .rk-fig svg {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin: 0 auto;
}
.fa-wp .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.fa-wp iframe,
.fa-wp video {
	max-width: 100%;
}

/* ------------------------------------------------------------ plain pages (privacy, the tools) */
.fa-page-body {
	max-width: 760px;
	margin: 0 auto;
}
.fa-page-body.is-tool {
	max-width: 1100px;
}
.entry-content.is-tool {
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic Medium', 'Yu Gothic', Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #1A2129;
}

/* ------------------------------------------------------------ lists (search, tag archive) */
.fa-pager {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.fa-pager .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid rgba(14, 22, 32, 0.12);
	background: #FFFFFF;
	color: #0E141B;
	font-size: 14px;
	text-decoration: none;
}
.fa-pager .page-numbers.current {
	background: #0E141B;
	border-color: #0E141B;
	color: #FFFFFF;
	font-weight: 700;
}
.fa-pager .page-numbers.dots {
	border: 0;
	background: none;
}
.fa-rowl:hover .fa-t {
	color: #1E3A5F !important;
}

/* ------------------------------------------------------------ WordPress bits */
.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}
.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}
.wp-caption-text,
.wp-element-caption {
	margin-top: 8px;
	font-size: 14px;
	color: #5C6672;
}
.admin-bar header[style*="position: sticky"] {
	top: 32px !important;
}
@media (max-width: 782px) {
	.admin-bar header[style*="position: sticky"] {
		top: 46px !important;
	}
}

/* ------------------------------------------------------------ fixes on top of the board sheets */
/* body text breaks like normal Japanese prose; the phrase-aware breaking stays on headings */
.fa-wp p,
.fa-wp li,
.fa-wp td,
.fa-wp th,
.fa-wp blockquote {
	word-break: normal;
}
/* 記事を探す on phones: date and label above the title (the board's rule named .fa-row) */
@media (max-width: 560px) {
	.fa-rowl {
		flex-wrap: wrap !important;
		gap: 8px 12px !important;
	}
	/* TOP buttons on phones: 「AIに相談する」 stays on one line (it broke after 「AIに」 at 375px) */
	.fa-hbtn a {
		white-space: nowrap;
		padding-left: 18px !important;
		padding-right: 18px !important;
	}
}

/* ------------------------------------------------------------ carried over from the Cocoon child theme (style.css, 2026-09-23)
   査定への導線マーカー: bold words in a paragraph or list item that links to the 査定 pages get a marker.
   To add a target, add one line to each selector list. */
.entry-content p:has(a[href*="baikai-minaoshi"]) strong,
.entry-content p:has(a[href*="ikkatsu-satei"]) strong,
.entry-content p:has(a[href*="satei-nansha"]) strong,
.entry-content li:has(a[href*="baikai-minaoshi"]) strong,
.entry-content li:has(a[href*="ikkatsu-satei"]) strong,
.entry-content li:has(a[href*="satei-nansha"]) strong,
.entry-content .satei-line {
	background: linear-gradient(transparent 62%, #ffe9a8 62%);
	font-weight: 700;
}
.entry-content p:has(a[href*="baikai-minaoshi"]) a strong,
.entry-content p:has(a[href*="ikkatsu-satei"]) a strong,
.entry-content p:has(a[href*="satei-nansha"]) a strong {
	background: none;
}

/* ------------------------------------------------------------ the existing AI chat (printed by the site's own code), in the new colours
   Only colours, corners and type change; what it does stays the same. body.fa-site wins over its own <style>. */
body.fa-site #fudosan-chat-widget {
	font-family: 'Geist', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic Medium', 'Yu Gothic', Meiryo, sans-serif;
}
body.fa-site #chat-toggle {
	height: 48px;
	border-radius: 12px;
	background: #0A1A2F;
	box-shadow: 0 14px 30px -12px rgba(10, 26, 47, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
	transition: filter 0.2s ease;
}
body.fa-site #chat-toggle:hover {
	transform: none;
	filter: brightness(1.08);
}
body.fa-site #fudosan-chat-window {
	bottom: 64px;
	border-radius: 16px;
	border: 1px solid rgba(14, 22, 32, 0.10);
	box-shadow: 0 30px 80px -30px rgba(10, 26, 47, 0.55);
}
body.fa-site #chat-header {
	background: #0A1A2F;
}
body.fa-site #chat-messages {
	background: #F4F6F8;
}
body.fa-site .chat-msg.ai .chat-bubble {
	border-color: rgba(14, 22, 32, 0.10);
	color: #1A2129;
}
body.fa-site .chat-msg.user .chat-bubble,
body.fa-site #chat-input-area button {
	background: #0A1A2F;
}
body.fa-site #chat-input {
	border-color: rgba(14, 22, 32, 0.16);
	font-size: 16px;
}
body.fa-site #chat-input:focus {
	border-color: #2E5A8A;
}
/* the AI's avatar: the site's mark instead of the house emoji */
body.fa-site .chat-msg.ai .chat-avatar {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: url('assets/img/icon.svg') center / cover no-repeat;
	font-size: 0;
	line-height: 0;
	color: transparent;
}
@media (max-width: 560px) {
	body.fa-site #fudosan-chat-widget {
		right: 16px;
		bottom: 16px;
	}
	body.fa-site #fudosan-chat-window {
		width: calc(100vw - 32px);
		max-width: 360px;
		height: min(460px, calc(100dvh - 120px));
	}
}

/* ------------------------------------------------------------ 記事を探す: the theme map (drawn by assets/js/find.js) */
.fa-tmap svg.fa-tm {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	touch-action: none;
}
.fa-tl {
	stroke: rgba(14, 22, 32, 0.14);
	transition: stroke .2s, stroke-opacity .2s;
}
.fa-tn {
	cursor: pointer;
	outline: none;
	transition: opacity .25s;
}
.fa-tn .fa-tc {
	fill: #1E3550;
	transition: fill .2s, filter .2s;
}
.fa-tn .fa-th {
	fill: rgba(30, 53, 80, 0.10);
	transform-box: fill-box;
	transform-origin: center;
	transition: transform .25s;
}
.fa-tn text {
	font-size: 12.5px;
	fill: #0E141B;
	paint-order: stroke;
	stroke: #FFFFFF;
	stroke-width: 4px;
	stroke-linejoin: round;
	pointer-events: none;
}
.fa-tn .fa-tn-n {
	fill: #626C77;
	font-size: 11px;
}
.fa-tn:hover .fa-tc,
.fa-tn:focus-visible .fa-tc {
	fill: #2E5A8A;
	filter: drop-shadow(0 0 7px #4F7FB8);
}
.fa-tn:hover .fa-th {
	transform: scale(1.25);
}
.fa-tn:focus-visible .fa-tc {
	stroke: #0A1A2F;
	stroke-width: 3px;
}
/* the biggest themes breathe slowly */
.fa-tn.is-big .fa-th {
	animation: fa-breathe 4.8s ease-in-out infinite;
}
.fa-tn.is-big:nth-child(2n) .fa-th {
	animation-delay: -2.4s;
}
.fa-tn.is-big:nth-child(3n) .fa-th {
	animation-delay: -1.2s;
}
@keyframes fa-breathe {
	0%, 100% { opacity: .55; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.3); }
}
/* hover or choice: the theme and its links stay, the rest fades */
.fa-tm.is-dim .fa-tn {
	opacity: .22;
}
.fa-tm.is-dim .fa-tn.is-near {
	opacity: 1;
}
.fa-tm.is-dim .fa-tl {
	stroke-opacity: .25;
}
.fa-tm.is-dim .fa-tl.is-hot {
	stroke: #2E5A8A;
	stroke-opacity: .8;
}
.fa-tm.is-dim .fa-tn .fa-th {
	animation: none;
}
/* the chosen theme: the same round dot, a little bigger and glowing */
.fa-tn .fa-tc,
.fa-tn .fa-tr {
	transform-box: fill-box;
	transform-origin: center;
}
.fa-tn .fa-tc {
	transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), filter .35s;
}
.fa-tn .fa-tr {
	fill: none;
	stroke: #4F7FB8;
	stroke-width: 1.5;
	opacity: 0;
}
.fa-tn.is-sel .fa-tc {
	fill: #2E5A8A;
	transform: scale(1.4);
	filter: drop-shadow(0 0 10px rgba(79, 127, 184, .85));
}
.fa-tn.is-sel .fa-th {
	fill: rgba(79, 127, 184, 0.18);
	transform: scale(1.4);
	animation: none;
}
.fa-tn.is-sel text {
	font-size: 14px;
	font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
	.fa-tn.is-big .fa-th {
		animation: none;
	}
}

/* ------------------------------------------------------------ 流れる帯（inc/newsbar.php、0.1.23） */
.fa-nb { background: rgba(244, 246, 248, 0.88); border-bottom: 1px solid rgba(14, 22, 32, 0.06); font-family: 'Geist', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic Medium', 'Yu Gothic', Meiryo, sans-serif; }
.fa-nb-in { max-width: 1200px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 10px; }
.fa-nb-box { position: relative; flex: 1 1 auto; min-width: 0; height: 34px; overflow: hidden; border-radius: 999px; background: #FFFFFF; border: 1px solid rgba(14, 22, 32, 0.10); box-shadow: 0 1px 2px rgba(10, 26, 47, 0.04); }
.fa-nb-mask { position: absolute; inset: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.fa-nb-mask::-webkit-scrollbar { display: none; }
.fa-nb-trk { height: 100%; display: flex; align-items: center; width: max-content; padding: 0 28px; white-space: nowrap; }
.fa-nb.is-run .fa-nb-mask { overflow: hidden; }
.fa-nb.is-run .fa-nb-trk { padding: 0; will-change: transform; animation: fa-nb-mq var(--fa-nb-dur, 60s) linear infinite; }
.fa-nb.is-hold .fa-nb-trk, .fa-nb.is-stop .fa-nb-trk { animation-play-state: paused; }
@keyframes fa-nb-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fa-nb-it { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13.5px; color: #1E3A5F; text-decoration: none; }
.fa-nb-it:hover .fa-nb-t { text-decoration: underline; text-underline-offset: 3px; }
.fa-nb-k { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: 0.04em; color: #2E5A8A; box-shadow: inset 0 0 0 1px rgba(46, 90, 138, 0.35); }
.fa-nb-k-new { background: #1E3A5F; color: #FFFFFF; box-shadow: none; }
.fa-nb-k-notice { background: #E8EEF6; color: #1E3A5F; box-shadow: none; }
.fa-nb-d { font-size: 12px; color: #7A8592; font-variant-numeric: tabular-nums; }
.fa-nb-sp { display: inline-block; margin: 0 22px; font-size: 11px; color: #4F7FB8; }
.fa-nb-btn { flex: 0 0 auto; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #7A8592; cursor: pointer; }
.fa-nb-btn:hover { color: #0E141B; background: rgba(14, 22, 32, 0.06); }
.fa-nb a:focus-visible, .fa-nb button:focus-visible { outline: 2px solid #4F7FB8; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 560px) {
	.fa-nb-in { gap: 6px; }
	.fa-nb-it { font-size: 13px; }
	.fa-nb-mask { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
}
@media print { .fa-nb { display: none; } }
