@charset "utf-8";
/* 文珠地所 2026-10 リニューアル（画像文字 → テキスト化・スマホ対応） */

:root {
	--brown-dark: #3e2611;
	--brown: #523517;
	--brown-mid: #7a5530;
	--gold: #a58955;
	--gold-light: #d9c39b;
	--cream: #fef9ea;
	--cream-tile: #fff5d7;
	--line: #e4dac4;
	--accent: #e9a55b;
	--text: #2f2418;
	--mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--latin: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	background: #f4eddc;
	color: var(--text);
	font-family: var(--gothic);
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
}

img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
a { color: var(--brown-mid); }
a:hover { color: var(--brown); }

#container {
	background: var(--cream);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ---------- ヘッダー（浮いた白いバー＋茶色の帯） ---------- */
#header_wrap {
	background: linear-gradient(180deg, #f3e7d0 0%, #c7a982 45%, #7d5832 80%, #4d3116 100%);
	border-bottom: 3px solid var(--accent);
	padding-top: 116px;
	position: relative;
	z-index: 50;
}

.tagline {
	color: #fff4dc;
	font-family: var(--mincho);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .12em;
	line-height: 1.5;
	padding: 4px 16px 14px;
	text-align: center;
	text-shadow: 0 1px 2px rgba(40, 20, 0, .4);
}

/* スマホは短い文章を1行で表示 */
.tagline-sp { display: none; }

.hdr {
	align-items: center;
	animation: hdr-in .8s cubic-bezier(.2, .8, .2, 1) backwards;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, .94);
	border-radius: 48px;
	box-shadow: 0 6px 24px rgba(61, 38, 17, .18);
	display: flex;
	gap: 16px;
	height: 84px;
	justify-content: space-between;
	left: 16px;
	margin: 0 auto;
	max-width: 1220px;
	padding: 0 14px 0 30px;
	position: fixed;
	right: 16px;
	top: 16px;
	transition: height .3s, top .3s, box-shadow .3s;
	z-index: 100;
}

/* 終了後は transform を残さない（残ると全画面メニューがバーの中に閉じ込められる） */
@keyframes hdr-in {
	from { opacity: 0; transform: translateY(-30px); }
	to   { opacity: 1; transform: none; }
}

.hdr.is-scrolled { box-shadow: 0 8px 28px rgba(61, 38, 17, .25); height: 70px; top: 10px; }

.hdr h1 { flex-shrink: 0; line-height: 0; }

/* ロゴ：家＋ビル＋MJ のマーク(SVG)＋社名テキスト。font-size で全体の大きさを変える */
.logo {
	align-items: center;
	color: #0f2340;
	display: flex;
	font-size: 10px;
	gap: 1em;
	text-decoration: none;
	transition: font-size .3s;
}

.hdr.is-scrolled .logo { font-size: 8.6px; }
.logo .mark { height: 6em; width: 7.04em; }

.logo-text { line-height: 1; }

.logo-name {
	display: block;
	font-family: var(--gothic);
	font-size: 2.45em;
	font-weight: 700;
	letter-spacing: .06em;
}

.logo-en {
	display: block;
	font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.42em;
	font-weight: 600;
	letter-spacing: .42em;
	margin-top: .5em;
	padding-left: .1em;
}

.logo:hover { color: #0f2340; }

/* PCメニュー（日本語＋点付き英語、マウスを乗せると蛍光ペン風の帯が伸びる） */
.gnav { align-items: center; display: flex; gap: 34px; margin-right: 40px; }
.gnav-inner { display: contents; }	/* PCでは枠を無視（スマホのメニューでスクロール領域になる） */
.gnav ul { align-items: flex-start; display: flex; gap: 30px; }

.gnav li a {
	color: #3e2611;
	display: block;
	isolation: isolate;
	padding: 4px 2px;
	text-decoration: none;
}

.gnav .ja {
	display: inline-block;
	font-family: var(--gothic);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.3;
	position: relative;
}

.gnav .ja::after {
	background: #f5d58a;
	border-radius: 2px;
	bottom: 1px;
	content: "";
	height: 8px;
	left: -3px;
	position: absolute;
	transition: width .3s ease;
	width: 0;
	z-index: -1;
}

.gnav li a:hover .ja::after,
.gnav li a:focus-visible .ja::after,
.gnav li.current .ja::after { width: calc(100% + 4px); }

.gnav .en {
	color: #9a7a3f;
	display: block;
	font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1;
	margin-top: 9px;
	padding-left: 10px;
	position: relative;
}

.gnav .en::before {
	background: var(--accent);
	border-radius: 50%;
	content: "";
	height: 5px;
	left: 0;
	margin-top: -3.5px;
	position: absolute;
	top: 50%;
	width: 5px;
}

/* 右側：電話番号／お問合わせ（色の帯の下線付き） */
.gnav-sub {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gnav-sub a {
	align-items: center;
	color: #3e2611;
	display: inline-flex;
	font-family: var(--gothic);
	font-size: 15px;
	font-weight: 700;
	gap: 6px;
	isolation: isolate;
	letter-spacing: .04em;
	line-height: 1.2;
	position: relative;
	text-decoration: none;
	transition: transform .3s;
	white-space: nowrap;
}

.gnav-sub a::after {
	background: #eadcbc;
	border-radius: 2px;
	bottom: -5px;
	content: "";
	height: 9px;
	left: 8px;
	position: absolute;
	right: -4px;
	transition: background .3s;
	z-index: -1;
}

.gnav-sub .sub-contact { margin-left: 26px; }
.gnav-sub .sub-contact::after { background: #f5d58a; }
.gnav-sub a:hover { transform: translateX(5px); }
.gnav-sub a:hover::after { background: #f2c56b; }

.gnav-sub .sub-tel { font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.gnav-sub .sub-tel .sub-label { padding-top: 2px; }
.gnav-sub svg { flex-shrink: 0; height: 18px; width: 18px; }
.gnav-sub .sub-tel svg { fill: #6b4a26; }
.gnav-sub .sub-contact svg { fill: none; stroke: #6b4a26; stroke-linejoin: round; stroke-width: 1.8; }

/* メニューボタン（スマホ・タブレット） */
.hdr-toggle {
	background: var(--brown);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: none;
	flex-shrink: 0;
	height: 52px;
	position: relative;
	transition: background .3s;
	width: 52px;
}

.hdr-toggle span {
	background: #fff4dc;
	border-radius: 2px;
	height: 2px;
	left: 16px;
	position: absolute;
	transition: transform .35s, opacity .25s, top .35s;
	width: 20px;
}

.hdr-toggle span:nth-child(1) { top: 18px; }
.hdr-toggle span:nth-child(2) { top: 25px; }
.hdr-toggle span:nth-child(3) { top: 32px; }
.menu-open .hdr-toggle { background: var(--accent); }
.menu-open .hdr-toggle span:nth-child(1) { top: 25px; transform: rotate(45deg); }
.menu-open .hdr-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .hdr-toggle span:nth-child(3) { top: 25px; transform: rotate(-45deg); }

/* ---------- メイン画像 ---------- */
/* 写真の左右は同じ写真をぼかして埋める */
#main {
	background: #4d3116;
	line-height: 0;
	overflow: hidden;
	position: relative;
}

#main::before {
	background: url(../images/main_img_2026.jpg?v=20261027b) center / cover;
	content: "";
	filter: blur(22px) brightness(.8) saturate(.9);
	inset: -40px;
	position: absolute;
}

#main img {
	box-shadow: 0 0 40px rgba(30, 15, 0, .45);
	display: block;
	margin: 0 auto;
	max-width: 1000px;
	position: relative;
	width: 100%;
}

/* ---------- 本文 ---------- */
#contents {
	flex: 1;
	margin: 0 auto;
	max-width: 1220px;
	padding: 36px 30px 60px;
	width: 100%;
}

.sec-head {
	align-items: flex-end;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.sec-title { margin: 0 0 18px; line-height: 1.3; }
.sec-head .sec-title { margin: 0; }

.sec-title .ja {
	color: var(--brown);
	display: block;
	font-family: var(--mincho);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: .06em;
}

.sec-title .en {
	color: var(--gold);
	display: block;
	font-family: var(--latin);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	margin-top: 4px;
}

.date {
	color: var(--brown);
	font-family: var(--latin);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1.2;
}

/* ---------- 物件一覧表 ---------- */
.list {
	background: #fff;
	border: 5px solid var(--brown);
}

.tbl { border-collapse: collapse; width: 100%; }

.tbl th {
	background: var(--gold);
	border-right: 1px solid var(--cream-tile);
	color: #fff8e6;
	font-family: var(--mincho);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 6px 4px;
	white-space: nowrap;
}

.tbl th:last-child { border-right: none; }

.tbl td {
	border-bottom: 1px solid var(--line);
	border-right: 1px solid var(--line);
	font-size: 16px;
	padding: 12px 8px;
	vertical-align: middle;
}

.tbl td:last-child { border-right: none; }
.tbl tbody tr:hover td { background: #fffcf3; }

.tbl .c-badge, .tbl .c-detail { text-align: center; width: 82px; }
.tbl .c-name { width: 22%; }

/* コメント欄は元サイトと同じ標準ゴシック */
.tbl .c-comment {
	font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", Meiryo, "メイリオ", Osaka, "MS PGothic", sans-serif;
	line-height: 1.7;
}
.tbl .empty td { color: #8a7a62; padding: 40px 10px; text-align: center; }

/* 状態・種別・取引形態バッジ */
.badge {
	align-items: center;
	border-radius: 7px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .25);
	color: #fff;
	display: inline-flex;
	font-family: var(--mincho);
	font-size: 13px;
	font-weight: 700;
	height: 52px;
	justify-content: center;
	letter-spacing: .02em;
	line-height: 1.25;
	padding: 4px;
	text-align: center;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	width: 52px;
}

.status1 { background: linear-gradient(135deg, #e08a0c, #c2541c); border: 2px solid #d87d05; }
.status2 { background: linear-gradient(135deg, #9b3122, #5e1010); border: 2px solid #8d2a1d; }
.status3 { background: #7c1f18; border: 2px solid #6a1812; }
.status4 { background: #b84421; border: 2px solid #d87d05; }

.type1 { background: linear-gradient(135deg, #ffe600, #fdcf00); border: 2px solid #f5c400; color: #d35d00; text-shadow: none; }
.type2 { background: linear-gradient(135deg, #cfa86a, #b3834a); border: 2px solid #a87a42; color: #4e3112; text-shadow: none; }
.type3 { background: linear-gradient(135deg, #95c722, #5fb22f); border: 2px solid #7fba25; color: #174d12; text-shadow: none; }
.type4, .type5, .type6, .type7, .type8, .type9 { background: #42b035; border: 2px solid #379a2c; }
.type10, .type11 { background: #ab7840; border: 2px solid #956634; }

.deal1 { background: linear-gradient(135deg, #c8c9ca, #9fa0a0); border: 2px solid #9a9b9b; }
.deal2 { background: linear-gradient(135deg, #6b6d70, #3f4246); border: 2px solid #45484c; }
.deal3 { background: #a7a7a8; border: 2px solid #929293; }

.btn-detail {
	align-items: center;
	background: linear-gradient(180deg, #1f74c4, #00498c);
	border-radius: 9px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 2px 3px rgba(0, 0, 0, .3);
	color: #fff;
	display: inline-flex;
	font-family: var(--mincho);
	font-size: 14px;
	font-weight: 700;
	height: 52px;
	justify-content: center;
	letter-spacing: .1em;
	text-decoration: none;
	transition: filter .2s, transform .2s;
	width: 52px;
}

.btn-detail:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }

/* ---------- 事例一覧 ---------- */
#house_list ul {
	display: grid;
	gap: 36px 22px;
	grid-template-columns: repeat(4, 1fr);
}

#house_list a { color: var(--text); display: block; text-decoration: none; }

#house_list .img {
	aspect-ratio: 3 / 2;
	background: #f1e8d3;
	line-height: 0;
	overflow: hidden;
}

#house_list .img img {
	height: 100%;
	object-fit: contain;
	transition: transform .35s;
	width: 100%;
}

#house_list a:hover .img img { transform: scale(1.04); }

.house_name {
	font-size: 15px;
	font-weight: 500;
	margin-top: 8px;
}

.house_name .no {
	color: var(--gold);
	font-family: var(--latin);
	font-size: 15px;
	font-weight: 600;
	margin-right: .5em;
}

/* ---------- 事例詳細 ---------- */
.detail_owner {
	border-bottom: 1px solid var(--brown);
	color: var(--brown);
	font-family: var(--mincho);
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 24px;
	padding-bottom: 8px;
}

.house_img {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, 1fr);
}

.house_img li { aspect-ratio: 3 / 2; background: #f1e8d3; line-height: 0; }
.house_img a { display: block; height: 100%; }
.house_img img { height: 100%; object-fit: contain; width: 100%; }

.back { margin-top: 30px; text-align: center; }

.back a {
	border: 1px solid var(--brown-mid);
	color: var(--brown-mid);
	display: inline-block;
	font-family: var(--mincho);
	font-weight: 700;
	padding: 8px 28px;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.back a:hover { background: var(--brown-mid); color: #fff; }

/* ---------- 会社概要 ---------- */
.company_img { margin: 10px 0 30px; text-align: center; }
.company_img img { width: 640px; }

#company {
	display: grid;
	font-size: 16px;
	grid-template-columns: 7em 1fr;
	margin: 0 auto;
	max-width: 700px;
}

#company dt, #company dd {
	border-bottom: 1px solid #c9bea6;
	padding: 12px 0;
}

#company dt { color: var(--brown); font-family: var(--mincho); font-weight: 700; }
#company rt { color: #7d6f5a; font-size: 10px; letter-spacing: -.05em; }
#company .map iframe { aspect-ratio: 580 / 450; height: auto; max-width: 100%; width: 580px; }

/* ---------- プライバシーポリシー ---------- */
.privacy .box { margin: 0 0 40px; }
.privacy h4 { color: var(--brown); font-family: var(--mincho); font-size: 18px; margin-bottom: 10px; }
.privacy .box dl { margin: 16px 0; }
.privacy dt { font-weight: 700; margin-top: 12px; }
.privacy dd { padding: 6px 0 6px 2em; }

/* ---------- フッター ---------- */
#footer { text-align: center; }

.foot-nav {
	background: linear-gradient(180deg, #5c3c1b, #462c12);
	border-top: 3px solid var(--accent);
	box-shadow: 0 -3px 0 #3a230e;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 12px 10px;
}

.foot-nav a {
	color: #fff4d6;
	font-family: var(--mincho);
	font-weight: 700;
	margin: 0 1em;
	text-decoration: none;
}

.foot-nav a:hover { color: #fff; text-decoration: underline; }

.foot-info { color: var(--brown); font-size: 13px; margin-top: 14px; }
.foot-info a { color: var(--brown); text-decoration: none; }
.copy { color: #7d6f5a; font-size: 12px; padding: 4px 0 20px; }

/* ---------- タブレット ---------- */
@media (max-width: 1100px) {
	#house_list ul { grid-template-columns: repeat(3, 1fr); }
}

/* メニューボタン＋全画面メニューに切り替え */
@media (max-width: 1020px) {
	/* backdrop-filter があると中の position:fixed がバー基準になるので外す */
	.hdr { backdrop-filter: none; -webkit-backdrop-filter: none; }
	.hdr-toggle { display: block; }

	.gnav {
		align-items: center;
		background: var(--cream);
		display: flex;
		flex-direction: column;
		inset: 0;
		opacity: 0;
		padding: 0;
		position: fixed;
		transition: opacity .4s, visibility .4s;
		visibility: hidden;
		z-index: -1;
	}

	/* メニュー本体：ロゴのバーより下だけをスクロール領域にする（縦が短い画面でも最後まで見られる） */
	.gnav-inner {
		align-items: center;
		bottom: 0;
		display: flex;
		flex-direction: column;
		left: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		padding: 12px 24px 40px;
		position: absolute;
		right: 0;
		top: 90px;
	}

	/* 余裕がある画面では上下中央、収まらない画面では上から並べる */
	.gnav ul { margin-top: auto; }
	.gnav-sub { margin-bottom: auto; }

	.menu-open .gnav { opacity: 1; visibility: visible; }
	.menu-open { overflow: hidden; }

	.gnav { gap: 0; margin-right: 0; }
	.gnav ul { align-items: flex-start; flex-direction: column; gap: 8px; }

	.gnav li {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity .4s, transform .4s;
	}

	.menu-open .gnav li, .menu-open .gnav-sub { opacity: 1; transform: none; }
	.menu-open .gnav li:nth-child(2) { transition-delay: .04s; }
	.menu-open .gnav li:nth-child(3) { transition-delay: .08s; }
	.menu-open .gnav li:nth-child(4) { transition-delay: .12s; }
	.menu-open .gnav li:nth-child(5) { transition-delay: .16s; }

	/* 日本語と英語の縦位置をそろえる */
	.gnav li a { align-items: baseline; display: grid; font-size: 16px; gap: 12px; grid-template-columns: 7.4em auto; padding: 12px 8px; }
	.gnav .ja { font-size: 24px; justify-self: start; }
	.gnav .ja::after { height: 10px; }
	.gnav .en { font-size: 16px; margin-top: 0; padding-left: 12px; }
	.gnav .en::before { height: 6px; margin-top: -4px; width: 6px; }

	.gnav-sub {
		align-items: center;
		gap: 22px;
		margin-top: 30px;
		opacity: 0;
		transform: translateY(16px);
		transition: opacity .4s .2s, transform .4s .2s;
	}

	.gnav-sub a { font-size: 20px; gap: 8px; }
	.gnav-sub a::after { height: 11px; }
	.gnav-sub .sub-tel { font-size: 24px; }
	.gnav-sub svg { height: 22px; width: 22px; }
	.gnav-sub .sub-contact { margin-left: 0; }
}

@media (max-width: 900px) {
	#contents { padding-left: 20px; padding-right: 20px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
	body { font-size: 14px; }
	#contents { padding-left: 16px; padding-right: 16px; }
	#header_wrap { padding-top: 84px; }
	.hdr { border-radius: 36px; height: 64px; left: 10px; padding: 0 7px 0 18px; right: 10px; top: 10px; }
	.hdr.is-scrolled { height: 58px; top: 6px; }
	.logo, .hdr.is-scrolled .logo { font-size: 7.4px; }
	.hdr-toggle { height: 48px; width: 48px; }
	.hdr-toggle span { left: 14px; }
	.hdr-toggle span:nth-child(1) { top: 16px; }
	.hdr-toggle span:nth-child(2), .menu-open .hdr-toggle span:nth-child(1), .menu-open .hdr-toggle span:nth-child(3) { top: 23px; }
	.hdr-toggle span:nth-child(3) { top: 30px; }
	/* 画面幅に合わせて文字を縮め、折り返さない（31文字）。小さくても読みやすいゴシック */
	.tagline { font-family: var(--gothic); font-size: min(13px, calc((100vw - 24px) / 32.5)); font-weight: 500; letter-spacing: 0; padding: 4px 12px 10px; white-space: nowrap; }
	.tagline-pc { display: none; }
	.tagline-sp { display: inline; }

	#contents { padding-top: 22px; }
	.sec-head { align-items: flex-start; flex-direction: column; }
	.sec-title .ja { font-size: 23px; }
	.date { font-size: 16px; }

	/* 一覧表 → カード */
	.list { border-width: 3px; }
	.tbl thead { display: none; }
	.tbl, .tbl tbody { display: block; }
	.tbl tr {
		border-bottom: 1px solid var(--line);
		display: grid;
		gap: 8px 6px;
		grid-template-columns: repeat(3, auto) 1fr;
		justify-content: start;
		padding: 14px 12px;
	}
	.tbl tbody tr:hover td { background: none; }
	.tbl td { border: none; padding: 0; }
	.tbl .c-badge { width: auto; }
	.tbl .c-badge:empty { display: none; }
	.tbl .c-name { font-size: 17px; font-weight: 700; grid-column: 1 / -1; width: auto; }
	.tbl .c-comment { font-size: 14px; grid-column: 1 / -1; }
	.tbl .c-detail { grid-column: 1 / -1; text-align: left; width: auto; }
	.tbl .c-detail:empty { display: none; }
	.tbl .empty { display: block; }
	.badge { font-size: 12px; height: 46px; letter-spacing: 0; padding: 2px; width: 46px; }
	.btn-detail { height: 42px; width: 100%; }
	.btn-detail::after { content: "を見る"; letter-spacing: 0; }

	#house_list ul { gap: 22px 12px; grid-template-columns: repeat(2, 1fr); }
	.house_name { font-size: 13px; }
	.detail_owner { font-size: 21px; }
	.house_img { gap: 8px; grid-template-columns: repeat(2, 1fr); }

	#company { font-size: 15px; grid-template-columns: 1fr; }
	#company dt { border-bottom: none; padding-bottom: 0; }
	#company dd { padding-top: 2px; }
	.privacy dd { padding-left: 1em; }
	.foot-nav a { margin: 2px .7em; }
}
